/* ============================================================
   Sikwin — Editorial Sports Desk
   ============================================================
   Grass Field palette. Paper-and-ink surfaces. Mosaic newsroom.
   Light theme only. No framework. No Tailwind. No JS framework.
   ============================================================ */

:root {
  --primary: #2C7A36;
  --primary-ink: #1F5C26;
  --accent: #B05D00;
  --accent-ink: #7A3D00;
  --background: #F6FBF3;
  --surface: #FFFFFF;
  --surface-2: #E6F2DF;
  --surface-3: #F0F7EB;
  --text: #1F3020;
  --text-soft: #2D3F31;
  --muted: #5C705D;
  --border: #CBE0C4;
  --border-soft: #DDEADD;
  --rule: #1F3020;
  --shadow-sm: 0 1px 2px rgba(31, 48, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(31, 48, 32, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --gap-1: 0.5rem;
  --gap-2: 1rem;
  --gap-3: 1.5rem;
  --gap-4: 2rem;
  --gap-5: 3rem;
  --gap-6: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Devanagari', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--primary);
}

/* Reset underline on visually button-like or chrome links where the visible
   surface (background, border, icon) already conveys interactivity. */
button,
.brand-mark,
.primary-nav a,
.header-cta,
.header-cta-ghost,
.hamburger,
.mobile-drawer nav a,
.hero-cta-primary,
.hero-cta-secondary,
.app-access-cta,
.app-access-stamp,
.store-badge,
.rail-list a,
.rail-chip-row a,
.site-footer a,
.sticky-cta-button,
.internal-link-block a,
.contact-list a,
a.btn,
a.button {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.2; margin-bottom: 0.6em; }
h3 { font-size: 22px; line-height: 1.3; margin-bottom: 0.4em; }
h4 { font-size: 18px; line-height: 1.35; margin-bottom: 0.3em; }

@media (min-width: 720px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  body { font-size: 18px; }
}

p {
  margin: 0 0 1em 0;
}

/* =================== HEADER =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(246, 251, 243, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  border: none;
  flex: 0 0 auto;
}

.brand-mark:hover {
  border: none;
}

.brand-mark-glyph {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand-mark-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -2px;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: 1 1 auto;
  justify-content: center;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.primary-nav a:hover {
  background: var(--surface-2);
  color: var(--primary-ink);
  border: none;
}

.primary-nav a.active {
  background: var(--surface-2);
  color: var(--primary-ink);
  font-weight: 600;
}

.header-tools {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-ink);
  border: none;
}

.header-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: transparent;
  color: var(--text-soft);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .hamburger { display: inline-flex; }
  .primary-nav { display: none; }
  .header-tools { display: none; }
}

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
  .header-tools { display: flex; }
  .hamburger { display: none; }
}

/* =================== MOBILE DRAWER =================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(31, 48, 32, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 95;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.mobile-drawer[data-open="true"] {
  transform: translateX(0);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  border: none;
}

.mobile-drawer nav a:hover {
  background: var(--surface-2);
  border: none;
}

.mobile-drawer .drawer-cta {
  margin-top: 16px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 48, 32, 0.4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* =================== MASTHEAD STRIP =================== */
.masthead-strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.masthead-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.masthead-strip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}

.masthead-strip-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.masthead-strip-meta strong {
  color: var(--primary-ink);
  font-weight: 600;
}

.masthead-strip-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =================== MOSAIC HERO =================== */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-panel-headline {
  padding: 40px 24px 28px;
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.hero-panel-headline .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-panel-headline h1 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-panel-headline .lede {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 20px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
}

.hero-cta-primary:hover { background: var(--accent-ink); border: none; }

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--primary-ink);
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}

.hero-cta-secondary:hover { background: var(--surface-2); border-color: var(--primary-ink); }

.hero-panel-ticker {
  padding: 24px;
  background: var(--surface-3);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.hero-panel-ticker .ticker-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-ink);
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.fixture-ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fixture-ticker-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.fixture-ticker-list li:last-child { border-bottom: none; }

.fixture-ticker-time {
  font-weight: 700;
  color: var(--primary-ink);
  font-family: 'Poppins', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.fixture-ticker-meta {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.hero-panel-cutout {
  position: relative;
  background: linear-gradient(155deg, #E6F2DF 0%, #F0F7EB 70%, #FFFFFF 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.hero-panel-cutout::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.hero-panel-cutout::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.hero-cutout-quote {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.hero-cutout-attribution {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.hero-cutout-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.85;
}

.hero-cutout-img + .hero-cutout-quote {
  margin-top: 0;
}

.hero-cutout-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.hero-cutout-mini {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.hero-cutout-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 720px) {
  .hero-mosaic {
    grid-template-columns: 7fr 3fr 2fr;
  }
  .hero-panel-headline, .hero-panel-ticker, .hero-panel-cutout {
    border-bottom: none;
  }
  .hero-panel-headline {
    padding: 56px 40px 40px;
  }
  .hero-panel-headline h1 {
    font-size: 48px;
  }
  .hero-panel-ticker, .hero-panel-cutout {
    padding: 32px 24px;
  }
}

@media (min-width: 1024px) {
  .hero-mosaic {
    grid-template-columns: 7fr 3fr 2fr;
  }
  .hero-panel-headline {
    padding: 72px 56px 56px;
  }
  .hero-panel-headline h1 {
    font-size: 56px;
  }
}

/* =================== SHELL CONTAINER =================== */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .chapter-grid {
    grid-template-columns: 200px 1fr;
    gap: 48px;
  }
}

/* =================== EDITORIAL INDEX RAIL =================== */
.rail {
  display: none;
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 24px 0 0 0;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .rail { display: block; }
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
  position: relative;
}

.rail-list li {
  position: relative;
}

.rail-list a {
  display: block;
  padding: 10px 12px 10px 18px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 0 6px 6px 0;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.rail-list a:hover {
  background: var(--surface-2);
  color: var(--primary-ink);
  border: none;
}

.rail-list a.active {
  background: var(--surface);
  color: var(--primary-ink);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  margin-left: -1px;
}

.rail-list a.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.rail-num {
  display: inline-block;
  font-family: 'Poppins', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-right: 8px;
  letter-spacing: 0.04em;
}

/* Mobile chip rail */
.rail-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 60;
  scrollbar-width: none;
}

.rail-chip-row::-webkit-scrollbar { display: none; }

.rail-chip-row a {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.rail-chip-row a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (min-width: 1024px) {
  .rail-chip-row { display: none; }
}

/* =================== CHAPTER SECTIONS =================== */
.chapter {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: 80px;
}

.chapter:last-child { border-bottom: none; }

.chapter-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-ink);
}

.chapter-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.chapter h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 32ch;
}

.chapter-summary {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 65ch;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 1024px) {
  .chapter h2 {
    font-size: 40px;
  }
}

/* =================== LEDGER (fixtures table) =================== */
.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
  margin: 0;
}

.ledger thead {
  background: var(--primary);
  color: #fff;
}

.ledger th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ledger td {
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--text);
}

.ledger tbody tr:last-child td { border-bottom: none; }

.ledger tbody tr:hover {
  background: var(--surface-3);
}

.ledger .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--surface-2);
  color: var(--primary-ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.ledger .tag-fixture {
  background: var(--surface-2);
  color: var(--primary-ink);
}

.ledger .tag-live {
  background: rgba(176, 93, 0, 0.1);
  color: var(--accent-ink);
  border-color: rgba(176, 93, 0, 0.3);
}

.ledger .tag-up {
  background: rgba(44, 122, 54, 0.1);
  color: var(--primary-ink);
  border-color: rgba(44, 122, 54, 0.3);
}

@media (max-width: 720px) {
  .ledger-wrap { overflow-x: auto; }
  .ledger { min-width: 560px; }
}

.ledger-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
}

.ledger-wrap:focus-visible {
  outline: 2px solid var(--primary-ink);
  outline-offset: 2px;
}

/* =================== CAPTAIN CUTOUT STRIP =================== */
.cutout-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 720px) {
  .cutout-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.cutout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cutout-card-head {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cutout-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cutout-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.cutout-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cutout-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cutout-card-role {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.cutout-card-form {
  display: flex;
  gap: 6px;
  margin: 4px 0;
}

.cutout-card-form span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-soft);
}

.cutout-card-form span.w {
  background: var(--primary);
  color: #fff;
}

.cutout-card-form span.l {
  background: rgba(176, 93, 0, 0.15);
  color: var(--accent-ink);
}

.cutout-card-summary {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

.cutout-card-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-soft);
}

.cutout-card-stat strong {
  font-size: 18px;
  color: var(--primary-ink);
  font-weight: 700;
}

.form-arrow {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-ink);
  border: 1px solid #ffffff;
}

.form-arrow.down {
  background: #ffffff;
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* =================== NARRATIVE BLOCK =================== */
.narrative {
  max-width: 65ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.narrative p {
  margin-bottom: 1.1em;
}

.narrative p:first-child {
  font-size: 18px;
  color: var(--text);
}

.narrative + .narrative-side {
  margin-top: 24px;
}

.narrative-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
}

@media (min-width: 720px) {
  .narrative-with-side {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
  }
}

.narrative-side h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-ink);
  margin-bottom: 12px;
}

.narrative-side dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  font-size: 14px;
}

.narrative-side dt {
  color: var(--muted);
  font-weight: 500;
}

.narrative-side dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

/* =================== APP ACCESS =================== */
.app-access {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.app-access::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

@media (min-width: 720px) {
  .app-access {
    grid-template-columns: 1fr 320px;
    align-items: center;
    padding: 40px;
  }
}

.app-access h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.app-access p {
  color: var(--text-soft);
  margin-bottom: 16px;
}

.app-access-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.app-access-stamp::before {
  content: "✓";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.store-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  line-height: 1.2;
}

.store-badge:hover { background: var(--primary-ink); border: none; }

.store-badge small {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.app-access-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  width: 100%;
  text-align: center;
}

.app-access-cta:hover { background: var(--accent-ink); border: none; }

.app-access-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-access-card h4 {
  font-size: 14px;
  color: var(--primary-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.app-access-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.app-access-card ul li {
  padding-left: 18px;
  position: relative;
}

.app-access-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* =================== SOURCES REGISTRY =================== */
.sources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

@media (min-width: 720px) {
  .sources-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sources-list li {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.sources-list li:last-child { border-bottom: none; }

.sources-list li:hover {
  background: var(--surface-3);
}

.sources-list .src-name {
  font-weight: 600;
  color: var(--text);
}

.sources-list .src-meta {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.sources-list .src-updated {
  font-size: 11px;
  color: var(--primary-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sources-list a {
  border: none;
  color: var(--primary-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.corrections-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.corrections-col h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.corrections-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.corrections-col ul li {
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

.corrections-col ul li time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =================== PROFILE RAIL =================== */
.profile-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 720px) {
  .profile-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-ink);
  font-size: 16px;
  flex-shrink: 0;
}

.profile-card-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.profile-card-role {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-card-quote {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.profile-card-note {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

/* =================== FAQ TILE GRID =================== */
.faq-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 720px) {
  .faq-tile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-tile h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.faq-tile p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.faq-tile-meta {
  font-size: 11px;
  color: var(--primary-ink);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .faq-tile-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* =================== RESPONSIBLE BOUNDARY =================== */
.responsible-boundary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

.responsible-boundary h3 {
  font-size: 20px;
  color: var(--primary-ink);
  margin-bottom: 12px;
}

.responsible-boundary p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 75ch;
}

.responsible-boundary-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--primary-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

/* =================== COLOPHON =================== */
.colophon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

@media (min-width: 720px) {
  .colophon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .colophon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.colophon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.colophon-card h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.colophon-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.colophon-card ul li a {
  font-size: 13px;
  color: var(--text-soft);
  border: none;
}

.colophon-card ul li a:hover {
  color: var(--primary-ink);
  border: none;
  text-decoration: underline;
}

.colophon-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

/* =================== FOOTER =================== */
.site-footer {
  background: var(--text);
  color: #fff;
  padding: 56px 0 100px;
  margin-top: 0;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .site-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  border: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
  border: none;
}

.site-footer-brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.site-footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  max-width: 36ch;
}

.site-footer-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer-meta a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.site-footer-meta a:hover {
  color: #fff;
  border: none;
}

/* =================== MOBILE STICKY CTA =================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(31, 48, 32, 0.08);
}

.sticky-cta-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.3;
}

.sticky-cta-text strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 2px;
}

.sticky-cta-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.sticky-cta-button:hover {
  background: var(--accent-ink);
  border: none;
}

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* =================== PAGE SECTIONS =================== */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.page-hero .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
  max-width: 22ch;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .page-hero h1 {
    font-size: 52px;
  }
}

.page-hero .lede {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 65ch;
  line-height: 1.6;
  margin: 0;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--primary-ink);
  border: none;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

@media (min-width: 1024px) {
  .page-grid {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}

.page-rail {
  display: none;
  position: sticky;
  top: 88px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .page-rail { display: block; }
}

.page-rail h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.page-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-rail ul a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: 6px;
  border: none;
}

.page-rail ul a:hover {
  background: var(--surface-2);
  color: var(--primary-ink);
  border: none;
}

.page-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  padding: 32px 0;
}

.page-content h2 {
  font-size: 28px;
  margin: 32px 0 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}

@media (min-width: 1024px) {
  .page-content h2 { font-size: 32px; }
}

.page-content h3 {
  font-size: 20px;
  margin: 24px 0 10px;
}

.page-content p {
  margin: 0 0 1.1em 0;
}

.page-content ul, .page-content ol {
  margin: 0 0 1.2em 0;
  padding-left: 22px;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--accent-ink);
}

.page-content figure {
  margin: 24px 0;
}

.page-content figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}

.page-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

.content-image-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
  align-items: center;
}

@media (min-width: 720px) {
  .content-image-row {
    grid-template-columns: 1fr 1fr;
  }
  .content-image-row.reverse {
    grid-template-columns: 1fr 1fr;
  }
}

.content-image-row img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}

.content-image-row figcaption {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
}

.callout strong {
  color: var(--primary-ink);
}

.callout.warn {
  border-left-color: var(--accent);
  background: rgba(176, 93, 0, 0.06);
}

.callout.warn strong {
  color: var(--accent-ink);
}

.checklist {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.checklist li {
  padding: 12px 14px 12px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text);
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.internal-link-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 32px 0;
}

.internal-link-block h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-ink);
  margin-bottom: 12px;
}

.internal-link-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 720px) {
  .internal-link-block ul {
    grid-template-columns: 1fr 1fr;
  }
}

.internal-link-block ul li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  font-size: 14px;
  color: var(--text);
}

.internal-link-block ul li a:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  border-bottom-color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  margin-right: 6px;
}

.pill.accent {
  background: rgba(176, 93, 0, 0.1);
  color: var(--accent-ink);
  border-color: rgba(176, 93, 0, 0.3);
}

/* =================== MOBILE OVERFLOW GUARDS =================== */
/* Grid items default to min-width: auto (= min-content), so a 560px table in a
   1fr column can push the column to 562px and extend document scrollWidth past
   the viewport. Setting min-width: 0 on the grid items lets the inner
   .ledger-wrap (which already has overflow-x: auto) handle the table scroll. */
.chapter-grid > main,
.page-grid > article,
.page-grid > aside {
  min-width: 0;
}

.chapter,
.page-content,
.page-content > section {
  min-width: 0;
  max-width: 100%;
}

/* Keep the off-screen drawer from ever exceeding the viewport, even if a user
   rotates to a tiny width. The drawer is fixed + translateX(100%) so it does
   not contribute to document scrollWidth, but its own width should still be
   bounded. */
@media (max-width: 1023px) {
  .mobile-drawer {
    max-width: calc(100vw - 16px);
  }
}

/* =================== UTILITY =================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
  border: none;
}

.skip-link:focus {
  top: 0;
  border: none;
}

.text-soft { color: var(--text-soft); }
.text-muted { color: var(--muted); }
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 32px 0;
}
