/* The landing page: ONE SCREEN that never scrolls. The words on the left, and on the right
   a glass "stage" holding a guided tour of the planner: a rail of seven steps, each one a
   working piece of the real thing (js/showcase.js, js/landing-globe.js), ticked off as the
   visitor uses it.

   Built from design/brand/Redesign/: the liquid-glass hero (split layout, glass panels, a
   hover-reactive icon grid, a stacked deck of cards) and Design.md (Inter + JetBrains Mono,
   8px control radius, the light palette).

   Glass = a translucent fill + backdrop blur + a faint noise grain + a gradient hairline.
   The blur sits on a pseudo-element BEHIND the content, never on the element holding the
   text, and nothing uses 3D transforms: those are what made the old cards look soft. */

/* ============================== THEMES ==============================
   Two: light and dark. html[data-theme] always holds the resolved one: set before the first
   paint by the inline script in index.html (the visitor's saved choice, else the device's
   setting) and switched by the sun/moon button in the header.

   LIGHT is Design.md: a white ground, the orange #FD6703 as the main button (with black text,
   7:1) and pink and lavender as the supporting glow colours. Orange TEXT uses a deeper shade,
   because #FD6703 only reaches 2.9:1 on white.
   DARK is the reference HTML's own look: black, white glass, sky/indigo/emerald glows. */
:root,:root[data-theme=light]{color-scheme:light;
--landing-bg:#ffffff;--landing-ink:#111827;--landing-muted:#4b5563;--landing-line:#e5e7eb;
  --accent:#c2410c;--pop:#fd6703;--cta:#fd6703;--cta-hover:#ea5f00;--cta-ink:#111827;
  --tint:color-mix(in srgb,#febed9 30%,transparent);--card:#ffffff;--card-edge:#e5e7eb;
  --field:#ffffff;--field-edge:#d1d5db;--track:#f3e8ff;
  --c1:#fd6703;--c2:#f472b6;--c3:#a855f7;--c4:#fdba74;--c5:#febed9;--c6:#9ca3af;
  /* The globe, "lit": the same tokens and values as the planner's (styles/tokens.css). */
  --globe-land-lit:#ffc48f;--globe-line-alpha:.55;--globe-line-width:.5;--globe-shade:1.8;
  --globe-ocean:#ffffff;--globe-land:#b8400a;--globe-line:#ffffff;--globe-grid:#111827;--globe-pin:#111827;--globe-rim:rgba(17,24,39,.28);
  --warn:#b91c1c;--warn-bg:#fef2f2;--warn-edge:#fecaca;--ok:#15803d;--ok-bg:#f0fdf4;--ok-edge:#bbf7d0;
  --shadow:#4b2a3f;
  --glass:color-mix(in srgb,#ffffff 60%,transparent);--glass-strong:color-mix(in srgb,#ffffff 82%,transparent);
  --edge-a:color-mix(in srgb,#ffffff 95%,transparent);--edge-b:color-mix(in srgb,#fd6703 25%,transparent);
  --glow-1:#febed9;--glow-2:#fd6703;--glow-3:#f3e8ff;--glow-strength:38%;
  --grid-icon:color-mix(in srgb,#111827 9%,transparent);--grid-hot:#fd6703;
  --fade-from:#111827;--fade-to:#fd6703;
  --mono:'JetBrains Mono',ui-monospace,monospace;
  font-family:Inter,system-ui,sans-serif;color:var(--landing-ink);background:var(--landing-bg);font-synthesis:none}
:root[data-theme=dark]{color-scheme:dark;
--landing-bg:#050608;--landing-ink:#f8fafc;--landing-muted:#9aa3ae;--landing-line:color-mix(in srgb,#ffffff 10%,transparent);
  --accent:#7dd3fc;--pop:#a5b4fc;--cta:#f4f4f5;--cta-hover:#ffffff;--cta-ink:#18181b;
  --tint:color-mix(in srgb,#ffffff 5%,transparent);--card:#0e1116;--card-edge:color-mix(in srgb,#ffffff 12%,transparent);
  --field:#0f1318;--field-edge:color-mix(in srgb,#ffffff 16%,transparent);--track:color-mix(in srgb,#ffffff 12%,transparent);
  --c1:#38bdf8;--c2:#818cf8;--c3:#34d399;--c4:#e879f9;--c5:#fbbf24;--c6:#94a3b8;
  --globe-land-lit:#7fd0f3;--globe-shade:1.5;
  --globe-ocean:#0b1a26;--globe-land:#123f58;--globe-line:#0b1a26;--globe-grid:#7dd3fc;--globe-pin:#f87171;--globe-rim:rgba(255,255,255,.2);
  --warn:#f87171;--warn-bg:color-mix(in srgb,#f87171 12%,transparent);--warn-edge:color-mix(in srgb,#f87171 35%,transparent);
  --ok:#34d399;--ok-bg:color-mix(in srgb,#34d399 12%,transparent);--ok-edge:color-mix(in srgb,#34d399 35%,transparent);
  --shadow:#000000;
  --glass:color-mix(in srgb,#ffffff 4%,transparent);--glass-strong:color-mix(in srgb,#ffffff 7%,transparent);
  --edge-a:color-mix(in srgb,#ffffff 22%,transparent);--edge-b:color-mix(in srgb,#ffffff 4%,transparent);
  --glow-1:#0ea5e9;--glow-2:#6366f1;--glow-3:#10b981;--glow-strength:22%;
  --grid-icon:color-mix(in srgb,#ffffff 9%,transparent);--grid-hot:#7dd3fc;
  --fade-from:#ffffff;--fade-to:color-mix(in srgb,#ffffff 62%,transparent)}

/* ============================== BASE ============================== */
/* ONE SCREEN. Nothing scrolls: the page is exactly the viewport, and the root size scales
   with both width and height so the same layout fits a 1280×720 laptop and a 4K screen.
   If a panel's content is ever taller than its slot (very short windows), that panel
   scrolls inside itself; the page never does. */
html{font-size:clamp(14px,calc(.45vw + .6vh + 4px),30px)}
html,body{height:100%;overflow:hidden}
*{box-sizing:border-box}
body{margin:0;background:var(--landing-bg);color:var(--landing-ink);line-height:1.55}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ico{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.skip-link{position:fixed;top:-5rem;left:1rem;z-index:200;background:var(--card);padding:1rem;border-radius:.5rem}.skip-link:focus{top:1rem}
.rd-mono{font-family:var(--mono);font-size:.75rem;font-weight:600;color:var(--landing-muted)}

.rd-backdrop{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none}
.glow{position:absolute;width:46rem;height:46rem;border-radius:50%;filter:blur(90px);
  background:radial-gradient(circle,color-mix(in srgb,var(--g) var(--glow-strength),transparent),transparent 68%)}
.glow-a{--g:var(--glow-1);top:-18rem;right:-8rem}
.glow-b{--g:var(--glow-2);top:25%;left:-22rem}
.glow-c{--g:var(--glow-3);bottom:-24rem;right:20%}

/* ============================== GLASS ============================== */
.glass{position:relative;isolation:isolate;background:transparent;border-radius:1rem}
.glass::after{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),var(--glass);
  -webkit-backdrop-filter:blur(14px) saturate(1.35);backdrop-filter:blur(14px) saturate(1.35);
  box-shadow:inset 0 1px 0 color-mix(in srgb,#ffffff 30%,transparent)}
.glass::before{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(140deg,var(--edge-a),transparent 38%,transparent 62%,var(--edge-b));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}

/* ============================== BUTTONS vs LABELS ==============================
   One rule, so nobody has to guess: anything you can press is FILLED (or, for the quiet
   ones, has an arrow), with an 8px radius. Labels and statuses are never boxed. */
.rd-mini-btn{display:inline-flex;align-items:center;gap:.3rem;border:0;border-radius:.5rem;padding:.4rem .75rem;font-size:.75rem;font-weight:600;white-space:nowrap;
  background:var(--cta);color:var(--cta-ink);box-shadow:0 .4rem .9rem -.6rem color-mix(in srgb,var(--cta) 85%,transparent)}
.rd-mini-btn:hover:not(:disabled){background:var(--cta-hover)}
.rd-mini-btn:disabled{background:transparent;color:var(--landing-muted);box-shadow:none;cursor:default}
/* The demos' status chips become plain text. */
.tour-card .fig-chip{border:0;background:transparent;padding:0;border-radius:0;font-weight:600;margin-top:.75rem}
.tour-card .fig-chip-place{box-shadow:none;bottom:.25rem;color:var(--landing-ink)}
.tour-card .place-tag{border:0;background:transparent;padding:0;font-family:var(--mono);font-size:.6875rem}

/* ============================== SCREEN ============================== */
.rd-screen{height:100vh;height:100dvh;max-width:96rem;margin:0 auto;padding:0 clamp(1rem,3vw,3rem);display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.rd-top{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 0}
.rd-brand{display:inline-flex;align-items:center;gap:.55rem;font-weight:600;letter-spacing:-.03em;font-size:1.05rem}
.rd-brand img{width:1.75rem;height:1.75rem;object-fit:contain}

.rd-hero{min-height:0;display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.62fr);gap:clamp(1.5rem,4vw,4.5rem);align-items:center;padding-bottom:.75rem}
.rd-intro{display:flex;flex-direction:column;align-items:flex-start}
.rd-intro h1{font-size:clamp(2.4rem,3.6vw,3.6rem);line-height:1;font-weight:600;letter-spacing:-.045em}
.rd-fade{display:block;background:linear-gradient(180deg,var(--fade-from),var(--fade-to));-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.08em}
.rd-lede{margin:1.25rem 0 1.75rem;max-width:24rem;font-size:1.0625rem;line-height:1.6;color:var(--landing-muted)}
.rd-note{margin-top:.9rem;font-size:.75rem;color:var(--landing-muted)}
.rd-footer{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0 .9rem;font-size:.6875rem;color:var(--landing-muted)}
.rd-footer a:hover{color:var(--landing-ink)}

/* ============================== THE STAGE: a guided tour ============================== */
.rd-stage{height:100%;max-height:48rem;min-height:0;border-radius:1.5rem;overflow:hidden;display:grid;grid-template-columns:12rem minmax(0,1fr);
  box-shadow:0 2.5rem 5rem -3rem color-mix(in srgb,var(--shadow) 40%,transparent)}
.rd-stage::after{background:
  radial-gradient(60% 55% at 18% 12%,color-mix(in srgb,var(--glow-1) 30%,transparent),transparent 70%),
  radial-gradient(55% 60% at 88% 92%,color-mix(in srgb,var(--glow-2) 45%,transparent),transparent 70%),
  radial-gradient(45% 45% at 80% 15%,color-mix(in srgb,var(--glow-3) 30%,transparent),transparent 70%),var(--glass)}
.rd-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--cols,12),1fr);grid-auto-rows:1fr;padding:.75rem;gap:.25rem;z-index:0}
.rd-grid span{display:grid;place-items:center;border-radius:.6rem;font-size:1.1rem;
  color:color-mix(in srgb,var(--grid-hot) calc(var(--heat,0) * 100%),var(--grid-icon));background:color-mix(in srgb,var(--grid-hot) calc(var(--heat,0) * 9%),transparent)}
.rd-grid .ico{stroke-width:1.5}

/* The rail: the planner's own way of moving between sections, drawn as the "segmented radio
   with animated glider" from design/brand/Redesign/radio/. Each step is a bare icon and its
   label; a 1px track runs down the left, and a glowing segment (.rail-glider, positioned by
   landing.js) slides to the chosen step with the file's overshoot, washing a soft glow out
   behind it. On narrow screens the track runs along the bottom of the row of icons. */
:root{--glide:#fd6703;--glide-text:#c2410c;--glide-track:color-mix(in srgb,#111827 14%,transparent)}
:root[data-theme=dark]{--glide:#7dd3fc;--glide-text:#7dd3fc;--glide-track:color-mix(in srgb,#ffffff 16%,transparent)}
.tour-rail{position:relative;z-index:2;display:flex;flex-direction:column;gap:.2rem;padding:1rem .7rem 1rem 1.2rem;border-right:1px solid var(--landing-line);
  background:color-mix(in srgb,var(--landing-bg) 35%,transparent)}
.rail-track{position:absolute;left:.7rem;top:1rem;bottom:1rem;width:1px;z-index:0;pointer-events:none;
  background:linear-gradient(0deg,transparent 0%,var(--glide-track) 50%,transparent 100%)}
.rail-glider{position:absolute;left:.7rem;top:0;width:1px;height:var(--gh,2.5rem);z-index:0;pointer-events:none;
  transform:translateY(var(--gy,1rem));background:linear-gradient(0deg,transparent 0%,var(--glide) 50%,transparent 100%)}
.rail-glider::before{content:"";position:absolute;height:60%;width:300%;top:50%;transform:translateY(-50%);background:var(--glide);filter:blur(10px)}
.rail-glider::after{content:"";position:absolute;left:0;height:100%;width:9.5rem;
  background:linear-gradient(90deg,color-mix(in srgb,var(--glide) 11%,transparent) 0%,transparent 100%)}
.tour-tab{position:relative;z-index:1;display:flex;align-items:center;gap:.6rem;width:100%;padding:.75rem .5rem;border:0;border-radius:.6rem;background:transparent;text-align:left;font-size:.8125rem;font-weight:500;color:var(--landing-muted)}
.tour-tab:hover{color:var(--landing-ink)}
.tour-tab-ico{display:grid;place-items:center;font-size:1rem}
.tour-tab[aria-selected=true]{color:var(--glide-text)}
.tour-tick{margin-left:auto;font-size:.9rem;stroke-width:2.4;color:var(--ok);opacity:0}
.tour-tab.is-done .tour-tick{opacity:1}

.tour-main{position:relative;z-index:2;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:1rem;padding:1.25rem clamp(1rem,2vw,1.75rem)}
.tour-guide{display:grid;gap:.25rem}
.tour-prompt{font-size:1.0625rem;font-weight:500;letter-spacing:-.015em;line-height:1.4;max-width:36rem}
.tour-guide.is-done .tour-prompt{color:var(--ok)}
.tour-panels{min-height:0;display:grid}
.tour-panel{grid-area:1/1;min-height:0;display:grid;place-items:center;overflow:auto;padding:.25rem}
.tour-card{width:min(100%,34rem);max-height:100%;padding:1.1rem 1.25rem;border-radius:1.1rem;
  box-shadow:0 1.5rem 3rem -2rem color-mix(in srgb,var(--shadow) 50%,transparent)}
.tour-card::after{background:var(--glass-strong)}
.rd-inset-head{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;margin-bottom:.85rem}
.rd-inset-head>.ico{color:var(--accent);font-size:1rem}
.rd-inset-head>.rd-mono,.rd-inset-head>.rd-mini-btn{margin-left:auto}
.tour-nav{display:flex;align-items:center;gap:1rem}
.tour-back{display:inline-flex;align-items:center;gap:.4rem;border:0;background:transparent;padding:.5rem .25rem;font-size:.875rem;font-weight:500;color:var(--landing-muted)}
.tour-back .ico{transform:scaleX(-1);stroke-width:2}
.tour-back:hover{color:var(--landing-ink)}
.tour-back:disabled{visibility:hidden}
.tour-progress{flex:1;height:.25rem;border-radius:1rem;background:var(--track);overflow:hidden}
.tour-progress i{display:block;height:100%;background:var(--cta);transform-origin:left;transform:scaleX(var(--p,0))}
.tour-next{min-height:2.6rem;font-size:.875rem}

/* Fit the planner's demos into the card. */
.tour-card .globe-search{margin-bottom:.5rem}
.tour-card #globe-input{border-radius:.5rem;min-height:2.6rem}
.tour-card .globe-holder{min-height:0;padding-bottom:1.75rem}
.tour-card #globe-canvas{width:min(100%,17rem,34vh)}
.tour-card .fig-donut{width:min(9.5rem,22vh);height:auto}
.tour-card .fig-donut-row{gap:1.25rem}
.tour-card .fig-legend{gap:.1rem}
.tour-card .fig-tasks label{font-size:.875rem;padding:.35rem .4rem}
.tour-card .fig-places li{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.tour-card .fig-controls{gap:.75rem 1.25rem}
.tour-credit{margin-top:.75rem;font-size:.6875rem;line-height:1.5;color:var(--landing-muted);text-align:center}

/* The costs step: one card for the place chosen in step 1. */
.cc-wrap{display:grid;place-items:center}
.rd-cost-card{position:relative;width:min(21rem,100%);border-radius:1rem;padding:1rem 1.1rem;
  box-shadow:0 1.5rem 2.5rem -1.25rem color-mix(in srgb,var(--shadow) 45%,transparent)}
.rd-cost-card::after{background:color-mix(in srgb,var(--card) 92%,transparent)}
.rd-cc-head{display:flex;align-items:center;gap:.65rem}
.rd-cc-ico{display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:.6rem;font-size:1.05rem;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
.rd-cc-name{font-weight:600;letter-spacing:-.02em;line-height:1.2}
.rd-cc-head .rd-mono{display:block;font-size:.6875rem}
.rd-cc-rows{margin:.75rem 0 0;padding:0;display:grid}
.rd-cc-rows div{display:flex;justify-content:space-between;font-size:.8125rem;padding:.3rem 0;border-bottom:1px solid var(--landing-line)}
.rd-cc-rows dt{color:var(--landing-muted)}
.rd-cc-rows dd{margin:0;font-variant-numeric:tabular-nums;font-weight:500}
.rd-cc-total{display:flex;align-items:baseline;justify-content:space-between;margin-top:.6rem}
.rd-cc-total span{font-size:.75rem;color:var(--landing-muted)}
.cc-switch{display:flex;gap:.375rem;margin-top:.85rem}
.cc-switch button{flex:1;min-height:2.2rem;padding:.35rem .6rem;border:1px solid var(--field-edge);border-radius:.5rem;background:var(--field);
  color:var(--landing-ink);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer}
.cc-switch button[aria-checked=true]{border-color:var(--glide);background:color-mix(in srgb,var(--glide) 10%,var(--field));color:var(--glide-text)}
.cc-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.rd-cc-rows small{font-size:.75em;color:var(--landing-muted)}
.cc-where,.cc-none{margin-top:.6rem;font-size:.75rem;color:var(--landing-muted)}
.cc-none{font-size:.875rem;line-height:1.55}
.rd-cc-total strong{font-size:1.5rem;font-weight:600;letter-spacing:-.04em;color:var(--accent);font-variant-numeric:tabular-nums}

/* The end of the tour. */
.tour-finish .tour-card{text-align:center;display:grid;justify-items:center;gap:1rem;padding:2rem 1.75rem}
.tour-finish-ico{display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;font-size:1.4rem;background:var(--ok-bg);color:var(--ok)}
.tour-finish-ico .ico{stroke-width:2.4}
.tour-finish h2{font-size:1.75rem;font-weight:600;letter-spacing:-.035em}
.tour-finish p{max-width:24rem;color:var(--landing-muted);font-size:.9375rem}
.tour-restart{border:0;background:transparent;font-size:.8125rem;font-weight:500;color:var(--landing-muted);text-decoration:underline;text-underline-offset:.2em}
.tour-restart:hover{color:var(--landing-ink)}

/* ============================== MOTION ============================== */
@media(prefers-reduced-motion:no-preference){
  .js-rd .rd-in{opacity:0;translate:0 1rem;transition:opacity .7s cubic-bezier(.2,.8,.2,1),translate .8s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i,0) * 80ms)}
  .js-rd .rd-in.is-in{opacity:1;translate:0 0}
  .tour-panel:not([hidden]) .tour-card{animation:rd-panel .45s cubic-bezier(.2,.8,.2,1)}
  .tour-progress i{transition:transform .5s cubic-bezier(.2,.8,.2,1)}
  .tour-tab{transition:color .3s ease-in-out}
  .tour-tick{transition:opacity .3s}
  .rail-glider{transition:transform .5s cubic-bezier(.37,1.95,.66,.56),height .3s ease,width .3s ease}
  .rd-grid span{transition:color .35s,background .35s}
  .rd-mini-btn{transition:background .2s}
  .glow{animation:rd-drift 26s steps(130) infinite alternate}
  .glow-b{animation-duration:32s;animation-delay:-8s}
  .glow-c{animation-duration:38s;animation-delay:-16s}
}
@keyframes rd-panel{from{opacity:0;translate:0 .6rem}to{opacity:1;translate:0 0}}
@keyframes rd-drift{to{transform:translate(6rem,4rem) scale(1.12)}}
@keyframes rd-pop{from{opacity:0;translate:0 .5rem}to{opacity:1;translate:0 0}}

/* ============================== NARROWER ============================== */
/* Below 64rem the words sit above the stage, and the rail becomes a row of icons along the
   top of it, the way the planner's rail becomes its bottom dock. */
@media(max-width:64rem),(max-aspect-ratio:4/5){
  .rd-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;gap:1rem}
  .rd-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:1.5rem;align-items:end}
  .rd-intro h1{grid-column:1/-1;font-size:clamp(1.9rem,6.5vw,3rem)}
  .rd-lede{margin:.6rem 0 0;font-size:.9375rem;max-width:30rem}
  .rd-intro .rd-btn{grid-column:2;grid-row:2}
  .rd-note{display:none}
  .rd-stage{max-height:none;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .tour-rail{flex-direction:row;justify-content:space-between;padding:.5rem;border-right:0;border-bottom:1px solid var(--landing-line)}
  .rail-track{left:.5rem;right:.5rem;top:auto;bottom:0;width:auto;height:1px;
    background:linear-gradient(90deg,transparent 0%,var(--glide-track) 50%,transparent 100%)}
  .rail-glider{left:0;top:auto;bottom:0;height:1px;width:var(--gw,3rem);transform:translateX(var(--gx,0));
    background:linear-gradient(90deg,transparent 0%,var(--glide) 50%,transparent 100%)}
  .rail-glider::before{height:300%;width:60%;top:auto;left:50%;bottom:0;transform:translateX(-50%)}
  .rail-glider::after{left:0;bottom:0;width:100%;height:3rem;background:linear-gradient(0deg,color-mix(in srgb,var(--glide) 13%,transparent) 0%,transparent 100%)}
  .tour-tab{flex:1;flex-direction:column;gap:.15rem;padding:.35rem .1rem;font-size:.625rem;text-align:center;position:relative}
  .tour-tab-label{white-space:nowrap}
  .tour-tick{position:absolute;top:.15rem;right:.2rem;font-size:.75rem}
  .tour-main{padding:.85rem;gap:.6rem}
  .tour-prompt{font-size:.9375rem}
}
@media(max-width:40rem){
  .rd-top{padding:.75rem 0}
  .rd-intro{grid-template-columns:minmax(0,1fr)}
  .rd-intro .rd-btn{grid-column:1;grid-row:auto;margin-top:.75rem;width:100%}
  .rd-lede{display:none}
  .tour-tab-label{display:none}
  .tour-tab-ico{width:2rem;height:2rem}
  .tour-tab[aria-selected=true] .tour-tab-ico{color:var(--glide-text)}
  .tour-card{padding:.85rem}
  .tour-card .fig-controls{grid-template-columns:1fr 1fr;gap:.5rem .75rem}
  .tour-card .fig-donut-row{gap:.75rem}
  .tour-card .fig-donut{width:min(6.5rem,18vh)}
  .tour-credit{display:none}
  .rd-footer{padding:.35rem 0 .6rem}
  .rd-grid{opacity:.45}
}

/* ============================== HEADER: wordmark and theme switch ============================== */
.rd-brand .wordmark{display:block;height:1.6rem;width:auto}
.rd-brand .logo-dark{display:none}
:root[data-theme=dark] .rd-brand .logo-light{display:none}
:root[data-theme=dark] .rd-brand .logo-dark{display:block}
.rd-top-actions{display:flex;align-items:center;gap:.5rem}

