:root {
  color-scheme: dark;
  /* Keep elevation values in sync with triangle/src/site.css. */
  --bg-0: #030405;
  --surface-1: linear-gradient(180deg, #0b0e13, #06080b);
  --surface-2: linear-gradient(180deg, #11151c, #090c11);
  --surface-3: linear-gradient(180deg, #171c25, #10141b);
  --edge: rgba(244, 245, 247, 0.1);
  --edge-hi: rgba(244, 245, 247, 0.07);
  --shadow-1: 0 8px 24px -8px rgba(0, 0, 0, 0.65);
  --shadow-2: 0 32px 72px -16px rgba(0, 0, 0, 0.85);
  --glow-accent: 0 8px 32px -8px rgba(94, 160, 255, 0.24);
  --radius: 12px;
  --radius-sm: 6px;
  --ink: #f4f5f7;
  --dim: #9ba1aa;
  --faint: #8a919c;
  --line: var(--edge);
  --line-soft: #f4f5f70f;
  --blue: #5ea0ff;
  --lilac: #b5a6ff;
  --disp: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0, #11172255, transparent 42%), linear-gradient(180deg, #06080b, var(--bg-0) 80%); background-color: var(--bg-0); color: var(--ink); font: 400 16px/1.75 var(--disp); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue); color: var(--bg-0); }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--lilac); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.skip { position: fixed; z-index: 100; top: -60px; left: 16px; padding: 10px 16px; background: var(--ink); color: var(--bg-0); font: 12px var(--mono); }
.skip:focus { top: 12px; }
.site-head { position: sticky; z-index: 20; top: 0; min-height: 96px; display: flex; align-items: center; gap: 22px; padding: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--edge); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); }
.brand { display: inline-flex; flex: 0 0 88px; width: 88px; height: 88px; align-items: center; justify-content: center; overflow: hidden; }
.brand img { flex-shrink: 0; width: 128px; height: 128px; max-width: none; }
.section-label, .header-links a, .status, .breadcrumb, .sidebar h2, .mobile-nav h2 { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.section-label { font-size: 10px; color: var(--dim); text-decoration: none; }
.header-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-links a { color: var(--dim); font-size: 10px; text-decoration: none; }
.header-links a:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 6px 10px; border: 1px solid var(--edge); border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); color: var(--dim); font-size: 9px; text-decoration: none; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; background: var(--lilac); }
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); max-width: 1360px; margin: auto; padding: 44px 40px 80px; }
.sidebar { position: sticky; top: 124px; align-self: start; max-height: calc(100vh - 148px); overflow-y: auto; padding: 18px 12px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); scrollbar-width: thin; scrollbar-color: #353944 transparent; }
.sidebar h2, .mobile-nav h2 { margin: 28px 0 10px; color: var(--faint); font-size: 9px; line-height: 1.6; font-weight: 500; }
.sidebar h2:first-child { margin-top: 0; }
.sidebar a { display: block; margin: 2px 0; padding: 7px 12px; border-left: 1px solid transparent; border-radius: var(--radius-sm); color: var(--dim); text-decoration: none; font-size: 13px; line-height: 1.5; }
.sidebar a:hover { color: var(--ink); background: var(--surface-2); }
.sidebar a.active { border-left-color: var(--blue); color: var(--ink); background: var(--surface-3); box-shadow: inset 0 1px 0 var(--edge-hi), var(--glow-accent); }
.sidebar .download { margin-top: 26px; padding: 13px 12px; border: 1px solid var(--edge); border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); font: 10px/1.6 var(--mono); letter-spacing: .03em; color: var(--lilac); }
.sidebar .download:is(:hover, :focus-visible), .status:is(:hover, :focus-visible) { box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1), var(--glow-accent); }
main { min-width: 0; max-width: 880px; overflow-wrap: anywhere; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--blue); font-size: 10px; }
.breadcrumb::before { content: ""; height: 1px; width: 26px; background: var(--blue); }
h1 { margin: 21px 0 30px; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.08; letter-spacing: -.045em; font-weight: 450; }
h2 { margin: 46px 0 17px; padding-top: 5px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
h3 { margin: 30px 0 12px; font-size: 19px; line-height: 1.4; font-weight: 500; }
p { margin: 17px 0; color: #bcc1ca; }
strong { font-weight: 600; color: var(--ink); }
main img { display: block; width: 100%; height: auto; margin: 30px auto; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-2); color-scheme: dark; }
blockquote { margin: 27px 0; padding: 3px 22px; border: 1px solid var(--edge); border-left-color: var(--blue); border-radius: var(--radius); background: var(--surface-2); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); }
blockquote p { color: #c8cdd6; }
ul, ol { padding-left: 24px; color: #bcc1ca; }
li { margin: 9px 0; }
code { font: 12px/1.65 var(--mono); padding: 2px 5px; background: var(--surface-3); color: #d0c6ff; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
pre { overflow: auto; padding: 20px; border: 1px solid var(--edge); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); border-radius: var(--radius); }
pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; color: #c7d7ef; }
table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 25px 0; font-size: 13px; line-height: 1.65; border-radius: var(--radius); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); }
th, td { min-width: 110px; text-align: left; vertical-align: top; padding: 13px 14px; border: 1px solid var(--line); }
th { background: var(--surface-3); color: var(--ink); font-weight: 500; }
tbody tr:nth-child(even) { background: var(--surface-2); }
td { color: #bcc1ca; }
td code { font-size: 11px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.pagination { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 25px; border-top: 1px solid var(--line); }
.pagination a { max-width: 48%; padding: 14px 18px; border: 1px solid var(--edge); border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); font-size: 13px; text-decoration: none; }
.pagination a:last-child { text-align: right; }
.footnote { margin-top: 34px; font: 10px/1.8 var(--mono); color: var(--faint); letter-spacing: .02em; }
.mobile-nav { display: none; }
@media (max-width: 1000px) {
  .site-head { gap: 16px; }
  .header-links { gap: 16px; }
  .layout { grid-template-columns: 215px minmax(0, 1fr); gap: 30px; padding-inline: 26px; }
}
@media (max-width: 800px) {
  .site-head { min-height: 80px; padding-inline: 18px; }
  .brand { flex-basis: 66px; width: 66px; height: 76px; }
  .brand img { width: 102px; height: 102px; }
  .section-label { margin-right: auto; }
  .header-links { display: none; }
  .layout { display: block; padding: 30px 22px 56px; }
  .sidebar { display: none; }
  .mobile-nav { display: block; padding: 13px 22px; border-bottom: 1px solid var(--edge); background: var(--surface-2); box-shadow: inset 0 1px 0 var(--edge-hi), var(--shadow-1); }
  .mobile-nav summary { cursor: pointer; color: var(--dim); font: 11px/1.7 var(--mono); letter-spacing: .06em; }
  .mobile-nav nav { columns: 2; column-gap: 24px; padding-bottom: 10px; }
  .mobile-nav a { display: block; color: var(--dim); text-decoration: none; font-size: 13px; padding: 6px 0; }
  .mobile-nav a.active { color: var(--blue); }
  main { max-width: none; }
  h1 { font-size: 38px; }
  h2 { font-size: 25px; }
}
@media (max-width: 400px) {
  .site-head { gap: 10px; }
  .section-label { font-size: 9px; letter-spacing: .08em; }
  .status { font-size: 8px; letter-spacing: .08em; padding: 6px 8px; }
}
@media print {
  :root { color-scheme: light; --bg-0: #fff; --surface-1: #f7f7f7; --surface-2: #f7f7f7; --surface-3: #eee; --edge: #ccc; --edge-hi: transparent; --shadow-1: 0 0 transparent; --shadow-2: 0 0 transparent; --glow-accent: 0 0 transparent; --ink: #111; --dim: #444; --faint: #555; --line-soft: #ddd; --blue: #222; --lilac: #444; }
  .site-head, .sidebar, .mobile-nav, .pagination, .skip { display: none; }
  .layout { display: block; padding: 0; }
  body { background: var(--bg-0); font-size: 11pt; }
  main { max-width: none; }
  p, ul, ol, td, blockquote p, code, pre code { color: #222; }
  a { color: inherit; text-decoration: none; }
  h1 { font-size: 26pt; }
  h2, h3 { break-after: avoid; }
  table, main img, pre { break-inside: avoid; }
  main img { max-height: 5in; object-fit: contain; color-scheme: light; }
  pre, code, blockquote { background: #f7f7f7; }
  pre, pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
