/* Froogle inner pages, v2 (30 Nov 2026). Loaded after sub.css.
   No more blue header on every page: each page gets a light header with its own "world" drawn from what the page
   is about (devices, a search page, a brand sheet, a map, a feed, a print sheet, a product shot, a route line).
   Markup hooks (hx-*) are added by redesign-src/build_inner.py. */

/* ================================================================ shared light header */
.gsub .sp-hero.hx { position: relative; isolation: isolate; overflow: hidden; background: var(--cream);
  padding: clamp(124px, 11vw, 156px) 0 calc(var(--sheet) + clamp(60px, 6.5vw, 104px)) !important; }
.gsub .sp-hero.hx::before, .gsub .sp-hero.hx::after { display: none; }
.gsub .hx .sp-hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.gsub .hx .sp-crumbs, .gsub .hx .sp-crumbs a { color: #5a5d6e; }
.gsub .hx .sp-crumbs a { text-underline-offset: 3px; }
.gsub .hx .eyebrow { display: inline-flex !important; align-items: center; gap: 10px; margin: clamp(20px, 2.4vw, 30px) 0 0; color: var(--blue); font-size: .78rem; letter-spacing: .16em; }
.gsub .hx .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.gsub .hx h1 { font-size: clamp(40px, 4.4vw, 72px) !important; line-height: .94 !important; margin: 16px 0 24px; max-width: 14ch; text-wrap: balance; color: var(--ink); }
.gsub .hx .sp-intro { font-size: clamp(16.5px, 1.12vw, 18.5px) !important; line-height: 1.64 !important; color: #3d404b !important; max-width: 56ch; }
.gsub .hx .sp-intro + .sp-intro { margin-top: 12px; }
.gsub .hx .sp-actions { margin-top: 30px; }
.gsub .hx .btn { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.gsub .hx .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.gsub .hx .btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.gsub .hx .btn.ghost:hover { background: var(--ink); color: #fff; }
.gsub .hx .sp-visual { position: relative; }
.gsub .hx .sp-visual .stage { box-shadow: 0 40px 80px -48px rgba(19, 27, 94, .45), 0 0 0 1px rgba(19, 27, 94, .06); }
.gsub .hx .sp-visual .stage-seo, .gsub .hx .sp-visual .stage-google { background: #fff; }
.gsub .hx .sp-visual .stage-print { background: #fff; }
.gsub .hx .sp-visual .stage-brand { background: #fff; }
.gsub .hx .sp-visual .stage-social { background: var(--ink); }
.hx-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* handwritten notes and arrows read as gimmicks: gone from the inner pages */
.gsub .note { display: none !important; }
.gsub { --hand: var(--body); }

/* other pages without a header section get a quiet band, not a blue one */
.gsub main:not(.c2):not(:has(> .sp-hero, > .wk-hero))::before { background: var(--mist) !important; }

/* ================================================================ Websites: real client sites on devices */
.hx-dev { position: relative; container-type: inline-size; aspect-ratio: 4 / 3.25; border-radius: 30px; background: color-mix(in srgb, #f06a2a 13%, #fbfbff);
  box-shadow: 0 0 0 1px rgba(19, 27, 94, .05); }
.hx-dev .hx-lap { position: absolute; left: 6cqw; top: 11cqw; width: 76cqw; }
.hx-dev .hx-lid { padding: 1.6cqw 1.6cqw 2.2cqw; border-radius: 2.6cqw 2.6cqw 1cqw 1cqw; background: #1b1c22; box-shadow: inset 0 0 0 1px #3a3c46, 0 6cqw 8cqw -5cqw rgba(19, 27, 94, .5); }
.hx-dev .hx-scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .7cqw; background: #fff; }
.hx-dev .hx-scr img, .hx-dev .hx-pscr img { display: block; width: 100%; height: auto; }
.hx-dev .hx-base { position: relative; height: 1.8cqw; margin: 0 -6cqw; border-radius: .3cqw .3cqw 2cqw 2cqw; background: #cfd2db; box-shadow: inset 0 -.5cqw 0 #b6bac6; }
.hx-dev .hx-ph { position: absolute; right: 6cqw; bottom: 6cqw; width: 22cqw; padding: .8cqw; border-radius: 4.6cqw; background: #1b1c22; box-shadow: inset 0 0 0 1px #3a3c46, 0 5cqw 7cqw -3cqw rgba(19, 27, 94, .55); z-index: 2; }
.hx-dev .hx-pscr { position: relative; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 3.9cqw; background: #fff; }
.hx-dev .hx-pscr img { position: absolute; left: 0; top: 3.2cqw; }
.hx-dev .hx-sb { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 3.2cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 2.4cqw 0 2.8cqw; background: #fff; font: 700 1.25cqw/1 var(--body); color: #111; }
.hx-dev .hx-sb i { width: 2cqw; height: .9cqw; border-radius: .25cqw; background: #111; }
.hx-dev .hx-sb::after { content: ""; position: absolute; left: 50%; top: .7cqw; width: 7.4cqw; height: 1.9cqw; margin-left: -3.7cqw; border-radius: 1cqw; background: #1b1c22; }
.hx-dev figcaption { position: absolute; left: 6cqw; top: 4.2cqw; font: 600 1.9cqw/1.2 var(--body); color: #5a5d6e; }
.hx-dev figcaption b { color: var(--ink); }

/* ================================================================ SEO: a results page */
.hx-seo { background: #fff !important; }
.hx-seo .hx-deco { background: repeating-linear-gradient(180deg, transparent 0 63px, rgba(19, 27, 94, .045) 63px 64px); -webkit-mask: linear-gradient(90deg, transparent, #000 60%); mask: linear-gradient(90deg, transparent, #000 60%); }
.hx-query { display: flex; align-items: center; gap: 12px; width: min(460px, 100%); margin-top: clamp(20px, 2.4vw, 30px); padding: 13px 18px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 6px rgba(32, 33, 36, .18); font: 500 1.02rem var(--body); color: #202124; }
.hx-query svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #4285f4; stroke-width: 2.4; stroke-linecap: round; }
.hx-query b { font-weight: 500; }
.hx-query i { width: 2px; height: 1.2em; background: #202124; animation: hxCaret 1.1s steps(1) infinite; }
@keyframes hxCaret { 50% { opacity: 0; } }
.hx-seo .eyebrow { margin-top: 22px !important; }

/* ================================================================ Branding: a brand sheet */
.hx-brand { background: #f6f3ec !important; }
.hx-swatches { display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 1fr 1fr 1fr; gap: 10px; margin-top: clamp(48px, 5vw, 72px); list-style: none; padding: 0; }
.hx-swatches li { display: flex; flex-direction: column; justify-content: flex-end; min-height: 128px; padding: 16px 18px; border-radius: 18px; background: var(--c); color: var(--t, #fff);
  box-shadow: inset 0 0 0 1px rgba(19, 27, 94, .06); font: 600 .9rem/1.3 var(--body); }
.hx-swatches li small { display: block; font: 400 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

/* ================================================================ Google profile: a map */
.hx-gbp { background: #f1f2f6 !important; }
.hx-gbp .hx-deco svg { position: absolute; right: 0; top: 0; width: 70%; height: 100%; -webkit-mask: linear-gradient(90deg, transparent, #000 35%); mask: linear-gradient(90deg, transparent, #000 35%); }

/* ================================================================ Social media: a feed */
.hx-social { background: var(--mist) !important; }
.hx-social .hx-deco { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92'%3E%3Crect x='4' y='4' width='84' height='84' rx='14' fill='%23ffffff' fill-opacity='.7'/%3E%3C/svg%3E");
  background-size: 92px 92px; -webkit-mask: linear-gradient(90deg, transparent 20%, #000 75%); mask: linear-gradient(90deg, transparent 20%, #000 75%); }

/* ================================================================ Print: a press sheet */
.hx-print { background: #fbfaf6 !important; }
.hx-print .hx-deco .crop { position: absolute; width: 34px; height: 34px; }
.hx-print .hx-deco .crop::before, .hx-print .hx-deco .crop::after { content: ""; position: absolute; background: #292929; }
.hx-print .hx-deco .crop::before { width: 34px; height: 1.5px; top: 16px; } .hx-print .hx-deco .crop::after { width: 1.5px; height: 34px; left: 16px; }
.hx-print .crop.tl { left: 28px; top: 104px; } .hx-print .crop.tr { right: 28px; top: 104px; }
.hx-print .crop.bl { left: 28px; bottom: calc(var(--sheet) + 22px); } .hx-print .crop.br { right: 28px; bottom: calc(var(--sheet) + 22px); }
.hx-print .hx-deco .reg { position: absolute; right: 74px; top: 98px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #292929; }
.hx-print .hx-deco .reg::before, .hx-print .hx-deco .reg::after { content: ""; position: absolute; background: #292929; }
.hx-print .hx-deco .reg::before { left: -8px; right: -8px; top: 13px; height: 1.5px; } .hx-print .hx-deco .reg::after { top: -8px; bottom: -8px; left: 13px; width: 1.5px; }
.hx-cmyk { display: flex; gap: 6px; margin-top: 26px; }
.hx-cmyk i { width: 22px; height: 22px; border-radius: 4px; }
.hx-cmyk i:nth-child(1) { background: #00a3e0; } .hx-cmyk i:nth-child(2) { background: #e4007c; } .hx-cmyk i:nth-child(3) { background: #ffe600; } .hx-cmyk i:nth-child(4) { background: #292929; }

/* ================================================================ Review cards: a product shot */
.hx-cards { background: rgb(234, 238, 246) !important; }
.hx-prod { position: relative; aspect-ratio: 1 / .9; }
.hx-prod img { position: absolute; width: 78%; height: auto; -webkit-mask: radial-gradient(closest-side, #000 74%, transparent); mask: radial-gradient(closest-side, #000 74%, transparent); }
.hx-prod img:first-child { left: -4%; top: 0; } .hx-prod img:last-child { right: -6%; bottom: 0; width: 66%; }
.gsub .hx-cards .sp-price { background: #fff; box-shadow: 0 14px 30px -24px rgba(19, 27, 94, .6); }

/* ================================================================ About: a person */
.hx-about { background: var(--cream) !important; }
.hx-me { position: relative; margin: 0; max-width: 470px; justify-self: center; }
.hx-me img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; box-shadow: 0 50px 80px -50px rgba(19, 27, 94, .6); }
.hx-me figcaption { position: absolute; left: -22px; bottom: 28px; padding: 14px 20px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -24px rgba(19, 27, 94, .55); font: 500 .95rem/1.35 var(--body); color: #5a5d6e; }
.hx-me figcaption b { display: block; color: var(--ink); font-size: 1.05rem; }

/* ================================================================ Towns and areas: a route line */
.hx-town, .hx-areas { background: var(--cream) !important; }
.hx-town .hx-deco, .hx-areas .hx-deco { background-image: linear-gradient(rgba(52, 89, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 89, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask: radial-gradient(70% 90% at 78% 40%, #000, transparent 75%); mask: radial-gradient(70% 90% at 78% 40%, #000, transparent 75%); }
.hx-route { padding: clamp(26px, 3vw, 40px); border-radius: 30px; background: #fff; box-shadow: 0 40px 80px -52px rgba(19, 27, 94, .5), 0 0 0 1px rgba(19, 27, 94, .06); }
.hx-route-k { margin: 0 0 22px; font: 400 .72rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: #5a5d6e; }
.hx-line { list-style: none; margin: 0; padding: 0; }
.hx-line li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: 18px; }
.hx-line .st i { position: relative; z-index: 1; justify-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.hx-line .st i::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; transform: translateX(-1px); }
.hx-line .st i::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); left: 50%; top: 50%; margin: -6px 0 0 -2px; }
.hx-line .st b { display: block; font: 400 clamp(1.25rem, 1.8vw, 1.6rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.hx-line .st span { display: block; margin-top: 4px; font-size: .9rem; color: #5a5d6e; }
.hx-line .st.here i { width: 52px; height: 52px; background: var(--blue); }
.hx-line .st.here i::before { width: 29px; height: 29px; }
.hx-line .st.here i::after { width: 15px; height: 15px; margin: -7.5px 0 0 -2px; background: var(--blue); }
.hx-line .st.here b { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.hx-line .leg { min-height: 74px; }
.hx-line .leg::before { content: ""; grid-column: 1; justify-self: center; align-self: stretch; width: 6px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--blue) 0 14px, transparent 14px 22px); margin: -6px 0; }
.hx-line .leg span { font-weight: 600; font-size: .95rem; color: var(--blue); }
.hx-near { margin-top: 26px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.hx-near p { margin: 0 0 12px; font: 400 .7rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: #5a5d6e; }
.hx-near ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hx-near a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background-color 180ms ease, color 180ms ease; }
.hx-near a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hx-near a:hover { background: var(--ink); color: #fff; }
/* the whole network on /areas */
.hx-net { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.hx-net h3 { grid-column: span 1; margin: 0 0 10px; font-size: 1rem; letter-spacing: .08em; }
.hx-net ul { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.hx-net ul::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--c, var(--blue)); }
.hx-net li a { position: relative; display: block; padding: 5px 0; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.hx-net li a::before { content: ""; position: absolute; left: -24px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c, var(--blue)); }
.hx-net li a:hover { color: var(--blue); }
.hx-net li.home a::before { background: var(--ink); box-shadow: 0 0 0 3px var(--ink); }

/* ================================================================ Blog: an editorial masthead */
.gsub .sp-hero.bl-hero { background: var(--cream) !important; padding: clamp(124px, 11vw, 156px) 0 calc(var(--sheet) + clamp(48px, 5vw, 80px)) !important; }
.gsub .sp-hero.bl-hero::before, .gsub .sp-hero.bl-hero::after { display: none; }
.gsub .bl-hero .eyebrow { display: inline-flex !important; color: var(--blue); }
.gsub .bl-hero h1 { font-size: clamp(40px, 5.2vw, 84px) !important; line-height: .94 !important; max-width: 16ch; color: var(--ink); }
.gsub .bl-hero .sp-intro, .gsub .bl-hero .bl-meta, .gsub .bl-hero .bl-meta * { color: #3d404b !important; }
.gsub .bl-post .bl-hero h1 { font-size: clamp(34px, 4vw, 60px) !important; max-width: 20ch; }
.gsub .bl-hero .sp-crumbs, .gsub .bl-hero .sp-crumbs a { color: #5a5d6e !important; }

/* ================================================================ small pages */
.hx-plain { background: var(--cream) !important; }

/* ================================================================ phones */
@media (max-width: 860px) {
  .gsub .hx .sp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .gsub .hx h1 { font-size: clamp(36px, 9.5vw, 52px) !important; }
  .hx-swatches { grid-template-columns: repeat(3, 1fr); }
  .hx-swatches li { min-height: 92px; }
  .hx-gbp .hx-deco svg { width: 100%; opacity: .5; }
  .hx-me figcaption { left: 12px; bottom: 12px; }
  .hx-net { grid-template-columns: 1fr; }
  .hx-print .crop, .hx-print .reg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hx-query i { animation: none; } }

/* the map pin sits on the profile card's corner, like a Maps info window */
.hx-pin { position: absolute; z-index: 3; left: -30px; top: -34px; width: 64px; height: 82px; filter: drop-shadow(0 14px 14px rgba(19, 27, 94, .3)); }
@media (max-width: 860px) { .hx-pin { left: 8px; top: -30px; } }

/* ================================================================ each page keeps its own tone all the way down */
.gsub main:has(> .hx-web) { --world: #fbf1ec; }
.gsub main:has(> .hx-seo) { --world: #f2f5fb; }
.gsub main:has(> .hx-brand) { --world: #f6f3ec; }
.gsub main:has(> .hx-gbp) { --world: #eef2ef; }
.gsub main:has(> .hx-print) { --world: #f7f5ee; }
.gsub main:has(> .hx-cards) { --world: #eaeef6; }
.gsub main:has(> .hx-about) { --world: #f5f2ec; }
.gsub main:has(> .hx-web, > .hx-seo, > .hx-brand, > .hx-gbp, > .hx-print, > .hx-cards, > .hx-about):not(.c2) > section:nth-of-type(even):not(.sp-hero):not(.sp-cta):not(.band):not(.navy):not(.on-blue) { background: var(--world) !important; }
.gsub main:has(> .hx-web, > .hx-seo, > .hx-brand, > .hx-gbp, > .hx-print, > .hx-cards, > .hx-about):not(.c2) > section.sp-body { background: var(--world) !important; }
/* tiles share one row instead of leaving one on its own */
.gsub .sbx-tiles { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
