/* ==========================================================================
   screens.css — Phase 1 screens: onboarding (Intro, Language, Customize your
   tour), Home, and "Where are you now?".
   Intro follows the Figma file (Frame 28 / iPhone 16 Pro - 181): the West
   Front sketch on navy, white logo, a Mercury line (Libre Caslon here), and
   the gold "botton mona". Language, Customize and Home follow the layouts in
   Mt Vernon UI.docx, in the Figma colours (tokens in guide.css).
   ========================================================================== */

/* Libre Caslon (SIL OFL, self-hosted): the brand guide's approved stand-in for Mercury. */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/libre-caslon-text-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/libre-caslon-text-latin-400-italic.woff2) format("woff2"); }

.tag-good { background: var(--good-soft); color: var(--good); }
.tag-crimson { background: var(--crimson-soft); color: var(--accent-ink); }

/* ---------------------------------------------------------- onboarding */
.onb { position: relative; min-height: 100dvh; display: flex; justify-content: center; overflow: hidden; color: #fff;
  /* What shows beside the artwork on wide screens and while it loads: the artwork's
     own navy, top to bottom (app back.webp: #0D1E30 at the top, #042433 at the foot). */
  background: linear-gradient(180deg, #0D1E30 0%, #0E2031 50%, #042433 100%); }
.onb-art { position: absolute; inset: 0; background: url(../img/intro/app\ back.webp) center top / cover no-repeat; }
.onb-art.is-dim::after { content: ""; position: absolute; inset: 0; background: rgba(4, 37, 70, .35); }
@media (min-width: 560px) {
  .onb-art { left: 50%; right: auto; width: 560px; transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
}
.onb-col { position: relative; z-index: 1; width: min(100%, 430px); padding: 0 30px calc(32px + env(safe-area-inset-bottom)); text-align: center;
  display: flex; flex-direction: column; align-items: center; }
.onb-logo { width: min(297px, 78%); height: auto; }
.onb-intro .onb-col { padding-top: max(28vh, calc(env(safe-area-inset-top) + 140px)); }
.onb-lede { font: 400 20px/1.214 var(--caslon); color: #fff; margin: 30px 0 0; max-width: 315px; text-wrap: balance; }
.onb-go { margin-top: min(17vh, 150px); min-width: 177px; font: 800 22px/1 var(--sans); text-decoration: none; }
.onb-go:hover { filter: brightness(1.04); }

/* Motion. The sketch settles in and then drifts very slowly, a soft light
   moves across it, and the logo, line and button rise in one after another.
   The sketch and the logo are named for view transitions, so going on to the
   language list keeps the background still and moves the logo up into place.
   (scale and translate, not transform: wide screens centre the art with transform.) */
.onb-art { view-transition-name: onb-art; }
.onb-logo { view-transition-name: onb-logo; }
.onb-intro .onb-art { transform-origin: 50% 35%; animation: onbDrift 28s ease-in-out infinite alternate; }
.onb-intro.is-entering .onb-art { animation: onbArtIn 1.8s cubic-bezier(.2, .7, .2, 1) both, onbDrift 28s ease-in-out 1.8s infinite alternate; }
.onb-intro::after { content: ""; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(38% 26% at 35% 22%, rgba(255, 222, 160, .16), transparent 70%); animation: onbLight 16s ease-in-out infinite alternate; }
.onb-intro.is-entering .onb-logo { animation: onbUp .9s .35s cubic-bezier(.2, .8, .2, 1) both; }
.onb-intro.is-entering .onb-lede { animation: onbUp .9s .6s cubic-bezier(.2, .8, .2, 1) both; }
.onb-intro.is-entering .onb-go { animation: onbUp .8s .85s cubic-bezier(.2, .8, .2, 1) both; }
.onb-go { position: relative; overflow: hidden; isolation: isolate; transition: scale .15s var(--ease), filter .15s; }
.onb-go:active { scale: .97; }
.onb-go::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; translate: -120% 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .42) 50%, transparent 70%); animation: onbSheen 7s 2s ease-in-out infinite; }
.onb-lang h1, .onb-lang .onb-sub { animation: onbUp .5s .05s cubic-bezier(.2, .8, .2, 1) both; }
.onb-lang .lang { animation: onbUp .5s calc(var(--i, 0) * 45ms + 120ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes onbArtIn { from { opacity: 0; scale: 1.1; } to { opacity: 1; scale: 1; } }
@keyframes onbDrift { from { scale: 1; translate: 0 0; } to { scale: 1.06; translate: -1.4% -1%; } }
@keyframes onbLight { from { translate: -8% -4%; opacity: .55; } to { translate: 12% 8%; opacity: 1; } }
@keyframes onbUp { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes onbSheen { 0% { translate: -120% 0; } 16%, 100% { translate: 120% 0; } }
@media (prefers-reduced-motion: reduce) {
  .onb-intro .onb-art, .onb-intro.is-entering .onb-art, .onb-intro::after, .onb-go::after { animation: none; }
}

/* Kids (kids.js): the button under Get Started, the adventures, one adventure full screen. */
/* Drawn like the sketch behind it: a frosted navy card, a hand-drawn pencil outline,
   Get Started's type, and a hand-drawn gold star beside the word. */
.onb-kids { margin-top: 16px; min-width: 177px; min-height: 52px; gap: 10px; padding: 10px 26px; border: 0; text-decoration: none; color: #fff;
  font: 800 22px/1 var(--sans); background: rgba(4, 37, 70, .45);   /* the same type as Get Started */
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: none; transition: scale .15s var(--ease), background .2s; }
.onb-kids:hover { background: rgba(4, 37, 70, .6); }
.kb-line { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); overflow: visible; pointer-events: none; }
.kb-line path { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .92; }
.kb-line .kb-line2 { stroke-width: 1.1; opacity: .45; }
.kb-star { position: relative; z-index: 1; width: 24px; height: auto; margin-left: -4px; }
@media (hover: hover) {
  .onb-kids:hover .kb-line path { animation: kbDrawOnce .9s cubic-bezier(.6, .1, .3, 1) both; }
  .onb-kids:hover .kb-line .kb-line2 { animation-delay: .12s; }
  .onb-kids:hover .kb-star { animation: kbTwirlOnce .7s cubic-bezier(.3, 1.6, .5, 1) both; }
}
@keyframes kbDrawOnce { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kbTwirlOnce { from { rotate: 0deg; scale: 1; } 50% { scale: 1.3; } to { rotate: 144deg; scale: 1; } }
.onb-kids:active { scale: .97; }
/* The little friends: tucked behind the button, they pop out to its edges. */
.onb-kids { position: relative; overflow: visible; isolation: isolate; }
.onb-intro.is-entering .onb-kids { animation: onbUp .8s 1s cubic-bezier(.2, .8, .2, 1) both; }
.kb-txt { position: relative; z-index: 1; }
.kb-pop { position: absolute; left: 50%; top: 50%; z-index: -1; font-size: 22px; line-height: 1; pointer-events: none; opacity: 0; scale: .2;
  translate: -50% -50%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.kb-spark { font-size: 18px; color: #FFD166; text-shadow: 0 0 8px rgba(255, 209, 102, .9); }
.kb-spark2 { color: #7EE0FF; text-shadow: 0 0 8px rgba(126, 224, 255, .9); }
@media (hover: hover) {
  .onb-kids:hover .kb-pop { animation: kbPop .5s calc(var(--i) * 55ms) cubic-bezier(.3, 1.7, .5, 1) forwards; }
}
@keyframes kbPop { from { opacity: 0; scale: .2; translate: -50% -50%; rotate: 0deg; }
  to { opacity: 1; scale: 1; translate: calc(-50% + var(--x)) calc(-50% + var(--y)); rotate: var(--r); } }
@media (prefers-reduced-motion: reduce) { .onb-kids, .onb-intro.is-entering .onb-kids, .kb-pop, .onb-kids:hover .kb-pop, .kb-line path, .kb-star { animation: none !important; } }
.kids { padding-top: calc(env(safe-area-inset-top) + 18px); padding-bottom: 32px; max-width: 760px; }
.kids-head { display: flex; align-items: center; gap: 12px; }
.kids-head h1 { font: 800 32px/1.1 var(--display); margin: 0; }
.kids-sub { color: var(--muted); font-size: 17px; margin: 6px 0 16px; }
.kids-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .kids-list { grid-template-columns: 1fr 1fr; } }
.kid-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s var(--ease); }
.kid-card:active { transform: scale(.985); }
.kid-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--well); }
.kid-txt { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 4px; }
.kid-txt b { font: 700 20px/1.2 var(--serif); }
.kid-txt span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.kid-go { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; margin: 10px 16px 16px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 800 15px/1 var(--sans); }
.kid-go .ic { width: 16px; height: 16px; }
.kids-play { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #fff; }
.kids-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: calc(env(safe-area-inset-top) + 4px) 12px 4px; background: var(--header); color: #fff; }
.kids-bar b { font: 700 15px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kids-back { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 8px 12px 8px 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 800 14px/1 var(--sans); text-decoration: none; }
.kids-back .ic { width: 18px; height: 18px; }
.kids-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.kids-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.kids-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-weight: 700; }

.onb-col-top { padding-top: calc(env(safe-area-inset-top) + 48px); text-align: left; align-items: stretch; }
@media (max-height: 700px) { .onb-col-top { padding-top: calc(env(safe-area-inset-top) + 28px); } .onb-col-top .onb-logo { margin-bottom: 22px; } }
.onb-col-top .onb-logo { width: 220px; align-self: center; margin-bottom: 30px; }
.onb-lang h1 { color: #fff; font: 800 30px/1.1 var(--display); text-align: center; }
.onb-lang .onb-sub { text-align: center; }
.onb-sub { color: rgba(255, 255, 255, .8); margin: 6px 0 18px; }
.lang-list { display: grid; gap: 10px; }
.lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 16px; text-align: left;
  background: rgba(244, 241, 234, .92); color: var(--ink); border: 2px solid transparent; border-radius: var(--r); box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  transition: transform .15s var(--ease), border-color .15s; }
.lang:active { transform: scale(.99); }
.lang.is-on { border-color: var(--accent); }
.lang-txt { display: flex; flex-direction: column; gap: 2px; }
.lang-txt b { font: 700 17px/1.2 var(--serif); color: #1A1919; }
.lang-txt small { font-size: 13px; color: #4C4F50; }
.lang .tag { flex: none; background: rgba(4, 37, 70, .07); color: #4C4F50; }
.lang .tag-good { background: #E6EEDC; color: #374F29; }
.onb-note { color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.5; margin: 18px 0 0; }

/* ------------------------------------------------- Customize your tour */
.pick-view { padding-top: calc(env(safe-area-inset-top) + 26px); padding-bottom: 226px; max-width: 760px; }
.pick-view h1 { font: 800 30px/1.1 var(--display); }
.pick-sub { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 6px 0 4px; }
.pick-note { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0 0 16px; }
.pick-int { color: var(--ink); font-weight: 700; }
/* Step 2, a short visit with interests: with or without the Mansion. */
.pick-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.trade { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: var(--r); border: 1.5px solid var(--rule); background: var(--card); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.trade b { font: 800 14.5px/1.25 var(--sans); }
.trade small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.trade.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
/* Interest cards, two across: the photo on top, the name and one short line
   below. Selected: the gold ring and the 1-2-3 order badge. */
.pick-step { margin: 0 0 6px; font: 800 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pick-top { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.pick-top .pick-step { margin: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
.pick { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); text-align: left; font: inherit; color: var(--body); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.pick:active { transform: scale(.985); }
.pick-photo { display: block; aspect-ratio: 16 / 10; background: var(--well) center / cover no-repeat; }
.pick-plain { background: repeating-linear-gradient(135deg, var(--well) 0 14px, var(--field) 14px 28px); }
.pick-in { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.pick-nm { font: 700 16px/1.2 var(--serif); color: var(--ink); }
.pick-bl { font-size: 13px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-rank { position: absolute; z-index: 2; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--navy); font: 900 14px/1 var(--sans); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transform: scale(.4); opacity: 0; transition: transform .18s var(--ease), opacity .18s; }
.pick.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent), var(--shadow); }
.pick.is-on::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 3px solid var(--accent); border-radius: inherit; pointer-events: none; }
.pick.is-on .pick-rank { transform: none; opacity: 1; }
.pick-presets { margin-top: 2px; }
/* Step 2: "Your walk", the places the chosen time buys and why. */
.pick-plan { margin-top: 30px; }
.pick-plan .pick-h2 { margin-top: 0; }
.pick-why { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--body); }
.pick-group { padding: 12px 14px; border-radius: var(--r); background: var(--well); }
.pick-group + .pick-group { margin-top: 8px; }
.pick-group h3 { margin: 0 0 4px; font: 800 11.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pick-group p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.pick-more { color: var(--muted); font-weight: 700; white-space: nowrap; }
.pick-h2 { margin: 28px 0 10px; font: 700 20px/1.2 var(--serif); }
.pick-view .hint { margin: -4px 0 10px; }
.pick-alt { margin-top: 8px; }
.pick-alt .chip { min-height: 38px; font-size: 13.5px; }
/* The fade starts higher and is solid before the line above the button, so
   that line never sits on the cards scrolling underneath. */
.pick-foot { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; text-align: center; padding: 56px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, color-mix(in srgb, var(--page) 0%, transparent) 0%, color-mix(in srgb, var(--page) 70%, transparent) 22%, var(--page) 40%); }
.pick-line { font: 700 14px/1.4 var(--sans); color: var(--body); margin: 0 0 10px; min-height: 1.4em; }
.pick-go { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 34px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 700 18px/1 var(--serif); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.pick-go i { font-style: normal; font-size: 20px; transition: transform .16s ease; }
.pick-go:hover i { transform: translateX(3px); }
.pick-skip { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; text-decoration: none; }
.pick-skip:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Home */
.home { padding-bottom: 8px; }
.h-hero { position: relative; height: clamp(280px, 44vh, 400px); overflow: hidden; background: var(--header); }
.h-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* The two picture layers of the changing header (home.js HERO) take turns; both sit under the gradient (z 2) and the text (z 3). */
.h-hero-fade { opacity: 0; transition: opacity 2s cubic-bezier(.45, 0, .55, 1); pointer-events: none; }   /* ease in and out: no pop at either end */
.h-hero-fade:not([src]) { display: none; }
.h-hero-fade.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .h-hero-fade { transition: none; } }
.h-hero::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(4, 37, 70, .35) 0%, rgba(4, 37, 70, 0) 30%, rgba(4, 37, 70, .15) 55%, rgba(4, 37, 70, .82) 100%); }
/* Text in the photo lines up with the 760px content column below it at any width. */
.h-hero { --h-inset: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad))); }
.h-logo { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 20px); left: var(--h-inset); width: 190px; height: auto; }
.h-hero-txt { position: absolute; z-index: 3; left: var(--h-inset); right: var(--h-inset); bottom: 22px; color: #fff; }
.h-eyebrow { font: 800 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .9); margin: 0 0 10px; }
.h-hero h1 { color: #fff; font: 800 clamp(26px, min(8.4vw, 4.6vh), 44px)/1.08 var(--display); text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.h-body { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.h-resume { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: var(--r-lg); background: var(--card); border: 1.5px solid var(--accent-ink); text-decoration: none; }
.h-resume-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-ink); color: #fff; display: grid; place-items: center; flex: none; }
.h-resume small { display: block; font: 800 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.h-resume b { display: block; font: 700 16px/1.25 var(--serif); color: var(--ink); margin-top: 2px; }
.h-walk { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.h-walk-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.h-walk span { flex: 1; min-width: 0; }
.h-walk small { display: block; font: 800 11.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.h-walk b { display: block; font: 700 17px/1.3 var(--serif); margin-top: 3px; }
.h-walk > .ic { color: var(--muted); }
.h-search { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule);
  box-shadow: var(--shadow); color: var(--muted); font: 500 16.5px/1 var(--sans); text-align: left; }
.h-short h2 { margin: 12px 0 12px; font: 700 23px/1.2 var(--serif); }
.h-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(76%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.h-scroller::-webkit-scrollbar { display: none; }
.h-route { scroll-snap-align: start; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-align: left; color: var(--ink); }
/* "Right now" cards are links; a card with a time on it carries a small pulsing gold dot. */
a.h-route { position: relative; text-decoration: none; }
.h-route-dot { position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; border-radius: 50%; background: #EBAD3E; border: 2px solid #fff; animation: routePulse 1.6s ease-out infinite; }
@keyframes routePulse { from { box-shadow: 0 0 0 0 rgba(235, 173, 62, .8); } to { box-shadow: 0 0 0 10px rgba(235, 173, 62, 0); } }
@media (prefers-reduced-motion: reduce) { .h-route-dot { animation: none; } }
.h-route-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.h-route-in { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 12px; min-width: 0; }
.h-route-in > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.h-route-in b { font: 700 17px/1.25 var(--serif); }
.h-route-in span { font-size: 14px; color: var(--muted); }
.h-route-in small { font: 800 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-top: 4px; }

/* ---------------------------------------------------- Where are you now */
.zc-mv { --zc: #2A404B; } .zc-mansion { --zc: #BF2B45; } .zc-outbuildings { --zc: #8A6F3C; }
.zc-gardens { --zc: #4F6A2C; } .zc-distillery { --zc: #B0612A; } .zc-library { --zc: #366A8D; }
.z-head { display: flex; align-items: flex-start; gap: 12px; padding-top: calc(env(safe-area-inset-top) + 18px); }
.z-head h1 { font: 800 32px/1.08 var(--display); }
.z-head .hint { margin: 4px 0 0; }
.z-head .eyebrow { margin: 0 0 4px; }
.v-lang { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--well); color: var(--ink); text-decoration: none; }
.v-lang span { flex: 1; min-width: 0; }
.v-lang b { display: block; font: 700 17px/1.25 var(--serif); }
.v-lang small { display: block; color: var(--muted); font-size: 14px; }
.v-lang .ic { color: var(--muted); }
.zone-list { display: grid; gap: 14px; margin-top: 14px; }
.zone-card { position: relative; display: block; min-height: 170px; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); color: var(--body); text-decoration: none; }
.zone-art { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; background: center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .35) 30%, #000 70%); mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .35) 30%, #000 70%); }
.zone-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; max-width: 74%; }
.zone-nm { font: 700 23px/1.2 var(--serif); color: var(--ink); }
.zone-bl { font-size: 15px; line-height: 1.45; color: var(--muted); text-shadow: 0 0 6px var(--card), 0 0 2px var(--card); }
.zone-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 2px; }
.z-rule { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font: 800 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.z-rule::before, .z-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.z-blurb { margin: 10px 0 14px; }
.z-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.z-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.z-row span:not(.z-bar) { flex: 1; min-width: 0; }
.z-row b { display: block; font: 700 16.5px/1.25 var(--serif); }
.z-row small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.z-row > .ic { color: var(--muted); }
.z-thumb { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.z-bar { width: 8px; height: 40px; border-radius: 4px; background: var(--zc); flex: none; }
.z-group { padding: 14px 12px 14px 14px; }

/* Dark mode: lighter zone figures (they are text), and softer card shadows. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .zc-mv { --zc: #96AEC4; } :root:not([data-theme="light"]) .zc-mansion { --zc: #F0808F; }
  :root:not([data-theme="light"]) .zc-outbuildings { --zc: #E5B650; } :root:not([data-theme="light"]) .zc-gardens { --zc: #B4BD8B; }
  :root:not([data-theme="light"]) .zc-distillery { --zc: #E8933D; } :root:not([data-theme="light"]) .zc-library { --zc: #96AEC4; }
}
:root[data-theme="dark"] .zc-mv { --zc: #96AEC4; } :root[data-theme="dark"] .zc-mansion { --zc: #F0808F; }
:root[data-theme="dark"] .zc-outbuildings { --zc: #E5B650; } :root[data-theme="dark"] .zc-gardens { --zc: #B4BD8B; }
:root[data-theme="dark"] .zc-distillery { --zc: #E8933D; } :root[data-theme="dark"] .zc-library { --zc: #96AEC4; }

/* Phones and tablets: Home is exactly one screen, no scrolling. The photo
   header takes what the cards leave (within limits); the cards keep their size. */
@media (max-width: 1023px) {
  body[data-view="home"] .main, body[data-view="home"].has-mini .main { padding-bottom: 0; }
  .home { display: flex; flex-direction: column; height: calc(100dvh - var(--nav-space)); padding-bottom: 0; overflow: hidden; }
  /* The mini-player floats over the bottom of Home, as on every screen; the cards keep their size. */
  .h-hero { flex: none; height: clamp(150px, 29vh, 280px); }
  .h-body { flex: 1 1 auto; min-height: 0; gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  /* "If your time is short" fills what is left: bigger photos when there is room. */
  .h-short { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .h-short h2 { margin: 2px 0 8px; font-size: 20px; flex: none; }
  .h-scroller { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); padding-bottom: 4px; }
  .h-route { height: 100%; min-height: 0; }
  .h-route-img { aspect-ratio: auto; flex: 1 1 0; min-height: 44px; height: 0; }
  .h-route-in { flex: none; }
}
@media (max-width: 1023px) and (max-height: 740px) {
  .h-walk { padding-top: 10px; padding-bottom: 10px; }
  .h-route-in { padding-top: 8px; padding-bottom: 10px; gap: 2px; }   /* short screens: the photo gives way; the reason ("Head to the line now") stays */
  .h-walk-img { width: 48px; height: 48px; }
  .h-search { min-height: 48px; }
  .h-body { gap: 8px; padding-top: 10px; }
}

/* ------------------------------------------------------------- desktop */
@media (min-width: 1024px) {
  .h-hero { height: 360px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .home { max-width: var(--maxw); margin: 0 auto; }   /* the photo header is as wide as the cards below it */
  .h-logo { display: none; }                    /* the rail already carries the logo */
  .h-scroller { grid-auto-columns: calc((100% - 28px) / 3); }
  .pick-foot { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .pick, .pick-rank, .lang, .pick-go i { transition: none; } }
