/* ============================================================
   RCOSWS — Lumenforce editorial · Verge-lite dark theme
   staging preview build · 2026-04-22
   ============================================================ */

:root {
  --bg:           #0b0d10;
  --bg-elev:      #14171c;
  --bg-panel:     #1a1e25;
  --border:       #272d37;
  --border-soft:  #1e232b;

  --ink:          #e8ecf3;
  --ink-muted:    #9aa4b5;
  --ink-faint:    #5f6a7b;

  --amber:        #e8b339;
  --amber-dim:    #a67f2a;
  --green:        #5ec48e;
  --red:          #e86055;
  --blue:         #6dacd8;
  --purple:       #b38ae0;

  --rc-coin:      #e8b339;
  --rc-struck:    #e86055;

  --flag-clear:   #5ec48e;
  --flag-review:  #e8b339;
  --flag-hold:    #e89f39;
  --flag-kill:    #e86055;

  --staging-ribbon: #e8b339;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: "Georgia", "Source Serif Pro", "Iowan Old Style", Palatino, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------- staging ribbon (always visible) -------- */
.staging-ribbon {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--staging-ribbon);
  color: #1a1500;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 12px;
  font-weight: 700;
  border-bottom: 2px solid #9a7a22;
}
.staging-ribbon a { color: #1a1500; text-decoration: underline; }

/* -------- staging-only visual override -------- */
/* When the staging ribbon is present (staging only — sync-homepage.ps1
   strips it from prod), make the masthead and footer bright pink so
   nobody mistakes a staging tab for the live site. The :has() selector
   means no body class to add or strip; the rule fires automatically
   wherever .staging-ribbon exists in the document. */
body:has(.staging-ribbon) .masthead,
body:has(.staging-ribbon) .site-footer {
  background: #ff1493 !important;
  color: #fff !important;
}
body:has(.staging-ribbon) .masthead .masthead-tagline,
body:has(.staging-ribbon) .masthead .wordmark,
body:has(.staging-ribbon) .site-footer {
  color: #fff !important;
}

/* -------- masthead -------- */
.masthead {
  border-bottom: 1px solid var(--border);
  padding: 36px 40px 28px;
  background: var(--bg);
}
/* Center-stacked newspaper-masthead treatment: big logo on top, tagline
   below, no nav (category pages don't exist yet). Matches the splitter
   landing's hero treatment so the brand feels the same everywhere. */
.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 22px;
  color: var(--ink);
  text-transform: uppercase;
}
.wordmark .glyph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.wordmark .site-logo {
  display: block;
  height: 64px;       /* matches sitelogo_RCOSWS.png native height (300×64) — render at scale, sharp */
  width: auto;
  max-width: 80vw;
}
.masthead-tagline {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.masthead-nav {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.masthead-nav a {
  color: var(--ink-muted);
}
.masthead-nav a:hover { color: var(--amber); text-decoration: none; }

/* Live product links — when an article mentions a commercial product
   (Neo Geo AES+, Analogue Pocket, ShaderGlass, etc.), wrap the mention
   in a .product-link so readers can jump straight to the product page.
   Styled as a subtle amber dotted underline so it stays in prose flow
   rather than reading like a generic blue URL. AIMatt rule: any named
   commercial product gets a product-link on first mention in an article. */
a.product-link,
.product-link {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px dotted var(--amber-dim);
  transition: border-color 120ms ease, color 120ms ease;
}
a.product-link:hover,
.product-link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
  text-decoration: none;
}
a.product-link strong { color: var(--amber); }

/* .nav-soon kept as a rule for any future "coming soon" slot (greyed,
   no pointer, no hover). Currently unused — the masthead-nav only
   carries the Boot link. */
.masthead-nav .nav-soon {
  color: var(--ink-faint);
  opacity: 0.6;
  cursor: default;
  user-select: none;
  text-decoration: none;
}
.masthead-nav .nav-soon:hover { color: var(--ink-faint); }

/* Boot-the-Computer link: the single functional escape-hatch from
   RCOSWS back into RCOS. Styled as a subtle amber button so it reads
   as a "portal" rather than a regular nav link. */
.masthead-nav .boot-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 8px 14px;
  border: 1px solid var(--amber-dim);
  border-radius: 3px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.masthead-nav .boot-link:hover {
  background: var(--amber);
  color: #1a1500;
  border-color: var(--amber);
  text-decoration: none;
}

/* Cart indicator in masthead — pinned to the right edge of the nav row */
.masthead-nav .cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber);
  color: #1a1500;
  border-color: var(--amber);
  margin-left: auto;
  padding: 7px 12px;
}
.masthead-nav .cart-link:hover {
  background: #f6cf6a;
  border-color: #f6cf6a;
}
.masthead-nav .cart-link .cart-icon {
  display: block;
  width: 18px;
  height: 18px;
}
.masthead-nav .cart-link .cart-count {
  font-weight: 700;
  letter-spacing: 0;
  font-size: 12px;
}

/* -------- container -------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 64px;
}

/* -------- homepage grid -------- */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
@media (max-width: 1000px) {
  .home-grid { grid-template-columns: 1fr; }
}

/* -------- homepage card thumbnails -------- */
/* Lead thumb: full-width hero above headline. Treats the homepage's lead
   piece like a magazine cover. */
.lead-thumb-link {
  display: block;
  margin-bottom: 16px;
  line-height: 0;
}
.lead-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elev);
}

/* Support card thumb: smaller, above headline, 16:9-ish aspect */
.card-thumb-link {
  display: block;
  margin-bottom: 12px;
  line-height: 0;
}
.card-thumb {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-elev);
}

/* Dispatch thumb: compact, next to the austere frame */
.dispatch-thumb-link {
  display: block;
  margin: -20px -20px 14px;  /* stretch into the card's own padding */
  line-height: 0;
}
.dispatch-thumb {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-elev);
}

/* -------- lead card -------- */
.lead {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.lead .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lead h1 {
  font-family: var(--sans);
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lead h1 a { color: var(--ink); }
.lead h1 a:hover { color: var(--amber); text-decoration: none; }
.lead .dek {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin: 0 0 14px;
  font-style: italic;
}
.lead .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------- supporting grid -------- */
.supporting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .supporting { grid-template-columns: 1fr; }
}
.support-card {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.support-card .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.support-card h2 {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.support-card h2 a { color: var(--ink); }
.support-card h2 a:hover { color: var(--amber); text-decoration: none; }
.support-card .dek {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin: 0 0 10px;
  font-style: italic;
}
.support-card .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------- dispatch card (narrow, austere) -------- */
.dispatch-card {
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  margin-bottom: 28px;
}
.dispatch-card .kicker {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dispatch-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 700;
}
.dispatch-card h3 a { color: var(--ink); }
.dispatch-card h3 a:hover { color: var(--amber); text-decoration: none; }
.dispatch-card .dek {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

/* -------- commerce column -------- */
.commerce {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
@media (max-width: 1000px) {
  .commerce { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
}
.commerce h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.commerce-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.commerce-item:last-child { border-bottom: 0; }
.commerce-item .product-name {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 4px;
}
.commerce-item .product-price {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.05em;
}
.commerce-item .product-blurb {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 6px;
  font-style: italic;
}

/* -------- commerce hero (booster pack art + intro) -------- */
.commerce-hero {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: opacity 0.15s ease;
}
.commerce-hero:hover { opacity: 0.85; }
.commerce-hero .pack-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  margin: 0 auto 10px;
  border-radius: 4px;
}
.commerce-hero .product-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 4px;
}
.commerce-hero .product-blurb {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

/* -------- commerce SKU rows (clickable) -------- */
.commerce-sku {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: padding-left 0.15s ease, border-color 0.15s ease;
}
.commerce-sku:hover {
  padding-left: 4px;
  border-color: var(--amber-dim);
}
.commerce-sku .sku-art {
  width: 56px;
  height: 76px;
  display: block;
}
.commerce-sku .sku-art-wide {
  width: 76px;
  height: 76px;
  margin-left: -10px;
}
.commerce-sku .sku-text {
  min-width: 0;
}
.commerce-sku .product-name {
  margin: 0;
  font-size: 14px;
}
.commerce-sku .product-detail {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 3px 0 0;
}
.commerce-sku .product-price {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.commerce-sku .price-savings {
  font-size: 10px;
  color: var(--ink-faint);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.commerce-footer {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-top: 14px;
  text-transform: uppercase;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
}
@media (max-width: 800px) { .article { padding: 24px; } }

.article .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article h1 {
  font-family: var(--sans);
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.article .dek {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article .byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.article .byline .byline-glyph {
  width: 16px; height: 16px; flex-shrink: 0;
}
.article .byline .byline-name {
  color: var(--amber);
  font-weight: 600;
}
.article .body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.article .body p { margin: 0 0 22px; }
.article .body p:first-of-type::first-letter {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--amber);
}
.article .body strong { color: var(--ink); font-weight: 700; }
.article .body em { color: var(--ink); }
.article .body blockquote {
  border-left: 3px solid var(--amber);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink-muted);
}
.article .body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ============================================================
   HERO FIGURE (top of article body)
   ============================================================ */
.hero-figure {
  margin: 0 0 32px;
  padding: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.hero-figure .hero-art {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, #0b0d10 0%, #14171c 100%);
}
.hero-figure .hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-elev);
}
/* If a real photo loaded, hide the SVG fallback that sits next to it. */
.hero-figure .hero-photo + .hero-art { display: none; }
.hero-figure figcaption {
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
}
.hero-figure figcaption .caption-credit {
  color: var(--amber-dim);
  margin-left: 8px;
}
.hero-figure.photo-slot {
  position: relative;
}
.hero-figure.photo-slot .photo-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  background: rgba(11, 13, 16, 0.85);
  border: 1px dashed var(--amber-dim);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Inline figure (inside article body) */
.article .body figure.inline-figure {
  margin: 28px 0;
  padding: 0;
}
.article .body figure.inline-figure svg,
.article .body figure.inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.article .body figure.inline-figure figcaption {
  padding: 10px 2px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote {
  margin: 36px -20px;
  padding: 28px 32px;
  border-top: 2px solid var(--amber);
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.pull-quote::before {
  content: "“";
  color: var(--amber);
  font-size: 40px;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -8px;
}
.pull-quote .attrib {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}
@media (max-width: 800px) {
  .pull-quote { margin: 28px 0; padding: 20px 18px; font-size: 20px; }
}

/* ============================================================
   DATA-VIZ CALLOUT
   ============================================================ */
.data-viz {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: center;
}
.data-viz .dv-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  grid-column: 1 / -1;
  margin: 0;
}
.data-viz .dv-number {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.data-viz .dv-number .dv-unit {
  font-size: 22px;
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 2px;
}
.data-viz .dv-body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.data-viz .dv-body strong {
  color: var(--ink);
  font-weight: 600;
}
.data-viz .dv-bar {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--bg-elev);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.data-viz .dv-bar .dv-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--amber);
}
.data-viz .dv-bar .dv-bar-fill.struck {
  background: var(--rc-struck);
}
.data-viz .dv-bar-caption {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* embedded review block (original block for review pieces) */
.review-block {
  margin: 36px 0;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
}
.review-block .review-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* RC score glyph */
.rc-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.rc-score .rc-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rc-score .rc-value {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--rc-coin);
  letter-spacing: -0.01em;
}
.rc-score .rc-value.negative { color: var(--rc-struck); }
.rc-score .coin-run {
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--rc-coin);
}
.rc-score .coin-run.struck { color: var(--rc-struck); text-decoration: line-through; }
.rc-score .rc-consensus {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  margin-top: 4px;
}
.rc-score .modifier-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--amber);
  color: #1a1500;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

/* tags + source records footer */
.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.8;
}
.article-footer .tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin: 0 6px 6px 0;
  color: var(--ink-muted);
}
.article-footer .source-list {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-muted);
}
.article-footer .source-list a { color: var(--blue); }

/* thumbs + comments (placeholder) */
.engagement {
  margin-top: 36px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.engagement .thumb-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.engagement .thumb-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 64px;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   AIMATT DECISION CHIP (on staged previews)
   ============================================================ */
.aimatt-decision {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 8px;
}
.aimatt-decision.clear   { border-left: 3px solid var(--flag-clear); }
.aimatt-decision.review  { border-left: 3px solid var(--flag-review); }
.aimatt-decision.hold    { border-left: 3px solid var(--flag-hold); }
.aimatt-decision.kill    { border-left: 3px solid var(--flag-kill); }
.aimatt-decision .tag-key { color: var(--ink-faint); }
.aimatt-decision .tag-val { color: var(--ink); font-weight: 600; }

/* ============================================================
   SHINY-VIEWPORT RESPONSIVE PASS
   ============================================================
   RCOSWS renders inside the Shiny browser iframe on staging.
   RCOS is a 640x480 framebuffer scaled to fit the viewport; Shiny
   maximized gives the iframe ~630x380 net pixels after browser chrome.
   This block retunes the Verge-lite layout for that narrow context.
   Kicks in below 760px, fully compact at ≤640px (Shiny's actual width).
   ============================================================ */

@media (max-width: 760px) {

  /* Staging ribbon: keep readable but allow wrap on tiny widths */
  .staging-ribbon {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 6px 8px;
    line-height: 1.3;
  }

  /* Masthead at Shiny viewport: keep the big newspaper feel, just scaled. */
  .masthead {
    padding: 22px 14px 18px;
  }
  .masthead-inner {
    gap: 10px;
  }
  .wordmark {
    font-size: 18px;
    letter-spacing: 0.03em;
    gap: 8px;
  }
  .wordmark .glyph { width: 22px; height: 22px; }
  .wordmark .site-logo { height: 58px; }       /* was 30 */
  .masthead-tagline {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  /* Homepage card thumbnails at Shiny viewport — tighter, shorter */
  .lead-thumb { max-height: 200px; }
  .card-thumb { height: 110px; }
  .dispatch-thumb {
    height: 100px;
    margin: -14px -14px 12px;  /* match dispatch-card narrow padding */
  }
  .masthead-tagline {
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }
  .masthead-nav {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.05em;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
  }

  /* Wrap: trim padding so we don't waste the 630px of inner width */
  .wrap {
    padding: 20px 14px 40px;
  }

  /* Homepage grid: always single column inside Shiny */
  .home-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Lead */
  .lead {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }
  .lead h1 {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.005em;
  }
  .lead .dek {
    font-size: 15px;
    line-height: 1.4;
  }
  .lead .kicker { margin-bottom: 10px; font-size: 10px; }
  .lead .meta  { font-size: 10px; }

  /* Supporting cards */
  .supporting { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
  .support-card { padding-bottom: 18px; }
  .support-card h2 { font-size: 17px; line-height: 1.2; }
  .support-card .dek { font-size: 14px; line-height: 1.4; }
  .support-card .kicker { font-size: 9.5px; margin-bottom: 6px; }
  .support-card .meta   { font-size: 9.5px; }

  /* Dispatch card — keep the austere frame, shrink typography */
  .dispatch-card {
    padding: 14px;
    margin-bottom: 22px;
  }
  .dispatch-card h3 { font-size: 16px; line-height: 1.2; }
  .dispatch-card .dek { font-size: 13px; line-height: 1.4; }
  .dispatch-card .kicker { font-size: 9.5px; }

  /* Commerce column stacks below main, compact */
  .commerce {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
  }
  .commerce h4 { font-size: 10px; margin-bottom: 12px; }
  .commerce-item { padding: 10px 0; }
  .commerce-item .product-name  { font-size: 13px; }
  .commerce-item .product-price { font-size: 10px; }
  .commerce-item .product-blurb { font-size: 12px; line-height: 1.35; }

  /* Site footer */
  .site-footer {
    font-size: 9.5px;
    padding: 18px 14px;
    margin-top: 36px;
    letter-spacing: 0.04em;
  }

  /* ===== ARTICLE PAGE ===== */

  .article {
    padding: 20px 14px;
    max-width: 100%;
  }
  .article .kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }
  .article h1 {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.005em;
    margin: 0 0 12px;
  }
  .article .dek {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 18px;
    padding-bottom: 16px;
  }
  .article .byline {
    font-size: 10px;
    gap: 8px;
    margin-bottom: 20px;
  }
  .article .byline .byline-glyph { width: 14px; height: 14px; }

  /* Article body — mobile readability tuning · 2026-04-25.
     Human feedback: 15px Georgia rendered thin on mobile dark theme.
     Fix: bump to 17px, switch to a screen-optimized serif stack
     (-apple-system-ui-serif resolves to NewYork/Charter on iOS;
     Charter + Iowan Old Style cover Android/desktop fallback ahead
     of Georgia). Open up line-height a notch for the smaller column.
     Pattern matches The Verge / NYT / Atlantic mobile body practice. */
  .article .body {
    font-family: -apple-system-ui-serif, "Charter", "Iowan Old Style", "Source Serif Pro", "New York", Georgia, Palatino, serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
  }
  .article .body p { margin: 0 0 18px; }
  .article .body p:first-of-type::first-letter {
    font-size: 40px;
    padding: 4px 7px 0 0;
  }
  .article .body blockquote {
    padding-left: 14px;
    margin: 20px 0;
    font-size: 15.5px;
  }

  /* Hero figure: inherit full width — the SVGs already fit via viewBox */
  .hero-figure {
    margin: 0 0 22px;
  }
  .hero-figure .hero-photo { max-height: 260px; }
  .hero-figure figcaption {
    padding: 9px 12px;
    font-size: 10px;
    line-height: 1.35;
  }

  /* Pull-quote: pull off the edges a bit less aggressively */
  .pull-quote {
    margin: 22px -6px;
    padding: 18px 16px;
    font-size: 18px;
    line-height: 1.3;
  }
  .pull-quote::before { font-size: 28px; }
  .pull-quote .attrib { font-size: 10px; margin-top: 8px; }

  /* Data-viz: stack the number above the body so both get real estate */
  .data-viz {
    padding: 16px;
    gap: 10px 16px;
    grid-template-columns: 1fr;
    margin: 22px 0;
  }
  .data-viz .dv-label { font-size: 9.5px; letter-spacing: 0.1em; }
  .data-viz .dv-number { font-size: 40px; line-height: 0.95; }
  .data-viz .dv-number .dv-unit { font-size: 16px; }
  .data-viz .dv-body { font-size: 12.5px; line-height: 1.45; }
  .data-viz .dv-bar-caption { font-size: 9px; }

  /* Review block (goldeneye) */
  .review-block {
    margin: 22px 0;
    padding: 16px;
    font-size: 13px;
  }
  .review-block .review-label { font-size: 9.5px; }
  .review-block h3 { font-size: 15px !important; }
  .rc-score { gap: 10px; }
  .rc-score .rc-value { font-size: 22px; }
  .rc-score .rc-label { font-size: 10.5px; }
  .rc-score .coin-run { font-size: 15px; }

  /* Engagement bar (thumbs): wrap, compact */
  .engagement {
    padding: 12px 14px;
    gap: 10px;
    font-size: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
  }
  .engagement .thumb-btn {
    padding: 5px 10px;
    font-size: 10px;
  }

  /* Article footer: tags + sources, smaller */
  .article-footer {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 10px;
    line-height: 1.7;
  }
  .article-footer .tag {
    padding: 2px 7px;
    font-size: 9.5px;
    margin: 0 4px 4px 0;
  }

  /* AIMatt decision chips (on staged previews): smaller footprint */
  .aimatt-decision {
    font-size: 9px;
    padding: 3px 7px;
    letter-spacing: 0.06em;
  }
}

/* A couple extra trims for the very-narrow Shiny case (≤640px = exact
   maximized inner viewport). Protects against edge clipping if RCOS is
   rendered below integer-scale minimums. */
@media (max-width: 640px) {
  .masthead-nav { font-size: 9.5px; gap: 8px; }
  .lead h1     { font-size: 22px; }
  .article h1  { font-size: 22px; }
  .article .body { font-size: 16px; line-height: 1.6; }
  .pull-quote  { font-size: 17px; padding: 16px 12px; }
  .data-viz .dv-number { font-size: 36px; }
}

