/* Frozion Blog — brand tokens match the Frozion site build */
:root {
  --brand: #5637ff;
  --brand-dark: #4128cc;
  --accent: #c6f754;
  --ink: #2b3236;
  --body: #424a50;
  --muted: #626a70;
  --line: #d9dee0;
  --wash: #f8fafa;
  --lavender: #f2f1ff;
  --violet-800: #1f1266;
  --violet-900: #120a3d;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --blogbar-h: 52px;
  --font-body: "Golos Text", "Segoe UI", Arial, sans-serif;
  --font-display: "Funnel Display", "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(18, 10, 61, .05), 0 8px 24px rgba(18, 10, 61, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + var(--blogbar-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--body); background: #fff; font-size: 16px; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container.wide { max-width: 1400px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Site header (mirrors frozion.com) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: #c9c0ff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--violet-900); }
.btn-light:hover { background: var(--accent); color: var(--violet-900); }

/* ---------- Blog bar: the only blog navigation ---------- */
.blog-bar { position: sticky; top: var(--header-h); z-index: 35; background: #fff; border-bottom: 1px solid var(--line); }
.blog-bar > .container { display: flex; align-items: center; gap: 18px; height: var(--blogbar-h); }
.blog-home { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.blog-home::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: 4px 4px 0 var(--accent); }
.topic-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.topic-nav::-webkit-scrollbar { display: none; }
.topic-nav a { font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.topic-nav a:hover { color: var(--ink); background: var(--wash); }
.topic-nav a[aria-current="page"] { color: var(--brand); background: var(--lavender); font-weight: 600; }
.bar-tools { display: flex; gap: 8px; flex-shrink: 0; }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; }
.tool-btn:hover { border-color: var(--brand); color: var(--brand); }
.tool-btn kbd { font-family: var(--font-body); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lavender); color: var(--brand); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--lavender); color: var(--brand); }
.chip-muted { background: var(--wash); color: var(--muted); border: 1px solid var(--line); }
h1, h2, h3, .display { font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { color: #b8bfc3; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(180deg, #f7f6ff 0%, #fff 100%); padding: 64px 0 40px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; margin: 14px 0 16px; max-width: 14ch; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 19px; max-width: 60ch; margin: 0 0 28px; }
.hero-search { display: flex; align-items: center; gap: 12px; max-width: 560px; width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 16px; box-shadow: var(--shadow); text-align: left; }
.hero-search:hover { border-color: var(--brand); }
.hero-search span { flex: 1; }
section.block { padding: 48px 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.block-head h2 { font-size: 30px; margin: 6px 0 0; font-weight: 600; }

.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); color: inherit; }
.featured:hover { border-color: #c9c0ff; color: inherit; }
.featured .cover { min-height: 340px; }
.featured .body { padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured h3 { font-size: 30px; line-height: 1.15; margin: 0; font-weight: 600; }
.featured p { margin: 0; font-size: 17px; }

.cover { position: relative; background: radial-gradient(120% 90% at 85% 10%, #6a4dff 0%, var(--violet-800) 55%, var(--violet-900) 100%); overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(100% 100% at 80% 20%, #000 20%, transparent 80%); }
.cover::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -8%; bottom: -18%; border-radius: 50%; border: 1px solid rgba(198,247,84,.55); box-shadow: 0 0 0 28px rgba(198,247,84,.06), 0 0 0 56px rgba(198,247,84,.04); }
.cover .cover-label { position: absolute; left: 22px; top: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); z-index: 1; }
.cover .cover-word { position: absolute; left: 22px; bottom: 18px; right: 22px; font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 600; color: #fff; z-index: 1; max-width: 14ch; }
.cover[data-topic="human-oversight"] { background: radial-gradient(120% 90% at 15% 10%, #7d5cff 0%, #2a1780 55%, var(--violet-900) 100%); }
.cover[data-topic="evidence"] { background: radial-gradient(120% 90% at 50% 0%, #4b6bff 0%, #1c1a73 55%, var(--violet-900) 100%); }
.cover[data-topic="reliable-execution"] { background: radial-gradient(120% 90% at 90% 90%, #5637ff 0%, #24137a 50%, #0d0830 100%); }
.cover[data-topic="data-context"] { background: radial-gradient(120% 90% at 10% 90%, #3f56e0 0%, #1b1666 55%, var(--violet-900) 100%); }
.cover[data-topic="strategy"] { background: radial-gradient(120% 90% at 70% 30%, #8a63ff 0%, #33168c 50%, var(--violet-900) 100%); }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tc-head { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.tc-head:hover h3 { color: var(--brand); }
.tc-subs { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid #eceff0; display: grid; gap: 4px; }
.tc-subs a { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--body); padding: 3px 0; }
.tc-subs a:hover { color: var(--brand); }
.tc-subs span, .muted-n { color: var(--muted); font-size: 12.5px; }
.topic-card:hover { border-color: #c9c0ff; box-shadow: var(--shadow); color: inherit; }
.topic-card h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; transition: color .15s; }
.topic-card p { margin: 0; font-size: 15px; }
.topic-card .meta { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; gap: 12px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid-4 .card h3 { font-size: 17.5px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #c9c0ff; box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); }
.card .cover { height: 168px; }
.card .cover .cover-word { font-size: 20px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 19px; line-height: 1.25; margin: 0; font-weight: 600; }
.card p { font-size: 14.5px; margin: 0; color: var(--muted); }
.card .meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.meta .dot::before { content: "·"; }

.cta-band { margin: 48px 0 0; background: var(--violet-900); color: #d9d5ff; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: 30px; font-weight: 600; }
.cta-band p { margin: 0; max-width: 60ch; }

/* ---------- Topic hub ---------- */
.hub-hero { padding: 40px 0 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f7f6ff 0%, #fff 100%); }
.hub-hero h1 { font-size: clamp(34px, 4vw, 48px); margin: 14px 0 10px; font-weight: 600; }
.hub-hero .question { font-family: var(--font-display); font-size: 22px; color: var(--brand); margin: 0 0 12px; max-width: 46ch; line-height: 1.3; }
.hub-hero p { max-width: 70ch; margin: 0; font-size: 17px; }
.hub-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding-top: 40px; padding-bottom: 40px; }
.list-article { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); color: inherit; }
.list-article:first-child { padding-top: 0; }
.list-article:hover h3 { color: var(--brand); }
.list-article .cover { border-radius: var(--radius-sm); height: 124px; }
.list-article .cover .cover-word { font-size: 15px; left: 14px; bottom: 12px; }
.list-article .cover .cover-label { left: 14px; top: 12px; font-size: 10px; }
.list-article h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; font-weight: 600; transition: color .15s; }
.list-article p { margin: 0 0 8px; font-size: 15px; }
.planned { margin-top: 32px; }
.planned h2 { font-size: 20px; margin: 0 0 4px; font-weight: 600; }
.planned ul { list-style: none; padding: 0; margin: 12px 0 0; border: 1px dashed var(--line); border-radius: var(--radius); }
.planned li { padding: 12px 16px; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.planned li:last-child { border-bottom: 0; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.side-card h2 { font-size: 15px; font-family: var(--font-body); font-weight: 700; margin: 0 0 10px; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.side-card .arrow::after { content: " →"; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), #8b74ff); z-index: 60; transition: width .08s linear; }
.article-head { padding: 36px 0 28px; background: linear-gradient(180deg, #f7f6ff 0%, #fff 100%); }
.article-head .inner { max-width: 820px; }
.article-head .chips { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.article-head h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; margin: 0 0 16px; font-weight: 600; }
.article-head .dek { font-size: 19.5px; line-height: 1.55; margin: 0 0 20px; color: var(--body); }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-size: 14px; color: var(--muted); }
.byline .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--violet-900); display: grid; place-items: center; }
.byline .avatar span { width: 10px; height: 10px; border-radius: 2px; background: var(--brand); box-shadow: 3px 3px 0 var(--accent); }
.byline strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.act { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
.act:hover { border-color: var(--brand); color: var(--brand); }
.act[aria-pressed="true"] { background: var(--lavender); border-color: #c9c0ff; color: var(--brand); }
.act[aria-pressed="true"] .icon-save { fill: currentColor; }
.review-note { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: #6b5800; background: #fff7d6; border: 1px solid #f0dd8a; border-radius: 8px; padding: 5px 10px; }

.article-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr) 250px; gap: 48px; padding-top: 8px; padding-bottom: 32px; }
.article-main { max-width: 780px; min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + var(--blogbar-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - var(--blogbar-h) - 48px); overflow: auto; padding-right: 4px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.toc-title .pct { font-weight: 600; letter-spacing: 0; color: var(--brand); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.35; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.toc li.sub a { padding-left: 26px; font-size: 13.5px; }
.toc .toc-actions { margin-top: 18px; display: grid; gap: 8px; }
.toc-mobile { display: none; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toc-mobile summary { padding: 12px 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.toc-mobile ol { margin: 0; padding: 0 16px 12px 34px; display: grid; gap: 6px; font-size: 15px; }

.short-answer { border: 1px solid #c9c0ff; background: var(--lavender); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 36px; }
.short-answer .label { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.short-answer p { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--ink); }

.prose { font-size: 17.5px; line-height: 1.75; color: var(--body); }
.prose h2 { font-size: 29px; line-height: 1.2; margin: 52px 0 16px; font-weight: 600; position: relative; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; font-weight: 600; position: relative; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--brand); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-size: .86em; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--violet-800); }
.prose a { text-decoration: underline; text-decoration-color: #c9c0ff; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.anchor { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: #a9b0b5; opacity: 0; display: grid; place-items: center; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--brand); background: var(--lavender); }
.table-wrap { overflow-x: auto; margin: 4px 0 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th { text-align: left; background: var(--wash); color: var(--ink); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose td { padding: 11px 14px; border-bottom: 1px solid #eceff0; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 500; }
.callout { margin: 30px 0; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.callout-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.callout-title { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 600; margin: 0 0 6px; }
.callout p:last-child { margin-bottom: 0; }
.callout-principle { background: var(--lavender); border-color: #d9d2ff; border-left-color: var(--brand); }
.callout-quote { background: none; border: 0; border-left: 0; padding: 8px 0 8px 28px; position: relative; }
.callout-quote::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: linear-gradient(var(--brand), var(--accent)); }
.callout-quote p { font-family: var(--font-display); font-size: 25px; line-height: 1.3; color: var(--ink); font-weight: 500; }

.section-sep { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.faq h2, .sources h2 { font-size: 29px; margin: 0 0 18px; font-weight: 600; position: relative; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; font-size: 16.5px; }
.frozion-box { margin: 44px 0 0; border-radius: 18px; background: var(--violet-900); color: #d9d5ff; padding: 30px 30px 26px; position: relative; overflow: hidden; }
.frozion-box::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.frozion-box > * { position: relative; }
.frozion-box .eyebrow { color: var(--accent); }
.frozion-box h2 { color: #fff; font-size: 26px; margin: 8px 0 12px; font-weight: 600; }
.frozion-box p { font-size: 16.5px; line-height: 1.65; margin: 0 0 18px; }
.frozion-box strong { color: #fff; }
.frozion-box .links { display: flex; flex-wrap: wrap; gap: 10px; }
.frozion-box .links a { color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.frozion-box .links a:hover { border-color: var(--accent); color: var(--accent); }
.frozion-box .links a.primary { background: var(--accent); color: var(--violet-900); border-color: var(--accent); font-weight: 600; }
.sources ol { padding-left: 22px; font-size: 14.5px; line-height: 1.55; display: grid; gap: 10px; }
.sources li::marker { color: var(--muted); }
.sources .note { color: var(--muted); display: block; }
.related { background: var(--wash); border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 48px; }
.related h2 { font-size: 26px; margin: 0 0 22px; font-weight: 600; }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.series-nav a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.series-nav a:hover { border-color: var(--brand); color: var(--brand); }
.series-nav small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.series-nav .next { text-align: right; grid-column: 2; }

/* ---------- Search dialog ---------- */
.search-dialog { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(18,10,61,.42); backdrop-filter: blur(3px); padding: 10vh 16px 16px; }
.search-dialog.open { display: block; }
.search-panel { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(18,10,61,.3); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.search-input-row input { flex: 1; border: 0; height: 58px; font: inherit; font-size: 18px; color: var(--ink); outline: none; background: none; }
.search-input-row button { border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 12px; color: var(--muted); padding: 3px 7px; }
.search-results { max-height: 56vh; overflow: auto; padding: 8px; }
.search-results .empty { padding: 28px; text-align: center; color: var(--muted); font-size: 15px; }
.sr-item { display: block; padding: 12px 14px; border-radius: 10px; color: inherit; }
.sr-item:hover, .sr-item.sel { background: var(--lavender); color: inherit; }
.sr-item .sr-topic { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.sr-item .sr-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 2px 0; }
.sr-item .sr-section { font-size: 14px; color: var(--ink); display: flex; gap: 6px; }
.sr-item .sr-section::before { content: "↳"; color: var(--brand); }
.sr-item .sr-snip { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sr-item mark { background: #e9f9c3; color: inherit; border-radius: 3px; padding: 0 1px; }
.search-foot { border-top: 1px solid var(--line); padding: 9px 16px; font-size: 12px; color: var(--muted); display: flex; gap: 16px; }

/* ---------- Toast & resume pill ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--violet-900); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.resume { position: fixed; right: 24px; bottom: 24px; z-index: 70; background: #fff; border: 1px solid #c9c0ff; box-shadow: var(--shadow); border-radius: 14px; padding: 12px 14px; display: none; align-items: center; gap: 12px; font-size: 14px; max-width: 380px; }
.resume.show { display: flex; }
.resume button { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 4px; }
.resume a { font-weight: 600; }

/* ---------- Reading list page ---------- */
.rl-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.rl-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rl-item h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.rl-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Footer (mirrors frozion.com) ---------- */
.site-footer { background: var(--violet-900); color: #b9b3e6; padding: 56px 0 28px; margin-top: 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { color: #fff; font-family: var(--font-display); font-size: 20px; line-height: 1.3; max-width: 22ch; margin: 0; }
.site-footer h2 { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 4px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d9d5ff; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header .container { justify-content: space-between; }
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .hub-layout { grid-template-columns: 1fr; }
  .card-grid, .card-grid-4, .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  :root { --header-h: 62px; }
  .site-header .btn { padding: 9px 14px; font-size: 13.5px; }
  .brand img { height: 26px; }
  .tool-btn .label, .tool-btn kbd { display: none; }
  .blog-home { font-size: 16px; }
  .featured { grid-template-columns: 1fr; }
  .featured .cover { min-height: 200px; }
  .featured .body { padding: 24px; }
  .card-grid, .card-grid-4, .topic-grid { grid-template-columns: 1fr; }
  .list-article { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .anchor { display: none; }
  .series-nav { grid-template-columns: 1fr; }
  .series-nav .next { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .resume { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ---------- Print / PDF ---------- */
@media print {
  .site-header, .blog-bar, .toc, .toc-mobile, .actions, .related, .site-footer, .progress, .search-dialog, .toast, .resume, .anchor, .cta-band, .review-note, .series-nav { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .article-head { background: none; padding: 0 0 12pt; }
  .article-layout { display: block; }
  .prose { font-size: 11pt; line-height: 1.5; }
  .prose h2 { font-size: 16pt; margin-top: 20pt; break-after: avoid; }
  .table-wrap, .callout, .short-answer { break-inside: avoid; }
  .faq-item { break-inside: avoid; }
  .faq-item p { display: block !important; }
  .frozion-box { background: none; color: #000; border: 1pt solid #999; }
  .frozion-box h2, .frozion-box strong { color: #000; }
  .frozion-box::before { display: none; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
  a { color: #000; }
}

/* ---------- v2: topic menus, topic sidebar, figures, library ---------- */
.tn-item { display: inline-flex; align-items: center; border-radius: 999px; }
.tn-item a { padding-right: 4px !important; }
.tn-chev { border: 0; background: none; color: var(--muted); width: 22px; height: 28px; display: grid; place-items: center; border-radius: 999px; margin-right: 4px; }
.tn-chev:hover, .tn-chev[aria-expanded="true"] { color: var(--brand); background: var(--lavender); }
.tn-chev .chev { width: 14px; height: 14px; transition: transform .15s; }
.tn-chev[aria-expanded="true"] .chev { transform: rotate(180deg); }
.blog-bar { position: sticky; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(18,10,61,.12); z-index: 36; }
.mega[hidden] { display: none; }
.mega-inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 26px; padding-bottom: 28px; }
.mega-intro p { font-family: var(--font-display); font-size: 19px; line-height: 1.3; color: var(--ink); margin: 8px 0 16px; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.mega-sub { display: block; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mega-col li a { color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.mega-col li a:hover { color: var(--brand); }
.mega-col li a.more { color: var(--muted); font-size: 13.5px; }
.mega-col li.soon { color: var(--muted); font-size: 13.5px; font-style: italic; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-grid .featured { grid-template-columns: 1fr; }
.hero-grid .featured .cover { min-height: 220px; }
.hero-grid .featured .body { padding: 24px 26px 26px; gap: 10px; }
.hero-grid .featured h3 { font-size: 24px; }
.hero-grid .featured p { font-size: 15.5px; }
.card-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.library { background: var(--wash); border-top: 1px solid var(--line); }
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.lib-topic { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.lib-topic:hover { color: var(--brand); }
.lib-sub { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 12px 0 6px; }
.lib-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.lib-col li a { color: var(--body); font-size: 14.5px; line-height: 1.35; }
.lib-col li a:hover { color: var(--brand); }

.sub-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sub-jump a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ink); }
.sub-jump a:hover { border-color: var(--brand); color: var(--brand); }
.sub-jump span { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.sub-section { margin-bottom: 44px; }
.sub-section h2 { font-size: 26px; margin: 0 0 4px; font-weight: 600; }
.sub-blurb { margin: 0 0 18px; color: var(--muted); }
.planned-list { list-style: none; padding: 0; margin: 14px 0 0; border: 1px dashed var(--line); border-radius: var(--radius); }
.planned-list li { padding: 11px 16px; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.planned-list li:last-child { border-bottom: 0; }
.hub-side { align-self: start; position: sticky; top: calc(var(--header-h) + var(--blogbar-h) + 24px); }

.head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.head-cover .cover { border-radius: 18px; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.head-cover .cover-word { font-size: 28px; }

.topic-side { position: sticky; top: calc(var(--header-h) + var(--blogbar-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - var(--blogbar-h) - 48px); overflow: auto; font-size: 14px; padding-right: 4px; }
.side-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.side-title a { color: var(--muted); }
.side-title a:hover { color: var(--brand); }
.side-group { border-bottom: 1px solid #eceff0; }
.side-group summary { list-style: none; cursor: pointer; padding: 9px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary span { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.side-group ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.side-group li a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); line-height: 1.35; }
.side-group li a:hover { color: var(--ink); background: var(--wash); }
.side-group li a[aria-current="page"] { color: var(--brand); background: var(--lavender); font-weight: 600; }
.side-other { margin: 18px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.side-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-topics a { color: var(--body); }
.side-topics a:hover { color: var(--brand); }
.topic-mobile { display: none; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
.topic-mobile > summary { padding: 12px 0; font-weight: 600; color: var(--ink); cursor: pointer; }
.topic-mobile .side-title { display: none; }

.fz-figure { margin: 30px 0 32px; }
.fz-figure-slot { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, #f7f6ff 0 14px, #f1efff 14px 28px); border: 1px dashed #c9c0ff; display: grid; place-items: center; padding: 20px; }
.fz-slot-inner { max-width: 520px; text-align: center; display: grid; gap: 8px; }
.fz-slot-id { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.fz-slot-brief { display: none; font-size: 14px; line-height: 1.5; color: var(--muted); }
.is-preview .fz-slot-brief { display: block; }
.fz-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.fz-figure img { width: 100%; height: auto; border-radius: var(--radius-sm); }

@media (max-width: 1280px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .topic-side { display: none; }
  .topic-mobile { display: block; }
  .topic-grid, .library-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .head-grid, .hero-grid { grid-template-columns: 1fr; }
  .head-cover { display: none; }
  .topic-grid, .library-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-inner { grid-template-columns: 1fr; gap: 18px; }
  .hub-side { position: static; }
}
@media (max-width: 720px) {
  .topic-grid, .library-grid { grid-template-columns: 1fr; }
  .tn-chev { display: none; }
  .mega { display: none !important; }
}
@media print { .topic-side, .topic-mobile, .head-cover, .mega { display: none !important; } .fz-slot-brief { display: block; } }

.topic-card-lib { background: var(--violet-900); border-color: var(--violet-900); color: #d9d5ff; justify-content: space-between; }
.topic-card-lib .eyebrow { color: var(--accent); }
.topic-card-lib h3 { color: #fff; font-size: 22px; }
.topic-card-lib:hover { color: #fff; box-shadow: var(--shadow); }
.tc-more { font-weight: 600; color: var(--accent); }

/* ---------- Author ---------- */
.avatar-initials { width: 40px; height: 40px; border-radius: 50%; background: var(--violet-900); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; flex-shrink: 0; }
.avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.by-who { display: flex; flex-direction: column; line-height: 1.25; margin-right: 6px; }
.by-name { color: var(--ink); font-weight: 600; font-size: 15px; }
.by-name:hover { color: var(--brand); }
.by-title { font-size: 13px; color: var(--muted); }
.by-dates { font-size: 14px; color: var(--muted); }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 44px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.author-box .avatar-initials, .author-box .avatar-img { width: 64px; height: 64px; font-size: 22px; }
.ab-name { margin: 4px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.ab-name a { color: var(--ink); }
.ab-title { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.ab-bio { margin: 0 0 12px; font-size: 15.5px; }
.ab-links { display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.ab-links a { display: inline-flex; align-items: center; gap: 6px; }
@media print { .ab-links { display: none; } }

/* ---------- Scheduled (preview only) ---------- */
.chip-sched { background: #fff7d6; color: #6b5800; border: 1px solid #f0dd8a; }
.sched-dot { font-size: 11.5px; color: #8a7200; background: #fff7d6; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.sched-note { background: #eef9d6; border-color: #c6f754; color: #3d5200; }
