/* Funga Wega site design system. Pigment colour fields, paper grain, four self-hosted faces.
   Shared by the palace (index.html) and every generated ideas and blog page. */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-italic-var.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-var.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url('fonts/familjen-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dmmono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dmmono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* pigments */
  --indigo: #182236; --prussian: #1d3c5e; --verdigris: #2b7a6e; --ochre: #cfa03a; --madder: #a23b2c; --sienna: #9a5a2c; --vermilion: #d94a24; --bone: #f3ecdc;
  /* ground and ink */
  --ground: #e6dfd0; --paper: #f4eee2; --paper-2: #ebe4d4; --ink: #1c1b22; --ink-2: #4f4b55; --ink-3: #78737c; --rule: #cbc3b1;
  --accent: var(--vermilion); --accent-ink: #fff6ef; --accent-soft: rgba(217, 74, 36, .14);
  --good: #1f6f58; --good-bg: #d8ece2; --warn: #b7791f; --warn-ink: #7d5212; --warn-bg: #f1e4c6; --bad: #a83226; --bad-bg: #f4dcd6;
  --shadow: rgba(28, 27, 34, .18); --glass: rgba(255, 255, 255, .5);
  /* chart series */
  --a1: #d94a24; --a2: #2b7a6e; --a3: #c08a1e; --a4: #1d3c5e;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --read: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ui: 'Familjen Grotesk', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --measure: 70ch;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ground: #121a2b; --paper: #1a2437; --paper-2: #212d44; --ink: #ece5d6; --ink-2: #b4ac9d; --ink-3: #8d8678; --rule: #33405a;
  --accent: #ff7a4f; --accent-ink: #1c120d; --accent-soft: rgba(255, 122, 79, .18);
  --good: #5fcba5; --good-bg: #17332a; --warn: #e6b453; --warn-ink: #e6b453; --warn-bg: #3a2f14; --bad: #ff8c82; --bad-bg: #3a1c19;
  --shadow: rgba(0, 0, 0, .55); --glass: rgba(255, 255, 255, .06);
  --a1: #ff7a4f; --a2: #4cc2ae; --a3: #e8b94d; --a4: #8fb3e6;
  --verdigris: #3b9d8f; --ochre: #e0b14a; --madder: #d0523f; --sienna: #c37a44; --bone: #ece5d6;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #121a2b; --paper: #1a2437; --paper-2: #212d44; --ink: #ece5d6; --ink-2: #b4ac9d; --ink-3: #8d8678; --rule: #33405a;
    --accent: #ff7a4f; --accent-ink: #1c120d; --accent-soft: rgba(255, 122, 79, .18);
    --good: #5fcba5; --good-bg: #17332a; --warn: #e6b453; --warn-ink: #e6b453; --warn-bg: #3a2f14; --bad: #ff8c82; --bad-bg: #3a1c19;
    --shadow: rgba(0, 0, 0, .55); --glass: rgba(255, 255, 255, .06);
    --a1: #ff7a4f; --a2: #4cc2ae; --a3: #e8b94d; --a4: #8fb3e6;
    --verdigris: #3b9d8f; --ochre: #e0b14a; --madder: #d0523f; --sienna: #c37a44; --bone: #ece5d6;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ground); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .2  0 0 0 .11 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  overflow-x: hidden;
}
img, svg { display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.012em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
em, cite { font-family: var(--display); font-style: italic; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 16px; top: -90px; z-index: 80; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.skip-walk { left: 200px; }

/* ---- type ---- */
.display { font-family: var(--display); font-weight: 800; font-variation-settings: 'opsz' 144; line-height: .92; letter-spacing: -.028em; }
.kicker, .say, .kind, .room-no { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.quiet { font-family: var(--read); font-size: 1rem; color: var(--ink-2); line-height: 1.5; }
.lede { font-family: var(--read); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; color: var(--ink-2); }

/* ---- buttons ---- */
.btn { display: inline-block; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.3; transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.big { padding: 16px 32px; font-size: 1.08rem; }
.btn.small { padding: 7px 14px; font-size: .86rem; }

/* ---- header ---- */
.site-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 10px clamp(16px, 3vw, 40px); background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .dot { fill: var(--accent); }
.site-nav { display: flex; gap: 4px; margin-left: 6px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current='page'] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.where { font-family: var(--read); font-size: .98rem; color: var(--ink-2); margin-left: 10px; font-style: italic; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.theme { background: transparent; border: 1.5px solid var(--rule); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.theme:hover { border-color: var(--ink); } .theme .half { fill: currentColor; }

/* ---- footer ---- */
.site-foot { border-top: 1.5px solid var(--ink); margin-top: clamp(40px, 7vh, 80px); padding: clamp(40px, 7vh, 80px) clamp(16px, 4vw, 56px) 40px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1320px; margin: 0 auto; }
.foot-brand { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); line-height: 1.1; }
.foot-brand em { color: var(--accent); font-weight: 400; }
.foot-name .say { margin-top: 12px; }
.foot-nav { display: grid; gap: 8px; }
.foot-nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); width: fit-content; border-bottom: 1.5px solid transparent; }
.foot-nav a:hover { color: var(--ink); border-color: var(--accent); }
.foot-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-family: var(--read); font-size: 1.02rem; color: var(--ink-2); line-height: 1.5; }
.foot-facts li { padding-left: 18px; position: relative; }
.foot-facts li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }

/* ---- breadcrumb ---- */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--topic-ink2, var(--ink-2)); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* ---- article and hub pages: a pigment field per topic ---- */
.page { --topic: var(--prussian); --topic-ink: #eef2f7; --topic-ink2: #c7d4e3; --topic-dark: #10233a; background: color-mix(in srgb, var(--ground) 86%, var(--topic) 14%); }
:root[data-theme='dark'] .page { background: color-mix(in srgb, var(--ground) 78%, var(--topic) 22%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .page { background: color-mix(in srgb, var(--ground) 78%, var(--topic) 22%); } }
.masthead { background: var(--topic); color: var(--topic-ink); position: relative; isolation: isolate; overflow: clip; }
.masthead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 85% 0%, rgba(255, 255, 255, .14), transparent 55%), radial-gradient(ellipse at 0% 100%, var(--topic-dark), transparent 60%); }
.masthead::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .14 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"); }
.masthead-inner { max-width: 1320px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 48px) clamp(36px, 5vw, 64px); }
.masthead .kicker { color: var(--topic-ink2); }
.masthead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.masthead-art { display: grid; gap: 10px; }
.masthead-glyph { background: color-mix(in srgb, var(--topic-ink) 10%, var(--topic)); border: 1.5px solid color-mix(in srgb, var(--topic-ink) 45%, transparent); border-radius: 8px; padding: 18px; box-shadow: 8px 8px 0 var(--topic-dark); --ink: var(--topic-ink); --ink-2: var(--topic-ink2); --rule: color-mix(in srgb, var(--topic-ink) 35%, transparent); }
.masthead-glyph svg { width: 100%; height: auto; max-height: 300px; }
.masthead-cap { font-family: var(--read); font-size: .9rem; line-height: 1.4; color: var(--topic-ink2); }
.masthead h1.long { font-size: clamp(1.9rem, 1rem + 2.9vw, 3.8rem); max-width: 24ch; }
.masthead h1 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 5.4rem); font-weight: 700; font-variation-settings: 'opsz' 144; line-height: 1; letter-spacing: -.028em; margin-top: 12px; max-width: 18ch; }
.masthead .lead { font-family: var(--display); font-weight: 400; font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; margin-top: 22px; max-width: 46ch; color: var(--topic-ink); }
.masthead .article-meta { margin-top: 20px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--topic-ink2); }
.article-wrap { max-width: 1320px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 48px) 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 72px); align-items: start; }
.article { min-width: 0; }
.article-body { font-family: var(--read); font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.62; }
.article-body > p, .article-body section > p, .article-body li, .article-body h2, .article-body h3, .article-body blockquote { max-width: var(--measure); }
.article-body > p, .article-body section > p, .article-body li { margin: 0 0 1.2em; }
.article-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: 2.2em 0 .7em; letter-spacing: -.02em; scroll-margin-top: 80px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; font-weight: 600; }
.article-body a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent); }
.article-body strong, .article-body b { font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body blockquote, .article-body aside, .article-body .evidence { margin: 1.6em 0; padding: 18px 22px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--topic); border-radius: 4px; color: var(--ink-2); font-size: .95em; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: 0; border-top: 1px dashed var(--rule); margin: 2em 0; }

/* figures break out to the full column in a tinted card */
.article-body figure { margin: 2em 0 0; max-width: none; background: color-mix(in srgb, var(--paper) 90%, var(--topic) 10%); border: 1.5px solid var(--ink); border-radius: 8px 8px 0 0; padding: 22px 22px 18px; box-shadow: 8px 8px 0 var(--topic); }
.article-body figure svg { width: 100%; height: auto; font-family: var(--mono); }
figcaption { margin-top: 14px; font-family: var(--ui); font-size: .92rem; line-height: 1.45; color: var(--ink-2); max-width: 80ch; }
.ink { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ink2 { stroke: var(--ink-2); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.rule { stroke: var(--rule); fill: none; stroke-width: 1.5; }
.a1 { stroke: var(--a1); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.a2 { stroke: var(--a2); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.a3 { stroke: var(--a3); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.a4 { stroke: var(--a4); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fill-a1 { fill: var(--a1); } .fill-a2 { fill: var(--a2); } .fill-a3 { fill: var(--a3); } .fill-a4 { fill: var(--a4); }
.lbl { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
text.a1 { fill: var(--a1); stroke: none; } text.a2 { fill: var(--a2); stroke: none; } text.a3 { fill: var(--a3); stroke: none; } text.a4 { fill: var(--a4); stroke: none; }
.figure-data { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: .94rem; margin: 0 0 2.4em; background: var(--paper); border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; }
.figure-data caption { text-align: left; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 10px 14px; caption-side: top; background: var(--paper); border: 1.5px solid var(--ink); border-top: 0; border-bottom: 0; }
.figure-data th, .figure-data td { padding: 9px 14px; border-bottom: 1px solid var(--rule); text-align: left; }
.figure-data thead th { background: var(--topic); color: var(--topic-ink); font-weight: 600; font-size: .84rem; }
.figure-data tbody tr:nth-child(even) { background: var(--paper-2); }
.figure-data td:not(:first-child), .figure-data th:not(:first-child) { font-variant-numeric: tabular-nums; }

/* FAQ as accordions, sources as a list */
.faq { margin-top: 3em; max-width: var(--measure); }
.faq h2 { margin: 0 0 .6em; font-size: 1.6rem; }
.faq details { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }
.sources { margin-top: 2.5em; padding-top: 1.5em; border-top: 1.5px solid var(--ink); font-size: .98rem; color: var(--ink-2); max-width: var(--measure); }
.sources h2 { font-size: 1.3rem; margin: 0 0 .6em; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources li { padding-left: 22px; position: relative; line-height: 1.5; }
.sources li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--topic); background: var(--topic); opacity: .8; }
.sources a { color: var(--ink); }

/* the sticky rail */
.rail { min-width: 0; }
.rail-inner { position: sticky; top: 72px; display: grid; gap: 16px; max-height: calc(100vh - 88px); overflow: auto; padding-bottom: 8px; }
.side-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 16px 18px; }
.side-card h2 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; font-weight: 500; }
.side-sub { font-family: var(--read); font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.contents ol { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 6px; font-family: var(--ui); font-size: .92rem; line-height: 1.3; }
.contents a { text-decoration: none; color: var(--ink); } .contents a:hover { color: var(--accent); }
.key-numbers { background: var(--topic); color: var(--topic-ink); border-color: var(--topic); }
.key-numbers h2, .key-numbers .side-sub { color: var(--topic-ink2); }
.key-numbers table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: .76rem; }
.key-numbers th, .key-numbers td { padding: 5px 6px 5px 0; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--topic-ink) 25%, transparent); vertical-align: top; }
.key-numbers thead th { font-weight: 500; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--topic-ink2); }
.key-numbers th[scope='row'] { font-weight: 500; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related li { display: grid; gap: 3px; }
.related a { font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-decoration: none; line-height: 1.2; }
.related a:hover { color: var(--accent); }
.related span { font-family: var(--read); font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.cta-card { background: var(--ink); color: var(--paper); border-color: var(--ink); display: grid; gap: 10px; justify-items: start; }
.cta-card h2 { color: var(--paper); opacity: .8; } .cta-card p { font-family: var(--read); font-size: .98rem; line-height: 1.45; }
.article-foot { margin-top: 3em; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.prevnext a { display: grid; gap: 4px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 16px 18px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 6px; line-height: 1.2; }
.prevnext a span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.prevnext a:hover { box-shadow: 4px 4px 0 var(--topic); }
.prevnext .next { text-align: right; }

/* hubs: a coloured card per article */
.hub-wrap { max-width: 1320px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 48px) 0; }
.hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.hub-card a { display: grid; grid-template-rows: 150px 1fr; height: 100%; text-decoration: none; background: var(--card); color: var(--card-ink); border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.hub-card a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.hub-glyph { background: color-mix(in srgb, var(--card) 80%, white 20%); border-bottom: 1.5px solid var(--ink); display: grid; place-items: center; padding: 10px 16px; overflow: hidden; --ink: var(--card-ink); --ink-2: var(--card-ink2); --rule: color-mix(in srgb, var(--card-ink) 35%, transparent); }
.hub-glyph svg { width: 100%; height: 100%; max-height: 130px; }
.hub-text { padding: 18px 20px 16px; display: grid; gap: 10px; align-content: start; }
.hub-text h2 { font-size: 1.35rem; line-height: 1.12; letter-spacing: -.015em; }
.hub-text p { font-family: var(--read); font-size: .98rem; line-height: 1.45; color: var(--card-ink2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hub-meta { margin-top: auto; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--card-ink2); }
.hub-intro { margin-top: clamp(40px, 6vw, 72px); max-width: var(--measure); font-family: var(--read); font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); }
.hub-intro h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: .6em; } .hub-intro p { margin-bottom: 1em; }

/* evidence labels, shared */
.k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; vertical-align: -1px; }
.k-r { color: var(--good); background: var(--good); }
.k-m { color: var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
.k-p { color: var(--ink-2); background: transparent; }
.lab { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px 2px; border-radius: 999px; border: 1px solid currentColor; }
.lab-r .lab, .lab.lab-r { color: var(--good); } .lab-m .lab { color: var(--warn-ink); } .lab-p .lab { color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; font-size: .86rem; }
.legend div { display: flex; flex-direction: column; gap: 2px; }
.legend dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.legend dd { margin: 0; color: var(--ink-2); font-family: var(--read); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; } .prevnext .next { text-align: left; }
  .article-wrap { grid-template-columns: 1fr; }
  .masthead-grid { grid-template-columns: 1fr; } .masthead-art { display: none; }
  .rail-inner { position: static; max-height: none; overflow: visible; }
  .hub-card a { grid-template-rows: 120px 1fr; }
  .skip-walk { left: 16px; top: -120px; } .skip-walk:focus { top: 56px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .article-body figure { padding: 14px 12px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .faq { padding: 20px 18px 6px; }
  .article-cta { box-shadow: 4px 4px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
