/* boomerangin.com — rummy-003 ice-blue editorial
 * Art direction: bright ice-blue canvas, dark ink typography,
 * white reading surfaces, restrained cobalt and teal signals.
 * DM Sans primary + Noto Sans Devanagari for bilingual capability.
 */

:root {
  --ink: #0f1b2d;
  --ink-soft: #2a3a52;
  --ink-mute: #4a5a73;
  --canvas: #eef4fa;
  --canvas-2: #e3edf6;
  --paper: #ffffff;
  --paper-2: #f6f9fc;
  --rule: #d7e1ec;
  --rule-soft: #e6edf5;
  --cobalt: #1a47c2;
  --cobalt-ink: #102e80;
  --teal: #0a7d7b;
  --teal-ink: #075d5b;
  --warn: #a23a2e;
  --accent: #1a47c2;

  --radius: 6px;
  --shadow-1: 0 1px 0 rgba(15,27,45,0.04);
  --shadow-2: 0 6px 24px rgba(15,27,45,0.06);
  --maxw: 1180px;
  --gutter: clamp(16px, 3vw, 28px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-family: 'DM Sans', 'DM Sans Fallback', 'Noto Sans Devanagari', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background: var(--canvas);
}

/* Font fallback metric override: match DM Sans metrics so that swapping
 * from fallback to web font does not cause layout shift.
 * font-display: optional — browser uses fallback if webfont is not
 * available within ~100ms and never swaps, eliminating CLS entirely. */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('Helvetica'), local('system-ui');
  size-adjust: 107%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
  font-display: optional;
}

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.5em 0;
}
h1 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em 0; }

ul, ol { margin: 0 0 1em 1.4em; padding: 0; }
li { margin-bottom: 0.4em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  min-height: 64px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-glyph {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cobalt);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}
.brand-name { font-weight: 700; font-size: 16px; }
.brand-tag { font-size: 11px; color: var(--ink-mute); display: block; line-height: 1.1; }
.brand-text { display: flex; flex-direction: column; }

.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.primary-nav a {
  color: var(--ink-soft);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
}
.primary-nav a:hover {
  background: var(--canvas-2);
  color: var(--ink);
  text-decoration: none;
}
.primary-nav a.cta {
  background: var(--ink);
  color: #fff;
  margin-left: 8px;
}
.primary-nav a.cta:hover { background: var(--cobalt-ink); }

.menu-trigger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-trigger span {
  display: block;
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.menu-trigger span:nth-child(1) { top: 14px; }
.menu-trigger span:nth-child(2) { top: 19px; }
.menu-trigger span:nth-child(3) { top: 24px; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 90;
  padding: 80px var(--gutter) 32px;
  overflow-y: auto;
  display: none;
}
.mobile-drawer.open {
  display: block;
  animation: drawer-in 220ms ease;
}
@keyframes drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { margin: 0; }
.mobile-drawer a {
  display: block;
  padding: 14px 4px;
  color: var(--ink);
  font-size: 17px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 64px;
  height: 40px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9c4d6;
  margin-top: 64px;
  padding: 56px 0 28px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 700px) {
  .footer-cols { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
}
.footer-cols h3,
.footer-cols h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: #b9c4d6; font-size: 14px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom a { color: #d9dde4; }
.footer-bottom a:hover { color: #fff; }
.footer-brand { font-size: 14px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #a8b5c9;
}
.responsible-notice {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--warn);
  padding: 14px 18px;
  font-size: 13px;
  margin-bottom: 32px;
  line-height: 1.55;
  color: #d9c8c4;
}

/* ---------- Section primitives ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-divider { border-top: 1px solid var(--rule); }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cobalt);
  margin-bottom: 12px;
}
.section-lede {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .section-head.split {
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: end;
  }
}

/* ---------- Hero (compact-feed) ---------- */
.hero {
  background: var(--canvas);
  padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--ink);
}
.hero .kicker {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cobalt);
  margin-bottom: 16px;
}
.hero-lede {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--ink-mute);
}
.hero-meta span strong { color: var(--ink); font-weight: 600; }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--cobalt-ink); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--canvas-2); text-decoration: none; }
.btn-affiliate {
  background: var(--cobalt);
  color: #fff;
}
.btn-affiliate:hover { background: var(--cobalt-ink); text-decoration: none; }

.hero-figure {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.hero-figure img {
  width: 100%;
  height: 320px;
  aspect-ratio: 800 / 600;
  object-fit: cover;
  border-radius: 4px;
}
.hero-figure .figure-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-figure .figure-tag {
  background: var(--canvas-2);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--ink-soft);
}

/* ---------- Return rail (boomerang) ---------- */
.return-rail {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 40px) 0;
}
.return-rail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.return-rail-grid li {
  margin: 0;
  border-right: 1px solid var(--rule-soft);
}
.return-rail-grid li:last-child { border-right: 0; }
@media (max-width: 700px) {
  .return-rail-grid { grid-template-columns: 1fr 1fr; }
  .return-rail-grid li { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
}
.return-rail a {
  display: block;
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
}
.return-rail a:hover { background: var(--canvas-2); }
.return-rail .rr-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--cobalt);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.return-rail .rr-title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.return-rail .rr-sub {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ---------- Split-axis timeline (signature device) ---------- */
.split-axis {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 64px) 0;
}
.split-axis-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  margin-bottom: 0;
}
.split-axis-row + .split-axis-row {
  border-top: 1px solid var(--rule-soft);
}
.split-axis-cell {
  padding: 24px 18px;
  position: relative;
}
.split-axis-cell.action {
  background: var(--paper-2);
  border-right: 1px solid var(--rule-soft);
  text-align: left;
}
.split-axis-cell.consequence {
  text-align: left;
}
.split-axis-axis {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  border-right: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
  position: relative;
  min-height: 80px;
}
.split-axis-axis::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--cobalt);
  border-radius: 50%;
}
.split-axis-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--cobalt);
  margin-bottom: 8px;
}
.split-axis-cell h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}
.split-axis-cell p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 700px) {
  .split-axis-row {
    grid-template-columns: 1fr;
  }
  .split-axis-axis {
    min-height: 40px;
    border-top: 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .split-axis-cell.action { border-right: 0; border-bottom: 0; }
}

/* ---------- Comparison ledger ---------- */
.ledger {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow-x: auto;
  display: block;
}
@media (min-width: 700px) {
  .ledger { display: table; }
}
.ledger th, .ledger td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  word-break: break-word;
}
@media (max-width: 700px) {
  .ledger {
    display: block;
    width: 100%;
    overflow-x: auto;
    font-size: 13px;
  }
  .ledger thead, .ledger tbody, .ledger tr { display: block; }
  .ledger th, .ledger td { padding: 10px 10px; }
  .ledger thead { display: none; }
  .ledger tr { border-bottom: 1px solid var(--rule-soft); padding: 8px 0; }
  .ledger td { display: flex; justify-content: space-between; gap: 12px; }
  .ledger td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink);
    flex: 0 0 40%;
    max-width: 40%;
  }
}
.ledger th {
  background: var(--paper-2);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ledger tr:last-child td { border-bottom: 0; }
.ledger tr:hover td { background: var(--canvas-2); }

/* ---------- Card grid (variants) ---------- */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.card-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1000px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}
.card-flush {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 24px 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid var(--rule);
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--cobalt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.card-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
  background: var(--canvas-2);
}

/* Stat tile */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-tile {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-tile .num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-tile .label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Inline image row */
.inline-image-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  margin: 28px 0;
  padding: 22px;
  background: var(--paper-2);
  border-radius: var(--radius);
}
@media (min-width: 800px) {
  .inline-image-row { grid-template-columns: 240px 1fr; gap: 28px; }
}
.inline-image-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

/* Editorial figure (full-width)
   PAGESPEED-MOBILE-001-CLS: lock aspect-ratio so the box reserves
   vertical space BEFORE the image bytes arrive; otherwise the
   score-notebook image shifts body > main#main by 0.137 on load. */
.editorial-figure {
  margin: 28px 0;
}
.editorial-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;          /* default; per-image overrides via inline style */
  border-radius: var(--radius);
  background: var(--canvas-2);
}
.editorial-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: left;
}

/* ---------- Loose cards (loose content wrappers) ---------- */
.loose-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  margin: 22px 0;
}
.loose-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.loose-card .lc-icon {
  width: 28px;
  height: 28px;
  background: var(--canvas-2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--cobalt);
  font-size: 14px;
  flex-shrink: 0;
}
.loose-card p {
  margin: 0 0 0.6em;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.loose-card p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 800px) {
  .faq-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
details.faq {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color 160ms ease;
}
details.faq[open] { border-color: var(--cobalt); }
details.faq > summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  list-style: none;
  position: relative;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--cobalt);
}
details.faq[open] > summary::after { content: "−"; }
details.faq > .faq-body {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Article hero (subpages) ---------- */
.article-hero {
  background: var(--canvas-2);
  padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.article-hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 14px;
}
.article-hero .meta {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}
.article-hero .lede {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

/* ---------- TOC ---------- */
.toc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0 32px;
}
.toc h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.toc li { margin-bottom: 6px; }

/* ---------- Prose body ---------- */
.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 700;
}
.prose h3 {
  font-size: clamp(18px, 1.6vw, 21px);
  margin-top: 28px;
  margin-bottom: 12px;
}
.prose p { margin-bottom: 1em; color: var(--ink-soft); }
.prose ul, .prose ol { margin-bottom: 1em; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--cobalt);
  margin: 22px 0;
  padding: 6px 0 6px 18px;
  color: var(--ink-soft);
  font-style: normal;
}

/* ---------- Change log ---------- */
.changelog-list { list-style: none; margin: 0; padding: 0; }
.changelog-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
}
.changelog-item:first-child { border-top: 0; }
.changelog-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--cobalt);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.changelog-body h3, .changelog-body h4 { margin-bottom: 4px; font-size: 15px; }
.changelog-body p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Reader Q&A ---------- */
.qa-list { list-style: none; margin: 0; padding: 0; }
.qa-item {
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
}
.qa-item:first-child { border-top: 0; }
.qa-item .q {
  display: flex;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--ink);
}
.qa-item .q::before {
  content: "Q";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--cobalt);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.qa-item .a {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-left: 38px;
}
.qa-item .a::before {
  content: "A";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--canvas-2);
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Standards colophon ---------- */
.colophon {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}
.colophon-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .colophon-row { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.colophon-row h3,
.colophon-row h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  margin-bottom: 8px;
}
.colophon-row p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Disclaimer / banner ---------- */
.adult-banner {
  background: var(--ink);
  color: #d9dde4;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
}
.adult-banner a { color: #fff; text-decoration: underline; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
}
.sticky-cta .btn {
  display: flex;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ---------- Mobile collapse ---------- */
@media (max-width: 899px) {
  .primary-nav { display: none !important; }
  .menu-trigger { display: block !important; }
}
@media (max-width: 700px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* ---------- Mid-content CTA strip ---------- */
.cta-strip {
  background: var(--ink);
  color: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  margin: 28px 0;
}
@media (min-width: 700px) {
  .cta-strip { grid-template-columns: 1fr auto; gap: 28px; }
}
.cta-strip h3 { color: #fff; margin: 0; font-size: 19px; }
.cta-strip p { color: #b9c4d6; margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.cta-strip .btn-primary { background: #fff; color: var(--ink); }
.cta-strip .btn-primary:hover { background: var(--canvas); }

/* ---------- Two-col split (editorial) ---------- */
.split-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .split-2 { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.split-2 h3 { font-size: 18px; margin-bottom: 10px; }
.split-2 p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Newsletter / form ---------- */
.signup {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.signup input[type="email"] {
  flex: 1 1 220px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}
.signup input[type="email"]:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
  border-color: var(--cobalt);
}

/* ---------- News grid ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--rule-soft);
}
@media (min-width: 700px) {
  .news-item { grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
}
.news-item:last-child { border-bottom: 1px solid var(--rule-soft); }
.news-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--canvas-2);
}
.news-meta {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.news-meta .tag {
  display: inline-block;
  background: var(--canvas-2);
  color: var(--cobalt);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}
.news-item h3 { font-size: 17px; margin-bottom: 6px; line-height: 1.35; }
.news-item h3 a { color: var(--ink); }
.news-item p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .menu-trigger { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Footer heading contrast guard (PAGESPEED-MOBILE-001-CONTRAST) ----------
   Last-loaded, high-specificity rule guarantees footer h3/h4 render #fff on
   var(--ink) background regardless of cascade quirks (specificity 0,1,1,1). */
.site-footer .footer-cols h3,
.site-footer .footer-cols h4 {
  color: #fff;
}
