/* ===== Don India — main stylesheet ===== */
:root {
  --saffron: #f28c28;
  --green: #138808;
  --navy: #0b2a6b;
  --navy-2: #163f9a;
  --ink: #1b1f2a;
  --muted: #5d6475;
  --line: #e4e1d8;
  --bg: #fbf8f2;
  --card: #ffffff;
  --soft: #f3eee3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,25,40,.05), 0 8px 24px rgba(20,25,40,.06);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --c-governance: #0b2a6b;
  --c-economy: #b45309;
  --c-science: #6d28d9;
  --c-agriculture: #138808;
  --c-infrastructure: #0e7490;
  --c-technology: #be185d;
  --c-society: #9a3412;
  --c-sports: #1d4ed8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9e2; --muted: #a3a9b7; --line: #2c3140; --bg: #12151d;
    --card: #1a1e29; --soft: #1f2431; --navy: #8fb1ff; --navy-2: #b6cbff;
    --c-governance: #8fb1ff; --c-economy: #f59e0b; --c-science: #a78bfa;
    --c-agriculture: #4ade80; --c-infrastructure: #22d3ee; --c-technology: #f472b6;
    --c-society: #fb923c; --c-sports: #60a5fa;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--saffron); margin: 0 0 .6rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the header */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.tricolor { display: flex; height: 4px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--saffron); }
.tricolor span:nth-child(2) { background: #e9e4d8; }
.tricolor span:nth-child(3) { background: var(--green); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.logo-text b { color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .dropdown-btn { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--ink); background: none; border: 0; font-family: inherit; cursor: pointer; }
.main-nav a:hover, .dropdown-btn:hover { background: var(--soft); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.dropdown-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown.open .dropdown-btn svg { transform: rotate(180deg); }
.dropdown a { padding: 8px 12px; }
.lang-toggle { font: 600 .82rem var(--font-body); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 70px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .dropdown-btn { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; background: transparent; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { opacity: 1; }
  .nav-extra { padding-top: 16px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .96rem; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: .18s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0e1220; } }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 1; }
.hero-inner > * { max-width: 820px; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--navy); font-weight: 500; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 620px; margin: 1.3rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-years { position: absolute; right: -2vw; bottom: -6vw; font-family: var(--font-head); font-weight: 700; font-size: clamp(8rem, 26vw, 22rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--saffron) 45%, transparent); pointer-events: none; user-select: none; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { margin-bottom: 36px; max-width: 680px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.015em; }
.section-sub { color: var(--muted); margin: .7rem 0 0; }

/* ---------- Then vs Now ---------- */
.then-now { background: var(--soft); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat h3 { font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-row { display: flex; align-items: flex-end; gap: 12px; margin: 14px 0 16px; }
.stat-row span { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 700; line-height: 1.05; }
.stat-row small { font-family: var(--font-body); font-size: .74rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.then { font-size: 1.35rem; color: var(--muted); }
.now { font-size: 2rem; color: var(--green); }
@media (prefers-color-scheme: dark) { .now { color: #4ade80; } }
.arrow { font-size: 1.3rem; color: var(--saffron); padding-bottom: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--soft); position: relative; overflow: hidden; }
.bar span { position: absolute; inset: 0 auto 0 0; width: var(--to); background: linear-gradient(90deg, var(--saffron) 0 var(--from), var(--green) var(--from)); border-radius: 99px; }
.bar span { background: linear-gradient(90deg, var(--saffron), var(--green)); }
.source-note { font-size: .82rem; color: var(--muted); margin: 20px 0 0; }

/* ---------- Timeline controls ---------- */
.tl-controls { position: sticky; top: 70px; z-index: 10; background: var(--bg); padding: 12px 0 10px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.decade-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.decade-nav::-webkit-scrollbar { display: none; }
.decade-nav button { flex: none; font: 600 .9rem var(--font-head); padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: .15s; }
.decade-nav button:hover { border-color: var(--navy); }
.decade-nav button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .decade-nav button.active { color: #0e1220; } }
.tl-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.cat-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 .82rem var(--font-body); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip.active { border-color: var(--c, var(--navy)); background: color-mix(in srgb, var(--c, var(--navy)) 12%, var(--card)); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); min-width: 220px; }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; padding: 9px 0; font: inherit; font-size: .9rem; color: var(--ink); width: 100%; }
.tl-count { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 640px) {
  .tl-controls { position: static; }
  .search { width: 100%; }
  .cat-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .chip { flex: none; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(var(--saffron), var(--navy) 50%, var(--green)); transform: translateX(-1px); opacity: .5; }
.tl-decade { position: relative; text-align: center; margin: 36px 0 24px; }
.tl-decade span { display: inline-block; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; background: var(--bg); padding: 4px 18px; border: 1.5px solid var(--line); border-radius: 999px; }
.tl-item { position: relative; width: 50%; padding: 0 40px 28px 0; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.tl-item.visible { opacity: 1; transform: none; }
.tl-item.right { margin-left: 50%; padding: 0 0 28px 40px; }
.tl-item::after { content: ""; position: absolute; top: 22px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c); z-index: 1; }
.tl-item.right::after { right: auto; left: -8px; }
.tl-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tl-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,25,40,.06), 0 14px 30px rgba(20,25,40,.1); }
.tl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-year { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--c); }
.tl-date { font-size: .78rem; color: var(--muted); }
.tl-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); padding: 2px 8px; border-radius: 6px; margin-left: auto; }
.tl-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.tl-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.tl-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.tl-more > div { overflow: hidden; }
.tl-more p { color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 12px; }
.tl-card[aria-expanded="true"] .tl-more { grid-template-rows: 1fr; }
.tl-toggle { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.tl-card[aria-expanded="true"] .tl-toggle::after { content: " less"; }
.tl-card[aria-expanded="false"] .tl-toggle::after { content: " more"; }
.tl-empty { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 760px) {
  .timeline::before { left: 8px; }
  .tl-decade { text-align: left; }
  .tl-item, .tl-item.right { width: 100%; margin-left: 0; padding: 0 0 22px 34px; }
  .tl-item::after, .tl-item.right::after { left: 0; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tl-item { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sector-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; transition: .18s; }
.sector-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.sector-card .ico { font-size: 1.6rem; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); margin-bottom: 14px; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.sector-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.sector-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- CTA ---------- */
.cta { padding: 64px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; }
@media (prefers-color-scheme: dark) { .cta-inner { background: #1c2a52; } }
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta p { margin: 6px 0 0; opacity: .8; }
.subscribe { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input { padding: 12px 18px; border-radius: 999px; border: 0; font: inherit; min-width: 230px; }
.cta .btn-primary { background: var(--saffron); color: #1b1f2a; }
.cta .btn-primary:hover { background: #ffa04a; }
@media (max-width: 640px) { .cta-inner { padding: 28px 22px; } .subscribe, .subscribe input { width: 100%; } .subscribe .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner p { color: var(--muted); max-width: 360px; margin: 8px 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }

/* ---------- Timeline v2: selects, PM prefix, PM markers ---------- */
.tl-filters { justify-content: flex-start; }
.tl-select { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tl-select select { font: 500 .9rem var(--font-body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 32px 9px 12px; min-width: 210px; max-width: 100%; text-transform: none; letter-spacing: 0; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
.tl-select select:focus, .search:focus-within { outline: 2px solid var(--navy); outline-offset: 1px; }
.search { align-self: flex-end; flex: 1; min-width: 220px; max-width: 360px; }
.tl-reset { align-self: flex-end; font: 600 .82rem var(--font-body); color: var(--navy); background: none; border: 0; padding: 10px 4px; cursor: pointer; text-decoration: underline; }
.decade-nav button:disabled { opacity: .35; cursor: default; }
.tl-card.static { cursor: default; }
.tl-card.static:hover { transform: none; }
.tl-prefix { color: var(--c); font-weight: 700; }
.tl-prefix.era { color: var(--muted); font-weight: 600; font-style: italic; }
.tl-card h3 { line-height: 1.3; }

.tl-pm { position: relative; z-index: 1; display: flex; justify-content: center; margin: 8px 0 26px; }
.tl-pm > div { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 14px; box-shadow: var(--shadow); max-width: 92%; }
.tl-pm-label { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); }
.tl-pm strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.tl-pm-date { font-size: .78rem; opacity: .8; }
@media (prefers-color-scheme: dark) { .tl-pm > div { background: #1c2a52; } }

@media (max-width: 760px) {
  .tl-pm { justify-content: flex-start; padding-left: 28px; }
  .tl-pm > div { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
  .tl-filters { flex-direction: column; align-items: stretch; }
  .tl-select select, .search { min-width: 0; max-width: none; width: 100%; }
}
.tl-order { align-self: flex-end; font: 600 .86rem var(--font-body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.tl-order:hover { border-color: var(--navy); }
/* Logo images (lockup on tablet/desktop, wordmark on phones) */
.logo-img { display: block; line-height: 0; }
.logo-img img { display: block; height: 46px; width: auto; }
.header-inner { height: 74px; }
.logo-footer .logo-img img { height: 52px; }
.tl-controls { top: 78px; }
html { scroll-padding-top: 88px; }
@media (max-width: 960px) { .main-nav { inset: 78px 0 0 0; } }
@media (max-width: 640px) {
  .header-inner { height: 62px; }
  .logo-img img { height: 24px; }
  .logo-footer .logo-img img { height: 22px; }
  .main-nav { inset: 66px 0 0 0; }
}

/* ---------- Then vs Now v2 ---------- */
.tn-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; margin-bottom: 6px; }
.tn-tabs::-webkit-scrollbar { display: none; }
.tn-tab { flex: none; font: 500 .86rem var(--font-body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.tn-tab small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.tn-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.tn-tab.active small { color: inherit; opacity: .75; }
@media (prefers-color-scheme: dark) { .tn-tab.active { color: #0e1220; } }
.tn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tn-head h3 { line-height: 1.35; }
.tn-badge { flex: none; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tn-badge.good { color: #12753a; background: #e3f5e9; }
.tn-badge.bad { color: #b42318; background: #fde8e6; }
.tn-badge.neutral { color: var(--muted); background: var(--soft); }
@media (prefers-color-scheme: dark) {
  .tn-badge.good { color: #6ee7a0; background: rgba(74,222,128,.12); }
  .tn-badge.bad { color: #fca5a5; background: rgba(248,113,113,.12); }
}
.stat .stat-row .now { font-size: 1.7rem; }
.stat .stat-row .then { font-size: 1.15rem; }
.tn-bar { position: relative; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-bottom: 4px; }
.tn-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.tn-bar .now { background: var(--green); opacity: .85; }
.tn-bar .then { background: var(--saffron); z-index: 1; }
.tn-src { font-size: .74rem; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }
.tn-more { display: flex; margin: 24px auto 0; }
/* Then vs Now fixes */
#tn-grid .stat h3 { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
#tn-grid .stat-row { flex-wrap: wrap; row-gap: 4px; }
#tn-grid .stat-row span { white-space: nowrap; }
#tn-grid .stat-row .now { font-size: 1.55rem; }
#tn-grid .stat-row .then { font-size: 1.1rem; }
.tn-bars { display: grid; gap: 4px; }
.tn-bars .tn-bar { height: 6px; margin: 0; }
.tn-bars .tn-bar span { position: absolute; left: 0; top: 0; bottom: 0; }
#tn-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 360px) { #tn-grid { grid-template-columns: 1fr; } }
/* President's Rule marker + Centre prefix */
.tl-pm.pr > div { background: var(--soft); color: var(--ink); border: 1px dashed var(--muted); box-shadow: none; }
.tl-pm.pr .tl-pm-label { color: var(--muted); }

/* ---------- State pages ---------- */
.state-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.state-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.state-hero .lead { margin: 1rem 0 1.6rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); }
.state-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.state-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.state-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.state-facts dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.states-list { padding-top: 40px; }
.states-h { font-size: 1.5rem; margin: 8px 0 16px; }
.states-h small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 500; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 40px; }
.state-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--muted); }
.state-tile span { font-weight: 600; color: var(--ink); opacity: .55; }
.state-tile small { font-size: .78rem; }
.state-tile.live { border-color: var(--saffron); border-width: 1.5px; }
.state-tile.live span { opacity: 1; }
.state-tile.live small { color: var(--saffron); font-weight: 600; }
.state-tile.live:hover { background: var(--soft); }

/* ---------- States mega dropdown ---------- */
.dropdown-btn.active { color: var(--navy); font-weight: 600; }
.mega { position: static; }
@media (min-width: 961px) {
  .header-inner { position: relative; }
  .mega .mega-panel { left: auto; right: 0; top: calc(100% - 4px); width: min(860px, calc(100vw - 40px)); padding: 18px 20px 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.mega-head { margin: 0 0 6px; padding: 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron); }
.mega-head small { color: var(--muted); font-weight: 600; letter-spacing: 0; }
.mega-grid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 6px; }
.mega-grid a, .mega-grid .soon { display: block; padding: 6px 8px !important; font-size: .88rem !important; border-radius: 6px; line-height: 1.3; }
.mega-grid a { color: var(--ink); font-weight: 600 !important; }
.mega-grid a::after { content: " ●"; color: var(--green); font-size: .6rem; vertical-align: middle; }
.mega-grid a.current { background: var(--soft); }
.mega-grid .soon { color: var(--muted); opacity: .65; cursor: default; }
.mega-all { display: inline-block !important; margin: 2px 0 0; padding: 8px !important; font-weight: 600 !important; color: var(--navy) !important; }
@media (max-width: 960px) {
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-grid a, .mega-grid .soon { border-bottom: 0 !important; padding: 8px 6px !important; }
  .has-dropdown.mega.open .mega-panel { display: block; padding: 10px 0 6px 4px; }
  .mega-head { padding: 0 6px; margin-top: 6px; }
}
.mega-key { color: var(--green); }

/* ===== Text pages: About, Contact, Privacy ===== */
.prose-page { padding: 40px 0 72px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose a { color: var(--navy-2); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { .prose a { color: var(--saffron); } }
.contact-mail { font-size: 1.3rem; font-weight: 600; margin: 0 0 2rem; overflow-wrap: anywhere; }
