/* Grokbot Desk — dark catalog system. Independent of x.ai; shares only the register (near-black field, mono labels, one accent). */
@font-face { font-family: 'Geist'; src: url('fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg:      oklch(12% 0.006 260);
  --surface: oklch(17% 0.007 260);
  --surface-2: oklch(21% 0.008 260);
  --fg:      oklch(93% 0.008 250);
  --muted:   oklch(70% 0.012 250);
  --border:  oklch(27% 0.008 260);
  --border-strong: oklch(36% 0.01 260);
  --accent:  oklch(83% 0.16 162);
  --accent-ink: oklch(16% 0.03 162);
  --accent-soft: oklch(83% 0.16 162 / 0.12);
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, Menlo, monospace;
  --now-bg: oklch(83% 0.16 162 / 0.16);
  --now-fg: oklch(88% 0.14 162);
  --have-bg: oklch(75% 0.12 255 / 0.18);
  --have-fg: oklch(86% 0.08 255);
  --later-bg: oklch(40% 0.01 260 / 0.5);
  --later-fg: oklch(82% 0.01 250);
  --notice-bg: oklch(16% 0.02 60);
  --notice-fg: oklch(88% 0.06 70);
  --notice-border: oklch(34% 0.06 60);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
button, input, select, a { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 9; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Masthead */
.top { position: sticky; top: 0; z-index: 5; background: oklch(12% 0.006 260 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.brandrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: -0.04em; flex: none; }
.brand strong { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; font-weight: 600; display: block; line-height: 1.1; }
.brand span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; display: block; }
nav[data-od-id="site-nav"] { display: flex; flex-wrap: wrap; gap: 2px; }
nav[data-od-id="site-nav"] a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; }
nav[data-od-id="site-nav"] a:hover { background: var(--surface-2); color: var(--fg); }
nav[data-od-id="site-nav"] a[aria-current="page"] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border-strong); }
.notice { background: var(--bg); border-top: 1px solid var(--border); }
.notice p { margin: 0; padding: 10px 0; font-size: 13px; line-height: 1.5; color: oklch(60% 0.01 250); text-align: center; text-wrap: pretty; }
.notice strong { color: var(--fg); font-weight: 560; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -120px -40vw auto; height: 420px; background: radial-gradient(60% 70% at 30% 20%, oklch(83% 0.16 162 / 0.14), transparent 70%); pointer-events: none; z-index: -1; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.kicker b { color: var(--accent); font-weight: 500; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.detail-meta .kicker { margin: 0; }
.freshness-badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 28px; padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--later-bg); color: var(--later-fg); font-family: var(--font-mono); font-size: 11px; line-height: 1.4; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.freshness-badge::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.freshness-badge.current { background: var(--now-bg); color: var(--now-fg); border-color: oklch(60% 0.13 162); }
.freshness-badge.recent { background: var(--have-bg); color: var(--have-fg); border-color: oklch(48% 0.08 255); }
.freshness-badge.older { background: var(--later-bg); color: var(--later-fg); border-color: var(--border-strong); }
h1 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.035em; font-size: clamp(38px, 6vw, 76px); line-height: 1.0; margin: 0 0 20px; text-wrap: balance; max-width: 15ch; }
h1 em { font-style: normal; color: var(--muted); }
.lede { max-width: 62ch; margin: 0; font-size: 19px; line-height: 1.5; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 10px; align-items: center; margin: 30px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; border-radius: 999px; font-weight: 600; letter-spacing: -0.01em; }
.btn:hover, .btn:focus-visible { background: oklch(89% 0.15 162); color: var(--accent-ink); }
.btn:active { background: oklch(76% 0.16 162); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px oklch(48% 0.01 260); }
.textlink { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; border-radius: 6px; }
.textlink:hover { text-decoration-color: var(--accent); color: var(--fg); background: var(--surface-2); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 48px 0 0; background: var(--surface); }
.stats a { display: block; padding: 22px 24px; text-decoration: none; color: var(--fg); border-left: 1px solid var(--border); }
.stats a:first-child { border-left: 0; }
.stats a:hover { background: var(--surface-2); color: var(--fg); }
.stats .num { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.stats .lbl { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.stats .lbl b { color: var(--fg); font-weight: 500; }

/* Section heads */
.sect { padding: 64px 0 0; }
.sect-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: 0 0 20px; }
h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; font-weight: 540; margin: 0; line-height: 1.1; }
.sect-head p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Card grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 100%; position: relative; transition: border-color .14s, transform .14s, background .14s; }
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card .kicker { margin: 0; }
.card h3 { margin: 0; font-size: 18px; font-weight: 560; letter-spacing: -0.015em; line-height: 1.3; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .dom { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.01em; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.card .arrow { font-family: var(--font-mono); color: var(--muted); }
.card:hover .arrow { color: var(--accent); }

/* Shortlist */
.short { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.short .card { gap: 8px; }
.short .card .why { color: var(--fg); font-size: 15px; }
.short .card .where { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Steps + playbooks */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.steps li { list-style: none; counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 20px 64px; position: relative; color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.steps li b { color: var(--fg); font-weight: 560; display: block; margin-bottom: 4px; }
.steps { padding: 0; margin: 0; }
.plays { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin: 0; padding: 0; list-style: none; }
.plays li { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 20px; }
.plays b { display: block; font-weight: 560; letter-spacing: -0.01em; margin-bottom: 4px; }
.plays span { color: var(--muted); font-size: 15px; }

/* Catalog filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px 0; position: sticky; top: 64px; background: oklch(12% 0.006 260 / 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 3; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input[type="search"], select { min-height: 44px; background: var(--surface); color: var(--fg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 12px; }
input[type="search"]::placeholder { color: oklch(55% 0.01 250); }
input[type="search"]:hover, select:hover { border-color: oklch(48% 0.01 260); }
input[type="search"] { min-width: min(100%, 300px); }
.fitset { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.fitset button { min-height: 38px; padding: 0 14px; background: transparent; color: var(--muted); border: 0; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; }
.fitset button:hover { background: var(--surface-2); color: var(--fg); }
.fitset button[aria-pressed="true"], .fitset button[aria-pressed="true"]:hover { background: var(--fg); color: var(--bg); }
.count { margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }

/* Catalog rows render as cards */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .14s, background .14s; }
.row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.row[hidden] { display: none; }
.row > .kicker { margin: 0 0 2px; }
.row > div:not(.side) { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.row h3 { margin: 0; font-size: 18px; font-weight: 560; letter-spacing: -0.015em; line-height: 1.3; }
.row h3 a { color: var(--fg); text-decoration: none; }
.row h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.row p { margin: 0; color: var(--muted); font-size: 15px; }
.by { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.why { color: var(--fg) !important; font-size: 14px !important; padding-top: 6px; border-top: 1px dashed var(--border); }
.side { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 44px; }
.side:has(> .textlink:only-child) { justify-content: flex-end; }
.side .textlink { margin-right: -6px; font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px; }
.install-link span { font-family: var(--font-mono); font-size: .9em; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; background: var(--later-bg); color: var(--later-fg); }
.pill.now { background: var(--now-bg); color: var(--now-fg); }
.pill.have { background: var(--have-bg); color: var(--have-fg); }
.empty { padding: 48px 0; color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* Ad + footer */
.ad { margin: 56px 0 0; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: transparent; padding: 18px 20px; }
.ad strong { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ad p { margin: 6px 0 0; max-width: 64ch; color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 0 64px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
footer a { color: var(--fg); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer p { margin: 0 0 10px; max-width: 64ch; }
footer .mono { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; }


/* Home hero: bigger, four stats */
.hero.home { padding: 88px 0 40px; }
.hero.home h1 { font-size: clamp(44px, 7.2vw, 96px); max-width: 13ch; }
.hero.home::before { height: 560px; background: radial-gradient(55% 60% at 22% 10%, oklch(83% 0.16 162 / 0.18), transparent 70%); }
.hero.home .stats { grid-template-columns: repeat(4, 1fr); }
.hero.tight { padding: 40px 0 24px; }
.hero.tight h1 { max-width: 20ch; font-size: clamp(34px, 5vw, 60px); }
.hero.tight::before { height: 320px; }
.brand > span { display: block; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 18px; border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none; color: var(--fg); font-weight: 500; background: var(--surface); transition: border-color .14s, background .14s; }
.chip span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--surface-2); color: var(--fg); border-color: var(--accent); }

/* Catalog card meta */
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.meta.dim { color: var(--muted); }
.row .kicker b { color: var(--fg); font-weight: 500; text-transform: none; letter-spacing: 0; }
.row p.full { color: var(--fg); }

/* Copy buttons */
.copy { min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; transition: background .14s, border-color .14s; flex: none; }
.copy:hover { background: var(--surface-2); color: var(--fg); border-color: var(--accent); }
.copy[data-done="1"], .copy[data-done="1"]:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.copy { min-height: 48px; padding: 0 20px; font-family: var(--font-body); font-size: 16px; letter-spacing: -0.01em; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; }
.btn.copy:hover { background: oklch(89% 0.15 162); color: var(--accent-ink); }
.btn.copy[data-done="1"] { background: var(--fg); color: var(--bg); }
.btn.ghost.copy { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn.ghost.copy:hover, .btn.ghost.copy:focus-visible { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px oklch(48% 0.01 260); }
.btn.ghost.copy[data-done="1"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.bundle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -9999px; }

/* Detail page (one pack) */
.crumbs { display: flex; gap: 10px; align-items: center; padding: 20px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--fg); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.doc .actions { align-items: center; gap: 12px 18px; }
.install-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; max-width: 68ch; }
.part { padding: 48px 0 0; }
.part-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; align-items: start; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.part-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 10px; overflow: hidden; }
.block-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.block-head .kicker { margin: 0; flex: none; }
.block-head h3 { margin: 0; font-size: 16px; font-weight: 560; letter-spacing: -0.01em; flex: 1; min-width: 0; }
.block pre { margin: 0; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 15.5px; line-height: 1.6; color: var(--fg); }
.plays.int li b { margin-bottom: 2px; }
.source { margin: 40px 0 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.source a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.source a:hover { color: var(--accent); text-decoration-color: var(--accent); }

@media (max-width: 860px) {
  .stats, .hero.home .stats { grid-template-columns: 1fr 1fr; }
  .part-head { grid-template-columns: 1fr; }
  .stats a { border-left: 0; border-top: 1px solid var(--border); }
  .stats a:first-child { border-top: 0; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats, .hero.home .stats { grid-template-columns: 1fr; }
  .block-head { flex-wrap: wrap; }
  .side { flex-wrap: wrap; }
  .row-actions { width: 100%; justify-content: flex-start; }
  .short .card .foot { align-items: flex-start; flex-direction: column; }
  .wrap { width: min(100% - 28px, 1180px); }
  .hero { padding: 44px 0 28px; }
  .detail-meta { align-items: flex-start; }
  .top { position: static; }
  .filters { top: 0; }
  .count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .card, .row { transition: none; } }

/* Guides: index cards with thumbnails and long-form article pages */
.card.guide { padding: 0; overflow: hidden; }
.card.guide .thumb { display: block; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.card.guide .thumb img { display: block; width: 100%; height: auto; object-fit: cover; }
.card.guide > .kicker { margin: 16px 20px 0; }
.card.guide > h3 { margin: 6px 20px 0; }
.card.guide > p { margin: 8px 20px 0; }
.card.guide > .foot { margin: 12px 20px 16px; padding: 0; }
.article-hero { margin: 8px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.article-hero img { display: block; width: 100%; height: auto; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 0; }
.article-layout:has(.toc) { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.toc { position: sticky; top: 24px; border-left: 2px solid var(--border); padding: 2px 0 2px 16px; }
.toc .kicker { margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.article { max-width: 72ch; font-size: 17px; line-height: 1.65; color: var(--fg); }
.article h2 { font-family: var(--font-display); font-size: 28px; font-weight: 580; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 14px; scroll-margin-top: 24px; }
.article h3 { font-size: 20px; font-weight: 560; letter-spacing: -0.015em; line-height: 1.3; margin: 32px 0 10px; scroll-margin-top: 24px; }
.article h2:first-child, .article p:first-child { margin-top: 0; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; }
.article li { margin: 0 0 8px; }
.article li::marker { color: var(--muted); }
.article a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.article a:hover { color: var(--fg); text-decoration-color: var(--accent); background: var(--accent-soft); }
.article strong { font-weight: 620; color: var(--fg); }
.article code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.article pre { margin: 0 0 22px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.article blockquote { margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); color: var(--muted); }
.article figure { margin: 26px 0 28px; }
.article figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.article figcaption { margin: 10px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.article .media-note { padding: 14px 16px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); font-size: 15px; }
.article .media-note .mono { color: var(--accent); margin-right: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 860px) {
  .article-layout:has(.toc) { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-left: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .article h2 { font-size: 24px; }
}

/* Cross-links between guides and packs */
.pack-link { display: inline-block; margin-left: 4px; padding: 0 7px; font-family: var(--font-mono); font-size: 11px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid oklch(83% 0.16 162 / 0.35); border-radius: 999px; text-decoration: none; vertical-align: 2px; }
.pack-link:hover, .pack-link:focus-visible { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.article a.pack-link { text-decoration: none; }
.article a.pack-link:hover { background: var(--accent); }
.packs-strip { margin: 28px 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.packs-strip .kicker { margin: 0 0 10px; }
.mentions li span { display: block; }
