/* ============================================================
   FIELD GUIDE — editorial template family
   Inspired by Vercel/Linear/Stripe blog. Vanilla CSS, no deps.
   Per-domain palette overrides are injected via :root CSS vars
   in render.ts → themeCss().
   ============================================================ */

:root {
  --primary: #0F172A;
  --accent: #C2410C;
  --ink: #0A0A0A;
  --ink-soft: #1F1F22;
  --ink-mid: #45464A;
  --muted: #6B7280;
  --rule: #E5E7EB;
  --rule-soft: #F1F2F4;
  --bg: #FFFFFF;
  --bg-soft: #FAFAF7;
  --bg-tint: #FFF7ED;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.04);
  --font-heading: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-prose: 680px;
  --max-wide: 920px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 999px;
}

* { box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--bg); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.fg {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "ss02" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.fg-col {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reading progress bar ---------- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

/* ---------- Top nav: minimal, no CTAs ---------- */
.fg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.fg-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.fg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.fg-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.fg-brand-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.fg-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.fg-brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .fg-brand-tagline { display: none; }
}
.fg-nav-links {
  display: flex;
  gap: 24px;
}
.fg-nav-links a {
  font-size: 14px;
  color: var(--ink-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 120ms ease;
}
.fg-nav-links a:hover { color: var(--ink); }
@media (max-width: 600px) {
  .fg-nav-links { display: none; }
}

/* ---------- Article header (the HERO) ---------- */
.fg-article-header {
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 4.5vw, 56px);
  border-bottom: 1px solid var(--rule-soft);
}
.fg-eyebrow {
  display: block;
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fg-eyebrow span { display: inline-block; padding-right: 6px; }
.fg-h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 22ch;
}
.fg-dek {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink-mid);
  margin: 0 0 40px;
  max-width: 36ch;
}

/* ---------- Byline ---------- */
.fg-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  margin: 0;
}
.fg-byline-photos {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.fg-byline-photos .fg-byline-photo-primary img,
.fg-byline-photos .fg-byline-photo-primary .ed-photo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--rule);
  background: var(--bg-soft);
}
.fg-byline-photos .fg-reviewer-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  margin-left: -10px;
  box-shadow: 0 0 0 2px var(--bg);
  background: var(--bg-soft);
}
.fg-byline-meta { min-width: 0; }
.fg-byline-line {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.fg-byline-line a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 120ms ease;
}
.fg-byline-line a:hover { text-decoration-color: var(--accent); }
.fg-byline-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-feature-settings: "tnum" 1;
}
.fg-dot { opacity: 0.5; }

/* ---------- Article body (prose) ---------- */
.fg-prose {
  padding: 56px 24px 80px;
}
.fg-prose p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 24px;
  letter-spacing: -0.003em;
}
.fg-prose strong { color: var(--ink); font-weight: 600; }

/* Lede with drop cap */
.fg-lede p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4.2em;
  line-height: 0.88;
  float: left;
  padding: 4px 12px 0 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.fg-lede > p:first-of-type {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}

/* TL;DR — thin info box */
.fg-tldr {
  margin: 40px 0 56px;
  padding: 18px 22px;
  border-left: 3px solid var(--ink);
  background: var(--bg-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.fg-tldr-eyebrow {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.fg-tldr ul {
  margin: 0;
  padding-left: 18px;
}
.fg-tldr li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.fg-tldr li:last-child { margin-bottom: 0; }
.fg-tldr li::marker { color: var(--ink-mid); }

/* Section labels + H2 */
.fg-section { margin: 64px 0; scroll-margin-top: 80px; }
.fg-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.fg-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 24ch;
}
.fg-section-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin: 0 0 28px;
  max-width: 56ch;
}
.fg-section h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 28px 0 8px;
}

/* Capability "cards" rendered as inline list items (less SaaSy) */
.fg-capability-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.fg-capability-list > * {
  position: relative;
  padding: 0 0 0 28px;
}
.fg-capability-list > *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.fg-capability-list .cap-feature {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.fg-capability-list .cap-feature svg { display: none; }
.fg-capability-list .cap-icon { display: none; }
.fg-capability-list h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.013em;
  color: var(--ink);
  margin: 0 0 8px;
}
.fg-capability-list .cap-works {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.fg-capability-list .cap-falls {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

/* Pull quote — generous, single-column-breaking, italic */
.fg-pullquote {
  margin: 64px -8px;
  padding: 0 0 0 32px;
  border-left: 3px solid var(--accent);
}
.fg-pullquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 30ch;
}

/* Tools list — editorial list with hairline rules, not boxy cards */
.fg-tools {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.fg-tools li {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.fg-tools li.tool-card { background: transparent !important; box-shadow: none !important; }
.fg-tools .tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
}
.fg-tools .tool-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fg-tools h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}
.fg-tools h3 a { color: inherit; text-decoration: none; }
.fg-tools h3 a:hover { color: var(--accent); }
.fg-tools .tool-domain {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 0;
}
.fg-tools .tool-angle {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  padding-left: 50px;
}
.fg-tools .tool-pin {
  position: absolute;
  top: 24px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Comparison table — editorial, hairline rules, no chunky pills */
.fg-cmp-wrap {
  margin: 28px 0 0;
  overflow-x: auto;
}
.fg-cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.fg-cmp th,
.fg-cmp td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.fg-cmp thead th {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.fg-cmp thead th.u { color: var(--accent); }
.fg-cmp tbody td { color: var(--ink-soft); line-height: 1.55; }
.fg-cmp tbody td.u { font-weight: 500; color: var(--ink); }
.fg-cmp tbody td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  width: 28%;
}
/* Override the loud pills from the base authority-hub CSS — make minimal */
.fg-cmp .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  background: transparent;
}
.fg-cmp .pill-yes { color: var(--ink); }
.fg-cmp .pill-yes::before { content: "●"; color: var(--accent); margin-right: 4px; }
.fg-cmp .pill-no { color: var(--muted); }
.fg-cmp .pill-no::before { content: "○"; margin-right: 4px; }
.fg-cmp .pill-mid { color: var(--ink-mid); font-style: italic; }
.fg-cmp .pill-strong { color: var(--accent); font-weight: 600; }
.fg-cmp .pill svg { display: none; }
.fg-cmp .cmp-cell-text { font-size: 13.5px; }
.fg-cmp .cmp-cell-text.muted { color: var(--muted); }

.fg-verdict {
  margin: 24px 0 0;
  padding: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
  border-top: 1px solid var(--rule-soft);
}

/* Evidence — overrides the boxy style from authority-hub */
.evidence {
  margin: 56px 0;
  padding: 0;
  background: transparent;
  border: none;
}
.evidence .wrap { padding: 0; max-width: none; }
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 28px 0 0;
}
.ev-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}
.ev-card:last-child { border-bottom: none; }
.ev-card figure { margin: 0; }
.ev-card .ev-no-shot {
  background: var(--bg-soft);
  border: 1px dashed var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 40px 16px;
  text-align: center;
}
.ev-card .ev-body { padding: 0; }
.ev-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.013em;
  margin: 6px 0 8px;
  color: var(--ink);
}
.ev-card .ev-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.ev-card .ev-finding {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 620px) {
  .ev-card { grid-template-columns: 1fr; }
}

/* Inline aside — the ONE product mention, late in article */
.fg-aside {
  margin: 64px -24px;
  padding: 32px 32px 30px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
}
.fg-aside-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.fg-aside-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-style: italic;
}
.fg-aside-body p:last-of-type { margin-bottom: 0; }
.fg-aside-cta { margin: 18px 0 0; }
.fg-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.fg-link-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.18);
}
.fg-page-body a.fg-link-cta,
.fg-page-body a.fg-btn-secondary,
.fg-page-body a.fg-method-callout-cta,
.fg-people-link {
  text-decoration: none;
}
.fg-page-body a.fg-link-cta { color: var(--bg); }
.fg-page-body a.fg-btn-secondary { color: var(--ink); }

/* Methodology block */
.fg-methodology p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.fg-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 0;
  letter-spacing: -0.003em;
}

/* ---------- Author bio card (end of article) ---------- */
.fg-author-section {
  padding: 64px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
.ed-author-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 0 auto;
  max-width: var(--max-prose);
  box-shadow: var(--shadow-sm);
}
.ed-author-card-photo img,
.ed-author-card-photo .ed-photo-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--rule);
  background: var(--bg-soft);
}
.ed-author-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.ed-author-card-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0 0 4px;
  color: var(--ink);
}
.ed-author-card-role {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.ed-author-card-bio {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 60ch;
}
.ed-prior-work {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ed-prior-work li a {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.ed-prior-work li a:hover { color: var(--ink); border-color: var(--ink); }
.ed-author-card-cta { display: flex; gap: 12px; }
.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.ed-btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.ed-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.18);
}
.ed-reviewer-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: transparent;
  border: none;
  padding: 18px 28px 0;
  margin: 16px auto 0;
  max-width: var(--max-prose);
}
.ed-reviewer-card .ed-byline-photo img,
.ed-reviewer-card .ed-byline-photo .ed-photo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--rule);
}
.ed-reviewer-card .ed-byline-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}
.ed-reviewer-card .ed-byline-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--ink);
}
.ed-reviewer-card .ed-byline-role {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.ed-reviewer-card .ed-byline-bio { display: none; }
@media (max-width: 560px) {
  .ed-author-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .ed-author-card-photo img,
  .ed-author-card-photo .ed-photo-fallback { margin: 0; }
}

/* Photo fallback (when no image) */
.ed-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
  background: var(--bg-soft);
}
.ed-photo-sm { width: 56px; height: 56px; font-size: 18px; }
.ed-photo-md { width: 88px; height: 88px; font-size: 28px; }
.ed-photo-lg { width: 120px; height: 120px; font-size: 38px; }

/* ---------- Related reading ---------- */
.related {
  padding: 64px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.related .wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.related .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.related .section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 32px;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.related-list li {
  background: transparent;
  padding: 24px 0 0;
  border-top: 2px solid var(--ink);
}
.related-list li a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  display: block;
}
.related-list li a:hover { color: var(--accent); }
.related-list .related-snippet {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ---------- FAQ ---------- */
.fg-faq {
  padding: 64px 0;
  border-top: 1px solid var(--rule-soft);
}
.fg-faq-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 18ch;
}
.fg-faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.fg-faq-list details summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  padding: 22px 32px 22px 0;
  position: relative;
  transition: color 120ms ease;
}
.fg-faq-list details summary::-webkit-details-marker { display: none; }
.fg-faq-list details summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 200ms ease, color 120ms ease;
}
.fg-faq-list details[open] summary::after { content: "−"; color: var(--ink); }
.fg-faq-list details summary:hover { color: var(--accent); }
.fg-faq-list details .faq-answer {
  padding: 0 0 22px;
  color: var(--ink-soft);
}
.fg-faq-list details .faq-answer p {
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}

/* ---------- Testimonials (de-emphasized — moved to bottom, smaller) ---------- */
.testimonials {
  padding: 56px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
.testimonials .wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.testimonials .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.testimonials .section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 28px;
  max-width: 24ch;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: transparent;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.testimonial .stars { font-size: 13px; color: var(--accent); letter-spacing: 1px; }
.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  margin: 8px 0 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.testimonial cite {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}
.testimonial cite .photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.testimonial cite .who b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- Footer ---------- */
.fg-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: 56px 0 40px;
}
.fg-footer .fg-col {
  max-width: var(--max-wide);
}
.fg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .fg-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.fg-footer-brand {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.012em;
}
.fg-footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
  line-height: 1.5;
}
.fg-footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.fg-footer-cite {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
.fg-footer a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}
.fg-footer a:hover { text-decoration-color: var(--accent); }
.fg-footer-copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  letter-spacing: -0.003em;
}

/* ---------- Cluster pages ---------- */
.fg-article-header-cluster {
  padding: clamp(40px, 5.5vw, 72px) 0 clamp(32px, 4vw, 48px);
}
.fg-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.fg-breadcrumb a { color: var(--ink); text-decoration: none; }
.fg-breadcrumb a:hover { color: var(--accent); }
.fg-bc-sep { opacity: 0.5; }
.fg-bc-current { color: var(--muted); }
.fg-h1-cluster {
  font-size: clamp(32px, 4.4vw, 52px);
  max-width: 24ch;
}
.fg-cluster-sections section {
  margin: 56px 0;
  scroll-margin-top: 80px;
}
.fg-cluster-sections section h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 26ch;
  position: relative;
  padding-top: 24px;
}
.fg-cluster-sections section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.fg-cluster-sections section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* ---------- Disclosure panel (under byline, identifies research-outfit + data partner) ---------- */
.fg-disclosure {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.fg-disclosure-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.fg-disclosure-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
  max-width: 64ch;
}
.fg-disclosure-body strong { color: var(--ink); font-weight: 600; }
.fg-disclosure-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 120ms ease;
}
.fg-disclosure-body a:hover { text-decoration-color: var(--accent); }

/* ---------- Latest research section (spine of the research-outfit identity) ---------- */
.fg-research {
  padding: 80px 0 56px;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
.fg-research .fg-col { max-width: var(--max-wide); }
.fg-research-head { margin: 0 0 40px; }
.fg-research-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 28ch;
}
.fg-research-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
  max-width: 56ch;
}
.fg-research-sub a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.fg-research-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.fg-research-card {
  background: var(--bg);
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 160ms ease;
}
.fg-research-card--published { background: var(--bg); }
.fg-research-card--prep { background: var(--bg-soft); }
.fg-research-card--published:hover { background: #FAFAF7; }
.fg-research-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0;
}
.fg-research-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4px;
}
.fg-research-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 14px;
}
.fg-research-status--published { color: var(--accent); font-weight: 600; }
.fg-research-status--published::before {
  content: "● ";
  margin-right: 2px;
}
.fg-research-status--prep::before {
  content: "○ ";
  margin-right: 2px;
  color: var(--muted);
}
.fg-research-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
.fg-research-card--published .fg-research-link:hover .fg-research-title { color: var(--accent); }
.fg-research-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0 0 14px;
}
.fg-research-cta {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: auto 0 0;
  letter-spacing: -0.005em;
}
.fg-research-card--published .fg-research-link:hover .fg-research-cta { color: var(--accent); }
.fg-research-cta-row {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fg-research-cite {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.003em;
}
.fg-research-cite em { font-style: italic; color: var(--ink-mid); }
.fg-mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* ---------- Expanded footer (research-outfit layout) ---------- */
.fg-footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
}
@media (max-width: 800px) {
  .fg-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .fg-footer-grid { grid-template-columns: 1fr; }
}
.fg-footer-disclosure {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
}
.fg-footer-disclosure a { color: var(--ink); font-weight: 500; }
.fg-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fg-footer-links li {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.5;
}
.fg-footer-links li:last-child { margin-bottom: 0; }
.fg-footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-bottom-color 120ms ease;
}
.fg-footer-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.fg-footer-pin {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: var(--r-full);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 1.5px;
}
.fg-footer-follow {
  margin: 14px 0 0;
  font-size: 13.5px;
}

/* ============================================================
   STATIC SUB-PAGES (about, methodology, research index, reports)
   Lighter chrome than the pillar; shares the field-guide vocabulary.
   ============================================================ */

.fg-page {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--rule-soft);
}
.fg-page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.fg-page-h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 22ch;
}
.fg-page-dek {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-mid);
  margin: 0 0 28px;
  max-width: 38ch;
  letter-spacing: -0.012em;
}
.fg-page-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.fg-page-meta .fg-dot { opacity: 0.5; }
.fg-page-body { padding: 48px 24px 80px; }
.fg-page-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 16px;
  max-width: 28ch;
}
.fg-page-body h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 32px 0 10px;
}
.fg-page-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.fg-page-body ul,
.fg-page-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.fg-page-body li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.fg-page-body li::marker { color: var(--ink-mid); }
.fg-page-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.fg-page-body strong { color: var(--ink); font-weight: 600; }

/* People grid (team listing on /about/) */
.fg-people {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.fg-people li {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 22px 20px;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.fg-people .ed-photo-fallback,
.fg-people img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  margin: 0 0 14px;
  object-fit: cover;
  background: var(--bg-soft);
}
.fg-people .ed-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  user-select: none;
}
.fg-people-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.012em;
}
.fg-people-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.fg-people-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.fg-people-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* Report listing (on /research/) */
.fg-reports {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.fg-reports > li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
@media (max-width: 640px) {
  .fg-reports > li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.fg-reports .rep-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.fg-reports .rep-body { min-width: 0; margin: 0; }
.fg-reports .rep-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}
.fg-reports .rep-title a { color: inherit; text-decoration: none; }
.fg-reports .rep-title a:hover { color: var(--accent); }
.fg-reports .rep-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
  max-width: 60ch;
}
.fg-reports .rep-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.fg-reports .rep-status.rep-status--published { color: var(--accent); }
.fg-reports .rep-status::before { content: "○ "; }
.fg-reports .rep-status--published::before { content: "● "; }
@media (max-width: 640px) {
  .fg-reports .rep-status { text-align: left; }
}

/* Big stat callouts (used on report pages) */
.fg-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 40px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.fg-stat-row > div {
  padding: 24px 0;
  border-right: 1px solid var(--rule);
}
.fg-stat-row > div:last-child { border-right: none; }
@media (max-width: 540px) {
  .fg-stat-row > div { border-right: none; border-bottom: 1px solid var(--rule); }
  .fg-stat-row > div:last-child { border-bottom: none; }
}
.fg-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 4px;
  font-feature-settings: "tnum" 1;
}
.fg-stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  max-width: 22ch;
}

/* Architecture table (used in install-times report) */
.fg-arch-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14.5px;
}
.fg-arch-table th,
.fg-arch-table td {
  text-align: left;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.fg-arch-table thead th {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}
.fg-arch-table tbody td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  width: 32%;
}
.fg-arch-table .arch-time {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  color: var(--ink);
  font-weight: 500;
}

/* Data-source / methodology callout */
.fg-source-box {
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.fg-source-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.fg-source-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0;
}
.fg-source-body strong { color: var(--ink); }

/* ============================================================
   PORTAL HOMEPAGE — Statista-style research portal
   Data-first dashboard. Mixed content types. Charts above the fold.
   ============================================================ */

.fg-portal { font-family: var(--font-body); }
.fg-portal .fg-col-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* PORTAL HERO — featured statistic + chart */
.fg-portal-hero {
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.fg-portal-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 820px) {
  .fg-portal-hero-grid { grid-template-columns: 1fr; }
}
.fg-portal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fg-portal-eyebrow .fg-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0);   }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);     }
}
.fg-portal-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 16px;
  font-feature-settings: "tnum" 1;
}
.fg-portal-stat-num small {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.02em;
  margin-left: 6px;
}
.fg-portal-stat-headline {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 24ch;
}
.fg-portal-stat-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 56ch;
}
.fg-portal-stat-meta strong { color: var(--ink-mid); font-weight: 600; }
.fg-portal-stat-meta-short {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-mid);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 42ch;
  font-feature-settings: "tnum" 1;
}
.fg-portal-stat-meta-short strong {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}
.fg-portal-stat-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fg-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: border-color 120ms ease, color 120ms ease;
}
.fg-btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* Inline SVG bar chart container */
.fg-chart {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.fg-chart-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.012em;
}
.fg-chart-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 16px;
  letter-spacing: -0.003em;
}
.fg-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fg-chart-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 12px;
}
@media (max-width: 460px) {
  .fg-chart-row { grid-template-columns: 100px 1fr 50px; }
}
.fg-chart-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fg-chart-track {
  background: var(--rule-soft);
  height: 22px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.fg-chart-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fg-chart-fill--muted { background: var(--rule); }
.fg-chart-fill--strong { background: var(--ink); }
.fg-chart-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mid);
  text-align: right;
  font-feature-settings: "tnum" 1;
}
.fg-chart-foot {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.55;
  letter-spacing: -0.003em;
}
.fg-chart-foot a { color: var(--ink-mid); text-decoration: underline; text-decoration-color: var(--rule); }

/* CORPUS STRIP — horizontal stat bar showing data scale */
.fg-corpus {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 88px;
}
section + section,
section + aside,
aside + section {
  margin-top: 24px;
}
.fg-corpus-overline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.6;
  margin: 0 0 28px;
}
.fg-corpus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 980px) {
  .fg-corpus-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .fg-corpus-grid { grid-template-columns: 1fr; gap: 28px; }
}
.fg-corpus-stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fg-corpus-val {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-feature-settings: "tnum" 1;
  line-height: 0.92;
}
.fg-corpus-lbl {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bg);
  opacity: 0.82;
  line-height: 1.45;
  text-transform: uppercase;
  line-height: 1.45;
}
.fg-corpus-math {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--bg);
  opacity: 0.55;
  margin-top: 4px;
}
.fg-corpus-foot {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--bg);
  opacity: 0.72;
  max-width: 86ch;
}
.fg-corpus-foot strong {
  color: var(--bg);
  opacity: 1;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* SECTION HEADERS on portal */
.fg-portal-section { padding: clamp(56px, 7vw, 88px) 0; }
.fg-portal-section + .fg-portal-section { padding-top: 0; }
.fg-portal-section-head {
  margin: 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.fg-portal-section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0;
  max-width: 28ch;
}
.fg-portal-section-head .fg-section-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* MIXED CONTENT GRID — Latest releases */
.fg-mix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.fg-mix > li {
  position: relative;
  background: var(--bg);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0;
  margin: 0;
  transition: background 120ms ease;
}
.fg-mix > li:hover { background: var(--bg-soft); }
.fg-mix > li > a,
.fg-mix > li > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 24px 22px;
  text-decoration: none;
  color: inherit;
}
.fg-mix-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fg-mix-type::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.fg-mix-type--statistic { color: var(--accent); }
.fg-mix-type--statistic::before { background: var(--accent); }
.fg-mix-type--report { color: var(--ink); }
.fg-mix-type--report::before { background: var(--ink); }
.fg-mix-type--guide { color: var(--ink-mid); }
.fg-mix-type--guide::before { background: var(--ink-mid); }
.fg-mix-type--note { color: var(--muted); font-style: italic; }
.fg-mix-type--note::before { background: var(--rule); border: 1px solid var(--muted); }
.fg-mix h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.013em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 10px;
}
.fg-mix > li:hover h3 { color: var(--accent); }
.fg-mix p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0 0 14px;
}
.fg-mix-foot {
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.fg-mix-foot .fg-dot { opacity: 0.5; }

/* Mini stat block embedded in card (for statistic cards) */
.fg-mix-stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 4px 0 10px;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.fg-mix-stat-num small { font-size: 0.5em; color: var(--muted); margin-left: 4px; font-weight: 500; }
.fg-mix-stat-chart {
  height: 8px;
  background: var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 14px;
}
.fg-mix-stat-chart > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* TOPICS ROW */
.fg-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}
.fg-topics > li {
  background: var(--bg);
  margin: 0;
  padding: 0;
  position: relative;
}
.fg-topics > li:nth-child(even) { border-left: 1px solid var(--rule); }
.fg-topics > li:nth-child(n+3) { border-top: 1px solid var(--rule); }
@media (max-width: 720px) {
  .fg-topics { grid-template-columns: 1fr; }
  .fg-topics > li { border-left: none !important; }
  .fg-topics > li + li { border-top: 1px solid var(--rule); }
}
.fg-topics > li > a {
  display: block;
  padding: 28px 24px 26px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background 120ms ease;
}
.fg-topics > li > a:hover { background: var(--bg-soft); }
.fg-topics-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 10px;
}
.fg-topics h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.25;
}
.fg-topics > li:hover h3 { color: var(--accent); }
.fg-topics-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0 0 14px;
}
.fg-topics-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  margin: 0;
  font-weight: 600;
}

/* UPLIFTED CTA — tasteful but prominent block. Used at the end of every key page
   to drive qualified traffic to uplifted.ai while preserving the editorial
   independence positioning. The eyebrow ("where this data comes from") frames
   the CTA as disclosure, not promotion. */
.fg-uplifted-cta {
  margin: 96px auto;
  padding: 0;
}
section + .fg-uplifted-cta,
article + .fg-uplifted-cta,
.fg-uplifted-cta + section,
.fg-uplifted-cta + article {
  margin-top: 96px;
}
.fg-uplifted-cta-inner {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}
.fg-uplifted-cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(255, 102, 51, 0.16), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(255, 255, 255, 0.04), transparent 50%);
  pointer-events: none;
}
.fg-uplifted-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fg-uplifted-cta-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.fg-uplifted-cta-h {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--bg);
  margin: 0 0 14px;
  line-height: 1.22;
  max-width: 30ch;
}
.fg-uplifted-cta-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--bg);
  opacity: 0.78;
  margin: 0 0 24px;
  max-width: 70ch;
}
.fg-uplifted-cta-body strong {
  color: var(--bg);
  opacity: 1;
  font-weight: 600;
  font-family: var(--font-heading);
}
.fg-uplifted-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.fg-uplifted-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.fg-uplifted-btn:hover {
  transform: translateY(-1px);
  background: #ff7a47;
  box-shadow: 0 8px 20px -6px rgba(255, 102, 51, 0.45);
}
.fg-uplifted-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bg);
  opacity: 0.7;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: opacity 120ms ease, border-color 120ms ease;
}
.fg-uplifted-link:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}
.fg-uplifted-cta-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bg);
  opacity: 0.5;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.fg-uplifted-cta-foot a { color: var(--bg); opacity: 0.85; }

/* LATEST RELEASES — calm ledger feed (replaces the dense mix grid) */
.fg-feed-sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 16px;
  letter-spacing: 0.01em;
}
.fg-feed {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.fg-feed > li {
  border-bottom: 1px solid var(--rule);
  margin: 0;
  padding: 0;
}
.fg-feed-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: 22px 16px;
  margin: 0 -16px;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: background 140ms ease;
}
.fg-feed-item:hover { background: var(--bg-soft); }
.fg-feed-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: start;
  padding-top: 4px;
}
.fg-feed-tag--stat { color: var(--accent); }
.fg-feed-tag--report { color: var(--ink); }
.fg-feed-tag--note { color: var(--muted); }
.fg-feed-tag--guide { color: var(--ink-mid); }
.fg-feed-body { min-width: 0; }
.fg-feed-title {
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}
.fg-feed-item:hover .fg-feed-title { color: var(--accent); }
.fg-feed-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  max-width: 70ch;
}
.fg-feed-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.fg-feed-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  transition: transform 140ms ease;
  display: inline-block;
}
.fg-feed-item:hover .fg-feed-arrow { transform: translateX(4px); }
@media (max-width: 780px) {
  .fg-feed-item {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 18px 12px;
    margin: 0 -12px;
  }
  .fg-feed-tag { grid-column: 1 / -1; padding: 0 0 6px; }
  .fg-feed-meta { grid-column: 1 / -1; padding-top: 8px; }
}

/* EDITORIAL INSET — short opinion piece on portal */
.fg-editorial-inset {
  margin: 56px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 780px) {
  .fg-editorial-inset { grid-template-columns: 1fr; gap: 32px; }
}
.fg-editorial-inset .fg-portal-eyebrow { color: var(--muted); }
.fg-editorial-inset h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.25;
  max-width: 28ch;
}
.fg-editorial-inset p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.fg-editorial-byline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}

/* PARTNERSHIP REMINDER — narrow band, near end of portal */
.fg-partnership {
  margin: 0;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
}
.fg-partnership .fg-col {
  max-width: var(--max-prose);
  text-align: center;
}
.fg-partnership-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.fg-partnership-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.fg-partnership-text strong { color: var(--ink); font-weight: 600; }
.fg-partnership-text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ============================================================
   CAPABILITY MATRIX TABLE — for Live Index content type
   Pure data table. No prose. Status pills (Yes / Partial / No).
   ============================================================ */
.fg-matrix-wrap {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fg-matrix-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.fg-matrix-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.013em;
  margin: 0;
}
.fg-matrix-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}
.fg-matrix-meta strong { color: var(--ink-mid); font-weight: 600; }
.fg-matrix-scroll { overflow-x: auto; }
table.fg-matrix {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13.5px;
  min-width: 720px;
}
table.fg-matrix thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
table.fg-matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
  border-right: 1px solid var(--rule);
}
table.fg-matrix tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
  color: var(--ink-mid);
}
table.fg-matrix tbody tr:last-child td { border-bottom: none; }
table.fg-matrix tbody tr:hover td { background: var(--bg-soft); }
table.fg-matrix tbody th {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  left: 0;
  white-space: nowrap;
}
table.fg-matrix tbody th .fg-vendor-note {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* Status pill cells */
.fg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.fg-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.fg-pill--yes {
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
}
.fg-pill--yes::before { background: var(--accent); }
.fg-pill--partial {
  background: rgba(120, 80, 0, 0.08);
  color: #8a5a00;
}
.fg-pill--partial::before { background: #c08a30; }
.fg-pill--no {
  background: var(--rule-soft);
  color: var(--muted);
}
.fg-pill--no::before { background: var(--rule); border: 1px solid var(--muted); width: 4px; height: 4px; }
.fg-pill--unknown {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--rule);
}
.fg-pill--unknown::before { display: none; }

/* Aggregate score column / row */
.fg-matrix tbody td.fg-cell-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  font-feature-settings: "tnum" 1;
}
.fg-matrix tbody td.fg-cell-score--high { color: var(--accent); }
.fg-matrix tbody td.fg-cell-score--mid  { color: var(--ink-mid); }
.fg-matrix tbody td.fg-cell-score--low  { color: var(--muted); }

/* Footer note inside matrix wrap */
.fg-matrix-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.fg-matrix-foot a { color: var(--ink-mid); text-decoration: underline; text-decoration-color: var(--rule); }

/* Aggregate stats row at top of matrix (e.g. "8/10 publish REST, 1/10 ship MCP") */
.fg-matrix-aggregate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.fg-matrix-aggregate > div {
  padding: 18px 20px;
  border-right: 1px solid var(--rule-soft);
  background: var(--bg);
}
.fg-matrix-aggregate > div:last-child { border-right: none; }
.fg-matrix-aggregate dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.fg-matrix-aggregate dd {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.022em;
  font-feature-settings: "tnum" 1;
  line-height: 1;
}
.fg-matrix-aggregate dd small {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: -0.01em;
}

/* ============================================================
   PORTAL INDEX PREVIEW — compact capability matrix for homepage
   Replaces the editorial inset. Pure data, no narrative.
   ============================================================ */
.fg-index-preview {
  margin: 0;
  padding: 0;
}
.fg-index-preview-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 0 0 24px;
}
.fg-index-preview-head h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  max-width: 32ch;
}
.fg-index-preview-head .fg-section-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
}
.fg-index-preview-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin: -16px 0 24px;
  letter-spacing: 0.02em;
}

/* ============================================================
   DATA-BRIEF / methodology callout — compact, anti-essay
   ============================================================ */
.fg-method-callout {
  margin: 56px 0 0;
  padding: 28px 32px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.fg-method-callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.fg-method-callout-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.fg-method-callout-text {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0 0 18px;
  max-width: 70ch;
}
.fg-method-callout-text strong { color: var(--ink); font-weight: 600; }
.fg-method-callout-cta {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  white-space: nowrap;
}
.fg-method-callout-legend {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}
.fg-method-callout-legend > li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mid);
  margin: 0;
}
.fg-method-callout-legend > li .fg-pill { flex-shrink: 0; }
.fg-method-callout-legend-text { white-space: nowrap; }
@media (max-width: 600px) {
  .fg-method-callout { padding: 22px 22px 20px; }
  .fg-method-callout-legend { gap: 14px 24px; }
}

/* ============================================================
   STATISTIC DETAIL PAGE — for /statistics/<slug>/ pages
   ============================================================ */
.fg-stat-detail {
  padding: clamp(40px, 6vw, 72px) 0;
}
.fg-stat-detail-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(32px, 4vw, 48px);
  margin-bottom: clamp(40px, 5vw, 56px);
}
.fg-stat-detail .fg-page-h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 30ch;
}
.fg-stat-detail-num {
  font-family: var(--font-heading);
  font-size: clamp(64px, 11vw, 128px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 16px 0 24px;
  font-feature-settings: "tnum" 1;
}
.fg-stat-detail-num small { font-size: 0.35em; font-weight: 500; color: var(--muted); margin-left: 10px; letter-spacing: -0.02em; }
.fg-stat-detail-context {
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-mid);
  margin: 0 0 28px;
  max-width: 48ch;
  letter-spacing: -0.012em;
}
.fg-stat-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fg-stat-detail-meta dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.fg-stat-detail-meta dd {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  font-feature-settings: "tnum" 1;
}

/* ---------- Subtle entrance for sections ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fg-section,
  .fg-pullquote,
  .fg-aside,
  .fg-author-section,
  .related,
  .fg-faq,
  .fg-research,
  .fg-disclosure,
  .fg-portal-hero,
  .fg-corpus,
  .fg-portal-section,
  .fg-partnership {
    animation: fg-fade-up 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}
@keyframes fg-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
