/* AlexaFeed publication theme. Static, no JS. Mobile first. Built from the B-315 mockup. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-serif-4-latin.woff2") format("woff2"); }

:root {
  --brand: #00CAFF;
  --brand-ink: #00739A;      /* AA-contrast cyan for links and small text */
  --brand-soft: #E6F9FF;
  --accent: #FFA500;         /* logo orange, used sparingly */
  --accent-soft: #FFF4E0;
  --ink: #222222;
  --muted: #828286;
  --muted-ink: #5E5E63;      /* readable muted for small meta text */
  --line: #E7E7EA;
  --paper: #FFFFFF;
  --wash: #F6F7F9;
  --surface: #FFFFFF;        /* cards, panels */
  --ink-2: #3A3A3E;          /* secondary text */
  --prose-ink: #26262A;
  --solid: #222222;          /* dark chips and bars, stay dark in both themes */
  --solid-hover: #000000;
  --header-bg: rgba(255,255,255,0.94);
  --line-hi: var(--line-hi);
  --ok-bg: #EAF7EE;
  --ok-ink: #11622F;
  --warn-ink: #8A5400;
  --soon-ink: #5A5A60;
  color-scheme: light;
  --radius: 14px;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--header-bg); position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; font-weight: 600; font-size: 0.9375rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) {
  .brand img { height: 36px; }
  .nav .hide-sm { display: inline-block; }
}

/* Type helpers */
.eyebrow { font: 700 0.8125rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 12px; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.125rem, 6vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 750; }
h3 { font-size: 1.1875rem; font-weight: 700; }
.lede { font-family: var(--serif); font-size: clamp(1.125rem, 2.2vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.meta { color: var(--muted-ink); font-size: 0.875rem; }
.dot-sep::before { content: "\00B7"; margin: 0 8px; color: var(--muted); }

.pill { width: fit-content; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.pill.orange { background: var(--accent-soft); color: var(--warn-ink); }
.pill.grey { background: var(--wash); color: var(--muted-ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,0.18); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: 10px; background: var(--solid); color: #fff; }
.btn:hover { background: var(--solid-hover); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }

/* Home: hero */
.hero { padding: 48px 0 40px; background:
  radial-gradient(900px 400px at 85% -10%, var(--brand-soft), transparent 70%),
  radial-gradient(500px 260px at 0% 110%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand-ink); background: linear-gradient(transparent 62%, rgba(0,202,255,0.28) 62%); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 80px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}

/* Hero side card: a schematic "on air" panel, pure HTML/CSS */
.onair { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px -30px rgba(0,60,90,0.35); }
.onair-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.onair-title { font-weight: 700; }
.wave { display: flex; align-items: center; gap: 5px; height: 72px; margin: 6px 0 18px; }
.wave span { flex: 1; border-radius: 4px; background: linear-gradient(var(--brand), #6FE2FF); }
.onair-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.onair-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--wash); border-radius: 10px; }
.onair-rows b { font-weight: 700; }
.onair-rows .ok { color: #157F3B; font-weight: 700; }
.onair-note { margin: 14px 0 0; font-size: 0.8125rem; color: var(--muted-ink); }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--wash); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.section-head p { margin: 8px 0 0; color: var(--muted-ink); max-width: 56ch; }
@media (min-width: 960px) { .section { padding: 80px 0; } }

/* Featured hub */
.feature { display: grid; gap: 0; border-radius: 22px; overflow: hidden; background: #0E1A21; color: #fff; }
.feature-body { padding: 28px; }
.feature h2 { color: #fff; margin: 14px 0 12px; }
.feature p { color: #C9D6DD; max-width: 52ch; margin: 0 0 22px; font-family: var(--serif); font-size: 1.125rem; }
.feature .pill { background: rgba(0,202,255,0.16); color: #7FE4FF; }
.feature .btn { background: var(--brand); color: #04212C; }
.feature .btn:hover { background: #4FDBFF; }
.feature-list { list-style: none; margin: 0; padding: 28px; display: grid; gap: 2px; background: #13242D; counter-reset: g; }
.feature-list li { counter-increment: g; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 600; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: counter(g, decimal-leading-zero); color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 700; }
.feature-list a { color: #fff; text-decoration: none; }
.feature-list a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.2fr 1fr; }
  .feature-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
  .feature-list { padding: 40px 44px; }
}

/* Cards grid */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-hi); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(0,60,90,0.5); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.card .meta { margin-top: auto; padding-top: 8px; }
.card-band { height: 6px; border-radius: 6px; margin-bottom: 6px; background: linear-gradient(90deg, var(--brand) 0 60%, var(--accent) 60% 72%, var(--line) 72%); }
.card-band.b { background: linear-gradient(90deg, var(--accent) 0 40%, var(--brand) 40% 85%, var(--line) 85%); }
.card-band.c { background: linear-gradient(90deg, #0E1A21 0 30%, var(--brand) 30% 55%, var(--line) 55%); }

/* About strip */
.about { display: grid; gap: 28px; align-items: center; }
.about-mark { width: 88px; height: 88px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; }
.about-mark img { width: 52px; height: 52px; }
.about h2 { margin-bottom: 10px; }
.about p { margin: 0 0 10px; max-width: 64ch; font-family: var(--serif); font-size: 1.125rem; color: var(--ink-2); }
.principles { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.principles li { padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; font-weight: 600; }
.principles li span { display: block; font-weight: 400; color: var(--muted-ink); font-size: 0.9375rem; }
@media (min-width: 900px) { .about { grid-template-columns: auto 1.4fr 1fr; gap: 48px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 72px; font-size: 0.9375rem; color: var(--muted-ink); }
.footer-grid { display: grid; gap: 24px; }
.footer-grid img { height: 28px; width: auto; margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand-ink); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }

/* Breadcrumbs */
.crumbs { font-size: 0.875rem; color: var(--muted-ink); margin-bottom: 18px; }
.crumbs a { color: var(--muted-ink); }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--muted); }

/* Hub page */
.hub-hero { padding: 40px 0 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--brand-soft), var(--paper) 85%); }
.hub-hero h1 { max-width: 20ch; margin: 6px 0 16px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hub-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 1000px) { .hub-layout { grid-template-columns: 240px 1fr; gap: 64px; } .hub-hero { padding: 64px 0 52px; } }
.hub-nav { font-size: 0.9375rem; }
.hub-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-nav a { display: block; text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; background: var(--wash); font-weight: 600; }
.hub-nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.hub-nav .k { color: var(--brand-ink); margin-right: 6px; }
@media (min-width: 1000px) {
  .hub-nav > div { position: sticky; top: 96px; }
  .hub-nav ol { flex-direction: column; gap: 4px; }
  .hub-nav a { background: transparent; }
}
.cluster { margin-bottom: 56px; scroll-margin-top: 90px; }
.cluster:last-child { margin-bottom: 0; }
.cluster-head { display: flex; gap: 16px; align-items: baseline; margin-bottom: 8px; }
.cluster-key { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--solid); color: #fff; font-weight: 800; }
.cluster > p { margin: 0 0 20px; color: var(--muted-ink); max-width: var(--measure); }
.guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.guide-num { font-weight: 800; font-size: 1.25rem; color: var(--brand-ink); font-variant-numeric: tabular-nums; line-height: 1.3; }
.guide h3 { margin-bottom: 6px; }
.guide h3 a { color: var(--ink); text-decoration: none; }
.guide h3 a:hover { color: var(--brand-ink); text-decoration: underline; }
.guide p { margin: 0 0 8px; max-width: var(--measure); color: var(--ink-2); font-family: var(--serif); font-size: 1.0625rem; }
.guide .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.guide.here { background: var(--brand-soft); border-radius: 12px; padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-bottom-color: transparent; }

/* Article */
.article-head { padding: 40px 0 28px; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 22ch; margin: 6px 0 18px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #6FE2FF); display: grid; place-items: center; color: #04212C; font-weight: 800; }
.byline .who b { display: block; }
.checked { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; font-size: 0.875rem; }
.checked::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #1E9A4C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
.prose { min-width: 0; }
@media (min-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, var(--measure)) 260px; gap: 72px; justify-content: space-between; }
  .article-head .wrap > * { max-width: calc(var(--measure) + 0px); }
}
.prose { max-width: var(--measure); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; color: var(--prose-ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 700; }
.ph { font-family: var(--sans); font-size: 0.85em; background: var(--accent-soft); color: var(--warn-ink); padding: 1px 6px; border-radius: 5px; white-space: nowrap; font-weight: 600; }

.answer { font-family: var(--sans); border: 1px solid var(--line-hi); background: var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; }
.answer .eyebrow { margin-bottom: 8px; }
.answer p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.answer ul { margin: 12px 0 0; padding-left: 1.1em; font-size: 1rem; }

.toc { font-family: var(--sans); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 0.9375rem; }
.toc h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-ink); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand-ink); text-decoration: underline; }
.toc-inline { display: block; }
.aside { display: none; }
@media (min-width: 1080px) {
  .toc-inline { display: none; }
  .aside { display: block; }
  .aside .sticky { position: sticky; top: 96px; display: grid; gap: 20px; }
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
caption { text-align: left; padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--line); background: var(--wash); }
caption span { display: block; font-weight: 400; color: var(--muted-ink); font-size: 0.8125rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-ink); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

figure { margin: 0; }
.shot { aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1.5px dashed #9FDDF0; background:
  repeating-linear-gradient(135deg, #F3FBFE 0 14px, #EAF7FC 14px 28px); display: grid; place-items: center; text-align: center; padding: 16px; font-family: var(--sans); color: var(--brand-ink); }
.shot b { display: block; font-size: 1rem; }
.shot small { color: var(--muted-ink); font-size: 0.8125rem; }
figcaption { font-family: var(--sans); font-size: 0.875rem; color: var(--muted-ink); margin-top: 10px; }

.tools { font-family: var(--sans); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tools-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: var(--solid); color: #fff; font-weight: 700; font-size: 0.9375rem; }
.tools-head span { color: #B9B9BE; font-weight: 500; font-size: 0.8125rem; }
.tool { padding: 18px; display: grid; gap: 6px; }
.tool + .tool { border-top: 1px solid var(--line); }
.tool h3 { font-size: 1.125rem; margin: 0; }
.tool h3 a { color: var(--ink); }
.tool p { margin: 0; font-size: 0.975rem; color: var(--ink-2); line-height: 1.55; }
.tool .note { font-size: 0.875rem; color: var(--muted-ink); }
.tool .btn { justify-self: start; margin-top: 8px; padding: 10px 14px; font-size: 0.9375rem; background: var(--brand); color: #04212C; }
.tool .btn:hover { background: #4FDBFF; }

.faq { font-family: var(--sans); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--brand-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-2); }

.related { padding: 56px 0 72px; background: var(--wash); border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 24px; }
.card.hub { background: #0E1A21; border-color: #0E1A21; }
.card.hub h3 a { color: #fff; }
.card.hub p { color: #C9D6DD; }
.card.hub .meta { color: #9FB3BD; }
.card.hub .pill { background: rgba(0,202,255,0.16); color: #7FE4FF; }

.sources { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted-ink); }
.sources ol { padding-left: 1.2em; }
.faq h2, .sources h2 { margin-bottom: 14px; }

/* ---- Additions for the generated site (not in the mockup) ---- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--solid); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Pending first-hand test data: visible on purpose, never filled with guesses */
.pending { font-family: var(--sans); border: 1.5px dashed #E8A33A; background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.pending::before { content: "Pending test"; display: block; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn-ink); margin-bottom: 8px; }
.pending p { margin: 0; }
.pending p + p, .pending ul { margin-top: 8px; }
.pending ul { padding-left: 1.1em; }

/* Callouts inside prose */
.note { font-family: var(--sans); font-size: 1rem; line-height: 1.6; border-left: 3px solid var(--brand); background: var(--wash); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.note.warn { border-left-color: var(--accent); background: var(--accent-soft); }
.note b:first-child { display: block; margin-bottom: 4px; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--ink-2); font-style: italic; }
.prose blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.875rem; color: var(--muted-ink); margin-top: 6px; }
.prose code { font-size: 0.85em; background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.checked-on { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted-ink); white-space: nowrap; }
p.checked-on { white-space: normal; }

/* Own diagrams (inline SVG) */
.diagram { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--sans); }

/* Steps list */
.steps { list-style: none; padding-left: 0 !important; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 48px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0.1em; width: 32px; height: 32px; border-radius: 9px; background: var(--solid); color: #fff; font: 800 0.95rem/32px var(--sans); text-align: center; }
.steps > li + li { margin-top: 1em; }

/* Hub: guide entries without a page yet */
.guide.soon h3 { color: var(--soon-ink); }
.hub-article { border-bottom: 1px solid var(--line); }
.hub-guides { padding: 56px 0 64px; background: var(--wash); }
.hub-guides .section-head { margin-bottom: 8px; }
.hub-guides .hub-layout { padding-top: 24px; padding-bottom: 0; }
.hub-guides .guide.here { background: var(--surface); }

/* Simple pages (about, how we check, contact, privacy, 404) */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 22ch; margin: 6px 0 16px; }
.page-body { padding: 8px 0 72px; }
.page-body .prose { margin: 0; }
.notfound { padding: 72px 0 96px; }
.notfound h1 { margin: 6px 0 16px; }
.notfound ul { margin: 18px 0 0; padding-left: 1.2em; font-size: 1.0625rem; }
.notfound li + li { margin-top: 6px; }

/* Team byline: the logo mark replaces personal initials */
.avatar { background: var(--brand-soft); }
.avatar img { width: 24px; height: 24px; }

/* Footer second line */
.footer-note { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; color: var(--muted-ink); }
/* Diagrams keep a readable size on phones: scroll sideways instead of shrinking */
.diagram { overflow-x: auto; }
.diagram svg { min-width: 600px; }

/* ---- Dark theme: follows the reader's system setting; data-theme can force either ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-ink: #5AD8FF; --brand-soft: #0E2A35; --accent-soft: #2E2312;
    --ink: #E9EDEF; --muted: #7D878D; --muted-ink: #A3ADB3; --line: #2A353B;
    --paper: #0F1518; --wash: #151D21; --surface: #172126; --ink-2: #C5CDD1; --prose-ink: #DCE2E5;
    --solid: #26343B; --solid-hover: #31434C; --header-bg: rgba(15,21,24,0.92); --line-hi: #1F5C70;
    --ok-bg: #12301F; --ok-ink: #7FD9A0; --warn-ink: #F2B65C; --soon-ink: #8D979C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-ink: #5AD8FF; --brand-soft: #0E2A35; --accent-soft: #2E2312;
  --ink: #E9EDEF; --muted: #7D878D; --muted-ink: #A3ADB3; --line: #2A353B;
  --paper: #0F1518; --wash: #151D21; --surface: #172126; --ink-2: #C5CDD1; --prose-ink: #DCE2E5;
  --solid: #26343B; --solid-hover: #31434C; --header-bg: rgba(15,21,24,0.92); --line-hi: #1F5C70;
  --ok-bg: #12301F; --ok-ink: #7FD9A0; --warn-ink: #F2B65C; --soon-ink: #8D979C;
  color-scheme: dark;
}
/* Pieces that need more than a token swap in dark mode. The selectors are repeated
   for the media query and the forced attribute so no runtime JS is needed. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.ghost) { background: var(--brand); color: #04212C; }
  :root:not([data-theme="light"]) .btn:not(.ghost):hover { background: #4FDBFF; }
  :root:not([data-theme="light"]) .card.hub, :root:not([data-theme="light"]) .feature { border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .onair-rows .ok { color: var(--ok-ink); }
  :root:not([data-theme="light"]) .shot { background: repeating-linear-gradient(135deg, #12242B 0 14px, #0F1F25 14px 28px); border-color: #1F5C70; }
  :root:not([data-theme="light"]) .diagram svg [fill="#222"] { fill: var(--ink); }
  :root:not([data-theme="light"]) .diagram svg [stroke="#222"] { stroke: var(--ink); }
  :root:not([data-theme="light"]) .diagram svg [fill="#5E5E63"] { fill: var(--muted-ink); }
  :root:not([data-theme="light"]) .diagram svg [stroke="#5E5E63"] { stroke: var(--muted-ink); }
  :root:not([data-theme="light"]) .diagram svg [fill="#00739A"] { fill: var(--brand-ink); }
  :root:not([data-theme="light"]) .diagram svg [stroke="#00739A"] { stroke: var(--brand-ink); }
  :root:not([data-theme="light"]) .diagram svg [fill="#E6F9FF"] { fill: var(--brand-soft); }
  :root:not([data-theme="light"]) .diagram svg [fill="#FFF4E0"] { fill: var(--accent-soft); }
  :root:not([data-theme="light"]) .diagram svg [fill="#EAF7EE"] { fill: var(--ok-bg); }
  :root:not([data-theme="light"]) .diagram svg [fill="#FDECEC"] { fill: #3A1C1E; }
  :root:not([data-theme="light"]) .diagram svg [fill="#7A4A00"] { fill: var(--warn-ink); }
}
:root[data-theme="dark"] .btn:not(.ghost) { background: var(--brand); color: #04212C; }
:root[data-theme="dark"] .btn:not(.ghost):hover { background: #4FDBFF; }
:root[data-theme="dark"] .card.hub, :root[data-theme="dark"] .feature { border: 1px solid var(--line); }
:root[data-theme="dark"] .onair-rows .ok { color: var(--ok-ink); }
:root[data-theme="dark"] .shot { background: repeating-linear-gradient(135deg, #12242B 0 14px, #0F1F25 14px 28px); border-color: #1F5C70; }
:root[data-theme="dark"] .diagram svg [fill="#222"] { fill: var(--ink); }
:root[data-theme="dark"] .diagram svg [stroke="#222"] { stroke: var(--ink); }
:root[data-theme="dark"] .diagram svg [fill="#5E5E63"] { fill: var(--muted-ink); }
:root[data-theme="dark"] .diagram svg [stroke="#5E5E63"] { stroke: var(--muted-ink); }
:root[data-theme="dark"] .diagram svg [fill="#00739A"] { fill: var(--brand-ink); }
:root[data-theme="dark"] .diagram svg [stroke="#00739A"] { stroke: var(--brand-ink); }
:root[data-theme="dark"] .diagram svg [fill="#E6F9FF"] { fill: var(--brand-soft); }
:root[data-theme="dark"] .diagram svg [fill="#FFF4E0"] { fill: var(--accent-soft); }
:root[data-theme="dark"] .diagram svg [fill="#EAF7EE"] { fill: var(--ok-bg); }
:root[data-theme="dark"] .diagram svg [fill="#FDECEC"] { fill: #3A1C1E; }
:root[data-theme="dark"] .diagram svg [fill="#7A4A00"] { fill: var(--warn-ink); }
