:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --ink: #0d1b2a;
  --ink-soft: #3b4959;
  --muted: #5b6878;
  --line: #e2e7ec;
  --line-strong: #cbd4dd;
  --brand: #00629b;
  --brand-solid: #00629b;
  --brand-strong: #004c78;
  --brand-tint: #e9f2f8;
  --brand-ink: #00507f;
  --ok: #0e7a4b;
  --ok-tint: #e8f5ee;
  --warn: #875800;
  --warn-tint: #fcf3dc;
  --danger: #a83a1e;
  --danger-tint: #fbebe6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-raised: 0 10px 30px rgba(13, 27, 42, .08);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1118;
  --bg-soft: #0f1720;
  --surface: #111a24;
  --surface-2: #15202c;
  --ink: #e6edf4;
  --ink-soft: #b4c0cc;
  --muted: #8796a6;
  --line: #1f2b38;
  --line-strong: #2d3c4c;
  --brand: #4aa6dd;
  --brand-strong: #0a72b0;
  --brand-tint: #0f2637;
  --brand-ink: #7fc4ec;
  --ok: #4cc48d;
  --ok-tint: #0f2a1f;
  --warn: #efbe5b;
  --warn-tint: #2c2310;
  --danger: #f08b70;
  --danger-tint: #2d1712;
  --shadow-raised: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
img { max-width: 100%; }
::selection { background: var(--brand-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { flex: none; width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem .9rem; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 40; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(var(--container), calc(100% - 3rem)); min-height: 64px; margin-inline: auto; }
.brand, .footer-brand { display: inline-flex; min-width: 0; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-mark { flex: none; display: inline-flex; align-items: end; justify-content: center; gap: 3px; width: 34px; height: 34px; padding-bottom: 8px; border-radius: 8px; background: var(--brand-solid); }
.brand-mark i { display: block; width: 4px; border-radius: 2px; background: #fff; }
.brand-mark i:nth-child(1) { height: 9px; opacity: .75; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: .88; }
.brand-copy { display: grid; min-width: 0; line-height: 1.2; }
.brand-copy strong { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; }
.brand-copy small { color: var(--muted); font-size: .76rem; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.header-cta { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .4rem .85rem; border-radius: var(--radius-sm); background: var(--brand-solid); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; }
.header-cta:hover { background: var(--brand-strong); }
.theme-toggle, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 38px; height: 38px; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 600; cursor: pointer; }
.theme-toggle { padding: 0; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--ink-soft); }
.theme-toggle .icon { width: 17px; height: 17px; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; content: ""; transition: transform .16s ease; }
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; transform: translateY(-4.5px); }
.menu-icon::after { position: absolute; transform: translateY(4.5px); }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
.site-nav { position: absolute; top: calc(100% + 8px); right: 0; display: none; width: min(560px, calc(100vw - 2rem)); grid-template-columns: 1fr 1fr; gap: 2px; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-raised); }
.site-nav.is-open { display: grid; }
.chapter-link { display: flex; align-items: baseline; gap: .7rem; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .92rem; text-decoration: none; }
.chapter-link:hover { background: var(--bg-soft); color: var(--ink); }
.chapter-link.is-current { background: var(--brand-tint); color: var(--brand-ink); }
.chapter-num { flex: none; color: var(--muted); font-family: var(--mono); font-size: .74rem; font-variant-numeric: tabular-nums; }
.chapter-link.is-current .chapter-num { color: var(--brand-ink); }

.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem); width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.intro-copy { grid-column: 1; grid-row: 1; }
.intro-art { grid-column: 2; grid-row: 1; display: block; width: min(100%, 560px); height: auto; justify-self: center; }
.eyebrow { margin-bottom: 1.1rem; color: var(--brand-ink); font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
h1 { max-width: 16ch; margin-bottom: 1.1rem; font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.04; }
.lead { max-width: 44rem; color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.6; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.button-primary { background: var(--brand-solid); color: #fff; }
.button-primary:hover { background: var(--brand-strong); }
.button-secondary, .button-outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button-secondary:hover, .button-outline:hover { border-color: var(--ink-soft); }
.intro-stats { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1rem 0 0; border-top: 1px solid var(--line); }
.intro-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .2rem; padding: 1rem 1rem 0 0; }
.intro-stats div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.intro-stats dd { margin: 0; font-size: 1.9rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.intro-stats dt { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.outline { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr); align-items: stretch; gap: .25rem 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--brand-solid); border-radius: var(--radius); background: var(--surface-2); }
.follow-qr { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; gap: .85rem; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.follow-qr img { flex: none; width: 112px; height: 112px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; image-rendering: pixelated; }
.follow-qr span { display: grid; gap: .25rem; }
.follow-qr strong { font-size: .92rem; line-height: 1.3; }
.follow-qr small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.follow-qr:hover { border-color: var(--brand); }
.outline-title, .rail-title { grid-column: 2; margin-bottom: .25rem; color: var(--muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.outline-destinations { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.outline a.outline-destination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.outline-destination:hover { border-color: var(--brand); background: var(--brand-tint); }
.outline-destination > span:nth-child(2) { display: grid; gap: .1rem; }
.outline-destination strong { font-size: .86rem; line-height: 1.3; }
.outline-destination small { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.outline-destination .icon { color: var(--brand-ink); }
.outline ol { margin: 0; padding: 0; list-style: none; }
.outline li + li { border-top: 1px solid var(--line); }
.outline a { display: flex; align-items: baseline; gap: .8rem; padding: .55rem .2rem; color: var(--ink); font-size: .94rem; text-decoration: none; }
.outline a:hover { color: var(--brand-ink); }
.announce { display: flex; align-items: center; gap: .7rem; width: min(var(--container), calc(100% - 3rem)); margin: 0 auto 2rem; padding: .75rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; }
.announce:hover { border-color: var(--brand); }
.announce-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.announce .icon { margin-left: auto; color: var(--brand-ink); }

.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; }
.layout-single { display: block; }
.subpage-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); align-items: center; gap: 1.5rem 3rem; width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.subpage-hero h1 { max-width: 18ch; }
.subpage-hero .lead { max-width: 54rem; margin-bottom: 1.35rem; }
.subpage-hero img { grid-column: 2; grid-row: 1 / span 2; display: block; width: min(100%, 420px); filter: drop-shadow(0 18px 22px rgba(30, 104, 150, .12)); justify-self: center; }
.subpage-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.subpage-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .86rem; font-weight: 550; text-decoration: none; }
.subpage-nav a:hover, .subpage-nav a[aria-current="page"] { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.rail-title { position: sticky; top: 88px; }
.rail-nav { position: sticky; top: 116px; display: grid; gap: 1px; }
.rail-link { padding: .4rem .55rem; font-size: .86rem; }
.content { min-width: 0; }
.chapter { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.chapter-head { margin-bottom: 2rem; }
.chapter-head-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 27%); column-gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.chapter-head-art > :not(.chapter-art) { grid-column: 1; }
.chapter-head-art .chapter-art { grid-column: 2; grid-row: 1 / span 5; display: block; width: 100%; max-width: 260px; height: auto; justify-self: center; }
.chapter-label { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.chapter-label span { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 .4rem; border-radius: 6px; background: var(--brand-tint); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
h2 { max-width: 24ch; margin-bottom: .9rem; font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.12; }
.chapter-head .lead { margin-bottom: 0; }
.chapter-head .text-link { margin-top: 1rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-ink); font-size: .92rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.block-title { margin: 3rem 0 1rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.015em; }
.block-lead { max-width: 46rem; margin: -.4rem 0 1.25rem; color: var(--ink-soft); }
.block-lead a { color: var(--brand-ink); font-weight: 600; }
.mini-title { margin: 1.75rem 0 .75rem; color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.source-line { margin: .9rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.source-line a { color: var(--ink-soft); }
.section-kicker { margin-bottom: .6rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }

.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.panel { min-width: 0; margin: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-label, .bento-label { margin-bottom: .55rem; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.panel-text { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.panel h4, .bento-card h4, .program-card h4 { margin-bottom: .45rem; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.panel p, .program-card p { color: var(--ink-soft); font-size: .93rem; }
.panel a { color: var(--brand-ink); }
.panel-figure { display: flex; flex-direction: column; gap: 1rem; padding: 0; overflow: hidden; }
.panel-figure img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); background: #fff; }
.panel-figure figcaption { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); font-size: .93rem; }
.panel-figure figcaption strong { display: block; margin-bottom: .2rem; color: var(--ink); }
.panel-logo { margin-bottom: .8rem; }
.panel-logo .logo-tile { width: 180px; height: 76px; }
.panel .panel-note { margin: .6rem 0 0; color: var(--muted); font-size: .86rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .2rem .6rem; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-soft); font-size: .82rem; font-weight: 500; }
.checklist { display: grid; gap: .55rem; margin: .4rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: .93rem; }
.checklist li::marker { color: var(--muted); font-family: var(--mono); font-size: .82rem; }

.history { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.history li { display: flex; flex-direction: column; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.history-year { margin-bottom: .8rem; color: var(--brand-ink); font-family: var(--mono); font-size: .9rem; font-weight: 600; }
.history-media { display: flex; align-items: center; gap: .6rem; min-height: 96px; margin-bottom: .9rem; }
.history-mark { width: 64px; height: 64px; padding: 4px; border-radius: 8px; background: #fff; object-fit: contain; }
.portraits { display: flex; gap: .35rem; }
.portraits img { width: 54px; height: 70px; border-radius: 6px; object-fit: cover; filter: grayscale(1); }
.history-logo { width: 110px; height: auto; padding: 8px 10px; border-radius: 8px; background: #fff; }
.history-today { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.history-today strong { font-size: 1.7rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.history-today span { color: var(--muted); font-size: .85rem; }
.history h4 { margin-bottom: .3rem; font-size: .98rem; font-weight: 650; line-height: 1.3; }
.history p { margin: 0; color: var(--muted); font-size: .86rem; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: .75rem; }
.bento-card { display: flex; min-width: 0; flex-direction: column; margin: 0; padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bento-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.bento-card ul { display: grid; gap: .35rem; margin: .3rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .9rem; }
.bento-number { display: block; margin: auto 0 .3rem; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.05; }
.bento-label + .bento-number { margin-top: 1.4rem; }
.bento-feature { grid-column: span 2; grid-row: span 2; border-color: transparent; background: var(--brand-solid); }
.bento-feature, .bento-feature h4, .bento-feature .bento-number { color: #fff; }
.bento-feature .bento-label, .bento-feature p, .bento-feature ul { color: rgba(255, 255, 255, .84); }
.bento-feature .bento-number { margin-top: auto; font-size: clamp(2.8rem, 5.5vw, 4.4rem); }
.bento-kerala .bento-feature { grid-row: span 1; }
.bento-feature h4 { margin-top: auto; font-size: 1.3rem; }
.bento-wide { grid-column: span 2; }
.bento-quote { justify-content: center; background: var(--surface-2); }
.bento-card .bento-quote-text { color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.bento-photo { position: relative; grid-column: span 2; grid-row: span 2; min-height: 300px; padding: 0; overflow: hidden; }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: .84rem; font-weight: 500; }
.bento-glance .bento-card:nth-child(7) { grid-column: span 2; }
.bento-glance .bento-quote { grid-column: 1 / -1; }
.bento-benefits .bento-card:last-child { grid-column: 1 / -1; }
.bento-funding .bento-card:nth-child(1), .bento-funding .bento-card:nth-child(2) { grid-column: span 2; }
.bento-funding .bento-card:nth-child(3) { grid-column: 1 / -1; }
.funding-path-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "label art" "title art" "list list"; align-content: start; gap: 0 .75rem; }
.funding-path-card .bento-label { grid-area: label; }
.funding-path-card h4 { grid-area: title; }
.funding-path-card ul { grid-area: list; }
.funding-path-art { grid-area: art; display: block; width: 100%; max-height: 112px; object-fit: contain; }
.funding-logos { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.funding-logos img { display: block; width: min(100%, 112px); height: 48px; object-fit: contain; }
.funders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: .4rem 0 0; }
.funders div { padding-left: .8rem; border-left: 2px solid var(--line-strong); }
.funders dt { margin-bottom: .2rem; font-size: .92rem; font-weight: 650; }
.funders dd { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }

.milestones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 2px solid var(--line-strong); list-style: none; }
.milestones li { position: relative; padding: 1.1rem 1rem 0 0; }
.milestones li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border: 2px solid var(--bg); border-radius: 50%; background: var(--brand); }
.milestones span { display: block; margin-bottom: .3rem; color: var(--brand-ink); font-family: var(--mono); font-size: .82rem; font-weight: 600; }
.milestones p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }

.kerala-network { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.network-item { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.network-item strong { display: block; margin-bottom: .3rem; font-size: 1rem; font-weight: 650; }
.network-item p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.logo-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }

.org-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 1.5rem; }
.ladder { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ladder li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ladder li:not(:last-child)::after { content: ""; position: absolute; bottom: -9px; left: 2.9rem; width: 1px; height: 8px; background: var(--line-strong); }
.ladder-level { grid-row: span 2; color: var(--muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; line-height: 1.5; text-transform: uppercase; }
.ladder strong { font-size: .97rem; font-weight: 650; line-height: 1.35; }
.ladder p { margin: .15rem 0 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }
.ladder .is-here { border-color: var(--brand); background: var(--brand-tint); }
.ladder .is-here .ladder-level { color: var(--brand-ink); }
.map-figure { position: sticky; top: 90px; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.map-frame { position: relative; }
.map-figure img { display: block; width: 100%; height: auto; }
.map-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-leaders line { stroke: #0d1b2a; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-leaders circle { fill: #fff; stroke: #0d1b2a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-tags { position: absolute; inset: 0; }
.region-tag { position: absolute; padding: .1rem .32rem; border-radius: 5px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 3px rgba(13, 27, 42, .35); color: #0d1b2a; font-family: var(--mono); font-size: .7rem; font-weight: 600; line-height: 1.2; white-space: nowrap; transform: translate(-50%, -50%); }
.region-tag.is-home { background: #00629b; color: #fff; }
.region-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1rem; margin: .9rem 0 0; padding: .8rem 0 0; border-top: 1px solid #e2e7ec; list-style: none; }
.region-legend li { display: flex; align-items: baseline; gap: .5rem; color: #3b4959; font-size: .82rem; line-height: 1.35; }
.region-legend li span { flex: none; min-width: 2.2rem; color: #0d1b2a; font-family: var(--mono); font-size: .76rem; font-weight: 600; }
.region-legend li.is-home { color: #00507f; font-weight: 600; }
.region-legend li.is-home span { color: #00629b; }
.map-figure figcaption { margin-top: .7rem; color: #4a5866; font-size: .84rem; line-height: 1.5; }
.org-chart { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.org-root { width: max-content; max-width: 100%; margin: 0 auto 1.25rem; padding: .6rem 1.1rem; border-radius: var(--radius-sm); background: var(--brand-solid); color: #fff; font-weight: 650; text-align: center; }
.org-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding-top: 1.1rem; border-top: 1px solid var(--line-strong); }
.org-col { display: grid; align-content: start; gap: .4rem; }
.org-head { margin: 0 0 .2rem; color: var(--ink); font-size: .9rem; font-weight: 650; line-height: 1.3; }
.org-node { margin: 0; padding: .5rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: .88rem; font-weight: 500; }
.org-leaf { margin: 0 0 0 .8rem; padding: .35rem .6rem; border-left: 2px solid var(--line-strong); color: var(--ink-soft); font-size: .84rem; }
.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.logo-wall li { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .8rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-align: center; }
.logo-wall li > span:last-child { color: #3b4959; font-size: .78rem; line-height: 1.3; }
.logo-wall .logo-tile { width: 100%; max-width: 128px; border: 0; }
.logo-wall-small { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 680px; }

.grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); list-style: none; overflow: hidden; }
.grades li { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; background: var(--surface); }
.grades li + li { border-left: 1px solid var(--line); }
.grades li:first-child { background: var(--brand-tint); }
.grades strong { font-size: .95rem; font-weight: 650; line-height: 1.3; }
.grades span { color: var(--ink-soft); font-size: .84rem; line-height: 1.45; }

.logo-tile { flex: none; display: inline-grid; place-items: center; width: 108px; height: 52px; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.logo-tile img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.logo-tile.is-small { width: 76px; height: 38px; padding: 4px 6px; }
.logo-tile.is-dark { background: #0d1b2a; }
.logo-tile.is-mono { border-color: transparent; background: var(--bg-soft); color: var(--ink-soft); font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.logo-tile.is-mono.is-small { font-size: .68rem; }

.filter-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter-button { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: .3rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-soft); font-size: .86rem; font-weight: 500; cursor: pointer; }
.filter-button:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter-button.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.filter-count { color: var(--muted); font-family: var(--mono); font-size: .74rem; }
.filter-button.is-active .filter-count { color: var(--bg); opacity: .75; }
.events-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; margin-bottom: 1rem; }
.events-count, .result-count { min-height: 1.4rem; margin: 0; color: var(--muted); font-size: .86rem; }
.result-count { margin: .3rem 0 .9rem; }
.list-more { display: flex; justify-content: center; margin-top: 1.25rem; }
.source-note { display: flex; align-items: start; gap: .6rem; max-width: 52rem; margin-top: 1.5rem; color: var(--muted); }
.source-note p { margin: 0; font-size: .84rem; line-height: 1.55; }
.source-dot { flex: none; width: 6px; height: 6px; margin-top: .5rem; border-radius: 50%; background: var(--muted); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.callout .icon { width: 18px; height: 18px; margin-top: .15rem; color: var(--brand-ink); }
.callout p { margin: 0; }
.callout a { color: var(--brand-ink); font-weight: 600; }

.offer-window { margin-bottom: 1.25rem; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius-sm); background: var(--ok-tint); color: var(--ink); font-size: .93rem; }
#ieee-day[data-state="ended"] .offer-window { border-left-color: var(--muted); background: var(--bg-soft); color: var(--ink-soft); }
#ieee-day[data-state="ended"] .promo-code { opacity: .6; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.offer-card { display: flex; min-width: 0; flex-direction: column; gap: .9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.offer-head { display: flex; align-items: center; gap: .8rem; }
.offer-society { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.3; }
.offer-deals { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.offer-deal { display: grid; gap: .55rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.offer-headline { display: block; color: var(--brand-ink); font-size: 1.3rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
.kind-free .offer-headline { color: var(--ok); }
.offer-who { display: block; margin-top: .15rem; color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }
.promo-code { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 40px; padding: .35rem .75rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; }
.promo-code:hover { border-color: var(--ink-soft); }
.promo-code code { min-width: 0; font-family: var(--mono); font-size: .86rem; font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; text-align: left; }
.promo-code .icon { color: var(--muted); }
.promo-code .icon:last-of-type, .promo-code.is-copied .icon:first-of-type { display: none; }
.promo-code.is-copied { border-style: solid; border-color: var(--ok); background: var(--ok-tint); }
.promo-code.is-copied .icon:last-of-type { display: block; color: var(--ok); }
.offer-note { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.dues-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); list-style: none; overflow: hidden; }
.dues-flow li { padding: 1.2rem; background: var(--surface); }
.dues-flow li + li { border-left: 1px solid var(--line); }
.dues-index { display: block; margin-bottom: .8rem; color: var(--brand-ink); font-family: var(--mono); font-size: .8rem; font-weight: 600; }
.dues-flow strong { display: block; margin-bottom: .45rem; font-size: 1rem; font-weight: 650; line-height: 1.3; }
.dues-flow p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.dues-caveat { margin: 1rem 0 2rem; }
.rebate-calculator { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rebate-copy { padding: clamp(1.4rem, 3vw, 2rem); border-right: 1px solid var(--line); background: var(--surface-2); }
.rebate-copy .section-kicker { color: var(--brand-ink); }
.rebate-copy h3 { margin-bottom: .7rem; font-size: 1.45rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.rebate-copy > p { color: var(--ink-soft); font-size: .92rem; }
.formula-list { display: grid; margin: 1.2rem 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); list-style: none; }
.formula-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .85rem; color: var(--ink-soft); font-size: .88rem; }
.formula-list li + li { border-top: 1px solid var(--line); }
.formula-list strong { color: var(--ink); font-family: var(--mono); font-size: .92rem; white-space: nowrap; }
.rebate-source { margin: 0; font-size: .88rem; }
.rebate-source a { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; }
.rebate-controls { display: grid; align-content: start; gap: .55rem; padding: clamp(1.4rem, 3vw, 2rem); }
.field-label { color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.rebate-controls > input[type="number"] { width: 100%; min-height: 46px; padding: .55rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 1rem; }
.rebate-controls > input[type="number"]::placeholder { color: var(--muted); }
.rebate-controls > input[type="number"]:focus { border-color: var(--brand); outline: 2px solid var(--brand-tint); outline-offset: 0; }
.readiness-checks { display: grid; gap: .4rem; min-width: 0; margin: .6rem 0 0; padding: 0; border: 0; }
.readiness-checks legend { margin-bottom: .5rem; padding: 0; color: var(--ink); font-size: .9rem; font-weight: 600; }
.readiness-checks label { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-soft); font-size: .92rem; cursor: pointer; }
.readiness-checks label:has(input:checked) { border-color: var(--ok); color: var(--ink); }
.readiness-checks input { width: 17px; height: 17px; margin: 0; accent-color: var(--ok); }
.readiness-meter { display: flex; align-items: center; gap: .7rem; margin: .2rem 0 .4rem; color: var(--muted); font-size: .82rem; }
.meter-bar { display: flex; gap: 3px; }
.meter-bar i { width: 26px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.meter-bar i.is-on { background: var(--ok); }
.rebate-output { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.rebate-output[data-state="pending"] { border-left: 3px solid var(--warn); background: var(--warn-tint); }
.rebate-output[data-state="ready"] { border-left: 3px solid var(--ok); background: var(--ok-tint); }
.rebate-output[data-state="error"] { border-left: 3px solid var(--danger); background: var(--danger-tint); }
.rebate-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin-bottom: .45rem; }
.rebate-figure strong { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.05; }
.rebate-figure span { color: var(--ink-soft); font-family: var(--mono); font-size: .82rem; }
.rebate-result, .pool-result { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.dues-input-label { margin-top: .8rem; }
.pool-result { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.pool-result[data-state="filled"] { border-left: 3px solid var(--brand); background: var(--brand-tint); color: var(--ink); }
.pool-result[data-state="error"] { border-left: 3px solid var(--danger); background: var(--danger-tint); color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.fund-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.fund-table th { padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.fund-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fund-table tr:last-child td { border-bottom: 0; }
.fund-table td:first-child { font-weight: 600; white-space: nowrap; }
.fund-table td:nth-child(3) { color: var(--ink-soft); }
.fund-table td:last-child { white-space: nowrap; }
.checked, .dated { display: inline-block; padding: .1rem .45rem; border-radius: 6px; font-size: .74rem; font-weight: 600; }
.checked { background: var(--ok-tint); color: var(--ok); }
.dated { background: var(--bg-soft); color: var(--muted); }
.resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.resource-links a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; }
.resource-links a:hover { border-color: var(--brand); color: var(--brand-ink); }

.funding-note { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--radius-sm); background: var(--warn-tint); color: var(--ink); font-size: .9rem; }
.funding-tools { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.funding-tools .filter-list { grid-column: 1 / -1; grid-row: 2; }
.search-box { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); }
.search-box:focus-within { border-color: var(--brand); outline: 2px solid var(--brand-tint); }
.search-box .icon { width: 17px; height: 17px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .95rem; }
.search-box input::placeholder { color: var(--muted); }
.travel-toggle { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-size: .88rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.travel-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand-solid); }
.catalog-status { margin: .8rem 0 0; color: var(--muted); font-size: .84rem; }
.opportunity-list, .event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.opportunity-card, .event-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease; }
.opportunity-card:hover, .event-card:hover { border-color: var(--line-strong); }
.opportunity-card { gap: .85rem; padding: 1.15rem; }
.opp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.opp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding-top: .1rem; }
.opp-status { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .5rem; border-radius: 6px; font-size: .76rem; font-weight: 600; line-height: 1.4; }
.opp-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { background: var(--ok-tint); color: var(--ok); }
.status-recurring { background: var(--brand-tint); color: var(--brand-ink); }
.status-check { background: var(--warn-tint); color: var(--warn); }
.status-closed { background: var(--bg-soft); color: var(--muted); }
.opp-tag { padding: .12rem .45rem; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-soft); font-size: .74rem; font-weight: 500; }
.opp-title { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.opp-type { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.opp-facts { display: grid; gap: .65rem; margin: 0; padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.opp-facts dt, .opp-label { display: block; margin-bottom: .15rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.opp-facts dd { margin: 0; }
.opp-amount { color: var(--ink); font-size: .98rem; font-weight: 650; line-height: 1.4; }
.opp-window { color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.opp-fit { margin: 0; color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.5; }
.opp-eligibility { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }
.opp-source, .event-source, .card-link { display: inline-flex; align-items: center; gap: .35rem; align-self: start; margin-top: auto; color: var(--brand-ink); font-size: .88rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.opp-source:hover, .event-source:hover, .card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 2rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); text-align: center; }
.catalogue { margin-top: 2.5rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.catalogue-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; }
.catalogue-head h3 { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.015em; }
.catalogue-head p { max-width: 44rem; margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.select-box { flex: none; max-width: 100%; }
.select-box select { -webkit-appearance: none; appearance: none; max-width: 100%; min-height: 40px; padding: .4rem 2.3rem .4rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8899' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 15px; color: var(--ink); font-size: .88rem; cursor: pointer; }
.catalogue .result-count { margin-top: .8rem; }
.catalogue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.catalogue-row { display: flex; min-width: 0; align-items: center; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.catalogue-row:hover { border-color: var(--brand); }
.catalogue-text { flex: 1; display: grid; min-width: 0; gap: .1rem; }
.catalogue-text strong { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.catalogue-text small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.catalogue-row .icon { color: var(--muted); }
.source-directory { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.source-directory summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; font-weight: 600; list-style: none; cursor: pointer; }
.source-directory summary::-webkit-details-marker { display: none; }
.source-directory summary::after { content: "+"; flex: none; color: var(--muted); font-family: var(--mono); font-size: 1.1rem; transition: transform .15s ease; }
.source-directory[open] summary::after { transform: rotate(45deg); }
.source-directory > p { max-width: 46rem; margin: 0 1.15rem .9rem; color: var(--ink-soft); font-size: .9rem; }
.source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; padding: 0 1.15rem 1.15rem; }
.source-links a { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: .88rem; font-weight: 500; text-decoration: none; }
.source-links a:hover { border-color: var(--brand); }

.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.program-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program-card { display: flex; min-width: 0; flex-direction: column; gap: .2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.program-card .logo-tile { width: 150px; height: 64px; margin-bottom: .8rem; }
.program-card p { margin-bottom: .8rem; }

.events-editorial-note { max-width: 52rem; margin-bottom: 1.1rem; }
.event-card { padding: 1.15rem; }
.event-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .8rem; }
.event-format { padding: .12rem .5rem; border-radius: 6px; background: var(--brand-tint); color: var(--brand-ink); font-size: .74rem; font-weight: 600; line-height: 1.45; }
.event-edition { color: var(--muted); font-family: var(--mono); font-size: .74rem; }
.event-title { margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.event-org { display: flex; align-items: center; gap: .6rem; min-height: 52px; margin-bottom: .7rem; }
.event-org .logo-tile.is-small { width: 88px; height: 50px; padding: 5px 8px; }
.event-organizers { margin: 0; color: var(--muted); font-size: .84rem; font-weight: 500; line-height: 1.4; }
.event-summary { margin: 0 0 1rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.event-takeaway { margin-top: auto; padding: .8rem .9rem; border-left: 2px solid var(--brand); background: var(--surface-2); }
.event-takeaway strong { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; color: var(--brand-ink); font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.event-takeaway p { margin: 0; color: var(--ink); font-size: .87rem; line-height: 1.5; }
.event-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: .9rem; }
.event-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.event-tags span { padding: .1rem .45rem; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-soft); font-size: .72rem; font-weight: 500; }
.event-source { margin-top: 0; }

.playbook-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.playbook-steps li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .9rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand-ink); }
.step-icon .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.playbook-steps h3, .timeline h3 { margin: 0 0 .35rem; font-size: 1.02rem; font-weight: 650; line-height: 1.3; }
.playbook-steps p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.step-index { display: none; }
.idea-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.idea-list li { position: relative; padding: .6rem 0 .6rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .93rem; }
.idea-list li::before { content: ""; position: absolute; top: 1.05rem; left: 0; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timeline-item { padding: 1.15rem; background: var(--surface); }
.timeline-item + .timeline-item { border-left: 1px solid var(--line); }
.timeline-period { display: block; margin-bottom: .7rem; color: var(--brand-ink); font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.timeline-item ul { display: grid; gap: .35rem; margin: .9rem 0 0; padding: .8rem 0 0 1rem; border-top: 1px solid var(--line); color: var(--ink); font-size: .86rem; }
.health-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.health-row { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.check-number { color: var(--brand-ink); font-family: var(--mono); font-size: .82rem; font-weight: 600; }
.health-row strong { font-size: .98rem; font-weight: 650; line-height: 1.35; }
.health-row p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.closing { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.closing h2 { margin-bottom: .6rem; }
.closing p { color: var(--ink-soft); font-size: 1.05rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-main { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: start; gap: 2rem; width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; padding: 2.5rem 0; }
.footer-brand { align-items: start; }
.footer-brand > span:last-child { display: grid; gap: .15rem; }
.footer-brand strong { font-size: .95rem; font-weight: 650; }
.footer-brand small { color: var(--muted); font-size: .82rem; }
.footer-main > p { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.6; }
.footer-links { display: grid; gap: .5rem; justify-items: start; }
.footer-links a { color: var(--ink-soft); font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; padding: 1rem 0 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); font-weight: 600; text-decoration: none; }

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .subpage-hero { grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr); column-gap: 1.5rem; }
  .rail { display: none; }
  .opportunity-list, .event-grid, .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grades li:nth-child(4) { border-left: 0; }
  .grades li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .funders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .subpage-hero { grid-template-columns: minmax(0, 1fr) minmax(180px, .5fr); }
  .history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-feature { grid-row: span 1; }
  .milestones { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line-strong); }
  .milestones li { padding: 0 0 1.1rem 1.4rem; }
  .milestones li::before { top: .2rem; left: -7px; }
  .org-split, .two-up, .rebate-calculator { grid-template-columns: 1fr; }
  .rebate-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-figure { position: static; }
  .org-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dues-flow, .timeline { grid-template-columns: 1fr 1fr; }
  .dues-flow li:nth-child(3), .timeline-item:nth-child(3) { border-left: 0; }
  .dues-flow li:nth-child(n + 3), .timeline-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .program-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .header-inner, .intro, .announce, .layout, .footer-main, .footer-bottom { width: calc(100% - 2rem); }
  .intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .intro-copy, .intro-art, .intro-stats, .outline { grid-column: 1; grid-row: auto; }
  .intro-art { width: min(100%, 440px); }
  .outline { grid-template-columns: 1fr; }
  .follow-qr, .outline-title, .outline-destinations { grid-column: 1; grid-row: auto; }
  .outline-destinations { grid-template-columns: 1fr; }
  .subpage-hero { grid-template-columns: 1fr; width: calc(100% - 2rem); gap: 1rem; }
  .subpage-hero img { grid-column: 1; grid-row: auto; width: min(100%, 320px); }
  .subpage-nav { grid-column: 1; }
  .header-cta, .brand-copy small, .menu-label { display: none; }
  .menu-toggle { padding: 0; }
  .site-nav { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .chapter-head-art { grid-template-columns: 1fr; }
  .chapter-head-art .chapter-art { grid-column: 1; grid-row: auto; width: min(100%, 380px); margin: .75rem auto 0; }
  .intro-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .intro-stats div:nth-child(n + 3) { margin-top: 1rem; border-top: 1px solid var(--line); }
  .history, .bento, .kerala-network, .org-columns, .program-grid, .program-grid-3, .opportunity-list, .event-grid, .offer-grid, .catalogue-list, .source-links, .playbook-steps, .idea-list, .health-checklist { grid-template-columns: 1fr; }
  .bento-feature, .bento-wide, .bento-photo, .bento-glance .bento-card:nth-child(7), .bento-funding .bento-card:nth-child(1), .bento-funding .bento-card:nth-child(2) { grid-column: auto; }
  .bento-photo { min-height: 240px; }
  .funders { grid-template-columns: 1fr; }
  .logo-wall, .logo-wall-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grades { grid-template-columns: 1fr; }
  .grades li + li, .grades li:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .dues-flow, .timeline { grid-template-columns: 1fr; }
  .dues-flow li + li, .timeline-item + .timeline-item { border-top: 1px solid var(--line); border-left: 0; }
  .ladder li { grid-template-columns: 1fr; }
  .region-tag { padding: 0 .2rem; font-size: .56rem; }
  .region-legend { grid-template-columns: 1fr; }
  .ladder-level { grid-row: auto; margin-bottom: .2rem; }
  .catalogue-head { align-items: stretch; flex-direction: column; }
  .select-box select { width: 100%; }
  .funding-tools { grid-template-columns: 1fr; }
  .funding-tools .filter-list { grid-row: auto; }
  .fund-table td:first-child, .fund-table td:last-child { white-space: normal; }
  .resource-links { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .site-header, .scroll-progress, .announce, .rail, .intro-actions, .funding-tools, .events-tools, .list-more, .footer-links { display: none !important; }
  .layout { display: block; }
  .bento-card, .opportunity-card, .event-card, .offer-card, .panel, .program-card { break-inside: avoid; }
}
