/* antjanus.com — Documentation-Site Layout (demo 032)
   Three-pane docs shell: sidebar / content / "On this page". */

:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* primitives */
  --slate-900: #16202b;
  --slate-700: #364f6a; /* brand */
  --slate-600: #44607f;
  --slate-100: #e3ebf3;
  --slate-50: #f3f6f9;

  /* semantic (light) */
  --bg: #ffffff;
  --bg-sidebar: #f6f8fa;
  --bg-sunken: #f1f4f7;
  --bg-raised: #ffffff;
  --ink: #16202b;
  --text: #33404f;
  --muted: #56616f;
  --border: #dde3ea;
  --border-strong: #c3ccd6;
  --brand: #364f6a;
  --brand-ink: #ffffff;
  --link: #2c5680;
  --selected-bg: #e4ecf5;
  --selected-ink: #1f3b58;
  --focus: #2f6db3;
  --code-bg: #0f1720;
  --code-ink: #dbe4ee;
  --code-chrome: #18222e;
  --inline-code-bg: #eef2f6;
  --inline-code-ink: #243548;

  --note: #2c5f93;  --note-bg: #eef4fb;
  --why: #1c6e52;   --why-bg: #ecf6f1;
  --ask: #7a5b0c;   --ask-bg: #fbf5e4;
  --warn: #9a4a0e;  --warn-bg: #fdf1e7;
  --ai: #5b3fa0;    --ai-bg: #f2eefb;

  --radius: 8px;
  --header-h: 60px;
  --shadow-pop: 0 20px 60px -12px rgba(15, 25, 40, .35), 0 0 0 1px rgba(15, 25, 40, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1218; --bg-sidebar: #10171f; --bg-sunken: #131b25; --bg-raised: #151e29;
    --ink: #eaf0f6; --text: #c5cfdb; --muted: #97a4b4; --border: #243142; --border-strong: #334457;
    --brand: #8db1d8; --brand-ink: #0d1218; --link: #93b8e0; --selected-bg: #1b2a3b; --selected-ink: #d6e6f7;
    --focus: #7fb0ea; --code-bg: #0a0f15; --code-chrome: #121a24; --inline-code-bg: #1a2431; --inline-code-ink: #d6e2ee;
    --note: #86b4e6; --note-bg: #13212f; --why: #62c69d; --why-bg: #11241d; --ask: #e0bb58; --ask-bg: #262010;
    --warn: #eb9d5a; --warn-bg: #2a1a0f; --ai: #b9a2f0; --ai-bg: #1d1830;
    --shadow-pop: 0 24px 70px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1218; --bg-sidebar: #10171f; --bg-sunken: #131b25; --bg-raised: #151e29;
  --ink: #eaf0f6; --text: #c5cfdb; --muted: #97a4b4; --border: #243142; --border-strong: #334457;
  --brand: #8db1d8; --brand-ink: #0d1218; --link: #93b8e0; --selected-bg: #1b2a3b; --selected-ink: #d6e6f7;
  --focus: #7fb0ea; --code-bg: #0a0f15; --code-chrome: #121a24; --inline-code-bg: #1a2431; --inline-code-ink: #d6e2ee;
  --note: #86b4e6; --note-bg: #13212f; --why: #62c69d; --why-bg: #11241d; --ask: #e0bb58; --ask-bg: #262010;
  --warn: #eb9d5a; --warn-bg: #2a1a0f; --ai: #b9a2f0; --ai-bg: #1d1830;
  --shadow-pop: 0 24px 70px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
code, kbd, pre, .mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: 1rem; padding: 0 1rem 0 1.25rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-name span { color: var(--muted); font-weight: 400; }
.version {
  position: relative; flex-shrink: 0;
}
.version summary {
  list-style: none; cursor: pointer; font: 500 .8125rem/1 var(--font-mono);
  padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 6px; color: var(--ink);
  display: inline-flex; gap: .35rem; align-items: center; min-height: 34px;
}
.version summary::-webkit-details-marker { display: none; }
.version summary::after { content: "▾"; color: var(--muted); }
.version-menu {
  position: absolute; top: calc(100% + 6px); left: 0; width: 280px; z-index: 50;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: .4rem; font-size: .9375rem;
}
.version-menu a, .version-menu .current { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.version-menu .current { background: var(--selected-bg); color: var(--selected-ink); font-weight: 600; }
.version-menu a:hover { background: var(--bg-sunken); }
.version-menu small { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.version-menu p { margin: .5rem .7rem .3rem; font-size: .8125rem; color: var(--muted); }

.toptabs { display: flex; gap: .15rem; margin-left: .5rem; }
.toptabs a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9688rem;
  padding: .45rem .7rem; border-radius: 6px; position: relative;
}
.toptabs a:hover { color: var(--ink); background: var(--bg-sunken); }
.toptabs a[aria-current="page"] { color: var(--ink); }
.toptabs a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -11px; height: 2px; background: var(--brand); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.search-trigger {
  display: flex; align-items: center; gap: .6rem; min-width: 250px; height: 38px;
  padding: 0 .5rem 0 .75rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-sunken); color: var(--muted); font: inherit; font-size: .9375rem; cursor: pointer;
}
.search-trigger:hover { border-color: var(--border-strong); color: var(--ink); }
.search-trigger svg { width: 16px; height: 16px; flex-shrink: 0; }
.search-trigger .kbds { margin-left: auto; display: flex; gap: 3px; }
kbd {
  font: 500 .8125rem/1 var(--font-mono); padding: .2rem .4rem; min-width: 1.4rem; text-align: center;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px;
  background: var(--bg); color: var(--muted);
}
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 8px;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

/* ---------- Shell ---------- */
.shell {
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 232px;
  max-width: 1480px; margin: 0 auto; min-height: calc(100vh - var(--header-h));
}
.shell.no-toc { grid-template-columns: 280px minmax(0, 1fr); }

.sidebar {
  position: sticky; top: var(--header-h); align-self: start;
  height: calc(100vh - var(--header-h)); overflow-y: auto;
  border-right: 1px solid var(--border); background: var(--bg-sidebar);
  padding: 1.25rem .75rem 2rem 1rem; font-size: .9688rem;
}
.sidebar-head { display: none; }
.side-group { margin-bottom: .6rem; }
.side-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font: 600 .8125rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: .6rem .6rem; border-radius: 6px; min-height: 36px;
}
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.side-group:not([open]) > summary::after { transform: rotate(-45deg); }
.side-group > summary:hover { color: var(--ink); }
.side-group ul { list-style: none; margin: 0 0 .25rem; padding: 0 0 0 .6rem; border-left: 1px solid var(--border); margin-left: .6rem; }
.side-group li a {
  display: flex; align-items: center; gap: .4rem; justify-content: space-between;
  padding: .42rem .7rem; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--text); text-decoration: none; border-radius: 0 6px 6px 0; line-height: 1.35;
}
.side-group li a:hover { color: var(--ink); background: var(--bg-sunken); }
.side-group li a[aria-current="page"] { color: var(--selected-ink); background: var(--selected-bg); border-left-color: var(--brand); font-weight: 600; }
.side-group li a .ext { color: var(--muted); font-size: .8125rem; }
.pill {
  display: inline-flex; align-items: center; gap: .3rem; font: 500 .8125rem/1 var(--font-mono);
  padding: .22rem .45rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted);
  white-space: nowrap; background: var(--bg);
}
.pill.new { color: var(--why); border-color: color-mix(in srgb, var(--why) 45%, transparent); background: var(--why-bg); }
.pill.upd { color: var(--note); border-color: color-mix(in srgb, var(--note) 45%, transparent); background: var(--note-bg); }
.pill.legacy { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-bg); }
.pill.ai { color: var(--ai); border-color: color-mix(in srgb, var(--ai) 45%, transparent); background: var(--ai-bg); }
.pill.brand { color: var(--selected-ink); border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--selected-bg); }
.side-foot { margin-top: 1.25rem; padding: .9rem .75rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); }

/* ---------- Content ---------- */
.content { padding: 2rem 3rem 4rem; min-width: 0; }
.doc { max-width: 780px; margin: 0 auto; }
.doc.wide { max-width: 1040px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .9063rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
.doc-kicker { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem); margin: 0 0 .75rem; letter-spacing: -.02em; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--text); margin: 0 0 1.5rem; max-width: 68ch; }
.doc h2 { font-size: 1.625rem; margin: 3rem 0 1rem; padding-top: .5rem; }
.doc h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.doc h2 .anchor, .doc h3 .anchor { opacity: 0; margin-left: .35rem; color: var(--muted); text-decoration: none; font-weight: 400; }
.doc h2:hover .anchor, .doc h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.doc p, .doc li { max-width: 72ch; }
.doc :not(pre) > code {
  font-size: .875em; background: var(--inline-code-bg); color: var(--inline-code-ink);
  padding: .12em .38em; border-radius: 4px; border: 1px solid var(--border);
}
.hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9375rem; color: var(--muted); margin-bottom: 1.5rem; }
.meta-row span { display: inline-flex; gap: .35rem; align-items: center; }
.muted { color: var(--muted); }

/* Callouts (admonitions) */
.callout {
  --c: var(--note); --cb: var(--note-bg);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 4px solid var(--c);
  background: var(--cb); border-radius: 6px; padding: .9rem 1.1rem; margin: 1.5rem 0; color: var(--text);
}
.callout-title { display: flex; align-items: center; gap: .45rem; font: 600 .875rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin-bottom: .35rem; }
.callout-title svg { width: 16px; height: 16px; }
.callout p { margin: .25rem 0; }
.callout.why { --c: var(--why); --cb: var(--why-bg); }
.callout.ask { --c: var(--ask); --cb: var(--ask-bg); }
.callout.warn { --c: var(--warn); --cb: var(--warn-bg); }
.callout.ai { --c: var(--ai); --cb: var(--ai-bg); }
.callout .btn { margin-top: .5rem; }

/* Version banner (docusaurus style) */
.version-banner {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); margin-bottom: 1.75rem;
}
.version-banner strong { color: var(--ink); }
.version-banner svg { width: 22px; height: 22px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.version-banner p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem;
  border-radius: 8px; font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-sunken); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, var(--ink)); }
.btn.ghost { border-color: transparent; color: var(--link); padding-inline: .4rem; }
.btn.ghost:hover { background: none; text-decoration: underline; }
.btn.sm { min-height: 36px; padding: .35rem .75rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Hero search (home) */
.hero-search {
  display: flex; align-items: center; gap: .8rem; width: 100%; max-width: 680px; height: 60px; padding: 0 .75rem 0 1.1rem;
  border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--bg-raised);
  color: var(--muted); font: inherit; font-size: 1.125rem; cursor: text; text-align: left;
  box-shadow: 0 1px 0 var(--border), 0 12px 30px -18px rgba(20, 40, 70, .35);
}
.hero-search:hover { border-color: var(--brand); }
.hero-search svg { width: 22px; height: 22px; color: var(--brand); }
.hero-search .kbds { margin-left: auto; display: flex; gap: 4px; }
.search-hints { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; font-size: .9375rem; color: var(--muted); align-items: center; }
.search-hints button {
  font: 500 .875rem/1 var(--font-mono); padding: .45rem .6rem; min-height: 34px; border-radius: 6px;
  border: 1px dashed var(--border-strong); background: none; color: var(--text); cursor: pointer;
}
.search-hints button:hover { border-style: solid; color: var(--ink); }

/* Cards / grids */
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.15rem 1.2rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 8px 24px -16px rgba(20, 40, 70, .4); }
.card h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card p { margin: 0; color: var(--text); font-size: 1rem; }
.card .card-foot { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .875rem; color: var(--muted); }
.card .eyebrow { font: 500 .8125rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card .card-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--selected-bg); color: var(--selected-ink); margin-bottom: .25rem; }
.card .card-icon svg { width: 20px; height: 20px; }
.card .thumb { margin: -1.15rem -1.2rem .6rem; aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--selected-bg), var(--bg-sunken)); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .arrow { color: var(--link); font-weight: 600; font-size: .9688rem; }

/* Doc list (changelog-ish rows) */
.doclist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.doclist li { max-width: none; }
.doclist > li + li { border-top: 1px solid var(--border); }
.docrow { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .95rem 1.1rem; background: var(--bg-raised); position: relative; }
.docrow:hover { background: var(--bg-sunken); }
.docrow time { font: 500 .875rem/1.4 var(--font-mono); color: var(--muted); }
.docrow h3 { margin: 0 0 .15rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.docrow h3 a { color: var(--ink); text-decoration: none; }
.docrow h3 a::after { content: ""; position: absolute; inset: 0; }
.docrow:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.docrow h3 a:focus-visible { outline: none; }
.docrow p { margin: 0; font-size: 1rem; color: var(--muted); }
.docrow .tags { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.docrow.with-thumb { grid-template-columns: 7.5rem 96px minmax(0, 1fr) auto; }
.docrow .mini { width: 96px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-sunken); align-self: center; }
.docrow .mini img { width: 100%; height: 100%; object-fit: cover; }

/* Version section header */
.vhead { display: flex; align-items: center; gap: .75rem; margin: 2.25rem 0 .8rem; }
.vhead h3 { margin: 0; font: 600 1.0625rem/1 var(--font-mono); }
.vhead .line { flex: 1; height: 1px; background: var(--border); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 1.25rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-sunken); font: 600 .8125rem/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td code { font-size: .875rem; }
td.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }

/* Stats strip — hairline (gap) pattern */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.stat { background: var(--bg-raised); padding: 1rem 1.2rem; }
.stat .label { font: 500 .8125rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat .fig { font: 600 1.875rem/1.15 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; margin-top: .2rem; }

/* Home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; margin-bottom: 1rem; }
.maintainer { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); }
.maintainer .portrait { aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, #2a3f54, #16202b); overflow: hidden; }
.maintainer .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 30%; }
.maintainer .body { padding: .9rem 1rem 1rem; font-size: .9688rem; }
.maintainer .body strong { color: var(--ink); display: block; font-size: 1.0625rem; }
.maintainer dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .7rem 0 0; font-size: .9375rem; }
.maintainer dt { color: var(--muted); font-family: var(--font-mono); font-size: .8125rem; padding-top: .15rem; }
.maintainer dd { margin: 0; color: var(--ink); }

.quadrant { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quadrant .card { padding-left: 4rem; min-height: 132px; }
.quadrant .card .card-icon { position: absolute; left: 1.1rem; top: 1.15rem; }
.type-tag { font: 600 .8125rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Tabs */
.tabs { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; background: var(--bg-raised); }
.tablist { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--border); background: var(--bg-sunken); overflow-x: auto; }
.tablist [role="tab"] {
  font: 500 .9688rem/1 var(--font-sans); padding: 0 1rem; min-height: 46px; border: 0; background: none; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tablist [role="tab"]:hover { color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.tablist .tab-actions { margin-left: auto; display: flex; gap: .4rem; padding: 0 .5rem; }
.tabpanel { padding: 1.25rem; }
.tabpanel[hidden] { display: none; }
.tabpanel.flush { padding: 0; }
.tabpanel pre { margin: 0; border-radius: 0; border: 0; }
.prompt-text { font-size: 1rem; }
.prompt-text p { margin: 0 0 .9rem; }

/* Code blocks */
.code {
  margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; background: var(--code-bg);
  border: 1px solid var(--border);
}
.code-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem .35rem .9rem; background: var(--code-chrome); border-bottom: 1px solid #243140; }
.code-head .lang { font: 500 .8125rem/1 var(--font-mono); color: #a9b7c6; letter-spacing: .05em; text-transform: uppercase; }
.copy-btn {
  font: 500 .8125rem/1 var(--font-mono); color: #d3dde8; background: transparent; border: 1px solid #36465a;
  border-radius: 5px; padding: .45rem .6rem; min-height: 32px; cursor: pointer;
}
.copy-btn:hover { background: #223040; }
.copy-btn.done { color: #7fe0b5; border-color: #2f6e55; }
.code pre, pre.code-raw {
  margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-size: .9063rem; line-height: 1.6; color: var(--code-ink); tab-size: 2; background: var(--code-bg);
}
.code pre code { font-family: var(--font-mono); background: none; }
.tok-k { color: #c6a0f6; } .tok-s { color: #a6da95; } .tok-c { color: #8391a3; font-style: italic; }
.tok-t { color: #eed49f; } .tok-f { color: #8aadf4; } .tok-n { color: #f5a97f; } .tok-p { color: #91d7e3; }

/* TOC */
.toc {
  position: sticky; top: var(--header-h); align-self: start; max-height: calc(100vh - var(--header-h));
  overflow-y: auto; padding: 2rem 1.25rem 2rem .5rem; font-size: .9375rem;
}
.toc h2 { font: 600 .8125rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: .3rem 0 .3rem .85rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--brand); font-weight: 600; }
.toc .sub a { padding-left: 1.6rem; }
.toc-extra { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); display: grid; gap: .5rem; }
.toc-extra a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.toc-extra a:hover { color: var(--ink); text-decoration: underline; }
.mobile-toc { display: none; border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 1.5rem; background: var(--bg-sunken); }
.mobile-toc summary { padding: .8rem 1rem; font: 600 .875rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--ink); min-height: 44px; }
.mobile-toc ol { margin: 0; padding: 0 1rem 1rem 2.2rem; }
.mobile-toc li { padding: .2rem 0; }

/* Doc footer: feedback + pager */
.doc-foot { margin-top: 3.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.doc-foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; font-size: .9375rem; color: var(--muted); }
.feedback { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.feedback button { min-height: 36px; }
.feedback .thanks { color: var(--why); font-weight: 500; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.pager a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
.pager a:hover { border-color: var(--brand); }
.pager a small { display: block; color: var(--muted); font-weight: 400; font-size: .875rem; margin-bottom: .2rem; }
.pager .next { text-align: right; grid-column: 2; }

/* Newsletter */
.newsletter { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-sunken); padding: 1.35rem; margin: 2rem 0; }
.newsletter h3 { margin: 0 0 .3rem; font-size: 1.25rem; }
.newsletter p { margin: 0 0 1rem; }
.nl-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.nl-form input[type="email"] {
  flex: 1 1 220px; min-height: 44px; padding: .5rem .8rem; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
}
.nl-form input::placeholder { color: var(--muted); }
.nl-ok { display: none; }
.nl-done .nl-form { display: none; }
.nl-done .nl-ok { display: block; color: var(--why); }

/* Footer */
.site-foot { border-top: 1px solid var(--border); background: var(--bg-sidebar); padding: 2.5rem 1.5rem 1.5rem; }
.foot-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2rem; }
.foot-grid h2 { font: 600 .8125rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .75rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid p { margin: .6rem 0 0; font-size: 1rem; }
.foot-bottom { max-width: 1240px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .9063rem; color: var(--muted); }

/* Search dialog */
.search-dialog {
  width: min(680px, calc(100vw - 2rem)); max-height: min(640px, calc(100vh - 6rem)); padding: 0; margin: 8vh auto auto;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgba(8, 14, 22, .55); backdrop-filter: blur(3px); }
.sd-bar { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.sd-bar svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.sd-bar input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.125rem; color: var(--ink); min-height: 40px; outline: none; }
.sd-bar input::placeholder { color: var(--muted); }
.sd-results { overflow-y: auto; padding: .5rem; flex: 1; }
.sd-group { font: 600 .8125rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .8rem .7rem .4rem; }
.sd-item { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem .75rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.sd-item .sd-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); font: 600 .8125rem/1 var(--font-mono); }
.sd-item strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
.sd-item span.sd-desc { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.sd-item[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.sd-item[aria-selected="true"] strong, .sd-item[aria-selected="true"] .sd-desc { color: var(--brand-ink); }
.sd-item[aria-selected="true"] .sd-ico { border-color: color-mix(in srgb, var(--brand-ink) 40%, transparent); color: var(--brand-ink); }
.sd-item mark { background: color-mix(in srgb, var(--ask) 28%, transparent); color: inherit; border-radius: 2px; }
.sd-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.sd-empty strong { color: var(--ink); display: block; font-size: 1.0625rem; margin-bottom: .25rem; }
.sd-foot { display: flex; gap: 1rem; flex-wrap: wrap; padding: .6rem 1rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); background: var(--bg-sunken); }
.sd-foot span { display: inline-flex; gap: .35rem; align-items: center; }

/* Filter toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.25rem 0; }
.filter-input {
  flex: 1 1 320px; min-height: 46px; padding: .5rem .9rem .5rem 2.5rem; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2356616f' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .8rem center;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font: 500 .9375rem/1 var(--font-sans); padding: .5rem .8rem; min-height: 38px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.result-line { font-size: .9375rem; color: var(--muted); margin: .5rem 0 1rem; display: flex; gap: .75rem; align-items: center; }
select { font: inherit; font-size: .9375rem; min-height: 38px; padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink); }

/* Pattern reference rows */
.ref-list { display: grid; gap: .75rem; }
.ref {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1.1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised);
}
.ref:hover { border-color: var(--border-strong); }
.ref .glyph { width: 88px; height: 70px; border-radius: 6px; background: var(--bg-sunken); border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand); }
.ref .glyph svg { width: 56px; height: 44px; }
.ref h3 { margin: 0; font-size: 1.125rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ref h3 a { color: var(--ink); text-decoration: none; }
.ref h3 a::after { content: ""; position: absolute; inset: 0; }
.ref:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.ref h3 a:focus-visible { outline: none; }
.ref .slug { font: 400 .875rem/1.3 var(--font-mono); color: var(--muted); }
.ref p { margin: .3rem 0 .45rem; }
.ref .ref-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .875rem; color: var(--muted); }
.cat-h { display: flex; align-items: baseline; gap: .6rem; margin: 2rem 0 .8rem; }
.cat-h h2 { margin: 0 !important; padding: 0 !important; font-size: 1.375rem !important; }
.cat-h .count { font: 500 .875rem/1 var(--font-mono); color: var(--muted); }
.empty-state { display: none; padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state.show { display: block; }
.empty-state strong { display: block; color: var(--ink); font-size: 1.125rem; }

/* Signature box (pattern / project) */
.signature { font-family: var(--font-mono); font-size: .9375rem; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.25rem 0; overflow-x: auto; color: var(--ink); }
.signature .k { color: var(--muted); }
.two-col-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
.two-col-list li { break-inside: avoid; margin-bottom: .3rem; }

/* Hairline stat strip demo */
.hss-demo { --hss-surface: var(--bg-raised); }
.hss-cap { font-size: .9688rem; color: var(--muted); margin: 0 0 .6rem; }
.hss-strip { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hss-strip.filter { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.hss-tile { background: var(--hss-surface); padding: .8rem 1rem; text-align: left; font: inherit; color: var(--text); border: 0; min-width: 0; }
.hss-tile .l { font: 500 .8125rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; }
.hss-tile .f { font: 700 1.6rem/1.15 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); display: block; margin: .2rem 0; }
.hss-tile .f.dim { color: var(--muted); font-weight: 500; }
.hss-tile .u { font-size: .875rem; color: var(--muted); }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: var(--bg-sunken); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 16%, var(--bg-raised)); box-shadow: inset 0 -3px 0 var(--brand); }
.hss-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; font-size: 1rem; border-top: 1px solid var(--border); }
.hss-list li:first-child { border-top: 0; }
.hss-list li[hidden] { display: none; }
.hss-status { font-size: .9375rem; color: var(--muted); margin: .6rem 0 0; }

/* About */
.about-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.75rem; align-items: center; margin-bottom: 1rem; }
.about-hero .photo { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(160deg, #2a3f54, #16202b); }
.about-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.changelog { list-style: none; margin: 1rem 0; padding: 0; }
.changelog > li { position: relative; padding: 0 0 1.75rem 1.75rem; border-left: 2px solid var(--border); margin-left: .45rem; max-width: none; }
.changelog > li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.changelog > li:first-child::before { background: var(--brand); }
.changelog > li:last-child { border-left-color: transparent; }
.changelog .ver { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.changelog h3 { margin: 0; font-size: 1.1875rem; }
.changelog .when { font: 500 .875rem/1 var(--font-mono); color: var(--muted); }
.changelog p { margin: .4rem 0; }
.changelog ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.changelog ul li { margin: .2rem 0; }
.career-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; }
details.disclose > summary { cursor: pointer; list-style: none; display: inline-flex; }
details.disclose > summary::-webkit-details-marker { display: none; }
.principles { counter-reset: p; list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); font-size: 1.125rem; font-style: italic; color: var(--ink); max-width: none; }
.principles li::before { content: "P" counter(p, decimal-leading-zero); font: 500 .8125rem/1 var(--font-mono); color: var(--muted); font-style: normal; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.5rem; align-items: start; }
.split .photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 3/4; background: linear-gradient(160deg, #2a3f54, #16202b); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }

/* Article */
.article-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 1.5rem 0 2rem; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #22384f, #0f1720); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose p { margin: 1.1rem 0; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin: .35rem 0; }
.series-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--bg-sunken); }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 2rem 0 1rem; }
.tag-row a.pill { text-decoration: none; color: var(--text); }
.tag-row a.pill:hover { border-color: var(--brand); color: var(--ink); }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }

/* Story parts */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.part .thumb { aspect-ratio: 4 / 3; }
.card.soon { background: var(--bg-sunken); border-style: dashed; }
.card.soon:hover { box-shadow: none; }

/* Projects */
.pkg { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); margin-bottom: 1rem; }
.pkg .shot { border-radius: 6px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; background: linear-gradient(135deg, #1b2735, #0d1218); align-self: start; }
.pkg .shot img { width: 100%; height: 100%; object-fit: cover; }
.pkg h3 { margin: 0; font-size: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pkg .repo { font: 400 .9063rem/1.3 var(--font-mono); color: var(--muted); margin: .25rem 0 .5rem; word-break: break-all; }
.pkg p { margin: .3rem 0 .6rem; }
.featured-pkg { border: 1.5px solid var(--brand); }

/* Responsive */
@media (max-width: 1279px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .toc { display: none; }
  .mobile-toc { display: block; }
  .toptabs { display: none; }
}
@media (max-width: 1023px) {
  .shell, .shell.no-toc { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-grid; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; top: 0; width: min(320px, 86vw); height: 100vh; z-index: 60;
    transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-pop); visibility: hidden;
  }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  body.nav-open .scrim { display: block; }
  .sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
  .content { padding: 1.5rem 1.5rem 3rem; }
  .home-hero { grid-template-columns: 1fr; }
  .maintainer { display: grid; grid-template-columns: 140px 1fr; }
  .maintainer .portrait { aspect-ratio: auto; min-height: 100%; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.scrim { display: none; position: fixed; inset: 0; background: rgba(8, 14, 22, .5); z-index: 55; }
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .topbar { padding: 0 .5rem 0 .75rem; gap: .4rem; }
  .brand-name span, .version { display: none; }
  .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .search-trigger .label, .search-trigger .kbds { display: none; }
  .search-trigger svg { width: 20px; height: 20px; }
  .content { padding: 1.25rem 1rem 3rem; }
  .grid.two, .grid.three, .grid.four, .quadrant, .parts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; justify-content: space-between; align-items: baseline; }
  .docrow, .docrow.with-thumb { grid-template-columns: 1fr; gap: .3rem; }
  .docrow .mini { display: none; }
  .docrow .tags { justify-content: flex-start; }
  .pkg, .about-hero, .split { grid-template-columns: 1fr; }
  .about-hero .photo { width: 140px; }
  .split .photo { aspect-ratio: 4/3; }
  .maintainer { grid-template-columns: 110px 1fr; }
  .ref { grid-template-columns: 1fr; }
  .ref .glyph { display: none; }
  .two-col-list { columns: 1; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-search { height: 54px; font-size: 1rem; }
  .hero-search .kbds { display: none; }
  .article-hero { aspect-ratio: 16 / 9; }
  .prose { font-size: 1.0625rem; }
  .tablist .tab-actions { display: none; }
  .version-banner { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* fix pass */
@media (min-width: 1024px) {
  .shell { background: linear-gradient(to right, var(--bg-sidebar) 0 calc(var(--side-w, 280px) - 1px), var(--border) calc(var(--side-w, 280px) - 1px) var(--side-w, 280px), transparent var(--side-w, 280px)); }
  .sidebar { border-right: 0; }
}
@media (max-width: 1279px) { .shell { --side-w: 264px; } }
.docrow .mini:empty { display: grid; place-items: center; }
.docrow .mini:empty::before { content: ".md"; font: 500 .875rem/1 var(--font-mono); color: var(--muted); }
.prose .callout p { margin: .25rem 0; }
.hero-search > span:not(.kbds) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.article-hero.contain { background: #0b0b0b; }
.article-hero.contain img { object-fit: contain; }
.hss-list li { max-width: none; }
.hss-strip.filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hss-strip.filter .hss-tile:first-child { grid-column: 1 / -1; }
@media (min-width: 42rem) {
  .hss-strip.filter { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hss-strip.filter .hss-tile:first-child { grid-column: auto; }
}
