/* ---- Exhibit B: India, domain by domain ---- */
.dx-nav { position: sticky; top: 60px; z-index: 20; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; display: flex; align-items: center; gap: .8rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: .3rem .9rem .3rem .3rem; border-radius: 999px; background: rgba(251, 248, 242, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(120, 70, 20, .1); }
.dx-track { flex: 1; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.dx-track::-webkit-scrollbar { display: none; }
.dx-track a { position: relative; flex: none; display: flex; align-items: center; gap: .4rem; padding: .2rem .7rem .2rem .2rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font: .64rem var(--mono); letter-spacing: .04em; transition: background .2s; }
.dx-track a:hover, .dx-track a.cur { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.dx-track svg { width: 30px; height: 30px; flex: none; }
.dx-track .r0 { fill: var(--card); stroke: var(--line); stroke-width: 3; }
.dx-track .r1 { fill: none; stroke: var(--saffron); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .6s; }
.dx-track a.done .r1 { stroke: var(--green); }
.dx-track .ic { position: absolute; left: .2rem; width: 30px; text-align: center; font-size: .85rem; line-height: 30px; }
.dx-track .nm { white-space: nowrap; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.dx-tot { flex: none; font: .62rem var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.dx-tot b { color: var(--saffron-ink); font-size: .85rem; }
.dx-track a.cur { box-shadow: 0 0 0 2px var(--dc); }
.dx-track a.cur .nm { color: var(--dc); font-weight: 600; }
/* While a metric card's header is pinned, the domain bar steps aside */
.dx-pinning .dx-nav:not(.open) { transform: translateY(calc(-100% - 70px)); opacity: 0; pointer-events: none; }
/* "All domains" button + drop-down grid */
.dx-allb { flex: none; display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; place-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; }
.dx-allb i { width: 7px; height: 7px; border-radius: 2px; background: var(--paper); }
.dx-allb i:first-child { background: var(--saffron-2); }
.dx-nav.open .dx-allb { background: var(--saffron-btn); }
.dx-drop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(70vh, 560px); overflow-y: auto; padding: .7rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(60, 35, 10, .22); }

/* Every domain at a glance: emoji + name + metric count + progress */
.dx-index { margin: 0 0 1.2rem; }
.dx-ih { margin: 0 0 .7rem; font: .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dx-ih b { color: var(--ink); font-size: .85rem; }
.dx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.dx-grid a { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 54px; padding: .45rem .7rem .55rem .5rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--dc); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.dx-grid a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(120, 70, 20, .12); }
.dx-grid .ic { flex: none; font-size: 1.35rem; width: 1.8rem; text-align: center; }
.dx-grid .tx { min-width: 0; display: grid; }
.dx-grid b { font: 600 .86rem/1.2 var(--sans); }
.dx-grid em { font: normal .64rem var(--mono); color: var(--muted); }
.dx-grid a.done em::after { content: " · ✓ all explored"; color: var(--green); }
.dx-grid .pg { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--paper-2); }
.dx-grid .pg b { display: block; height: 100%; background: var(--dc); transform-origin: left; transform: scaleX(0); transition: transform .6s; }

.domains { display: grid; gap: clamp(4.5rem, 10vw, 8rem); }
.dom { scroll-margin-top: 112px; min-width: 0; overflow-x: clip; } /* the off-screen neighbour cards must never widen the page (phones would pan sideways) */

/* Domain banner: big, bold, its own colour, so a new domain is unmistakable */
.dom-ban { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1rem); margin: 0; padding: clamp(.8rem, 2vw, 1.1rem) clamp(1rem, 2.6vw, 1.6rem); border-radius: 18px 18px 0 0; background: var(--dc); color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14); }
.dom-ban + .dom-head { border-radius: 0 0 18px 18px; }
.db-no { flex: none; font: 600 .78rem var(--mono); letter-spacing: .08em; padding: .25rem .5rem; border-radius: 8px; background: rgba(255, 255, 255, .2); }
.db-ic { flex: none; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.db-nm { flex: 1; min-width: 0; font: 700 clamp(1.35rem, 3.6vw, 2.3rem)/1.1 var(--sans); letter-spacing: -.02em; }
.db-n { flex: none; font: .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.dom.shut .dom-ban { cursor: pointer; }
.dom-bar, .dom-chips, .dx-track { min-width: 0; }

/* Domain head: photo + hook */
.dom-head { position: relative; display: grid; align-items: end; min-height: clamp(240px, 34vw, 420px); border-radius: 18px; overflow: hidden; background: var(--ink); color: #fff; }
.dom-head:not(.has-ph) { min-height: 0; background: none; color: var(--ink); }
.dom-im { position: absolute; inset: 0; }
.dom-im img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2, .7, .2, 1); }
.dom.in .dom-im img { transform: none; }
.dom-im::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 19, 15, .86), rgba(22, 19, 15, .45) 55%, rgba(22, 19, 15, .05)), linear-gradient(0deg, rgba(22, 19, 15, .5), transparent 50%); }
.dom-tx { position: relative; padding: clamp(1.4rem, 4vw, 3rem); max-width: 50rem; }
.dom-head .dom-hook { font: 400 clamp(2rem, 5vw, 4rem)/1 var(--serif); letter-spacing: -.03em; margin: 0 0 .6rem; }
.dom-head .dom-hook em { color: var(--saffron-2); }
.dom-quip { font: italic 300 clamp(1rem, 1.6vw, 1.25rem)/1.35 var(--serif); margin: 0; color: #F1E8DA; max-width: 40rem; }
.dom-head:not(.has-ph) .dom-quip { color: var(--ink-2); }
.dom-cr { position: absolute; right: .8rem; bottom: .5rem; font: .54rem var(--mono); color: rgba(255, 255, 255, .6); text-decoration: none; }

/* Closed domain: photo card + one "Explore" bar */
.dom.shut .dom-bar, .dom.shut .dom-deck { display: none; }
.dom.shut .dom-head { cursor: pointer; }
.dom.shut .dom-head:hover .dom-im img { transform: scale(1.03); }
.dom-open { display: none; width: 100%; margin-top: .7rem; min-height: 56px; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .7rem .6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 10px 26px rgba(120, 70, 20, .08); transition: transform .12s, border-color .15s; }
.dom.shut .dom-open { display: flex; }
.dom-open:hover { border-color: var(--ink); }
.dom-open:active { transform: scale(.98); }
.do-n { font: .72rem var(--mono); letter-spacing: .04em; color: var(--muted); text-align: left; }
.do-n b { font: 600 1rem var(--serif); color: var(--ink); }
.do-n em { font-style: normal; color: var(--saffron-ink); }
.do-go { display: flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 .76rem var(--mono); letter-spacing: .04em; white-space: nowrap; }
.do-go i { font-style: normal; color: var(--saffron-2); }
.dom-open:hover .do-go { background: var(--saffron); }
.dom-open:hover .do-go i { color: #fff; }
.dom.shut .dom-head { min-height: clamp(200px, 26vw, 320px); }
.domains:has(.dom.shut) { gap: clamp(2.6rem, 6vw, 4.5rem); }

/* Metric chips */
.dom-bar { display: flex; align-items: center; gap: 1rem; margin: 1.1rem 0 1.4rem; scroll-margin-top: 110px; }
.dom-chips { flex: 1; display: flex; gap: .4rem; overflow-x: auto; padding: .3rem .1rem .5rem; scrollbar-width: thin; scrollbar-color: var(--then) transparent; }
.dom-chips button { flex: none; display: flex; align-items: center; gap: .45rem; font: 500 .74rem var(--sans); padding: .42rem .85rem .42rem .42rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.dom-chips button i { display: grid; place-content: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--paper-2); font: normal 600 .62rem var(--mono); color: var(--muted); }
.dom-chips button:hover { transform: translateY(-2px); border-color: var(--ink); }
.dom-chips button[aria-selected="true"] { background: var(--dc, var(--ink)); color: #fff; border-color: var(--dc, var(--ink)); }
.dom-chips button[aria-selected="true"] i { background: var(--saffron); color: #fff; }
.dom-prog { flex: none; display: flex; align-items: center; gap: .5rem; font: .66rem var(--mono); color: var(--muted); }
.dom-prog i { width: 64px; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.dom-prog b { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--green)); transform-origin: left; transform: scaleX(0); transition: transform .6s; }

/* Metric cards as a carousel: the neighbours peek in at the sides and slide in with the card */
.dom-deck { --peek: 18px; position: relative; touch-action: pan-y pinch-zoom; clip-path: inset(-120px calc(-1 * var(--peek))); }
.dom-track { position: relative; will-change: transform; }
.dom-ghost { position: absolute; top: 0; bottom: 0; width: 100%; padding: 0; border-radius: 18px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--dc, var(--line)); box-shadow: 0 24px 60px rgba(120, 70, 20, .08); color: var(--ink); font: inherit; text-align: left; cursor: pointer; opacity: .78; transition: opacity .2s; }
.dom-ghost[hidden] { display: none; }
.dom-ghost:hover { opacity: 1; }
.dom-ghost.nx { left: calc(100% + 8px); }
.dom-ghost.pv { right: calc(100% + 8px); text-align: right; }
.gh-in { position: sticky; top: calc(var(--navb, 108px) + 90px); display: grid; gap: .3rem; padding: 1.4rem 1.3rem; }
.gh-in small { font: .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dc, var(--muted)); }
.gh-in b { font: 400 clamp(1.4rem, 5vw, 2rem)/1.1 var(--serif); letter-spacing: -.02em; }
.gh-in em { font: normal .7rem var(--mono); color: var(--muted); }
@media (min-width: 700px) { .dom-deck { --peek: 30px; } }

/* Metric panel */
.dom-panel { padding: clamp(1.1rem, 2.6vw, 2rem); border-radius: 18px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--dc, var(--line)); box-shadow: 0 24px 60px rgba(120, 70, 20, .08); animation: fadeUp .35s; }
.mv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; }
.mv-id { font: .62rem var(--mono); color: var(--muted); letter-spacing: .1em; }
.mv-title h4 { font: 400 clamp(1.5rem, 2.8vw, 2.3rem)/1.05 var(--serif); letter-spacing: -.02em; margin: .2rem 0 .5rem; }
.mv-st { display: inline-block; font: .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; cursor: help; }
.mv-st.v { background: #E8F3E1; color: #2E6B1F; }
.mv-st.c { background: #FFF1DE; color: var(--saffron-ink); }
.mv-kpis { display: flex; align-items: center; gap: .6rem; }
.kp { min-width: 7.5rem; padding: .6rem .9rem; border-radius: 12px; text-align: center; }
.kp span { display: block; font: .58rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kp b { display: block; font: 400 clamp(1.5rem, 2.8vw, 2.3rem)/1.1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kp.b { background: var(--paper-2); color: var(--muted); }
.kp.b b { color: var(--ink-2); }
.kp.a { background: linear-gradient(135deg, var(--saffron), #F48A3A); color: #fff; position: relative; overflow: hidden; }
.kp.a span { color: #FFE3CC; }
.kp.c { border: 1px dashed var(--line); }
.kp.c b { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--green); }
.kp .kv { display: grid; }
.kv > * { grid-area: 1 / 1; }
.kv i { visibility: hidden; font-style: normal; }
.kp-arrow { font: normal 1.4rem var(--serif); color: var(--saffron); }
.hide-a .kp.a b, .hide-a .kp.c b { visibility: hidden; }
.hide-a .mv-trend .tv.aft, .hide-a .mv-trend .tnow, .hide-a .mv-map .nat-v { visibility: hidden; }
/* the cards auto-play before you guess: the pictures move, but the exact 'after' numbers stay hidden until you answer */
.hide-a .mv-pic .pg-l b, .hide-a .mv-pic .arv, .hide-a .mv-pic .bv, .hide-a .mv-pic .ckv, .hide-a .mv-pic .wa, .hide-a .mv-pic .wb { visibility: hidden; }
.hide-a .kp.a::after { content: "?"; position: absolute; inset: 0; display: grid; place-content: center; font: 600 2.2rem var(--serif); background: repeating-linear-gradient(-45deg, var(--saffron), var(--saffron) 8px, #F47B30 8px, #F47B30 16px); animation: pulse 2.4s ease-in-out infinite; }
.mv-guess { margin: 1rem 0 0; }
.mv-guess .mq-o .skip { border-color: var(--line); color: var(--muted); font: .7rem var(--mono); }
.mv-guess .plus { font: 600 .72rem var(--mono); color: #fff; background: var(--saffron-btn); padding: .1rem .45rem; border-radius: 999px; }

/* Pinned card header: position in the domain + timeline. Sticky inside its card only, so it lets go when the card ends. */
.mv-sent { display: block; height: 0; }
.mv-pin { position: sticky; top: calc(var(--navb, 108px) + 8px); z-index: 15; margin: 1.2rem calc(clamp(1.1rem, 2.6vw, 2rem) * -.5) 1rem; padding: .35rem clamp(.4rem, 1.3vw, 1rem) .4rem; border-radius: 16px; transition: top .3s cubic-bezier(.2, .8, .2, 1), background .2s, box-shadow .2s; }
.dx-pinning .mv-pin { top: calc(var(--hdr, 50px) + 6px); }
.mv-pin.stuck { background: rgba(251, 248, 242, .97); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(60, 35, 10, .16), 0 0 0 1px var(--line); }
.mv-ph { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.mv-arr { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 400 1.5rem/1 var(--serif); cursor: pointer; display: grid; place-content: center; padding-bottom: .15rem; transition: background .15s, color .15s, transform .12s; }
.mv-arr:not(:disabled):hover { background: var(--dc, var(--ink)); color: #fff; border-color: transparent; }
.mv-arr:not(:disabled):active { transform: scale(.92); }
.mv-arr:disabled { opacity: .3; cursor: default; }
.mv-pos { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.mv-pn { display: none; min-width: 0; font: 600 .9rem var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-pin.stuck .mv-pn { display: block; }
.mv-pin.stuck .mv-dots, .mv-pin.stuck .mv-sw { display: none; }
.mv-dots { flex: 0 1 auto; min-width: 0; display: flex; justify-content: center; gap: 4px; }
.mv-dots i { flex: 0 1 7px; min-width: 3px; height: 7px; border-radius: 4px; background: var(--line); transition: background .2s, flex-basis .2s; }
.mv-dots i.s { background: var(--then); }
.mv-dots i.on { flex: none; width: 20px; background: var(--dc, var(--saffron)); }
.mv-pos em { flex: none; font: normal 600 .72rem var(--mono); color: var(--ink-2); }
.mv-sw { display: none; flex: none; white-space: nowrap; font: .66rem var(--mono); color: var(--muted); }
.mv-sw::before { content: "← "; } .mv-sw::after { content: " →"; }
@media (pointer: coarse) { .mv-sw { display: inline-block; animation: nudge 1.8s ease-in-out 3; } .dx-swiped .mv-sw { display: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-5px); } 60% { transform: translateX(5px); } }

/* Timeline: ▶ · ‹ previous year · rail with year stops · latest year » */
.mv-scrub { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; margin: 0; padding: .45rem .7rem .45rem .45rem; border-radius: 999px; background: var(--ink); color: var(--paper); }
.mv-yp, .mv-yl { flex: none; min-height: 40px; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--paper); font: 500 .7rem var(--mono); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.mv-yp b, .mv-yl b { font: 400 1rem/1 var(--serif); color: var(--saffron-2); }
.mv-yp:not(:disabled):hover, .mv-yl:not(:disabled):hover { background: rgba(255, 255, 255, .12); border-color: var(--saffron-2); }
.mv-yp:disabled, .mv-yl:disabled { opacity: .4; cursor: default; }
.mv-rail { position: relative; min-width: 0; height: 52px; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.mv-rail input { position: absolute; left: 0; right: 0; top: 6px; width: 100%; margin: 0; pointer-events: none; }
.mv-rail.drag input::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.15); }
.mv-tk { position: absolute; left: 11px; right: 11px; top: 0; bottom: 0; pointer-events: none; }
.mv-tk i { position: absolute; left: calc(var(--p) * 100%); top: 9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.mv-tk span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: .12rem .4rem; border-radius: 999px; font: .62rem var(--mono); letter-spacing: 0; text-transform: none; white-space: nowrap; color: #CFC6B8; opacity: 0; transition: opacity .15s, background .15s; }
.mv-tk i:first-child span { left: 0; transform: none; margin-left: -4px; }
.mv-tk i:last-child span { left: auto; right: 0; transform: none; margin-right: -4px; }
.mv-tk i span { opacity: 1; }
.mv-tk i.hid span { opacity: 0; }
.mv-tk i.on { background: #fff; }
.mv-tk i.on span { opacity: 1; background: var(--saffron-btn); color: #fff; font-weight: 600; font-size: .74rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mv-play { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 0; background: var(--saffron); color: #fff; cursor: pointer; font-size: .75rem; }
.dom.mv-playing .mv-play { animation: pulse 1s ease-in-out infinite; }
.mv-scrub input { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #7A1F12, var(--saffron) 45%, var(--green)); outline: none; min-width: 0; }
.mv-scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--saffron); cursor: grab; }
.mv-scrub input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--saffron); cursor: grab; }

/* Map + side */
.mv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; }
.mv-map { margin: 0; }
.mv-map svg { width: 100%; max-height: 640px; display: block; overflow: visible; filter: drop-shadow(0 18px 30px rgba(60, 35, 10, .14)); }
.mv-map .st { fill: #E6DED0; stroke: var(--paper); stroke-width: .8; stroke-linejoin: round; cursor: pointer; transition: fill .12s; }
.mv-map .st:hover { stroke: var(--ink); stroke-width: 1.6; }
.mv-map .st.mine { stroke: var(--ink); stroke-width: 2.4; }
/* Thematic layers: before 2014 = muted light grey, added since = saffron; problems easing = dark red that shrinks and fades */
.mv-map.geoviz .st { fill: #EDE5D6; }
.mv-map .pt { fill: var(--saffron); stroke: #fff; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; scale: 0; transition: opacity .35s, scale .45s cubic-bezier(.3, 1.6, .5, 1); }
.mv-map .pt.old { fill: #C4BBAE; stroke: #F4EFE6; }
.mv-map .pt.on { opacity: 1; scale: 1; }
.mv-map.vz-down .pt { stroke: rgba(255, 255, 255, .8); transition: opacity .6s, scale .6s ease; }
.mv-map.vz-down .pt:not(.on) { scale: .2; }
.mv-map .ln { fill: none; stroke: var(--saffron); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .9s ease-out, opacity .3s; }
.mv-map .ln.old { stroke: #B9B0A2; stroke-width: 1.3; }
.mv-map .ln.on { stroke-dashoffset: 0; opacity: .95; }
.mv-map .gb { stroke: rgba(255, 255, 255, .85); stroke-width: 1; transition: opacity .4s; }
.mv-key .mk-k i.line { width: 16px; height: 3px; border-radius: 2px; }
.mv-key .mk-k i.r { background: #7A1414; }
.mv-key .apx { padding: .1rem .45rem; border-radius: 999px; border: 1px dashed var(--saffron-ink); color: var(--saffron-ink); cursor: help; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .mv-map .ln, .mv-map .pt { transition: none; } }
.mv-map .nv-n { font: 400 56px var(--serif); fill: var(--saffron-txt, #D9530B); letter-spacing: -.02em; }
.mv-map .nv-k { font: 600 15px var(--mono); fill: var(--saffron-ink, #B5440A); letter-spacing: .14em; }
.mv-map:not(.nat) .nat-v { display: none; }
.mv-key { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .9rem; padding-top: 12px; margin-top: .6rem; font: .6rem var(--mono); color: var(--muted); }
.mv-key > i { position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #7A1F12, #D64820 35%, #F29632 60%, #96B446 80%, var(--green)); }
.mv-key .yl { font: normal 600 .7rem var(--mono); color: var(--saffron-ink); text-transform: uppercase; }
.mv-key .mk-k { display: flex; align-items: center; gap: .3rem; }
.mv-key .mk-k i { width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); }
.mv-key .mk-k i.o { background: #C4BBAE; }
.mv-key .nat { letter-spacing: .06em; text-transform: uppercase; }
.mv-map .mp-mine { margin: .8rem 0 0; }
.mv-side { display: grid; gap: 1.4rem; }
.mv-side figure { margin: 0; }
.mv-trend svg, .mv-pic svg { width: 100%; height: auto; display: block; overflow: visible; }
.mv-pic svg.ck { max-width: 240px; margin: 0 auto; }
.mv-side figcaption { font: .62rem var(--mono); color: var(--muted); margin-top: .5rem; padding-top: .45rem; border-top: 1px solid var(--line); letter-spacing: .03em; }
.tb { fill: var(--saffron); }
.tb.o { fill: var(--ink); }
.tline { fill: none; stroke: var(--saffron); stroke-width: 3; stroke-linejoin: round; }
.ta { fill: rgba(242, 106, 27, .12); }
.tp { fill: var(--saffron); stroke: #fff; stroke-width: 1.5; }
.tp.o { fill: var(--ink); }
.c { transition: fill .3s; }
.wf { transition: fill .25s; }

/* Pictures */
.pg-b { position: relative; height: 26px; border-radius: 13px; background: var(--paper-2); overflow: hidden; }
.pg-b i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 13px; }
.pg-b .n { background: linear-gradient(90deg, var(--saffron), var(--green)); }
.pg-b .o { background: var(--ink); z-index: 1; opacity: .85; }
.pg-l { display: flex; justify-content: space-between; align-items: baseline; margin-top: .5rem; font: .62rem var(--mono); color: var(--muted); }
.pg-l b { font: 400 1.8rem var(--serif); color: var(--saffron-ink); }
.wl-n { position: relative; display: flex; justify-content: space-between; align-items: flex-end; height: 130px; padding: .8rem 1rem; border-radius: 10px; background: var(--saffron); overflow: hidden; border: 1px solid var(--ink); }
.wl-n .pk { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.wl-n span { position: relative; font: 400 2.4rem var(--serif); color: #fff; }
.wl p { font: .62rem var(--mono); color: var(--muted); margin: .5rem 0 0; }
.tm-r { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tm-r b { font: 600 .8rem var(--sans); }
.tm-r span { display: grid; grid-template-columns: 1fr 3.4rem; align-items: center; gap: .5rem; margin-top: .2rem; }
.tm-r span i { height: 8px; border-radius: 4px; display: block; }
.tm-r .o i { background: var(--then); }
.tm-r .n i { background: var(--saffron); }
.tm-r em { font: normal .66rem var(--mono); color: var(--muted); }
.bb { display: grid; grid-template-columns: 6rem 1fr auto; align-items: center; gap: .8rem .7rem; }
.bb .r { display: contents; } /* both rows share one set of columns, so the two bars keep the same scale */
.bb span { font: .62rem var(--mono); color: var(--muted); text-transform: uppercase; }
.bb i { height: 22px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.bb b { display: block; height: 100%; border-radius: 6px; }
.bb .o b { background: var(--ink); }
.bb .n b { background: linear-gradient(90deg, var(--saffron), #F48A3A); }
.bb em { font: normal 400 1.2rem var(--serif); text-align: right; white-space: nowrap; }
.bb .n em { color: var(--saffron-ink); }

/* State leaderboard */
.mv-states { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ms-h { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.ms-h .k { font: .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.ms-h button { font: .62rem var(--mono); padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink-2); }
.ms-h button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.ms li { display: grid; grid-template-columns: 1.6rem 8.5rem 1fr 7.5rem; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.ms li.me { background: #FFF6E6; box-shadow: 0 0 0 1px var(--gold); border-radius: 6px; }
.ms .n { font: .62rem var(--mono); color: var(--muted); text-align: right; }
.ms .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms .d { position: relative; height: 12px; }
.ms .d i { position: absolute; top: 50%; }
.ms .d .ln { height: 2px; margin-top: -1px; background: var(--saffron); opacity: .5; }
.ms .d .o, .ms .d .a { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; }
.ms .d .o { background: var(--ink); }
.ms .d .a { background: var(--saffron); }
.ms .v { font: .66rem var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }
.ms .v b { color: var(--ink); }

/* Footer */
.mv-foot { margin-top: 1.4rem; display: grid; gap: .6rem; }
.mv-joke { margin: 0; font: italic 400 clamp(1.05rem, 1.7vw, 1.3rem)/1.35 var(--serif); color: var(--ink); }
.mv-joke::before { content: "— "; color: var(--saffron); }
.mv-src { margin: 0; font: .62rem var(--mono); color: var(--muted); }
.mv-src a { color: inherit; }
.mv-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.mv-nav .next { order: -1; flex: 1 1 100%; min-height: 52px; font-size: .84rem; background: var(--ink); color: var(--paper); border-color: var(--ink); animation: nextGlow 2.8s ease-in-out infinite; }
.mv-nav .next:hover { background: var(--saffron-btn); border-color: var(--saffron-btn); color: #fff; animation-play-state: paused; }
/* the obvious next step: a soft saffron glow that breathes */
@keyframes nextGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 106, 27, 0), 0 4px 12px rgba(22, 19, 15, .12); } 50% { box-shadow: 0 0 0 5px rgba(242, 106, 27, .16), 0 0 22px 4px rgba(242, 106, 27, .32); } }
.mv-nav .srcb { gap: .35rem; text-decoration: none; color: #2E6B1F; border-color: #B9D8AC; background: #F1F8EC; }
.mv-nav .srcb:hover, .mv-nav .srcb:focus-visible { border-color: #2E6B1F; color: #2E6B1F; }
@media (min-width: 701px) { .mv-nav .next { flex: 0 1 auto; order: 0; padding: .5rem 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .mv-nav .next { animation: none; box-shadow: 0 0 0 4px rgba(242, 106, 27, .2); } }

@media (max-width: 900px) {
  .mv-top { grid-template-columns: minmax(0, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .ms { grid-template-columns: 1fr; }
  .dx-tot { font-size: .6rem; letter-spacing: 0; }
  .dx-tot span { display: none; }
  .dom-prog { display: none; }
}
@media (max-width: 560px) {
  .do-go { padding: .6rem .9rem; }
  .do-nm { display: none; }
  .dom.shut .dom-quip { display: none; }
  .mv-kpis { gap: .3rem; }
  .kp { min-width: 0; flex: 1 1 0; padding: .5rem .35rem; }
  .kp b { font-size: clamp(1rem, 5.4vw, 1.4rem); white-space: normal; overflow-wrap: anywhere; }
  .kp.c b { font-size: 1rem; }
  .mv-title, .mv-kpis { min-width: 0; }
  .kp-arrow { display: none; }
  .ms li { grid-template-columns: 1.3rem minmax(0, 6.2rem) minmax(1.5rem, 1fr) auto; gap: .4rem; font-size: .8rem; }
  /* phones: buttons on top, the full-width rail below */
  .mv-scrub { grid-template-columns: auto auto 1fr auto; grid-template-areas: "play yp . yl" "rail rail rail rail"; gap: .3rem .5rem; border-radius: 16px; padding: .45rem .55rem .1rem; }
  .mv-play { grid-area: play; } .mv-yp { grid-area: yp; } .mv-yl { grid-area: yl; } .mv-rail { grid-area: rail; }
  .mv-yp, .mv-yl { font-size: .74rem; }
  .mv-tk span, .mv-tk i.on span { font-size: .72rem; }
  .mv-dots { gap: 3px; }
  .mv-pos { gap: .45rem; }
  .mv-pin { margin-left: -.4rem; margin-right: -.4rem; padding-left: .4rem; padding-right: .4rem; }
  .dx-grid a { min-height: 50px; padding: .4rem .5rem .5rem .35rem; gap: .4rem; border-left-width: 4px; }
  .dx-grid .ic { font-size: 1.15rem; width: 1.5rem; }
  .dx-grid b { font-size: .8rem; }
  .dx-grid em { font-size: .66rem; }
  .db-n { display: none; }
  .dom-ban { padding: .75rem .9rem; }
  /* readable labels + thumb-sized controls */
  .mv-id, .mv-st, .kp span, .mv-key, .mv-side figcaption, .mv-src, .pg-l, .wl p, .bb span, .ms .n, .ms .v, .ms-h .k, .ms-h button, .dom-cr { font-size: .7rem; }
  .mv-key .yl, .tm-r em { font-size: .74rem; }
  .mv-trend .v-txt { font-size: 12px; }
  .mv-trend .v-txt-ink { font-size: 13px; }
  .ms-h button { min-height: 36px; padding: .3rem .8rem; }
  .mv-guess .mq-o .skip { font-size: .76rem; }
}
.dom-chips button { min-height: 44px; }
.mv-play { width: 44px; height: 44px; font-size: .85rem; }
.mq-o button { min-height: 44px; min-width: 64px; }
.mp-mine:empty { display: none; }
@media (max-width: 700px) { .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; } }
@media (max-width: 560px) {
  .mv-pin.stuck { padding-top: .25rem; }
  .mv-pin.stuck .mv-ph { margin-bottom: .3rem; }
  .mv-pin.stuck .mv-arr { width: 34px; height: 34px; }
}
