/* =====================================================================
   India@1947 — The Journey to Freedom
   Palette constraint: ONLY the four colours of the Indian national flag.
     India Saffron  #FF9933
     White          #FFFFFF
     India Green    #138808
     Navy Blue      #000080  (Ashoka Chakra)
   Depth is created with opacity of these four colours — never with grey.
   ===================================================================== */

/* ------------------------------ TOKENS ------------------------------ */
:root {
  --saffron: #FF9933;
  --white:   #FFFFFF;
  --green:   #138808;
  --navy:    #000080;

  /* Navy-derived neutrals (alpha only — no grey hues) */
  --ink:            #000080;
  --ink-80:         rgba(0, 0, 128, 0.80);
  --ink-65:         rgba(0, 0, 128, 0.65);
  /* 0.62 is the lowest alpha of navy on white that still clears WCAG AA (5.5:1)
     for the small labels this token is used on. Do not lower it. */
  --ink-muted:      rgba(0, 0, 128, 0.62);
  --line:           rgba(0, 0, 128, 0.14);
  --line-strong:    rgba(0, 0, 128, 0.30);
  --wash-navy:      rgba(0, 0, 128, 0.05);
  --wash-saffron:   rgba(255, 153, 51, 0.12);
  --wash-saffron-2: rgba(255, 153, 51, 0.22);
  --wash-green:     rgba(19, 136, 8, 0.12);
  --wash-green-2:   rgba(19, 136, 8, 0.22);

  --shadow-sm: 0 1px 2px rgba(0, 0, 128, 0.10);
  --shadow:    0 4px 14px rgba(0, 0, 128, 0.10);
  --shadow-lg: 0 14px 40px rgba(0, 0, 128, 0.18);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;

  --header-h: 68px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.33, 0.8, 0.35, 1);
}

/* ------------------------------ RESET ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute must always win.
   An author-level `display` (e.g. .modal-backdrop{display:flex}) overrides the
   UA stylesheet's [hidden]{display:none}, which silently leaves dialogs and
   overlays painted on top of the page. Every element toggled via `hidden` in
   this app — the modal, the search overlay, the toast, the view panels and the
   accordion bodies — depends on this rule. Do not remove it. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  background-image:
    radial-gradient(circle at 12% -5%, var(--wash-saffron) 0%, transparent 45%),
    radial-gradient(circle at 92% 3%, var(--wash-green) 0%, transparent 42%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); text-decoration-color: var(--wash-saffron-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--saffron); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--wash-navy); padding: 0.12em 0.4em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

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

::selection { background: var(--saffron); color: var(--navy); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--wash-navy); }
::-webkit-scrollbar-thumb { background: var(--ink-muted); border-radius: 8px; border: 3px solid var(--white); }
::-webkit-scrollbar-thumb:hover { background: var(--saffron); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; }

.micro { font-size: 0.8rem; color: var(--ink-65); margin: 0.5rem 0 0; }
.sub-head { font-size: 1.15rem; margin: 0 0 0.75rem; }
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--ink-65);
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); margin: 1rem 0;
}
.result-count { font-size: 0.85rem; color: var(--ink-65); margin: 0 0 1rem; }

/* ------------------------------ BUTTONS ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-saffron { background: var(--saffron); color: var(--navy); border-color: var(--saffron); }
.btn-saffron:hover { background: var(--white); color: var(--navy); }

.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--white); color: var(--green); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--white); color: var(--navy); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--saffron); background: var(--wash-saffron); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-small { padding: 0.45em 1em; font-size: 0.82rem; }
.btn[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }

/* ------------------------------ FIELDS ------------------------------ */
.field {
  appearance: none;
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55em 1.1em;
  min-width: 0;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field:hover { border-color: var(--ink-muted); }
.field:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px var(--wash-saffron); }
select.field {
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000080' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; background-size: 11px;
}
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ------------------------------ CHIPS ------------------------------ */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 2px solid var(--line-strong); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 0.38em 1em; font-size: 0.85rem; font-weight: 600;
  transition: all 0.16s var(--ease);
}
.chip:hover { border-color: var(--saffron); background: var(--wash-saffron); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip .chip-count { opacity: 0.65; font-weight: 500; margin-left: 0.35em; }

/* ------------------------------ HEADER ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(0, 0, 128, 0.10); }

.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1rem;
  min-height: var(--header-h);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.75rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); }
.brand-flag {
  width: 42px; flex: 0 0 42px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 128, 0.28); border: 1px solid var(--line);
}
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.05; letter-spacing: -0.02em; }
.brand-text small { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-65); }

.primary-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.1rem; justify-content: center; }
.primary-nav a {
  display: block; padding: 0.45rem 0.7rem; border-radius: 999px;
  font-size: 0.83rem; font-weight: 600; text-decoration: none; color: var(--ink-80);
  white-space: nowrap; transition: all 0.16s var(--ease); position: relative;
}
.primary-nav a:hover { color: var(--navy); background: var(--wash-saffron); }
.primary-nav a[aria-current="page"] { color: var(--white); background: var(--navy); }

.search-trigger {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--white); border: 2px solid var(--line-strong); color: var(--ink-65);
  border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.85rem;
  transition: all 0.16s var(--ease);
}
.search-trigger:hover { border-color: var(--saffron); color: var(--navy); }
.search-trigger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.search-trigger kbd {
  font-family: var(--font-mono); font-size: 0.7rem; border: 1px solid var(--line-strong);
  border-radius: 4px; padding: 0 0.35em; background: var(--wash-navy);
}

.header-tricolour { display: flex; height: 3px; }
.header-tricolour i { flex: 1; }
.header-tricolour i:nth-child(1) { background: var(--saffron); }
.header-tricolour i:nth-child(2) { background: var(--white); }
.header-tricolour i:nth-child(3) { background: var(--green); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--white);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ SEARCH OVERLAY ------------------------------ */
.search-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0, 0, 128, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6vh 1rem 1rem; overflow-y: auto;
  animation: fadeIn 0.18s var(--ease);
}
.search-panel {
  max-width: 760px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--saffron); border-bottom: 5px solid var(--green);
  overflow: hidden;
}
.search-bar { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-icon { width: 20px; height: 20px; flex: 0 0 20px; stroke: var(--ink-muted); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.search-bar input {
  flex: 1; border: 0; background: transparent; font-size: 1.05rem; padding: 0.25rem 0; min-width: 0;
}
.search-bar input:focus { outline: none; }
.search-close {
  border: 1px solid var(--line-strong); background: var(--wash-navy); color: var(--ink-65);
  border-radius: var(--radius-sm); padding: 0.2rem 0.6rem; font-size: 0.75rem; font-family: var(--font-mono);
}
.search-close:hover { background: var(--saffron); color: var(--navy); }
.search-hint { font-size: 0.8rem; color: var(--ink-65); margin: 0; padding: 0.7rem 1.25rem; background: var(--wash-saffron); }
.search-results { max-height: 58vh; overflow-y: auto; }
.search-group-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
  color: var(--ink-65); padding: 0.85rem 1.25rem 0.35rem; border-top: 1px solid var(--line);
}
.search-result {
  display: flex; gap: 0.85rem; align-items: flex-start; width: 100%; text-align: left;
  padding: 0.7rem 1.25rem; background: transparent; border: 0; border-left: 4px solid transparent;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease);
}
.search-result:hover, .search-result.active { background: var(--wash-saffron); border-left-color: var(--saffron); }
.search-result .sr-kind {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  padding: 0.18em 0.55em; border-radius: 999px; flex: 0 0 auto; margin-top: 0.2rem;
  background: var(--navy); color: var(--white);
}
.search-result .sr-kind.k-fighter { background: var(--saffron); color: var(--navy); }
.search-result .sr-kind.k-event { background: var(--navy); color: var(--white); }
.search-result .sr-kind.k-movement { background: var(--green); color: var(--white); }
.search-result .sr-kind.k-state { background: var(--wash-green-2); color: var(--green); }
.search-result .sr-kind.k-document { background: var(--wash-saffron-2); color: var(--navy); }
.search-result .sr-kind.k-place { background: var(--wash-navy); color: var(--navy); }
.search-result strong { display: block; font-size: 0.95rem; }
.search-result span.sr-sub { font-size: 0.8rem; color: var(--ink-65); display: block; }
.search-result mark { background: var(--wash-saffron-2); color: inherit; padding: 0 2px; border-radius: 2px; }
.search-empty { padding: 2.5rem 1.25rem; text-align: center; color: var(--ink-65); }

/* ------------------------------ VIEW LAYOUT ------------------------------ */
.view { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem 4rem; animation: viewIn 0.3s var(--ease); }
#view-home { max-width: none; padding: 0 0 4rem; }

.view-head { padding: 2.5rem 0 1.5rem; max-width: 62ch; }
.view-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.3em; position: relative; }
.view-head h1::after {
  content: ""; display: block; width: 68px; height: 5px; margin-top: 0.4rem; border-radius: 3px;
  background: linear-gradient(to right, var(--saffron) 0 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6% 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.view-head p { color: var(--ink-65); font-size: 1.02rem; }

.section { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1rem; }
.section-head { max-width: 60ch; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.section-head p { color: var(--ink-65); margin: 0; }
.section-head.light h2, .section-head.light p { color: var(--white); }
.section-head.light p { opacity: 0.82; }

.band-navy { max-width: none; background: var(--navy); color: var(--white); padding: 3.5rem 1rem; }
.band-navy .section-head { margin-left: auto; margin-right: auto; }
.band-navy > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}
.toolbar-right { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-left: auto; }
.toolbar-right .field { min-width: 190px; }

/* ------------------------------ HERO ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  border-bottom: 6px solid var(--saffron);
}
.hero-rays {
  position: absolute; inset: -40% -10% auto -10%; height: 180%;
  background:
    conic-gradient(from 200deg at 50% 0%,
      rgba(255,153,51,0.20) 0deg, transparent 26deg,
      rgba(255,255,255,0.10) 52deg, transparent 78deg,
      rgba(19,136,8,0.24) 104deg, transparent 130deg,
      rgba(255,153,51,0.16) 156deg, transparent 182deg);
  animation: raySweep 34s linear infinite;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(19,136,8,0.35), transparent 62%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 1rem 2.5rem;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 0.35em 0.9em;
  margin: 0 0 1.2rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); animation: pulse 2s var(--ease) infinite; }

.hero-title { font-size: clamp(3rem, 11vw, 6.5rem); line-height: 0.92; margin: 0 0 0.15em; letter-spacing: -0.035em; }
.ht-1 { color: var(--saffron); }
.ht-at { color: var(--white); opacity: 0.55; font-size: 0.7em; }
.ht-2 { color: var(--white); }
.hero-title .ht-2 { text-shadow: 0 0 34px rgba(255,255,255,0.28); }

.hero-subtitle {
  font-family: var(--font-display); font-size: clamp(1.2rem, 3.2vw, 1.9rem);
  color: var(--green); background: var(--white); display: inline-block;
  padding: 0.15em 0.7em; border-radius: var(--radius-sm); margin: 0 0 1rem; font-weight: 700;
}
.hero-tagline { font-size: clamp(0.98rem, 1.7vw, 1.15rem); max-width: 46ch; opacity: 0.9; margin-bottom: 1.8rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; }
.hero-actions .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.hero-actions .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 0; }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--saffron); line-height: 1.1; }

/* Flag stage */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.flag-stage { position: relative; width: 100%; max-width: 400px; padding-left: 18px; }
.flag-pole {
  position: absolute; left: 8px; top: -18px; bottom: -70px; width: 7px; border-radius: 4px;
  background: linear-gradient(to right, rgba(255,255,255,0.35), var(--white) 45%, rgba(255,255,255,0.28));
}
.flag-pole::before {
  content: ""; position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  width: 15px; height: 15px; border-radius: 50%; background: var(--saffron);
  box-shadow: 0 0 16px rgba(255,153,51,0.75);
}
.waving-flag {
  width: 100%; filter: drop-shadow(0 12px 26px rgba(0,0,0,0.30));
  border-radius: 2px;
}
.chakra-badge {
  position: absolute; right: -6px; bottom: -6px; width: 96px; opacity: 0.9;
}
.spin-chakra { animation: spin 26s linear infinite; }
.spin-slow { animation: spin 44s linear infinite; }

/* Quote ticker */
.quote-ticker {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.12); overflow: hidden; padding: 0.85rem 0;
}
.quote-track { display: flex; gap: 4rem; width: max-content; animation: marquee 62s linear infinite; }
.quote-track blockquote { margin: 0; font-family: var(--font-display); font-size: 1rem; white-space: nowrap; opacity: 0.94; }
.quote-track cite { font-style: normal; font-family: var(--font-body); font-size: 0.78rem; color: var(--saffron); margin-left: 0.6rem; }
.quote-ticker:hover .quote-track { animation-play-state: paused; }

/* ------------------------------ CAROUSEL ------------------------------ */
.carousel { position: relative; padding: 0 0 3rem; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { list-style: none; display: flex; transition: transform 0.55s var(--ease); }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.slide-inner {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 2rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow);
  border-top: 6px solid var(--saffron); border-bottom: 6px solid var(--green);
}
.slide-portrait {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--saffron), var(--shadow);
  aspect-ratio: 4 / 5; background: var(--wash-navy);
}
.slide-portrait img { width: 100%; height: 100%; object-fit: cover; }
.slide-body h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.15em; }
.slide-meta { font-size: 0.82rem; color: var(--ink-65); margin-bottom: 0.9rem; }
.slide-body blockquote {
  margin: 0 0 1.1rem; padding-left: 1rem; border-left: 4px solid var(--green);
  font-family: var(--font-display); font-size: 1.05rem; font-style: italic;
}
.carousel-arrow {
  position: absolute; top: calc(50% - 3rem); transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy);
  background: var(--white); color: var(--navy); display: grid; place-items: center;
  box-shadow: var(--shadow); transition: all 0.16s var(--ease);
}
.carousel-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow:hover { background: var(--saffron); border-color: var(--saffron); }
.carousel-arrow.prev { left: -10px; }
.carousel-arrow.next { right: -10px; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.carousel-dot {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--navy);
  background: transparent; padding: 0; transition: all 0.18s var(--ease);
}
.carousel-dot[aria-selected="true"] { background: var(--saffron); border-color: var(--saffron); width: 30px; border-radius: 999px; }

/* ------------------------------ EXPLORE GRID ------------------------------ */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 1rem; }
.explore-card {
  display: block; text-decoration: none; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; position: relative; overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.explore-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--saffron);
  transform: scaleY(0); transform-origin: top; transition: transform 0.24s var(--ease);
}
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--wash-saffron-2); }
.explore-card:hover::before { transform: scaleY(1); }
.explore-card .ec-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); }
.explore-card h3 { font-size: 1.08rem; margin: 0.3rem 0 0.35rem; }
.explore-card p { font-size: 0.85rem; color: var(--ink-65); margin: 0; }

/* ------------------------------ SPECIAL (Independence Day) ------------------------------ */
.special-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.special-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg); padding: 1.5rem; color: var(--white);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.special-card h3 { color: var(--saffron); font-size: 1.15rem; margin: 0; }
.special-card .card-note { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.special-card .micro { color: rgba(255,255,255,0.8); }
.special-card code { background: rgba(255,255,255,0.14); color: var(--white); }

.hoist-stage { position: relative; height: 190px; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.05); }
.hoist-pole { position: absolute; left: 26px; top: 12px; bottom: 12px; width: 5px; background: var(--white); border-radius: 3px; opacity: 0.85; }
.hoist-flag {
  position: absolute; left: 31px; width: 110px; bottom: 12px;
  transition: bottom 2.6s var(--ease);
  transform-origin: left center;
}
.hoist-flag.raised { bottom: 128px; }
.hoist-flag.raised svg { animation: flagFlutter 2.6s ease-in-out infinite; }
.hoist-flag svg { border-radius: 2px; box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
.hoist-schedule {
  margin: 0; font-size: 0.82rem; line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  border-left: 3px solid var(--saffron); padding-left: 0.7rem;
}
.hoist-card.locked .hoist-stage { opacity: 0.72; }
.hoist-card.locked .hoist-schedule::before {
  content: "🔒"; margin-right: 0.4rem; font-size: 0.9em;
}
/* Disabled controls must read as unavailable, not merely faded.
   Desaturating saffron turns it brown, which is off-palette — so a disabled
   button drops to an outline instead of tinting the fill. */
.btn:disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed; transform: none; box-shadow: none;
  background: transparent; color: var(--ink-muted); border-color: var(--line-strong);
}
.special-card .btn:disabled, .special-card .btn[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.34);
}
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.petal-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -12px; width: 9px; height: 9px; border-radius: 50% 0 50% 50%;
  animation: petalFall linear forwards;
}

.anthem-box { display: flex; flex-direction: column; gap: 0.6rem; }
.anthem-btn { align-self: flex-start; }
.anthem-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn[aria-pressed="true"] .anthem-icon { border: 0; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.anthem-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.18); overflow: hidden; }
.anthem-progress i { display: block; height: 100%; width: 0; background: linear-gradient(to right, var(--saffron), var(--white), var(--green)); transition: width 0.25s linear; }
.anthem-lyrics { margin: 0; font-family: var(--font-display); font-size: 0.92rem; opacity: 0.9; border-left: 3px solid var(--saffron); padding-left: 0.85rem; }

/* Banner shown only while the anthem plays of its own accord. */
.anthem-banner {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 210;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  max-width: min(560px, calc(100% - 2rem));
  background: var(--navy); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 5px solid var(--saffron);
  border-radius: var(--radius); padding: 0.8rem 1rem;
  box-shadow: var(--shadow-lg); font-size: 0.86rem;
  animation: toastIn 0.25s var(--ease);
}
.anthem-banner .ab-text { flex: 1 1 240px; }
.anthem-banner button {
  border-radius: 999px; padding: 0.35em 0.9em; font-size: 0.78rem; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--white);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.anthem-banner .ab-stop { background: var(--saffron); border-color: var(--saffron); color: var(--navy); }
.anthem-banner button:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.pledge-paper {
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; font-family: var(--font-display); font-size: 0.92rem;
  border-left: 6px solid var(--saffron); border-right: 6px solid var(--green);
  max-height: 210px; overflow-y: auto;
}
.pledge-paper p { margin-bottom: 0.7rem; }
.pledge-card.taken .pledge-paper { box-shadow: 0 0 0 3px var(--green); }
/* ------------------------------ TRIBUTE ------------------------------ */
.tribute {
  position: relative; overflow: hidden;
  margin-top: 4rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--saffron);
  border-bottom: 5px solid var(--green);
}
.tb-inner { position: relative; z-index: 1; max-width: 78ch; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* A single large chakra, barely there, behind the text. */
.tb-mark {
  position: absolute; top: 50%; right: -70px; transform: translateY(-50%);
  width: min(440px, 52vw); opacity: 0.055; pointer-events: none; z-index: 0;
}
.tb-mark svg { width: 100%; height: auto; }
.tb-mark svg [stroke] { stroke: var(--white); }
.tb-mark svg [fill]:not([fill="none"]) { fill: var(--white); }

.tb-kicker {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--saffron); margin-bottom: 0.6rem;
}
.tribute h2 {
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.06;
  letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--white);
}
.tb-lede {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem); line-height: 1.65;
  color: rgba(255, 255, 255, 0.92); margin-bottom: 1.5rem;
  border-left: 3px solid var(--saffron); padding-left: 1.1rem;
}
.tb-prose p { color: rgba(255, 255, 255, 0.82); line-height: 1.75; margin-bottom: 0.9rem; }
.tb-prose p:last-child { margin-bottom: 0; font-style: italic; color: rgba(255, 255, 255, 0.92); }

.tb-subhead {
  margin: 2.25rem 0 1rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--saffron);
  padding-bottom: 0.55rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tb-groups { list-style: none; display: grid; gap: 1.1rem 1.75rem; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.tb-group h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.25rem; }
.tb-group p { font-size: 0.88rem; line-height: 1.6; color: rgba(255, 255, 255, 0.76); }

.tb-figures { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.tb-figure {
  border: 1px solid rgba(255, 255, 255, 0.22); border-left: 3px solid var(--green);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; display: grid; gap: 0.15rem;
}
.tb-figure b { font-family: var(--font-display); font-size: 1.5rem; color: var(--saffron); line-height: 1; }
.tbf-label { font-size: 0.84rem; color: rgba(255, 255, 255, 0.88); }
.tbf-note { font-size: 0.73rem; color: rgba(255, 255, 255, 0.62); }
.tb-figures-note { margin-top: 0.9rem; font-size: 0.8rem; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }

.tb-inscription {
  margin: 2.5rem 0 0; padding: 1.5rem clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--radius);
  background: rgba(255, 153, 51, 0.09); text-align: center;
}
.tb-inscription p {
  font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  line-height: 1.5; color: var(--white); margin-bottom: 0.75rem;
}
.tb-inscription footer {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--saffron); letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .tb-mark { right: -110px; opacity: 0.04; }
}

/* From 6 PM IST: the whole panel becomes one greeting, flag leftmost. */
.id-greeting {
  display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--wrap); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) 0;
}
.idg-flag {
  flex: 0 0 auto; width: clamp(96px, 16vw, 210px); height: auto;
  border-radius: 4px; box-shadow: var(--shadow-lg);
}
.idg-text {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 6.2vw, 4.2rem); line-height: 1.06;
  letter-spacing: -0.02em; text-wrap: balance;
  color: var(--saffron);
  background-image: linear-gradient(100deg,
    var(--saffron) 0%, var(--saffron) 20%,
    var(--white) 46%, var(--white) 60%,
    var(--green) 86%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .idg-text { color: transparent; }
}
@media (max-width: 560px) {
  .id-greeting { flex-direction: column; text-align: center; gap: 1.25rem; }
}

/* Hoisting complete — the greeting replaces the button. */
.hoist-status.hoist-done, .hoist-done {
  display: grid; gap: 0.15rem; margin-top: 0.35rem;
  font-family: var(--font-display); line-height: 1.2;
}
.hoist-done .hd-line1 {
  font-size: 0.95rem; font-weight: 700; color: var(--green);
  letter-spacing: 0.01em;
}
/* Saffron → white → green across the greeting. The solid colour is declared
   first so browsers without background-clip:text still show readable text. */
.hoist-done .hd-line2 {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--saffron);
  background-image: linear-gradient(100deg,
    var(--saffron) 0%, var(--saffron) 22%,
    var(--white) 48%, var(--white) 58%,
    var(--green) 84%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hoist-done .hd-line2 { color: transparent; }
}
.hoist-card.hoisted .hoist-stage { box-shadow: inset 0 0 0 2px var(--green); }

.pledge-card.locked .pledge-paper { opacity: 0.72; }
.pledge-card.locked .micro::before { content: "🔒"; margin-right: 0.4rem; }
.pledge-count {
  margin: 0; font-size: 0.88rem; line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.pledge-count:empty { display: none; }
.pledge-count b {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--saffron); margin-right: 0.15rem;
}

.countdown { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cd-unit {
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 0.6rem 0.9rem; text-align: center; min-width: 74px; flex: 1 1 auto;
  border-bottom: 4px solid var(--saffron);
}
.cd-unit b { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }
.cd-unit span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-65); }
.cd-today { background: var(--saffron); color: var(--navy); border-radius: var(--radius); padding: 1rem; text-align: center; font-weight: 700; }

.fotd-body { display: flex; gap: 1rem; align-items: flex-start; }
.fotd-portrait {
  flex: 0 0 92px; width: 92px; aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--saffron);
}
.fotd-portrait img { width: 100%; height: 100%; object-fit: cover; }
.fotd-body h4 { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--white); }
.fotd-body .fotd-meta { font-size: 0.78rem; opacity: 0.8; margin-bottom: 0.5rem; }
.fotd-body blockquote { margin: 0 0 0.7rem; font-family: var(--font-display); font-style: italic; font-size: 0.9rem; opacity: 0.95; }

/* ------------------------------ TIMELINE ------------------------------ */
.timeline-progress { height: 5px; background: var(--wash-navy); border-radius: 3px; overflow: hidden; margin-bottom: 2rem; position: sticky; top: calc(var(--header-h) + 6px); z-index: 5; }
.timeline-progress i { display: block; height: 100%; width: 0; background: linear-gradient(to right, var(--saffron), var(--green)); transition: width 0.1s linear; }

.timeline { list-style: none; position: relative; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 96px; top: 0; bottom: 0; width: 4px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--saffron), var(--white) 45%, var(--green));
  box-shadow: 0 0 0 1px var(--line);
}
.tl-item { position: relative; padding: 0 0 1.75rem 148px; }
.tl-year {
  position: absolute; left: 0; top: 4px; width: 78px; text-align: right;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1;
}
.tl-year small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-top: 0.25rem; font-weight: 600; }
.tl-node {
  position: absolute; left: 86px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--navy); z-index: 2;
  transition: all 0.2s var(--ease);
}
.tl-item.p-early-resistance .tl-node { border-color: var(--navy); }
.tl-item.p-rise-of-nationalism .tl-node { border-color: var(--green); }
.tl-item.p-mass-movements .tl-node { border-color: var(--saffron); }
.tl-item.p-final-push .tl-node { border-color: var(--navy); background: var(--saffron); }
.tl-item:hover .tl-node, .tl-item.open .tl-node { transform: scale(1.28); box-shadow: 0 0 0 6px var(--wash-saffron); }

.tl-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tl-card:hover { box-shadow: var(--shadow); transform: translateX(3px); border-color: var(--wash-saffron-2); }
.tl-head {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  width: 100%; text-align: left; background: transparent; border: 0; padding: 1rem 1.1rem;
}
.tl-thumb { width: 92px; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--wash-navy); }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.tl-head .tl-title {
  display: block; margin: 0 0 0.15rem; font-size: 1.12rem;
  font-family: var(--font-display); font-weight: 700; line-height: 1.22;
}
.tl-head .tl-date { display: block; font-size: 0.76rem; color: var(--ink-65); letter-spacing: 0.03em; }
.tl-head .tl-sum { display: block; font-size: 0.87rem; color: var(--ink-80); margin: 0.3rem 0 0; font-weight: 400; }
.tl-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: var(--white); display: grid; place-items: center; flex: 0 0 34px; transition: all 0.18s var(--ease);
}
.tl-toggle::before { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--navy); }
.tl-item.open .tl-toggle { background: var(--navy); border-color: var(--navy); }
.tl-item.open .tl-toggle::before { content: "–"; color: var(--white); }

.tl-detail { padding: 0 1.1rem 1.25rem; border-top: 1px dashed var(--line); display: grid; gap: 1rem; }
.tl-detail h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); margin: 0 0 0.35rem; font-family: var(--font-body); }
.tl-detail p { font-size: 0.92rem; margin: 0; }
.tl-sig { background: var(--wash-saffron); border-left: 4px solid var(--saffron); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.85rem 1rem; }
.tl-meta-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.tl-meta-row > div { flex: 1 1 220px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.tag {
  font-size: 0.76rem; padding: 0.22em 0.7em; border-radius: 999px;
  background: var(--wash-navy); border: 1px solid var(--line); color: var(--ink-80);
  text-decoration: none; display: inline-block;
}
a.tag:hover { background: var(--saffron); border-color: var(--saffron); color: var(--navy); }
.tag.tag-green { background: var(--wash-green); border-color: var(--wash-green-2); color: var(--green); }

/* ------------------------------ CARD GRID (fighters) ------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1.25rem; }
.fighter-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}
.fighter-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(to right, var(--saffron) 0 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%);
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.fighter-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fighter-card:focus-within { box-shadow: 0 0 0 3px var(--saffron), var(--shadow-lg); }
.fighter-card:hover::after { opacity: 1; }
.fc-portrait { position: relative; aspect-ratio: 4/5; background: var(--wash-navy); overflow: hidden; }
.fc-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.fighter-card:hover .fc-portrait img { transform: scale(1.06); }
.fc-cat {
  position: absolute; left: 0.6rem; top: 0.6rem; font-size: 0.63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25em 0.65em; border-radius: 999px;
  background: var(--navy); color: var(--white);
}
.fc-cat.c-revolutionaries { background: var(--saffron); color: var(--navy); }
.fc-cat.c-women-freedom-fighters { background: var(--green); color: var(--white); }
.fc-cat.c-tribal-leaders { background: var(--white); color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.fc-cat.c-south-india { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.fc-years {
  position: absolute; right: 0.6rem; bottom: 0.6rem; font-size: 0.68rem; font-weight: 700;
  background: rgba(255,255,255,0.92); color: var(--navy); padding: 0.2em 0.55em; border-radius: 999px;
}
.fc-body { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.fc-body h3 { font-size: 1.02rem; margin: 0 0 0.2rem; }
.fc-link {
  background: none; border: 0; padding: 0; margin: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
}
/* Stretch the control over the whole tile without nesting interactive elements. */
.fc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fc-link:hover { color: var(--green); }
.fc-role { font-size: 0.8rem; color: var(--ink-65); margin: 0 0 0.6rem; flex: 1; }
.fc-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.74rem; color: var(--ink-65); margin: 0; }
.fc-state { display: inline-flex; align-items: center; gap: 0.3rem; }
.fc-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.fc-more { font-weight: 700; color: var(--navy); font-size: 0.76rem; }

/* ------------------------------ MOVEMENTS ------------------------------ */
.movement-list { display: grid; gap: 1.25rem; }
.movement-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.movement-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  width: 100%; text-align: left; background: transparent; border: 0; padding: 1.35rem 1.5rem;
  border-left: 6px solid var(--saffron);
}
.movement-card:nth-child(even) .movement-head { border-left-color: var(--green); }
.movement-head:hover { background: var(--wash-saffron); }
.movement-card:nth-child(even) .movement-head:hover { background: var(--wash-green); }
.mv-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.mv-period { display: block; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-65); letter-spacing: 0.04em; }
.movement-head .mv-name {
  display: block; font-size: 1.35rem; margin: 0.15rem 0 0.3rem;
  font-family: var(--font-display); font-weight: 700; line-height: 1.2;
}
.mv-tagline { display: block; font-family: var(--font-display); font-style: italic; color: var(--green); font-size: 0.98rem; margin: 0 0 0.4rem; font-weight: 400; }
.mv-summary { display: block; font-size: 0.9rem; color: var(--ink-80); margin: 0; max-width: 72ch; font-weight: 400; font-family: var(--font-body); }
.mv-detail { padding: 0 1.5rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; border-top: 1px dashed var(--line); padding-top: 1.25rem; }
.mv-block h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); font-family: var(--font-body); margin-bottom: 0.5rem; }
.mv-block ul { list-style: none; display: grid; gap: 0.45rem; }
.mv-block li { font-size: 0.87rem; padding-left: 1.1rem; position: relative; }
.mv-block li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }
.mv-block.outcomes li::before { background: var(--green); }
.mv-block.events li::before { background: var(--navy); border-radius: 1px; }

/* ------------------------------ TABS ------------------------------ */
.tabs { display: flex; gap: 0.35rem; border-bottom: 2px solid var(--line); margin-bottom: 1.75rem; flex-wrap: wrap; }
.tab {
  background: transparent; border: 0; border-bottom: 4px solid transparent;
  padding: 0.7rem 1.1rem; font-weight: 700; font-size: 0.92rem; color: var(--ink-65);
  margin-bottom: -2px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: all 0.16s var(--ease);
}
.tab:hover { color: var(--navy); background: var(--wash-saffron); }
.tab.active { color: var(--navy); border-bottom-color: var(--saffron); }

/* ------------------------------ MAP ------------------------------ */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: start; }
.map-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-sm); position: relative;
}
.map-note { font-size: 0.78rem; color: var(--ink-65); margin: 0 0 0.75rem; }
#indiaMap { width: 100%; height: auto; overflow: visible; }
.state-tile { cursor: pointer; }
.state-tile rect {
  fill: var(--wash-navy); stroke: var(--navy); stroke-width: 2; rx: 9;
  transition: fill 0.2s var(--ease), stroke 0.2s var(--ease), transform 0.2s var(--ease);
}
.state-tile text { font-size: 17px; font-weight: 600; fill: var(--navy); pointer-events: none; font-family: var(--font-body); }
.state-tile:hover rect { fill: var(--wash-green-2); stroke: var(--green); }
.state-tile:focus { outline: none; }
.state-tile:focus-visible rect { stroke: var(--green); stroke-width: 4; }
.state-tile.selected rect { fill: var(--saffron); stroke: var(--navy); stroke-width: 3; }
.state-tile.selected text { fill: var(--navy); font-weight: 700; }
.state-tile.dim rect { opacity: 0.35; }
.map-region-label { font-size: 15px; font-weight: 700; fill: var(--ink-muted); letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-body); }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: var(--ink-65); margin-top: 0.75rem; }
.map-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
.sw-saffron { background: var(--saffron); }
.sw-green { background: var(--wash-green-2); border: 1px solid var(--green); }
.sw-navy { background: var(--wash-navy); border: 1px solid var(--navy); }

.map-detail {
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); border-top: 6px solid var(--saffron);
  max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto;
}
.map-detail h2 { font-size: 1.5rem; margin-bottom: 0.15rem; }
.md-region { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); font-weight: 700; margin-bottom: 0.9rem; }
.md-block { margin-top: 1.25rem; }
.md-block h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); font-family: var(--font-body); margin-bottom: 0.5rem; }
.md-block ul { list-style: none; display: grid; gap: 0.4rem; }
.md-block li { font-size: 0.87rem; padding-left: 1.05rem; position: relative; }
.md-block li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.md-empty { color: var(--ink-65); text-align: center; padding: 2.5rem 1rem; }
.md-empty svg { width: 74px; margin: 0 auto 1rem; opacity: 0.5; }

/* ------------------------------ REGIONS ------------------------------ */
.region-list { display: grid; gap: 1.5rem; }
.region-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); border-left: 8px solid var(--green);
}
.region-card:nth-child(odd) { border-left-color: var(--saffron); }
.region-card h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.region-states { font-size: 0.78rem; color: var(--ink-65); margin-bottom: 0.9rem; }
.region-summary { max-width: 78ch; }
.region-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; margin-top: 1.25rem; }
.mini-timeline { list-style: none; position: relative; padding-left: 1.5rem; }
.mini-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.mini-timeline li { position: relative; padding-bottom: 0.85rem; font-size: 0.87rem; }
.mini-timeline li::before { content: ""; position: absolute; left: -1.5rem; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--saffron); }
.mini-timeline b { font-family: var(--font-display); margin-right: 0.4rem; color: var(--navy); }
.region-impact { background: var(--wash-green); border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.9rem 1.1rem; font-size: 0.9rem; margin-top: 1rem; }

/* ------------------------------ DOCUMENTS ------------------------------ */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.doc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doc-visual {
  position: relative; padding: 1.25rem; background: var(--wash-navy);
  border-bottom: 3px solid var(--saffron); min-height: 148px;
}
.doc-visual::before {
  content: ""; position: absolute; right: 0; top: 0; border-width: 0 34px 34px 0;
  border-style: solid; border-color: var(--white) var(--white) var(--wash-saffron-2) var(--wash-saffron-2);
  box-shadow: -2px 2px 3px rgba(0,0,128,0.10);
}
.doc-type { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--green); }
.doc-visual h3 { font-size: 1.12rem; margin: 0.3rem 0 0.4rem; }
.doc-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-65); }
.doc-body { padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.doc-body p { font-size: 0.87rem; margin: 0; }
.doc-preview {
  font-family: var(--font-display); font-size: 0.86rem; font-style: italic;
  border-left: 4px solid var(--green); padding: 0.5rem 0 0.5rem 0.85rem; color: var(--ink-80);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.doc-source { font-size: 0.72rem; color: var(--ink-65); padding: 0 1.25rem 1.1rem; border-top: 1px dashed var(--line); padding-top: 0.75rem; }

/* ------------------------------ QUIZ ------------------------------ */
.quiz-root { display: grid; gap: 1.5rem; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.level-card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: left; display: flex; flex-direction: column; gap: 0.6rem;
  transition: all 0.2s var(--ease); position: relative; overflow: hidden;
}
.level-card:hover { border-color: var(--saffron); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.level-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.level-desc { font-size: 0.85rem; color: var(--ink-65); flex: 1; font-weight: 400; }
.level-badge {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.25em 0.7em; border-radius: 999px; background: var(--navy); color: var(--white);
}
.level-card:nth-child(2) .level-badge { background: var(--green); }
.level-card:nth-child(3) .level-badge { background: var(--saffron); color: var(--navy); }
.level-card:nth-child(4) .level-badge { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.level-best { font-size: 0.78rem; color: var(--green); font-weight: 700; }

.quiz-stage { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.quiz-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--navy); color: var(--white); }
.quiz-bar strong { font-family: var(--font-display); }
.quiz-progress { height: 6px; background: var(--wash-navy); }
.quiz-progress i { display: block; height: 100%; background: linear-gradient(to right, var(--saffron), var(--green)); transition: width 0.3s var(--ease); }
.quiz-timer { font-family: var(--font-mono); font-size: 0.9rem; padding: 0.2em 0.7em; border-radius: 999px; background: rgba(255,255,255,0.16); }
.quiz-timer.low { background: var(--saffron); color: var(--navy); font-weight: 700; }
.quiz-question { padding: 1.75rem 1.5rem; }
.qq-type { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--green); margin-bottom: 0.5rem; }
.qq-text { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-bottom: 1.25rem; }
.qq-image { max-width: 220px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--saffron); }

.option-list { display: grid; gap: 0.7rem; }
.option {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; text-align: left;
  background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.85rem 1.1rem; font-size: 0.95rem; transition: all 0.16s var(--ease);
}
.option:hover:not(:disabled) { border-color: var(--saffron); background: var(--wash-saffron); transform: translateX(3px); }
.option .opt-key {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wash-navy); font-weight: 700; font-size: 0.85rem;
}
.option.correct { border-color: var(--green); background: var(--wash-green); }
.option.correct .opt-key { background: var(--green); color: var(--white); }
.option.wrong { border-color: var(--saffron); background: var(--wash-saffron); }
.option.wrong .opt-key { background: var(--saffron); color: var(--navy); }
.option:disabled { cursor: default; }

.match-list { display: grid; gap: 0.75rem; }
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr); gap: 0.85rem; align-items: center; background: var(--wash-navy); border-radius: var(--radius); padding: 0.7rem 0.9rem; }
.match-row span { font-size: 0.92rem; }
.match-row.correct { background: var(--wash-green); box-shadow: inset 0 0 0 2px var(--green); }
.match-row.wrong { background: var(--wash-saffron); box-shadow: inset 0 0 0 2px var(--saffron); }

.order-list { display: grid; gap: 0.6rem; list-style: none; }
.order-item {
  display: flex; align-items: center; gap: 0.85rem; background: var(--white);
  border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 0.7rem 0.9rem;
}
.order-item .oi-label { flex: 1; font-size: 0.92rem; }
.order-item .oi-pos { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; flex: 0 0 28px; }
.order-move { width: 32px; height: 30px; border: 1px solid var(--line-strong); background: var(--white); border-radius: var(--radius-sm); }
.order-move:hover:not(:disabled) { background: var(--saffron); border-color: var(--saffron); }
.order-move:disabled { opacity: 0.35; cursor: default; }
.order-item.correct { border-color: var(--green); background: var(--wash-green); }
.order-item.wrong { border-color: var(--saffron); background: var(--wash-saffron); }

.quiz-feedback { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius); font-size: 0.9rem; }
.quiz-feedback.right { background: var(--wash-green); border-left: 5px solid var(--green); }
.quiz-feedback.wrong { background: var(--wash-saffron); border-left: 5px solid var(--saffron); }
.quiz-feedback b { display: block; margin-bottom: 0.3rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0 1.5rem 1.75rem; }

.result-card { text-align: center; padding: 2.5rem 1.5rem; }
.result-score { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5rem); line-height: 1; color: var(--green); }
.result-score small { font-size: 0.35em; color: var(--ink-65); }
.result-badge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: var(--wash-saffron); border: 2px solid var(--saffron); border-radius: var(--radius-lg);
  padding: 1.1rem 2rem; margin: 1.25rem 0;
}
.result-badge .rb-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.result-badge .rb-desc { font-size: 0.85rem; color: var(--ink-65); max-width: 40ch; }
.result-medal { width: 62px; }

.leaderboard { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.leaderboard caption { text-align: left; font-weight: 700; padding-bottom: 0.6rem; font-family: var(--font-display); font-size: 1.05rem; }
.leaderboard th, .leaderboard td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); }
.leaderboard th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-65); }
.leaderboard tbody tr:nth-child(1) td { background: var(--wash-saffron); font-weight: 700; }
.leaderboard tbody tr:nth-child(2) td { background: var(--wash-green); }
.leaderboard td.lb-rank { font-family: var(--font-display); font-size: 1.05rem; width: 3rem; }

/* ------------------------------ THIS DAY ------------------------------ */
.today-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2rem; font-size: 0.9rem; }
.today-controls label { font-weight: 600; }
.today-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.5rem;
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}
.today-visual { position: relative; background: var(--wash-navy); min-height: 210px; }
.today-visual img { width: 100%; height: 100%; object-fit: cover; }
.today-year {
  position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--saffron);
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; padding: 0.2em 0.7em;
}
.today-body { padding: 1.6rem 1.75rem; }
.today-body h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 0.5rem; }
.today-importance { background: var(--wash-saffron); border-left: 5px solid var(--saffron); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.85rem 1rem; font-size: 0.9rem; margin-top: 1rem; }
.today-none { text-align: center; padding: 3rem 1.5rem; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); }
.today-none svg { width: 90px; margin: 0 auto 1rem; opacity: 0.55; }
.upcoming-list { list-style: none; display: grid; gap: 0.6rem; }
.upcoming-list li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 0.7rem 0.9rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.upcoming-list .up-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); font-weight: 700; }
.upcoming-list b { font-weight: 600; font-size: 0.92rem; }
.upcoming-list em { font-style: normal; color: var(--ink-65); font-size: 0.82rem; display: block; }

/* ------------------------------ AI ------------------------------ */
.ai-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.45fr); gap: 2rem; align-items: start; }
.chat-window {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; min-height: 420px; max-height: 62vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--saffron);
}
.msg { display: flex; gap: 0.75rem; max-width: 88%; animation: msgIn 0.28s var(--ease); }
.msg-avatar {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.78rem;
}
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-user .msg-avatar { background: var(--navy); color: var(--white); }
.msg-user .msg-bubble { background: var(--navy); color: var(--white); border-radius: var(--radius) var(--radius) 4px var(--radius); }
.msg-ai .msg-avatar { background: var(--saffron); color: var(--navy); overflow: hidden; }
.msg-ai .msg-avatar svg { width: 22px; }
.msg-ai .msg-bubble { background: var(--wash-navy); border-radius: var(--radius) var(--radius) var(--radius) 4px; border-left: 3px solid var(--green); }
.msg-bubble { padding: 0.85rem 1.05rem; font-size: 0.93rem; }
.msg-bubble p { margin-bottom: 0.7rem; }
.msg-bubble h4 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.msg-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px dashed var(--line-strong); }
.msg-typing { display: inline-flex; gap: 4px; padding: 0.5rem 0; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); opacity: 0.4; animation: typing 1.1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: 0.16s; }
.msg-typing i:nth-child(3) { animation-delay: 0.32s; }

.chat-form { display: flex; gap: 0.6rem; margin: 1rem 0; }
.chat-form .field { flex: 1; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suggest-chip {
  border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px;
  padding: 0.35em 0.9em; font-size: 0.82rem; color: var(--ink-80); transition: all 0.16s var(--ease);
}
.suggest-chip:hover { background: var(--saffron); border-color: var(--saffron); color: var(--navy); }
.ai-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem); }
.history-list { list-style: none; display: grid; gap: 0.4rem; margin-bottom: 1rem; max-height: 260px; overflow-y: auto; }
.history-list button { width: 100%; text-align: left; background: var(--wash-navy); border: 0; border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; font-size: 0.82rem; }
.history-list button:hover { background: var(--wash-saffron); }
.history-empty { font-size: 0.82rem; color: var(--ink-65); }
.ai-arch { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.ai-arch h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-body); color: var(--green); }
.ai-arch p { font-size: 0.8rem; color: var(--ink-65); margin: 0; }

/* ------------------------------ DASHBOARD ------------------------------ */
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.counter-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem; text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.counter-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--saffron); }
.counter-card:nth-child(2n)::before { background: var(--green); }
.counter-card:nth-child(3n)::before { background: var(--navy); }
.counter-icon { width: 38px; margin: 0 auto 0.6rem; }
.counter-value { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; line-height: 1; color: var(--navy); }
.counter-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-65); margin-top: 0.35rem; }

.dash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin: 0; box-shadow: var(--shadow-sm); }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card figcaption { margin: 0; }
.bar-chart { display: grid; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; font-size: 0.82rem; }
.bar-track { background: var(--wash-navy); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 0.9s var(--ease); background: var(--saffron); }
.bar-row:nth-child(3n+2) .bar-fill { background: var(--green); }
.bar-row:nth-child(3n+3) .bar-fill { background: var(--navy); }
.bar-value { font-weight: 700; font-family: var(--font-display); }

.spark-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 1rem; }
.spark-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.35rem; height: 100%; }
.spark-bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--navy); min-height: 3px; transition: height 0.9s var(--ease); }
.spark-col.hot .spark-bar { background: var(--saffron); }
.spark-col.warm .spark-bar { background: var(--green); }
.spark-label { font-size: 0.6rem; color: var(--ink-muted); transform: rotate(-52deg); transform-origin: center; white-space: nowrap; }

.progress-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.progress-item { }
.progress-item .pi-label { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 0.35rem; }
.progress-track { background: var(--wash-navy); border-radius: 999px; height: 10px; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: linear-gradient(to right, var(--saffron), var(--green)); width: 0; transition: width 0.9s var(--ease); }
.badge-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4em 0.95em; border-radius: 999px;
  border: 2px solid var(--line-strong); font-size: 0.82rem; font-weight: 600; opacity: 0.45;
}
.badge-pill.earned { opacity: 1; border-color: var(--green); background: var(--wash-green); color: var(--green); }

/* ------------------------------ PHASES / STORY ------------------------------ */
.phase-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.85rem; margin-bottom: 2rem; }
.phase-btn {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem; text-align: left; transition: all 0.2s var(--ease); position: relative; overflow: hidden;
}
.phase-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.phase-btn:hover { border-color: var(--wash-saffron-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.phase-btn[aria-selected="true"] { border-color: var(--navy); background: var(--wash-navy); }
.phase-btn[aria-selected="true"]::after { transform: scaleX(1); }
.phase-btn .pb-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); }
.phase-btn .pb-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0.25rem 0 0.15rem; line-height: 1.2; }
.phase-btn .pb-period { font-size: 0.8rem; color: var(--green); font-weight: 700; }

.phase-stage { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); animation: viewIn 0.3s var(--ease); }
.phase-stage h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
.phase-headline { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--green); margin-bottom: 1.25rem; }
.phase-narrative { max-width: 74ch; font-size: 1rem; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: 2rem 0; }
.flow-box { background: var(--wash-navy); border-radius: var(--radius); padding: 1.25rem; }
.flow-box h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-body); margin-bottom: 0.6rem; }
.flow-box.causes { border-left: 5px solid var(--saffron); }
.flow-box.effects { border-left: 5px solid var(--green); }
.flow-box ul { list-style: none; display: grid; gap: 0.5rem; }
.flow-box li { font-size: 0.87rem; padding-left: 1.1rem; position: relative; }
.flow-box li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.flow-arrow { display: grid; place-items: center; }
.flow-arrow svg { width: 46px; stroke: var(--saffron); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.phase-stat {
  display: inline-flex; flex-direction: column; background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem;
}
.phase-stat b { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--saffron); }
.phase-stat span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.82; }

/* ------------------------------ SYMBOLS ------------------------------ */
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.symbol-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.symbol-art { width: 150px; margin: 0 auto 1.25rem; }
.symbol-note { height: 110px; display: grid; place-items: center; font-size: 3rem; color: var(--saffron); font-family: var(--font-display); }
.symbol-card p { font-size: 0.9rem; }
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.6rem; margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ------------------------------ FOOTER ------------------------------ */
.site-footer {
  margin-top: 4rem;
  background: var(--navy);
  color: var(--white);
}
.footer-tricolour { display: flex; height: 5px; }
.footer-tricolour i { flex: 1; }
.footer-tricolour i:nth-child(1) { background: var(--saffron); }
.footer-tricolour i:nth-child(2) { background: var(--white); }
.footer-tricolour i:nth-child(3) { background: var(--green); }

.footer-main { max-width: var(--wrap); margin: 0 auto; padding: 3.25rem 1rem 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

/* Brand block */
.footer-mark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--white); margin-bottom: 1rem;
}
.footer-flag {
  width: 46px; flex: 0 0 46px; border-radius: 3px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}
.footer-mark strong {
  display: block; font-family: var(--font-display); font-size: 1.3rem;
  line-height: 1.05; letter-spacing: -0.02em;
}
.footer-mark small {
  display: block; font-size: 0.68rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--saffron);
}
.footer-blurb {
  font-size: 0.88rem; line-height: 1.6; max-width: 46ch;
  color: rgba(255, 255, 255, 0.78); margin: 0 0 1.25rem;
}

.footer-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.footer-stats li {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px;
  padding: 0.25em 0.75em; font-size: 0.76rem; color: rgba(255, 255, 255, 0.82);
}
.footer-stats b { font-family: var(--font-display); font-size: 0.95rem; color: var(--saffron); }

/* Link columns */
.footer-col h2 {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--saffron);
  margin: 0 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a {
  display: inline-block; text-decoration: none; font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.80);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--white); transform: translateX(3px); }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 4px; }

/* Promotion strip — sits between the link columns and the legal bar. */
.footer-promo {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 153, 51, 0.08);
}
.fp-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 1.35rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  text-align: center;
}
.fp-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.72);
}
.fp-name {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 700; letter-spacing: -0.01em; color: var(--saffron);
  position: relative; padding-bottom: 0.45rem;
}
/* A small tricolour rule beneath the name. */
.fp-name::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 72px; height: 3px; border-radius: 2px;
  background: linear-gradient(to right,
    var(--saffron) 0 33.33%, var(--white) 33.33% 66.66%, var(--green) 66.66% 100%);
}
.fp-tagline {
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.78); max-width: 46ch;
}

/* Bottom bar */
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.16); }
.footer-bar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.footer-legal {
  flex: 1 1 420px; margin: 0; display: grid; gap: 0.25rem;
  font-size: 0.75rem; line-height: 1.55; color: rgba(255, 255, 255, 0.7);
}
.footer-jai {
  margin: 0; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--saffron); letter-spacing: 0.04em;
}
.footer-top {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 999px;
  padding: 0.4em 0.95em; font-size: 0.78rem; font-weight: 600;
  color: var(--white); text-decoration: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.footer-top svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-top:hover { background: var(--saffron); border-color: var(--saffron); color: var(--navy); }

/* ------------------------------ MODAL ------------------------------ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 130; background: rgba(0, 0, 128, 0.45);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; overflow-y: auto; animation: fadeIn 0.2s var(--ease);
}
.modal {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  max-width: 880px; width: 100%; box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--saffron); border-bottom: 6px solid var(--green);
  animation: modalIn 0.28s var(--ease);
}
.modal-close {
  position: absolute; right: 0.85rem; top: 0.85rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: var(--white); font-size: 1.5rem; line-height: 1; color: var(--navy);
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--saffron); border-color: var(--saffron); }
.modal-body { padding: 2rem; }

.profile-head { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.75rem; margin-bottom: 1.75rem; }
/* position:relative anchors the .img-credit caption to the portrait itself,
   not to the modal. */
.profile-portrait { position: relative; border-radius: var(--radius); overflow: hidden; border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--saffron), var(--shadow); aspect-ratio: 4/5; background: var(--wash-navy); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.15rem; padding-right: 3rem; }
.profile-alias { font-family: var(--font-display); font-style: italic; color: var(--green); margin-bottom: 0.85rem; }
.profile-facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.profile-facts dt, .profile-facts .pf-label {
  display: block; margin-bottom: 0.15rem;
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-muted); font-weight: 700;
}
/* body sets overflow-wrap:break-word for long prose; proper nouns in these
   short fact cells must not be split mid-word ("Revolutio / naries"). */
.profile-facts .pf-value { display: block; font-size: 0.92rem; font-weight: 600; overflow-wrap: normal; }
.modal-section { margin-top: 1.75rem; }
.modal-section h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--green); font-family: var(--font-body); margin-bottom: 0.6rem; }
.modal-section ul { list-style: none; display: grid; gap: 0.5rem; }
.modal-section ul li { font-size: 0.92rem; padding-left: 1.2rem; position: relative; }
.modal-section ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.quote-block {
  font-family: var(--font-display); font-size: 1.08rem; font-style: italic;
  border-left: 5px solid var(--green); padding: 0.6rem 0 0.6rem 1.1rem; margin: 0 0 0.85rem;
}
.attribution { font-size: 0.72rem; color: var(--ink-muted); margin-top: 1.5rem; padding-top: 0.85rem; border-top: 1px dashed var(--line); }
.attribution a { color: var(--green); }

/* ------------------------------ TOAST / LOADER ------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--navy); color: var(--white); padding: 0.8rem 1.4rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); z-index: 200; font-size: 0.9rem; font-weight: 600;
  animation: toastIn 0.25s var(--ease); max-width: calc(100% - 2rem);
}
.toast .toast-accent { color: var(--saffron); }

.app-loader {
  position: fixed; inset: 0; z-index: 300; background: var(--white);
  display: grid; place-items: center; align-content: center; gap: 1rem;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.app-loader svg { width: 76px; }
.app-loader p { font-family: var(--font-display); color: var(--ink-65); }
.app-loader.done { opacity: 0; visibility: hidden; }

/* Generated placeholder art */
.img-frame { position: relative; width: 100%; height: 100%; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; background: var(--white); }
.img-credit {
  position: absolute; right: 0; bottom: 0; font-size: 0.58rem; background: rgba(255,255,255,0.88);
  color: var(--ink-65); padding: 0.1em 0.45em; border-radius: 4px 0 0 0; max-width: 100%;
}

/* ------------------------------ ANIMATIONS ------------------------------ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.45; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes raySweep { to { transform: rotate(360deg); } }
@keyframes flagFlutter { 0%, 100% { transform: skewY(0deg) scaleX(1); } 25% { transform: skewY(-1.6deg) scaleX(0.985); } 75% { transform: skewY(1.6deg) scaleX(0.99); } }
@keyframes petalFall { to { transform: translateY(210px) rotate(320deg); opacity: 0; } }
@keyframes countUpPop { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 1180px) {
  .primary-nav a { font-size: 0.78rem; padding: 0.4rem 0.55rem; }
  .search-trigger-text { display: none; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; min-height: 240px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-detail { position: static; max-height: none; }
  .ai-layout { grid-template-columns: 1fr; }
  .ai-side { position: static; }
  .region-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: flex; }
  .primary-nav {
    grid-column: 1 / -1; display: none; padding-bottom: 0.85rem;
    max-height: 62vh; overflow-y: auto;
  }
  .primary-nav.open { display: block; animation: viewIn 0.2s var(--ease); }
  .primary-nav ul { flex-direction: column; gap: 0.15rem; }
  .primary-nav a { padding: 0.7rem 0.9rem; font-size: 0.95rem; border-radius: var(--radius-sm); }
  .slide-inner { grid-template-columns: 1fr; }
  .slide-portrait { max-width: 240px; margin: 0 auto; }
  .carousel-arrow.prev { left: -4px; }
  .carousel-arrow.next { right: -4px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .today-card { grid-template-columns: 1fr; }
  .today-visual { min-height: 180px; }
  .profile-head { grid-template-columns: 1fr; }
  .profile-portrait { max-width: 220px; }
  .tl-head { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .tl-thumb { width: 72px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .view { padding: 0 0.85rem 3rem; }
  .section { padding: 2.25rem 0.85rem; }
  .band-navy { padding: 2.5rem 0.85rem; }
  .hero-inner { padding: 2.25rem 0.85rem 2rem; }
  .hero-stats { gap: 1.1rem; }
  .hero-stats dd { font-size: 1.5rem; }
  .timeline::before { left: 13px; }
  .tl-item { padding: 0 0 1.5rem 44px; }
  .tl-node { left: 3px; width: 20px; height: 20px; border-width: 3px; }
  .tl-year { position: static; width: auto; text-align: left; font-size: 1.15rem; margin-bottom: 0.35rem; }
  .tl-year small { display: inline; margin-left: 0.5rem; }
  .tl-head { grid-template-columns: 1fr auto; padding: 0.85rem; }
  .tl-thumb { display: none; }
  .mv-detail, .movement-head { padding-left: 1rem; padding-right: 1rem; }
  .modal-body { padding: 1.35rem; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { margin-left: 0; }
  .toolbar-right .field { min-width: 0; flex: 1 1 140px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
  .fc-body { padding: 0.7rem 0.75rem 0.85rem; }
  .fc-body h3 { font-size: 0.92rem; }
  .fc-role { font-size: 0.74rem; }
  .quiz-question { padding: 1.25rem 1rem; }
  .quiz-actions { padding: 0 1rem 1.35rem; }
  .quiz-bar { padding: 0.85rem 1rem; }
  .match-row { grid-template-columns: 1fr; }
  .upcoming-list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .footer-main { padding: 2.25rem 0.85rem 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bar-inner { padding: 1rem 0.85rem; }
  .footer-legal { flex-basis: 100%; }
  .search-overlay { padding: 0; }
  .search-panel { border-radius: 0; min-height: 100vh; }
  .search-results { max-height: none; }
  .phase-stage { padding: 1.35rem; }
  .chakra-badge { width: 66px; }
}

/* ------------------------------ MOTION & PRINT ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .quote-track { animation: none; flex-wrap: wrap; width: auto; }
  .hero-rays { display: none; }
  .hoist-flag { transition: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(0,0,128,0.4); --line-strong: rgba(0,0,128,0.7); --ink-65: rgba(0,0,128,0.85); }
}

@media print {
  .site-header, .site-footer, .search-overlay, .toolbar, .carousel-arrow,
  .carousel-dots, .quote-ticker, .app-loader, .modal-close, .nav-toggle { display: none !important; }
  body { background: var(--white); }
  .view[hidden] { display: none !important; }
  .tl-detail, .mv-detail { display: block !important; }
  a[href^="#"]::after { content: ""; }
}
