/* =====================================================
   Veer Bhartiya Party — Editorial / Civic-Monument
   Palette: deep ink, saffron, antique gold, paper cream
   ===================================================== */

:root {
  /* ink */
  --ink:          #1A0E07;
  --ink-2:        #2C1A0F;
  --ink-3:        #4A2F23;
  --ink-muted:    #6B4A33;
  --ink-soft:     #8A6A50;

  /* saffron / gold */
  --saffron:      #C8431A;
  --saffron-dk:   #A02E0E;
  --saffron-deep: #6B1F08;
  --saffron-soft: #E27A4E;
  --gold:         #C09328;
  --gold-light:   #E6BC4A;
  --gold-deep:    #8B6914;

  /* paper */
  --paper:        #FFFBF3;
  --cream:        #FAF3E4;
  --cream-warm:   #F4E4C4;
  --cream-deep:   #ECD9B0;

  /* lines */
  --line:         #E5D5B3;
  --line-2:       #D3BE93;
  --line-strong:  #B89F73;

  /* shadows */
  --sh-1: 0 1px 2px rgba(75, 30, 5, 0.04), 0 1px 3px rgba(75, 30, 5, 0.06);
  --sh-2: 0 4px 14px rgba(75, 30, 5, 0.06), 0 2px 6px rgba(75, 30, 5, 0.05);
  --sh-3: 0 14px 38px rgba(75, 30, 5, 0.12), 0 4px 12px rgba(75, 30, 5, 0.07);
  --sh-glow: 0 0 0 1px rgba(200, 67, 26, 0.10), 0 14px 38px rgba(200, 67, 26, 0.14);

  /* type */
  --sans:  'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --deva:  'Tiro Devanagari Hindi', 'Noto Serif Devanagari', 'Georgia', serif;

  /* layout */
  --maxw: 1280px;
  --rad-sm: 6px;
  --rad: 10px;
  --rad-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink-2);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle paper grain */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(230, 188, 74, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(200, 67, 26, 0.05), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0 0.2 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }

a {
  color: var(--saffron-dk);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--saffron); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ ACCESSIBILITY ============ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; outline: 2px solid var(--gold-light); }

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

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ READING PROGRESS ============ */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 0;
  background: linear-gradient(90deg, var(--gold-light), var(--saffron), var(--saffron-dk));
  z-index: 200;
  transition: transform 0.08s linear;
}

/* ============ TOP RIBBON ============ */
.ribbon {
  background: linear-gradient(90deg, var(--saffron-deep), var(--saffron-dk) 30%, var(--saffron) 60%, var(--gold) 100%);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ribbon-track {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  padding: 8px 0;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.ribbon-track > span { flex-shrink: 0; }
.ribbon-track > span[aria-hidden] { color: var(--gold-light); opacity: 0.7; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 243, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 10px rgba(75, 30, 5, 0.06);
  background: rgba(255, 251, 243, 0.95);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.nav-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--saffron));
  display: grid; place-items: center;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(160, 46, 14, 0.18), inset 0 0 0 1px rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.nav-mark img {
  width: 100%; height: 100%;
  border-radius: 8px;
  object-fit: contain;
  background: var(--gold-light);
}
.nav-brand .title {
  display: block;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.nav-brand .subtitle {
  display: block;
  font-family: var(--deva);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.6px;
  margin-top: 2px;
}
.nav-mid { flex: 1; display: flex; justify-content: center; }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 99px;
  position: relative;
}
.nav-links a:hover {
  color: var(--saffron-dk);
  background: rgba(200, 67, 26, 0.06);
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.18s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 99px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dk) 100%);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(160, 46, 14, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(160, 46, 14, 0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-outline:hover {
  background: var(--paper);
  border-color: var(--saffron);
  color: var(--saffron-dk);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--paper);
  color: var(--saffron-dk);
  border-color: var(--line-strong);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  padding: 96px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-sun {
  position: absolute;
  width: 1200px; height: 1200px;
  left: 50%; bottom: -780px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    rgba(230, 188, 74, 0.55) 0%,
    rgba(200, 67, 26, 0.25) 20%,
    rgba(200, 67, 26, 0.08) 40%,
    transparent 60%);
  filter: blur(8px);
}
.hero-rays {
  position: absolute;
  inset: -10%;
  background:
    conic-gradient(from 200deg at 50% 110%,
      transparent 0deg,
      rgba(230, 188, 74, 0.10) 8deg,
      transparent 16deg,
      rgba(230, 188, 74, 0.08) 24deg,
      transparent 32deg,
      rgba(230, 188, 74, 0.12) 40deg,
      transparent 48deg,
      rgba(200, 67, 26, 0.06) 56deg,
      transparent 64deg,
      rgba(230, 188, 74, 0.10) 72deg,
      transparent 360deg);
  opacity: 0.7;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.45;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 64px;
  align-items: center;
}
.hero-text { position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--saffron-dk);
  background: var(--paper);
  padding: 7px 14px 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-1);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(200, 67, 26, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200, 67, 26, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(200, 67, 26, 0.02); }
}

.hero-title {
  margin: 22px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -1.2px;
}
.hero-deva {
  display: block;
  font-family: var(--deva);
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.hero-en {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--saffron-dk);
  letter-spacing: -0.3px;
}
.hero-tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-3);
  margin: 14px 0 14px;
  font-weight: 400;
}
.hero-tagline em { color: var(--saffron-dk); font-style: normal; font-weight: 600; }
.hero-lede {
  font-size: 1.02rem;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 0 30px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-ctas {
  display: flex; flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stats > div {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stats dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.hero-symbol-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-symbol {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--gold-light), var(--saffron));
  padding: 10px;
  object-fit: contain;
  box-shadow:
    0 26px 60px rgba(107, 31, 8, 0.30),
    0 8px 22px rgba(107, 31, 8, 0.20),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ============ CONNECT STRIP ============ */
.connect-strip {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.connect-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.connect-text {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.connect-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.connect-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-weight: 500;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.connect-email:hover {
  background: var(--saffron);
  color: var(--paper);
  border-color: var(--saffron);
}
.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--cream);
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.socials a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ============ SHARED BLOCK ============ */
.block {
  padding: 92px 0;
  position: relative;
}
.block + .block { border-top: 1px solid var(--line); }
.chapter-alt { background: var(--paper); }

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 42px;
  max-width: 560px;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rule span {
  font-size: 18px;
  color: var(--gold-deep);
  line-height: 1;
}
.rule-on-dark::before, .rule-on-dark::after {
  background: linear-gradient(90deg, transparent, rgba(230, 188, 74, 0.5), transparent);
}
.rule-on-dark span { color: var(--gold-light); }

.section-mark {
  text-align: center;
  margin-bottom: 48px;
}
.kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--saffron-dk);
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: rgba(255, 251, 243, 0.7);
}
.section-mark h2,
.chapter-head h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}
.section-sub {
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  font-weight: 400;
}

/* ============ PREAMBLE ============ */
.preamble {
  background:
    radial-gradient(ellipse at top, rgba(230, 188, 74, 0.12), transparent 60%),
    var(--cream);
}
.preamble-card {
  background: var(--paper);
  border-radius: var(--rad-lg);
  padding: 56px 60px;
  box-shadow: var(--sh-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--saffron);
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.preamble-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--rad-lg) - 8px);
  pointer-events: none;
}
.preamble-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  position: relative;
}
.preamble-card p strong {
  font-weight: 600;
  color: var(--ink);
}
.preamble-card p em {
  font-style: normal;
  font-weight: 600;
  color: var(--saffron-dk);
}
.dropcap {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.95;
  float: left;
  padding: 4px 14px 0 0;
  color: var(--saffron-dk);
}
.preamble-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--gold-deep);
}
.preamble-sign .sign-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.preamble-sign .sign-mark {
  font-family: var(--deva);
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 1px;
}

/* ============ INDEX (TOC) ============ */
.index-block { background: var(--paper); }
.index-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.index-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  counter-reset: idx;
}
.idx {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 6px;
  padding: 28px 26px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.idx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 188, 74, 0) 0%, rgba(230, 188, 74, 0) 60%, rgba(200, 67, 26, 0.07) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.idx:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.idx:hover::before { opacity: 1; }
.idx .rn {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saffron-dk);
  line-height: 1;
  letter-spacing: 0.5px;
}
.idx .ttl {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin-top: 4px;
}
.idx .sub {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 400;
}
.idx .count {
  margin-top: 16px;
  align-self: end;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--saffron-dk);
}
/* ============ CHAPTER HEAD ============ */
.chapter { position: relative; padding: 100px 0; }
.chapter-head {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}
.rn-large {
  display: block;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.chapter-head .kicker { margin-bottom: 14px; }

/* ============ POLICY GRID ============ */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
.policy-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .policy-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid--wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .policy-grid { grid-template-columns: 1fr; }
}

/* policy card (uses <details>) */
.policy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.policy:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.policy[open] {
  border-color: var(--saffron);
  box-shadow: var(--sh-glow);
}
.chapter-alt .policy { background: var(--cream); }

.policy > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "code .     chev"
    "title title title"
    "teaser teaser teaser";
  align-items: center;
  gap: 8px 12px;
  position: relative;
  transition: background 0.18s ease;
}
.policy > summary::-webkit-details-marker { display: none; }
.policy > summary:hover { background: rgba(200, 67, 26, 0.025); }
.policy > summary .code {
  grid-area: code;
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 36px;
  padding: 3px 9px;
  background: var(--ink);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.4px;
  border-radius: 4px;
  align-self: start;
  width: fit-content;
}
.policy[open] > summary .code {
  background: var(--saffron-dk);
  color: var(--gold-light);
}
.policy > summary .title {
  grid-area: title;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.15px;
  line-height: 1.3;
  margin-top: 2px;
}
.policy > summary .teaser {
  grid-area: teaser;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
}
.policy > summary .chev {
  grid-area: chev;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream-warm);
  position: relative;
  transition: background 0.2s ease, transform 0.25s ease;
  align-self: start;
  flex-shrink: 0;
}
.policy > summary .chev::before,
.policy > summary .chev::after {
  content: "";
  position: absolute;
  background: var(--saffron-dk);
  border-radius: 1px;
  top: 50%;
  left: 50%;
}
.policy > summary .chev::before {
  width: 10px; height: 1.8px;
  transform: translate(-50%, -50%);
}
.policy > summary .chev::after {
  width: 1.8px; height: 10px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.policy[open] > summary .chev {
  background: var(--saffron);
}
.policy[open] > summary .chev::before { background: var(--paper); }
.policy[open] > summary .chev::after {
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(90deg);
}

.policy-body {
  padding: 0 22px 22px 22px;
  border-top: 1px dashed var(--line-2);
  margin-top: -2px;
  padding-top: 18px;
  animation: slide-down 0.32s ease;
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.policy-body p {
  margin: 0 0 12px;
  font-size: 0.97rem;
  color: var(--ink-3);
  line-height: 1.65;
}
.policy-body p:last-child { margin-bottom: 0; }

/* penalty block */
.penalty {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(107, 31, 8, 0.04), rgba(107, 31, 8, 0.01));
  border-left: 3px solid var(--saffron-deep);
  border-radius: 0 var(--rad-sm) var(--rad-sm) 0;
  font-size: 0.93rem;
  color: var(--ink-3);
}
.penalty-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 6px;
}
.penalty-label::before {
  content: "⚠";
  font-size: 11px;
}
.penalty p { margin: 0; }

/* ============ DEEP DIVE (B2-Special) ============ */
.deep-dive {
  margin: 72px auto 24px;
  max-width: 1100px;
  background:
    radial-gradient(ellipse at top right, rgba(230, 188, 74, 0.18), transparent 60%),
    linear-gradient(135deg, var(--saffron-deep) 0%, #4A1505 100%);
  color: var(--paper);
  border-radius: var(--rad-lg);
  border: 1px solid rgba(230, 188, 74, 0.18);
  overflow: hidden;
  position: relative;
  box-shadow: var(--sh-3);
}
.deep-dive::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.6 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.deep-dive > summary {
  list-style: none;
  cursor: pointer;
  padding: 36px 44px;
  position: relative;
  display: block;
}
.deep-dive > summary::-webkit-details-marker { display: none; }
.dd-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.dd-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(230, 188, 74, 0.16);
  border: 1px solid rgba(230, 188, 74, 0.32);
  color: var(--gold-light);
  border-radius: 99px;
}
.dd-tag {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 400;
}
.dd-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--paper);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.dd-lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 720px;
}
.dd-link {
  display: inline-block;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.4px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.deep-dive[open] .dd-link { display: none; }
.deep-dive:hover .dd-link { transform: translateX(4px); }
.dd-body {
  padding: 0 44px 44px 44px;
  position: relative;
  animation: slide-down 0.32s ease;
}
.dd-list {
  margin: 14px 0 0;
  display: grid;
  gap: 18px;
}
.dd-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(230, 188, 74, 0.18);
}
.dd-list dt {
  font-size: 0.82rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
}
.dd-list dd {
  margin: 0;
  color: rgba(255, 251, 243, 0.92);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============ MEMBERSHIP / PHILOSOPHY ============ */
.chapter-membership {
  background:
    radial-gradient(ellipse at bottom, rgba(230, 188, 74, 0.10), transparent 60%),
    var(--paper);
}
.philosophy {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 36px 40px;
  margin-bottom: 48px;
  box-shadow: var(--sh-1);
  position: relative;
}
.philosophy h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.philosophy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.philosophy-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.philosophy-list li:first-child { border-top: none; padding-top: 0; }
.ph-key {
  color: var(--saffron-deep);
  font-size: 1rem;
  font-weight: 700;
}
.ph-val { color: var(--ink-3); font-size: 0.95rem; }

.block-h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 28px;
  letter-spacing: -0.3px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 26px 24px 24px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.tier::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--saffron));
}
.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tier-num {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--saffron-dk);
}
.tier-emoji { font-size: 22px; }
.tier h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.tier > p {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 0.94rem;
}
.tier-detail {
  margin: 0;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
}
.tier-detail > div { display: grid; gap: 3px; }
.tier-detail dt {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--saffron-deep);
}
.tier-detail dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* exam date */
.exam-date {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
  background: linear-gradient(135deg, var(--ink) 0%, #3A1A0E 100%);
  color: var(--paper);
  padding: 4px;
  border-radius: var(--rad-lg);
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}
.exam-date::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(230, 188, 74, 0.22), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(200, 67, 26, 0.18), transparent 60%);
  pointer-events: none;
}
.ed-inner {
  position: relative;
  padding: 28px 32px;
  border: 1px solid rgba(230, 188, 74, 0.22);
  border-radius: calc(var(--rad-lg) - 4px);
}
.ed-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.ed-value {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.ed-value sup { font-size: 0.5em; vertical-align: super; }
.ed-sub {
  margin-top: 8px;
  font-size: 0.88rem;
  color: rgba(255,251,243, 0.78);
}

.rounds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.round {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.round .num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 0.95;
  color: var(--saffron-dk);
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}
.round h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.round p { margin: 0; font-size: 0.93rem; color: var(--ink-3); line-height: 1.55; }

/* ============ SUPPORTERS ============ */
.supporters {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}
.supporters-head { text-align: center; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}
.support-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 28px 26px;
  box-shadow: var(--sh-1);
  position: relative;
}
.sc-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 0.95;
  color: var(--gold-deep);
  margin-bottom: 14px;
  letter-spacing: -1.5px;
}
.support-card h4 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.support-card p { margin: 0; font-size: 0.95rem; color: var(--ink-3); line-height: 1.6; }

.supporters-cta {
  text-align: center;
  padding: 12px 24px 36px;
}
.supporters-cta-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--saffron-dk);
  margin: 0 0 24px;
}
.supporters-socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.supporters-socials a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 99px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--sh-1);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.supporters-socials a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200, 67, 26, 0.22);
}
.supporters-socials svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ============ CLOSING ============ */
.closing {
  position: relative;
  text-align: center;
  padding: 100px 24px;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}
.closing-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top, rgba(230, 188, 74, 0.30), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(200, 67, 26, 0.18), transparent 60%),
    linear-gradient(135deg, var(--saffron-deep) 0%, var(--ink) 100%);
}
.closing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.92 0 0 0 0 0.6 0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.closing-inner { position: relative; }
.closing h2 {
  font-family: var(--deva);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 auto 22px;
  color: var(--paper);
  font-weight: 400;
}
.closing blockquote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  max-width: 760px;
  margin: 0 auto;
  color: var(--gold-light);
  border: none;
  padding: 0;
  line-height: 1.55;
}
.closing .rule { max-width: 240px; margin: 0 auto 28px; }
.closing .rule:last-child { margin: 28px auto 0; }

/* ============ FOOTER ============ */
footer {
  background: #0F0703;
  color: #B89F8B;
  padding: 60px 0 32px;
  position: relative;
  border-top: 1px solid rgba(230, 188, 74, 0.10);
}
.footer-inner { display: grid; gap: 36px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-mark {
  width: 48px; height: 48px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-light), var(--saffron));
  display: grid; place-items: center;
  padding: 2px;
  flex-shrink: 0;
}
.foot-mark img {
  width: 100%; height: 100%;
  border-radius: 9px;
  object-fit: contain;
  background: var(--gold-light);
}
.foot-brand .name {
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.foot-brand .name-deva {
  font-family: var(--deva);
  font-size: 12px;
  color: #B89F8B;
  letter-spacing: 0.6px;
  margin-top: 2px;
}
.tagline-foot {
  margin: 0;
  color: var(--gold-light);
  opacity: 0.85;
  font-size: 1rem;
  font-weight: 400;
}

.footer-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--cream);
  font-size: 0.9rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.contact-pill:hover {
  background: var(--saffron);
  color: var(--paper);
  border-color: var(--saffron);
}
.footer-connect .socials {
  flex-wrap: nowrap;
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.footer-connect .socials a {
  width: 34px; height: 34px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #8A7868;
}
.founder strong { color: var(--cream); font-weight: 600; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-grid { gap: 44px; }
  .hero-stats { max-width: 100%; }
  .hero-stats > div { padding-right: 22px; margin-right: 22px; }
  .dd-list > div { grid-template-columns: 160px 1fr; gap: 18px; }
  .philosophy-list li { grid-template-columns: 170px 1fr; gap: 18px; }
}

@media (max-width: 920px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-symbol-wrap { order: -1; }
  .hero-symbol { max-width: 260px; }
  .hero-eyebrow { margin: 0 auto; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 100%;
  }
  .hero-stats > div { padding-right: 12px; margin-right: 12px; text-align: center; }

  .deep-dive > summary, .dd-body { padding-left: 28px; padding-right: 28px; }
  .dd-body { padding-bottom: 32px; }
  .preamble-card { padding: 40px 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-mid {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    padding: 12px;
    justify-content: stretch;
  }
  .nav-mid.open,
  .nav-mid:has(.nav-links.open) { display: flex; }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 6px; }
  .nav-inner { position: relative; padding: 12px 16px; }
  .nav-right .btn-sm { display: none; }
  .nav { position: sticky; }

  .block, .chapter { padding: 64px 0; }
  .container { padding: 0 18px; }
  .section-mark, .chapter-head { margin-bottom: 36px; }
  .preamble-card { padding: 34px 24px; }
  .preamble-card::before { inset: 6px; }
  .dropcap { font-size: 3.6rem; padding-right: 10px; }

  .policy > summary { padding: 16px 18px; gap: 4px 12px; }
  .policy-body { padding: 14px 18px 18px; }

  .deep-dive > summary, .dd-body { padding-left: 22px; padding-right: 22px; }
  .dd-list > div { grid-template-columns: 1fr; gap: 6px; padding-top: 16px; }
  .dd-list dt { font-size: 0.78rem; }

  .philosophy { padding: 24px 22px; }
  .philosophy-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .ph-key { font-size: 1rem; }

  .index-grid { grid-template-columns: 1fr; }
  .idx { padding: 22px 22px 20px; }

  .footer-top { padding-bottom: 22px; flex-direction: column; text-align: center; align-items: center; }
  .footer-connect { gap: 14px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav-brand .title { font-size: 15.5px; }
  .nav-brand .subtitle { font-size: 10px; }
  .nav-mark { width: 38px; height: 38px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .hero { padding: 48px 0 56px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0; }
  .hero-stats > div { padding-right: 8px; margin-right: 8px; }
  .hero-stats dd { font-size: 1.2rem; }
  .ribbon { font-size: 11px; }
}

/* ============ PRINT ============ */
@media print {
  .nav, .ribbon, .nav-toggle, .hero-ctas, .index-controls, .read-progress, .closing-bg, .hero-bg { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .policy, .deep-dive { open: open; }
  details > summary { list-style: none; }
  details > div, .policy-body, .dd-body { display: block !important; }
  .block, .chapter { padding: 24px 0; page-break-inside: avoid; }
  .closing { color: black; background: white; }
  .closing h2, .closing blockquote { color: black; }
  a { color: black; }
}
