/* ERP Views — site styles. No external fonts; system stacks only. */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #ece8de;
  --ink: #132226;
  --muted: #46585c;
  --line: #d9d3c4;
  --brand: #0f4c52;
  --brand-strong: #0a383d;
  --brand-ink: #0f4c52;
  --on-brand: #f4f1e8;
  --on-brand-muted: #c9dcd8;
  --accent: #eaa53a;
  --accent-strong: #d48e1f;
  --on-accent: #1d1503;
  --accent-ink: #8a4b00;
  --link: #0d5d64;
  --focus: #b35c00;
  --flag-bg: #fde7c1;
  --flag-ink: #6b3a00;
  --shadow: 0 1px 2px rgba(19, 34, 38, .06), 0 8px 24px -12px rgba(19, 34, 38, .18);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 72rem;
  --narrow: 46rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1517;
    --surface: #102124;
    --surface-2: #142a2e;
    --ink: #e7eeec;
    --muted: #a9bbb8;
    --line: #26403f;
    --brand: #0d3a3f;
    --brand-strong: #082a2e;
    --brand-ink: #7fd6cc;
    --on-brand: #f1efe6;
    --on-brand-muted: #b9d3cf;
    --accent: #f2b955;
    --accent-strong: #f6c873;
    --on-accent: #1d1503;
    --accent-ink: #f2bf63;
    --link: #8adcd2;
    --focus: #f6c873;
    --flag-bg: #4a3410;
    --flag-ink: #fde2b0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: var(--narrow); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); padding: .25rem 0; }
.brand .mark { flex: none; width: 2.25rem; height: 2.25rem; }
.mark-bg { fill: var(--brand); }
.mark-bar { fill: var(--on-brand); }
.mark-dot { fill: var(--accent); }
@media (prefers-color-scheme: dark) { .mark-bg { fill: #16565c; } }
.brand-word { font-size: 1.35rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand-erp { font-family: var(--sans); font-weight: 800; letter-spacing: .02em; }
.brand-views { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--brand-ink); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: .55rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
@media (max-width: 40rem) {
  .site-header { position: static; }
  .header-inner { padding-top: .5rem; padding-bottom: .4rem; gap: .25rem; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 0; }
  .site-nav a { padding: .55rem .65rem; font-size: .95rem; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.button-accent { background: var(--accent); color: var(--on-accent); }
.button-accent:hover { background: var(--accent-strong); }
.button-ghost { border-color: currentColor; color: inherit; }
.button-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Hero */
.hero { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -8rem; top: -8rem; width: 26rem; height: 26rem; border-radius: 50%; background: radial-gradient(circle, rgba(234,165,58,.35), transparent 65%); }
.hero-inner { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.6rem); line-height: 1.05; }
.hero .hl { color: var(--accent); font-style: italic; }
.hero-dek { max-width: 44rem; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--on-brand-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 1.25rem; position: relative; padding-top: .9rem; }
.section-head .section-title { margin: 0; }
.section-title::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 4px; border-radius: 2px; background: var(--accent); }
.more { font-weight: 700; white-space: nowrap; }
.more::after { content: " →"; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.card-title { font-size: 1.28rem; margin: .2rem 0 .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-title a:hover { color: var(--link); text-decoration: underline; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-title a:focus-visible { outline: none; }
.card-dek { color: var(--muted); margin-bottom: 1rem; }
.card-meta { font-size: .88rem; color: var(--muted); margin: 0; }
.card .chips { margin-top: auto; position: relative; z-index: 1; }
.flag { display: inline-block; background: var(--flag-bg); color: var(--flag-ink); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .5rem; border-radius: 6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 1.9rem; font-size: .82rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.chip:hover { border-color: var(--brand-ink); }

/* Featured */
.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.feature-art { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); display: grid; place-items: center; min-height: 15rem; position: relative; overflow: hidden; }
.feature-art::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 28px); }
.feature-art span { font-family: var(--serif); font-size: clamp(4rem, 3rem + 4vw, 7rem); font-weight: 700; color: var(--on-brand); position: relative; line-height: 1; }
.feature-art span::after { content: ""; position: absolute; right: -1.1rem; bottom: .55rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--accent); }
.feature-body { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.feature-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin: .4rem 0 .6rem; }
.feature-title a { color: var(--ink); text-decoration: none; }
.feature-title a::after { content: ""; position: absolute; inset: 0; }
.feature-title a:hover { text-decoration: underline; }
.feature:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.feature-title a:focus-visible { outline: none; }
.feature-dek { color: var(--muted); font-size: 1.1rem; }
.feature .chips { position: relative; z-index: 1; }
@media (max-width: 46rem) { .feature { grid-template-columns: 1fr; } .feature-art { min-height: 9rem; } }

/* Topic tiles: a "periodic table" of ERP topics */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1rem; }
.tile a { display: flex; flex-direction: column; height: 100%; padding: 1.1rem 1.15rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); position: relative; transition: transform .15s ease, border-color .15s ease; }
.tile a:hover { border-color: var(--brand-ink); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .tile a { transition: none; } .tile a:hover { transform: none; } }
.tile-code { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-bottom: .8rem; position: relative; }
.tile-code::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tile:nth-child(3n+2) .tile-code { background: #14656b; }
.tile:nth-child(3n) .tile-code { background: #23474a; }
@media (prefers-color-scheme: dark) { .tile-code, .tile:nth-child(3n+2) .tile-code, .tile:nth-child(3n) .tile-code { background: #16565c; } .tile:nth-child(3n+2) .tile-code { background: #1d6a6f; } }
.tile-name { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 .3rem; font-weight: 700; line-height: 1.25; }
.tile-blurb { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.tile-count { margin-top: auto; padding-top: .7rem; font-size: .8rem; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.tiles-lg { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

/* Coming soon */
.soon { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.soon h2 { margin-bottom: .4rem; }
.soon p { color: var(--muted); max-width: 40rem; margin-left: auto; margin-right: auto; }

/* CTA */
.cta { background: var(--brand-strong); color: var(--on-brand); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { margin-bottom: .4rem; }
.cta p { color: var(--on-brand-muted); margin: 0; max-width: 40rem; }
.cta .cta-action { flex: none; }

/* Page heads */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head .dek { color: var(--muted); font-size: 1.15rem; max-width: 44rem; }
.topic-code { display: inline-grid; place-items: center; min-width: 3.5rem; height: 3.5rem; padding: 0 .6rem; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-family: var(--serif); font-weight: 700; font-size: 1.6rem; margin-bottom: 1rem; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 .4rem 0 .15rem; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-block; padding: .15rem 0; }
.crumbs a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.crumbs li:last-child { min-width: 0; }

/* Search */
.search { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; flex: 1 1 16rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select { font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--muted); border-radius: 10px; padding: .6rem .8rem; min-height: 2.9rem; }
.field input:focus-visible, .field select:focus-visible { border-color: var(--focus); }
.search-status { color: var(--muted); font-size: .92rem; margin: .75rem 0 0; min-height: 1.5em; }

/* Article */
.article-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.article-head h1 { margin: .8rem 0 .6rem; }
.article-head .dek { font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); color: var(--muted); line-height: 1.45; }
.byline { font-size: .93rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.draft-note { background: var(--flag-bg); color: var(--flag-ink); padding: .7rem 1rem; border-radius: 10px; font-size: .93rem; }
.article-layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 3rem; justify-content: center; padding-top: 2.25rem; padding-bottom: 3rem; }
.article-side { min-width: 0; }
.toc { position: sticky; top: 5.5rem; font-size: .93rem; border-left: 3px solid var(--accent); padding-left: 1rem; }
.toc h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem 0; color: var(--ink); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.toc .toc-l3 a { padding-left: .9rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 62rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: calc(var(--narrow) + 2.5rem); }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.2rem; }
}
.takeaways { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-ink) 30%, var(--line)); border-radius: var(--radius); padding: 1.3rem 1.5rem 1rem; margin-bottom: 2rem; }
.takeaways h2 { font-size: 1.2rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .55rem; }
.takeaways h2::before { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: var(--accent); flex: none; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin-bottom: .45rem; }
.prose { font-size: 1.1rem; line-height: 1.72; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.prose pre { overflow-x: auto; background: var(--surface-2); padding: 1rem; border-radius: 10px; }
.prose pre code { background: none; padding: 0; }
.prose .lead { font-size: 1.2rem; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--surface); }
.table-wrap th, .table-wrap td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--surface-2); font-weight: 700; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.cite { font-size: .72em; line-height: 0; }
.cite a { text-decoration: none; font-weight: 700; padding: 0 .1em; }
.sources { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.2rem; }
.sources ol { padding-left: 1.4rem; margin: 0; font-size: .93rem; }
.sources li { margin-bottom: .45rem; }
.sources li:target { background: var(--flag-bg); color: var(--flag-ink); border-radius: 6px; }
.src-note { color: var(--muted); }
.share { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.share-title { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0; }
.share ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .92rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--brand-ink); }
.copy-status { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; flex-basis: 100%; }
.related { background: var(--surface-2); padding: 3rem 0; }
.comments { margin-top: 2.5rem; }

/* Charts (inline SVG made by tools/make_charts.py; colours come only from here so dark mode works) */
:root {
  --c1: #0f4c52; --c1-line: #0f4c52; --on1: #ffffff;
  --c2: #eaa53a; --c2-line: #b86e00; --on2: #1d1503;
  --c3: #6aa8a2; --c3-line: #2f6f6b; --on3: #0a1517;
  --c4: #8a4b00; --c4-line: #5c3200; --on4: #ffffff;
  --c5: #c9d9d5; --c5-line: #46585c; --on5: #132226;
  --l1: #0f4c52; --l2: #b86e00; --l3: #4f6d8f; --l4: #7a3b2e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c1: #7fd6cc; --c1-line: #7fd6cc; --on1: #0a1517;
    --c2: #f2b955; --c2-line: #f2b955; --on2: #1d1503;
    --c3: #2f7f79; --c3-line: #7fd6cc; --on3: #ffffff;
    --c4: #f6d7a0; --c4-line: #f6d7a0; --on4: #1d1503;
    --c5: #8fa9a6; --c5-line: #c9d9d5; --on5: #0a1517;
    --l1: #7fd6cc; --l2: #f2b955; --l3: #a9c1e6; --l4: #f0a58f;
  }
}
.chart { margin: 2rem 0; padding: 1rem 1rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.chart-fig { margin: 0; }
.chart-box { margin: 0 0 .75rem; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.chart-narrow { display: none; max-width: 30rem; }
@media (max-width: 36rem) { .chart-wide { display: none; } .chart-narrow { display: block; } .chart { padding: .85rem .7rem .6rem; } }
.chart-wide text { font-size: 13px; }
.chart-narrow text { font-size: 12.5px; }
.chart-svg .ch-lab, .chart-svg .ch-leg, .chart-svg .ch-val { fill: var(--ink); }
.chart-svg .ch-val { font-weight: 700; }
.chart-svg .ch-strong { font-weight: 700; }
.chart-svg .ch-tick, .chart-svg .ch-note { fill: var(--muted); }
.chart-svg .ch-sm { font-size: 12px; }
.chart-svg .ch-axis { stroke: var(--muted); stroke-width: 1; }
.chart-svg .ch-grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .ch-bar { stroke-width: 1; }
.chart-svg .ch-seg { stroke: var(--surface); stroke-width: 1.5; }
.chart-svg .ch-in { font-weight: 700; }
.chart-svg .ch-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.chart-svg .ch-dot { stroke: var(--surface); stroke-width: 1.5; }
.chart-svg .s1 { fill: var(--c1); } .chart-svg .ch-bar.s1 { stroke: var(--c1-line); } .chart-svg .ch-line.s1 { stroke: var(--l1); fill: none; } .chart-svg .ch-dot.s1 { fill: var(--l1); } .chart-svg .on1 { fill: var(--on1); }
.chart-svg .s2 { fill: var(--c2); } .chart-svg .ch-bar.s2 { stroke: var(--c2-line); } .chart-svg .ch-line.s2 { stroke: var(--l2); stroke-dasharray: 7 4; fill: none; } .chart-svg .ch-dot.s2 { fill: var(--l2); } .chart-svg .on2 { fill: var(--on2); }
.chart-svg .s3 { fill: var(--c3); } .chart-svg .ch-bar.s3 { stroke: var(--c3-line); } .chart-svg .ch-line.s3 { stroke: var(--l3); stroke-dasharray: 2 3; fill: none; } .chart-svg .ch-dot.s3 { fill: var(--l3); } .chart-svg .on3 { fill: var(--on3); }
.chart-svg .s4 { fill: var(--c4); } .chart-svg .ch-bar.s4 { stroke: var(--c4-line); } .chart-svg .ch-line.s4 { stroke: var(--l4); stroke-dasharray: 12 4 2 4; fill: none; } .chart-svg .ch-dot.s4 { fill: var(--l4); } .chart-svg .on4 { fill: var(--on4); }
.chart-svg .s5 { fill: var(--c5); } .chart-svg .ch-bar.s5 { stroke: var(--c5-line); } .chart-svg .on5 { fill: var(--on5); }
.chart-svg .ch-seg.s1, .chart-svg .ch-seg.s2, .chart-svg .ch-seg.s3, .chart-svg .ch-seg.s4, .chart-svg .ch-seg.s5 { stroke: var(--surface); }
.chart-svg .mx-y { fill: var(--c1); }
.chart-svg .mx-p { fill: var(--c2-line); }
.chart-svg .mx-ring { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.chart-svg .mx-x { stroke: var(--accent-ink); stroke-width: 2.5; stroke-linecap: round; }
.chart-svg .mx-band { fill: var(--surface-2); }
figcaption { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.fig-num { font-weight: 700; color: var(--ink); }
.chart-data { margin-top: .6rem; font-size: .93rem; }
.chart-data summary { cursor: pointer; color: var(--link); font-weight: 600; padding: .35rem 0; }
.chart-data .table-wrap { margin: .5rem 0; }
.chart-data .table-wrap table { font-size: .9rem; }
.chart-note { color: var(--muted); font-size: .88rem; margin: .4rem 0 0; }
.table-wrap caption { caption-side: top; text-align: left; padding: .65rem .85rem; font-size: .93rem; color: var(--muted); background: var(--surface); }
.table-wrap:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.prose .table-wrap td, .prose .table-wrap th { vertical-align: top; }

/* Simple pages */
.page-body { padding-top: 2rem; padding-bottom: 3.5rem; }
.contact-email { margin: 1.5rem 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 2.75rem 0 1.25rem; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 32rem; margin-top: .8rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.footer-nav li { margin-bottom: .2rem; break-inside: avoid; }
.footer-nav a { display: inline-block; padding: .3rem 0; color: var(--ink); }
.footer-legal { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-legal p { margin: 0; }
@media (max-width: 40rem) { .footer-inner { grid-template-columns: 1fr; } }

/* Not found */
.notfound .page-head { border-bottom: 0; min-height: 50vh; }

@media print {
  .site-header, .site-footer, .share, .toc, .related, .skip { display: none; }
  body { background: #fff; color: #000; }
  .article-layout { display: block; }
}
