/* Casinolivein — Factory V9 FSL11
   Layout 058 Blue Trust · Homepage 146 · Menu 034 category-rail
   Color LIGHT_004 Sandstone Matchday · Type 008 geometric-sport · CTA 015 */
:root {
  --primary: #1769E8;
  --primary-ink: #0B3F99;
  --accent: #0EA5A8;
  --sand: #F7F3EA;
  --background: #F4F8FF;
  --surface: #FFFFFF;
  --surface-2: #EEF4FF;
  --surface-sand: #FBF8F1;
  --text: #1A2332;
  --muted: #52647C;
  --border: #D5DFEE;
  --rule: #C5D2E6;
  --danger: #B42318;
  --ok: #0F7A4A;
  --shadow: 0 12px 32px rgba(26, 35, 50, 0.07);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 72px;
  --sticky-cta-h: 64px;
  --max: 1180px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
  --focus: 0 0 0 3px rgba(23, 105, 232, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .story-rail { scroll-snap-type: none; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--sand) 0, var(--background) 220px);
  padding-top: var(--header-h);
  padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 10000;
  background: var(--text); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, 1280px); margin-inline: auto; }

/* Header — sticky category-rail */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.06);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none; font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), #3B82F6);
  color: #fff; display: grid; place-items: center; font-size: 0.95rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(23, 105, 232, 0.28);
}
.brand-text { font-size: 1.05rem; }
.brand-text span { color: var(--primary); }

.nav-desktop { display: none; justify-content: center; min-width: 0; }
.nav-desktop ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0.1rem 0.75rem;
}
.nav-desktop a {
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 700;
  white-space: nowrap; padding: 0.35rem 0.15rem;
  font-family: var(--font-display);
}
.nav-desktop a[aria-current="page"],
.nav-desktop a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: 0.92rem;
  line-height: 1; border-radius: 999px; border: 2px solid transparent;
  padding: 0.85rem 1.2rem; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(23, 105, 232, 0.28);
}
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary-ink); border-color: transparent; padding-inline: 0.4rem; }
.header-cta { display: none; }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer;
}
.nav-toggle-bars {
  width: 18px; height: 12px; position: relative; display: block;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); border-radius: 2px; transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(100%, 360px);
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(26,35,50,.12);
  transform: translateX(105%); transition: transform .22s ease;
  z-index: 950; overflow-y: auto; padding: 1.25rem 1.25rem 6rem;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.nav-drawer.is-open[hidden] { visibility: visible; pointer-events: auto; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.nav-drawer a {
  display: block; padding: 0.85rem 0.9rem; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 700; font-family: var(--font-display);
}
.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] { background: var(--surface-2); color: var(--primary); }
.drawer-cta { margin-top: 1rem; display: grid; gap: 0.6rem; }
.nav-backdrop {
  position: fixed; inset: var(--header-h) 0 0 0; background: rgba(26,35,50,.35);
  z-index: 940; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  body { padding-bottom: 0; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--text);
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
p { margin: 0 0 1rem; color: var(--text); max-width: 68ch; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.65rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.section { padding: clamp(2.2rem, 4.5vw, 3.8rem) 0; }
.section-tight { padding: 1.35rem 0; }
.section-rule {
  border-top: 1px solid var(--rule);
}
.panel {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.soft-band { background: linear-gradient(180deg, var(--surface-sand), var(--background)); }
.ink-band { background: #13213A; color: #E8F1FF; }
.ink-band h2, .ink-band h3, .ink-band p { color: #E8F1FF; }
.ink-band .muted { color: #A9BCD8; }
.ink-band a { color: #9EC5FF; }

/* Ticker signature device */
.ticker {
  background: #13213A;
  color: #E8F1FF;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  min-height: 42px;
  padding: 0.45rem 0;
}
.ticker-label {
  flex: 0 0 auto;
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #7DD3D5; white-space: nowrap;
}
.ticker-track {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-items {
  display: flex; gap: 2rem; width: max-content;
  animation: ticker-move 42s linear infinite;
}
.ticker-items span {
  font-size: 0.9rem; white-space: nowrap; color: #D7E4F8;
}
.ticker-items strong { color: #fff; font-weight: 700; }
@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-items { animation: none; flex-wrap: wrap; width: auto; gap: 0.75rem 1.25rem; }
  .ticker-track { mask-image: none; overflow: visible; }
}

/* Framed media */
.frame {
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.frame img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.frame.ratio-16x9 img { aspect-ratio: 16 / 9; }
.frame.ratio-4x3 img { aspect-ratio: 4 / 3; }
.figure { margin: 0 0 1.5rem; }
.figure figcaption {
  margin-top: 0.55rem; font-size: 0.88rem; color: var(--muted);
}

/* Hero editorial-lead / image-led dispatch */
.hero { padding: clamp(1.4rem, 3.5vw, 2.6rem) 0 0.5rem; }
.hero-dispatch {
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-media { position: relative; min-width: 0; }
.hero-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  min-height: 240px;
}
.hero-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), #fff);
  border-top: 3px solid var(--primary);
  min-width: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
.hero-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); max-width: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 0.35rem 0.7rem;
  font-size: 0.8rem; font-weight: 700; font-family: var(--font-display);
  white-space: nowrap;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (min-width: 960px) {
  .hero-dispatch {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    align-items: stretch;
  }
  .hero-media img { height: 100%; min-height: 420px; aspect-ratio: auto; object-fit: cover; }
  .hero-copy {
    border-top: 0;
    border-left: 3px solid var(--primary);
    display: flex; flex-direction: column; justify-content: center;
  }
}

/* Proof / editorial index rail */
.proof-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof-item {
  padding: 1rem 1.1rem;
  min-width: 0;
  border-bottom: 1px solid var(--rule);
}
.proof-item:last-child { border-bottom: 0; }
.proof-item strong {
  display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.25rem;
}
.proof-item span { color: var(--muted); font-size: 0.9rem; display: block; }
@media (min-width: 800px) {
  .proof-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof-item { border-bottom: 0; border-right: 1px solid var(--rule); }
  .proof-item:last-child { border-right: 0; }
}

/* Ruled editorial index */
.ruled-index {
  display: grid; gap: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.ruled-index a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.15rem;
  text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.ruled-index a:last-child { border-bottom: 0; }
.ruled-index a:hover { background: var(--surface-2); }
.ruled-num {
  font-family: var(--font-display); font-weight: 800; color: var(--primary);
  font-size: 0.95rem; white-space: nowrap;
}
.ruled-index strong {
  display: block; font-family: var(--font-display); margin-bottom: 0.15rem;
}
.ruled-index span { color: var(--muted); font-size: 0.9rem; }
.ruled-go {
  font-family: var(--font-display); font-weight: 800; color: var(--primary); white-space: nowrap;
}

/* Horizontal story rail — interaction signature */
.story-rail-wrap { position: relative; }
.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 78%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.75rem;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) {
  .story-rail { grid-auto-columns: minmax(280px, calc(25% - 0.75rem)); }
}
.story-card {
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
  display: flex; flex-direction: column;
}
.story-card .frame { border-radius: 0; box-shadow: none; }
.story-card .frame img { aspect-ratio: 4 / 3; }
.story-body { padding: 1rem 1.05rem 1.15rem; }
.story-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem;
  margin-bottom: 0.55rem;
}
.story-body h3 { margin-bottom: 0.35rem; font-size: 1.08rem; }
.story-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Comparison ledger */
.ledger-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
table.ledger {
  width: 100%; border-collapse: collapse; min-width: 640px;
  font-size: 0.95rem;
}
table.ledger th, table.ledger td {
  padding: 0.9rem 1rem; text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.ledger th {
  background: var(--surface-2);
  font-family: var(--font-display); font-weight: 800;
  white-space: nowrap;
}
table.ledger tr:last-child td { border-bottom: 0; }
table.ledger td strong { color: var(--primary-ink); }
.mark-cyan { color: var(--accent); font-weight: 800; }

/* Diagram board */
.diagram-board { display: grid; gap: 1rem; }
@media (min-width: 860px) {
  .diagram-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.diagram-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  min-width: 0;
}
.tag {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 0.25rem 0.6rem;
  font-size: 0.75rem; font-weight: 800; font-family: var(--font-display);
  white-space: nowrap;
}
.tag-ok { background: #DCF5E8; color: var(--ok); }
.tag-warn { background: #FDECEC; color: var(--danger); }
.tag-info { background: var(--surface-2); color: var(--primary-ink); }

/* Criteria rows */
.criteria-list { display: grid; gap: 0.75rem; }
.criteria-row {
  display: grid; gap: 0.55rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  min-width: 0;
}
@media (min-width: 800px) {
  .criteria-row {
    grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, 1.4fr);
    align-items: start;
  }
}
.criteria-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2);
  color: var(--primary); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
}

/* Editorial split */
.split { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .split.reverse { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .split.reverse .split-media { order: -1; }
}
.split > * { min-width: 0; }

/* Action rail */
.action-rail {
  display: grid; gap: 1rem;
  background: linear-gradient(135deg, #EAF2FF, #E8FBF8);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.9rem);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .action-rail { grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; }
}
.disclosure { font-size: 0.88rem; color: var(--muted); margin-top: 0.65rem; max-width: none; }

/* Control panel */
.control-grid { display: grid; gap: 0.85rem; }
@media (min-width: 760px) {
  .control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.control-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1.05rem;
  min-width: 0;
}
.control-card h3 { font-size: 1.05rem; }

/* Cards */
.card-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 760px) {
  .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card-grid-3 { display: grid; gap: 1rem; }
@media (min-width: 860px) {
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.card-body { padding: 1.05rem 1.1rem 1.2rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  font-family: var(--font-display); font-weight: 800; color: var(--primary);
  text-decoration: none; margin-top: 0.7rem; display: inline-flex;
}

/* Feed strip */
.feed-list { display: grid; gap: 0.75rem; }
.feed-item {
  display: grid; gap: 0.35rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.95rem 1.05rem;
  min-width: 0;
}
@media (min-width: 800px) {
  .feed-item { grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; }
}
.feed-date {
  font-family: var(--font-display); font-weight: 800; font-size: 0.82rem;
  color: var(--accent); white-space: nowrap;
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.2rem 0.9rem;
}
.faq-item summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 800;
  padding: 0.9rem 0; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--primary); }
.faq-item p { color: var(--muted); padding-bottom: 0.85rem; }

/* Chapter / topic rail */
.chapter-index {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px);
  gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch;
}
.chapter-index a {
  scroll-snap-align: start;
  display: block; background: var(--surface);
  border-radius: var(--radius-sm); padding: 1rem; text-decoration: none; color: var(--text);
  min-width: 0; box-shadow: var(--shadow);
}
.chapter-index a strong {
  display: block; font-family: var(--font-display); margin-bottom: 0.25rem; color: var(--primary-ink);
}
.chapter-index a span { color: var(--muted); font-size: 0.9rem; }

/* Page hero for child routes */
.page-hero { padding: 1.6rem 0 0.4rem; }
.page-hero-grid { display: grid; gap: 1.1rem; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  font-size: 0.88rem; color: var(--muted); margin-bottom: 0.75rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0;
}

/* Content article */
.prose { max-width: 760px; }
.prose > * { max-width: 100%; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose p, .prose li, .prose h2, .prose h3 {
  overflow-wrap: normal;
  word-break: normal;
}
.callout {
  border-left: 4px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}
.callout strong { display: block; margin-bottom: 0.25rem; font-family: var(--font-display); }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li {
  position: relative; padding: 0.55rem 0.55rem 0.55rem 2.1rem;
  border-bottom: 1px solid var(--rule);
}
.checklist li::before {
  content: ""; position: absolute; left: 0.35rem; top: 0.85rem;
  width: 12px; height: 12px; border-radius: 4px; background: var(--accent);
}
.toc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.15rem; margin: 1rem 0 1.5rem;
  box-shadow: var(--shadow);
}
.toc strong { display: block; font-family: var(--font-display); margin-bottom: 0.45rem; }
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc a { text-decoration: none; font-weight: 600; }

/* Related */
.related-grid { display: grid; gap: 0.75rem; }
@media (min-width: 720px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.related-link {
  display: block; background: var(--surface);
  border-radius: var(--radius-sm); padding: 0.95rem 1rem; text-decoration: none; color: var(--text);
  min-width: 0; box-shadow: var(--shadow);
}
.related-link strong { display: block; font-family: var(--font-display); color: var(--primary-ink); margin-bottom: 0.2rem; }
.related-link span { color: var(--muted); font-size: 0.92rem; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #13213A;
  color: #D7E4F8;
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: #D7E4F8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); }
}
.footer-brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff;
  margin-bottom: 0.55rem;
}
.footer-col h3 {
  color: #fff; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-col a { font-size: 0.95rem; }
.footer-note {
  margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(201, 217, 242, 0.18);
  font-size: 0.88rem; color: #A9BCD8;
}
.footer-note p { color: #A9BCD8; max-width: none; }

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 980;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 243, 234, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-sticky-cta .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
@media (min-width: 1024px) {
  .mobile-sticky-cta { display: none; }
}

/* 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;
}
.stack-sm > * + * { margin-top: 0.55rem; }
.stack-md > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.two-col { display: grid; gap: 1rem; }
@media (min-width: 860px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.two-col > * { min-width: 0; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; padding: 0 0.45rem; border-radius: 8px;
  background: #13213A; color: #fff; font-weight: 800; font-size: 0.78rem;
  font-family: var(--font-display);
}
.notice-bar {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; align-items: center;
  background: #FFF8E8; color: #5C430F;
  border-radius: var(--radius-sm); padding: 0.8rem 1rem; font-size: 0.92rem;
  box-shadow: var(--shadow);
}
.colophon {
  background: var(--surface-sand);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.kicker-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem;
}
.main { min-height: 60vh; }
.section-head { margin-bottom: 1.25rem; max-width: 720px; }
.section-head p { color: var(--muted); }

/* Grid safety */
.hero-dispatch > *,
.split > *,
.diagram-board > *,
.criteria-row > *,
.page-hero-grid > *,
.action-rail > *,
.card-grid-2 > *,
.card-grid-3 > *,
.two-col > *,
.footer-grid > *,
.proof-rail > *,
.control-grid > *,
.related-grid > *,
.story-rail > * {
  min-width: 0;
}

/* Format mosaic (homepage formats) */
.format-mosaic {
  display: grid; gap: 1rem;
}
@media (min-width: 900px) {
  .format-mosaic {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    grid-template-rows: auto auto;
  }
  .format-mosaic .format-lead { grid-row: 1 / span 2; }
}
.format-tile {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}
.format-tile .body { padding: 1rem 1.1rem 1.15rem; }
.format-tile h3 { margin-bottom: 0.35rem; }
.format-tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Pull quote expert note */
.expert-note {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 2rem);
  border-left: 5px solid var(--accent);
}
.expert-note blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.expert-note cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Media band with bg image language */
.media-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: grid;
  align-items: end;
  box-shadow: var(--shadow);
}
.media-band img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.media-band .overlay {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(19, 33, 58, 0.88));
  color: #fff;
  padding: clamp(1.4rem, 4vw, 2.2rem);
}
.media-band .overlay h2,
.media-band .overlay p { color: #fff; }
.media-band .overlay p { color: #D7E4F8; max-width: 52ch; }

html, body { overflow-x: hidden; }
.section, .container, .container-wide { max-width: 100%; }

/* Article in-content figures */
.article-figure {
  margin: 1.75rem 0;
}
.article-figure .frame img { aspect-ratio: 16 / 10; }
.article-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1040px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
  .article-aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}
.aside-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.aside-card h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.aside-card a { text-decoration: none; font-weight: 600; }

/* 404 */
.error-shell {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}
.error-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 560px;
}
