/* ==========================================================================
   guide-v2.css — design-system restyle for /guide/ pages and the
   /blog/ broadsheet article only. Added 2026-08-06.

   Replicates the homepage's visual language (Newsreader display serif,
   IBM Plex Sans/Mono, cream #f6f5f1 / ink #0b1418 / teal #0f5f52 /
   signal red #b03a1f, hairline #e0dcd2) using classes scoped to these
   pages. /weekly/ deliberately keeps its periodical look and does not
   load this file. No global stylesheet is modified.
   ========================================================================== */

.g2 {
  font-family: 'IBM Plex Sans', sans-serif;
  color: #0b1418;
  background: #f6f5f1;
}

.g2 main {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 80px);
}

/* Prose measure ~68ch */
.g2 article p,
.g2 article ul:not(.stat-grid),
.g2 article ol:not(.contents-grid),
.g2 article dl,
.g2 article blockquote {
  max-width: 68ch;
}

.g2 article {
  font-size: 17px;
  line-height: 1.62;
}

.g2 article p { color: #2c3835; margin: 0 0 18px; }
.g2 article a { color: #0f5f52; text-decoration-color: rgba(15, 95, 82, .4); }
.g2 article a:hover { text-decoration-color: #0f5f52; }
.g2 article strong { color: #0b1418; }
.g2 article cite { font-style: normal; font-size: 15px; color: #59665f; }

.g2 article h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 6px 0 18px;
  max-width: 24ch;
  text-wrap: pretty;
}

.g2 article h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  max-width: 30ch;
}

.g2 article h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.25;
  margin: 22px 0 8px;
}

.g2 article section { margin: 0 0 clamp(36px, 4.5vw, 56px); }

/* Eyebrow / kicker labels — homepage mono style */
.g2 .eyebrow,
.g2 .chapter-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0f5f52;
  margin: 0 0 10px;
}

.g2 .breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #5d6b67;
  margin-bottom: 22px;
}
.g2 .breadcrumb a { color: #5d6b67; text-decoration: none; }
.g2 .breadcrumb a:hover { color: #0f5f52; }
.g2 .breadcrumb .active { color: #0b1418; }

.g2 .article-meta {
  font-size: 15px;
  color: #59665f;
  margin: 0 0 22px;
}
.g2 .article-meta strong { color: #0b1418; }

.g2 .article-intro {
  font-size: 19px;
  line-height: 1.58;
  color: #0b1418;
  border-left: 3px solid #0f5f52;
  padding: 4px 0 4px 20px;
  margin: 0 0 8px;
}
.g2 .article-intro strong { font-weight: 600; }

/* Stat blocks — homepage large-figure card component */
.g2 .stat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 22px 0;
}
.g2 .stat-grid li,
.g2 div.stat-card {
  background: #fff;
  border: 1px solid #e0dcd2;
  padding: 32px 28px;
  margin: 0;
}
.g2 .stat-fig {
  display: block;
  font-family: 'Newsreader', serif;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1;
  color: #b03a1f;
  margin-bottom: 16px;
}
.g2 .stat-fig small { font-size: 26px; color: #6b7873; }
.g2 .stat-claim {
  font-size: 18px;
  line-height: 1.62;
  color: #0b1418;
  margin: 0 0 12px !important;
  font-weight: 500;
}
.g2 .stat-src {
  font-size: 15px;
  line-height: 1.5;
  color: #59665f;
  margin: 0 !important;
}

/* Contents as numbered cards — four-step engagement component */
.g2 ol.contents-grid {
  list-style: none;
  counter-reset: chapter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: #e0dcd2;
  border: 1px solid #e0dcd2;
  padding: 0;
  margin: 22px 0;
  max-width: none;
}
.g2 ol.contents-grid li {
  counter-increment: chapter;
  background: #f6f5f1;
  padding: 26px 24px;
  margin: 0;
}
.g2 ol.contents-grid li::before {
  content: "0" counter(chapter);
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: #0f5f52;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.g2 ol.contents-grid li:nth-child(n+10)::before { content: counter(chapter); }
.g2 ol.contents-grid li a {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  line-height: 1.2;
  color: #0b1418;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.g2 ol.contents-grid li a:hover { color: #0f5f52; }
.g2 ol.contents-grid .card-desc {
  font-size: 15.5px;
  line-height: 1.5;
  color: #3d4b48;
}

/* Tables — audit table with teardown ✕ / → symbols */
.g2 article table {
  border-collapse: collapse;
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid #e0dcd2;
  font-size: 16px;
  line-height: 1.55;
  margin: 22px 0;
}
.g2 article th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5d6b67;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e0dcd2;
  background: #efece5;
}
.g2 article td {
  padding: 16px;
  border-bottom: 1px solid #eae6dd;
  vertical-align: top;
  color: #2c3835;
}
.g2 article tr:last-child td { border-bottom: 0; }
.g2 table.symbol-table td:nth-child(2)::before {
  content: "→  ";
  color: #0f5f52;
  font-weight: 600;
}
.g2 table.symbol-table td:nth-child(3)::before {
  content: "✕  ";
  color: #b03a1f;
  font-weight: 600;
}

/* Mistakes list — teardown ✕ treatment */
.g2 ol.mistakes { list-style: none; padding: 0; }
.g2 ol.mistakes > li {
  background: #fff;
  border: 1px solid #e0dcd2;
  padding: 22px 26px;
  margin: 0 0 14px;
}
.g2 ol.mistakes > li h3 { margin-top: 0; }
.g2 ol.mistakes > li h3::before {
  content: "✕  ";
  color: #b03a1f;
}
.g2 ol.mistakes > li p { margin-bottom: 0; }

/* Numbered prose lists */
.g2 article ol:not(.contents-grid):not(.mistakes):not(.sources-list) { padding-left: 22px; }
.g2 article ol:not(.contents-grid) li,
.g2 article ul:not(.stat-grid) li { margin-bottom: 10px; color: #2c3835; }

.g2 article blockquote {
  border-left: 3px solid #0f5f52;
  margin: 18px 0;
  padding: 8px 20px;
  background: #efece5;
  font-style: italic;
  color: #0b1418;
}
.g2 article blockquote p { margin: 0; color: inherit; }

.g2 article dl dt {
  font-family: 'Newsreader', serif;
  font-size: 21px;
  color: #0b1418;
  margin-top: 18px;
}
.g2 article dl dd { margin: 4px 0 0; padding: 0; color: #2c3835; }

.g2 article figure { margin: 24px 0; }
.g2 article figcaption { font-weight: 500; color: #0b1418; margin-bottom: 8px; }
.g2 article figure .table-note { font-weight: 400; font-size: 14px; color: #59665f; margin-top: 8px; }

.g2 .metric-box {
  background: #fff;
  border: 1px solid #e0dcd2;
  padding: 32px 28px;
  margin: 22px 0;
  max-width: 68ch;
}
.g2 .metric-box h3 { margin-top: 0; }
.g2 .metric-box .big-figure {
  display: block;
  font-family: 'Newsreader', serif;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1;
  color: #b03a1f;
  font-weight: 400;
}

.g2 .freshness-note {
  font-size: 14px;
  color: #6b7873;
  font-style: italic;
  border-top: 1px solid #e0dcd2;
  padding-top: 14px;
  margin-top: 8px;
}

.g2 .related-content ul { list-style: none; padding: 0; }
.g2 .related-content li { margin-bottom: 8px; }

.g2 .chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 8px 0 26px;
  padding-top: 18px;
  border-top: 1px solid #e0dcd2;
  font-size: 15px;
}
.g2 .chapter-nav a { text-decoration: none; color: #0f5f52; font-weight: 500; }

.g2 .pdf-note { font-size: 14px; color: #6b7873; }

.g2 .sources-list { list-style: decimal; padding-left: 22px; }

/* Standard CTA block — homepage #check panel, compact */
.g2 .cta-panel {
  background: #0b1418;
  color: #e8e4da;
  padding: clamp(34px, 4.5vw, 52px) clamp(24px, 4vw, 44px);
  margin: clamp(36px, 4.5vw, 56px) 0;
  max-width: none;
}
.g2 .cta-panel .eyebrow { color: #5fbba8; }
.g2 .cta-panel h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #e8e4da;
  margin: 0 0 14px;
  max-width: 26ch;
  text-wrap: pretty;
}
.g2 .cta-panel p { color: #b6bfbc; max-width: 52ch; margin: 0 0 22px; }
.g2 .cta-panel .cta-btn {
  display: inline-block;
  background: #f6f5f1;
  color: #0b1418;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
}
.g2 .cta-panel .cta-note { font-size: 14.5px; color: #8a9895; margin: 14px 0 0; }

/* --------------------------------------------------------------------------
   Centred editorial column (2026-08-06): the ~68ch prose column (≈660px at
   the 17px base size) is centred in the container, so whitespace splits
   evenly instead of pooling on the right. Full-width components — stat
   grids, contents cards, tables, figures, CTA panels — still span the
   container, exactly as homepage sections do.
   -------------------------------------------------------------------------- */
.g2 article > header,
.g2 article p,
.g2 article ul:not(.stat-grid),
.g2 article ol:not(.contents-grid),
.g2 article dl,
.g2 article blockquote,
.g2 article h1,
.g2 article h2,
.g2 article h3,
.g2 article .eyebrow,
.g2 article .chapter-kicker,
.g2 article .breadcrumb,
.g2 article .article-meta,
.g2 article .article-intro,
.g2 article .freshness-note,
.g2 article .chapter-nav,
.g2 article .pdf-note,
.g2 article .metric-box {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
