/* Dhimahi Talks: site stylesheet
   Sections: 1 fonts · 2 tokens · 3 base · 4 layout · 5 header/nav · 6 buttons · 7 cards & media
             8 page blocks · 9 footer · 10 utilities · 11 motion & print
   Colour tokens are contrast-checked (see research/FINAL-WEBSITE-SPEC.md §11.2). */

/* 1. Fonts (self-hosted, SIL OFL; licences in /assets/fonts/) -------------------------------- */
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/mukta-400-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/mukta-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/mukta-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/tiro-devanagari-hindi-400-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/tiro-devanagari-hindi-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2. Tokens ------------------------------------------------------------------------------------ */
:root {
  --paper: #F7F1E6;  --paper-2: #EFE5D3;  --text: #2A2119;  --muted: #665848;
  --saffron-dark: #9E4F12;  --teal: #1D5960;  --gold: #B08A3E;
  /* Dark surfaces follow the official channel banner (night-sky navy); cream-gold = banner title */
  --ink: #06171F;  --ink-2: #0D2430;  --text-on-dark: #F2E8D8;  --muted-on-dark: #B9C2BF;
  --saffron: #E39A4A;  --teal-light: #7FB8BE;  --gold-light: #D9C08A;
  --line: rgba(42, 33, 25, .16);  --line-on-dark: rgba(185, 194, 191, .18);

  --font-display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 16px; --max: 1200px; --radius: 4px;
  --section-pad: var(--s8);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 32px; --section-pad: var(--s9); } }

/* 3. Base ---------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  font-synthesis-weight: none; overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
:lang(hi) { line-height: 1.8; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 var(--s4); text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.3; }
h1:lang(hi), h2:lang(hi), h3:lang(hi), [lang="hi"] h1, [lang="hi"] h2 { line-height: 1.45; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
a { color: var(--saffron-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.section--dark a:not(.btn) { color: var(--teal-light); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.section--dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--teal-light); }
ul, ol { padding-left: 1.25em; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--paper); color: var(--text);
  padding: var(--s2) var(--s4); border-radius: var(--radius); }
.skip-link:focus { top: var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 4. Layout ---------------------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
.section--tight { padding: var(--s7) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark .muted { color: var(--muted-on-dark); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.section-head > :first-child { margin-bottom: 0; }
.rule { border: 0; height: 1px; width: 64px; background: var(--gold); margin: 0 0 var(--s5); }
.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--v { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 900px) { .grid--v { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.grid--3 { grid-template-columns: 1fr; gap: var(--s6); }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.prose { max-width: 70ch; }
.wrap.prose { max-width: calc(var(--max) + 2 * var(--gutter)); }
.wrap.prose > * { max-width: 70ch; }
.wrap.prose > .timeline { max-width: none; }
.prose h2 { margin-top: var(--s7); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s6); }
.muted { color: var(--muted); }

/* Bilingual heading pattern: Hindi line + English line */
/* Section heading pattern: Hindi kicker (small, saffron) above an English display title */
.bi { display: flex; flex-direction: column; gap: var(--s2); }
h2.bi, h1.bi { margin-bottom: var(--s5); }
.bi__hi { font-family: var(--font-body); font-size: clamp(.95rem, .25vw + .9rem, 1.05rem); line-height: 1.5; color: var(--saffron-dark); letter-spacing: 0; }
.bi__en { font-family: var(--font-display); font-size: 1em; line-height: 1.2; color: inherit; }
.section--dark .bi__hi, .page-hero .bi__hi, .hero .bi__hi { color: var(--gold-light); }
.cta-band .bi__hi { color: var(--paper); }
.eyebrow { font-size: .875rem; color: var(--muted); margin: 0 0 var(--s2); letter-spacing: .02em; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--muted-on-dark); }

/* 5. Header & navigation --------------------------------------------------------------------------- */
.site-header { background: var(--ink); color: var(--text-on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-on-dark); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--text-on-dark); text-decoration: none; padding: var(--s2) 0; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand__hi { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--gold-light); }
.brand__en { font-size: .95rem; letter-spacing: .02em; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); align-items: center; }
.site-nav a { color: var(--text-on-dark); text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.2; padding: var(--s2) 0; min-height: 44px; justify-content: center; }
.site-nav a span[lang="hi"] { font-size: .8rem; color: var(--muted-on-dark); line-height: 1.3; }
.site-nav a:hover span:last-child, .site-nav a[aria-current] span:last-child { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--saffron); }
.site-nav a.btn { margin-left: var(--s2); white-space: nowrap; flex-direction: row; align-items: center; padding: var(--s2) var(--s4); }
/* JS-enhanced mobile menu (without JS, the nav simply wraps below the brand) */
@media (max-width: 1079px) {
  .site-header__bar { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); background: transparent;
    color: var(--text-on-dark); border: 1px solid var(--line-on-dark); border-radius: var(--radius); font: inherit; cursor: pointer; }
  .js .site-nav { display: none; width: 100%; padding-bottom: var(--s4); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line-on-dark); }
  .site-nav a { flex-direction: row; gap: var(--s3); align-items: baseline; justify-content: flex-start; padding: var(--s3) 0; }
  .site-nav a.btn { margin: var(--s4) 0 0; justify-content: center; }
  .no-js .site-nav { width: 100%; }
}

/* 6. Buttons --------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: var(--s2) var(--s5);
  border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; text-align: center; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--saffron-dark); color: var(--paper); }
.btn--primary:hover { background: #864210; }
.btn--secondary { background: transparent; color: currentColor; border-color: currentColor; }
.btn--secondary:hover { background: rgba(42, 33, 25, .06); }
.section--dark .btn--primary, .hero .btn--primary, .page-hero .btn--primary, .site-header .btn--primary { background: var(--saffron); color: var(--ink); }
.section--dark .btn--primary:hover, .hero .btn--primary:hover, .page-hero .btn--primary:hover, .site-header .btn--primary:hover { background: #F0B068; }
.section--dark .btn--secondary, .hero .btn--secondary, .page-hero .btn--secondary { color: var(--text-on-dark); }
.section--dark .btn--secondary:hover, .hero .btn--secondary:hover, .page-hero .btn--secondary:hover { background: rgba(242, 232, 216, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: var(--s2); align-items: center; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* 7. Cards & media ----------------------------------------------------------------------------------- */
/* Video card (current Dhimahi Talks explainers) */
.vcard { position: relative; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.vcard__media { position: relative; aspect-ratio: 9 / 16; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; }
.vcard--h .vcard__media { aspect-ratio: 16 / 9; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.vcard__media iframe { width: 100%; height: 100%; border: 0; }
.facade { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.facade:focus-visible { outline: 3px solid var(--teal-light); outline-offset: -3px; }
.facade__icon { position: absolute; left: var(--s3); bottom: var(--s3); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(6, 23, 31, .82); color: var(--saffron); display: grid; place-items: center; transition: transform .15s ease, background .15s ease; }
.facade__icon svg { width: 22px; height: 22px; margin-left: 3px; }
.facade:hover .facade__icon, .facade:focus-visible .facade__icon { background: var(--ink); transform: translateY(-2px); }
.vcard__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.45; margin: var(--s1) 0 0; }
.vcard__title:lang(hi) { line-height: 1.65; }
.vcard__meta { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 var(--s2); }
.section--dark .vcard__meta, .hero .vcard__meta { color: var(--muted-on-dark); }
.vcard__meta span:not(:last-child)::after { content: "·"; margin-left: var(--s2); }
.vcard__yt { font-size: .875rem; display: inline-flex; align-items: center; gap: var(--s1); min-height: 32px; }
.vcard__yt svg { width: 14px; height: 14px; }

/* Rail (horizontal scroller) */
.rail { position: relative; }
.rail__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: var(--s4); overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: var(--s4); scrollbar-width: thin; scrollbar-color: var(--muted-on-dark) transparent; overscroll-behavior-x: contain; }
@media (min-width: 600px) { .rail__track { grid-auto-columns: minmax(170px, 30%); } }
@media (min-width: 900px) { .rail__track { grid-auto-columns: calc((100% - 4 * var(--s4)) / 5); } }
.rail__track > * { scroll-snap-align: start; }
.rail__controls { display: none; gap: var(--s2); }
.js .rail__controls { display: flex; }
.rail__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.rail__btn svg { width: 18px; height: 18px; }
.rail__btn[disabled] { opacity: .35; cursor: default; }

/* Theme card */
.tcard { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--radius); text-decoration: none; color: var(--text); min-height: 100%; transition: transform .15s ease, border-color .15s ease; }
.section--alt .tcard { background: var(--paper); }
.tcard:hover { transform: translateY(-2px); border-color: var(--saffron-dark); }
.tcard__hi { font-size: .95rem; line-height: 1.5; color: var(--saffron-dark); }
.tcard__en { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; color: var(--text); }
.tcard__intro { font-size: .95rem; color: var(--muted); margin: 0; }
.tcard__count { font-size: .875rem; color: var(--muted); margin-top: auto; padding-top: var(--s3); }

/* Archive card: quieter, link-out only */
.acard { position: relative; display: flex; flex-direction: column; gap: var(--s1); min-width: 0; font-size: .9rem; }
.acard__media { aspect-ratio: 16 / 9; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.acard__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) sepia(.15); opacity: .92; }
.acard--v .acard__media img { object-fit: contain; background: var(--ink-2); }
.acard__title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1.45; margin: var(--s2) 0 0; overflow-wrap: anywhere; }
.acard__title a { color: var(--text); text-decoration: none; }
.acard__title a:hover { text-decoration: underline; }
.acard__title svg { display: inline; width: 12px; height: 12px; margin-left: 4px; vertical-align: baseline; color: var(--muted); }
.acard__attr { font-style: italic; color: var(--muted); margin: 0; }
.acard__meta { color: var(--muted); margin: 0; }
.chip { display: inline-block; font-size: .8rem; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: 2px; color: var(--muted); line-height: 1.6; }

/* Empty state / note card */
.empty { background: var(--paper-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: var(--s6); max-width: 760px; }
.section--alt .empty { background: var(--paper); }
.empty__title { margin-bottom: var(--s3); font-size: 1.5rem; }
.empty p:last-child { margin-bottom: 0; }

/* Series progress */
.ticks { display: flex; flex-wrap: wrap; gap: 4px; margin: var(--s3) 0; }
.ticks span { width: 10px; height: 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 1px; }
.ticks span.is-done { background: var(--saffron-dark); border-color: var(--saffron-dark); }
.section--dark .ticks span { background: var(--ink-2); border-color: var(--line-on-dark); }
.section--dark .ticks span.is-done { background: var(--saffron); border-color: var(--saffron); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.filters label { flex: 1 1 220px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: var(--s1); font-size: .9rem; font-weight: 600; }
.filters select { font: inherit; font-weight: 400; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--muted); border-radius: var(--radius); background: var(--paper); color: var(--text); width: 100%; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chips button { font: inherit; font-size: .95rem; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--muted); border-radius: 2px; background: transparent; color: var(--text); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--paper); }
.chips--links { list-style: none; padding: 0; margin: 0; }
.chips--links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--muted); border-radius: 2px; color: var(--text); text-decoration: none; }
.chips--links a:hover { border-color: var(--saffron-dark); color: var(--saffron-dark); }
.result-count { font-size: .95rem; color: var(--muted); margin-bottom: var(--s4); }

/* 8. Page blocks ------------------------------------------------------------------------------------ */
.hero { background: radial-gradient(ellipse 60% 70% at 85% 100%, rgba(227, 154, 74, .13), transparent 70%), var(--ink); color: var(--text-on-dark); padding: var(--s7) 0 var(--s8); }
.hero__grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .hero { padding: var(--s8) 0 var(--s9); } .hero__grid { grid-template-columns: 1.4fr 1fr; } }
.hero__mark { font-family: var(--font-display); color: var(--gold-light); font-size: clamp(3.2rem, 11vw, 5.5rem); line-height: 1.25; margin: 0; }
.hero__name { font-size: 1.05rem; letter-spacing: .04em; color: var(--text-on-dark); margin: 0 0 var(--s1); }
.tagline { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 var(--s4); line-height: 1.6; }
.hero__tagline { margin-bottom: var(--s6); }
.hero h1 { margin-bottom: var(--s4); }
/* Home hero keeps the Hindi mission line as the headline */
.hero h1.bi .bi__hi { font-family: var(--font-display); font-size: 1em; line-height: 1.32; color: var(--text-on-dark); }
.hero h1.bi .bi__en { font-family: var(--font-body); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.4; color: var(--muted-on-dark); }
.hero__brand { color: var(--text-on-dark); }
.hero__lead { font-size: 1.15rem; color: var(--text-on-dark); max-width: 56ch; }
.hero__video { max-width: 300px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .hero__video { justify-self: end; } }
.hero__video .eyebrow { margin-bottom: var(--s3); }

.page-hero { background: var(--ink); color: var(--text-on-dark); padding: var(--s7) 0; }
.page-hero p { color: var(--text-on-dark); font-size: 1.1rem; }
.page-hero .muted { color: var(--muted-on-dark); }
.breadcrumb { font-size: .9rem; margin-bottom: var(--s3); color: var(--muted-on-dark); }
.breadcrumb a { color: var(--teal-light); }

.pillar h3 { display: flex; align-items: center; gap: var(--s3); }
.pillar svg { width: 28px; height: 28px; color: var(--saffron-dark); flex: none; }
.pillar p { color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); }
@media (min-width: 800px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { border-top: 2px solid var(--gold); padding-top: var(--s4); }
.timeline li:last-child { border-top-color: var(--saffron-dark); }
.timeline__when { font-weight: 600; display: block; margin-bottom: var(--s2); }

.banner-band { background: var(--ink); padding-top: 0; }
.banner { margin: 0; }
.banner img { width: 100%; height: auto; border-radius: var(--radius); }
.notice { border-left: 3px solid var(--gold); background: var(--paper-2); padding: var(--s5); border-radius: 0 var(--radius) var(--radius) 0; max-width: 860px; }
.notice p:last-child { margin-bottom: 0; }

.series-card { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 800px) { .series-card { grid-template-columns: 1.2fr 1fr; } }
.series-card__eps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); max-width: 400px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--s3); max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s3); align-items: baseline; }
.steps li::before { content: counter(step); font-family: var(--font-display); color: var(--saffron-dark); font-size: 1.3rem; }

.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap:focus-visible { outline-offset: 4px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
caption { text-align: left; color: var(--muted); padding-bottom: var(--s3); }

.feature-player { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 800px) { .feature-player { grid-template-columns: minmax(220px, 300px) 1fr; } }

.cta-band { background: var(--saffron-dark); color: var(--paper); }
.cta-band h2 .bi__en, .cta-band p { color: var(--paper); }
.cta-band .btn--primary { background: var(--paper); color: var(--saffron-dark); }
.cta-band .btn--primary:hover { background: #fff; }
.cta-band :focus-visible { outline-color: var(--paper); }

.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: var(--s5); }
.contact-card h2 { font-size: 1.25rem; margin-bottom: var(--s2); }
.contact-card p { margin: 0; }
.contact-card__value { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; display: inline-block; padding: var(--s1) 0; min-height: 44px; }

.lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.45; max-width: 40ch; }
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__step { counter-increment: step; border-top: 2px solid var(--gold); padding-top: var(--s4); }
.process__step::before { content: "0" counter(step); display: block; font-family: var(--font-display); color: var(--saffron-dark); font-size: 1.1rem; margin-bottom: var(--s2); }
.process__step h3 { display: flex; align-items: center; gap: var(--s3); font-size: 1.25rem; }
.process__step h3 svg { width: 26px; height: 26px; color: var(--saffron-dark); flex: none; }
.process__step p { color: var(--muted); margin: 0; }
.section-head .link-arrow + .link-arrow, .empty .link-arrow + .link-arrow { margin-left: var(--s5); }

/* Vacancy page (/join/) */
.status-pill { display: inline-flex; align-items: center; gap: var(--s2); font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--saffron);
  border-radius: 999px; padding: var(--s1) var(--s4); margin: 0 0 var(--s4); }
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.vacancy-hero h1 { margin-bottom: var(--s5); }
.facts { list-style: none; padding: 0; margin: 0 0 var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2); }
.facts li { border: 1px solid var(--line-on-dark); border-radius: 2px; padding: var(--s1) var(--s3); font-size: .95rem; color: var(--text-on-dark); }
.facts strong { color: var(--gold-light); }
.vacancy-overview { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .vacancy-overview { grid-template-columns: 1.4fr 1fr; } }
.facts-card { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: var(--s5); display: grid; gap: var(--s3); }
.facts-card div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: var(--s3); border-bottom: 1px solid var(--line); padding-bottom: var(--s3); }
.facts-card div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts-card dt { font-weight: 600; }
.facts-card dd { margin: 0; }
.highlight { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--saffron-dark); border-radius: var(--radius); padding: var(--s6); max-width: 900px; }
.highlight__lead { font-size: 1.1rem; }
.highlight ul { margin-bottom: 0; }
.vacancy-two { gap: var(--s7); align-items: start; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.6em; margin-bottom: var(--s2); }
.checklist li::before { content: ""; position: absolute; left: .2em; top: .55em; width: .55em; height: .3em; border-left: 2px solid var(--saffron-dark); border-bottom: 2px solid var(--saffron-dark); transform: rotate(-45deg); }
.gain-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1000px) { .gain-grid { grid-template-columns: repeat(3, 1fr); } }
.gain-card { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: var(--s5); }
.gain-card h3 { font-size: 1.2rem; margin-bottom: var(--s2); }
.gain-card p { margin: 0; color: var(--muted); }
.mentor { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .mentor { grid-template-columns: 300px 1fr; } }
.mentor__head { border-top: 2px solid var(--gold); padding-top: var(--s4); }
.mentor__name { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.mentor__role { color: var(--muted); margin: 0 0 var(--s4); }
.subject-line { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); overflow-wrap: anywhere; }
.stage { border-top: 2px solid var(--gold); padding-top: var(--s4); }
.stage:last-child { border-top-color: var(--saffron-dark); }
.stage__label { font-weight: 600; margin-bottom: var(--s2); }
.stage p:last-child { margin-bottom: 0; }

/* Desktop navigation: English labels only (the mobile drawer shows Hindi + English) */
@media (min-width: 1080px) { .site-nav a span[lang="hi"] { display: none; } }

/* Mission & vision */
.mv { display: grid; gap: var(--s5); margin-bottom: var(--s6); }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.mv__item { background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--saffron-dark); border-radius: var(--radius); padding: var(--s6); }
.mv__item--vision { border-top-color: var(--gold); }
.mv__label { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--saffron-dark); margin-bottom: var(--s3); }
.mv__label span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.mv__statement { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; margin: 0; max-width: none; }
.mv__context { color: var(--muted); max-width: 70ch; }
.values { margin-top: var(--s6); }
.theme-nav { padding-bottom: 0; }

/* Join page: justified text for wide paragraphs only. Narrow card columns and phones stay left-aligned,
   because justification there creates large word gaps (browsers on Windows do not hyphenate). */
@media (min-width: 700px) {
  .page-join .vacancy-hero > .wrap > p:not(.eyebrow):not(.status-pill),
  .page-join .prose p:not(.subject-line),
  .page-join .highlight__lead {
    text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto;
  }
}

/* 9. Footer -------------------------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-on-dark); padding: var(--s8) 0 var(--s6); font-size: .95rem; }
.site-footer a { color: var(--text-on-dark); }
.site-footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.site-footer li a { display: inline-block; padding: var(--s1) 0; min-height: 32px; }
.site-footer .muted, .site-footer p { color: var(--muted-on-dark); }
.site-footer .tagline { color: var(--gold-light); margin-top: var(--s3); }
.site-footer__bottom { border-top: 1px solid var(--line-on-dark); margin-top: var(--s7); padding-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--muted-on-dark); }

/* 10. Utilities -------------------------------------------------------------------------------------- */
.icon { display: inline-block; vertical-align: -0.125em; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stack > * + * { margin-top: var(--s4); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.status { display: inline-block; font-size: .85rem; padding: 0 var(--s2); border: 1px solid var(--muted); border-radius: 2px; white-space: nowrap; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* 11. Motion & print --------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .rail__controls, .facade__icon, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-hero, .section--dark { background: #fff; color: #000; }
}
