/* Docs, help, guides, and blog. Built by scripts/build-docs.mjs. The shared tokens come from /site.css. */

.dc-hero { position: relative; overflow: hidden; padding: 130px 0 26px; }
.dc-hero::before { content: ""; position: absolute; inset: 0 -10%; background: radial-gradient(40% 60% at 20% 40%, var(--glow-a), transparent 70%), radial-gradient(35% 55% at 80% 30%, var(--glow-b), transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); pointer-events: none; }
.dc-hero .wrap { position: relative; max-width: 1080px; }
.dc-hero h1 { margin: 10px 0 12px; max-width: 16em; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; }
.dc-lead { margin: 0; max-width: 40em; color: var(--muted); font-size: 18.5px; }
.dc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.dc-crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.dc-crumbs a:hover { color: var(--text); }
.dc-crumbs span { color: var(--faint); }
.dc-crumbs b { color: var(--go); }

.dc-sec { padding: 26px 0 90px; }
.dc-grid { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; max-width: 1080px; }
.dc-one { max-width: 1080px; }
.dc-grid > * { min-width: 0; }
.dc-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
.dc-toc b { display: block; margin-bottom: 10px; color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dc-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.dc-toc a:hover { background: var(--soft); color: var(--text); }

/* The text. */
.dc-doc { max-width: 76ch; font-size: 16.5px; line-height: 1.7; }
.dc-doc > h2 { max-width: none; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 25px; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 100px; }
.dc-doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dc-doc h3 { max-width: none; margin: 28px 0 8px; font-size: 18.5px; letter-spacing: -.01em; scroll-margin-top: 100px; }
.dc-doc h4 { margin: 22px 0 6px; font-size: 16px; }
.dc-doc p { margin: 0 0 14px; color: var(--muted); }
.dc-doc b, .dc-doc strong { color: var(--text); }
.dc-doc ul, .dc-doc ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.dc-doc li { margin: 5px 0; }
.dc-doc a { color: var(--text); overflow-wrap: anywhere; }
.dc-doc blockquote { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: var(--soft); border-left: 3px solid var(--go); color: var(--text); }
.dc-doc code { padding: 1px 6px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); font: 500 .88em "JetBrains Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.dc-code { position: relative; margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: #0f0f10; color: #e7e7ea; border: 1px solid var(--line); overflow-x: auto; font: 500 13.5px/1.6 "JetBrains Mono", ui-monospace, monospace; }
.dc-code code { padding: 0; background: none; border: 0; color: inherit; font: inherit; overflow-wrap: normal; }
.dc-copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #e7e7ea; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; }
.dc-table { margin: 0 0 18px; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.dc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.dc-table th, .dc-table td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.dc-table thead th { border-top: 0; background: var(--soft); color: var(--text); font-size: 13px; }
.dc-table td { color: var(--muted); }
/* Names in the first column (tools, fields, types) stay on one line. */
.dc-table td:first-child code { white-space: nowrap; overflow-wrap: normal; }
.dc-date { color: var(--faint) !important; font-size: 14px; font-weight: 600; }

/* Index cards and "more" links. */
.dc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dc-cards > * { min-width: 0; }
.dc-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.dc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dc-card b { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.dc-card span { color: var(--muted); font-size: 15px; }
.dc-card small { color: var(--faint); font-size: 13px; font-weight: 700; }
.dc-card i { margin-top: auto; padding-top: 8px; color: var(--go); font-style: normal; font-weight: 700; font-size: 14.5px; }
.dc-n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border-radius: 10px; background: linear-gradient(135deg, #16a34a, #0ea5e9); color: #fff !important; font-weight: 800; font-size: 15px !important; }
.dc-more { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.dc-more .eyebrow { margin: 0 0 4px; }
.dc-next { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.dc-next:hover { border-color: var(--text); }
.dc-next b { font-size: 16px; }
.dc-next span { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .dc-grid { grid-template-columns: 1fr; gap: 24px; }
  .dc-toc { position: static; max-height: none; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
  .dc-cards { grid-template-columns: 1fr; }
  .dc-doc { font-size: 16px; }
}

/* ---------- Blog ---------- */

/* Tag, date, and reading time, on the index and on a post. */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--faint); font-size: 13.5px; font-weight: 600; }
.bl-meta > * + *::before { content: "·"; margin-right: 14px; color: var(--faint); }
.bl-meta .bl-tag + *::before { content: none; margin: 0; }
.bl-tag { padding: 3px 10px; border-radius: 99px; background: var(--go-soft); color: var(--go); font-size: 12.5px; font-weight: 700; }

/* Covers. The scene inside sets its size from the width of the cover. */
.bl-cover { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: radial-gradient(60% 80% at 15% 20%, var(--glow-a), transparent 70%), radial-gradient(55% 75% at 90% 85%, var(--glow-b), transparent 70%), var(--soft); border: 1px solid var(--line); }
.bl-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 12%, transparent) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.bl-cover.big { aspect-ratio: 16 / 8; }
.bl-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4em; font-size: 2.3cqw; }
.bl-cover.big .bl-art { font-size: 1.55cqw; }
.ba-word { font-size: 5em; font-weight: 900; letter-spacing: -.05em; color: color-mix(in srgb, var(--text) 14%, transparent); }

/* The "link" scene: a chat that gives a link, and the form it opens. */
.ba-chat { display: grid; gap: 1em; width: 22em; }
.ba-chat > div { margin: 0; padding: .9em 1.1em; border-radius: 1.1em; font-size: 1.15em; line-height: 1.4; box-shadow: var(--shadow); }
.ba-me { justify-self: end; max-width: 17em; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: .3em !important; }
.ba-ai { justify-self: start; background: var(--card); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: .3em !important; }
.ba-link { display: inline-block; margin-top: .5em; padding: .35em .8em; border-radius: .6em; background: var(--go); color: #fff; font-weight: 700; }
.ba-form { display: grid; gap: .45em; width: 15em; padding: 1.4em; border-radius: 1.2em; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(2deg); }
.ba-form b { margin-bottom: .4em; font-size: 1.3em; letter-spacing: -.02em; color: var(--text); }
.ba-form i { font-style: normal; font-size: .95em; font-weight: 600; color: var(--muted); }
.ba-form span { height: 2.2em; margin-bottom: .4em; border-radius: .6em; border: 1px solid var(--line); background: var(--soft); }
.ba-form .ba-drop { display: grid; place-items: center; height: 3.4em; border-style: dashed; color: var(--faint); font-size: .9em; }

/* The "chase" scene: one sheet, and who is back. */
.ba-sheet { width: 34em; padding: 1.6em 1.8em; border-radius: 1.3em; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ba-head { display: flex; justify-content: space-between; align-items: baseline; }
.ba-head b { font-size: 1.4em; letter-spacing: -.02em; color: var(--text); }
.ba-head em { font-style: normal; font-weight: 700; color: var(--go); }
.ba-bar { height: .55em; margin: .9em 0 .6em; border-radius: 99px; background: var(--soft); overflow: hidden; }
.ba-bar i { display: block; width: 75%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16a34a, #0ea5e9); }
.ba-row { display: flex; align-items: center; gap: .9em; padding: .75em 0; border-top: 1px solid var(--line); }
.ba-row:first-of-type { border-top: 0; }
.ba-row b { flex: 1; font-size: 1.1em; font-weight: 600; color: var(--text); }
.ba-av { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: .85em; font-weight: 700; }
.ba-row em { padding: .3em .8em; border-radius: 99px; font-style: normal; font-size: .9em; font-weight: 700; }
.ba-row em.ok { background: var(--go-soft); color: var(--go); }
.ba-row em.wait { background: var(--wait-soft); color: #b45309; }

/* The index. */
.bl-index-hero h1 { max-width: 14em; }
.bl-index .wrap, .bl-end .wrap { max-width: 1080px; }
.bl-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 14px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.bl-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bl-feature-text { display: grid; gap: 14px; padding: 12px 28px 12px 0; }
.bl-feature h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.03em; }
.bl-feature p:not(.bl-meta) { margin: 0; color: var(--muted); font-size: 17px; }
.bl-feature i { color: var(--go); font-style: normal; font-weight: 700; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.bl-grid > * { min-width: 0; }
.bl-card { display: flex; flex-direction: column; gap: 16px; padding: 10px 10px 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bl-card .bl-cover { border-radius: 16px; }
.bl-card-text { display: grid; gap: 8px; padding: 0 10px; }
.bl-card h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.bl-card .bl-meta { gap: 6px 10px; font-size: 12.5px; }
.bl-card .bl-meta > * + *::before { margin-right: 10px; }
.bl-grid.one { grid-template-columns: 1fr; }
.bl-grid.one .bl-card { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 28px; padding: 10px; }
.bl-grid.one .bl-card-text { padding: 0 20px 0 0; }
.bl-grid.one .bl-card h3 { font-size: 24px; }
.bl-card p:not(.bl-meta) { margin: 0; color: var(--muted); font-size: 15px; }

/* A post: one centered reading column. */
.bl-hero { position: relative; overflow-x: clip; padding: 124px 0 0; }
.bl-hero::before { content: ""; position: absolute; inset: 0 -10% 30%; background: radial-gradient(40% 60% at 25% 30%, var(--glow-a), transparent 70%), radial-gradient(35% 55% at 75% 20%, var(--glow-b), transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); pointer-events: none; }
.bl-hero .wrap { position: relative; max-width: 760px; }
.bl-back { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.bl-back:hover { color: var(--text); }
.bl-hero h1 { margin: 16px 0 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; }
.bl-lead { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.5; }
.bl-author { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; }
.bl-mark { width: 40px; height: 40px; border-radius: 12px; }
.bl-mark svg { width: 21px; height: 21px; }
.bl-author span { display: grid; line-height: 1.3; }
.bl-author b { font-size: 15px; }
.bl-author small { color: var(--faint); font-size: 13.5px; font-weight: 600; }
.bl-hero .wrap.bl-hero-art { max-width: 1000px; margin-top: 44px; }
.bl-hero-art .bl-cover { border-radius: 24px; box-shadow: var(--shadow); }

.bl-body { max-width: 680px; margin: 56px auto 0; font-size: 18.5px; line-height: 1.75; }
.bl-body p, .bl-body ul, .bl-body ol { color: color-mix(in srgb, var(--text) 82%, var(--bg)); }
.bl-body > p:first-child { font-size: 21px; line-height: 1.6; color: var(--text); }
.bl-body > h2 { margin: 52px 0 14px; padding-top: 0; border-top: 0; font-size: 28px; letter-spacing: -.025em; }
.bl-body p { margin-bottom: 20px; }
.bl-body ul, .bl-body ol { margin-bottom: 22px; padding-left: 26px; }
.bl-body li { margin: 8px 0; padding-left: 4px; }
.bl-body ul li::marker { color: var(--go); }
.bl-body ol li::marker { color: var(--go); font-weight: 800; }
.bl-body a { text-decoration-color: color-mix(in srgb, var(--go) 60%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bl-body a:hover { text-decoration-color: var(--go); }
.bl-body .dc-code { margin: 6px 0 24px; padding-top: 44px; white-space: pre-wrap; word-break: break-all; }

.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 680px; margin: 44px auto 0; padding-top: 26px; border-top: 1px solid var(--line); }
.bl-share span { margin-right: auto; color: var(--muted); font-size: 15px; font-weight: 600; }
.bl-share .btn { padding: 9px 16px; font-size: 14.5px; }

/* After a post: a call to action, and more posts. */
.bl-end { padding: 72px 0 96px; }
.bl-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 40px 44px; border-radius: 28px; background: radial-gradient(50% 120% at 0% 0%, var(--glow-a), transparent 70%), radial-gradient(50% 120% at 100% 100%, var(--glow-b), transparent 70%), var(--soft); border: 1px solid var(--line); }
.bl-cta h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.bl-cta p:not(.eyebrow) { margin: 0; max-width: 34em; color: var(--muted); }
.bl-cta .eyebrow { color: var(--go); }
.bl-cta .cta { justify-content: flex-start; }
.bl-more-head { display: flex; justify-content: space-between; align-items: baseline; margin: 72px 0 0; }
.bl-more-head h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.bl-more-head a { color: var(--go); font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  .bl-feature { grid-template-columns: 1fr; gap: 18px; padding: 10px; }
  .bl-feature-text { padding: 0 10px 14px; }
  .bl-grid, .bl-grid.one .bl-card { grid-template-columns: 1fr; }
  .bl-grid.one .bl-card { gap: 16px; padding: 10px 10px 20px; }
  .bl-grid.one .bl-card-text { padding: 0 10px; }
  .bl-grid.one .bl-card h3 { font-size: 20px; }
  .bl-cover.big { aspect-ratio: 16 / 10; }
  .bl-cover.big .bl-art { font-size: 2.1cqw; }
  .bl-hero { padding-top: 104px; }
  .bl-body { margin-top: 40px; font-size: 17.5px; }
  .bl-body > p:first-child { font-size: 19px; }
  .bl-cta { padding: 28px 22px; }
  .bl-share span { flex-basis: 100%; }
}

/* ---------- Help center: a landing page with cards, and one page for each topic (like Fillout) ---------- */
.hc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--go) 12%, transparent); color: var(--go); }
/* The search button. It opens the search dialog. */
.hc-sbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.hc-sbtn span { flex: 1; }
.hc-sbtn:hover { border-color: color-mix(in srgb, var(--go) 45%, var(--line)); color: var(--text); }
.hc-sbtn kbd, .hc-dlg-box kbd { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.hc-sbtn-lg { max-width: 560px; margin-top: 26px; padding: 15px 16px; border-radius: 16px; font-size: 16.5px; box-shadow: 0 16px 36px -26px rgba(15, 15, 16, .35); }
/* Landing page */
.hc-hero { padding-bottom: 20px; }
.hc-land .wrap { max-width: 1080px; }
.hc-h { margin: 34px 0 14px; font-size: 22px; letter-spacing: -.02em; }
.hc-h:first-child { margin-top: 0; }
.hc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hc-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 3px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hc-card .hc-ic { grid-row: 1 / 4; }
.hc-card b { font-size: 17px; }
.hc-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.hc-card .hc-n { margin-top: 6px; color: var(--faint); font-size: 13px; font-weight: 600; }
.hc-card:hover { border-color: color-mix(in srgb, var(--go) 45%, var(--line)); box-shadow: 0 14px 30px -24px rgba(15, 15, 16, .4); }
.hc-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hc-guides a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
.hc-guides a:hover { border-color: color-mix(in srgb, var(--go) 45%, var(--line)); }
.hc-guides b { font-size: 15px; }
.hc-guides p { margin: 0; color: var(--muted); font-size: 13.5px; }
/* The "Still have questions?" banner at the end of every help page */
.hc-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 48px 0 0; padding: 22px 24px; border-radius: 20px; background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--go) 14%, transparent), transparent 60%), var(--card); border: 1px solid var(--line); }
.hc-banner b { font-size: 18px; }
.hc-banner p { margin: 4px 0 0; color: var(--muted); }
.hc-banner .btn { flex: none; }
/* Topic page: sidebar, text, and "On this page" */
.hc-page { padding-top: 108px; }
.hc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 44px; max-width: 1240px; align-items: start; }
.hc-side, .hc-toc { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; }
.hc-side { display: grid; gap: 4px; padding-right: 6px; }
.hc-side .hc-sbtn { margin-bottom: 12px; }
.hc-st { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.hc-st:hover { background: var(--soft); color: var(--text); }
.hc-sg.on .hc-st { background: color-mix(in srgb, var(--go) 10%, transparent); color: var(--text); }
.hc-sg.on .hc-st svg { color: var(--go); }
.hc-sg ul { list-style: none; margin: 4px 0 10px 18px; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.hc-sg li a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.35; text-decoration: none; }
.hc-sg li a:hover, .hc-sg li a.on { color: var(--text); }
.hc-sg li a.on { background: var(--soft); }
.hc-doc > .dc-crumbs { margin-bottom: 14px; }
.hc-doc h1 { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.1; }
.hc-doc > .dc-lead { margin-bottom: 30px; }
.hc-q { padding: 26px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.hc-q h2 { position: relative; max-width: none; margin: 0 0 10px; font-size: 21px; letter-spacing: -.01em; }
.hc-anchor { position: absolute; left: -22px; color: var(--faint); text-decoration: none; opacity: 0; }
.hc-q h2:hover .hc-anchor, .hc-anchor:focus-visible { opacity: 1; }
.hc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.hc-pn a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; }
.hc-pn a.nx { text-align: right; }
.hc-pn a:hover { border-color: color-mix(in srgb, var(--go) 45%, var(--line)); }
.hc-pn small { color: var(--faint); font-size: 12.5px; font-weight: 700; }
.hc-toc b { display: block; margin-bottom: 8px; color: var(--faint); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hc-toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid transparent; color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; }
.hc-toc a:hover { color: var(--text); }
.hc-toc a.on { border-left-color: var(--go); color: var(--text); }
/* Search dialog */
.hc-dlg { width: min(640px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5); }
.hc-dlg::backdrop { background: rgba(9, 9, 11, .45); backdrop-filter: blur(3px); }
.hc-dlg-box { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); color: var(--muted); }
.hc-dlg-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 17px; }
.hc-res { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow: auto; }
.hc-res a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.hc-res b { font-size: 15px; }
.hc-res small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-res li[aria-selected="true"] a, .hc-res a:hover { background: var(--soft); }
.hc-empty { margin: 0; padding: 18px 20px; color: var(--muted); }
.hc-empty[hidden] { display: none; }
@media (max-width: 1100px) { .hc-grid { grid-template-columns: 220px minmax(0, 1fr); } .hc-toc { display: none; } }
@media (max-width: 820px) { .hc-grid { grid-template-columns: 1fr; gap: 20px; } .hc-side { position: static; max-height: none; } .hc-sg:not(.on) { display: none; } .hc-cards, .hc-guides { grid-template-columns: 1fr; } .hc-banner { flex-direction: column; align-items: flex-start; } .hc-anchor { display: none; } }
@media (prefers-reduced-motion: reduce) { .hc-card { transition: none; } }
