/* SiteSwap design tokens: every color, radius and page measure. Light and dark share geometry, type and the orange accent. No other
   style sheet names a color (scripts/check-shared.mjs); the few places no style sheet reaches use lib/brand-constants.mjs.
   Screen widths are in docs/DESIGN.md, "Breakpoints". */
:root, .pv-light {
  --canvas: #F7F7F5; --surface: #FFFFFF; --raised: #FFFFFF; --pill: #EEEEEB; --text: #191D22; --text-2: #62676E; --border: #DEDFE1; --border-2: #C6C8CC;
  --primary: #D94E00; --primary-hover: #B94100; --on-primary: #FFFFFF; --price: #D94E00; --mark: #F26A1B;
  --ok: #1B6B45; --ok-bg: #DDF0E4; --warn: #7A5200; --warn-bg: #FBEFD5; --bad: #B3261E; --bad-bg: #FBE9E7; --on-bad: #FFFFFF; --wanted: #1F4E8C; --wanted-bg: #E1ECF9;
  --ph: #E8E8E5; --shadow: 0 1px 2px rgba(25, 29, 34, 0.06); --chart: #2A6FBF; --chart-2: #D94E00;
  --r-card: 12px; --r-ctl: 8px; --rail-h: 110px; --head-h: 72px; --bar-h: 60px; --wrap: 1560px; --gut: 32px; --safe-b: env(safe-area-inset-bottom, 0px);
  --font: var(--font-body), system-ui, -apple-system, 'Segoe UI', sans-serif; color-scheme: light;
}
/* The same in both themes: what lies over a photo, shadows of things that float, and the arrow of a select. */
:root {
  --on-photo: #FFFFFF; --on-photo-2: #ECEDEE; --photo-bg: #20242A; --photo-shade: rgba(17, 20, 24, 0.62); --photo-shade-more: rgba(17, 20, 24, 0.55); --photo-label: rgba(17, 20, 24, 0.72);
  --photo-fade: linear-gradient(90deg, #0000 0%, #00000059 38%, #000 78%), linear-gradient(#000 78%, #0000 100%);
  --slide-fade: linear-gradient(90deg, #000 calc(100% - 40px), #0000);
  --scrim: rgba(0, 0, 0, 0.5); --scrim-sheet: rgba(0, 0, 0, 0.45); --shadow-menu: 0 8px 28px rgba(0, 0, 0, 0.14); --shadow-list: 0 6px 20px rgba(0, 0, 0, 0.08);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8F96' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
/* Dark is written twice, for the system setting and for an explicit choice (and previews). scripts/check-shared.mjs compares them. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --canvas: #151719; --surface: #222528; --raised: #2B2E32; --pill: #2B2E32; --text: #F5F5F4; --text-2: #B4B8BD; --border: #41454A; --border-2: #565B61;
    --primary: #FF7A32; --primary-hover: #FF9255; --on-primary: #1A1206; --price: #FF7A32; --mark: #FF7A32;
    --ok: #9BE0B8; --ok-bg: #1F3A2C; --warn: #F0C36A; --warn-bg: #3A2F14; --bad: #FF8A80; --bad-bg: #3B1E1C; --on-bad: #1A0B0A; --wanted: #9CC4F5; --wanted-bg: #1C2C42;
    --ph: #2B2E32; --shadow: none; --chart: #4A88D6; --chart-2: #E06A22; color-scheme: dark;
  }
}
:root[data-theme='dark'], .pv-dark {
  --canvas: #151719; --surface: #222528; --raised: #2B2E32; --pill: #2B2E32; --text: #F5F5F4; --text-2: #B4B8BD; --border: #41454A; --border-2: #565B61;
  --primary: #FF7A32; --primary-hover: #FF9255; --on-primary: #1A1206; --price: #FF7A32; --mark: #FF7A32;
  --ok: #9BE0B8; --ok-bg: #1F3A2C; --warn: #F0C36A; --warn-bg: #3A2F14; --bad: #FF8A80; --bad-bg: #3B1E1C; --on-bad: #1A0B0A; --wanted: #9CC4F5; --wanted-bg: #1C2C42;
  --ph: #2B2E32; --shadow: none; --chart: #4A88D6; --chart-2: #E06A22; color-scheme: dark;
}
@media (max-width: 1099.98px) { :root { --gut: 16px; --head-h: 60px; } }
@media (min-width: 1800px) { :root { --wrap: 1760px; } }

/* The developer docs (/developers, lib/docs/site.mjs). Not part of the site's sheet: app/developers serves it after tokens.css, so the docs
   pages share the site's colors, both themes and Inter, and nothing here can reach a site page. Layout follows Payday's docs. */
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --font-body: 'Inter'; --top-h: 60px; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--text); font: 400 15.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font-family: var(--font); }
code, pre, kbd { font-family: var(--font); font-variant-numeric: tabular-nums slashed-zero; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; margin-right: 10px; white-space: nowrap; }
.brand svg { fill: var(--mark); flex: none; }
.brand b { color: var(--mark); font-weight: 800; }
.brand em { font: 600 12px var(--font); font-style: normal; letter-spacing: 0; color: var(--primary); border: 1px solid var(--border-2); border-radius: 6px; padding: 1px 7px; }
.menu { display: none; background: none; border: 0; color: var(--text); padding: 6px; cursor: pointer; }
.search-open { display: flex; align-items: center; gap: 10px; height: 38px; min-width: 260px; border-radius: var(--r-ctl); border: 1px solid var(--border); background: var(--canvas); color: var(--text-2); padding: 0 10px 0 12px; cursor: pointer; font-size: 14px; }
.search-open span { flex: 1; text-align: left; }
.search-open kbd { font-size: 12px; border: 1px solid var(--border-2); border-radius: 5px; padding: 0 6px; color: var(--text-2); }
.search-open:hover { border-color: var(--border-2); }
.toplinks { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.toplinks a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.toplinks a:hover { color: var(--text); }
.toplinks .getkey { color: var(--on-primary); background: var(--primary); padding: 8px 14px; border-radius: var(--r-ctl); white-space: nowrap; }
.toplinks .getkey:hover { color: var(--on-primary); background: var(--primary-hover); }

.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr) 236px; max-width: 1500px; margin: 0 auto; }
body.is-ref .layout { grid-template-columns: 264px minmax(0, 1fr) minmax(380px, 480px); }
.side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; border-right: 1px solid var(--border); padding: 20px 14px 30px 20px; display: flex; flex-direction: column; justify-content: space-between; scrollbar-width: thin; background: var(--canvas); }
.ng { margin-bottom: 20px; }
.ngt { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 6px 8px; }
.side a { display: flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.35; padding: 6px 8px; border-radius: var(--r-ctl); }
.side a:hover { color: var(--text); background: var(--pill); }
.side a[aria-current=page] { color: var(--text); background: var(--surface); box-shadow: inset 3px 0 0 var(--primary); font-weight: 600; }
.side details { margin: 2px 0; }
.side summary { cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: var(--r-ctl); list-style: none; display: flex; align-items: center; gap: 6px; }
.side summary::-webkit-details-marker { display: none; }
.side summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(-45deg); transition: transform .15s; margin: 0 4px 0 2px; }
.side details[open] summary::before { transform: rotate(45deg); }
.side summary:hover { color: var(--text); }
.side details a { padding-left: 16px; font-size: 13.5px; }
.m { flex: none; font: 700 10px/1 var(--font); letter-spacing: .02em; padding: 3px 0; width: 36px; text-align: center; border-radius: 4px; color: var(--ok); background: var(--ok-bg); }
.m-post { color: var(--wanted); background: var(--wanted-bg); }
.m-put, .m-patch { color: var(--warn); background: var(--warn-bg); }
.m-delete { color: var(--bad); background: var(--bad-bg); }
.side-foot { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 10px; }
.side-foot a { font-size: 13px; }

.main { min-width: 0; padding: 40px 56px 80px; }
article { max-width: 760px; margin: 0 auto; }
.crumb { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 10px; font-weight: 800; text-wrap: balance; overflow-wrap: anywhere; }
.lede { font-size: 17.5px; color: var(--text-2); margin: 0 0 14px; max-width: 64ch; }
.page-tools { display: flex; gap: 16px; align-items: center; margin: 0 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.page-tools a, .page-tools button { font-size: 13px; color: var(--text-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; font-weight: 500; }
.page-tools a:hover, .page-tools button:hover { color: var(--text); }
h2 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; margin: 44px 0 12px; font-weight: 700; }
h3 { font-size: 17px; margin: 30px 0 8px; font-weight: 700; }
h2 .hl, h3 .hl { color: inherit; text-decoration: none; }
h2 .hl:hover::after, h3 .hl:hover::after { content: " #"; color: var(--text-2); }
p, li { max-width: 72ch; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
code { font-size: .88em; font-weight: 500; background: var(--pill); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
strong { font-weight: 650; }
.tw { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); margin: 16px 0; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
thead th { color: var(--text-2); font-weight: 600; font-size: 13px; background: var(--pill); }
tbody th { font-weight: 600; color: var(--text-2); white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }

.code { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); margin: 16px 0; overflow: hidden; }
.code-h { display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); background: var(--pill); overflow-x: auto; }
.code-h > span { flex: 1; }
.code .tab { background: none; border: 0; color: var(--text-2); font: 600 12.5px var(--font); padding: 11px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.code .tab[aria-selected=true] { color: var(--text); border-bottom-color: var(--primary); }
.code .tab:hover { color: var(--text); }
.copy { margin-left: auto; background: none; border: 1px solid transparent; color: var(--text-2); font: 600 12px var(--font); padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--border-2); }
.copy.done { color: var(--ok); }
pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.65; color: var(--text); tab-size: 2; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.k { color: var(--wanted); }
.s { color: var(--ok); }
.n { color: var(--warn); }
.l { color: var(--primary); }
.callout { display: flex; gap: 12px; border: 1px solid var(--border); border-left: 3px solid var(--primary); background: var(--surface); border-radius: 10px; padding: 12px 16px; margin: 18px 0; font-size: 14.5px; }
.callout b { flex: none; font-size: 13px; color: var(--primary); padding-top: 1px; }
.callout.warning { border-left-color: var(--warn); }
.callout.warning b { color: var(--warn); }
.callout.tip { border-left-color: var(--ok); }
.callout.tip b { color: var(--ok); }
.callout div { min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0 8px; }
.card { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; background: var(--surface); transition: border-color .15s; }
.card b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 3px; }
.card span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.card:hover { border-color: var(--primary); }
.toc, .toc-none { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow: auto; padding: 40px 20px 30px 8px; font-size: 13.5px; }
.toct { font-weight: 700; color: var(--text); margin: 0 0 8px; }
.toc a { display: block; color: var(--text-2); text-decoration: none; padding: 4px 0 4px 12px; border-left: 1px solid var(--border); line-height: 1.4; }
.toc a.l3 { padding-left: 24px; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--primary); border-left-color: var(--primary); }
.pagefoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.pagefoot a { color: var(--text-2); }

/* the request line: what the endpoint is, in one breath; it fills in as you type in the console */
.reqline { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-2); background: var(--surface); border-radius: var(--r-card); padding: 12px 10px 12px 14px; margin: 6px 0 22px; }
.reqline .m { width: auto; padding: 5px 8px; font-size: 12px; }
.reqline .url { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: 15px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.reqline .base { color: var(--text-2); }
.reqline .pp { color: var(--primary); border-bottom: 1px dashed var(--primary); }
.reqline .copy.small { flex: none; }
.auth { font-size: 14px; color: var(--text-2); border-left: 2px solid var(--border-2); padding-left: 12px; }
.beta { font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.fields { border-top: 1px solid var(--border); }
.field { padding: 12px 0; border-bottom: 1px solid var(--border); }
.fh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fn { font-size: 13.5px; color: var(--text); background: none; border: 0; padding: 0; font-weight: 700; }
.ft { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.req { font-size: 11.5px; font-weight: 600; color: var(--warn); }
.fd { font-size: 12px; color: var(--text-2); }
.fx { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.statuses { display: grid; gap: 6px; }
.status { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--text-2); }
.sc { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; flex: none; }
.sc-2 { color: var(--ok); background: var(--ok-bg); }
.sc-3 { color: var(--wanted); background: var(--wanted-bg); }
.sc-4 { color: var(--warn); background: var(--warn-bg); }
.sc-5 { color: var(--bad); background: var(--bad-bg); }
.panel { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 40px 24px 40px 4px; scrollbar-width: thin; min-width: 0; }
.panel .code { margin: 0 0 16px; }
.panel pre { max-height: 420px; }
.try { border: 1px solid var(--border-2); border-radius: var(--r-card); padding: 16px; background: var(--surface); display: grid; gap: 10px; }
.try-h { display: flex; flex-direction: column; gap: 2px; }
.try-h b { font-size: 15px; }
.try-h span, .try-note { font-size: 12.5px; color: var(--text-2); margin: 0; }
.try label { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.try label span { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.try label i { font-style: normal; font-weight: 400; }
.try input, .try select, .try textarea { width: 100%; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--r-ctl); color: var(--text); font: 500 13px var(--font); padding: 9px 10px; }
.try textarea { resize: vertical; }
.try input:focus, .try select:focus, .try textarea:focus { border-color: var(--primary); outline: none; }
.send { height: 42px; border-radius: var(--r-ctl); border: 0; background: var(--primary); color: var(--on-primary); font: 700 14px var(--font); cursor: pointer; }
.send:hover { background: var(--primary-hover); }
.send:disabled { opacity: .6; cursor: default; }
.try-out .code { margin: 4px 0 0; }
.ep-list { display: grid; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.ep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.ep:last-child { border-bottom: 0; }
.ep:hover { background: var(--pill); color: var(--text); }
.ep code { background: none; border: 0; padding: 0; font-size: 13.5px; }
.ept { color: var(--text-2); font-size: 13.5px; text-align: right; }
.cl-month { font-size: 13px; font-weight: 700; color: var(--primary); margin: 44px 0 -28px; }
.cl-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--text-2); margin: -6px 0 10px; }
.ver { font-size: 12px; font-weight: 600; color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: 1px 7px; }
.cl-kind { font-size: 12.5px; font-weight: 700; margin: 14px 0 -6px; color: var(--ok); }
.cl-kind.changed { color: var(--wanted); }
.cl-kind.removed { color: var(--bad); }

.search { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.search-box { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-menu); overflow: hidden; }
.search input { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--text); font: 500 16px var(--font); padding: 16px 18px; outline: none; }
.results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.results a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--text); }
.results a[aria-selected=true], .results a:hover { background: var(--pill); }
.results b { display: flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 600; }
.results small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.results .snip { color: var(--text-2); font-size: 13px; margin-top: 3px; line-height: 1.45; }
.results mark { background: var(--warn-bg); color: var(--text); border-radius: 3px; }
.results .none { padding: 18px; color: var(--text-2); font-size: 14px; }
.search-foot { border-top: 1px solid var(--border); padding: 9px 14px; font-size: 12px; color: var(--text-2); }

/* the key tool on the API keys page */
.tool { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 20px; margin: 18px 0; }
.tool .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tool .row + .row { margin-top: 10px; }
.tool input[type=text], .tool textarea { flex: 1; min-width: 0; width: 100%; border-radius: var(--r-ctl); border: 1px solid var(--border); background: var(--canvas); color: var(--text); font: 500 15px var(--font); padding: 10px 14px; }
.tool textarea { resize: vertical; min-height: 76px; }
.tool button, .tool .btn { height: 42px; border-radius: var(--r-ctl); border: 1px solid var(--border); background: var(--canvas); color: var(--text); font: 600 14px var(--font); padding: 0 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.tool button.cta, .tool .btn.cta { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tool button:disabled { opacity: .5; cursor: default; }
.tool .keys { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tool .kr { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.tool .kr > div { min-width: 0; }
.tool .meta { color: var(--text-2); font-size: 13.5px; }
.tool .st { font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; color: var(--warn); background: var(--warn-bg); white-space: nowrap; }
.tool .st.active { color: var(--ok); background: var(--ok-bg); }
.tool .st.declined, .tool .st.revoked { color: var(--bad); background: var(--bad-bg); }
.tool .chk { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; cursor: pointer; font-weight: 600; font-size: 15px; }
.tool .chk input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); flex: none; }
.tool .chk small { display: block; color: var(--text-2); font-weight: 400; font-size: 13.5px; }
.tool .new { border: 1px solid var(--primary); border-radius: 10px; padding: 14px; margin-top: 14px; }
.tool .new code { font-size: 14px; display: inline-block; margin: 6px 0; overflow-wrap: anywhere; }
.tool .msg { color: var(--text-2); font-size: 14px; margin: 10px 0 0; }
.tool .msg.err { color: var(--bad); }
.tool fieldset { border: 0; padding: 0; margin: 12px 0 0; }
.tool legend { font-weight: 700; font-size: 14px; padding: 0; }

@media (max-width: 1239.98px) {
  .layout, body.is-ref .layout { grid-template-columns: 252px minmax(0, 1fr); }
  .toc, .toc-none { display: none; }
  .main { padding: 36px 40px 72px; }
  body.is-ref .main { grid-column: 2; }
  .panel { position: static; max-height: none; grid-column: 2; padding: 0 40px 60px; max-width: 840px; width: 100%; margin: -40px auto 0; }
  .panel pre { max-height: none; }
}
@media (max-width: 1099.98px) {
  .menu { display: block; }
  .side { position: fixed; left: 0; top: var(--top-h); bottom: 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform .2s ease; height: auto; }
  body.nav-open .side { transform: none; box-shadow: var(--shadow-menu); }
  .layout, body.is-ref .layout { grid-template-columns: minmax(0, 1fr); }
  body.is-ref .main, .panel { grid-column: 1; }
  .toplinks a:not(.getkey) { display: none; }
  .search-open { min-width: 0; flex: 1; max-width: 320px; }
  .search-open kbd { display: none; }
  .brand { margin-right: 0; }
  .main { padding: 28px 16px 60px; }
  .panel { padding: 0 16px 48px; margin-top: -28px; }
  h1 { font-size: 29px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 0 12px; gap: 10px; }
  .ep { grid-template-columns: auto minmax(0, 1fr); }
  .ept { grid-column: 2; text-align: left; margin-top: -8px; }
}
@media (max-width: 699.98px) {
  .reqline .base { display: none; }
  .reqline .url { font-size: 14px; }
  .brand > span, .brand em { display: none; }
  .search-open { min-width: 0; }
  .toplinks .getkey { padding: 8px 10px; font-size: 13px; }
  .page-tools { flex-wrap: wrap; }
  th, td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
