/**
 * Mining Minecraft — shared content primitives
 * ────────────────────────────────────────────
 * Insight article patterns used by both:
 *   · Dark app-shell posts (styles.css tokens)
 *   · Light paper articles (minescore-paper.css tokens)
 *
 * Load order:
 *   posts  → styles.css · content.css · (ui-kit) · post.css
 *   paper  → minescore-paper.css · content.css
 *
 * Theme bridge: --ct-* maps dark | paper aliases so one rule set works.
 */

:root {
  --ct-surface: var(--bg-card, var(--card, #161920));
  --ct-border: var(--border, var(--line, #3a3f47));
  --ct-ink: var(--text, var(--ink, #f7f6f2));
  --ct-muted: var(--text-muted, var(--muted, #e3e1da));
  --ct-dim: var(--text-dim, var(--muted, #c8c5bc));
  --ct-accent: var(--green-bright, var(--accent-bright, #8fd92a));
  --ct-accent-soft: var(--text-link, var(--accent, #345c1a));
  --ct-accent-2: var(--orange, var(--accent2, #e06b2c));
  --ct-accent-2-soft: var(--text-warning, #e8a06a);
  --ct-on-surface: var(--text, var(--ink, #f7f6f2));
  --ct-steve: var(--mc-lapis, var(--dv-steve, #3457a8));
  --ct-alex: var(--mc-copper, var(--dv-alex, #e06b2c));
  --ct-hc: var(--mc-deepslate, var(--dv-hc, #5a6570));
  --ct-radius: var(--radius, 12px);
  --ct-radius-sm: var(--radius-sm, 8px);
  --ct-method-bg: rgba(112, 180, 28, 0.08);
  --ct-font-display: var(--font-display, "Sora", "Figtree", system-ui, sans-serif);
  --ct-font-body: var(--font-body, "Figtree", system-ui, sans-serif);
  --ct-font-mono: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
}

/* ── Paper / post kicker + deck + meta ── */
.kicker {
  font-family: var(--ct-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-accent-soft);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.deck,
.lede {
  font-size: 1.12rem;
  color: var(--ct-muted);
  max-width: 42rem;
  margin: 0;
  font-family: var(--ct-font-body);
}
.meta {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--ct-muted);
  white-space: nowrap;
}
.meta > .meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--ct-border, #d4cfc3);
  flex-shrink: 0;
  white-space: nowrap;
}
.meta > .meta__author {
  padding-left: 0;
  border-left: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.meta > .meta__scope {
  flex: 0 0 auto;
}

/* ── Paper / post author meta ── */
.meta__author {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem 0.65rem;
  font-weight: 600;
  color: var(--ct-ink);
}
.meta__author img {
  width: 40px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  border: none;
  image-rendering: auto;
  flex-shrink: 0;
}
.meta__author strong {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.meta__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, #70b41c 22%, var(--ct-surface, #faf8f3));
  color: var(--ct-accent, #345c1a);
  font-family: var(--ct-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Callouts ── */
.callout {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-left: 4px solid var(--ct-accent);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
  color: var(--ct-ink);
}
.callout.warn {
  border-left-color: var(--ct-accent-2);
}
.callout strong {
  color: var(--ct-ink);
}

/* Pocket Summary — answer layer (required under hero). Class .tldr keeps legacy selectors. */
.tldr {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem 1.1rem;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-left: 4px solid var(--ct-accent);
  border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
  color: var(--ct-ink);
}
/* When Pocket Summary precedes Wow, demote Wow to Discovery weight — not a second answer box */
.tldr + .wow-pair .wow,
.tldr + .wow-pair .wow-card {
  border-width: 1px;
  padding: 1rem 1.1rem;
}
.tldr + .wow-pair .wow .big,
.tldr + .wow-pair .wow-card .big {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
}
.tldr + .wow-pair .wow .eyebrow::before,
.tldr + .wow-pair .wow-card .eyebrow::before {
  content: none;
}
/* Callout pile: keep honesty, reduce visual shout */
.callout + .callout {
  margin-top: 0.55rem;
}
.callout.warn + .callout,
.callout + .callout:not(.warn) {
  border-left-width: 3px;
}
.tldr__label {
  display: block;
  margin: 0 0 0.55rem;
  font-family: var(--ct-font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-accent-soft);
}
.tldr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tldr__list > li {
  position: relative;
  margin: 0;
  padding-left: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ct-ink);
}
.tldr__list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--ct-accent-soft);
}
.tldr__body {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ct-ink);
}
header.hero + .tldr {
  margin-top: 0;
}

/* ── Method / full-math box ── */
.method-box {
  background: var(--ct-method-bg);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 1.1rem 1.2rem;
  margin: 1.25rem 0 1.5rem;
}
.method-box h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.method-box p,
.method-box li {
  font-size: 0.95rem;
  color: var(--ct-muted);
}
.method-box p {
  margin: 0.5rem 0;
  line-height: 1.65;
  color: var(--ct-ink);
  font-size: 0.98rem;
}
.method-box p:first-child { margin-top: 0; }
.method-box p:last-child { margin-bottom: 0; }
.method-box summary {
  cursor: pointer;
  font-family: var(--ct-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ct-ink);
  list-style: none;
}
.method-box summary::-webkit-details-marker { display: none; }
.method-box summary::after {
  content: " · show full math";
  font-family: var(--ct-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ct-accent-soft);
}
.method-box[open] summary::after { content: " · hide full math"; }
.method-box .math-body { margin-top: 0.85rem; }

/* ── Stat grids (paper .grid-stats · post .stat-strip) ── */
.grid-stats,
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
.stat-strip {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.stat,
.stat-chip {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 0.9rem 1rem;
}
.stat b,
.stat-chip b {
  display: block;
  font-family: var(--ct-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ct-accent);
  line-height: 1.15;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.stat span,
.stat-chip span {
  font-size: 0.8rem;
  color: var(--ct-muted);
  display: block;
  line-height: 1.4;
}
.stat-chip span {
  font-family: var(--ct-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* ── Wow pair (paper .wow · post .wow-card) ── */
.wow-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}
.wow,
.wow-card {
  background: var(--ct-surface);
  border: 2px solid var(--ct-accent);
  border-radius: var(--ct-radius);
  padding: 1.15rem 1.2rem;
}
.wow--alt,
.wow-card--alt {
  border-color: var(--ct-accent-2);
}
.wow .eyebrow,
.wow-card .eyebrow {
  font-family: var(--ct-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-dim);
  margin: 0 0 0.35rem;
}
.wow .big,
.wow-card .big {
  font-family: var(--ct-font-display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--ct-accent);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.wow--alt .big,
.wow-card--alt .big {
  color: var(--accent2, var(--ct-accent-2-soft));
}
.wow .sub,
.wow-card .sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ct-muted);
}

/* ── Vs stack (Hardcore vs clocks, etc.) ── */
.vs-stack {
  display: grid;
  gap: 0.75rem;
  margin: 1.15rem 0 1.5rem;
}
.vs-row {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
}
.vs-row .label {
  font-size: 0.85rem;
  color: var(--ct-dim);
  margin: 0;
}
.vs-row .value {
  font-family: var(--ct-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  color: var(--ct-ink);
}
.vs-row .age {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ct-muted);
  line-height: 1.35;
}
.vs-row .age b {
  color: var(--ct-ink);
  font-weight: 700;
}
.vs-row .mult {
  font-family: var(--ct-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ct-accent);
  text-align: right;
}
.vs-row.vs-base,
.vs-base {
  border-left: 4px solid var(--ct-hc);
}
.vs-row.vs-steve,
.vs-steve {
  border-left: 4px solid var(--ct-steve);
}
.vs-row.vs-alex,
.vs-alex {
  border-left: 4px solid var(--ct-alex);
}
.vs-row.vs-base .mult,
.vs-base .mult {
  color: var(--ct-dim);
  font-size: 0.9rem;
  font-family: var(--ct-font-mono);
  font-weight: 600;
}

/* ── Charts ── */
.chart-box {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 1rem 1rem 0.5rem;
  margin: 1.25rem 0 1.75rem;
}
.chart-box h3 {
  margin: 0 0 0.25rem;
  font-family: var(--ct-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ct-ink);
}
.chart-box .caption {
  font-size: 0.82rem;
  color: var(--ct-dim);
  margin: 0 0 0.75rem;
  line-height: 1.45;
  max-width: 40rem;
}
/* Chart annotation standard: first takeaway is scannable before the plot */
.chart-box .chart-takeaway {
  color: var(--ct-ink);
  font-weight: 700;
}
.chart-box .caption .chart-takeaway {
  font-family: var(--ct-font-body);
}
  color: var(--ct-muted);
  margin: 0 0 0.75rem;
}
.chart-box .source-note {
  font-size: 0.78rem;
  color: var(--ct-muted);
  margin: 0.35rem 0 0.65rem;
  border-top: 1px solid var(--ct-border);
  padding-top: 0.55rem;
}
.chart-wrap,
.chart-canvas-wrap {
  position: relative;
  height: 300px;
  margin-top: 0.35rem;
}
.chart-wrap.tall,
.chart-canvas-wrap--tall {
  height: 360px;
}
.chart-wrap.square {
  height: 280px;
  max-width: 340px;
  margin-inline: auto;
}

/* ── Media frames ── */
figure.art,
.gif-frame {
  margin: 1.25rem 0;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  overflow: hidden;
}
figure.art img,
.gif-frame img {
  display: block;
  width: 100%;
  height: auto;
}
figure.art figcaption,
.gif-frame figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--ct-dim);
  border-top: 1px solid var(--ct-border);
}

/* ── Table footnotes ── */
.table-note {
  font-size: 0.85rem;
  color: var(--ct-muted);
  margin: 0.35rem 0 1.25rem;
}

/* ── Recipe mass cards (block/item weight articles) ── */
.recipe-card {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  margin: 1.1rem 0 1.4rem;
  overflow: hidden;
}
.recipe-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid var(--ct-border);
}
.recipe-card__head h3 {
  margin: 0;
  font-family: var(--ct-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ct-ink);
}
.recipe-card__shape {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ct-muted);
  font-family: var(--ct-font-mono);
}
.recipe-card__badge {
  font-family: var(--ct-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ct-muted);
  border: 1px solid var(--ct-border);
  padding: 0.2rem 0.45rem;
}
.recipe-card__badge--creates {
  color: var(--ct-sunset, #E06B2C);
  border-color: color-mix(in srgb, var(--ct-sunset, #E06B2C) 40%, var(--ct-border));
}
.recipe-card table {
  margin: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
}
.recipe-card th,
.recipe-card td {
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}
.recipe-card tbody tr:last-child td {
  border-bottom: 0;
}
.recipe-card__sum td,
.recipe-card__product td {
  font-weight: 600;
  background: color-mix(in srgb, var(--ct-ink) 3%, var(--ct-surface));
}
.recipe-card__product td {
  color: var(--ct-ink);
  border-top: 1px solid var(--ct-border);
}
.recipe-card__note {
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  font-size: 0.82rem;
  color: var(--ct-muted);
  border-top: 1px solid var(--ct-border);
}

/* ── Evidence chips ── */
.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
}
.chip {
  font-family: var(--ct-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--ct-border);
  background: var(--ct-surface);
  color: var(--ct-ink);
  border-radius: var(--ct-radius-sm);
}
.chip--official {
  border-color: var(--mc-lime, #70b41c);
  color: var(--pos, var(--ct-accent-soft));
  background: rgba(112, 180, 28, 0.12);
}
.chip--game {
  border-color: var(--mc-copper, #e06b2c);
  color: var(--accent2, var(--ct-accent-2-soft));
  background: rgba(224, 107, 44, 0.12);
}
.chip--sample {
  border-color: var(--mc-stone, #7a7a7a);
  color: var(--muted, var(--ct-dim));
  background: rgba(122, 122, 122, 0.12);
}

/* ── Sources lists (posts) ── */
.sources-list {
  font-size: 0.92rem;
  color: var(--ct-ink);
  line-height: 1.55;
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}
.sources-list li {
  margin: 0.45rem 0;
}
.sources-list a {
  color: var(--ct-accent);
}
.sources-list a:hover {
  color: var(--ct-ink);
}

/* ── Featured hero media (paper) ── */
.hero-feature {
  margin: 1.5rem 0 0;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  overflow: hidden;
  border-radius: 0;
}
.hero-feature img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 52vw);
  object-fit: cover;
  object-position: center;
}
.hero-feature figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  color: var(--ct-muted);
  border-top: 1px solid var(--ct-border);
  font-family: var(--ct-font-body);
  line-height: 1.4;
}

/* ── Article index thumbs (paper) ── */
.article-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.article-list__item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0;
  border: 1px solid var(--ct-border);
  background: var(--ct-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
  border-radius: var(--ct-radius-sm);
  overflow: hidden;
}
.article-list__item:hover {
  border-color: var(--ct-accent-soft);
}
/* Text-only rows (no thumb markup) still get readable padding */
.article-list__item:not(:has(.article-list__thumb)) {
  grid-template-columns: 1fr;
}
.article-list__item:not(:has(.article-list__thumb)) .article-list__body {
  padding: 0.85rem 1rem;
}
.article-list__thumb {
  width: 112px;
  height: 84px;
  overflow: hidden;
  background: var(--paper, var(--bg, #0c0d10));
  flex-shrink: 0;
}
.article-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-list__body {
  padding: 0.55rem 0.85rem 0.55rem 0;
  min-width: 0;
}
.article-list__body strong {
  display: block;
  font-family: var(--ct-font-display);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ct-ink);
  margin: 0 0 0.2rem;
}
.article-list__body span {
  font-size: 0.82rem;
  color: var(--ct-muted);
  line-height: 1.35;
}

/* ── Phase / timeline bits (daylight) ── */
.phase-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.timeline-track {
  display: flex;
  height: 2.25rem;
  border-radius: var(--ct-radius-sm);
  overflow: hidden;
  margin: 1rem 0 0.5rem;
  border: 1px solid var(--ct-border);
}
.timeline-track span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ct-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #0c0d10;
}

/* ── Post-body data tables spacing ── */
.post-body .data-table {
  max-width: none;
  margin: 1rem 0 1.25rem;
}
.post-body ol {
  padding-left: 1.2rem;
  margin: 0.65rem 0 1rem;
}
.post-body ol li {
  margin: 0.35rem 0;
}

/* ── Related reads (internal cross-links) ── */
.related-reads {
  margin: 2.25rem 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
}
.related-reads h2 {
  font-family: var(--ct-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--ct-ink);
}
.related-reads ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.related-reads li {
  position: relative;
  padding-left: 1.7rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ct-muted);
}
.related-reads li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 15px;
  height: 15px;
  background: var(--list-bullet-icon, url("../img/items/emerald.png")) center / contain no-repeat;
  image-rendering: pixelated;
}
.related-reads a {
  font-weight: 600;
  color: var(--ct-accent-soft);
  text-decoration: none;
}
.related-reads a:hover {
  color: var(--ct-accent);
  text-decoration: underline;
}
.related-reads .related-reads__meta {
  display: block;
  font-size: 0.82rem;
  color: var(--ct-dim);
  margin-top: 0.15rem;
  font-weight: 400;
}

/* ── Mid-article “See also” callout ── */
.see-also-section {
  margin: 1.75rem 0;
}
.see-also-section__title {
  margin: 0 0 0.65rem;
  font-family: var(--ct-font-mono, var(--ct-font-display));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-dim);
}
.see-also-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}
.see-also-row .see-also,
.see-also-section > .see-also {
  margin: 0;
  max-width: none;
  width: 100%;
}
.see-also {
  margin: 1.75rem 0;
  max-width: 28rem;
  border: 1px solid var(--ct-border);
  border-left: 3px solid var(--ct-accent);
  background: var(--ct-surface);
  border-radius: 0 6px 6px 0;
  overflow: hidden;
}
.see-also__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}
.see-also__link:hover {
  color: inherit;
}
.see-also__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem 0.75rem 0.85rem;
  min-width: 0;
}
.see-also__label {
  display: none;
}
.see-also__copy strong {
  font-family: var(--ct-font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ct-accent-soft);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.see-also__link:hover .see-also__copy strong {
  color: var(--ct-accent);
  text-decoration: underline;
}
.see-also__meta {
  font-size: 0.74rem;
  color: var(--ct-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.see-also__img {
  display: block;
  width: 96px;
  height: 100%;
  min-height: 72px;
  max-height: 92px;
  object-fit: cover;
  background: var(--ct-surface);
}

@media (max-width: 640px) {
  .see-also-row {
    grid-template-columns: 1fr;
  }
  .see-also {
    max-width: none;
  }
  .see-also__link {
    grid-template-columns: minmax(0, 1fr) 88px;
  }
  .see-also__img {
    width: 88px;
    max-height: 88px;
  }
}

/* ── Bottom related article cards (match homepage featured cards) ── */
.related-cards {
  margin: 2.75rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ct-ink);
}
.related-cards > h2 {
  font-family: var(--ct-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ct-ink);
}
/* Prefer editorial heads in HTML (“Same dig”, “Next measurement”) over bare “Related”. */
.related-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.related-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ct-border);
  background: var(--ct-surface);
  overflow: hidden;
  border-radius: 4px;
  transition: border-color 0.15s ease;
  min-width: 0;
  min-height: 0;
}
.related-card:hover {
  border-color: var(--ct-accent);
  color: inherit;
}
.related-card img {
  display: block;
  width: 96px;
  height: 100%;
  min-height: 72px;
  max-height: 88px;
  object-fit: cover;
  background: var(--ct-surface);
}
.related-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  min-width: 0;
}
.related-card__body strong {
  font-family: var(--ct-font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ct-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card:hover .related-card__body strong {
  color: var(--ct-ink);
}
.related-card__body span {
  font-size: 0.78rem;
  color: var(--ct-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-cards__more {
  margin: 1.15rem 0 0;
  font-family: var(--ct-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ct-muted);
}
.related-cards__more a {
  font-weight: 600;
  color: var(--ct-accent-soft);
  text-decoration: none;
}
.related-cards__more a:hover {
  color: var(--ct-accent);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .related-cards__grid {
    grid-template-columns: 1fr;
  }
  .related-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .related-card img {
    width: 88px;
    max-height: 88px;
  }
}
@media (max-width: 520px) {
  .related-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .related-card img {
    width: 80px;
    max-height: 80px;
  }
}

/* ── Paper inline FAQ (bottom of data papers) ── */
.paper-faq {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 1.2rem 1.1rem;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  background: var(--ct-surface);
}
.paper-faq > h2 {
  margin: 0 0 0.85rem;
  font-family: var(--ct-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ct-ink);
}
.paper-faq__item {
  border-top: 1px solid var(--ct-border);
  padding: 0.15rem 0;
}
.paper-faq__item:first-of-type {
  border-top: none;
}
.paper-faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--ct-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ct-ink);
  padding: 0.75rem 0;
  line-height: 1.4;
}
.paper-faq__item summary::-webkit-details-marker {
  display: none;
}
.paper-faq__item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  margin-right: 0.35em;
  color: var(--ct-accent-soft);
  font-weight: 700;
}
.paper-faq__item[open] summary::before {
  content: "−";
}
.paper-faq__a {
  padding: 0 0 0.85rem 1.45rem;
}
.paper-faq__a p {
  margin: 0 0 0.5rem;
  color: var(--ct-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}
.paper-faq__a p:last-child {
  margin-bottom: 0;
}
.paper-faq__more {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ct-border);
  font-size: 0.92rem;
  color: var(--ct-dim);
}
.paper-faq__more a {
  color: var(--ct-accent-soft);
  font-weight: 600;
}

/* Hub-style FAQ pages */
.faq-item {
  margin: 1.5rem 0 0;
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--ct-border);
}
.faq-item:last-of-type {
  border-bottom: none;
}
.faq-item h2 {
  font-family: var(--ct-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.65rem;
  color: var(--ct-ink);
}
.faq-a {
  color: var(--ct-muted);
}
.faq-a p {
  margin: 0.55rem 0;
  line-height: 1.7;
  color: var(--ct-muted);
  font-size: 1.02rem;
}
.faq-a p:first-child {
  margin-top: 0;
}
.faq-a p:last-child {
  margin-bottom: 0;
}
.faq-a p strong {
  color: var(--ct-ink);
  font-weight: 650;
}
.faq-a ol,
.faq-a ul {
  margin: 0.55rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--ct-muted);
}
.faq-a li {
  margin: 0.35rem 0;
  line-height: 1.65;
  font-size: 1.02rem;
}
.faq-a li strong {
  color: var(--ct-ink);
}
.faq-a code {
  font-family: var(--ct-font-mono);
  font-size: 0.9em;
  background: var(--ct-method-bg, rgba(112, 180, 28, 0.08));
  border: 1px solid var(--ct-border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}
.faq-a a {
  color: var(--ct-accent-soft);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0.25rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ct-border);
  background: var(--ct-surface);
  border-radius: var(--ct-radius-sm);
}
.faq-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ct-accent-soft);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
}
.faq-toc a:hover {
  text-decoration: underline;
}
.faq-toc__label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-dim);
  margin: 0 0 0.15rem;
}

/* Glossary / dictionary */
.crumbs {
  font-size: 0.85rem;
  color: var(--ct-dim);
  margin: 0 0 1.25rem;
}
.crumbs a {
  color: var(--ct-accent-soft);
  font-weight: 600;
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.glossary-jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
}
.glossary-jump .faq-toc__label {
  grid-column: 1 / -1;
  width: auto;
  margin: 0 0 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ct-border);
}
.glossary-jump a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ct-ink);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--ct-border);
  border-radius: 4px;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.glossary-jump a::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--ct-accent-soft);
  opacity: 0.75;
}
.glossary-jump a:hover {
  color: var(--ct-accent);
  background: rgba(52, 92, 26, 0.06);
  border-color: var(--ct-accent);
  text-decoration: none;
  transform: translateY(-1px);
}
@media (max-width: 560px) {
  .glossary-jump {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glossary-jump a {
    transition: none;
  }
  .glossary-jump a:hover {
    transform: none;
  }
}
.glossary-az,
.glossary-index {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1.1rem;
  max-height: none;
  overflow: visible;
  margin-bottom: 2.25rem;
  padding: 1rem 1.1rem 1.2rem;
  column-count: auto;
}
.glossary-index .faq-toc__label {
  width: 100%;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ct-border);
}
.glossary-index__group {
  min-width: 0;
}
.glossary-index__cat {
  margin: 0 0 0.4rem;
  font-family: var(--ct-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ct-ink);
}
.glossary-index__cat a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
}
.glossary-index__cat a:hover {
  color: var(--ct-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.glossary-index__terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem 1rem;
}
.glossary-index__terms a,
.glossary-az a {
  display: block;
  break-inside: avoid;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.45rem 0;
  min-height: 44px;
  box-sizing: border-box;
  color: var(--ct-accent-soft);
  text-decoration: none;
  border-radius: 0;
}
.glossary-index__terms a:hover,
.glossary-az a:hover {
  color: var(--ct-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 720px) {
  /* Section jump is enough on phones; full term index eats ~3 viewports */
  nav.glossary-index {
    display: none;
  }
  .glossary-jump {
    position: sticky;
    top: 0;
    z-index: 6;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--ct-border);
  }
  .glossary-index__terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .glossary-index__terms {
    grid-template-columns: 1fr;
  }
}
.glossary-section {
  margin: 2.25rem 0 0;
  padding-top: 0.25rem;
}
.glossary-section h2 {
  font-family: var(--ct-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--ct-ink);
}
.glossary-section__lede {
  margin: 0 0 1.15rem;
  color: var(--ct-muted);
  font-size: 0.98rem;
  max-width: 40rem;
  line-height: 1.55;
}
.glossary-list {
  margin: 0;
  padding: 0;
}
.glossary-entry {
  margin: 0;
  padding: 1.05rem 0 1.15rem;
  border-bottom: 1px solid var(--ct-border);
  scroll-margin-top: 1.25rem;
}
.glossary-entry:last-child {
  border-bottom: none;
}
.glossary-entry dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.45rem;
}
.glossary-term {
  font-family: var(--ct-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ct-ink);
}
.glossary-kind {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ct-dim);
  border: 1px solid var(--ct-border);
  border-radius: 4px;
  padding: 0.12em 0.45em;
}
.glossary-kind--slang {
  color: #8a5a10;
  border-color: rgba(180, 120, 30, 0.35);
  background: rgba(180, 120, 30, 0.08);
}
.glossary-kind--product {
  color: #2f6a12;
  border-color: rgba(112, 180, 28, 0.35);
  background: rgba(112, 180, 28, 0.08);
}
.glossary-kind--tech {
  color: #2a5f8a;
  border-color: rgba(60, 130, 180, 0.35);
  background: rgba(60, 130, 180, 0.08);
}
.glossary-entry dd {
  margin: 0;
}
.glossary-entry dd p {
  margin: 0.4rem 0 0;
  color: var(--ct-muted);
  line-height: 1.7;
  font-size: 1.02rem;
}
.glossary-entry dd p:first-child {
  margin-top: 0;
}
.glossary-see {
  font-size: 0.92rem !important;
  color: var(--ct-dim) !important;
}
.glossary-see a {
  color: var(--ct-accent-soft);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* YouTube how-to embeds (third-party; lazy-load, no autoplay) */
.yt-embed {
  margin: 1rem 0 1.15rem;
  max-width: 36rem;
}
.yt-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  overflow: hidden;
}
.yt-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-embed__cap {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ct-dim);
}
.yt-embed__cap a {
  color: var(--ct-accent-soft);
  font-weight: 600;
}
.yt-embed--short .yt-embed__frame {
  max-width: 22rem;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}
.yt-embed--short {
  max-width: 22rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wow-pair {
    grid-template-columns: 1fr;
  }
  .vs-row {
    grid-template-columns: 1fr;
  }
  .vs-row .mult {
    text-align: left;
  }
  .chart-wrap,
  .chart-canvas-wrap {
    height: 260px;
  }
}
@media (max-width: 520px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .article-list__item {
    grid-template-columns: 88px 1fr;
  }
  .article-list__thumb {
    width: 88px;
    height: 72px;
  }
  .hero-feature {
    background: transparent;
    border-color: transparent;
  }
  .hero-feature img {
    max-height: 240px;
  }
  .timeline-track span {
    font-size: 0.72rem;
  }
}
