/* Pacific to Plate (formerly Super El Niño Tracker), v19+: one directed presentation.
 * Hero globe → the fever (chart) → far away, on your plate (map) → prices (compact) → what's next (dark band) → sources.
 * Type: system font, size-specific tracking (tight on display, ~0 on body). Motion: transform/opacity only,
 * critically damped by default, nothing that blocks input, everything off under prefers-reduced-motion.
 */
:root {
  --page: #ffffff;
  --panel: #F5F5F0;      /* WITHIN off-white: the quiet stage everything sits on */
  --ink: #0F1E0F;        /* WITHIN dark green: "black" */
  --ink-2: #4b4f49;
  --muted: #7d827a;
  --hair: #E8E6DE;       /* WITHIN greige: the one border colour */
  /* interface accents (WITHIN). Never used for data: warmth, anomalies and price moves keep their own colours. */
  --brand: #023D19;      /* buttons, selection */
  --brand-soft: #E8EEE6;
  --brand-muted: #5A7B54;
  --yellow: #FFD700;     /* the one accent, once: the programme link */
  --warm: #c8321d;
  --warm-soft: rgba(200, 50, 29, 0.14);
  --cold: #2a78d6;
  --display: clamp(40px, 4.9vw, 78px);
  --h2: clamp(34px, 5.2vw, 72px);
  --sub: clamp(19px, 1.7vw, 24px);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --signal: #E54124; --signal-text: #A8301B;
}

html { scroll-padding-top: 52px; }
body { background: var(--page); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; color: var(--ink); } /* all headings in WITHIN dark green #0F1E0F */
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------- app bar */
.bar {
  position: sticky; top: 0; z-index: 50; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hair);
}
.logo { font: 700 19px var(--sans); letter-spacing: -0.03em; text-decoration: none; color: var(--ink); white-space: nowrap; }
/* the wordmark lines up with the hero copy below it */
@media (min-width: 1001px) { .bar { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + 40px)); } }
.nav-ai { padding-left: 22px; border-left: 1px solid var(--hair); color: var(--brand) !important; font-weight: 600; }
.nav-ai:hover { text-decoration: underline; text-underline-offset: 3px; }
.bar-nav { display: flex; gap: 24px; font: 400 13px var(--sans); }
.bar-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: color 0.15s; }
.bar-nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .bar-nav a:not(.nav-ai) { display: none; } .nav-ai { padding-left: 0; border-left: 0; } }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); position: relative; flex: none; display: inline-block; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--warm); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; height: calc(100svh - 52px); min-height: 660px; max-height: 1000px; overflow: hidden;
  background: radial-gradient(60% 70% at 66% 52%, #ffffff 0%, #f5f5f7 100%);
}
.globe { position: absolute; z-index: 1; inset: 0 0 0 38%; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe.can-probe { cursor: crosshair; }
.globe-loading { position: absolute; inset: 0 0 0 38%; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

.hero-copy {
  position: absolute; z-index: 5; top: 0; bottom: 0; left: max(var(--gutter), calc((100vw - 1440px) / 2 + 40px));
  width: min(640px, 44vw); display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(40px, 8vh, 96px) 0 clamp(36px, 6vh, 64px);
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font: 600 14px var(--sans); letter-spacing: -0.005em; color: var(--warm); }
.hero h1 { margin: 0; font: 700 var(--display)/1.02 var(--sans); letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero-basket { width: clamp(130px, 11vw, 170px); margin: clamp(20px, 3.4vh, 36px) 0 0 -14px; }
/* subline and button: one block at the foot of the left column, with clear air above it */
.hero-foot { margin-top: auto; padding-top: clamp(28px, 5vh, 56px); }
.hero-foot .lead { margin-top: 0; }
.hero-basket svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-basket text { font-family: var(--sans); }
.hero-basket .drop { animation: drop 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) both; }
@keyframes drop { from { transform: translateY(-120px); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .lead span { display: block; } }
.lead { margin: 22px 0 0; font: 400 var(--sub)/1.4 var(--sans); letter-spacing: -0.01em; color: var(--ink-2); max-width: 24em; }
.cta {
  align-self: flex-start; margin-top: 30px; display: inline-flex; gap: 10px; align-items: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--brand); color: #fff; font: 500 17px var(--sans); text-decoration: none;
  transition: transform 0.1s ease-out, background 0.15s;
}
.cta:hover { background: var(--ink); }
.cta:active { transform: scale(0.97); }

.glass {
  background: rgba(255, 255, 255, 0.66); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.globe-side { position: absolute; z-index: 6; right: var(--gutter); bottom: 24px; width: 340px; display: grid; gap: 10px; pointer-events: none; }
.globe-side > * { pointer-events: auto; }
.legend-card { padding: 14px 16px; display: grid; gap: 10px; }
.explain { padding: 0; background: rgba(255, 255, 255, 0.74); overflow: hidden; }
.explain-h { margin: 0; }
.explain-h button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 0;
  background: none; color: var(--ink); font: 700 16px/1.25 var(--sans); letter-spacing: -0.01em; text-align: left; cursor: pointer;
}
.explain-h button:focus-visible { outline-offset: -3px; }
.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform 0.35s var(--ease-out); }
.pm::after { transform: rotate(90deg); }
.explain.open .pm::after { transform: rotate(0deg); }
/* opens upwards: the card is bottom-anchored above the controls, so growing height pushes the title up */
.explain-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.explain.open .explain-body { grid-template-rows: 1fr; }
.explain-inner { min-height: 0; overflow: hidden; }
.explain.open .explain-inner { overflow-y: auto; max-height: calc(100svh - 300px); }
.explain-inner > * { margin: 0 16px 10px; }
.explain-inner > :last-child { margin-bottom: 16px; }
.explain-art svg { display: block; width: 100%; max-width: 200px; height: auto; margin: 2px auto 0; }
.explain-inner p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.explain-link { display: inline-block; font: 600 14px var(--sans); color: var(--brand); text-decoration: none; }
.explain-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.seg { display: flex; border-radius: 10px; background: rgba(0, 0, 0, 0.05); padding: 2px; }
.seg button { flex: 1; }
.seg button { font: 500 12.5px var(--sans); padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.ramp { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ramp .bar-g { flex: 1; min-width: 60px; height: 6px; border-radius: 3px; }

.zoom { position: absolute; z-index: 6; right: var(--gutter); top: 24px; display: grid; gap: 6px; }
.zoom button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 400 19px var(--sans); color: var(--ink); cursor: pointer;
  transition: transform 0.1s ease-out;
}
.zoom button:active { transform: scale(0.92); }

.hint {
  position: absolute; z-index: 5; left: 40%; bottom: 30px; margin: 0; pointer-events: none;
  font: 500 13px var(--sans); color: var(--ink-2); background: rgba(255, 255, 255, 0.8); padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); white-space: nowrap; transition: opacity 0.5s ease;
}
.hint.gone { opacity: 0; }

/* cursor tooltip */
.ctip {
  position: absolute; z-index: 20; pointer-events: none; min-width: 220px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hair); border-radius: 16px; padding: 12px 14px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  font: 13px/1.35 var(--sans);
}
.ctip.pinned { pointer-events: auto; }
.ctip .ct-loc { font-size: 11.5px; color: var(--muted); }
.ctip .ct-now { font: 700 26px/1.1 var(--sans); letter-spacing: -0.03em; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.ctip .ct-now small { font: 500 12px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.ctip .ct-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.ctip .ct-row span { color: var(--ink-2); }
.ctip .ct-row b { font-weight: 600; }
.ctip .ct-diff { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--hair); }
.ctip .ct-diff b { font-weight: 700; }
.ctip .ct-cta { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.ctip .ct-btn { margin-top: 8px; width: 100%; font: 600 14px var(--sans); min-height: 40px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; cursor: pointer; }

/* globe labels */
.gl-tag {
  pointer-events: auto; cursor: pointer; transform: translate(-50%, -150%);
  font: 600 11px var(--sans); color: var(--ink); white-space: nowrap; padding: 3px 8px 3px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(0, 0, 0, 0.08); display: inline-flex; gap: 5px; align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.gl-tag:hover { border-color: var(--ink); }
.gl-tag i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.gl-dot { pointer-events: auto; cursor: pointer; transform: translate(-50%, -50%); width: 18px; height: 18px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.gl-dot i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.gl-flow { pointer-events: none; transform: translate(-50%, -50%); font: 500 11.5px var(--sans); color: #333; white-space: nowrap; text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff; }
.gl-home { transform: translate(-50%, -50%); pointer-events: none; font: 700 10px var(--sans); color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; display: grid; justify-items: center; gap: 2px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.gl-home b { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.gl-rec { pointer-events: none; transform: translate(-50%, -115%); font: 700 12px var(--sans); color: #fff; background: var(--warm); padding: 5px 10px; border-radius: 10px; white-space: nowrap; box-shadow: 0 4px 14px rgba(200, 50, 29, 0.35); }
.gl-rec small { font-weight: 500; opacity: 0.85; margin-left: 4px; }
.probe { position: absolute; z-index: 15; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.25); }
.probe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #111; }
.coach { pointer-events: none; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; }
.coach b { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #111; position: relative; }
.coach b::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid #fff; animation: pulse 1.8s ease-out infinite; }
.coach span { font: 600 12px var(--sans); color: #111; background: #fff; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); white-space: nowrap; }

/* Tablet and phone: words, then the globe at full width, then the legend */
@media (max-width: 1000px) {
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; overflow: visible; background: linear-gradient(#fff, #f5f5f7); }
  .hero-copy { position: relative; inset: auto; width: auto; max-width: 640px; padding: 40px var(--gutter) 4px; order: 1; }
  .globe { position: relative; inset: auto; order: 2; height: min(70svh, 112vw); min-height: 360px; max-height: 640px; }
  .globe-loading { display: none; }
  .hint { left: var(--gutter); bottom: auto; top: calc(100% - 128px); }
  .globe-side { position: relative; right: auto; bottom: auto; order: 4; width: auto; max-width: 520px; margin: 0 var(--gutter) 20px; }
  .globe-side { max-width: none; }
  .zoom { position: relative !important; top: auto; right: auto; order: 3; display: flex; justify-content: flex-end; gap: 8px; margin: -56px var(--gutter) 12px 0; align-self: flex-end; }
  .hint { display: none; }
  .cta { margin-top: 24px; }
}
@media (max-width: 1000px) and (min-width: 0) { .zoom { position: absolute; } .hero { position: relative; } }
@media (max-width: 520px) {
  .seg button { padding: 5px 8px; font-size: 12px; }
  .hint { top: calc(100% - 132px); font-size: 12px; padding: 6px 12px; }
}

/* -------------------------------------------------------------- sections */
.sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter) 0; }
.sec-tight { padding-top: clamp(64px, 8vw, 110px); }
.sec-head { max-width: 900px; margin: 0 auto clamp(28px, 3.4vw, 48px); text-align: center; }
.sec-head h2 { margin: 0; font: 700 var(--h2)/1.04 var(--sans); letter-spacing: -0.035em; }
@media (min-width: 760px) { .sec-head h2 span { display: block; } }
.sec-head p { margin: 20px auto 0; max-width: 34em; font: 400 var(--sub)/1.42 var(--sans); letter-spacing: -0.01em; color: var(--ink-2); }
.sec-head p b { color: var(--ink); font-weight: 600; }
.src { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.src a { color: var(--ink-2); }

/* the stage: a quiet rounded panel, the way a product sits on a page */
.stage { margin: 0; border-radius: clamp(20px, 3vw, 36px); background: var(--panel); }

/* ------------------------------------------------------------- the fever */
.chart-stage { padding: clamp(18px, 3.4vw, 48px) clamp(12px, 3.4vw, 48px) clamp(16px, 2.4vw, 32px); }
.spark { position: relative; }
.spark svg { display: block; width: 100%; overflow: visible; }
.spark .tick text { font: 12px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.spark .tick line { stroke: rgba(0, 0, 0, 0.06); }
.sp-hist path { fill: none; stroke: #d2d2d7; stroke-width: 1; }
.sp-hist path.big { stroke: #a1a1a6; stroke-width: 1.4; }
.sp-hist text { font: 600 11.5px var(--sans); fill: #86868b; }
.sp-zero { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 5 4; }
.sp-zero-label { font: 600 12.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; }
.sp-fill { fill: var(--warm-soft); }
.sp-now { fill: none; stroke: var(--warm); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-dot { fill: var(--warm); stroke: #fff; stroke-width: 2.5; }
.gap-big { font: 700 clamp(40px, 6vw, 84px) var(--sans); letter-spacing: -0.045em; fill: var(--warm); font-variant-numeric: tabular-nums; }
.gap-sub { font: 600 clamp(13px, 1.2vw, 16px) var(--sans); fill: var(--ink); }
.gap-sub2 { font: 400 clamp(12px, 1.05vw, 14px) var(--sans); fill: var(--ink-2); }
.exp-zone { fill: url(#hatch); }
.exp-label { font: 600 12.5px var(--sans); fill: var(--ink-2); }
.exp-label .exp-sub { font: 400 12px var(--sans); fill: var(--muted); }
.spark .tip {
  position: absolute; pointer-events: none; z-index: 3; background: #fff; border-radius: 10px; padding: 8px 10px;
  font-size: 13px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); white-space: nowrap;
}
.spark .tip .t-sub { color: var(--muted); font-size: 12px; }
.chart-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.chart-key i { display: inline-block; width: 20px; height: 0; border-top: 3px solid var(--warm); }
.chart-key i.k-hist { border-top: 1.5px solid #c7c7cc; }
.chart-key i.k-norm { border-top: 1.5px dashed var(--ink); }
.chart-key i.k-exp { height: 10px; border: 0; border-radius: 2px; background: repeating-linear-gradient(135deg, #d2d2d7 0 2px, transparent 2px 6px); }
/* the chart draws itself once: history, then this year, then the gap */
#fx .sp-hist, #fx .sp-fill, #fx .gap, #fx .sp-dot { transition: opacity 0.8s ease; }
#fx:not(.in) .sp-hist, #fx:not(.in) .sp-fill, #fx:not(.in) .gap, #fx:not(.in) .sp-dot { opacity: 0; }
#fx.in .sp-fill { transition-delay: 1.5s; }
#fx.in .sp-dot, #fx.in .gap { transition-delay: 1.8s; }
#fx .sp-now { stroke-dasharray: 1; stroke-dashoffset: 1; }
#fx.in .sp-now { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out) 0.3s; }

/* chart notes: measured, official strength, expected; quiet, inside the stage */
.chart-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); }
.note p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.note a { color: var(--muted); }
.note .note-h { margin-bottom: 3px; font: 600 13px var(--sans); color: var(--ink); }
.note.is-expected .note-h::after { content: ""; display: inline-block; width: 14px; height: 8px; margin-left: 7px; border-radius: 2px; background: repeating-linear-gradient(135deg, #b9bcb3 0 2px, transparent 2px 5px); }
@media (max-width: 760px) { .chart-notes { grid-template-columns: minmax(0, 1fr); } }
/* (retired v21) three supporting facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fact { border-radius: 24px; background: var(--panel); padding: 20px 22px 18px; display: grid; align-content: start; gap: 6px; }
.fact b { font: 700 clamp(30px, 3.2vw, 44px)/1 var(--sans); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fact .f-label { font: 600 16px/1.3 var(--sans); letter-spacing: -0.01em; }
.fact p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.fact.is-expected { background: #fff; box-shadow: inset 0 0 0 1.5px #d2d2d7; }
.fact.is-expected b { color: var(--ink-2); }
.fact .kind { margin-top: 6px; }
@media (max-width: 860px) {
  /* phones and tablets: one swipeable row instead of a tall stack */
  .facts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .facts::-webkit-scrollbar { display: none; }
  .fact { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}

/* "+" folds: nuance next to the claim, method behind it */
.more { max-width: 760px; margin: 20px auto 0; }
.more-wide { max-width: none; margin: 0; }
.more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px;
  font: 500 15px var(--sans); color: var(--ink-2);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  font: 400 18px/1 var(--sans); transition: transform 0.35s var(--ease-out);
}
.more[open] summary::after { transform: rotate(45deg); }
.more summary:hover { color: var(--ink); }
.more-body { padding: 8px 4px 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); animation: fold-in 0.4s var(--ease-out); }
.more-body p { margin: 0 0 12px; }
.more-body b { color: var(--ink); }
@keyframes fold-in { from { opacity: 0; transform: translateY(-6px); } }

/* ----------------------------------------- the shopping explorer: one composition */
.explorer { border-radius: clamp(20px, 3vw, 36px); background: var(--panel); overflow: hidden; }
.ex-bar { display: flex; align-items: center; gap: 14px; padding: clamp(14px, 2vw, 22px) clamp(14px, 2.4vw, 28px) 0; }
.vp { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--brand); color: #fff; font: 500 16px var(--sans); cursor: pointer; transition: transform 0.1s ease-out; }
.vp:active { transform: scale(0.97); }
.vp-label { opacity: 0.8; }
.vp-value { font-weight: 600; }
.vp-caret { margin-left: 2px; font-size: 13px; }
.vp select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.vp:focus-within { outline: 3px solid var(--brand-muted); outline-offset: 3px; }
.ex-hint { font-size: 13px; color: var(--muted); }
.ex-label { flex: none; font: 600 13px var(--sans); color: var(--muted); }
.ex-wm { margin: 0 0 10px; font: 600 14px var(--sans); color: var(--brand); }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; font: 500 14px var(--sans); min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair);
  background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.1s ease-out, background 0.15s, border-color 0.15s;
}
.pill:hover { border-color: var(--brand-muted); }
.pill:active { transform: scale(0.96); }
.pill[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill small { font-weight: 400; opacity: 0.75; }
@media (max-width: 640px) { .ex-bar { flex-direction: column; align-items: stretch; gap: 8px; } }

.ex-map { margin: 0; padding: clamp(6px, 1.4vw, 16px) clamp(8px, 2vw, 24px) 0; }
.routes svg { display: block; width: 100%; height: auto; overflow: visible; }
.routes .land { fill: #e3e2db; stroke: var(--panel); stroke-width: 0.6; cursor: pointer; transition: fill 0.2s; }
.routes .land.hov { fill: #d4d3ca; }
.routes .land.home { fill: #c9d3c5; }
.routes .arc { fill: none; stroke: #8f948b; stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; transition: opacity 0.2s, stroke 0.2s; }
.routes .arc.sel { stroke: var(--brand); stroke-width: 2.2; opacity: 1; }
.routes .o-dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.routes .o-dot.faint { fill: #b9bcb3; stroke: none; }
.routes .o-dot.sel { fill: var(--brand); }
.routes .o-ring { fill: rgba(255, 255, 255, 0.6); stroke: var(--ink); stroke-width: 1; opacity: 0.35; }
.routes .o-ring.sel { stroke: var(--brand); opacity: 0.6; fill: rgba(2, 61, 25, 0.08); }
.routes .origin { cursor: pointer; transition: opacity 0.2s; }
.routes.dim .origin:not(.hl), .routes.dim .arc:not(.hl) { opacity: 0.25; }
.routes .arc.hl { stroke: var(--brand); opacity: 1; }
.routes .origin.hl .o-dot { fill: var(--brand); }
.routes .o-name { font: 700 14px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; letter-spacing: -0.01em; }
.routes .o-what { font: 400 13px var(--sans); fill: var(--ink-2); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; }
.routes .narrow .o-name { font-size: 12px; }
.routes .h-ring { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.routes .h-dot { fill: var(--ink); }
.routes .h-name { font: 700 14px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; }
.routes .box { fill: rgba(200, 50, 29, 0.3); stroke: var(--warm); stroke-width: 1.4; }
.routes .box-label { font: 700 12.5px var(--sans); fill: var(--warm); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; }
.routes .arc { stroke-dasharray: 1; stroke-dashoffset: 0; }
.routes.drawing .arc { stroke-dashoffset: 1; }
.routes.go .arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-out), opacity 0.2s, stroke 0.2s; }
.map-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); }
.map-key span { display: inline-flex; align-items: center; gap: 7px; }
.map-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.map-key .k-hit { background: var(--ink); }
.map-key .k-sel { background: var(--brand); box-shadow: 0 0 0 3px rgba(2, 61, 25, 0.15); }
.map-key .k-box { border-radius: 2px; background: rgba(200, 50, 29, 0.3); box-shadow: inset 0 0 0 1.4px var(--warm); }
.map-key .k-you { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #fff, inset 0 0 0 10px var(--ink); }

/* the panel sits in the same stage, under the map: overview or one product */
.ex-panel { margin: clamp(14px, 2vw, 22px) clamp(8px, 1.2vw, 14px) clamp(8px, 1.2vw, 14px); padding: clamp(18px, 2.6vw, 32px); border-radius: clamp(16px, 2.2vw, 26px); background: #fff; }
.ex-panel.swap { animation: swap-in 0.28s var(--ease-out); }
@keyframes swap-in { from { opacity: 0; transform: translateY(4px); } }
.ex-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 56px); }
@media (max-width: 820px) { .ex-cols { grid-template-columns: minmax(0, 1fr); } }
.ex-kicker { margin: 0 0 6px; font: 600 13px var(--sans); color: var(--brand-muted); }
.ex-h { margin: 0; font: 700 clamp(26px, 2.8vw, 36px)/1.1 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.ex-h-sm { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 12px; }
.ex-region { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.you-tag { display: inline-block; vertical-align: 0.35em; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 12px var(--sans); letter-spacing: 0; }
.ex-text { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ex-text .kind, .ex-now .kind, .ex-weather .kind { font-size: 10px; margin-left: 4px; }
.ex-weather { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ex-weather b { color: var(--ink); }
.ex-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ex-sub { margin: 18px 0 4px; font: 600 13px var(--sans); color: var(--brand-muted); }
.ex-now { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ex-now b { color: var(--ink); }
.ex-grown { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font: 600 15px var(--sans); color: var(--brand); }
.dot-sel { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(2, 61, 25, 0.15); flex: none; }
.ex-back {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--panel); color: var(--brand); font: 600 14px var(--sans); cursor: pointer; transition: transform 0.1s ease-out;
}
.ex-back:hover { border-color: var(--brand-muted); }
@media (max-width: 520px) { .ex-back-from { display: none; } }
.ex-back:active { transform: scale(0.97); }
.prod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.prod {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 10px 6px 4px;
  border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background 0.15s, transform 0.1s ease-out;
}
.prod:hover, .prod:focus-visible { background: var(--brand-soft); }
.prod:active { transform: scale(0.985); }
.prod-pack { width: 44px; height: 44px; display: block; }
.prod-pack svg { display: block; width: 100%; height: 100%; overflow: visible; }
.prod-pack svg text { font-family: var(--sans); }
.prod-name { display: grid; min-width: 0; }
.prod-name b { font: 600 15.5px/1.25 var(--sans); }
.prod-name small { font-size: 12.5px; color: var(--muted); }
.prod-chg { font: 700 19px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.prod-chg::after { content: "›"; margin-left: 10px; font-weight: 400; color: #b9bcb3; }
.up { color: var(--warm); }
.down { color: var(--cold); }
.ex-price { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.ex-price b { font: 700 clamp(38px, 4vw, 52px)/1 var(--sans); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ex-asof { margin-left: 6px; color: var(--muted); font-size: 13px; }
.ex-chg { margin: 6px 0 4px; font: 700 19px var(--sans); letter-spacing: -0.02em; }
.ex-chg span { font: 400 14px var(--sans); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.ex-spark { margin-top: 6px; }
.ex-spark svg { display: block; width: 100%; overflow: visible; }
.ex-spark .tick text { font: 11.5px var(--sans); fill: var(--muted); }
.ps-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.ps-area { fill: rgba(15, 30, 15, 0.05); }
.ps-now { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.ps-ago { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.ps-lab { font: 500 11.5px var(--sans); fill: var(--muted); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.linkish { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ------------------------------------------------- what's next: dark band */
.band { margin-top: clamp(64px, 8vw, 120px); background: var(--ink); color: #F5F5F0; }
.band-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gutter) clamp(48px, 6vw, 80px); }
.band .sec-head { max-width: 1100px; }
.band .sec-head h2 { color: #F5F5F0; }
.band .sec-head p { color: #a9b3a6; }
.band .src { color: #86868b; text-align: center; }
.band .src a { color: #d2d2d7; }
.expect { position: relative; }
.expect svg { display: block; width: 100%; overflow: visible; }
.expect .tick text { fill: #86868b; font: 12px var(--sans); }
.expect .tick line { stroke: #2c2c2e; }
.expect .lane { font: 600 12px var(--sans); fill: #86868b; }
.expect .ev { cursor: pointer; }
.expect .ev text { font: 600 13px var(--sans); fill: #f5f5f7; }
.expect .ev .when { font-weight: 400; fill: #86868b; }
.expect .ev:hover text { text-decoration: underline; }
.expect .ev:focus { outline: none; }
.expect .ev:focus-visible rect { stroke: #fff; stroke-width: 2; }
.expect .phase-label { font: 600 12.5px var(--sans); fill: #fff; pointer-events: none; }
.expect .phase-label.dark { fill: #1d1d1f; }
.expect .peak-label { font: 600 13px var(--sans); fill: #ff7a5c; }
.expect .today { stroke: #f5f5f7; stroke-width: 1; }
.expect .today-label { font: 600 12px var(--sans); fill: #f5f5f7; }

/* ---------------------------------------------- closing footer: the invitation */
.foot { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter) 40px; outline: none; }
.ac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.ac-img { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 1024; border-radius: clamp(18px, 2.6vw, 32px); }
.ac-copy { padding: 0; }
.ac-kicker { margin: 0 0 14px; font: 600 14px var(--sans); color: var(--brand-muted); }
.ac-h { margin: 0; font: 700 clamp(36px, 4.2vw, 60px)/1.04 var(--sans); letter-spacing: -0.04em; color: var(--ink); }
.ac-h span { display: block; color: var(--brand-muted); }
.ac-text { margin: 22px 0 0; max-width: 30em; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--ink-2); }
.ac-facts { margin: 16px 0 0; font: 600 14px var(--sans); color: var(--brand); }
.ac-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font: 600 16px var(--sans); text-decoration: none; transition: transform 0.1s ease-out, filter 0.15s;
}
.ac-link:hover { filter: brightness(0.96); }
.ac-link:active { transform: scale(0.97); }
@media (max-width: 860px) {
  .ac { grid-template-columns: minmax(0, 1fr); }
  .ac-img { order: -1; }
}
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); }
.foot-credit { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot-credit b { color: var(--ink); font-weight: 600; }
.foot-links { margin: 0; display: flex; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.foot-sources { margin-top: 20px; }
.foot-sources:not([open]) { display: none; }
.foot-sources[open] { animation: fold-in 0.4s var(--ease-out); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.src-card { text-decoration: none; color: inherit; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 18px; background: var(--panel); transition: background 0.15s; }
.src-card:hover { background: var(--hair); }
.src-card b { font: 600 16px/1.25 var(--sans); color: var(--ink); }
.t-label { margin: 0; font: 600 12px var(--sans); color: var(--muted); }
.src-desc { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.src-asof { margin-top: 6px; font-size: 12px; color: var(--muted); }
.src-notes { margin-top: 24px; display: grid; gap: 8px; max-width: 760px; }
.src-notes ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.kinds { list-style: none; padding: 0 !important; }
.disclaimer { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.disclaimer b { color: var(--ink-2); }

/* label badges: measured, expected, scenario, typical pattern */
.kind {
  display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px var(--sans); letter-spacing: 0.04em;
  color: var(--ink-2); text-transform: uppercase; white-space: nowrap;
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live::after, .coach b::after { animation: none; }
  #fx .sp-hist, #fx .sp-fill, #fx .gap, #fx .sp-dot { opacity: 1 !important; transition: none !important; }
  #fx .sp-now { stroke-dashoffset: 0 !important; transition: none !important; }
  .routes .arc { stroke-dashoffset: 0 !important; transition: none !important; }
  .ex-panel.swap, .foot-sources[open], .hero-basket .drop { animation: none; }
  .explain-body, .pm::before, .pm::after { transition: none; }
  .more-body { animation: none; }
  .more summary::after, .hint { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .glass, .ctip, .zoom button { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* style.css gives .seg a pill border; the legend uses the iOS segmented look instead */
.legend-card .seg { border: 0; overflow: visible; }
.legend-card .seg button + button { border-left: 0; }
