/* TwitterCard: slate + electric blue / violet. Fonts: Sora (display), Red Hat Text (body), Fragment Mono (code). */
@font-face { font-family: "Sora"; src: url("/s/fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/s/fonts/sora-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/s/fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/s/fonts/red-hat-text-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("/s/fonts/fragment-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f5f7fc; --bg2: #eceff8; --panel: #ffffff; --ink: #0d1324; --ink2: #3b4560; --muted: #646f8c; --line: #dde2ef;
  --blue: #2f5bff; --blue-d: #1f44d6; --violet: #7c4dff; --blue-soft: #e7ecff; --ok: #0e8a5f; --warn: #a15c00; --bad: #c62839; --info: #4153a8;
  --code-bg: #0e1426; --code-ink: #dfe6ff; --grad: linear-gradient(110deg, #2f5bff 0%, #7c4dff 100%);
  --r: 14px; --shadow: 0 1px 2px rgba(13,19,36,.05), 0 8px 28px rgba(13,19,36,.06);
  --head: "Sora", ui-sans-serif, system-ui, sans-serif; --body: "Red Hat Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1020; --bg2: #111830; --panel: #121a31; --ink: #eef1fb; --ink2: #c3cae0; --muted: #8e98b5; --line: #232d4a;
    --blue: #6b8cff; --blue-d: #8aa4ff; --violet: #a084ff; --blue-soft: #1a2448; --ok: #3ccf91; --warn: #f0b350; --bad: #ff7383; --info: #9aa9ff;
    --code-bg: #070b17; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.62 var(--body); overflow-x: hidden; }
img, canvas { max-width: 100%; height: auto; }
a { color: var(--blue-d); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--blue-d); } }
a:hover { color: var(--violet); }
h1, h2, h3, .h3 { font-family: var(--head); line-height: 1.18; letter-spacing: -.015em; color: var(--ink); }
h1 { font-weight: 800; font-size: clamp(2rem, 5.2vw, 3.3rem); margin: .2em 0 .35em; }
h2 { font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 1.8em 0 .55em; }
h3, .h3 { font-weight: 700; font-size: 1.13rem; margin: 1.3em 0 .45em; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--blue-soft); padding: .08em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

/* header */
.top { background: color-mix(in srgb, var(--panel) 88%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(8px); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 7px 12px; font: 600 .95rem var(--body); cursor: pointer; }
.bars { width: 16px; height: 2px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.bars::before { top: -5px; } .bars::after { top: 5px; }
.nav { display: none; width: 100%; }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 6px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink2); font-weight: 600; }
.nav a:hover, .nav a[aria-current] { background: var(--blue-soft); color: var(--ink); }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav { display: block; width: auto; }
  .nav ul { flex-direction: row; padding: 0; gap: 4px; }
  .nav a { padding: 7px 11px; font-size: .96rem; }
}

/* layout */
.hero { padding: 34px 0 10px; }
.hero .lede { max-width: 760px; }
.kicker { color: var(--blue-d); font-size: .82rem; letter-spacing: .04em; margin: 0; text-transform: none; }
.lede { font-size: 1.14rem; color: var(--ink2); margin: .2em 0 .9em; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink2); font-weight: 600; font-size: .95rem; }
.ticks li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 8px; vertical-align: middle; }
.sec { margin: 44px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin-bottom: .3em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.row.end { justify-content: flex-end; } .row.center { justify-content: center; }
.grid2, .grid3 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
@media (min-width: 720px) { .card { padding: 24px; } }
.hint { color: var(--muted); font-size: .9rem; margin: .3em 0; }
.fine { color: var(--muted); font-size: .84rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--grad); color: #fff; font: 600 .98rem var(--body); padding: 10px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; min-height: 42px; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-d); }
.btn.small { padding: 6px 12px; font-size: .9rem; min-height: 34px; }
.linkish { background: none; border: 0; color: var(--blue-d); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.copied { color: var(--ok); font-size: .88rem; }

/* forms */
.fld { display: block; margin: 0 0 12px; border: 0; padding: 0; min-width: 0; }
.fld > span, .fld > legend { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink2); margin-bottom: 5px; padding: 0; }
.fld input[type=text], .fld input[type=url], .fld input[type=number], .fld textarea, .fld select { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; min-width: 0; }
.fld textarea.mono { font: .86rem/1.5 var(--mono); }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 30%, transparent); outline-offset: 0; }
.fld input[type=color] { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); padding: 3px; }
.fld input[type=range] { width: 100%; accent-color: var(--blue); }
.fld.file input { width: 100%; font-size: .9rem; color: var(--ink2); }
.cnt { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: .82rem; }
.cnt.over { color: var(--bad); font-weight: 600; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink2); margin: 6px 0 4px; }
.chk input { margin-top: 4px; accent-color: var(--blue); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--bg); gap: 2px; flex-wrap: wrap; }
.seg-b, .seg-r span { display: inline-block; border: 0; background: none; color: var(--ink2); font: 600 .88rem var(--body); padding: 6px 11px; border-radius: 7px; cursor: pointer; }
.seg-b[aria-pressed=true], .seg-r input:checked + span { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-r { position: relative; }
.seg-r input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-r input:focus-visible + span { outline: 3px solid var(--violet); }
.wrapseg { display: flex; }

/* tool layout */
.tool { margin: 18px 0 30px; }
.tool-head { margin: 8px 0 6px; }
.tool-head .lede { max-width: 820px; }
.local { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 0; }
.dot-ok { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.gen-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .gen-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } .gen .gen-out { position: sticky; top: 76px; align-self: start; } }
.gen-out { min-width: 0; }
.code-out { margin-top: 18px; min-width: 0; }
.code-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code-h h2, .code-h .h3 { margin: 0; margin-right: auto; }
pre.code { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .84rem; line-height: 1.6; margin: 10px 0; max-width: 100%; white-space: pre; }
pre.code code { font-size: inherit; }
.selfc { margin-top: 0; }
.issues { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.issues li { position: relative; padding: 8px 10px 8px 34px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); font-size: .92rem; overflow-wrap: anywhere; }
.issues li::before { position: absolute; left: 10px; top: 8px; font: 700 .8rem/1.5rem var(--mono); width: 16px; text-align: center; }
.issues .ok::before { content: "\2713"; color: var(--ok); }
.issues .warn::before { content: "!"; color: var(--warn); }
.issues .bad::before { content: "\00D7"; color: var(--bad); font-size: 1.1rem; }
.issues .info::before { content: "i"; color: var(--info); }
.issues .bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.issues .warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 12px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--panel); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink2); background: var(--bg2); }
td code { white-space: nowrap; }
table.eff td:nth-child(2) { overflow-wrap: anywhere; min-width: 180px; }
table.ref td:first-child code { white-space: normal; }
.all-tags { margin-top: 16px; }
.all-tags summary { cursor: pointer; font-weight: 600; }
.all-tags td { overflow-wrap: anywhere; }

/* X card mockup (our own drawing) */
.xprev-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.xprev { --pbg: #ffffff; --pink: #0f1419; --pmut: #536471; --pline: #cfd9de; border-radius: 16px; padding: 14px; background: var(--pbg); color: var(--pink); border: 1px solid var(--pline); max-width: 600px; transition: max-width .2s; font: 400 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.xprev[data-theme=dark] { --pbg: #000000; --pink: #e7e9ea; --pmut: #71767b; --pline: #2f3336; }
.xprev[data-device=mobile] { max-width: 390px; font-size: 14px; }
.xp-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
.xp-av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font: 700 16px var(--head); }
.xp-name { display: flex; gap: 5px; flex-wrap: wrap; align-items: baseline; }
.xp-name b { font-weight: 700; } .xp-name span { color: var(--pmut); }
.xp-text { margin: 2px 0 10px; overflow-wrap: anywhere; }
.xp-card { border: 1px solid var(--pline); border-radius: 16px; overflow: hidden; position: relative; }
.xp-large .xp-img { aspect-ratio: 2 / 1; width: 100%; background: #8899a6 center / cover no-repeat; position: relative; display: block; }
.xp-player .xp-img { aspect-ratio: 16 / 9; }
.xp-ovl { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); background: rgba(0,0,0,.72); color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-from { color: var(--pmut); font-size: 13px; margin: 5px 0 0 2px; }
.xp-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(0,0,0,.6); border: 2px solid #fff; }
.xp-play::after { content: ""; position: absolute; left: 22px; top: 16px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.xp-sum { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
.xprev[data-device=mobile] .xp-sum { grid-template-columns: 96px minmax(0, 1fr); }
.xp-sum .xp-img { aspect-ratio: 1; background: #8899a6 center / cover no-repeat; border-right: 1px solid var(--pline); }
.xp-sum .xp-tx { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.xp-dom { color: var(--pmut); font-size: 13px; }
.xp-t { font-weight: 400; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.xp-d { color: var(--pmut); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; overflow-wrap: anywhere; }
.xp-noimg { display: grid; place-items: center; color: #fff; font: 600 12px var(--body); text-align: center; padding: 6px; }
.xp-app .xp-btn { align-self: flex-start; margin-top: 6px; border: 1px solid var(--pline); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 13px; }
.xp-plain { color: #1d9bf0; overflow-wrap: anywhere; }
.xp-acts { display: flex; justify-content: space-between; max-width: 360px; margin-top: 10px; color: var(--pmut); }
.xp-acts i { width: 16px; height: 16px; border: 1.6px solid currentColor; border-radius: 4px; display: block; opacity: .7; }
.xp-acts i:nth-child(2) { border-radius: 50%; }

/* inspector / image / og */
.top-g { align-items: end; }
.insp-out { margin-top: 18px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 24px 14px; text-align: center; background: var(--bg); }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
.ic-meta { align-self: end; margin: 0 0 14px; color: var(--ink2); overflow-wrap: anywhere; }
.ic-stage, .og-stage { background: repeating-conic-gradient(var(--bg2) 0 25%, var(--panel) 0 50%) 0 0 / 18px 18px; border-radius: 12px; border: 1px solid var(--line); padding: 8px; }
.ic-stage canvas, .og-stage canvas { display: block; width: 100%; height: auto; border-radius: 6px; cursor: crosshair; }
.og-stage canvas { cursor: default; }
.ic-result img { margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); width: 100%; max-width: 600px; height: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 9px 13px; font: 600 .95rem var(--body); color: var(--ink2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--blue); }

/* cards and lists */
.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tool-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.tool-card h2, .tool-card h3 { margin: .5em 0 .3em; font-size: 1.08rem; }
.tool-card p { margin: 0; color: var(--ink2); font-size: .94rem; }
.tool-mark { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; background: var(--grad); color: #fff; font-size: .95rem; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.guide-list a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-color: var(--violet); color: var(--ink); }
.guide-list h2, .guide-list h3 { margin: .35em 0 .3em; font-size: 1.08rem; }
.guide-list p { margin: 0 0 8px; color: var(--ink2); font-size: .94rem; }
.gl-k { color: var(--violet); font-size: .78rem; }
.gl-m { margin-top: auto; color: var(--muted); font-size: .84rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 .85rem var(--mono); color: var(--blue-d); }
.steps h3 { margin: .3em 0; } .steps p { margin: 0; color: var(--ink2); }
.links { padding-left: 1.1em; } .links li { margin: .35em 0; }

/* X section */
.xsec { margin: 48px 0; padding: 22px 18px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, var(--panel)), color-mix(in srgb, var(--violet) 10%, var(--panel))); border: 1px solid var(--line); }
@media (min-width: 720px) { .xsec { padding: 30px; } }
.xsec h2 { margin-top: 0; }
.x-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .x-grid { grid-template-columns: 1fr 1fr; } }
.x-tips { padding-left: 1.1em; } .x-tips li { margin: .4em 0; }
.x-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.x-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); }
.x-tags a:hover { border-color: var(--blue); }
.x-share h3 { margin-top: 0; }
.count-badge { background: var(--bg); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.count-badge.over { color: var(--bad); border-color: var(--bad); }

/* articles */
.article { padding-bottom: 20px; }
.narrow { max-width: 820px; }
.art-head { margin: 10px 0 18px; }
.byline { color: var(--muted); font-size: .9rem; }
.art-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .art-grid { grid-template-columns: minmax(0, 1fr) 280px; } .side { position: sticky; top: 84px; align-self: start; } }
.art-main { min-width: 0; max-width: 780px; }
.prose { overflow-wrap: break-word; }
.prose p, .prose li { color: var(--ink2); }
.prose strong { color: var(--ink); }
.prose h2 { scroll-margin-top: 80px; }
.prose h2 + p strong:first-child { color: var(--ink); }
.prose pre { background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .85rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1em 0; padding: .4em 1em; border-left: 4px solid var(--violet); background: var(--panel); border-radius: 0 10px 10px 0; }
.answer, .takeaways { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; }
.answer p:last-child { margin-bottom: 0; }
.answer-h { font: 700 .78rem var(--mono); color: var(--blue-d); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.takeaways { border-left-color: var(--violet); }
.takeaways ul { margin: 4px 0 0; padding-left: 1.1em; }
.side-box, .toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.side-h { font: 700 .76rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.side-t { font-weight: 700; margin: 0; } .side-box p { font-size: .92rem; color: var(--ink2); }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .92rem; } .toc li { margin: .3em 0; }
.crumbs ol { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: .6em 0 0; color: var(--ink2); }
.sources ul { padding-left: 1.1em; font-size: .93rem; } .sources li { margin: .3em 0; overflow-wrap: anywhere; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 22px 0; font-size: .92rem; }
.share-links > span:first-child { font-weight: 600; color: var(--muted); }
.more h2 { font-size: 1.2rem; }
.glossary .g-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.glossary dt { font-weight: 700; } .glossary dd { margin: 4px 0 0; color: var(--ink2); }

/* footer */
.foot { margin-top: 56px; background: var(--panel); border-top: 1px solid var(--line); padding: 34px 0 18px; font-size: .94rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin: .35em 0; }
.foot a { color: var(--ink2); text-decoration: none; } .foot a:hover { color: var(--blue-d); text-decoration: underline; }
.foot-brand { font: 700 1.1rem var(--head); margin: 0 0 6px; } .foot-brand b { color: var(--blue); }
.foot-h { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; }
@media print { .top, .foot, .tool, .share-links { display: none; } }
