@charset "UTF-8";
/* ==========================================================================
   ज्ञान विज्ञान समिति, बिहार  ·  Gyan Vigyan Samiti, Bihar
   Bharat Gyan Vigyan Samiti — Bihar State Unit
   Bilingual (हिन्दी / English) static website
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Site accents. The official emblem itself is green (#0e6b3a) and
     yellow (#f3d21e) — see assets/img/logo.png; the accent palette below
     is the editorial scheme the pages are set in. */
  --teal-900: #06403a;
  --teal-800: #075e54;
  --teal-700: #0d7c6c;
  --teal-600: #109383;
  --teal-500: #17ab98;
  --teal-100: #d7efea;
  --teal-050: #eef8f6;

  --navy-900: #0b1730;
  --navy-800: #12233f;
  --navy-700: #1b3057;
  --navy-600: #274270;

  --red-700: #a52216;
  --red-600: #c1301f;
  --red-100: #fbe6e2;

  --gold-600: #b8811f;
  --gold-500: #d9a441;
  --gold-100: #faf0d8;

  --lime-200: #e2ebA0;

  /* Neutrals */
  --paper: #fbf8f2;
  --paper-2: #f4efe4;
  --white: #ffffff;
  --ink: #16202f;
  --ink-2: #33415a;
  --muted: #5d6b83;
  --muted-2: #8593a9;
  --line: #e2ded2;
  --line-2: #d3cdbd;

  /* Type */
  --font-display: "Source Serif 4", "Noto Serif Devanagari", "Nirmala UI", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans Devanagari", "Nirmala UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Space & shape */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 23, 48, .06), 0 2px 6px rgba(11, 23, 48, .05);
  --shadow-md: 0 4px 12px rgba(11, 23, 48, .08), 0 12px 28px rgba(11, 23, 48, .07);
  --shadow-lg: 0 10px 24px rgba(11, 23, 48, .10), 0 28px 64px rgba(11, 23, 48, .14);

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.011em;
  color: var(--navy-900);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 1.16rem + 1.7vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 1.04rem + .62vw, 1.5rem); }
h4 { font-size: 1.075rem; letter-spacing: 0; }
p  { margin: 0 0 1.05em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }
li { margin-bottom: .38em; }
li::marker { color: var(--teal-600); }

strong, b { font-weight: 650; color: var(--navy-800); }
small { font-size: .84em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--teal-100); color: var(--teal-900); }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Devanagari needs a little more air than Latin */
.hi, [lang="hi"] { line-height: 1.85; letter-spacing: 0; }
h1.hi, h2.hi, h3.hi, h4.hi,
[lang="hi"] h1, [lang="hi"] h2, [lang="hi"] h3 { line-height: 1.42; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   3. Bilingual switching
   -------------------------------------------------------------------------- */
html[data-lang="en"] .hi,
html[data-lang="hi"] .en { display: none !important; }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.5rem) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--ink {
  background: var(--navy-900);
  color: #cfd8e6;
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a { color: var(--teal-500); }
.section--ink .lede { color: #b3c0d3; }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
/* Two columns means two — auto-fit would otherwise leave an orphan on the last row */
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .split--wide-left { grid-template-columns: 1.35fr .65fr; }
  .split--wide-right { grid-template-columns: .65fr 1.35fr; }
  .split--top { align-items: start; }
}

/* Grid items default to min-width:auto, so a wide table or a long unbroken
   string pushes the track past the viewport. Let them shrink instead. */
.grid > *, .split > * { min-width: 0; }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* --------------------------------------------------------------------------
   5. Section headers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .745rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 .85rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal-600);
  flex: none;
}
.eyebrow.hi { letter-spacing: .05em; text-transform: none; font-size: .82rem; }
.section--ink .eyebrow { color: var(--teal-500); }
.section--ink .eyebrow::before { background: var(--teal-500); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.9rem, 3.4vw, 2.9rem); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow::before { display: none; }
.section-head .eyebrow { gap: 0; }

.lede {
  font-size: clamp(1.045rem, .99rem + .26vw, 1.185rem);
  color: var(--muted);
  line-height: 1.72;
}
.lede.hi { line-height: 1.9; }

/* --------------------------------------------------------------------------
   6. Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: .935rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal-700); color: #fff; box-shadow: 0 3px 10px rgba(13, 124, 108, .3); }
.btn--primary:hover { background: var(--teal-800); color: #fff; box-shadow: 0 6px 18px rgba(13, 124, 108, .36); }

.btn--gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 3px 10px rgba(184, 129, 31, .3); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }

.btn--ghost { border-color: rgba(255,255,255,.34); color: #fff; background: rgba(255,255,255,.05); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }

.btn--outline { border-color: var(--line-2); color: var(--navy-800); background: var(--white); }
.btn--outline:hover { border-color: var(--teal-600); color: var(--teal-800); }

.btn--sm { padding: .55rem 1rem; font-size: .855rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .34rem .75rem;
  border-radius: 999px;
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
  color: var(--teal-800);
  font-size: .81rem;
  font-weight: 600;
  line-height: 1.4;
}
.chip--gold { background: var(--gold-100); border-color: #efdcb0; color: #8a6115; }
.chip--red  { background: var(--red-100); border-color: #f3cec7; color: var(--red-700); }
.chip--plain { background: var(--paper-2); border-color: var(--line); color: var(--ink-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 242, .93);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__hi {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0;
}
.brand__en {
  font-size: .655rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  position: relative;
  padding: .38rem .4rem;
  border-radius: var(--r-sm);
  font-size: .78rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--teal-800); background: var(--teal-050); }
.nav a[aria-current="page"] { color: var(--teal-800); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .4rem; right: .4rem; bottom: .12rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-600);
}
html[data-lang="hi"] .nav a { font-size: .83rem; }

.header-tools { display: flex; align-items: center; gap: .6rem; flex: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: .32rem .72rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch button:hover { color: var(--teal-800); }
.lang-switch button[aria-pressed="true"] { background: var(--teal-700); color: #fff; }

.nav-toggle {
  display: none;
  appearance: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 19px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1220px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem 1.25rem 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .72rem .5rem; font-size: .98rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--teal-050); }
}

/* Small phones: let the brand shrink so the header tools keep their gutter */
@media (max-width: 540px) {
  :root { --header-h: 66px; }
  .site-header__bar { gap: .55rem; }
  .brand { gap: .55rem; min-width: 0; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__text { min-width: 0; }
  .brand__hi { font-size: .92rem; }
  .brand__en { font-size: .56rem; letter-spacing: .07em; }
  .header-tools { gap: .4rem; }
  .lang-switch button { padding: .3rem .56rem; font-size: .76rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   8. Hero slider
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #dbe3ee;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 12% 8%, rgba(23, 171, 152, .22), transparent 62%),
    radial-gradient(760px 500px at 92% 88%, rgba(217, 164, 65, .14), transparent 60%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 1px, transparent 1px 11px);
  z-index: -1;
}

.hero__viewport { position: relative; }

.hero-slide {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(3.5rem, 6vw, 5rem);
}
@media (min-width: 940px) {
  .hero-slide { grid-template-columns: 1.02fr .98fr; }
}

/* stack slides, cross-fade */
.hero__track { display: grid; }
.hero__track > .hero-slide { grid-area: 1 / 1; }
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s ease, transform .6s ease, visibility 0s;
  pointer-events: auto;
}

.hero-slide__kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .34rem .85rem .34rem .55rem;
  border-radius: 999px;
  background: rgba(23, 171, 152, .16);
  border: 1px solid rgba(23, 171, 152, .34);
  color: #7fe4d2;
  font-size: .755rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero-slide__kicker.hi { letter-spacing: .03em; text-transform: none; font-size: .84rem; }
.hero-slide__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); flex: none; margin-left: .3rem; }

.hero-slide__title {
  color: #fff;
  font-size: clamp(1.85rem, 1.2rem + 2.5vw, 3.05rem);
  margin-bottom: .6rem;
}
.hero-slide__text {
  color: #b6c3d6;
  font-size: clamp(1rem, .96rem + .22vw, 1.11rem);
  max-width: 52ch;
  margin-bottom: 1.35rem;
}
.hero-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  font-size: .82rem;
  color: #8ea0ba;
  margin-bottom: 1.5rem;
}
.hero-slide__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-slide__meta span + span::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: #55688a;
  margin-right: .5rem;
}

/* Media card — one frame that suits photos, clippings and the infographic */
.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #f7f4ec, #e9e3d5);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}
.hero-media__frame {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: 10px;
  overflow: hidden;
  background: #ddd8ca;
}
.hero-media__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media--doc .hero-media__frame { background: #fff; }
.hero-media--tall .hero-media__frame { aspect-ratio: 1000 / 1256; }
.hero-media--doc .hero-media__frame img { object-fit: contain; }
.hero-media__caption {
  display: block;
  padding: .7rem .3rem .15rem;
  font-size: .765rem;
  line-height: 1.5;
  color: #6a604c;
}
.hero-media__caption b { color: #3f382a; font-weight: 700; }

/* Controls */
.hero__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}
.hero__dots { display: flex; gap: .55rem; flex: 1; flex-wrap: wrap; }
.hero__dot {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  height: 4px;
  width: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  transition: background-color .2s ease;
  position: relative;
  overflow: hidden;
}
.hero__dot:hover { background: rgba(255,255,255,.4); }
.hero__dot[aria-selected="true"] { background: rgba(255,255,255,.28); }
.hero__dot[aria-selected="true"]::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--teal-500);
  transform-origin: left;
  animation: heroProgress var(--hero-duration, 7s) linear forwards;
}
.hero.is-paused .hero__dot[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__arrows { display: flex; gap: .5rem; }
.hero__arrow {
  appearance: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.hero__arrow:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.hero__arrow svg { width: 17px; height: 17px; }

.hero__count { font-family: var(--font-mono); font-size: .78rem; color: #8ea0ba; letter-spacing: .04em; }

/* Emphasis inside dark panels must not inherit the dark ink colour */
.hero-slide__title b, .hero-slide__title strong,
.hero-slide__text b,  .hero-slide__text strong,
.section--ink p b,    .section--ink p strong,
.section--ink li b,   .section--ink li strong,
.pledge b, .pledge strong,
.cta b, .cta strong,
.pagehead p b, .pagehead p strong,
.pagehead li b { color: #ffffff; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .hero__dot[aria-selected="true"]::after { animation: none; transform: scaleX(1); }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   9. Stat band
   -------------------------------------------------------------------------- */
.statband { background: var(--white); border-bottom: 1px solid var(--line); }
.statband__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat {
  padding: clamp(1.35rem, 2.4vw, 2rem) clamp(.9rem, 1.8vw, 1.5rem);
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
  font-weight: 600;
  color: var(--teal-800);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.stat__num sup { font-size: .48em; top: -.7em; color: var(--gold-600); }
.stat__label { font-size: .805rem; color: var(--muted); margin-top: .4rem; line-height: 1.45; }
.stat__label.hi { font-size: .875rem; }
@media (max-width: 640px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.3rem, 2.2vw, 1.75rem);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .955rem; }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  margin-bottom: .95rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card__num {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-600);
  display: block;
  margin-bottom: .55rem;
}

.card--feature { border-left: 3px solid var(--teal-600); }
.card--quiet { background: var(--paper); }

/* Programme cards with a coloured spine */
.progcard { position: relative; overflow: hidden; }
.progcard::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal-600);
}
.progcard[data-accent="gold"]::before { background: var(--gold-500); }
.progcard[data-accent="red"]::before  { background: var(--red-600); }
.progcard[data-accent="navy"]::before { background: var(--navy-600); }
.progcard__hi { font-family: var(--font-display); font-size: 1.28rem; color: var(--navy-900); line-height: 1.35; margin: 0 0 .1rem; }
.progcard__en { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .8rem; }

/* --------------------------------------------------------------------------
   11. Figures & media
   -------------------------------------------------------------------------- */
.figure { margin: 0; }
.figure img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
}
.figure--frame img { padding: 10px; }
.figure figcaption {
  margin-top: .65rem;
  font-size: .81rem;
  line-height: 1.55;
  color: var(--muted);
}
.figure figcaption b { color: var(--ink-2); font-weight: 650; }
.figure--shadow img { box-shadow: var(--shadow-md); border-color: transparent; }

.ratio-4-3 { aspect-ratio: 4/3; object-fit: cover; }
.ratio-3-2 { aspect-ratio: 3/2; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16/9; object-fit: cover; }

/* Photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.05rem;
}
.gal {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: var(--paper-2);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  width: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.gal:hover { box-shadow: var(--shadow-md); }
.gal:hover img { transform: scale(1.05); }
.gal__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem .85rem .75rem;
  background: linear-gradient(to top, rgba(11,23,48,.88), rgba(11,23,48,0));
  color: #fff;
  font-size: .8rem;
  line-height: 1.4;
  text-align: left;
}
.gal__cap b { display: block; font-weight: 650; }
.gal__cap span { color: #b9c6da; font-size: .74rem; }
.gal--doc { aspect-ratio: 3/4; background: #fff; }
.gal--doc img { object-fit: contain; padding: 8px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 15, 30, .93);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: min(100%, 1200px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  background: #10192c;
}
.lightbox__cap {
  margin-top: 1rem;
  color: #cbd5e6;
  font-size: .875rem;
  text-align: center;
  max-width: 70ch;
  line-height: 1.6;
}
.lightbox__cap b { color: #fff; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  appearance: none;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color .16s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 1.1rem; right: 1.1rem; font-size: 1.3rem; line-height: 1; }
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__nav--prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}

/* --------------------------------------------------------------------------
   12. News clipping presentation
   -------------------------------------------------------------------------- */
.clip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.clip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.clip__img {
  background: var(--paper-2);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.clip__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.clip__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.clip__paper {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--red-700);
}
.clip__head { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.35; color: var(--navy-900); margin: 0; }
.clip__dek { font-size: .9rem; color: var(--muted); margin: 0; }
.clip__meta {
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .77rem;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .8rem;
}

/* Featured clipping (media page hero) */
.clip-feature { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 900px) { .clip-feature { grid-template-columns: .9fr 1.1fr; } }
.clip-feature--flip .clip-feature__media { order: 2; }
.clip-feature__media {
  background: linear-gradient(160deg, var(--paper-2), #e7e0d1);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-md);
}
.clip-feature__media img { border-radius: 8px; background: #fff; width: 100%; cursor: zoom-in; }

/* --------------------------------------------------------------------------
   12b. Video — click-to-load facade
   Nothing is requested from YouTube until the viewer presses play, so the
   page sets no third-party cookies on load.
   -------------------------------------------------------------------------- */
.vid {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.vid:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.vid__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1526;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
/* A vertical Short would otherwise stand twice as tall as its neighbours and
   throw the row out; cap it and let the poster crop. */
.vid--portrait .vid__frame { aspect-ratio: 9 / 12; max-height: 380px; }
.vid__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
}
.vid__frame:hover img { transform: scale(1.04); opacity: .82; }
.vid__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.vid__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 46px;
  border-radius: 12px;
  background: rgba(193, 48, 31, .92);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s ease, background-color .2s ease;
  pointer-events: none;
}
.vid__frame:hover .vid__play { transform: translate(-50%, -50%) scale(1.08); background: #c1301f; }
.vid__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 2px; }

.vid__dur {
  position: absolute;
  right: .6rem; bottom: .6rem;
  background: rgba(11,23,48,.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .18rem .45rem;
  border-radius: 4px;
  pointer-events: none;
}
.vid__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.vid__src {
  font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--red-700);
}
.vid__src.hi { letter-spacing: .04em; text-transform: none; font-size: .8rem; }
.vid__title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.36; color: var(--navy-900); margin: 0; }
.vid__note { font-size: .9rem; color: var(--muted); margin: 0; }
.vid__meta {
  margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line);
  font-size: .77rem; color: var(--muted-2);
  display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center;
}
.vid__meta a { color: var(--muted-2); }
.vid__meta a:hover { color: var(--teal-700); }

/* --------------------------------------------------------------------------
   13. Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal-500), var(--teal-100) 82%, transparent);
}
.timeline li { position: relative; padding: 0 0 1.65rem 2.15rem; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal-600);
}
.timeline li[data-key]::before { border-color: var(--gold-500); background: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-100); }
.timeline__year {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--teal-700);
  display: block;
  margin-bottom: .2rem;
}
.timeline li[data-key] .timeline__year { color: var(--gold-600); }
.timeline__title { font-family: var(--font-display); font-size: 1.09rem; font-weight: 600; color: var(--navy-900); display: block; margin-bottom: .22rem; line-height: 1.4; }
.timeline__text { font-size: .925rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   14. Structure diagram (four tiers)
   -------------------------------------------------------------------------- */
.tiers { display: grid; gap: .7rem; counter-reset: tier; }
.tier {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
}
.tier__no {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 600;
}
.tier__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); line-height: 1.35; }
.tier__sub { font-size: .82rem; color: var(--muted); display: block; margin-top: .1rem; }
.tier__level {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-700);
  text-align: right;
  white-space: nowrap;
}
.tier:nth-child(1) { background: var(--teal-050); border-color: var(--teal-100); }
.tier:nth-child(1) .tier__no { background: var(--teal-700); }
@media (max-width: 620px) {
  .tier { grid-template-columns: 40px 1fr; }
  .tier__level { grid-column: 2; text-align: left; }
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .55rem;
}
.chain__step {
  flex: 1 1 150px;
  padding: .9rem 1rem;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.45;
  position: relative;
}
.chain__step b { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--navy-900); margin-bottom: .12rem; font-weight: 600; }
.chain__step span { color: var(--muted); font-size: .79rem; }

/* --------------------------------------------------------------------------
   15. Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
thead th {
  text-align: left;
  padding: .85rem 1.1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
  font-size: .755rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
tbody td, tbody th {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
tbody th { font-weight: 650; color: var(--navy-800); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: var(--teal-050); }
td .chip { white-space: nowrap; }

/* --------------------------------------------------------------------------
   16. Quote / pledge
   -------------------------------------------------------------------------- */
.pledge {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900), #16294a);
  color: #dfe7f2;
  border-radius: var(--r-lg);
  padding: clamp(1.9rem, 4vw, 3.1rem);
  overflow: hidden;
}
.pledge::before {
  content: "\201C";
  position: absolute;
  top: -.28em; right: .1em;
  font-family: var(--font-display);
  font-size: 13rem;
  line-height: 1;
  color: rgba(23, 171, 152, .16);
  pointer-events: none;
}
.pledge__text {
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 1.02rem + .6vw, 1.55rem);
  line-height: 1.72;
  color: #fff;
  margin: 0 0 1.15rem;
  position: relative;
  max-width: 66ch;
}
.pledge__text.hi { line-height: 1.95; }
.pledge__attrib { font-size: .85rem; color: #92a4bd; margin: 0; position: relative; }
.pledge__attrib b { color: var(--teal-500); font-weight: 650; }

blockquote.pull {
  margin: 0;
  padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.62;
  color: var(--navy-800);
}
blockquote.pull cite { display: block; margin-top: .6rem; font-family: var(--font-body); font-size: .81rem; font-style: normal; color: var(--muted); }

/* --------------------------------------------------------------------------
   17. Compliance / document strips
   -------------------------------------------------------------------------- */
.badge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .85rem; }
.badge {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.badge__mark {
  width: 40px; height: 40px;
  margin: 0 auto .7rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
}
.badge__mark svg { width: 20px; height: 20px; }
.badge__title { font-family: var(--font-display); font-size: 1.08rem; color: var(--navy-900); font-weight: 600; }
.badge__sub { font-size: .78rem; color: var(--muted); margin-top: .22rem; line-height: 1.45; }

.deffield { display: grid; gap: .1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.deffield:last-child { border-bottom: 0; }
.deffield dt { font-size: .755rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.deffield dd { margin: 0; font-size: 1rem; color: var(--navy-800); }
.deffield dd.hi { font-size: 1.03rem; }
dl.deflist { margin: 0; }

/* Note / callout */
.note {
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  background: var(--gold-100);
  border: 1px solid #eddcb4;
  font-size: .93rem;
  line-height: 1.66;
  color: #6d4f14;
}
.note b { color: #4d3708; }
.note--teal { background: var(--teal-050); border-color: var(--teal-100); color: var(--teal-900); }
.note--teal b { color: var(--teal-900); }
.note__title {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .35rem;
  opacity: .8;
}

/* --------------------------------------------------------------------------
   18. Page header (interior pages)
   -------------------------------------------------------------------------- */
.pagehead {
  background: var(--navy-900);
  color: #c8d3e3;
  padding: clamp(2.6rem, 5vw, 4.25rem) 0 clamp(2.4rem, 4.5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 88% 4%, rgba(23,171,152,.2), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.026) 0 1px, transparent 1px 11px);
}
.pagehead > * { position: relative; }
.pagehead h1 { color: #fff; margin-bottom: .5rem; }
.pagehead .lede { color: #a9b8cd; max-width: 60ch; }
.pagehead .eyebrow { color: var(--teal-500); }
.pagehead .eyebrow::before { background: var(--teal-500); }

.crumbs { font-size: .8rem; color: #7b8ca6; margin-bottom: 1rem; }
.crumbs a { color: #9fb0c8; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 .45rem; opacity: .55; }

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600) 68%, #1cb9a3);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4.5vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -60px; top: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 42px solid rgba(255,255,255,.08);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 56ch; }
.cta .btn--gold { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.cta > * { position: relative; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #9fb0c8;
  padding: clamp(2.75rem, 5vw, 4rem) 0 1.75rem;
  font-size: .915rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .755rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer h4.hi { letter-spacing: .04em; font-size: .85rem; text-transform: none; }
.site-footer a { color: #b9c6da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
/* The official mark is green on white; on the navy footer it sits on its
   own white plate so the figures keep their contrast. */
.footer-brand__mark {
  width: 60px;
  height: 60px;
  padding: 5px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 13px;
  margin-bottom: .9rem;
}
.footer-brand p { font-size: .875rem; line-height: 1.6; color: #8fa1ba; }
.footer-address { font-style: normal; line-height: 1.7; font-size: .875rem; }
.footer-address b { color: #dfe7f2; display: block; margin-bottom: .2rem; font-weight: 650; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .8rem;
  color: #74869f;
}
.footer-bottom a { color: #8fa1ba; }

/* --------------------------------------------------------------------------
   21. Misc utilities
   -------------------------------------------------------------------------- */
/* Hidden only when scripting is confirmed, so a JS failure can never leave
   the page blank. */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; }

.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { border-bottom: 1px solid var(--line); margin: 0; }
.linklist li:last-child { border-bottom: 0; }
.linklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem .2rem;
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 550;
  transition: color .15s ease, padding-left .15s ease;
}
.linklist a:hover { color: var(--teal-700); padding-left: .5rem; }
.linklist a::after { content: "→"; color: var(--teal-600); font-size: 1.05rem; }

.print-only { display: none; }
@media print {
  .site-header, .site-footer, .hero__controls, .nav, .lightbox { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .print-only { display: block; }
}

/* --------------------------------------------------------------------------
   Audio — the page song bar (gallery, history) and the tracklist (media)
   -------------------------------------------------------------------------- */
.audio-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 55;                       /* under the header (60) and lightbox (100) */
  display: flex;
  align-items: center;
  gap: .55rem;
  width: min(560px, calc(100% - 20px));
  padding: .45rem .55rem .45rem .45rem;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
  overflow: hidden;
}
.audio-bar__play {
  width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.audio-bar__play:hover { background: #e8b455; transform: scale(1.05); }
.audio-bar__play svg { width: 18px; height: 18px; fill: currentColor; }
.audio-bar__play .ico-pause { display: none; }
.audio-bar.is-playing .ico-play { display: none; }
.audio-bar.is-playing .ico-pause { display: block; }
.audio-bar__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.22; }
.audio-bar__title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-bar__sub { font-size: .72rem; color: #b9c6da; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-bar__sub .hint { color: var(--gold-500); }
.audio-bar.is-playing .hint, .audio-bar.is-ready .audio-bar__sub .artist { display: none; }
.audio-bar:not(.is-ready) .hint { display: none; }
.audio-bar__time { flex: none; font-family: var(--font-mono); font-size: .68rem; color: #9fb0c8; letter-spacing: .02em; }
.audio-bar__icon {
  width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: #c9d4e4;
  display: grid; place-items: center; cursor: pointer;
}
.audio-bar__icon:hover { background: rgba(255,255,255,.12); color: #fff; }
.audio-bar__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.audio-bar__icon .ico-muted { display: none; }
.audio-bar.is-muted .ico-sound { display: none; }
.audio-bar.is-muted .ico-muted { display: block; }
.audio-bar__track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); cursor: pointer; }
.audio-bar__fill { height: 100%; width: 0; background: var(--gold-500); transition: width .25s linear; }
body.has-audio-bar { padding-bottom: 78px; }
@media (max-width: 560px) {
  .audio-bar__time { display: none; }
  .audio-bar { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .audio-bar__fill { transition: none; } }

.tracklist { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.track {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .9rem 1.1rem .9rem .9rem;
  border-top: 1px solid var(--line);
  transition: background .15s ease;
}
.track:first-child { border-top: 0; }
.track:hover { background: var(--paper); }
.track.is-playing { background: var(--teal-050); }
.track__play {
  width: 46px; height: 46px;
  border: 1.5px solid var(--line-2); border-radius: 50%;
  background: var(--white); color: var(--teal-700);
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.track__play:hover, .track.is-playing .track__play { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.track__play svg { width: 18px; height: 18px; fill: currentColor; }
.track__play .ico-pause { display: none; }
.track.is-playing .track__play .ico-play { display: none; }
.track.is-playing .track__play .ico-pause { display: block; }
.track__body { min-width: 0; }
.track__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--navy-900); line-height: 1.25; }
.track__sub { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.track__num { font-family: var(--font-mono); font-size: .7rem; color: var(--muted-2); letter-spacing: .08em; margin-right: .5rem; }
.track__dur { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.track__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.track.is-playing .track__bar { background: rgba(13, 124, 108, .15); }
.track__fill { height: 100%; width: 0; background: var(--teal-600); transition: width .25s linear; }
@media (max-width: 480px) {
  .track { grid-template-columns: 42px minmax(0, 1fr); gap: .8rem; padding: .8rem .9rem .8rem .7rem; }
  .track__dur { grid-column: 2; font-size: .72rem; }
  .track__play { width: 42px; height: 42px; }
}
