/* Uttung platform. Colour encodes data only: party, tier, data status. */
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/mukta-devanagari-400-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/mukta-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 500; font-display: swap;
  src: url("/static/fonts/mukta-devanagari-500-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 500; font-display: swap;
  src: url("/static/fonts/mukta-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20B9, U+2212; }
@font-face { font-family: "Mukta"; font-weight: 700; font-display: swap;
  src: url("/static/fonts/mukta-devanagari-700-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 700; font-display: swap;
  src: url("/static/fonts/mukta-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20B9, U+2212; }
@font-face { font-family: "Tiro Marathi"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/tiro-devanagari-marathi-devanagari-400-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Tiro Marathi"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/tiro-devanagari-marathi-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20B9, U+2212; }

:root {
  --ink: #18233A; --ink-2: #4A5468; --ink-3: #6E7687;
  --paper: #F3F4F6; --card: #FFFFFF; --rule: #D9DCE2; --rule-2: #E9EBEF;
  --saffron: #E2711D; --saffron-2: #F3B37E; --saffron-3: #FBE3CF;
  --teal: #2F7F7A; --plum: #6A4C93; --stone: #8A8F98;
  --plan: #2E7D4F; --warn: #B4361E; --focus: #1F5FD6;
  --serif: "Tiro Marathi", "Noto Serif Devanagari", Georgia, serif;
  --sans: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --s1: 13px; --s2: 15px; --s3: 18px; --s4: 24px; --s5: 32px; --s6: 44px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8EBF2; --ink-2: #B9C0CE; --ink-3: #8E97A8; --paper: #0F1626; --card: #172036;
    --rule: #2A3550; --rule-2: #222C44; --saffron: #F08A3C; --saffron-2: #A6602C; --saffron-3: #3A2A1E;
    --teal: #4FA8A2; --plum: #9C82C4; --stone: #7C8496; --plan: #5BB585; --warn: #F07A63; --focus: #7FA8FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E8EBF2; --ink-2: #B9C0CE; --ink-3: #8E97A8; --paper: #0F1626; --card: #172036;
  --rule: #2A3550; --rule-2: #222C44; --saffron: #F08A3C; --saffron-2: #A6602C; --saffron-3: #3A2A1E;
  --teal: #4FA8A2; --plum: #9C82C4; --stone: #7C8496; --plan: #5BB585; --warn: #F07A63; --focus: #7FA8FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 var(--s2)/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; }
h1 { font-size: var(--s5); } h2 { font-size: var(--s4); } h3 { font-size: var(--s3); }
p { margin: 0 0 .6em; max-width: 72ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: var(--s1); }
[hidden] { display: none !important; }

/* shell */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--card); border-right: 1px solid var(--rule); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: baseline; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid var(--rule-2); margin-bottom: 12px; }
.brand b { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--saffron); line-height: 1; }
.brand span { font-size: var(--s1); color: var(--ink-3); }
.nav-group { margin: 14px 0 4px; padding: 0 8px; font-size: var(--s1); color: var(--ink-3); }
.nav a { display: block; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.nav a:hover { background: var(--rule-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--saffron-3); color: var(--ink); box-shadow: inset 3px 0 0 var(--saffron); }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--rule); background: var(--card); position: sticky; top: 0; z-index: 5; }
.topbar .who { margin-left: auto; text-align: right; line-height: 1.2; }
.topbar .who small { display: block; color: var(--ink-3); font-size: var(--s1); }
.topbar .menu-btn { display: none; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 4px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.btn { border: 1px solid var(--rule); background: var(--card); border-radius: 6px; padding: 6px 12px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ink); color: var(--card); border-color: var(--ink); }
.btn.saffron { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.content { padding: 28px; max-width: 1180px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--ink-2); margin: 6px 0 0; }

/* panels: hierarchy by weight, not by identical cards */
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.panel.flat { background: none; border: 0; padding: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* data-status labels: shape and pattern, not colour alone */
.lbl { font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.lbl-real { color: var(--ink-2); }
.lbl-model { color: var(--saffron); border-style: dashed; }
.lbl-plan { color: var(--plan); border-radius: 99px; }
.lbl-sample { color: var(--ink-2); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--rule) 4px 6px); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* the strip: 288 seats in ladder order, ruled at 145 */
.hero { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 24px 24px 18px; margin-bottom: 18px; }
.hero h1 { font-size: var(--s6); }
.hero h1 small { display: block; font-family: var(--sans); font-size: var(--s3); color: var(--ink-2); margin-top: 8px; }
.strip-wrap { margin: 22px 0 6px; position: relative; }
.strip { width: 100%; height: 96px; display: block; }
.strip .t-wins { fill: var(--saffron); }
.strip .t-reach { fill: var(--saffron-2); }
.strip .t-build { fill: var(--saffron-3); stroke: var(--saffron); stroke-width: .25; }
.strip .t-cand { fill: var(--rule); }
.strip .held { fill-opacity: 1; }
.strip .line145 { stroke: var(--ink); stroke-width: 1.4; }
.strip-scale { display: flex; justify-content: space-between; font-size: var(--s1); color: var(--ink-3); }
.strip-key { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: var(--s1); color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.k-wins { background: var(--saffron); } .k-reach { background: var(--saffron-2); }
.k-build { background: var(--saffron-3); border: 1px solid var(--saffron); } .k-cand { background: var(--rule); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); margin-top: 18px; }
.fact { padding: 14px 16px 4px 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--rule-2); }
.fact .v { font-family: var(--serif); font-size: var(--s5); line-height: 1.1; }
.fact .d { color: var(--ink-2); font-size: var(--s1); margin-top: 4px; }
.fact .lbl { display: inline-block; margin-top: 8px; }

/* timeline: the contests really are a sequence */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.timeline li { border-top: 3px solid var(--rule); padding: 10px 10px 0 0; }
.timeline li.statutory { border-top-color: var(--saffron); }
.timeline .when { font-family: var(--serif); font-size: var(--s3); }
.timeline .what { font-size: var(--s1); color: var(--ink-2); }

table { width: 100%; border-collapse: collapse; font-size: var(--s2); }
th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: var(--s1); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); }
td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
td.r, th.r { text-align: right; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--rule-2); }
tr.crit td { background: var(--saffron-3); }
.table-wrap { overflow-x: auto; }
table.wrap td { overflow-wrap: anywhere; }
.party { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.p-BJP { background: var(--saffron); } .p-SHS, .p-NCP, .p-PARTNERS { background: var(--teal); }
.p-INC, .p-SSUBT, .p-NCPSP { background: var(--plum); } .p-OTH, .p-IND, .p-TOPOTHER, .p-AIMIM, .p-SP { background: var(--stone); }
.range { position: relative; height: 8px; background: var(--rule-2); border-radius: 4px; min-width: 90px; }
.range i { position: absolute; top: 0; bottom: 0; background: var(--saffron-2); border-radius: 4px; }
.range b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); }
.bar { height: 8px; background: var(--rule-2); border-radius: 4px; position: relative; min-width: 80px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); border-radius: 4px; }
.bar i.v { background: var(--saffron); }
.call { font-size: var(--s1); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--rule); white-space: nowrap; }
.call-Safe { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.call-Likely { border-color: var(--saffron); color: var(--saffron); }
.call-Likely.opposition, .call-Safe.opposition { background: none; color: var(--plum); border-color: var(--plum); }

.field-row { display: grid; gap: 6px; margin-bottom: 12px; }
.field-row label { font-size: var(--s1); color: var(--ink-2); }
input[type=text], input[type=email], input[type=number], select, textarea { border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; background: var(--card); width: 100%; }
input[type=range] { width: 100%; accent-color: var(--saffron); }
.check { display: flex; gap: 8px; align-items: flex-start; }
.notice { border-left: 3px solid var(--saffron); padding: 8px 12px; background: var(--saffron-3); margin-bottom: 14px; }
.notice.warn { border-color: var(--warn); }
.error { color: var(--warn); }
.intact { font-family: var(--serif); font-size: var(--s6); color: var(--plan); }
.broken { font-family: var(--serif); font-size: var(--s6); color: var(--warn); }
.mono-hash { font-family: ui-monospace, Menlo, monospace; font-size: var(--s1); word-break: break-all; }
.hist { width: 100%; height: 140px; display: block; }
.hist rect { fill: var(--saffron-2); } .hist rect.win { fill: var(--saffron); } .hist line { stroke: var(--ink); stroke-width: 1.5; }
.chain-list { margin: 0; padding-left: 18px; }

/* sign-in */
.signin { max-width: 440px; margin: 9vh auto; padding: 0 16px; }
.signin .brand { border: 0; padding-left: 0; }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }

/* watermark: the signed-in user's name across client screens */
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; opacity: .07; }
.watermark svg { width: 100%; height: 100%; }
.watermark text { fill: var(--ink); font: 500 15px var(--sans); }

/* tour */
.tour { position: fixed; right: 20px; bottom: 20px; width: min(420px, calc(100vw - 32px)); background: var(--ink); color: var(--card); border-radius: 10px; padding: 16px 18px; z-index: 60; }
.tour p { font-size: var(--s3); line-height: 1.45; margin: 6px 0 12px; }
.tour .row { display: flex; gap: 8px; align-items: center; }
.tour .btn { background: transparent; color: var(--card); border-color: var(--ink-3); }
.tour .step { margin-left: auto; font-size: var(--s1); opacity: .8; }

/* brief, print */
.brief { max-width: 68ch; }
.brief h2 { margin: 18px 0 8px; font-size: var(--s3); }
.brief ul { margin: 0; padding-left: 20px; }
.brief .first { font-size: var(--s3); font-family: var(--serif); }
@media print {
  .rail, .topbar, .tour, .no-print, .watermark { display: none !important; }
  .shell { display: block; } .content { padding: 0; } body { background: #fff; color: #000; }
  .panel { border: 0; padding: 0; }
}

@media (max-width: 1100px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 30% 0 0; z-index: 40; transform: translateX(-102%); transition: transform .2s; height: 100vh; box-shadow: 0 0 0 100vw rgba(0,0,0,0); }
  .rail.open { transform: none; box-shadow: 0 0 0 100vw rgba(10,15,30,.45); }
  .topbar .menu-btn { display: inline-block; }
  .topbar { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  .topbar .legend { display: none; }
  .content { padding: 16px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hero { padding: 18px 16px 14px; }
  .hero h1 { font-size: var(--s5); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .panel { padding: 14px; }
  .hide-sm { display: none; }
  .topbar .who { margin-left: auto; }
  .topbar .who small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
#view:focus { outline: none; }
.notice.caution { border-color: var(--warn); }

/* ---------- v0.4 cinematic opening ---------- */
:root { --night: #0E1830; --night-2: #16223F; --night-ink: #EEF1F7; --night-dim: #8E9AB5; --glow: #FF9A3C; }
.cine { background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 36px 36px 28px; margin-bottom: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; overflow: hidden; position: relative; }
.cine h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.5px; }
.cine .lede { color: var(--night-dim); font-size: var(--s3); margin: 14px 0 22px; max-width: 34ch; }
.cine .lbl { color: var(--night-dim); }
.cine .lbl-model { color: var(--glow); }
.big-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.big-stats .v { font-family: var(--serif); font-size: 46px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.big-stats .v.saffron { color: var(--glow); }
.big-stats .d { color: var(--night-dim); font-size: var(--s1); margin-top: 6px; max-width: 26ch; }
.mapbox { position: relative; }
.mapbox svg { width: 100%; height: auto; display: block; }
.mapbox .cap { color: var(--night-dim); font-size: var(--s1); margin-top: 8px; }
.ac { fill: #24325A; stroke: var(--night); stroke-width: .6; }
.ac.lit { animation: lit .55s ease-out both; animation-delay: var(--d, 0s); }
.ac.lit.t-wins { --to: #FF8A1F; } .ac.lit.t-reach { --to: #F7B26A; } .ac.lit.t-build { --to: #9C5A2A; } .ac.lit.t-cand { --to: #6B5A44; }
@keyframes lit { from { fill: #24325A; } 40% { fill: #FFE2B8; } to { fill: var(--to); } }
.ac.seat145 { stroke: #fff; stroke-width: 2.2; }
.outline { fill: none; stroke: #3B4A74; stroke-width: 1.2; }

.act { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; margin-bottom: 18px; }
.act-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.act-head h2 { font-size: 34px; }
.act-head p { color: var(--ink-2); margin: 6px 0 0; max-width: 60ch; }
.act-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.pc { stroke: var(--card); stroke-width: 1.2; transition: fill .4s ease; }
.pc.c5 { fill: var(--saffron); } .pc.c4 { fill: var(--saffron-2); } .pc.c3 { fill: #D9D4CC; } .pc.c2 { fill: #B9AACF; } .pc.c1 { fill: var(--plum); }
.pc.own { stroke: var(--ink); stroke-width: 1.6; }
.mood { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.mood button { border: 0; background: none; padding: 7px 12px; cursor: pointer; }
.mood button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 6px 0 14px; }
.tally .v { font-family: var(--serif); font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.tally .d { color: var(--ink-2); font-size: var(--s1); }
.callkey { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--s1); color: var(--ink-2); }
.callkey i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

.road { position: relative; margin: 10px 0 4px; }
.road-line { height: 4px; background: var(--rule); border-radius: 2px; position: relative; margin: 28px 0 0; }
.road-line i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--saffron); border-radius: 2px; width: 0; transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
.road-stops { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: -10px; }
.stop { position: relative; padding-top: 22px; }
.stop::before { content: ""; position: absolute; top: 2px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--rule); }
.stop.done::before { background: var(--saffron); border-color: var(--saffron); }
.stop.keystop::before { border-color: var(--ink); width: 18px; height: 18px; top: 0; }
.stop .when { font-family: var(--serif); font-size: var(--s4); line-height: 1.1; }
.stop .what { font-weight: 500; margin-top: 2px; }
.stop .how { color: var(--ink-2); font-size: var(--s1); margin-top: 4px; }

.chart { width: 100%; height: 240px; display: block; overflow: visible; }
.chart .grid line { stroke: var(--rule-2); } .chart .axis text { fill: var(--ink-3); font-size: 11px; }
.chart .ln { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln.a { stroke: var(--teal); } .chart .ln.u { stroke: var(--teal); stroke-dasharray: 5 6; opacity: .7; } .chart .ln.b { stroke: var(--saffron); }
.chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s ease-out forwards; }
.chart .ln.u.draw { animation: draw-u 1.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-u { to { stroke-dashoffset: 0; stroke-dasharray: 5 6; } }
.chart .half { stroke: var(--ink); stroke-dasharray: 3 4; }
.chart .dot { stroke: var(--card); stroke-width: 2; }
.chart .dot.a, .chart .dot.u { fill: var(--teal); } .chart .dot.b { fill: var(--saffron); }
.chartkey { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--s1); color: var(--ink-2); margin-top: 6px; }
.chartkey i { display: inline-block; width: 18px; height: 3px; vertical-align: 3px; margin-right: 6px; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.pillar { padding: 18px 18px 6px 0; }
.pillar + .pillar { padding-left: 18px; border-left: 1px solid var(--rule); }
.pillar h3 { color: var(--saffron); margin-bottom: 6px; }
.pillar p { color: var(--ink-2); font-size: var(--s2); }
.facts-big { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 18px; }
.facts-big .v { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--ink); }
.facts-big .d { color: var(--ink-2); max-width: 24ch; }

.commit { background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 40px 36px; margin-bottom: 18px; }
.commit blockquote { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.25; max-width: 30ch; }
.commit .next { color: var(--night-dim); margin-top: 18px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.arch { display: grid; gap: 10px; }
.arch div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; }
.arch b { color: var(--saffron); }
video.film { width: 100%; border-radius: 10px; background: #000; }

@media (max-width: 1100px) {
  .cine { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .road-stops { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
}
@media (max-width: 820px) {
  .cine { padding: 22px 18px; } .cine h1 { font-size: 38px; }
  .big-stats .v { font-size: 34px; }
  .act { padding: 18px 16px; } .act-head h2 { font-size: 26px; }
  .act-grid { grid-template-columns: 1fr; }
  .road-stops { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .commit { padding: 26px 18px; } .commit blockquote { font-size: 24px; }
  .facts-big .v { font-size: 46px; }
  .arch div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ac.lit { animation: none; fill: var(--to); } .reveal { opacity: 1; transform: none; }
  .chart .draw { animation: none; stroke-dashoffset: 0; } .road-line i { transition: none; }
}
.mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; }
.k-toss { background: #D9D4CC; } .k-opp { background: var(--plum); } .k-teal { background: var(--teal); }
.k-teal-u { background: var(--teal); opacity: .6; } .k-saffron { background: var(--saffron); } .half-size { font-size: .5em; }
/* film mode: the tour becomes a lower-third caption for recording */
.film-mode .tour { left: 50%; right: auto; transform: translateX(-50%); bottom: 36px; width: min(1180px, 92vw); padding: 18px 28px;
  background: rgba(14, 24, 48, .94); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.film-mode .tour p { font-size: 26px; line-height: 1.4; margin: 0; }
.film-mode .tour .row { display: none; }

/* message desk (v0.5): the clock is the loudest thing on the screen */
.desk-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 4px 0 20px; }
.desk-figs .v { font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.desk-figs .v .of { font-size: 22px; color: var(--ink-3); }
.desk-figs .d { font-size: var(--s1); color: var(--ink-2); margin-top: 6px; }
.desk-list { list-style: none; margin: 0; padding: 0; }
.desk-item { border-top: 1px solid var(--rule); padding: 14px 0 14px 14px; border-left: 3px solid transparent; }
.desk-item:first-child { border-top: 0; }
.desk-item.late { border-left-color: var(--warn); }
.desk-item h3 { margin: 6px 0 6px; font-size: var(--s2); }
.desk-item p { margin: 4px 0; max-width: 72ch; overflow-wrap: anywhere; }
.desk-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.desk-act { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.desk-form { margin-top: 10px; padding: 12px; background: var(--paper); border-radius: 8px; }
.tag { font-size: 12px; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--rule); white-space: nowrap; }
.tag.rumour { border-color: var(--warn); color: var(--warn); }
.tag.message { border-color: var(--teal); color: var(--teal); }
.tag.ai { border-style: dashed; }
.clock { margin-left: auto; font-variant-numeric: tabular-nums; font-size: var(--s1); font-weight: 600; }
.clock.ok { color: var(--plan); }
.clock.soon { color: var(--saffron); }
.clock.late { color: var(--warn); }
.steps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 8px 0 0; flex-wrap: wrap; }
.steps li { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: var(--rule-2); color: var(--ink-3); }
.steps li.on { background: var(--saffron-3); color: var(--ink); }
.steps li.now { outline: 1px solid var(--saffron); }
fieldset.chk { border: 0; padding: 0; margin: 0 0 10px; }
fieldset.chk legend { font-weight: 600; margin-bottom: 8px; }
details > summary { cursor: pointer; }
@media (max-width: 760px) { .desk-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .desk-figs .v { font-size: 32px; } .clock { margin-left: 0; width: 100%; } }

/* track record (v0.6): misses shown with the same weight as hits */
.track { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.track li { padding: 6px 0 6px 12px; border-left: 3px solid var(--plan); }
.track li.miss { border-left-color: var(--warn); }
.track li span { margin-left: 6px; }
@media (max-width: 760px) { .track { grid-template-columns: 1fr; } }

/* v0.7: the leader, the House, the votes. One night canvas per act; saffron as light, green as the party's second colour */
:root { --party-2: #1F8A3B; }
.leader { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 0; background: radial-gradient(120% 90% at 18% 30%, #22305A 0%, var(--night) 62%); color: var(--night-ink); border-radius: 14px; overflow: hidden; margin-bottom: 18px; min-height: 560px; }
.leader-photo { position: relative; }
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 58%, transparent 100%); filter: saturate(1.05) contrast(1.04); }
.leader-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(0deg, var(--night), transparent); }
.leader-copy { padding: 44px 40px 32px 8px; position: relative; z-index: 1; }
.leader .eyebrow { color: var(--glow); font-size: var(--s2); margin: 0 0 6px; }
.leader h2 { font-family: var(--serif); font-size: 60px; line-height: 1.02; color: #fff; margin: 0 0 14px; }
.leader-lede { color: #C9D1E2; font-size: var(--s3); max-width: 46ch; margin: 0 0 24px; }
.leader-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 18px 0; border-top: 1px solid #2A3550; border-bottom: 1px solid #2A3550; }
.leader-figs .v { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--glow); font-variant-numeric: tabular-nums; }
.leader-figs .v .of { font-size: 20px; color: var(--night-dim); }
.leader-figs .d { color: var(--night-dim); font-size: var(--s1); margin-top: 6px; }
.leader-time { list-style: none; padding: 0; margin: 20px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; }
.leader-time li { border-left: 2px solid var(--party-2); padding-left: 10px; font-size: var(--s1); color: #C9D1E2; }
.leader-time li b { display: block; color: #fff; font-family: var(--serif); font-size: 18px; font-weight: 400; }
.leader-src { color: var(--night-dim); margin: 6px 0 0; }
.leader .lbl { color: var(--night-dim); }
.party-row { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.party-row li { border-top: 3px solid var(--rule); padding: 12px 4px 4px 0; }
.party-row li.cm { border-top-color: var(--saffron); }
.party-row b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.party-row span { color: var(--ink-2); font-size: var(--s1); }
.house { background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 32px 36px; margin-bottom: 18px; }
.house-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.house h2 { font-family: var(--serif); font-size: 52px; color: #fff; margin: 0 0 10px; }
.house-lede { color: var(--night-dim); max-width: 44ch; margin: 0 0 16px; }
.house .btn { background: transparent; color: var(--night-ink); border-color: #33405F; }
.house .btn.on { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.house .lbl { color: var(--night-dim); }
#hemi { width: 100%; height: auto; }
.seat-dot { opacity: 0; animation: dotIn .5s ease forwards; animation-delay: var(--d, 0s); }
@keyframes dotIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hemi-line { stroke: #fff; stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .7; }
.hemi-cap { fill: var(--night-dim); font-size: 13px; }
.hemi-key { margin-top: 10px; color: var(--night-dim); font-size: var(--s1); }
.hemi-key span { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.hk { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.saffron-ink { color: var(--saffron) !important; }
.vote-chips { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vote-chips a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; color: var(--ink); }
.vote-chips a:hover { border-color: var(--saffron); }
.vote-chips span { color: var(--ink-2); font-size: var(--s1); font-variant-numeric: tabular-nums; }
.vote-chips em { color: var(--saffron); font-style: normal; font-size: var(--s1); }
@media (max-width: 960px) {
  .leader { grid-template-columns: 1fr; min-height: 0; }
  .leader-photo { height: 380px; }
  .leader-photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
  .leader-copy { padding: 0 20px 24px; margin-top: -60px; }
  .leader h2 { font-size: 42px; }
  .leader-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader-time { grid-template-columns: 1fr 1fr; }
  .party-row { grid-template-columns: 1fr 1fr; }
  .house { padding: 22px 18px; }
  .house-grid { grid-template-columns: 1fr; }
  .house h2 { font-size: 38px; }
  .vote-chips { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .seat-dot { animation: none; opacity: 1; } }
.leader .party-mark { width: 40px; height: 40px; vertical-align: middle; margin-right: 10px; }

/* v0.8: the ground and seat talks */
.ground-hero { background: radial-gradient(110% 120% at 85% 10%, #3A2A1E 0%, var(--night) 55%); }
.ground-hero .eyebrow { color: var(--glow); margin: 0 0 8px; }
.ground-hero .big-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gcards article { border-top: 3px solid var(--saffron); padding: 14px 4px 4px 0; }
.gcards article.up { border-top-color: var(--party-2); position: relative; }
.gcards h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 6px; }
.gcards p { color: var(--ink-2); margin: 0 0 6px; }
.gcards .src { font-size: 12px; color: var(--ink-3); }
.gcards .n { font-family: var(--serif); font-size: 30px; color: var(--party-2); font-weight: 400; display: block; line-height: 1; margin-bottom: 4px; }
.vision { background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 36px; margin-bottom: 18px; }
.vision h2 { font-family: var(--serif); color: var(--glow); font-size: 22px; font-weight: 400; margin: 0 0 14px; }
.vision ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vision li span { display: block; font-family: var(--serif); font-size: 34px; line-height: 1.1; color: #fff; }
.vision li em { font-style: normal; color: var(--night-dim); font-size: var(--s1); }
.gbar { flex: 1; height: 10px; background: var(--rule-2); border-radius: 99px; overflow: hidden; }
.gbar i { display: block; height: 100%; background: var(--ink-3); border-radius: 99px; }
.gbar.saff i { background: var(--saffron); }
.promise { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.promise .gbar i { background: var(--saffron); }
.resrow { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 12px; margin: 8px 0; }
.resrow b { text-align: right; }
table.risks td.answer { color: var(--party-2); font-weight: 600; }
.chain { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: c; }
.chain li { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.chain li b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.chain li span { color: var(--ink-2); }
.chain li:last-child b { color: var(--saffron); }
.ideas { background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 32px 36px; margin-bottom: 18px; }
.ideas .act-head h2 { color: #fff; font-family: var(--serif); }
.ideas .act-head p, .ideas .lbl { color: var(--night-dim); }
.ideas ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; counter-reset: idea; }
.ideas li { counter-increment: idea; border-top: 1px solid #2A3550; padding-top: 12px; }
.ideas li::before { content: counter(idea, decimal-leading-zero); color: var(--glow); font-family: var(--serif); font-size: 22px; display: block; }
.ideas li b { display: block; color: #fff; font-size: var(--s2); margin: 2px 0 4px; }
.ideas li span { color: var(--night-dim); font-size: var(--s1); }
.talk-list { max-height: 460px; overflow: auto; border-top: 1px solid var(--rule); }
.talk-row { display: grid; grid-template-columns: 22px 1fr auto 52px; gap: 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--rule-2); cursor: pointer; }
.talk-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.talk-out .big-stats .v { color: var(--ink); font-size: 44px; }
.talk-out .big-stats .d { color: var(--ink-2); }
@media (max-width: 960px) {
  .ground-hero .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcards, .ideas ol { grid-template-columns: 1fr; }
  .vision li span { font-size: 24px; }
  .chain li { grid-template-columns: 1fr; gap: 4px; }
  .resrow { grid-template-columns: 110px 1fr 60px; }
}
.ground-hero { display: block; }
.ground-hero h1 { max-width: 16ch; }
.ground-hero .big-stats .v { font-size: 40px; white-space: nowrap; }

/* v0.9: command clock, scorecard, youth, manifesto */
.clock-hero { display: block; background: radial-gradient(90% 120% at 80% 50%, #1D2B52 0%, var(--night) 60%); }
.clock-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.clock-hero .eyebrow { color: var(--glow); margin: 0 0 8px; }
.clock-hero h1 { font-size: 46px; max-width: 18ch; }
.now-card { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid #2A3550; border-radius: 10px; padding: 14px 16px; }
.now-card b { color: #fff; } .now-card p { margin: 4px 0 0; color: #C9D1E2; }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--glow); margin-top: 5px; flex: none; box-shadow: 0 0 0 0 rgba(255,154,60,.7); animation: beat 1.8s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(255,154,60,.6); } 70% { box-shadow: 0 0 0 14px rgba(255,154,60,0); } 100% { box-shadow: 0 0 0 0 rgba(255,154,60,0); } }
.dial { width: 100%; max-width: 420px; justify-self: center; }
.dial-ring { fill: none; stroke: #1E2A4A; stroke-width: 18; }
.dial-arc { fill: none; stroke: #33436B; stroke-width: 14; stroke-linecap: round; }
.dial-arc.on { stroke: var(--glow); filter: drop-shadow(0 0 6px rgba(255,154,60,.6)); }
.dial-dot { fill: #8E9AB5; } .dial-dot.on { fill: #fff; }
.dial-t { fill: var(--night-dim); font-size: 10px; }
.dial-hand { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; transform-origin: 170px 170px; animation: sweep 2.4s ease-out; }
@keyframes sweep { from { transform: rotate(-200deg); opacity: 0; } to { transform: none; opacity: 1; } }
.dial-now { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.dial-hub { fill: var(--glow); } .dial-c { fill: var(--night-dim); font-size: 13px; letter-spacing: .5px; }
.day-line { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.day-line li { border-top: 3px solid var(--rule); padding-top: 10px; }
.day-line li.on { border-top-color: var(--saffron); }
.day-line b { font-family: var(--serif); font-size: 22px; font-weight: 400; display: block; }
.day-line .t { display: block; font-weight: 600; margin: 2px 0; }
.day-line span:last-child { color: var(--ink-2); font-size: var(--s1); }
.always { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: var(--paper); border-radius: 10px; padding: 14px; }
.always b { display: block; color: var(--saffron); font-family: var(--serif); font-size: 20px; font-weight: 400; }
.always span { color: var(--ink-2); font-size: var(--s1); }
.flow { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.flow li { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; position: relative; }
.flow li em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.flow li b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; margin: 2px 0; }
.flow .who { font-size: 12px; padding: 2px 6px; border-radius: 4px; background: var(--rule-2); }
.flow .who-aravak .who { background: #E3EFEE; color: var(--teal); }
.flow .who-party .who { background: var(--saffron-3); color: #9C4A12; }
.flow .who-itcell .who { background: #E4F2E7; color: var(--party-2); }
.flow p { color: var(--ink-2); font-size: var(--s1); margin: 8px 0 0; }
.cad { list-style: none; padding: 0; margin: 0; } .cad li { padding: 6px 0; border-top: 1px solid var(--rule-2); color: var(--ink-2); } .cad b { color: var(--ink); }
.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.score-v b { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; }
.score-v span { display: block; color: var(--ink-2); font-size: var(--s1); margin-top: 4px; }
.score-bar { position: relative; height: 10px; background: var(--rule-2); border-radius: 99px; margin: 14px 0 8px; }
.score-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--saffron); border-radius: 99px; }
.score-bar u { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); }
.score.behind .st { color: var(--warn); font-weight: 600; } .score.on-track .st { color: var(--party-2); font-weight: 600; } .score.north-star .st { color: var(--saffron); }
.youth-hero { display: block; background: radial-gradient(100% 120% at 90% 0%, #1C3A2A 0%, var(--night) 60%); }
.youth-hero h1 { font-size: 40px; } .youth-n { font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--glow); }
.youth-hero .eyebrow { color: #9FD8B0; margin: 0; }
table.heat td.hc { text-align: right; font-variant-numeric: tabular-nums; }
table.heat td[data-h="1"] { background: #FFF4EA; } table.heat td[data-h="2"] { background: #FDE2C8; } table.heat td[data-h="3"] { background: #FACB9E; }
table.heat td[data-h="4"] { background: #F5A86A; } table.heat td[data-h="5"] { background: #E2711D; color: #fff; }
.tag.pr-delivered { border-color: var(--party-2); color: var(--party-2); } .tag.pr-pending { border-color: var(--warn); color: var(--warn); } .tag.pr-in-progress { border-color: var(--saffron); color: var(--saffron); }
@media (max-width: 960px) {
  .clock-grid { grid-template-columns: 1fr; } .clock-hero h1 { font-size: 34px; }
  .day-line, .always, .flow { grid-template-columns: 1fr 1fr; } .score-grid { grid-template-columns: 1fr; }
  .youth-n { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) { .pulse-dot, .dial-hand { animation: none; } }

/* party colours: a quiet saffron-to-green field behind every signed-in screen; the party's own mark when supplied */
body.signed-in { background-image: linear-gradient(135deg, rgba(255,153,51,.07) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(19,136,8,.06) 100%); background-attachment: fixed; }
body.has-mark::before { content: ""; position: fixed; right: -6vw; bottom: -8vh; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background-image: var(--mark); background-size: contain; background-repeat: no-repeat; opacity: .05; pointer-events: none; z-index: 0; }
td.spark { width: 90px; height: 34px; display: flex; align-items: flex-end; gap: 4px; }
td.spark i { flex: 1; background: var(--saffron); border-radius: 2px 2px 0 0; min-height: 2px; }

/* v0.9.1: leader photographs inside the cinematic bands; the copy always sits above the picture */
.ph-hero { position: relative; overflow: hidden; }
.ph-hero > .ph-copy { position: relative; z-index: 1; }
.ph-cut { position: absolute; right: 3%; bottom: 0; height: 100%; max-height: 460px; width: auto; pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.ph-bg { position: absolute; top: 0; right: 0; width: 56%; height: 100%; object-fit: cover; object-position: 60% 25%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); opacity: .9; }
.commit.ph-hero { min-height: 340px; display: flex; align-items: center; background: radial-gradient(90% 140% at 88% 100%, #3A2A1E 0%, var(--night) 58%); }
.commit .ph-copy { max-width: 62%; }
.youth-hero.ph-hero { min-height: 380px; }
.youth-hero .ph-copy { max-width: 60%; }
.ground-hero .ph-bg { width: 50%; height: 78%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 40%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.mf-hero, .sc-hero { background: radial-gradient(100% 140% at 90% 10%, #3A2A1E 0%, var(--night) 58%); min-height: 300px; }
.mf-hero .ph-copy, .sc-hero .ph-copy { max-width: 52%; }
.mf-hero .big-stats, .sc-hero .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-hero .big-stats .of, .sc-hero .big-stats .of { font-size: .45em; color: var(--night-dim); }
.mf-hero h1, .sc-hero h1 { font-size: 46px; }
body.has-mark .rail .brand { display: flex; align-items: center; gap: 10px; }
body.has-mark .rail .brand::before { content: ""; flex: none; width: 34px; height: 34px; background-image: var(--mark); background-size: contain; background-repeat: no-repeat; }
@media (max-width: 760px) {
  .commit.ph-hero, .youth-hero.ph-hero { display: block; padding-bottom: 0; }
  .ph-cut { position: static; display: block; height: 240px; max-height: none; margin: 10px 0 0 auto; filter: none; }
  .ph-bg, .ground-hero .ph-bg { position: static; display: block; width: calc(100% + 36px); height: 200px; margin: -22px -18px 16px; max-width: none; opacity: 1;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%); mask-image: linear-gradient(0deg, transparent 0%, #000 45%); -webkit-mask-composite: source-over; mask-composite: add; }
  .commit .ph-copy, .youth-hero .ph-copy, .mf-hero .ph-copy, .sc-hero .ph-copy { max-width: none; }
  .mf-hero h1, .sc-hero h1 { font-size: 34px; }
}
.cine .lbl-sample, .leader .lbl-sample, .house .lbl-sample, .commit .lbl-sample, .ideas .lbl-sample { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,.12) 4px 6px); }
.sc-hero .big-stats { grid-template-columns: minmax(0, 1fr); }
.sc-hero .big-stats .d { max-width: 30ch; }
.ph-copy > p.small { margin-top: 16px; }
@media (max-width: 760px) { .ground-hero .big-stats .v { font-size: 28px; white-space: normal; } .ground-hero .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v0.10: the winning agenda */
.ag-hero { background: radial-gradient(90% 130% at 85% 20%, #4A2A12 0%, var(--night) 60%); min-height: 520px; }
.ag-hero .ph-copy { max-width: 64%; }
.ag-hero .eyebrow { color: var(--glow); margin: 0 0 10px; }
.ag-line { font-size: 60px; line-height: 1.12; margin: 0; }
.ag-line .w { display: inline-block; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.ag-line .w2 { animation-delay: .25s; color: var(--glow); } .ag-line .w3 { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ag-en { font-family: var(--serif); font-size: 22px; color: var(--night-ink); margin: 12px 0 0; opacity: .9; }
.ag-hero .big-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-switch { display: inline-flex; gap: 0; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; margin: 4px 0 16px; }
.ag-switch .btn { border: 0; border-radius: 999px; min-width: 96px; }
.ag-switch .btn.on { background: var(--night); color: #fff; }
.ag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ag-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--saffron); border-radius: 12px; padding: 18px 18px 14px; }
.ag-card[hidden] { display: none; }
.ag-mr { position: absolute; right: -6px; top: -10px; font-size: 72px; line-height: 1; font-weight: 700; color: var(--saffron); opacity: .09; pointer-events: none; white-space: nowrap; }
.ag-fig { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--saffron); font-variant-numeric: tabular-nums; }
.ag-fl { font-size: var(--s1); color: var(--ink-2); margin: 6px 0 10px; }
.ag-card h3 { margin: 0 0 8px; font-size: 20px; }
.ag-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: var(--s1); margin: 0 0 10px; }
.ag-card dt { color: var(--ink-2); font-weight: 600; } .ag-card dd { margin: 0; }
.ag-attack, .ag-answer { font-size: var(--s1); margin: 0 0 8px; padding-left: 10px; border-left: 3px solid; }
.ag-attack { border-color: #C2412D; } .ag-answer { border-color: #2E7D4F; }
.ag-attack b, .ag-answer b { display: block; font-size: 12px; letter-spacing: .3px; }
.ag-attack b { color: #C2412D; } .ag-answer b { color: #2E7D4F; }
.chip { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #FFF1E3; color: #9A4A0A; margin-left: 4px; white-space: nowrap; }
.ag-card .src { font-size: 11px; color: var(--ink-2); margin: 6px 0 0; }
.ag-pillars { display: block; background: radial-gradient(100% 140% at 10% 0%, #1C3A2A 0%, var(--night) 62%); }
.ag-pillars h2 { color: var(--night-ink); font-size: 36px; margin: 0; }
.pillar-row { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pillar-row li { position: relative; padding-top: 14px; }
.pillar-row li::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--glow); transition: width 1.1s ease .2s; }
.ag-pillars.in .pillar-row li::before { width: 100%; }
.pillar-row em { font-style: normal; font-family: var(--serif); color: var(--glow); font-size: 18px; }
.pillar-row b { display: block; font-size: 21px; line-height: 1.25; margin: 6px 0 2px; color: #fff; }
.pillar-row .pe { display: block; color: var(--night-dim); font-size: var(--s1); margin-bottom: 8px; }
.pillar-row p { color: var(--night-ink); font-size: 13px; margin: 0 0 6px; opacity: .88; }
.pillar-row i { font-style: normal; color: var(--glow); font-size: 11px; display: block; }
.machine-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 10px;
  background: linear-gradient(90deg, #E2711D, #F3B37E 50%, #2E7D4F); background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; color: #0E1830; }
.machine-bar b { font-size: 24px; } .machine-bar span { font-weight: 600; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.stand-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stand-row div { border-top: 3px solid var(--saffron); padding-top: 10px; }
.stand-row b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.stand-row span { display: block; color: var(--ink-2); font-size: var(--s1); margin-top: 4px; }
.stand-row small { display: block; color: var(--ink-2); font-size: 11px; margin-top: 4px; }
.ag-road { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); position: relative; }
.ag-road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--rule); }
.ag-road li { position: relative; padding: 24px 8px 0 0; }
.ag-road li::before { content: ""; position: absolute; left: 0; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--saffron); }
.ag-road li:nth-last-child(-n+2)::before { background: var(--saffron); }
.ag-road b { display: block; font-size: 14px; } .ag-road span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.note-card { background: var(--paper, #F3F4F6); border-radius: 10px; padding: 14px 16px; }
.note-card h3 { margin: 0 0 6px; } .note-card p { margin: 0 0 6px; font-size: var(--s1); }
.gcards .copy { border-left: 3px solid #2E7D4F; padding-left: 10px; font-size: var(--s1); }
.ag-forecast { display: block; background: radial-gradient(100% 140% at 50% 0%, #1D2B52 0%, var(--night) 62%); }
.ag-forecast h2 { color: var(--night-ink); font-size: 36px; margin: 0; }
.fc-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 18px 0 12px; }
.fc { position: relative; background: #fff; color: #18233A; border-radius: 10px; padding: 14px 14px 64px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: rotate(-.6deg); }
.fc:nth-child(even) { transform: rotate(.6deg); }
.fc h3 { margin: 0; font-size: 22px; color: #18233A; } .fc .muted { color: #6E7687; } .fc b { display: block; font-size: 15px; }
.fc-p { font-family: var(--serif); font-size: 40px; color: #C2581B; line-height: 1.1; margin-top: 4px; }
.fc .stamp { position: absolute; left: 12px; right: 12px; bottom: 10px; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 14px; transform: rotate(-3deg); }
.fc.hit .stamp { background: #0F5132; color: #D5F5E3; } .fc.miss .stamp { background: #fff; color: #B4361E; border: 2px solid #B4361E; }
.fc .stamp small { font-weight: 500; font-size: 11px; }
@media (max-width: 1100px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillar-row, .fc-row, .stand-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ag-road { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; } }
@media (max-width: 760px) {
  .ag-hero .ph-copy { max-width: none; } .ag-line { font-size: 36px; } .ag-en { font-size: 17px; }
  .ag-hero .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-grid, .pillar-row, .fc-row, .stand-row { grid-template-columns: minmax(0, 1fr); }
  .ag-road { grid-template-columns: minmax(0, 1fr); } .ag-road::before { display: none; }
  .fc, .fc:nth-child(even) { transform: none; } .ag-mr { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { .ag-line .w, .machine-bar { animation: none; } .pillar-row li::before { transition: none; width: 100%; } }
.ag-card:not([hidden]) { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.ag-card:nth-child(6n+2) { animation-delay: .06s; } .ag-card:nth-child(6n+3) { animation-delay: .12s; } .ag-card:nth-child(6n+4) { animation-delay: .18s; } .ag-card:nth-child(6n+5) { animation-delay: .24s; } .ag-card:nth-child(6n) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .ag-card:not([hidden]) { animation: none; } }

/* ---------- v0.11: full throttle. One opening, light on every hero, numbers that land, the mark everywhere it is allowed ---------- */
/* the opening curtain */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px;
  background: radial-gradient(70% 60% at 50% 42%, #3A220E 0%, #0E1830 62%, #070D1C 100%); color: #fff; cursor: pointer;
  transition: transform .75s cubic-bezier(.7,0,.2,1), opacity .75s ease; }
.intro.out { transform: translateY(-100%); opacity: .2; }
.in-halo { position: absolute; left: 50%; top: 40%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%) scale(.4); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,154,60,.55) 0%, rgba(255,154,60,.12) 38%, transparent 66%); animation: halo 2.4s ease-out .1s both; pointer-events: none; }
@keyframes halo { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 60% { opacity: 1; } to { opacity: .85; transform: translate(-50%, -50%) scale(1.05); } }
.in-mark { width: 132px; height: 132px; background-image: var(--mark); background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 0 28px rgba(255,154,60,.7)); animation: markin 1.1s cubic-bezier(.2,.8,.2,1) .15s both; position: relative; }
@keyframes markin { from { opacity: 0; transform: translateY(30px) scale(.7); } to { opacity: 1; transform: none; } }
.intro p { margin: 0; max-width: none; position: relative; }
.in-l1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 64px); line-height: 1.05; margin-top: 18px !important; animation: rise .8s cubic-bezier(.2,.7,.2,1) .7s both; }
.in-l2 { font-family: var(--serif); font-size: clamp(72px, 15vw, 168px); line-height: .95; letter-spacing: -2px; animation: rise .9s cubic-bezier(.2,.7,.2,1) .95s both;
  background: linear-gradient(180deg, #FFE2B8 0%, #FF9A3C 55%, #E2711D 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.in-rule { width: min(420px, 70vw); height: 3px; margin: 14px 0 10px; border-radius: 3px; position: relative;
  background: linear-gradient(90deg, transparent, #FF9A3C 20%, #fff 50%, #2E9D5F 80%, transparent); transform: scaleX(0); animation: grow .9s ease-out 1.35s both; }
@keyframes grow { to { transform: scaleX(1); } }
.in-l3 { font-size: clamp(17px, 2.4vw, 24px); color: #F3D7BC; letter-spacing: .2px; animation: rise .8s ease 1.6s both; }
.in-skip { position: absolute; right: 22px; bottom: 22px; background: transparent; color: #C9D2E6; border: 1px solid #3B4A74; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.in-skip:hover { color: #fff; border-color: #FF9A3C; }

/* every dark hero: a slow light pass on arrival, a vignette, the mark as a quiet seal */
.cine::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 35%, rgba(255,214,170,.16) 47%, rgba(255,255,255,.22) 50%, rgba(255,214,170,.16) 53%, transparent 65%);
  background-size: 260% 100%; background-position: 130% 0; animation: pass 2.6s cubic-bezier(.4,0,.2,1) .35s both; mix-blend-mode: screen; }
@keyframes pass { from { background-position: 130% 0; } to { background-position: -40% 0; } }
.cine { box-shadow: 0 24px 60px -24px rgba(14,24,48,.65), inset 0 0 0 1px rgba(255,154,60,.14); isolation: isolate; }
body.has-mark .cine::before { content: ""; position: absolute; right: 18px; bottom: 14px; width: 92px; height: 92px; z-index: 1; pointer-events: none;
  background-image: var(--mark); background-size: contain; background-repeat: no-repeat; opacity: .22; filter: drop-shadow(0 0 18px rgba(255,154,60,.5)); }
body.has-mark .ph-hero::before { width: 64px; height: 64px; opacity: .92; }
.cine h1 { text-shadow: 0 2px 30px rgba(255,154,60,.18); }
.big-stats .v { transition: text-shadow .5s ease, transform .5s cubic-bezier(.2,1.6,.4,1); }
.big-stats .v.landed, .ag-fig .landed, .ag-fig[data-count].landed { animation: land .9s ease-out both; }
@keyframes land { 0% { transform: scale(1); } 30% { transform: scale(1.07); text-shadow: 0 0 26px rgba(255,154,60,.85); } 100% { transform: scale(1); text-shadow: 0 0 14px rgba(255,154,60,.25); } }
.big-stats .v.saffron { text-shadow: 0 0 22px rgba(255,154,60,.35); }
.big-stats > div { position: relative; padding-left: 14px; }
.big-stats > div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--glow), rgba(255,154,60,0)); }
.talk-out .big-stats > div::before { background: linear-gradient(180deg, var(--saffron), transparent); }

/* the map breathes: a warm light behind lit districts */
.mapbox::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,138,31,.22), transparent 66%); animation: breathe 5s ease-in-out 1.8s infinite alternate; }
@keyframes breathe { from { opacity: .45; transform: scale(.96); } to { opacity: 1; transform: scale(1.03); } }
.mapbox svg { position: relative; }
.ac.lit.t-wins { stroke: #FFC58A; stroke-width: .5; }

/* section heads draw a saffron rule as they come in */
.act-head h2 { position: relative; padding-bottom: 8px; }
.act-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--saffron), #F3B37E 70%, transparent); transition: width 1s cubic-bezier(.2,.7,.2,1) .25s; }
.act.in .act-head h2::after, .act:not(.reveal) .act-head h2::after { width: 96px; }
.act { transition: box-shadow .4s ease; }
.act:hover { box-shadow: 0 14px 40px -26px rgba(14,24,48,.45); }

/* the rail carries the mark at size, the active screen glows saffron */
body.has-mark .rail .brand::before { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(226,113,29,.45)); }
.brand b { font-size: 31px; background: linear-gradient(180deg, #F08A3C, #C2581B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav a { transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav a:hover { transform: translateX(2px); }
.nav a[aria-current="page"] { background: linear-gradient(90deg, var(--saffron-3), transparent); box-shadow: inset 4px 0 0 var(--saffron); font-weight: 600; }
.topbar { position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, #E2711D 0%, #FF9A3C 40%, #F3F4F6 50%, #2E9D5F 60%, #1F7A45 100%); background-size: 200% 100%; animation: shimmer 9s ease-in-out infinite alternate; opacity: .85; }
body.has-mark::before { opacity: .07; }

/* cards lift a little under the pointer; agenda figures carry the same glow */
.ag-card, .gcards article, .note-card, .fc { transition: transform .25s ease, box-shadow .25s ease; }
.ag-card:hover, .gcards article:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -22px rgba(226,113,29,.55); }
.fc:hover { transform: rotate(0) translateY(-4px) scale(1.02); }
.ag-fig { text-shadow: 0 0 1px rgba(226,113,29,.2); }
.ag-road li:nth-last-child(-n+2)::before { box-shadow: 0 0 0 0 rgba(255,154,60,.6); animation: beat 2.2s ease-out infinite; }
.ag-road::before { background: linear-gradient(90deg, var(--rule) 0%, var(--saffron-2) 70%, var(--saffron) 100%); }

@media (max-width: 760px) { .in-mark { width: 96px; height: 96px; } body.has-mark .cine::before { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) {
  .cine::after, .mapbox::before, .topbar::after, .ag-road li:nth-last-child(-n+2)::before { animation: none; }
  .cine::after { display: none; } .big-stats .v.landed { animation: none; } .act-head h2::after { transition: none; width: 96px; }
  .ag-card:hover, .gcards article:hover, .fc:hover, .nav a:hover { transform: none; }
}
@media print { .intro, .cine::after, .topbar::after { display: none; } }

/* ---------- v0.12: Lok Sabha and Vidhan Sabha sections at the top ---------- */
.elec { display: inline-flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); flex: none; box-shadow: 0 6px 18px -14px rgba(14,24,48,.6); }
.elec button { border: 0; background: var(--card); color: var(--ink); padding: 6px 14px 5px; text-align: left; cursor: pointer; line-height: 1.15; transition: background .2s ease, color .2s ease; }
.elec button + button { border-left: 1px solid var(--rule); }
.elec b { display: block; font-size: 15px; }
.elec small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.elec button[aria-pressed="true"] { background: linear-gradient(135deg, #E2711D, #F39A4B); color: #fff; }
.elec button[aria-pressed="true"] small { color: #FFF1E3; }
.elec button:not([aria-pressed="true"]):hover { background: var(--saffron-3); }
@media (max-width: 1320px) { .topbar .elec ~ .legend { display: none; } }
@media (max-width: 820px) { .topbar .elec { order: 10; width: 100%; } .elec button { flex: 1; } }

.ls-hero { background: radial-gradient(90% 130% at 80% 30%, #3A2410 0%, var(--night) 62%); }
.ls-hero .big-stats .d { max-width: 30ch; }
.ac.lit.t-opp { --to: #2E3B5E; }
.seg-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.seg-ledger > div { border-top: 3px solid var(--saffron); padding-top: 10px; }
.seg-ledger b { display: block; font-family: var(--serif); font-size: 42px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.seg-ledger b.saffron { color: var(--saffron); }
.seg-ledger span { display: block; font-size: var(--s1); color: var(--ink-2); margin-top: 6px; max-width: 30ch; }
.seg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.seg-card { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--card); transition: transform .25s ease, box-shadow .25s ease; }
.seg-card.turned { border-top: 4px solid var(--saffron); }
.seg-card[hidden] { display: none; }
.seg-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -22px rgba(226,113,29,.55); }
.seg-card h3 { margin: 0 0 6px; font-size: 19px; }
.seg-card p { margin: 0 0 4px; }
.seg-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.seg-list li { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; padding: 3px 0 3px 8px; border-left: 3px solid; }
.seg-list li.up { border-color: #E2711D; } .seg-list li.down { border-color: #8E97A8; color: var(--ink-2); }
.seg-list .party { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.ag-switch .btn[aria-pressed="true"], .ag-switch .btn.on { background: var(--night); color: #fff; }
@media (max-width: 1100px) { .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .seg-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .seg-grid, .seg-list { grid-template-columns: minmax(0, 1fr); } .seg-ledger b { font-size: 32px; } }

/* the opening also counts both polls */
.in-polls { display: flex; gap: 28px; margin-top: 18px; position: relative; animation: rise .8s ease 1.9s both; }
.in-polls div { text-align: center; padding: 6px 18px; border: 1px solid rgba(255,154,60,.35); border-radius: 10px; background: rgba(14,24,48,.45); }
.in-polls b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: #FFD7AE; font-weight: 400; }
.in-polls span { font-size: 13px; color: #C9D2E6; }
@media (prefers-reduced-motion: reduce) { .intro .in-rule { transform: none; } .intro, .intro.out { transition: none; } }
.ls-hero .big-stats + .small { margin-top: 16px; }
/* v0.12.1: the honest middle stamp — the winner ranked first, not called outright */
.fc.ranked .stamp { background: #FFF1E3; color: #9A4A0A; border: 2px solid #E2711D; }
.track li.ranked { border-left-color: var(--saffron); }

/* ---------- guided tour and briefing films (app/tour.py) ---------- */
#film-spot { position: fixed; z-index: 55; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(9, 13, 26, .46), 0 0 0 2px var(--saffron), 0 0 34px 4px rgba(226, 113, 29, .28);
  transition: left .7s cubic-bezier(.3,.7,.2,1), top .7s cubic-bezier(.3,.7,.2,1), width .7s cubic-bezier(.3,.7,.2,1), height .7s cubic-bezier(.3,.7,.2,1); }
.film-tag { position: fixed; z-index: 75; top: 72px; right: 26px; padding: 6px 16px 7px; border-radius: 999px; font: 600 16px/1.2 var(--sans);
  background: #fff; color: var(--ink); border: 1.5px solid currentColor; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.film-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 9px; vertical-align: 2px; }
.tag-real { color: #1F4E8C; } .tag-model { color: #B5530F; } .tag-plan { color: var(--plan); } .tag-sample { color: #5B6170; }
.tag-simulation { color: #1E6B66; } .tag-company { color: var(--plum); }
.touring .tour p { white-space: normal; }
.film-mode #tour-btn { display: none; }
.film-mode .tour { background: rgba(14, 20, 36, .93); color: #F5F6F8; box-shadow: 0 18px 48px rgba(0,0,0,.35); z-index: 80; min-height: 74px; display: flex; align-items: center; }
.film-mode .tour p { font-size: 27px; line-height: 1.38; }
.film-mode .tour p[lang="mr"], .film-mode .tour p[lang="hi"] { font-size: 28px; line-height: 1.45; }
.film-full { position: fixed; inset: 0; z-index: 70; color: #F3F4F6; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #1B2747 0%, #0C1224 55%, #070B16 100%); opacity: 0; transition: opacity .8s ease; }
.film-full.on { opacity: 1; }
.film-full .grain { position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.film-full .sweep { position: absolute; inset: -30% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 214, 170, .07) 50%, transparent 58%); animation: film-sweep 11s linear infinite; }
@keyframes film-sweep { from { transform: translateX(-35%); } to { transform: translateX(35%); } }
.reel-in, .card-in { position: relative; width: min(1320px, 86vw); margin-top: -60px; }
.film-full .kicker { color: var(--saffron-2); font: 600 21px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0;
  opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.film-full .kicker:lang(mr), .film-full .kicker:lang(hi) { letter-spacing: 0; text-transform: none; font-size: 24px; }
#film-reel.k .kicker { opacity: 1; transform: none; }
.film-full .headline { font: 400 66px/1.12 var(--serif); margin: 16px 0 54px; max-width: 1200px;
  opacity: 0; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
#film-reel.h .headline { opacity: 1; transform: none; }
.tiles { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.tiles.n4 { grid-template-columns: repeat(4, 1fr); } .tiles.n5 { grid-template-columns: repeat(5, 1fr); } .tiles.n6 { grid-template-columns: repeat(3, 1fr); }
.tile { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.11); border-top: 3px solid var(--saffron); border-radius: 14px;
  padding: 28px 26px 26px; opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1); }
.tile.in { opacity: 1; transform: none; }
.tile b { display: block; font: 700 62px/1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.tile b.mark { color: var(--saffron-2); }
.tile span { display: block; margin-top: 14px; font: 400 21px/1.35 var(--sans); color: #C9CFDA; }
.card-in .e1, .card-in .e2, .card-in .e3, .card-in .e4, .card-in .e5, .card-in .e6, .card-in .e9, .card-in .fc-ln {
  opacity: 0; transform: translateY(12px); transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1); }
.card-open.e1 .e1, .card-open.e2 .e2, .card-open.e3 .e3, .card-open.e4 .e4, .card-open.e5 .e5, .card-open.e6 .e6,
.card-close.e9 .e9, .card-in .fc-ln.in { opacity: 1; transform: none; }
.card-in .fc-mark { display: block; width: 92px; height: 92px; object-fit: contain; border-radius: 50%; background: #fff; padding: 8px; margin-bottom: 26px; }
.card-in .fc-mark.small { width: 64px; height: 64px; position: absolute; right: 0; bottom: -40px; }
.card-in .fc-party { font: 500 26px/1.3 var(--sans); color: var(--saffron-2); margin: 0 0 8px; }
.card-in h1 { font: 400 60px/1.12 var(--serif); margin: 0 0 30px; color: #fff; }
.card-in .fc-leaders { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 56px; }
.card-in .fc-leaders b { display: block; font: 600 26px/1.25 var(--sans); }
.card-in .fc-leaders span { font: 400 19px/1.3 var(--sans); color: #B9C0CE; }
.card-in .fc-from { font: 400 23px/1.4 var(--sans); color: #E4E7EE; margin: 0 0 22px; }
.card-in .fc-agenda { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: ag; }
.card-in .fc-agenda li { counter-increment: ag; font: 500 18px/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #DDE1E9; }
.card-in .fc-agenda li::before { content: counter(ag) "  "; color: var(--saffron-2); }
.card-in .fc-agenda li:lang(mr)::before { content: counter(ag, devanagari) "  "; }
.card-in .fc-ai { font: 500 19px/1.3 var(--sans); color: #F3D2B4; margin: 0; }
.card-in .fc-ai .fc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); margin-right: 10px; vertical-align: 2px; }
.card-close .fc-slogan { font: 400 70px/1.15 var(--serif); color: var(--saffron-2); margin: 0 0 34px; }
.card-close .fc-ln { font: 400 34px/1.3 var(--sans); margin: 0 0 10px; color: #fff; }
.card-close .fc-ln:last-child { margin-top: 26px; color: #E9ECF2; font-size: 30px; }
.card-close .fc-sign { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; }
.card-close .fc-sign b { font: 600 28px/1.2 var(--sans); } .card-close .fc-sign span { font: 400 20px/1.3 var(--sans); color: #B9C0CE; }
#film-phone { grid-template-columns: auto 420px; gap: 72px; place-content: center; }
#film-phone .phone { width: 390px; height: 760px; border-radius: 44px; border: 11px solid #05070D; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 40px 90px rgba(0,0,0,.55); margin-top: -70px; }
#film-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
#film-phone .phone-side { margin-top: -70px; } #film-phone .phone-side .kicker { opacity: 1; transform: none; font-size: 24px; }
#film-phone .phone-side .url { font: 400 20px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #9AA3B5; margin-top: 14px; }

/* =====================================================================================================================
   v0.12.5 COMMAND EDITION. One confident system on top of the layers above: a night rail, gold for the summit
   figures, saffron for the line, larger display type, quieter cards with one hairline of light. Colour still encodes
   data (party, tier, label); the new gold marks only the rungs above 145 and the summit numbers.
   ===================================================================================================================== */
:root { --gold: #E9B949; --gold-2: #F6D88C; --night-3: #0A1226; --shadow: 0 1px 0 rgba(16,24,48,.04), 0 10px 30px -18px rgba(16,24,48,.28);
  --radius: 16px; --paper: #F5F3EF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0C1322; --shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 32px -18px rgba(0,0,0,.6); } }
:root[data-theme="dark"] { --paper: #0C1322; --shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 32px -18px rgba(0,0,0,.6); }

/* the rail: night, with the active screen lit in saffron */
.shell { grid-template-columns: 244px minmax(0, 1fr); }
.rail { background: linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%); border-right: 0; color: var(--night-ink); }
.rail .brand { border-bottom-color: rgba(255,255,255,.08); }
.rail .brand b { color: var(--glow); font-size: 30px; text-shadow: 0 0 22px rgba(255,138,31,.35); }
.rail .brand span { color: var(--night-dim); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.rail .nav-group { color: rgba(238,241,247,.58); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; margin-top: 18px; }
.rail .nav a { color: rgba(238,241,247,.78); border-radius: 8px; padding: 7px 10px; transition: background .15s, color .15s; }
.rail .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail .nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(255,138,31,.22), rgba(255,138,31,.04)); color: #fff; box-shadow: inset 3px 0 0 var(--glow); }
.rail .nav a[data-k="ambition"]::after { content: "NEW"; margin-left: 8px; font-size: 9.5px; letter-spacing: .1em; color: var(--night-3); background: var(--gold); padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }

/* the top bar: glass over the page */
.topbar { background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.content { max-width: 1280px; padding: 30px 34px 60px; }

/* type: a larger, calmer masthead on every screen */
.page-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: linear-gradient(90deg, var(--saffron), var(--gold)); }
.page-head h1 { font-size: 40px; letter-spacing: -.4px; }
.page-head p { font-size: var(--s3); max-width: 64ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--glow); margin: 0 0 10px; }

/* cards: one hairline of light, a soft lift */
.panel, .act { border-radius: var(--radius); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--rule) 75%, transparent); position: relative; }
.panel::before, .act::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--saffron) 55%, transparent), transparent); }
.panel-head h2 { font-size: 22px; }
th { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
tr.click:hover td { background: color-mix(in srgb, var(--saffron-3) 55%, transparent); cursor: pointer; }
.btn { border-radius: 9px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.btn.saffron { background: linear-gradient(180deg, #F08A3C, var(--saffron)); box-shadow: 0 8px 20px -10px rgba(226,113,29,.8); }
.btn.saffron:hover { transform: translateY(-1px); }

/* the cinematic surfaces: deeper night, a warm horizon, gold for the summit */
.cine, .leader, .commit { border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(8,14,32,.8); }
.cine { background: radial-gradient(90% 120% at 100% 0%, #1B2B57 0%, var(--night) 55%, var(--night-3) 100%); }
.cine h1 { font-size: 64px; }
.big-stats .v.gold, .v.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.leader-copy h2 { font-size: 52px; letter-spacing: -.5px; }

/* ---------- Beyond 145 ---------- */
.ascend { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); overflow: hidden; border-radius: 20px; margin-bottom: 14px;
  background: radial-gradient(70% 90% at 85% 10%, #2A2350 0%, transparent 60%), radial-gradient(90% 120% at 0% 100%, #1A2650 0%, var(--night) 55%, var(--night-3) 100%);
  color: var(--night-ink); box-shadow: 0 30px 60px -36px rgba(8,14,32,.8); min-height: 470px; }
.ascend-copy { padding: 44px 40px 34px; position: relative; z-index: 1; }
.ascend h1 { font-size: 60px; line-height: 1.02; letter-spacing: -.6px; max-width: 12ch; }
.ascend .lede { color: var(--night-dim); font-size: var(--s3); margin: 16px 0 26px; max-width: 46ch; }
.ascend .lbl { color: var(--night-dim); } .ascend .lbl-model { color: var(--glow); }
.ascend-photo { position: relative; min-height: 300px; }
.ascend-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ascend-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--night) 0%, rgba(14,24,48,.25) 38%, transparent 70%), linear-gradient(0deg, rgba(10,18,38,.85), transparent 40%); }
.am-why { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); max-width: 80ch; margin: 22px 4px 22px; padding-left: 16px; border-left: 3px solid var(--gold); }

.rungs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.rung { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rule) 75%, transparent); }
.rung::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--saffron); }
.rung-1::before { background: linear-gradient(90deg, var(--saffron), var(--gold)); }
.rung-2::before, .rung-3::before { background: var(--gold); }
.rung-0 { background: linear-gradient(180deg, color-mix(in srgb, var(--saffron-3) 60%, var(--card)), var(--card) 45%); }
.rung header { display: flex; align-items: baseline; gap: 10px; }
.rung-n { font-family: var(--serif); font-size: 46px; line-height: 1; }
.rung-0 .rung-n { color: var(--saffron); } .rung-3 .rung-n { color: #B8892A; }
.rung-t { color: var(--ink-2); font-size: var(--s1); text-transform: uppercase; letter-spacing: .08em; }
.rung-main .k { font-size: var(--s1); color: var(--ink-3); }
.rung-main .v { font-family: var(--serif); font-size: 40px; line-height: 1.05; }
.rung-main .v small { font-size: 22px; margin-left: 2px; }
.rung-main .d { color: var(--ink-2); font-size: var(--s1); }
.rung-booth { background: var(--night); color: var(--night-ink); border-radius: 10px; padding: 10px 12px; font-size: var(--s1); }
.rung-booth b { font-family: var(--serif); font-size: 26px; color: var(--glow); margin-right: 4px; font-weight: 400; }
.rung-facts { list-style: none; margin: 0; padding: 0; font-size: var(--s1); color: var(--ink-2); display: grid; gap: 4px; }
.rung footer { margin-top: auto; border-top: 1px solid var(--rule-2); padding-top: 10px; }
.am-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.am-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--rule); border-radius: 99px; padding: 2px 9px; font-size: 12px; background: var(--card); }
.am-chip .party { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.am-chart { width: 100%; height: auto; display: block; margin-top: 6px; }
.am-chart text { fill: var(--ink-3); font: 15px var(--sans); }
.am-chart .axis { fill: var(--ink-2); font-size: 16px; }
.am-chart .grid { stroke: var(--rule-2); }
.am-chart .band { fill: color-mix(in srgb, var(--saffron) 18%, transparent); }
.am-chart .mid { fill: none; stroke: var(--saffron); stroke-width: 2.6; stroke-linejoin: round; }
.am-rung line { stroke: var(--ink-3); stroke-dasharray: 5 5; }
.am-rung text { fill: var(--ink); font-weight: 500; }
.am-rung circle { fill: var(--gold); stroke: var(--card); stroke-width: 2; }
.rec { position: relative; display: grid; gap: 7px; padding: 22px 0 22px; margin-top: 6px; }
.rec-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 58px; align-items: center; gap: 10px; font-size: var(--s1); }
.rec-row b { text-align: right; font-weight: 500; }
.rec-bar { height: 12px; background: var(--rule-2); border-radius: 99px; overflow: hidden; }
.rec-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron-2), var(--saffron)); border-radius: 99px; }
.rec-lines { position: absolute; left: 54px; right: 68px; top: 0; bottom: 0; pointer-events: none; }
.rec-line { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--gold); }
.rec-line span { position: absolute; top: -18px; left: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; white-space: nowrap; color: #8A6516; }
.rec-line:nth-child(even) span { top: auto; bottom: -18px; }
.lever-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lever { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 18px; border-radius: 14px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 55%, var(--card)); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.lever:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--saffron-2); }
.lever b { font-family: var(--serif); font-size: 30px; color: var(--saffron); font-weight: 400; line-height: 1; }
.lever h3 { font-size: 20px; }
.lever p { color: var(--ink-2); font-size: var(--s1); margin: 0; }
.lever span { margin-top: auto; padding-top: 6px; font-size: var(--s1); color: #A84F12; font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lever span { color: var(--saffron); } }
.sim-rungs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }

/* the opening screen's Beyond 145 act */
.am-act { background: radial-gradient(80% 140% at 100% 0%, #262A55 0%, var(--night) 60%, var(--night-3) 100%); color: var(--night-ink); border: 0; }
.am-act .act-head p { color: var(--night-dim); }
.am-act .lbl { color: var(--night-dim); } .am-act .lbl-model { color: var(--glow); }
.am-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.am-steps li { padding: 14px 16px 16px; border-left: 1px solid rgba(255,255,255,.1); position: relative; }
.am-steps li:first-child { border-left: 0; padding-left: 0; }
.am-steps .n { font-family: var(--serif); font-size: 54px; line-height: 1; color: #fff; }
.am-steps li:first-child .n { color: var(--glow); }
.am-steps li:nth-child(n+3) .n { background: linear-gradient(180deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.am-steps .t { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--night-dim); margin: 6px 0 10px; }
.am-steps .s { font-family: var(--serif); font-size: 28px; color: #fff; }
.am-steps .b { color: var(--night-dim); font-size: var(--s1); }

/* ---------- Readiness ---------- */
.ready-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-radius: 20px; padding: 26px 30px; margin-bottom: 18px; color: #fff; box-shadow: var(--shadow); }
.ready-hero.is-ready { background: radial-gradient(90% 140% at 0% 0%, #1F7A54 0%, #145238 60%, #0D3726 100%); }
.ready-hero.is-att { background: radial-gradient(90% 140% at 0% 0%, #B4361E 0%, #7E2414 100%); }
.ready-state { font-family: var(--serif); font-size: 52px; line-height: 1; }
.ready-hero p { margin: 8px 0 0; opacity: .9; }
.ready-hero .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.ready-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.ready-table td { vertical-align: middle; }
.ready-table td.mark { width: 28px; font-weight: 700; color: var(--plan); }
.ready-table tr.bad td.mark { color: var(--warn); }
.ready-table tr.bad td { background: color-mix(in srgb, var(--warn) 7%, transparent); }

/* sign-in: the brand at full height */
.signin { max-width: 460px; margin: 12vh auto; }
.signin .brand b { font-size: 64px; color: var(--saffron); text-shadow: 0 0 40px rgba(255,138,31,.25); }
.signin .brand span { letter-spacing: .2em; text-transform: uppercase; }
.signin h1 { font-size: 40px; margin-top: 10px; }

@media (max-width: 1100px) {
  .rungs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ascend { grid-template-columns: 1fr; } .ascend-photo { min-height: 320px; order: -1; }
  .ascend-photo::before { background: linear-gradient(0deg, var(--night) 0%, transparent 60%); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .page-head h1 { font-size: 30px; }
  .cine h1, .ascend h1 { font-size: 40px; }
  .ascend-copy { padding: 26px 20px; }
  .rungs, .lever-grid, .ready-grid { grid-template-columns: 1fr; }
  .am-steps { grid-template-columns: 1fr 1fr; }
  .am-steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .am-why { font-size: 18px; }
}
@media print { .ascend, .am-act, .ready-hero { box-shadow: none; } }
