/* Stop Project Sunrise — site styles.
   Voice: quiet, product-launch minimalism. One idea per screen, generous air, sentence-case type with tight tracking,
   near-white ground, near-black text, one green accent for actions. Red appears only where a deadline does. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg: #f4f7f3;             /* pale, green-tinted ground */
  --bg-2: #e9eee8;           /* soft tiles */
  --ink: #12261c;            /* forest ink */
  --fg: #1a2a22;
  --muted: #4f5f56;
  --hair: #d9e0d8;
  --card: #ffffff;
  --green: #1d7a4f;          /* the one action accent */
  --green-dark: #155c3b;
  --green-light: #e8f3ec;
  --blue: #1c6f9c;
  --blue-light: #e6f0f7;
  --red: #e5322b;            /* deadlines only */
  --red-light: #fdecea;
  --sand: #f2c94c;           /* calendar "decisive"/campaign markers only */
  --sand-ink: #3d2f04;
  --dark: #12261c;           /* dark sections: forest ink */
  --dark-2: #1b3629;
  --radius: 12px;
  --pill: 10px;
  --maxw: 1080px;
  --display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* aliases kept for older rules and scripts */
  --danger: var(--red); --danger-light: var(--red-light); --accent: var(--sand); --accent-ink: var(--sand-ink);
  --border: var(--hair); --shadow: none;
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.55; font-size: 17px; overflow-x: hidden; }
@media (max-width: 700px) { body { font-size: 18px; } }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .4em; text-wrap: pretty; letter-spacing: -.02em; line-height: 1.05; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.03em; font-weight: 800; line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; letter-spacing: -.015em; }
h4 { font-size: 1.1rem; letter-spacing: -.01em; }
h2 strong { font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section.block { padding: 64px 0; border-top: 1px solid var(--border); }
section.block + section.block { margin-top: 0; }
.stat-band + section.block { border-top: 0; margin-top: 24px; }
.hero + .stat-band { border-top: 0; }
section.block > .wrap > h2 { max-width: none; }
section.block > .wrap > .lede { font-size: 1.2rem; max-width: 780px; color: var(--muted); margin-bottom: 32px; line-height: 1.45; }
#site-nav + section.block { padding-top: 80px; }
#site-nav + section.block > .wrap > h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.035em; }
#site-nav + section.block > .wrap > .lede { color: var(--fg); }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--green); margin-bottom: 12px; letter-spacing: -.005em; }
/* icons in headings: same ink as the words, sized to the cap height */
h2 .ic, h3 .ic, h4 .ic { width: .9em; height: .9em; margin-right: .3em; vertical-align: -.08em; color: var(--green); stroke-width: 2.2; }

/* Nav — thin, translucent */
#site-nav { position: sticky; top: 0; z-index: 50; }
.nav { background: rgba(244,247,243,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 52px; padding-top: 4px; padding-bottom: 4px; min-width: 0; }
.nav .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; flex: none; }
.nav .brand .mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--green); color: #fff; flex: none; }
.nav .brand .mark .ic { width: 18px; height: 18px; }
.nav .brand .wordmark { display: flex; flex-direction: row; align-items: baseline; gap: 8px; line-height: 1; }
.nav .brand .line1 { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; text-transform: none; }
.nav .brand .line1 span { color: var(--green); }
.nav .brand .line2 { display: none; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 0 auto; padding: 0; min-width: 0; flex: 1 1 auto; justify-content: flex-end; align-items: center; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: block; padding: 6px 7px; text-decoration: none; color: rgba(29,29,31,.72); font-size: .84rem; font-weight: 500; white-space: nowrap; border-radius: var(--pill); }
.nav li a:hover { color: var(--ink); text-decoration: none; }
.nav li a.active { color: var(--ink); font-weight: 600; }
.nav li a .ic { width: .95em; height: .95em; margin-right: 5px; opacity: .7; }
.nav .cta, .nav li a.cta.active { background: var(--green); color: #fff !important; margin-left: 8px; padding: 6px 14px; font-weight: 600; }
.nav .cta:hover { background: var(--green-dark); }
@media (max-width: 1320px) { .nav li a .ic { display: none; } }
@media (max-width: 640px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 4px; }
  .nav ul { width: 100%; flex-wrap: wrap; overflow: visible; justify-content: flex-start; }
  .nav li a { padding: 4px 8px; font-size: .84rem; }
  .nav .cta { margin-left: 0; }
}

/* Hero — centered thesis, then one large image */
.hero { background: var(--bg); color: var(--ink); padding: 72px 0 0; text-align: left; position: relative; overflow: visible; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: center; max-width: 1180px; }
.hero h1 .line { display: block; }
.hero h1 .line.dim { color: var(--muted); }
.hero h1 .line.hot { color: var(--green); }
.hero .bg { display: none; }
.hero::after { display: none; }
.hero .tag { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--green); margin-bottom: 18px; letter-spacing: .01em; text-transform: uppercase; }
.hero h1 { color: var(--ink); max-width: none; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero h1 .no { color: var(--ink); }
.hero p { max-width: 560px; margin: 0; font-size: 1.15rem; line-height: 1.45; color: var(--fg); font-weight: 400; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; justify-content: flex-start; align-items: center; }
.hero .actions .link { font-size: 1.1rem; font-weight: 500; }
.hero .actions .link::after { content: " ›"; }
.hero a { color: var(--green); }
.hero .btn { color: #fff; }
.hero .side { margin-top: 28px; }
.hero .next-up { display: none; }
/* countdown line — one sentence, one red number */
.countdown { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 2px 10px; font-size: 1rem; color: var(--muted); background: var(--bg-2); border-radius: var(--radius); padding: 14px 18px; max-width: 560px; }
.countdown .k { font-weight: 500; color: var(--ink); }
.countdown .k .ic { color: var(--red); margin-right: 4px; }
.countdown .n { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--red); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .n small { font-size: .62em; font-weight: 600; margin-left: 3px; }
.countdown .w { flex-basis: 100%; }
.countdown .w strong { font-weight: 600; color: var(--ink); }
.countdown .w br { display: none; }
.countdown a { color: var(--green); }
/* hero picture */
.hero-picture { margin: 0; padding: 0; }
.hero-picture .photo img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.hero-strip { max-width: 1180px; margin: 40px auto 0; padding: 0 22px; }
.hero-strip .photo img { aspect-ratio: 21 / 7; }
@media (max-width: 900px) { .hero { padding-top: 56px; } .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero-picture .photo img { aspect-ratio: 16 / 10; } }

/* Big-number band */
.stat-band { background: var(--bg); color: var(--ink); padding: 80px 0 16px; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; text-align: left; }
.stat-band .stat .ic { width: 26px; height: 26px; color: var(--green); margin-bottom: 10px; display: block; }
.stat-band .stat { padding: 0; border: 0; margin: 0; }
.stat-band .v { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-band .v.red { color: var(--red); }
.stat-band .v.sand { color: var(--ink); }
.stat-band .l { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.015em; margin-top: 10px; color: var(--ink); }
.stat-band .s { font-size: .9rem; color: var(--muted); margin: 6px 0 0; max-width: 250px; line-height: 1.4; }
@media (max-width: 860px) { .stat-band .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stat-band .wrap { grid-template-columns: 1fr; } }

/* Buttons — pills */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--pill); border: 1px solid transparent; background: var(--green); color: #fff; font-family: var(--font); font-weight: 600; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer; line-height: 1.15; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn.secondary:hover { background: var(--green); color: #fff; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.danger, .btn.red { background: var(--red); }
.btn.sm { padding: 7px 14px; font-size: .88rem; }
.btn.yellow { background: var(--card); color: var(--ink); }
.btn.yellow:hover { background: var(--bg-2); color: var(--ink); }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 1em; height: 1em; }
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(29,122,79,.45); outline-offset: 2px; }

/* Cards & grids — soft tiles, no borders */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--bg-2); border: 0; border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 0; }
.card .src { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.card.flag, .card.info, .card.ok { border: 0; }
a.card { text-decoration: none; color: inherit; transition: transform .18s ease, background .18s ease; }
a.card:hover { transform: translateY(-2px); background: #efeff3; text-decoration: none; }
.card .icon-tile { display: inline-flex; }

/* "What you can do" — the one dark section */
.do-strip { background: var(--dark); color: #fff; }
.do-strip h2, .do-strip h3 { color: #fff; }
.do-strip h2 strong { color: #fff; }
.do-strip > .wrap > .lede { color: rgba(255,255,255,.7); }
.do-strip .grid { gap: 18px; border: 0; }
.do-strip .lane { padding: 30px 28px 28px; border: 0; background: var(--dark-2); border-radius: var(--radius); display: flex; flex-direction: column; }
.do-strip .t { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: #fff; letter-spacing: -.04em; }
.do-strip .t .ic { width: .75em; height: .75em; margin-right: 6px; vertical-align: -.04em; color: #8fd0ad; }
.do-strip h3 { margin: 12px 0 8px; font-size: 1.35rem; }
.do-strip p { color: rgba(255,255,255,.72); font-size: 1rem; margin-bottom: 20px; flex: 1; }
.do-strip a { color: #fff; }
.do-strip p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.do-strip .btn.yellow { background: #fff; color: var(--dark); align-self: flex-start; }
.do-strip .btn.yellow:hover { background: #e8e8ed; }

/* Fact tiles */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact { background: var(--bg-2); border: 0; border-radius: var(--radius); padding: 22px 22px 18px; position: relative; }
.fact .v { font-family: var(--display); font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.fact .l { font-size: .95rem; margin-top: 8px; font-weight: 500; color: var(--ink); }
.fact .l .muted { font-weight: 400; }
.fact .s { font-size: .76rem; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.fact.warn .v { color: var(--ink); }
.fact .fi { position: absolute; top: 16px; right: 16px; color: var(--green); opacity: .8; }
.fact .fi .ic { width: 22px; height: 22px; }
.fact { padding-right: 52px; }

/* Badges */
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: var(--pill); background: var(--green-light); color: var(--green-dark); letter-spacing: .01em; }
.badge.red { background: var(--red-light); color: var(--red); }
.badge.yellow { background: #fff4d6; color: var(--sand-ink); }
.badge.blue { background: var(--blue-light); color: var(--blue); }
.badge.gray { background: #e8e8ed; color: #515154; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0 0 28px; border-left: 2px solid var(--hair); }
.timeline li { position: relative; padding: 0 0 20px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); }
.timeline li.future::before { background: var(--red); }
.timeline .d { font-weight: 600; color: var(--muted); font-size: .9rem; }

/* Charts */
.chart-box { background: var(--bg-2); border: 0; border-radius: var(--radius); padding: 22px; }
.chart-box h4 { margin: 0 0 10px; }
.chart-box canvas { width: 100% !important; max-height: 360px; }
.chart-box .note { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.tbl th, table.tbl td { border-bottom: 1px solid var(--hair); padding: 10px 12px; text-align: left; vertical-align: top; }
table.tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.los-A { background:#e3f1e7; color:#1f5a41 } .los-B { background:#ecf3e2; color:#3c6b2a } .los-C { background:#fbf1d3; color:#6d5410 }
.los-D { background:#fbe3c8; color:#9a5a12 } .los-E { background:#f8d6c9; color:#a1432a } .los-F { background:var(--red); color:#fff; font-weight:700 }

/* Calendar */
.cal-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.cal-controls select, .cal-controls input[type="text"], .form input, .form select, .form textarea { padding: 9px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); color: var(--fg); font: inherit; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { min-height: 84px; background: var(--bg-2); border: 0; border-radius: 10px; padding: 6px; font-size: .78rem; }
.cal-day.other { opacity: .35; }
.cal-day.today { outline: 2px solid var(--green); }
.cal-day .n { font-weight: 600; }
.cal-ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 6px; background: var(--green-light); color: var(--green-dark); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--green); }
.cal-ev.decisive { background: var(--red); color: #fff; border-left-color: var(--red); font-weight: 600; }
.cal-ev.county { border-left-color: var(--blue); }
.cal-ev.campaign { border-left-color: var(--sand); }
.ev-list { list-style: none; padding: 0; margin: 0; }
.ev-list li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.ev-list .when { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.ev-list .title { font-weight: 600; font-size: 1.05rem; }
.ev-list .meta { font-size: .88rem; color: var(--muted); }
.ev-list .why { font-size: .95rem; margin-top: 4px; }
.ev-list .acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-list li.decisive .when { color: var(--red); }
.ev-list li.decisive .title::before { content: "Decisive · "; color: var(--red); }

/* Officials */
.you-box { background: var(--bg-2); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.you-box .form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.you-box label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; gap: 4px; color: var(--muted); }
.group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 40px 0 14px; }
.group-head h3 { margin: 0; font-size: 1.6rem; }
.official { display: flex; flex-direction: column; gap: 6px; }
.official .name { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.official .title { color: var(--muted); font-size: .9rem; }
.official .role { font-size: .9rem; }
.official .ask { font-size: .9rem; background: var(--card); padding: 10px 12px; border-radius: 10px; }
.official .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.official .contact { font-size: .88rem; word-break: break-word; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; margin-right: 8px; vertical-align: middle; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.open { display: flex; }
.modal .box { background: var(--card); color: var(--fg); border-radius: var(--radius); max-width: 720px; width: 100%; max-height: 90vh; overflow: auto; padding: 28px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal .close { position: absolute; top: 12px; right: 14px; background: var(--bg-2); border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.modal textarea { width: 100%; min-height: 240px; font: inherit; font-size: .95rem; padding: 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); color: var(--fg); }
.modal .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

details.how { margin-top: 10px; font-size: .9rem; }
details.how summary { cursor: pointer; color: var(--green); font-weight: 600; }
details.how pre { background: var(--bg-2); padding: 12px; border-radius: 10px; overflow-x: auto; font-size: .8rem; }

/* Sliders (water module) */
.slider-row { display: grid; grid-template-columns: 1fr 70px; gap: 8px; align-items: center; margin: 6px 0; font-size: .88rem; }
.slider-row label { display: flex; flex-direction: column; }
.slider-row label span.n { font-weight: 600; }
.slider-row input[type="range"] { width: 100%; accent-color: var(--green); }
.slider-row .val { font-family: var(--mono); font-size: .8rem; text-align: right; }
.basis { display: inline-block; font-size: .65rem; padding: 1px 7px; border-radius: var(--pill); text-transform: uppercase; font-weight: 600; margin-left: 4px; letter-spacing: .04em; }
.basis.verified { background: var(--green-light); color: var(--green-dark); }
.basis.literature { background: var(--blue-light); color: var(--blue); }
.basis.assumption { background: #fff4d6; color: var(--sand-ink); }
.basis.applicant { background: #e8e8ed; color: #444; }
.module { margin: 28px 0; }
.module .body { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 18px; }
.module .readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.module .readout .fact .v { font-size: 1.5rem; }
@media (max-width: 760px) { .module .body { grid-template-columns: 1fr; } }

.disclaimer { background: #fff8e1; color: var(--sand-ink); padding: 16px 18px; border-radius: var(--radius); font-size: .92rem; }

/* Footer */
.footer { padding: 56px 0 72px; background: var(--bg-2); color: var(--muted); font-size: .85rem; border-top: 1px solid var(--hair); }
.footer strong { color: var(--ink); font-weight: 600; }
.footer a { color: var(--ink); margin-right: 18px; }
.footer .small { color: var(--muted); font-size: .78rem; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 200; font-size: .9rem; }
.toast.show { opacity: 1; }

@media (max-width: 640px) {
  .ev-list li { grid-template-columns: 1fr; gap: 4px; }
  .cal-day { min-height: 56px; font-size: .7rem; }
  .cal-ev { font-size: .65rem; }
  section.block { padding: 64px 0; }
  .stat-band { padding-top: 64px; }
}

/* Photos */
.photo { margin: 0; }
.photo figure { margin: 0; position: relative; }
.photo img { width: 100%; display: block; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; background: var(--bg-2); }
.photo.wide img { aspect-ratio: 16 / 9; }
.photo.tall img { aspect-ratio: 3 / 4; }
.photo.natural img { aspect-ratio: auto; }
.photo figcaption { display: none; }
.photo figure .zoom { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.photo figure:hover .zoom { opacity: 1; }
.photo figure .zoom .ic { width: 15px; height: 15px; }
.photo figure img { cursor: zoom-in; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 40px 0 0; }
.photo-strip .photo { max-width: 600px; }
.card .photo { margin: -26px -26px 16px; }
.card .photo img { border-radius: var(--radius) var(--radius) 0 0; }
.card > .photo:first-child img { aspect-ratio: 16 / 9; }
#hamlet-result .card > .photo img { max-height: 260px; }
.video-box video { width: 100%; max-height: 520px; border-radius: var(--radius); background: #000; display: block; }

/* Icons */
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.lg { width: 1.5em; height: 1.5em; }
.ic.xl { width: 2.2em; height: 2.2em; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--card); color: var(--green); margin-bottom: 12px; }
.icon-tile .ic { width: 20px; height: 20px; }
.icon-tile.red { color: var(--red); }
.icon-tile.blue { color: var(--blue); }
.icon-tile.yellow { color: var(--sand-ink); }
.ev-list .when .ic { margin-right: 3px; }
.cal-ev .ic { width: .9em; height: .9em; margin-right: 2px; }
.badge .ic { width: .9em; height: .9em; margin-right: 2px; }
.legend-icons { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); margin: 8px 0 16px; }
.legend-icons span { display: inline-flex; align-items: center; gap: 4px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 300; padding: 56px 64px 40px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 12px; background: #000; }
.lightbox figcaption { color: #f5f5f7; font-size: .95rem; max-width: 900px; text-align: center; line-height: 1.45; }
.lightbox figcaption .credit { display: block; color: #a1a1a6; font-size: .78rem; margin-top: 4px; }
.lightbox figcaption a { color: #fff; text-decoration: underline; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox button .ic { width: 22px; height: 22px; }
.lightbox .lb-close { top: 14px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev .ic { transform: rotate(180deg); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 22px; left: 20px; color: #a1a1a6; font-size: .85rem; font-family: var(--mono); }
@media (max-width: 640px) { .lightbox { padding: 60px 8px 24px; } .lightbox .lb-prev, .lightbox .lb-next { width: 38px; height: 38px; } .lightbox img { max-height: calc(100vh - 200px); } }

/* Feature pairs (photo + text), alternating */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.card.feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-2); }
.card.feature > .photo { margin: 0; }
.card.feature > .photo img { aspect-ratio: 16 / 10; border-radius: 0; }
.card.feature h3 { margin: 22px 26px 8px; font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.card.feature h3 .icon-tile { display: inline-flex; margin: 0; flex: none; }
.card.feature h3 .icon-tile .ic { margin: 0; }
.card.feature p { margin: 0 26px 26px; font-size: 1rem; color: var(--muted); }
.card.feature p a { display: inline-block; margin-top: 12px; font-weight: 500; color: var(--green); }

/* Issue tiles (brief, on home) */
#issue-cards a.card { border-top: 0 !important; }
#issue-cards a.card h3 { font-size: 1.2rem; }
#issue-cards a.card p { color: var(--muted); }
#issue-cards .icon-tile { display: inline-flex; background: var(--card); }
/* full issue cards keep a thin color mark at the top edge as their only decoration */
#issue-cards div.card { border-top-width: 3px !important; border-top-style: solid !important; }

/* Issue slideshow */
.slide-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding-bottom: 2px; }
.slide-tabs::-webkit-scrollbar { display: none; }
.slide-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--hair); background: var(--card); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.slide-tabs button .ic { width: .95em; height: .95em; }
.slide-tabs button:hover { color: var(--ink); border-color: var(--ink); }
.slide-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slides { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.slide { display: none; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 520px; }
.slide.on { display: grid; animation: slide-in .35s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.slide-media { position: relative; background: var(--bg-2); min-height: 260px; }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-size: .82rem; line-height: 1.35; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65)); }
.slide-cap .credit { display: block; opacity: .7; font-size: .72rem; margin-top: 2px; }
.slide-body { padding: 34px 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.slide-kicker { display: flex; align-items: center; justify-content: space-between; }
.slide-kicker .icon-tile { margin: 0; background: var(--bg-2); }
.slide-kicker .n { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.slide-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0; letter-spacing: -.025em; }
.slide-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; }
.slide-row .lab { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; display: inline-flex; align-items: center; gap: 5px; }
.slide-row .lab .ic { width: 1em; height: 1em; color: var(--green); }
.slide-row p { margin: 0; font-size: .98rem; line-height: 1.5; }
.slide-row.ask { background: var(--green-light); border-radius: 10px; padding: 14px 16px; margin-top: 4px; }
.slide-row.ask .lab, .slide-row.ask .lab .ic { color: var(--green-dark); }
.slide-row.ask p { font-weight: 500; color: var(--ink); }
.slide-link { margin: 0; font-weight: 500; }
.slide-body .src { margin-top: auto; padding-top: 10px; font-size: .76rem; color: var(--muted); }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.slide-nav:hover { background: #fff; }
.slide-nav .ic { width: 20px; height: 20px; }
.slide-nav.prev { left: 14px; } .slide-nav.prev .ic { transform: rotate(180deg); }
.slide-nav.next { right: 14px; }
.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slide-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--hair); cursor: pointer; padding: 0; transition: transform .15s, background .15s; }
.slide-dots button.on { background: var(--ink); transform: scale(1.35); }
@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide-media { aspect-ratio: 16 / 9; min-height: 0; }
  .slide-body { padding: 22px 20px 24px; }
  .slide-row { grid-template-columns: 1fr; gap: 4px; }
  .slide-nav { top: 100px; width: 38px; height: 38px; }
}

#site-nav + section.block > .wrap > h2 .ic { width: .7em; height: .7em; vertical-align: -.02em; }

.project-link .lede { margin-bottom: 22px; }

/* 3D visualizations */
.viz3d { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.viz3d .viz-stage { position: relative; border-radius: 8px; overflow: hidden; background: linear-gradient(#f6f8f3, #e9eee6); }
.viz3d canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.viz3d canvas:active { cursor: grabbing; }
.viz3d .viz-label { position: absolute; left: 14px; top: 12px; background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; max-width: 60%; backdrop-filter: blur(3px); }
.viz3d .viz-label .n { font-weight: 800; font-size: 1.05rem; color: var(--green-dark); }
.viz3d .viz-label .s { font-size: .9rem; }
.viz3d .viz-label .x { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.viz3d .viz-label.hot .n { color: var(--danger); }
.viz3d .viz-hud { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.viz3d .viz-hud .k { background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; backdrop-filter: blur(3px); }
.viz3d .viz-hud .v { display: block; font-weight: 800; font-size: 1.15rem; color: var(--danger); font-variant-numeric: tabular-nums; line-height: 1.1; }
.viz3d .viz-hud .l { font-size: .72rem; color: var(--muted); }
.viz3d .viz-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.viz3d .viz-controls input[type="range"] { flex: 1 1 160px; accent-color: var(--green); }
.viz3d .viz-step { font-size: .8rem; color: var(--muted); min-width: 44px; text-align: right; }
.viz3d .note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 640px) { .viz3d .viz-hud { grid-template-columns: repeat(2, 1fr); } .viz3d .viz-label { max-width: 80%; } }
.viz3d .viz-hud.below { position: static; margin-top: 10px; }
.viz3d .viz-hud.below .k { background: var(--green-light); border-color: transparent; backdrop-filter: none; }
.viz3d .viz-hud.below { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .viz3d .viz-hud.below { grid-template-columns: repeat(3, 1fr); } }
.viz3d .viz-label.low { top: auto; bottom: 12px; max-width: 46%; }
.viz3d .viz-tags { position: absolute; inset: 0; pointer-events: none; }
.viz3d .viz-tag { position: absolute; transform: translate(-50%, -100%); background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: .68rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.viz3d .viz-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: var(--stem, 6px); background: var(--muted); }
.viz3d .viz-tag.hot { color: var(--danger); border-color: var(--danger); }
.viz3d .viz-tag.muted { color: var(--muted); font-weight: 600; background: rgba(255,255,255,.75); }
@media (max-width: 640px) { .viz3d .viz-tag { font-size: .58rem; padding: 1px 5px; } }
.viz3d .viz-slides img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f3f5ef; }
.home-3d .wrap > .lede { max-width: 820px; }

/* Guide steps on the home page */
.eyebrow .step-num { width: 26px; height: 26px; font-size: .85rem; margin-right: 8px; vertical-align: middle; }
.do-strip .eyebrow { color: #cfe6d5; }
.do-strip .eyebrow .step-num { background: var(--accent); color: var(--accent-ink); }
section.block.do-strip { border-top: 0; }
section.block.do-strip + section.block { border-top: 0; }

/* ===== Noise, Home Values, Voices pages ===== */
.basis.unverified { background: var(--red-light); color: var(--red); }
.basis.paraphrase { background: #e8e8ed; color: #515154; }
.fact.ok .v { color: var(--green-dark); } .fact.warn .v { color: var(--sand-ink); } .fact.bad .v { color: #a1432a; } .fact.worst .v { color: var(--red); }
.noise-module .body { grid-template-columns: minmax(280px, 380px) 1fr; }
.noise-ctl h4 { margin-bottom: 8px; }
.noise-readout { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 760px) { .noise-module .body { grid-template-columns: 1fr; } }
.noise-readout .fact { padding-right: 22px; }
.addr-row { display: flex; flex-wrap: wrap; gap: 6px; }
.addr-row input { flex: 1 1 180px; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); font: inherit; min-width: 0; }
.ctl-row { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 10px 0; font-size: .88rem; }
.ctl-row .n { font-weight: 600; }
.ctl-row select { width: 100%; padding: 7px 10px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); font: inherit; font-size: .86rem; max-width: 100%; }
.ctl-row input[type="number"] { padding: 7px 10px; border: 1px solid var(--hair); border-radius: 10px; font: inherit; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { padding: 6px 10px; border-radius: var(--pill); border: 1px solid var(--hair); background: var(--card); color: var(--muted); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.verdict { border-radius: var(--radius); padding: 14px 18px; margin-top: 6px; background: var(--green-light); border-left: 4px solid var(--green); }
.verdict.warn { background: #fff4d6; border-left-color: var(--sand); }
.verdict.bad { background: #fbe3c8; border-left-color: #d9822b; }
.verdict.worst { background: var(--red-light); border-left-color: var(--red); }
.verdict p { margin: 0 0 8px; font-size: .95rem; } .verdict p:last-child { margin-bottom: 0; }
.cycle { display: grid; gap: 6px; }
.cyc { display: grid; grid-template-columns: minmax(180px, 2fr) 3fr 70px; gap: 10px; align-items: center; background: var(--bg-2); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.cyc .k { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.cyc .k .step-num { width: 22px; height: 22px; font-size: .75rem; margin: 0; flex: none; }
.cyc .bar { height: 10px; background: var(--card); border-radius: 5px; overflow: hidden; }
.cyc .bar span { display: block; height: 100%; background: linear-gradient(90deg, #8fc7a6, #7a5c9e 60%, #c25a3f); border-radius: 5px; }
.cyc .v { font-family: var(--mono); font-size: .82rem; text-align: right; font-weight: 600; }
.cyc .s { grid-column: 1 / -1; margin-top: -2px; }
@media (max-width: 640px) { .cyc { grid-template-columns: 1fr 60px; } .cyc .bar { grid-column: 1 / -1; } }
.ladder .rung { display: grid; grid-template-columns: 34px 1fr 1.4fr; gap: 10px; align-items: center; margin: 5px 0; font-size: .9rem; }
.ladder .db { font-family: var(--mono); font-weight: 600; text-align: right; }
.ladder .bar { height: 8px; background: var(--card); border-radius: 4px; overflow: hidden; } .ladder .bar span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
#noise-asks ol { margin: 0 0 18px; padding-left: 22px; color: rgba(255,255,255,.85); } #noise-asks li { margin-bottom: 8px; }
/* values */
.card.study .kick { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card.study .big { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.card.study .sub { font-weight: 600; margin: 6px 0 10px; color: var(--ink); }
.card.study p { font-size: .95rem; }
.card.term { background: var(--card); border: 1px solid var(--hair); }
.card.term h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.card.term blockquote { margin: 0 0 12px; padding-left: 16px; border-left: 3px solid var(--green); font-size: 1.15rem; color: var(--ink); }
.card.counter .reb { background: var(--green-light); padding: 10px 12px; border-radius: 10px; font-size: .95rem; margin-top: 10px; }
/* voices */
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.qgrid.pull { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 8px; }
blockquote.q { margin: 0; background: var(--bg-2); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
blockquote.q p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.qgrid.pull blockquote.q { background: var(--card); border: 1px solid var(--hair); }
.qgrid.pull blockquote.q p { font-size: 1.35rem; }
blockquote.q.pos { border-left: 4px solid var(--blue); }
blockquote.q.para p { font-family: var(--font); font-weight: 400; font-size: 1rem; color: var(--fg); }
blockquote.q footer { font-size: .85rem; color: var(--muted); margin-top: auto; }
blockquote.q footer strong { color: var(--ink); }
blockquote.q .cite { display: block; margin-top: 4px; }
.facility { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--hair); }
.facility h3 { font-size: 1.5rem; margin: 0; }
.facility .fmeta { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; }
.facility .fwhy { max-width: 780px; font-size: .95rem; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.vcard { background: var(--bg-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.vthumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.vthumb .play .ic { width: 24px; height: 24px; }
.vthumb.ext { background: var(--dark); }
.vframe { aspect-ratio: 16 / 9; background: #000; } .vframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.vbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.vbody .vt { font-weight: 600; line-height: 1.25; }
.card.night { margin-top: 14px; background: var(--card); border: 1px solid var(--hair); }
.card.night h4 { margin-bottom: 6px; }
.night-readout { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.night-readout .fact { background: var(--bg-2); }
.night-strip { margin-top: 12px; }
.night-strip svg { width: 100%; height: 64px; display: block; background: var(--bg); border-radius: 8px; }
.night-strip .axis { display: flex; justify-content: space-between; margin-top: 4px; }
.night-strip .legend-icons { margin: 6px 0 0; }
.night-strip .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
section.hidden { display: none; }
/* Home Values: simulator + rows */
.sim { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(280px, 6fr); gap: 20px; }
@media (max-width: 800px) { .sim { grid-template-columns: 1fr; } }
.sim-controls { background: var(--bg-2); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.sim .q .lab { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 6px; }
.sim-val { font-family: var(--display); font-weight: 700; font-size: 2.4rem; letter-spacing: -.04em; line-height: 1; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.sim input[type="range"] { width: 100%; accent-color: var(--green); margin-bottom: 6px; }
.seg.big { gap: 6px; } .seg.big button { font-size: .95rem; padding: 9px 14px; }
.sim-result { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.sim-result .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.045em; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.sim-result .sub { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 6px 0 14px; color: var(--ink); }
.sim-result p { font-size: 1rem; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.rows .row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.rows.two .row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.rows .who { font-weight: 600; color: var(--ink); }
.rows .what { font-size: 1rem; }
.rows .src { color: var(--muted); }
@media (max-width: 700px) { .rows .row, .rows.two .row { grid-template-columns: 1fr; gap: 4px; } }
ol.steps { padding-left: 22px; margin: 0; max-width: 820px; } ol.steps li { margin-bottom: 12px; }
.night-hero .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.045em; line-height: 1; color: var(--red); }
.night-hero .big.ok { color: var(--green-dark); }
.night-hero .sub { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 6px 0 12px; color: var(--ink); }
.night-hero p { font-size: 1rem; }
.noise-sim .noise-ctl .q .lab { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 8px; }
details.math { margin-top: 18px; } details.math > summary { font-size: 1rem; }
.stat-inline { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); margin-right: 4px; }
/* Your House */
.house-form { margin: 8px 0 28px; max-width: 720px; }
.house-form .addr-row input { font-size: 1.05rem; padding: 12px 14px; }
.house-form .lab { display: block; font-weight: 600; margin-bottom: 8px; }
.house-form select { padding: 5px 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); font: inherit; font-size: .88rem; }
.hero .house-form { margin: 26px 0 0; }
.hero .house-form .addr-row input { flex: 1 1 260px; }
#house-report .where { font-size: 1.05rem; margin: 0 0 16px; }
.house-cards .hcard { display: flex; flex-direction: column; gap: 4px; }
.house-cards .hcard .big { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.035em; line-height: 1.05; color: var(--ink); }
.house-cards .hcard.hot .big { color: var(--red); }
.house-cards .hcard.warm .big { color: #a1432a; }
.house-cards .hcard .sub { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.house-cards .hcard p { color: var(--muted); flex: 1; margin: 0 0 10px; }
.house-cards .hcard .why { font-weight: 600; }
ol.actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: a; }
ol.actions li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--bg-2); border-radius: var(--radius); padding: 16px 20px; counter-increment: a; }
ol.actions li::before { content: counter(a); grid-row: 1 / span 2; }
ol.actions li { grid-template-columns: 32px 1fr auto; }
ol.actions li::before { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; }
ol.actions li:first-child::before { background: var(--red); }
ol.actions li .btn { justify-self: end; min-width: 220px; justify-content: center; }
@media (max-width: 640px) { ol.actions li { grid-template-columns: 32px 1fr; } ol.actions li .btn { grid-column: 2; justify-self: start; min-width: 0; } }
/* Your House: sticky sub-nav + swapped views */
.hcard[data-topic] { cursor: pointer; transition: transform .15s ease, background .15s ease; }
.hcard[data-topic]:hover { transform: translateY(-2px); background: #e3e9e2; }
.subnav { background: rgba(244,247,243,.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.subnav[hidden] { display: none; }
.subnav .wrap { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; min-width: 0; }
.subnav-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--pill); border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.subnav-tabs button .ic { width: 1em; height: 1em; }
.subnav-tabs button:hover { color: var(--ink); background: var(--bg-2); }
.subnav-tabs button.on { background: var(--ink); color: #fff; }
.subnav-addr { flex: none; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.subnav-addr a { margin-left: 4px; }
#house-view { padding-top: 36px; }
#house-report-sec { padding-top: 28px; }
.drawer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.drawer-head h2 { margin: 0; }
.drawer-acts { display: flex; align-items: center; gap: 14px; }
.panel > .lede { font-size: 1.05rem; color: var(--muted); max-width: 780px; margin-bottom: 18px; }
.panel h3 .ic { color: var(--green); }
#noise-asks ol { color: inherit; }
.subnav-addr .chip { display: inline-flex; align-items: center; gap: 6px; }
.subnav-form { display: none; align-items: center; gap: 6px; }
.subnav-form.on { display: flex; }
.subnav-form input[type="text"] { width: 240px; max-width: 40vw; padding: 6px 10px; border: 1px solid var(--hair); border-radius: 8px; font: inherit; font-size: .86rem; }
.subnav-form select { padding: 6px 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); font: inherit; font-size: .84rem; max-width: 150px; }
@media (max-width: 760px) { .subnav .wrap { flex-wrap: wrap; } .subnav-addr { flex: 1 1 100%; white-space: normal; } .subnav-form input[type="text"] { max-width: none; flex: 1 1 140px; } }
/* ===== Audience pass: targets, badges, officials folds, print ===== */
.btn, .seg button, .subnav-tabs button, .slide-tabs button, .sheet-tabs button { min-height: 44px; }
.btn.sm { min-height: 38px; }
.basis { display: none; }
:is(.rows, table.tbl, details.how, .src, .sources, blockquote.q, .fact, .night-hero, .vbody, .card, .lede, .readout, .slider-row, .sim-result, .verdict, .whoLine) .basis { display: inline-block; }
details.ogroup { margin: 4px 0 8px; }
details.ogroup > summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
details.ogroup[open] > summary { color: var(--muted); font-weight: 500; }
@media print {
  #site-nav, .subnav, #house-view, #house-panels, .footer, .modal, .toast, .lightbox, ol.actions .btn, details.how, .house-form, .whoLine a { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .house-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .hcard { break-inside: avoid; border: 1px solid #ccc; padding: 12px; }
  .hcard .big { font-size: 20pt; }
  ol.actions li { grid-template-columns: 28px 1fr; break-inside: avoid; border: 1px solid #ccc; }
  a::after { content: ""; }
  #house-report::before { content: "Stop Project Sunrise — what it means for your house. stopprojectsunrise (see the site for sources)"; display: block; font-weight: 700; margin-bottom: 12px; }
}
/* ===== Severity-coded overview cards + story-circle sub-nav ===== */
.hcard .hhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hcard .ring { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--card); color: var(--ink); }
.hcard .ring .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.hcard .sev { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--pill); background: #e8e8ed; color: #515154; }
.hcard.hot { background: #fbeeec; border-left: 5px solid var(--red); }
.hcard.hot .ring { background: var(--red); color: #fff; }
.hcard.hot .sev { background: var(--red); color: #fff; }
.hcard.hot .big { color: var(--red); }
.hcard.warm { background: #fdf3e3; border-left: 5px solid #d9822b; }
.hcard.warm .ring { background: #d9822b; color: #fff; }
.hcard.warm .sev { background: #d9822b; color: #fff; }
.hcard.warm .big { color: #a1432a; }
.hcard.ok { background: var(--green-light); border-left: 5px solid var(--green); }
.hcard.ok .ring { background: var(--green); color: #fff; }
.hcard.ok .sev { background: var(--green); color: #fff; }
.hcard.ok .big { color: var(--green-dark); font-size: clamp(1.3rem, 2vw, 1.6rem); }
.hcard.ok p { margin-bottom: 6px; }
.hcard.neutral .ring { background: var(--card); color: var(--muted); }
.hcard[data-topic]:hover { background: var(--card); }
.hcard.hot:hover { background: #f8e4e1; } .hcard.warm:hover { background: #fbeacc; } .hcard.ok:hover { background: #d9ecdf; }
/* story circles */
.subnav .wrap { padding-top: 8px; padding-bottom: 6px; align-items: flex-start; }
.subnav-tabs { gap: 2px; }
.subnav-tabs button.story { flex-direction: column; gap: 4px; padding: 4px 8px 2px; min-width: 72px; background: transparent; border: 0; color: var(--muted); font-size: .74rem; font-weight: 600; min-height: 0; }
.subnav-tabs button.story .ring { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--bg-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s; }
.subnav-tabs button.story .ring .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.subnav-tabs button.story:hover { background: transparent; color: var(--ink); }
.subnav-tabs button.story:hover .ring { transform: translateY(-1px); }
.subnav-tabs button.story.on { background: transparent; color: var(--ink); }
.subnav-tabs button.story.on .ring { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.subnav-tabs button.story.hot .ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--red); }
.subnav-tabs button.story.hot.on .ring { background: var(--red); }
.subnav-tabs button.story.warm .ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #d9822b; }
.subnav-tabs button.story.warm.on .ring { background: #d9822b; }
.subnav-tabs button.story .dot { position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.subnav-tabs button.story.warm .dot { background: #d9822b; }
.subnav-tabs button.story.hot .dot, .subnav-tabs button.story.warm .dot { display: block; }
.subnav-addr { padding-top: 14px; }
@media (max-width: 760px) { .subnav-tabs button.story { min-width: 64px; } .subnav-tabs button.story .ring { width: 46px; height: 46px; } .subnav-addr { padding-top: 0; } }
/* Story-circle tabs for the issues carousel (shares the look of the Your House sub-nav) */
.slide-tabs.story-tabs { gap: 2px; margin-bottom: 14px; padding: 4px 0 6px; }
.slide-tabs.story-tabs button.story { flex-direction: column; gap: 4px; padding: 4px 8px 2px; min-width: 76px; background: transparent; border: 0; color: var(--muted); font-size: .76rem; font-weight: 600; min-height: 0; }
.slide-tabs.story-tabs button.story .ring { width: 54px; height: 54px; border-radius: 50%; background: var(--bg-2); color: var(--c, var(--ink)); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c, var(--hair)); transition: transform .15s, background .15s; }
.slide-tabs.story-tabs button.story .ring .ic { width: 24px; height: 24px; stroke-width: 2.2; margin: 0; }
.slide-tabs.story-tabs button.story:hover { background: transparent; color: var(--ink); border: 0; }
.slide-tabs.story-tabs button.story:hover .ring { transform: translateY(-1px); }
.slide-tabs.story-tabs button.story.on { background: transparent; color: var(--ink); border: 0; }
.slide-tabs.story-tabs button.story.on .ring { background: var(--c, var(--ink)); color: #fff; }
.do-strip .slide-tabs.story-tabs button.story, #issues .slide-tabs.story-tabs button.story { color: var(--muted); }
@media (max-width: 640px) { .slide-tabs.story-tabs button.story { min-width: 66px; } .slide-tabs.story-tabs button.story .ring { width: 48px; height: 48px; } }
/* Also on the table (compact cards) + More panel */
.house-cards.compact .hcard .big { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.house-cards.compact .hcard .sub { font-size: .95rem; }
.house-cards.compact .hcard .ring { width: 40px; height: 40px; } .house-cards.compact .hcard .ring .ic { width: 18px; height: 18px; }
.house-cards.compact .hcard p { font-size: .88rem; }
.more-sec { padding: 26px 0 8px; border-top: 1px solid var(--hair); scroll-margin-top: 140px; }
.more-sec:first-child { border-top: 0; padding-top: 0; }
.more-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.more-head .ring { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--ink); flex: none; }
.more-head .ring .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.more-sec.hot .more-head .ring { background: var(--red); color: #fff; } .more-sec.warm .more-head .ring { background: #d9822b; color: #fff; } .more-sec.ok .more-head .ring { background: var(--green); color: #fff; }
.more-head .kick .sev { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill); background: #e8e8ed; color: #515154; }
.more-sec.hot .sev { background: var(--red); color: #fff; } .more-sec.warm .sev { background: #d9822b; color: #fff; } .more-sec.ok .sev { background: var(--green); color: #fff; }
.more-head h3 { margin: 4px 0 0; font-size: 1.5rem; }
.more-line { font-size: 1.05rem; max-width: 820px; }
.more-sec .rows .row.two { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.more-sec .asks { background: var(--green-light); border-radius: 10px; padding: 12px 16px; margin: 14px 0 8px; font-size: .95rem; }
.more-sec .asks ul { margin: 6px 0 0; padding-left: 20px; }
/* Issues page sub-nav (story circles under the main nav) */
.issues-subnav .subnav-tabs { justify-content: flex-start; }
.issues-subnav .slide-tabs.story-tabs { margin: 0; padding: 0; overflow: visible; }
.issues-subnav .slide-tabs.story-tabs button.story { min-width: 72px; }
.issues-subnav .slide-tabs.story-tabs button.story .ring { width: 50px; height: 50px; }
/* Leaner panels */
.panel .panel-h { margin: 44px 0 12px; font-size: 1.35rem; }
.night-wrap { max-width: 820px; }
.night-wrap .night-hero { padding: 28px; }
#noise-asks[data-limit] ol { margin: 0; padding-left: 22px; } #noise-asks[data-limit] li { margin-bottom: 8px; }
.panel details.how > summary { font-size: .95rem; }
.panel .vcard .hear { display: none; }
.panel .vcard .vt { font-size: 1rem; }
.night-hero .legend-icons { margin-top: 4px; }
.sim.compact { grid-template-columns: minmax(260px, 4fr) minmax(280px, 7fr); }
.sim.compact .sim-controls { justify-content: center; }
.tax-line { background: #fdf3e3; border-left: 5px solid #d9822b; border-radius: 10px; padding: 14px 18px; margin: 16px 0 0; font-size: 1rem; max-width: 900px; }
ol.asks-list { margin: 0; padding-left: 22px; max-width: 820px; } ol.asks-list li { margin-bottom: 8px; }
/* Location pill + popover in the Your House sub-nav */
.subnav-addr { position: relative; padding-top: 10px; }
.locpill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; border-radius: var(--pill); border: 1px solid var(--hair); background: var(--card); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; max-width: 340px; min-height: 44px; }
.locpill:hover { border-color: var(--ink); }
.locpill .ic { width: 1em; height: 1em; color: var(--green); flex: none; }
.locpill .chev { transform: rotate(90deg); color: var(--muted); }
.locpill[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.locpill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locpop { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 92vw); background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.18); padding: 18px; z-index: 60; }
.locpop[hidden] { display: none; }
.locpop .lab { display: block; font-weight: 600; margin-bottom: 6px; }
.locpop .addr-row input { padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; font: inherit; flex: 1 1 160px; min-width: 0; }
.locpop-or { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.locpop .seg.big button { flex: 1 1 45%; justify-content: center; }
.locpop select { width: 100%; padding: 9px 10px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); font: inherit; }
@media (max-width: 760px) { .subnav-addr { padding-top: 0; flex: 1 1 100%; } .locpill { max-width: 100%; width: 100%; justify-content: flex-start; } .locpop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; } }
/* Where the water goes (Leaflet) */
.wmap-wrap { max-width: 980px; }
.wmap { height: 520px; border-radius: var(--radius); overflow: hidden; background: #e9eee8; margin-top: 12px; }
.wmap-mode { margin-bottom: 4px; }
.wmap-time { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.wmap-years { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; font-size: .9rem; font-weight: 600; }
.wmap-years input[type="range"] { flex: 1 1 auto; accent-color: var(--red); }
.wmap-time .val { font-family: var(--mono); font-size: .9rem; min-width: 90px; }
.wmap-story { margin-top: 14px; font-size: 1.05rem; max-width: 900px; }
.wmap-story p { margin: 0; }
.wmap-readout { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin-top: 14px; }
.wmap-readout .fact { background: var(--bg-2); }
.wmap-label { font: 600 12px/1.2 var(--font); color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.wmap-you { background: var(--red); color: #fff; border: 0; font-weight: 700; }
.wmap-you::before { border-left-color: var(--red) !important; }
.leaflet-container { font-family: var(--font); }
@media (max-width: 640px) { .wmap { height: 420px; } .wmap-readout { grid-template-columns: 1fr !important; } }
.wmap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wmap-pair .wmap { height: 460px; margin-top: 0; }
.wmap-head { font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 8px 12px; border-radius: 10px 10px 0 0; color: #fff; }
.wmap-head.today { background: var(--green-dark); } .wmap-head.after { background: #7a2e22; }
.wmap-pair .wmap { border-radius: 0 0 var(--radius) var(--radius); }
.wmap-chip { display: none; }
.wmap-arrow { text-align: center; color: #12261c; white-space: nowrap; }
.wmap-arrow .ar { display: block; font-size: 44px; line-height: 1; font-weight: 800; color: #1c6f9c; text-shadow: 0 0 4px #fff, 0 0 4px #fff; }
.wmap-arrow .t { display: block; font: 700 12px/1.25 var(--font); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.wmap-label.blue { color: #1c6f9c; text-align: center; white-space: normal; line-height: 1.15; }
.wmap-label.rust { color: #7a2e22; text-align: center; white-space: normal; line-height: 1.15; }
.wmap-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: var(--muted); }
.wmap-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
@media (max-width: 760px) { .wmap-pair { grid-template-columns: 1fr; } .wmap-pair .wmap { height: 380px; } }
/* Bigger countdown + next meeting (home hero) */
.hero .countdown { display: block; max-width: 640px; padding: 20px 22px 16px; background: var(--card); border: 1px solid var(--hair); }
.countdown .cd-main { display: flex; align-items: center; gap: 22px; }
.hero .countdown .n { font-size: clamp(3rem, 6vw, 4.6rem); letter-spacing: -.05em; line-height: .9; color: var(--red); flex: none; }
.hero .countdown .n small { display: block; font-size: .3em; letter-spacing: 0; font-weight: 700; color: var(--muted); margin: 6px 0 0; }
.countdown .cd-txt .k { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.countdown .cd-txt .w { font-size: .95rem; color: var(--muted); margin-top: 4px; }
.countdown .cd-txt .w strong { color: var(--ink); }
.countdown .cd-next { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: .95rem; }
.countdown .cd-next .lab { font-weight: 700; color: var(--green); white-space: nowrap; }
.countdown .cd-next .lab .ic { color: var(--green); }
.countdown .cd-foot { margin-top: 10px; font-size: .9rem; }
@media (max-width: 640px) { .countdown .cd-main { gap: 14px; } .countdown .cd-next { grid-template-columns: 1fr; gap: 4px; } }
.countdown .cd-txt .w br { display: inline; }
.countdown .cd-main { align-items: center; }
.countdown .cd-txt .k { margin-bottom: 4px; }
.countdown .cd-row { display: flex; gap: 8px; align-items: baseline; font-size: .95rem; color: var(--muted); }
.countdown .cd-row .lab { flex: none; font-weight: 700; color: var(--green); white-space: nowrap; }
.countdown .cd-row.decisive .lab .ic { color: var(--red); }
.countdown .cd-row .txt strong { color: var(--ink); }
.countdown .cd-row.next { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.countdown .cd-next { display: none; }
.countdown .cd-foot { margin-top: 10px; font-size: .88rem; }
/* countdown: number inline with its sentence, baseline-aligned */
.hero .countdown .cd-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hero .countdown .cd-main .n { font-size: clamp(2.8rem, 5.5vw, 4rem); line-height: 1; letter-spacing: -.05em; color: var(--red); }
.hero .countdown .cd-main .k { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; }
.countdown .cd-row.decisive { margin-top: 2px; }
.hero .countdown .cd-main.next { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--hair); }
.hero .countdown .cd-main.next .k { font-size: 1.1rem; color: var(--ink); }
.countdown .cd-row.next { margin-top: 0; padding-top: 0; border-top: 0; }
.countdown .cd-row .lab .ic { width: 1.1em; height: 1.1em; }
.hero .hero-line { font-size: 1.15rem; color: var(--fg); max-width: 560px; margin: 0 0 22px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-width: 620px; }
.chips .chip { display: inline-block; padding: 5px 11px; border-radius: var(--pill); background: var(--bg-2); color: var(--ink); font-size: .84rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.chips .chip:hover { border-color: var(--ink); text-decoration: none; }
.chips .chip.more { background: transparent; color: var(--green); border-color: var(--hair); }
.hero { padding-bottom: 56px; }
.hero .countdown { background: var(--bg-2); border: 0; margin-top: 8px; }
.hero .hero-line { margin-bottom: 26px; }
.hero .house-form .lab { font-size: 1.05rem; }
/* Motion cues on the home hero */
.hero .countdown .cd-main .n { color: var(--red); animation: cd-pulse 2.4s ease-in-out infinite; }
@keyframes cd-pulse { 0%, 100% { color: var(--red); text-shadow: 0 0 0 rgba(229,50,43,0); } 50% { color: #ff6b63; text-shadow: 0 0 22px rgba(229,50,43,.45); } }
.hero .house-form.ants { position: relative; padding: 16px 18px 14px; margin-top: 22px; }
.hero .house-form.ants::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 50%, transparent 0) repeat-x, linear-gradient(90deg, var(--green) 50%, transparent 0) repeat-x, linear-gradient(0deg, var(--green) 50%, transparent 0) repeat-y, linear-gradient(0deg, var(--green) 50%, transparent 0) repeat-y;
  background-size: 14px 2px, 14px 2px, 2px 14px, 2px 14px; background-position: 0 0, 0 100%, 0 0, 100% 0; opacity: .6; animation: ants 16s linear infinite; }
@keyframes ants { to { background-position: 140px 0, -140px 100%, 0 -140px, 100% 140px; } }
@media (prefers-reduced-motion: reduce) { .hero .countdown .cd-main .n { animation: none; color: var(--red); text-shadow: none; } }
/* Water story v3 */
.wstory { max-width: 900px; }
.wstep { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--hair); }
.wstep:first-child { border-top: 0; padding-top: 4px; }
.wnum { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.wstep h3 { margin: 4px 0 8px; font-size: 1.4rem; }
.wstep p { font-size: 1.02rem; }
.wbar { display: grid; grid-template-columns: minmax(0, 220px) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; margin: 6px 0; }
.wbar .track { height: 14px; background: var(--bg-2); border-radius: 7px; overflow: hidden; }
.wbar .fill { display: block; height: 100%; border-radius: 7px; transition: width .6s ease; }
.wbar.clean .fill { background: #1c6f9c; } .wbar.dirty .fill { background: #a1432a; } .wbar.drawn .fill { background: #9aa69f; }
.wbar .v { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.wcontam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.wcontam .wc { background: #fbeeec; border-left: 4px solid var(--red); border-radius: 10px; padding: 12px 14px; }
.wcontam .v { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--red); letter-spacing: -.03em; line-height: 1; }
.wcontam .l { font-weight: 600; margin-top: 4px; } .wcontam .s { font-size: .8rem; color: var(--muted); margin-top: 2px; }
table.wspread td, table.wspread th { padding: 8px 10px; }
table.wspread .yr { padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--hair); background: var(--card); font: inherit; font-weight: 600; cursor: pointer; }
table.wspread .yr.on, table.wspread .yr:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.wmap-pair { margin-top: 10px; }
.wmap .wmap-tiles, .rmap .wmap-tiles { filter: grayscale(.9) opacity(.42); }
.wmap-place { font: 700 12px/1.2 var(--font); color: #444; text-align: center; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; letter-spacing: .02em; }
.wmap-place.road { color: #7a5a1e; text-transform: uppercase; font-size: 10.5px; letter-spacing: .08em; }
.wmap-place.park { color: #1d7a4f; } .wmap-place.water { color: #1c6f9c; font-style: italic; } .wmap-place.town { color: #333; font-size: 13px; }
.wmap-particles { position: absolute; inset: 0; pointer-events: none; z-index: 450; }
.wmap-legend { margin-top: 10px; }
.wmap-readout { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important; }
@media (max-width: 700px) { .wcontam { grid-template-columns: 1fr; } .wbar { grid-template-columns: 1fr; gap: 4px; } .wstep { grid-template-columns: 32px 1fr; gap: 10px; } }
/* Roads story */
.rstory { max-width: 900px; }
.rh { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 20px; align-items: center; margin-top: 8px; }
.rh-val { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.rh-val .n { font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--red); letter-spacing: -.05em; line-height: 1; margin-right: 8px; }
.rh-sub { font-size: 1rem; margin-top: 6px; }
.rh-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 72px; align-items: end; }
.rh-strip span { display: block; height: var(--h, 10%); min-height: 3px; background: #c25a3f; border-radius: 3px 3px 0 0; opacity: .55; cursor: pointer; transition: height .3s; }
.rh-strip span.night { background: #5d3a8a; }
.rh-strip span.on { opacity: 1; outline: 2px solid var(--ink); }
.rh-slider input { width: 100%; accent-color: var(--red); margin-top: 6px; }
.rh-axis { display: flex; justify-content: space-between; }
.rmap { height: 440px; border-radius: var(--radius); overflow: hidden; background: #e9eee8; margin-top: 8px; }
.rgrade { font: 800 12px/22px var(--display); color: #fff; text-align: center; }
.wmap-place.gate { color: #7a2e22; font-weight: 800; }
.rlegend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; color: var(--muted); }
.rlegend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.rows.report .row { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); }
.rows.report .row.head { font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px 0; }
.grade { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-family: var(--display); font-weight: 800; font-size: .95rem; }
.grade.gA { background: #2f7d5a; } .grade.gB { background: #5aa876; } .grade.gC { background: #c9b043; } .grade.gD { background: #d9822b; } .grade.gE { background: #c25a3f; } .grade.gF { background: #8e2f1f; } .grade.gx { background: #c9d3cc; color: #515154; }
@media (max-width: 700px) { .rh { grid-template-columns: 1fr; } .rows.report .row { grid-template-columns: 1fr; } .rmap { height: 380px; } }
.rcorr-label { font: 800 11px/20px var(--display); color: #7a2e22; text-align: center; background: rgba(255,255,255,.9); border-radius: 10px; }
/* Map full-screen toggle */
.map-fs { position: absolute; top: 10px; right: 10px; z-index: 800; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.map-fs:hover { background: var(--bg-2); }
.map-fs .ic { width: 18px; height: 18px; }
.rmap:fullscreen, .wmap:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.fs-fallback { position: fixed !important; inset: 0 !important; z-index: 1000 !important; width: 100vw !important; height: 100vh !important; border-radius: 0 !important; }
.dsec { display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 600; padding: 1px 7px; border-radius: 6px; margin-top: 4px; }
.dsec.bad { background: #fbeeec; color: var(--red); } .dsec.warm { background: #fdf3e3; color: #a1432a; } .dsec.ok { background: var(--green-light); color: var(--green-dark); }
