/* Shared styles for the public content pages (methodology, scenarios). */
@import url("/legal.css");
main { max-width: 720px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; letter-spacing: -0.01em; }
p, li { line-height: 1.65; color: var(--ink-2); }
ul { padding-left: 1.25em; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.9375rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }
td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.callout { background: var(--mist); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }
.callout p { margin: 0 0 12px; }
.callout p:last-child { margin: 0; }
.cta { display: inline-block; background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.provenance { font-size: 0.875rem; color: var(--ink-3); }

/* Chart: same tokens and classes as saas/hosting/web/style.css */
:root { --line-strong: #cbd4cc; --chart-baseline: #14a874; --chart-spending: #e0a030; --chart-return: #e5533d; --chart-grid: #e6ebe5; --chart-text: #66746d; }
@media (prefers-color-scheme: dark) {
  :root { --line-strong: #33463d; --chart-baseline: #3ad19a; --chart-spending: #f0b64f; --chart-return: #ff7d69; --chart-grid: #1c2a24; --chart-text: #8a9b92; }
}
.chart-block { margin: 20px 0; }
.chart-svg-container svg { width: 100%; height: auto; display: block; }
.c-grid { stroke: var(--chart-grid); stroke-width: 1; }
.c-grid-base { stroke: var(--line-strong); stroke-width: 1; }
.c-label { fill: var(--chart-text); font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif; font-size: 12px; font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.c-baseline { stroke: var(--chart-baseline); stroke-width: 2.75; }
.c-spend { stroke: var(--chart-spending); stroke-width: 1.75; stroke-dasharray: 6 5; }
.c-ret { stroke: var(--chart-return); stroke-width: 1.75; stroke-dasharray: 6 5; }
.c-stop { stop-color: var(--chart-baseline); }
.c-marker { fill: var(--paper); stroke-width: 2.5; }
.c-marker-baseline { stroke: var(--chart-baseline); }
.c-marker-spend { stroke: var(--chart-spending); }
.c-marker-ret { stroke: var(--chart-return); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }
.legend-color { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend-baseline { background: var(--chart-baseline); }
.legend-spending { background: var(--chart-spending); }
.legend-return { background: var(--chart-return); }
.legend-band { background: var(--chart-baseline); opacity: 0.3; border-radius: 2px; }
.sim-band { fill: var(--chart-baseline); opacity: 0.16; }
.sim-median { fill: none; stroke: var(--chart-baseline); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }

/* Scenario text */
.meta { font-size: 0.875rem; color: var(--ink-3); }
.pullquote { font-family: 'Newsreader', Georgia, serif; font-size: 1.375rem; line-height: 1.4; color: var(--ink); border-left: 3px solid var(--chart-baseline); padding-left: 16px; margin: 28px 0; }

/* Article layout for generated content pages (#416): site header, open page, wide charts. */
body.article { background: var(--paper); padding: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 880px; margin: 0 auto; padding: 18px clamp(20px, 5vw, 32px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.site-header nav { display: flex; align-items: center; gap: 20px; font-size: 0.9375rem; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.nav-cta { color: #fff; background: var(--green); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .site-header nav a.nav-cta { color: #0c1411; } }
@media (max-width: 560px) { .site-header nav a:not(.nav-cta) { display: none; } }
body.article main {
  max-width: none; margin: 0; background: none; border: 0; border-radius: 0; padding: 40px clamp(20px, 5vw, 32px) 56px;
  display: grid; grid-template-columns: [wide-start] minmax(0, 1fr) [text-start] minmax(0, 680px) [text-end] minmax(0, 1fr) [wide-end];
}
body.article main > * { grid-column: text; min-width: 0; }
body.article main > .chart-block, body.article main > .scorecard { grid-column: wide; width: 100%; max-width: 880px; justify-self: center; }
body.article h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 10px; }
body.article .meta { margin: 0 0 28px; }
body.article h2 { font-size: 1.375rem; margin: 44px 0 10px; }
body.article p, body.article li { font-size: 1.0625rem; line-height: 1.7; }
body.article .chart-block { margin: 28px auto; }

/* Scorecard: results at a glance, figures from the run. */
.scorecard { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 4px auto 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scorecard .tile { padding: 20px 20px 18px; }
.scorecard .tile + .tile { border-left: 1px solid var(--line); }
.scorecard dt { font-size: 0.875rem; font-weight: 600; color: var(--ink-3); }
.scorecard dd { margin: 0; }
.scorecard .tile-figure { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 2.5rem; line-height: 1.1; color: var(--ink); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.scorecard .tile-funded .tile-figure { color: var(--green); }
.scorecard .tile-short .tile-figure { color: var(--chart-return); }
.scorecard .tile-note { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 640px) {
  .scorecard .tile + .tile { border-left: 0; border-top: 1px solid var(--line); }
  .scorecard .tile { padding: 12px 4px; }
  .scorecard .tile-figure { font-size: 2rem; margin: 2px 0; }
}

/* Household fact sheet ([[table inputs]]). */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 16px 0 24px; padding: 4px 0; border-top: 1px solid var(--line); }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 3px; }
.facts dd { margin: 0; color: var(--ink); line-height: 1.45; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Tables: light row shading; year-by-year figures right-aligned. */
tr:nth-child(2n+3) td { background: var(--mist); }
table.num th:nth-child(n+3), table.num td:nth-child(n+3) { text-align: right; }
th { font-size: 0.8125rem; color: var(--ink-3); border-bottom-color: var(--line-strong); }
