/* =========================================================
 * winnow — production stylesheet
 * Color system 004 Sandstone Matchday, Typography 004 (Manrope + Noto Sans Devanagari)
 * Layout 008 Niche News Portal, soft-modular geometry, photo-led minimal
 * Light-dominant page system. WCAG AA. No external CSS frameworks.
 * ========================================================= */

:root {
  --primary: #B64B28;
  --primary-700: #8e3719;
  --primary-50: #fbe8e2;
  --accent: #0B6E69;
  --accent-700: #075754;
  --accent-50: #e0eeed;
  --background: #FFF8F2;
  --surface: #FFFFFF;
  --surface-2: #FCE8D7;
  --surface-3: #F6E2CC;
  --ink: #312019;
  --ink-2: #4f3a2c;
  --muted: #745D50;
  --border: #EBCDBA;
  --border-2: #d8b9a0;
  --gold: #c08a32;
  --ink-on-dark: #FFF8F2;
  --warn: #a8462b;
  --good: #0B6E69;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(49, 32, 25, 0.06), 0 4px 14px rgba(49, 32, 25, 0.06);
  --shadow-2: 0 4px 16px rgba(49, 32, 25, 0.08), 0 12px 30px rgba(49, 32, 25, 0.08);
  --shadow-pop: 0 8px 28px rgba(182, 75, 40, 0.18);

  --font-display: 'Manrope', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --max-w: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --header-h: 68px;
  --mobile-cta-h: 78px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  font-weight: 800;
}
h1 { font-size: clamp(34px, 5.6vw, 56px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: clamp(17px, 2vw, 19px); }
p  { margin: 0 0 1em; }
small { font-size: 13px; color: var(--muted); }

/* ----- Layout primitives ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band {
  padding: clamp(40px, 6vw, 80px) 0;
}
.band-tight {
  padding: clamp(28px, 4vw, 48px) 0;
}
.band-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-sandstone { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-deep { background: var(--ink); color: var(--ink-on-dark); }
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep h4 { color: var(--ink-on-dark); }
.band-deep a { color: var(--surface-2); }

/* Section header */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-5);
}
.sec-head h2 { margin: 0; }
.sec-head .eyebrow {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--primary-50); color: var(--primary); font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.sec-head p { margin: 0; color: var(--muted); max-width: 56ch; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; min-height: 48px;
  border-radius: var(--radius-md);
  font-weight: 800; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--primary-700); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface); color: var(--ink); border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: transparent;
}
.btn-ghost:hover { background: rgba(49, 32, 25, 0.06); color: var(--ink); }
.btn-affiliate { background: var(--accent); color: #fff; }
.btn-affiliate:hover { background: var(--accent-700); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13px; min-height: 36px; border-radius: var(--radius-sm); }

/* ----- Site header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; gap: var(--space-4);
  height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  color: var(--ink); text-decoration: none !important;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 17px;
  box-shadow: var(--shadow-1);
}
.brand-name {
  font-family: var(--font-display); font-weight: 900; font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 11px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase;
  margin-left: 4px; display: none;
}
@media (min-width: 720px) { .brand-tag { display: inline-block; } }
.primary-nav {
  display: none; gap: 4px; margin-left: auto;
}
.primary-nav a {
  color: var(--ink-2); font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 8px;
}
.primary-nav a:hover { background: rgba(182, 75, 40, 0.08); color: var(--primary); text-decoration: none; }
.primary-nav a.active { background: rgba(11, 110, 105, 0.1); color: var(--accent); }
.header-actions {
  display: none; gap: 8px; align-items: center; margin-left: auto;
}
@media (min-width: 1080px) {
  .primary-nav { display: flex; margin-left: 0; }
  .header-actions { display: flex; }
}
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 1px solid var(--border-2); border-radius: 10px;
  color: var(--ink); position: relative;
}
@media (min-width: 1080px) { .hamburger { display: none; } }
.hamburger span {
  width: 18px; height: 2px; background: currentColor;
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top:  6px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.hamburger[aria-expanded="true"] span::after  { transform: rotate(-45deg); top: 0; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 90vw);
  background: var(--surface);
  box-shadow: -8px 0 30px rgba(49, 32, 25, 0.18);
  transform: translateX(100%); transition: transform 220ms ease;
  z-index: 80; padding: 84px 24px 24px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-drawer[data-open="true"] { transform: translateX(0); }
.mobile-drawer a {
  display: block; padding: 12px 8px; border-bottom: 1px solid var(--border);
  color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none;
}
.mobile-drawer a:hover { color: var(--primary); }
.mobile-drawer .draw-cta { margin-top: 12px; }
.drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.scrim {
  position: fixed; inset: 0; background: rgba(49, 32, 25, 0.42);
  z-index: 70; opacity: 0; pointer-events: none; transition: opacity 180ms ease;
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* Mobile sticky affiliate CTA — one button, fixed bottom bar */
.sticky-aff {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
  padding: 12px var(--gutter);
  background: rgba(255, 248, 242, 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.sticky-aff .sticky-aff-note {
  display: none; font-size: 11px; color: var(--muted); line-height: 1.2;
}
.sticky-aff .btn { flex: 1 1 auto; }
@media (min-width: 1080px) {
  .sticky-aff { display: none; }
}
body { padding-bottom: var(--mobile-cta-h); }
@media (min-width: 1080px) { body { padding-bottom: 0; } }

/* ----- Hero (typographic poster) ----- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(60% 50% at 8% 10%, rgba(11, 110, 105, 0.08) 0%, transparent 70%),
    radial-gradient(45% 40% at 95% 90%, rgba(192, 138, 50, 0.10) 0%, transparent 60%),
    var(--background);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
  align-items: end;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-8); }
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--primary); }
.hero h1 .accent-2 { color: var(--accent); }
.hero .lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2); max-width: 56ch; margin-bottom: var(--space-5);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { min-width: 168px; }

.hero-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: var(--space-6);
  border-top: 1px dashed var(--border-2);
  padding-top: var(--space-4);
}
.hero-trust div { font-size: 13px; color: var(--muted); }
.hero-trust strong { display: block; color: var(--ink); font-size: 15px; font-weight: 800; margin-bottom: 2px; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-poster-caption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255, 248, 242, 0.95);
  color: var(--ink); padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--border);
}

/* Score strip */
.score-strip {
  background: var(--ink); color: var(--ink-on-dark);
  padding: 14px 0;
  font-size: 13px;
}
.score-strip .container {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center;
}
.score-strip span { display: inline-flex; align-items: center; gap: 8px; }
.score-strip b { color: var(--surface-2); font-weight: 800; letter-spacing: 0.02em; }
.score-strip i { font-style: normal; opacity: 0.55; }

/* Topic ribbon (signature device) */
.topic-ribbon {
  display: flex; align-items: stretch; gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: thin;
}
.topic-ribbon a {
  flex: 0 0 auto;
  padding: 14px 18px; min-height: 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
  color: var(--ink); font-weight: 700; font-size: 14px;
  text-decoration: none !important;
}
.topic-ribbon a:hover { background: var(--surface-2); color: var(--primary); }
.topic-ribbon a small {
  font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  display: block; margin-bottom: 2px;
}
.topic-ribbon a.current { background: var(--primary); color: #fff; }
.topic-ribbon a.current small { color: rgba(255, 255, 255, 0.7); }

/* ----- Cards / grids ----- */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
.card h3, .card h4 { margin-top: 0; }
.card .meta {
  display: inline-flex; gap: 8px; font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 8px;
}
.card .meta .pill {
  background: var(--accent-50); color: var(--accent); padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.card-figure { padding: 0; overflow: hidden; }
.card-figure img { width: 100%; height: 200px; object-fit: cover; aspect-ratio: 16/10; }
.card-figure .body { padding: var(--space-5); }
.card-figure h3 { margin-top: 0; }
.card-figure a.read-more {
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: 8px; font-weight: 700; font-size: 13px;
}

/* Read-more wrapper: ensures the route link sits flush to the card body
   with a clear top divider, without relying on a parent .card-figure. */
.read-more-wrap {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.read-more-wrap .read-more {
  display: inline-flex; gap: 6px; align-items: center;
  font-weight: 700; font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}
.read-more-wrap .read-more:hover,
.read-more-wrap .read-more:focus-visible { text-decoration: underline; }

/* Comparison desk */
.compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td {
  padding: 14px 14px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare th { background: var(--surface-2); font-weight: 800; color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare .yes { color: var(--accent); font-weight: 800; }
.compare .no  { color: var(--warn); font-weight: 800; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* News stream */
.news-list { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 880px) { .news-list { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-card .news-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-2); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card time { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
.news-card h3 { font-size: 18px; margin: 0; }
.news-card a.read-more { font-size: 13px; font-weight: 700; }
.news-card p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* Trust strip (used in hero area) */
.trust-strip {
  display: grid; gap: 1px; background: var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border);
}
.trust-strip > div { background: var(--surface); padding: 14px 16px; font-size: 13px; }
.trust-strip strong { display: block; color: var(--ink); font-size: 14px; font-weight: 800; margin-bottom: 2px; }

/* Timeline (explainer) */
.timeline {
  display: grid; gap: 14px;
}
.timeline .step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-1);
}
.timeline .step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 18px;
}
.timeline .step h3 { margin: 0 0 4px; font-size: 17px; }
.timeline .step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Evidence gallery */
.gallery { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 880px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery-card { padding: 0; overflow: hidden; }
.gallery-card img { aspect-ratio: 4/3; width: 100%; height: auto; object-fit: cover; }
.gallery-card .body { padding: var(--space-4) var(--space-5); }
.gallery-card h3 { margin: 0 0 4px; font-size: 17px; }
.gallery-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0 var(--space-5);
  box-shadow: var(--shadow-1);
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  list-style: none; cursor: pointer;
  font-weight: 700; font-size: 16px; color: var(--ink);
  padding: 16px 0; position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--primary); font-weight: 800;
}
.faq details[open] summary::after { content: '−'; }
.faq details > div {
  padding: 0 0 16px; color: var(--ink-2); font-size: 15px;
}

/* CTA pair / inline */
.inline-cta {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid; gap: var(--space-4);
  align-items: center;
}
@media (min-width: 880px) {
  .inline-cta { grid-template-columns: 1.4fr 1fr; }
}
.inline-cta h3 { margin: 0 0 6px; }
.inline-cta p { margin: 0; color: var(--ink-2); }
.inline-cta .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Footer */
.site-footer {
  background: var(--ink); color: var(--ink-on-dark);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-7);
}
.site-footer a { color: rgba(255, 248, 242, 0.78); }
.site-footer a:hover { color: var(--surface-2); text-decoration: underline; }
.footer-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid h4 {
  color: var(--surface-2); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.12em; margin: 0 0 var(--space-3);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-mark { background: var(--surface-2); color: var(--ink); }
.footer-meta {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 248, 242, 0.16);
  font-size: 12px; color: rgba(255, 248, 242, 0.6);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.disclaimer {
  font-size: 12px; color: rgba(255, 248, 242, 0.6);
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* Form, simple */
.input, textarea.input, select.input {
  width: 100%; padding: 12px 14px; min-height: 44px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
}
.input:focus, textarea.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { font-size: 13px; color: var(--ink-2); font-weight: 700; }

/* Article body */
.prose { max-width: 76ch; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-700); }

/* Article hero */
.article-hero {
  padding: clamp(40px, 6vw, 72px) 0 var(--space-6);
  background:
    radial-gradient(50% 40% at 0% 0%, rgba(11, 110, 105, 0.06) 0%, transparent 70%),
    var(--background);
}
.article-hero .eyebrow {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--primary-50); color: var(--primary);
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.article-hero h1 { max-width: 22ch; }
.article-hero .lede { font-size: 19px; max-width: 60ch; color: var(--ink-2); }

.article-hero-image {
  margin: 0 0 var(--space-4) 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 22, 36, 0.10);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  max-height: 420px;
}
.article-hero-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: var(--space-4); color: var(--muted); font-size: 13px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); display: inline-block; }

/* Inline TOC */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.toc h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { font-size: 14px; margin-bottom: 6px; }
.toc a { color: var(--ink-2); }

/* Image-card content figure */
.figure-card { margin: var(--space-6) 0; }
.figure-card img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.figure-card figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Two-column with sidebar */
.layout-2 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 980px) {
  .layout-2 { grid-template-columns: 1fr 320px; }
}
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-5);
  position: sticky; top: calc(var(--header-h) + 16px);
}

/* Stat tile */
.stat-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-1);
}
.stat-tile .num { font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); font-weight: 900; color: var(--primary); margin: 0; line-height: 1; }
.stat-tile .lbl { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }

/* Bond split (asymmetric lead components) */
.split {
  display: grid; gap: var(--space-5); grid-template-columns: 1fr;
}
@media (min-width: 980px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

/* Focus section */
.focus-band {
  background: linear-gradient(135deg, var(--accent-50) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid; gap: var(--space-5);
}
@media (min-width: 880px) { .focus-band { grid-template-columns: 1fr 1fr; } }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.pill.pill-primary { background: var(--primary-50); color: var(--primary); }
.pill.pill-accent { background: var(--accent-50); color: var(--accent); }
.pill.pill-warn { background: rgba(168, 70, 43, 0.12); color: var(--warn); }

/* Skip-link */
.skip-link {
  position: absolute; left: 0; top: -200px;
  background: var(--ink); color: var(--ink-on-dark);
  padding: 10px 14px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { top: 0; }

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

/* Inline image row (used in deep guides) */
.inline-image-row {
  display: grid; gap: var(--space-4); align-items: start;
  grid-template-columns: 1fr;
  margin: var(--space-5) 0;
}
@media (min-width: 720px) {
  .inline-image-row { grid-template-columns: 1fr 1fr; }
}
.inline-image-row img { border-radius: var(--radius-md); border: 1px solid var(--border); }
.inline-image-row figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Comparison rows on mobile: keep two columns */
@media (max-width: 640px) {
  .compare-wrap .compare { border-radius: 0; border-left: 0; border-right: 0; }
  .compare th, .compare td { padding: 10px 10px; font-size: 13px; }
  .compare td:first-child { font-size: 12px; white-space: normal; }
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
  border-radius: 4px;
}

/* Sticky section[id] offset for anchor links */
section[id] { scroll-margin-top: 90px; }

/* Prevent horizontal page overflow */
html, body { max-width: 100%; }

/* Anchor placement for "anti-template proof" */
.hero-cta .btn-primary { position: relative; }
.hero-cta .btn-primary::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

/* Newsletter inline */
.inline-news {
  display: grid; gap: 10px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-md); padding: var(--space-5);
}
@media (min-width: 720px) { .inline-news { grid-template-columns: 1fr auto; gap: var(--space-5); } }
.inline-news .field { display: grid; gap: 6px; }
.inline-news .field input { min-width: 240px; }

/* Safety warning */
.warn-box {
  background: rgba(168, 70, 43, 0.08); border-left: 4px solid var(--warn);
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-2); margin: var(--space-4) 0;
}

/* Anchor list under hub hero */
.hub-toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: var(--space-3) 0 var(--space-4);
}
.hub-toc a {
  font-size: 13px; padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-2); color: var(--ink-2); background: var(--surface);
}
.hub-toc a:hover { background: var(--surface-2); color: var(--primary); }

/* Print niceties */
@media print {
  .site-header, .sticky-aff, .scrim, .mobile-drawer { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}