@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(sg-latin-dffa11ab0f.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(jb-latin-8ab70b9fbc.woff2) format('woff2'); }

/* ---- tokens --------------------------------------------------------------------------------- */
:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-glide: cubic-bezier(.65, 0, .25, 1);
  --bg: #F6F8F7; --surface: #FFFFFF; --surface-2: #EEF2F0; --surface-3: #E4EAE7;
  --ink: #0F1F1A; --ink-2: #2E3E38; --muted: #536159; --line: #DAE2DE; --line-strong: #C3CEC9;
  --accent: #0B7A65; --accent-ink: #08604F; --accent-soft: #E1F1EC; --gold: #8A6318; --gold-bright: #D9A441; --gold-soft: #FBF1DC;
  --warn: #A3401C; --warn-soft: #FCEDE6; --warn-line: #F0C7B6;
  --note-line: #B5DCD1; --tip-line: #EDD49F;
  --night: #0F1F1A; --night-2: #172A23; --night-line: #263A33; --night-muted: #A3B2AC;
  --code-bg: #0F1D18; --code-head: #142620; --code-line: #22362E; --code-ink: #D8E6E0; --code-muted: #9AACA5;
  --focus: #0B7A65; --shadow: 0 1px 2px rgb(15 31 26 / .05), 0 8px 24px -12px rgb(15 31 26 / .14);
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --top-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1411; --surface: #111C18; --surface-2: #16241F; --surface-3: #1D2E28;
    --ink: #E6EEEA; --ink-2: #C5D2CC; --muted: #97A7A0; --line: #22322C; --line-strong: #31453D;
    --accent: #45BFA3; --accent-ink: #6FD3BC; --accent-soft: rgb(69 191 163 / .12); --gold: #E7B95A; --gold-soft: rgb(217 164 65 / .1);
    --warn: #F29A78; --warn-soft: rgb(242 154 120 / .09); --warn-line: rgb(242 154 120 / .3);
    --note-line: rgb(69 191 163 / .3); --tip-line: rgb(217 164 65 / .3);
    --night: #08100E; --night-2: #101C18; --code-bg: #0D1714; --code-head: #111F1A; --code-line: #1E2F28;
    --focus: #E7B95A; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1411; --surface: #111C18; --surface-2: #16241F; --surface-3: #1D2E28;
  --ink: #E6EEEA; --ink-2: #C5D2CC; --muted: #97A7A0; --line: #22322C; --line-strong: #31453D;
  --accent: #45BFA3; --accent-ink: #6FD3BC; --accent-soft: rgb(69 191 163 / .12); --gold: #E7B95A; --gold-soft: rgb(217 164 65 / .1);
  --warn: #F29A78; --warn-soft: rgb(242 154 120 / .09); --warn-line: rgb(242 154 120 / .3);
  --note-line: rgb(69 191 163 / .3); --tip-line: rgb(217 164 65 / .3);
  --night: #08100E; --night-2: #101C18; --code-bg: #0D1714; --code-head: #111F1A; --code-line: #1E2F28;
  --focus: #E7B95A; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* ---- base ----------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: calc(var(--top-h) + 24px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.68 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, pre, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
svg { flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.top, pre, .tabs, .code, .search-btn { --focus: #E7B95A; }
code, kbd { font-family: var(--mono); font-size: .86em; }
kbd { display: inline-grid; place-items: center; min-inline-size: 1.7em; padding: 0 .4em; block-size: 1.7em; border: 1px solid var(--line-strong); border-block-end-width: 2px; border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1; }
html:not(.js) .js-only { display: none !important; }
html:not(.mac) .k-mac, html.mac .k-other { display: none; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; background: var(--gold-bright); color: #0F1F1A; padding: 8px 14px; border-radius: 8px; z-index: 60; font-weight: 600; }
.skip:focus { inset-block-start: 12px; }
::selection { background: rgb(217 164 65 / .32); }

/* ---- header --------------------------------------------------------------------------------- */
.top { position: sticky; inset-block-start: 0; z-index: 30; display: flex; align-items: center; gap: 12px; block-size: var(--top-h); padding-inline: 20px; background: var(--night); color: #E8EEEB; border-block-end: 1px solid var(--night-line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 17.5px; letter-spacing: -.015em; white-space: nowrap; }
.logo:hover { color: inherit; }
.logo em { font-style: normal; font-weight: 500; color: var(--gold-bright); padding-inline-start: 10px; border-inline-start: 1px solid var(--night-line); }
.icon-btn { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--night-muted); cursor: pointer; }
.icon-btn:hover { color: #fff; background: rgb(255 255 255 / .07); }
.icon-btn svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; margin-inline-start: -8px; }
.search-btn { display: flex; align-items: center; gap: 10px; margin-inline-start: 28px; inline-size: min(340px, 30vw); block-size: 38px; padding-inline: 12px 8px; border: 1px solid var(--night-line); border-radius: 10px; background: var(--night-2); color: var(--night-muted); cursor: pointer; font-size: 14.5px; transition: border-color .15s, background .15s; }
.search-btn:hover { border-color: #3B554B; color: #DDE6E2; }
.search-btn svg { inline-size: 17px; block-size: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.search-btn-text { flex: 1; text-align: start; }
.search-btn-keys { display: inline-flex; gap: 3px; }
.search-btn kbd { background: #0F1F1A; border-color: #33493F; color: var(--night-muted); }
.top-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; font-size: 15px; }
.top-links a { color: var(--night-muted); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.top-links a:hover { color: #fff; }
.theme-btn .ti { display: none; }
:root:not([data-theme]) .ti-system, :root[data-theme="light"] .ti-light, :root[data-theme="dark"] .ti-dark { display: block; }
.top-cta { background: var(--gold-bright); color: #0F1F1A; padding: 8px 14px; border-radius: 9px; font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; }
.top-cta:hover { color: #0F1F1A; background: #E6B552; }

/* ---- layout --------------------------------------------------------------------------------- */
.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr) 224px; gap: 0 56px; max-inline-size: 1480px; margin-inline: auto; padding-inline-end: 32px; align-items: start; }
.layout.no-toc { grid-template-columns: 272px minmax(0, 1fr); }
.side { position: sticky; inset-block-start: var(--top-h); max-block-size: calc(100vh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain; border-inline-end: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.side-inner { padding: 22px 16px 40px 20px; }
.side-head { display: none; }
.nav-group { margin-block-end: 6px; }
.nav-group summary { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 7px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); user-select: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { color: var(--ink); }
.chev { inline-size: 12px; block-size: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .15s; }
.nav-group[open] > summary .chev { transform: rotate(90deg); }
.nav-group ul { list-style: none; padding: 2px 0 8px; display: grid; gap: 1px; }
.nav-group a { display: block; padding: 6px 10px 6px 26px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 450; position: relative; }
.nav-group a:hover { color: var(--ink); background: var(--surface-2); }
.nav-group a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.nav-group a[aria-current]::before { content: ''; position: absolute; inset-block: 7px; inset-inline-start: 11px; inline-size: 3px; border-radius: 2px; background: var(--gold-bright); }
.side a:focus-visible, .side summary:focus-visible { outline-offset: -2px; }
.side-cta { display: none; }

.content { padding-block: 36px 88px; padding-inline-start: 0; inline-size: 100%; max-inline-size: 780px; min-inline-size: 0; }
.content:focus { outline: none; }
.no-toc .content { max-inline-size: 1040px; }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 14px; min-block-size: 24px; }
.content .crumbs ol { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: ''; display: inline-block; inline-size: 6px; block-size: 6px; margin-inline: 4px 8px; border-inline-end: 1.5px solid var(--line-strong); border-block-start: 1.5px solid var(--line-strong); transform: translateY(-2px) rotate(45deg); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 550; }
.jump-nav { display: none; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---- typography ----------------------------------------------------------------------------- */
.content h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; margin-block-end: 16px; text-wrap: balance; }
.content h2 { font-size: 26px; line-height: 1.25; font-weight: 680; letter-spacing: -.022em; margin-block: 60px 14px; text-wrap: balance; }
.content h3 { font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; margin-block: 36px 10px; }
.content p { margin-block: 14px; }
.content .lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-inline-size: 66ch; }
.content ul, .content ol { padding-inline-start: 22px; margin-block: 14px; display: grid; gap: 8px; }
.content li::marker { color: var(--muted); }
.content strong { font-weight: 650; }
.content :not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; color: var(--ink); }
.content a:not([class]) code { color: inherit; }
a.anchor { color: inherit; text-decoration: none; }
a.anchor::after { content: '#'; display: inline-block; margin-inline-start: .35em; color: var(--accent); opacity: 0; font-weight: 500; transition: opacity .12s; }
h2:hover a.anchor::after, h3:hover a.anchor::after, a.anchor:focus-visible::after { opacity: 1; }
a.anchor:hover { color: inherit; }

/* ---- callouts ------------------------------------------------------------------------------- */
.callout { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; margin-block: 22px; padding: 14px 18px 14px 16px; border: 1px solid var(--note-line); border-radius: 12px; background: var(--accent-soft); }
.callout svg { inline-size: 20px; block-size: 20px; margin-block-start: 3px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.callout p { margin: 0; }
.callout .callout-title { font-weight: 650; font-size: 14.5px; letter-spacing: .01em; color: var(--accent-ink); margin-block-end: 2px; }
.callout-tip { background: var(--gold-soft); border-color: var(--tip-line); }
.callout-tip svg { stroke: var(--gold); }
.callout-tip .callout-title { color: var(--gold); }
.callout-warning { background: var(--warn-soft); border-color: var(--warn-line); }
.callout-warning svg { stroke: var(--warn); }
.callout-warning .callout-title { color: var(--warn); }

/* ---- code ----------------------------------------------------------------------------------- */
.code, .tabs { margin-block: 20px; border: 1px solid var(--code-line); border-radius: 12px; background: var(--code-bg); overflow: hidden; box-shadow: var(--shadow); }
.code-head, .tab-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-block-size: 42px; padding-inline: 14px 6px; background: var(--code-head); border-block-end: 1px solid var(--code-line); }
.code figcaption { font-size: 13px; font-weight: 550; color: var(--code-muted); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
pre { color: var(--code-ink); padding: 16px 18px 18px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); tab-size: 4; scrollbar-width: thin; scrollbar-color: #33493F transparent; }
pre code { font: inherit; font-variant-ligatures: none; }
pre:focus-visible { outline-offset: -3px; }
.copy { display: inline-flex; align-items: center; gap: 6px; block-size: 30px; padding-inline: 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--code-muted); font-size: 13px; font-weight: 550; cursor: pointer; flex: none; }
.copy:hover { color: #fff; background: rgb(255 255 255 / .06); border-color: var(--code-line); }
.copy svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy.copied { color: #7ED6C1; }
.t-p { color: #86D9C4; } .t-s { color: #EAC57E; } .t-n { color: #F3AE8A; } .t-b { color: #CBB0F2; } .t-c { color: #8A9D96; font-style: italic; } .t-k { color: #A9C8FF; } .t-v { color: #F0D58C; } .t-f { color: #86D9C4; }

/* tabs: radio fallback without JavaScript, ARIA tabs with it */
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tab-row { padding-inline: 6px; }
.tab-labels { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-inline-size: 0; }
.tab-labels label, .tab { position: relative; flex: none; padding: 10px 11px; border: 0; background: none; cursor: pointer; font-size: 13.5px; font-weight: 550; color: var(--code-muted); user-select: none; white-space: nowrap; }
.tab-labels label:hover, .tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"]::after, .tab-labels label.on::after { content: ''; position: absolute; inset-inline: 9px; inset-block-end: -1px; block-size: 2px; border-radius: 2px; background: var(--gold-bright); }
.tab:focus-visible { outline-offset: -4px; }
.tabs pre { display: none; }
.tabs.is-ready pre { display: block; }
.tabs.is-ready pre[hidden] { display: none; }
.tab-0:checked ~ .tab-panel-0, .tab-1:checked ~ .tab-panel-1, .tab-2:checked ~ .tab-panel-2, .tab-3:checked ~ .tab-panel-3, .tab-4:checked ~ .tab-panel-4, .tab-5:checked ~ .tab-panel-5, .tab-6:checked ~ .tab-panel-6, .tab-7:checked ~ .tab-panel-7, .tab-9:checked ~ .tab-panel-9, .tab-8:checked ~ .tab-panel-8 { display: block; }
.tab-0:checked ~ .tab-row .tab-label-0, .tab-1:checked ~ .tab-row .tab-label-1, .tab-2:checked ~ .tab-row .tab-label-2, .tab-3:checked ~ .tab-row .tab-label-3, .tab-4:checked ~ .tab-row .tab-label-4, .tab-5:checked ~ .tab-row .tab-label-5, .tab-6:checked ~ .tab-row .tab-label-6, .tab-7:checked ~ .tab-row .tab-label-7, .tab-9:checked ~ .tab-row .tab-label-9, .tab-8:checked ~ .tab-row .tab-label-8 { color: #fff; box-shadow: inset 0 -2px var(--gold-bright); }
.tab-0:focus-visible ~ .tab-row .tab-label-0, .tab-1:focus-visible ~ .tab-row .tab-label-1, .tab-2:focus-visible ~ .tab-row .tab-label-2, .tab-3:focus-visible ~ .tab-row .tab-label-3, .tab-4:focus-visible ~ .tab-row .tab-label-4, .tab-5:focus-visible ~ .tab-row .tab-label-5, .tab-6:focus-visible ~ .tab-row .tab-label-6, .tab-7:focus-visible ~ .tab-row .tab-label-7, .tab-9:focus-visible ~ .tab-row .tab-label-9, .tab-8:focus-visible ~ .tab-row .tab-label-8 { outline: 2px solid var(--gold-bright); outline-offset: -4px; }
/* The saved language is known before the first paint: show it at once instead of switching later. */
.js[data-lang="curl"] .tabs:not(.is-ready)[data-langs~="curl"] > pre, .js[data-lang="python"] .tabs:not(.is-ready)[data-langs~="python"] > pre, .js[data-lang="node"] .tabs:not(.is-ready)[data-langs~="node"] > pre, .js[data-lang="php"] .tabs:not(.is-ready)[data-langs~="php"] > pre, .js[data-lang="go"] .tabs:not(.is-ready)[data-langs~="go"] > pre, .js[data-lang="ruby"] .tabs:not(.is-ready)[data-langs~="ruby"] > pre, .js[data-lang="java"] .tabs:not(.is-ready)[data-langs~="java"] > pre, .js[data-lang="csharp"] .tabs:not(.is-ready)[data-langs~="csharp"] > pre, .js[data-lang="pysdk"] .tabs:not(.is-ready)[data-langs~="pysdk"] > pre, .js[data-lang="nodesdk"] .tabs:not(.is-ready)[data-langs~="nodesdk"] > pre { display: none; }
.js[data-lang="curl"] .tabs:not(.is-ready)[data-langs~="curl"] > pre[data-lang="curl"], .js[data-lang="python"] .tabs:not(.is-ready)[data-langs~="python"] > pre[data-lang="python"], .js[data-lang="node"] .tabs:not(.is-ready)[data-langs~="node"] > pre[data-lang="node"], .js[data-lang="php"] .tabs:not(.is-ready)[data-langs~="php"] > pre[data-lang="php"], .js[data-lang="go"] .tabs:not(.is-ready)[data-langs~="go"] > pre[data-lang="go"], .js[data-lang="ruby"] .tabs:not(.is-ready)[data-langs~="ruby"] > pre[data-lang="ruby"], .js[data-lang="java"] .tabs:not(.is-ready)[data-langs~="java"] > pre[data-lang="java"], .js[data-lang="csharp"] .tabs:not(.is-ready)[data-langs~="csharp"] > pre[data-lang="csharp"], .js[data-lang="pysdk"] .tabs:not(.is-ready)[data-langs~="pysdk"] > pre[data-lang="pysdk"], .js[data-lang="nodesdk"] .tabs:not(.is-ready)[data-langs~="nodesdk"] > pre[data-lang="nodesdk"] { display: block; }
.tab-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 8px 10px 8px 14px; border-block-start: 1px solid var(--code-line); background: var(--code-head); font-size: 13px; }
.endpoint { display: inline-flex; align-items: center; gap: 8px; color: var(--code-muted); min-inline-size: 0; }
.content .endpoint code { font-size: 12.5px; color: var(--code-ink); background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.method { font: 700 11px/1 var(--mono); letter-spacing: .04em; padding: 4px 6px; border-radius: 5px; background: rgb(126 214 193 / .14); color: #86D9C4; }
.method-get { background: rgb(169 200 255 / .14); color: #A9C8FF; }
.method-delete { background: rgb(243 174 138 / .14); color: #F3AE8A; }
.play { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; border: 1px solid rgb(217 164 65 / .35); color: #EAC57E; text-decoration: none; font-weight: 600; white-space: nowrap; }
.play:hover { color: #0F1F1A; background: var(--gold-bright); border-color: var(--gold-bright); }
.play svg { inline-size: 13px; block-size: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- tables --------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; scrollbar-width: thin; margin-block: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; inline-size: 100%; font-size: 15px; line-height: 1.55; }
th { text-align: start; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 11px 16px; background: var(--surface-2); border-block-end: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-block-end: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-block-end: 0; }
tbody:not(:last-of-type) tr:last-child td { border-block-end: 1px solid var(--line); }
/* Only the code chip of the first column stays on one line; prose and the second column wrap, so a table fits its column. */
td:first-child > code:first-child { white-space: nowrap; }
td:not(:first-child) code { overflow-wrap: anywhere; }
@media (max-width: 640px) { td:first-child > code:first-child { white-space: normal; overflow-wrap: anywhere; } }
tr[id]:target td { background: var(--gold-soft); }
.group-row th { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); background: var(--surface-2); border-block-start: 1px solid var(--line); padding-block: 9px; }
tbody:first-of-type .group-row th { border-block-start: 0; }
.ref-table td:first-child a { text-decoration: none; }
.ref-table td:first-child a code { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--note-line); }
.ref-table td:nth-child(2), .ref-table td:nth-child(3) { white-space: nowrap; color: var(--muted); font-size: 14px; }
.ref-table td:nth-child(3) { white-space: normal; inline-size: 170px; }
.ref-table td:nth-child(3) code { overflow-wrap: anywhere; }
/* The description gets the room it needs to read as sentences; a dotted name breaks only after a dot (<wbr>). */
.ref-table th:nth-child(4), .ref-table td:nth-child(4) { inline-size: 42%; }
.badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--tip-line); }
.http { display: inline-block; font: 650 12.5px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.http-4 { background: var(--gold-soft); color: var(--gold); }
.http-5 { background: var(--warn-soft); color: var(--warn); }

.filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; margin-block: 24px 0; }
.filter label { grid-column: 1 / -1; font-weight: 600; font-size: 14.5px; }
.filter-field { position: relative; }
.filter-field svg { position: absolute; inset-inline-start: 13px; inset-block-start: 50%; translate: 0 -50%; inline-size: 17px; block-size: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.filter input { inline-size: 100%; block-size: 44px; padding-inline: 40px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.filter input::placeholder { color: var(--muted); }
.filter input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.filter-count { margin: 0 !important; font-size: 14px; color: var(--muted); white-space: nowrap; }
.filter-empty { padding: 20px 16px; color: var(--muted); text-align: center; }
.linklike { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- pager, toc, footer --------------------------------------------------------------------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 72px; padding-block-start: 28px; border-block-start: 1px solid var(--line); }
.pager a { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--ink); font-weight: 650; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.pager a:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.pager span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.pager-prev span::before { content: '← '; }
.pager-next span::after { content: ' →'; }
.pager-next { text-align: end; }

.toc-wrap { position: sticky; inset-block-start: var(--top-h); max-block-size: calc(100vh - var(--top-h)); overflow-y: auto; padding-block: 40px; scrollbar-width: thin; }
.toc { font-size: 14px; }
.toc-title { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-block-end: 10px; }
.toc ul { list-style: none; padding: 0; border-inline-start: 1px solid var(--line); }
.toc li a { display: block; padding: 4px 0 4px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.45; }
.toc .toc-l3 a { padding-inline-start: 26px; font-size: 13.5px; }
.toc li a:hover { color: var(--ink); }
.toc li a[aria-current] { color: var(--accent-ink); border-inline-start-color: var(--gold-bright); }
.toc a:focus-visible { outline-offset: -2px; }
.toc-top { display: inline-block; margin-block-start: 16px; font-size: 13px; color: var(--muted); text-decoration: none; }
.toc-top::before { content: '↑ '; }

.foot { border-block-start: 1px solid var(--line); padding: 24px 32px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.foot code { overflow-wrap: anywhere; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-keys { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; }

/* ---- home ----------------------------------------------------------------------------------- */
.hero { padding-block: 24px 8px; max-inline-size: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px !important; padding: 4px 12px; border: 1px solid var(--tip-line); border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -.045em; margin-block-end: 20px; max-inline-size: 16ch; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; block-size: 46px; padding-inline: 18px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--ink); font-weight: 620; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.btn:hover { color: var(--ink); border-color: var(--accent); box-shadow: var(--shadow); }
.btn-primary { background: var(--gold-bright); border-color: var(--gold-bright); color: #0F1F1A; }
.btn-primary:hover { background: #E6B552; border-color: #E6B552; color: #0F1F1A; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.hero-keys { display: inline-flex; gap: 3px; }
.hero-code { container-type: inline-size; margin-block-start: 40px; }
.hero-code > div { min-inline-size: 0; }
.hero-label { display: flex; align-items: center; gap: 10px; margin: 0 0 -6px !important; font-weight: 650; font-size: 15px; }
.step { display: inline-grid; place-items: center; inline-size: 24px; block-size: 24px; border-radius: 50%; background: var(--night); color: var(--gold-bright); font-size: 13px; font-weight: 700; }
@container (min-width: 880px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-block: 20px; }
.card { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { color: var(--ink); border-color: var(--accent); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card-title { font-weight: 670; font-size: 16.5px; letter-spacing: -.01em; }
.card-title::after { content: ' →'; color: var(--accent); }
.card-text { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---- search dialog -------------------------------------------------------------------------- */
.search { inline-size: min(680px, calc(100% - 32px)); max-block-size: min(620px, calc(100dvh - 120px)); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px -12px rgb(0 0 0 / .45); overflow: hidden; flex-direction: column; }
.search[open] { display: flex; }
.search::backdrop { background: rgb(6 14 11 / .58); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-block-end: 1px solid var(--line); }
.search-box svg { inline-size: 20px; block-size: 20px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-box input { flex: 1; min-inline-size: 0; block-size: 60px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--muted); }
.search-close { flex: none; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); color: var(--muted); font: 600 12px var(--mono); cursor: pointer; }
.search-close:hover { color: var(--ink); }
#search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
#search-results:empty { display: none; }
.search-group { padding: 8px 10px 6px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#search-results .sr-link { display: flex; cursor: pointer; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
#search-results [aria-selected="true"] .sr-link { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.sr-kind { flex: none; inline-size: 74px; margin-block-start: 2px; padding: 2px 0; border-radius: 6px; text-align: center; font-size: 11px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.sr-k2 { background: var(--accent-soft); color: var(--accent-ink); }
.sr-k3 { background: var(--warn-soft); color: var(--warn); }
.sr-k0 { background: var(--gold-soft); color: var(--gold); }
.sr-main { display: grid; gap: 1px; min-inline-size: 0; }
.sr-title { font-weight: 620; overflow-wrap: anywhere; }
.sr-crumb { font-size: 13px; color: var(--muted); }
.sr-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#search-results mark { background: rgb(217 164 65 / .3); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-status { margin: 0; padding: 0 20px; font-size: 14px; color: var(--muted); }
.search-status:not(:empty) { padding-block: 14px; }
.search-foot { display: flex; gap: 18px; padding: 10px 18px; border-block-start: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.search-foot span { display: inline-flex; align-items: center; gap: 4px; }
html.search-open { overflow: hidden; }

/* ---- toast, scrim --------------------------------------------------------------------------- */
.toast { position: fixed; inset-block-end: 24px; inset-inline-start: 50%; z-index: 70; translate: -50% 12px; padding: 10px 16px; border-radius: 10px; background: var(--night); color: #E8EEEB; font-size: 14.5px; font-weight: 550; box-shadow: 0 12px 32px -8px rgb(0 0 0 / .4); opacity: 0; pointer-events: none; transition: opacity .18s, translate .18s; }
.toast { visibility: hidden; transition: opacity .2s var(--ease-out), translate .2s var(--ease-out), visibility 0s .2s; }
.toast.show { opacity: 1; translate: -50% 0; visibility: visible; transition: opacity .2s var(--ease-out), translate .2s var(--ease-out); }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(6 14 11 / .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.scrim.show { opacity: 1; visibility: visible; transition: opacity .2s; }
html.drawer-open { overflow: hidden; }

/* ---- responsive ----------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 256px minmax(0, 1fr); gap: 0 44px; }
  .toc-wrap { display: none; }
}
@media (max-width: 1024px) {
  .layout, .layout.no-toc { grid-template-columns: minmax(0, 1fr); padding-inline: 24px; }
  .content { margin-inline: auto; }
  .top-links { display: none; }
  .search-btn { margin-inline-start: auto; }
  .top-cta { margin-inline-start: 4px; }
  /* Without JavaScript: the navigation follows the content. */
  html:not(.js) .side { position: static; order: 2; max-block-size: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-block-end: 48px; scroll-margin-block-start: 80px; }
  html:not(.js) .jump-nav { display: inline; }
  /* With JavaScript: a drawer. */
  .js .menu-btn { display: inline-grid; }
  .js .side { position: fixed; z-index: 50; inset-block: 0; inset-inline-start: 0; inline-size: min(340px, 88vw); max-block-size: none; block-size: 100dvh; background: var(--bg); border-inline-end: 1px solid var(--line); box-shadow: 0 0 48px rgb(0 0 0 / .3); transform: translateX(-102%); visibility: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s .25s; }
  .js .side.open { transform: none; visibility: visible; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .js .side-head { display: flex; align-items: center; justify-content: space-between; position: sticky; inset-block-start: 0; z-index: 1; block-size: var(--top-h); padding-inline: 20px 10px; background: var(--night); color: #E8EEEB; }
  .side-cta { display: block; margin: 18px 8px 0; text-align: center; padding: 11px; border-radius: 10px; background: var(--gold-bright); color: #0F1F1A; font-weight: 650; text-decoration: none; }
  .side-cta:hover { color: #0F1F1A; }
}
@media (max-width: 720px) {
  .top { padding-inline: 12px 16px; gap: 6px; }
  .search-btn { inline-size: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-btn svg { inline-size: 20px; block-size: 20px; }
  .search-btn-text, .search-btn-keys { display: none; }
  .layout, .layout.no-toc { padding-inline: 16px; }
  .content { padding-block: 22px 56px; }
  .content h2 { font-size: 23px; margin-block-start: 48px; }
  table { min-inline-size: 560px; }
  .ref-table table { min-inline-size: 720px; }
  .foot { padding-inline: 16px; }
  .foot-keys { display: none !important; }
  pre { font-size: 13px; padding-inline: 14px; }
  .search { margin-block-start: 8px; inline-size: calc(100% - 16px); max-block-size: calc(100dvh - 16px); }
  .search-foot { display: none; }
  .hero-keys { display: none; }
  .sr-kind { inline-size: auto; padding-inline: 6px; }
  #search-results .sr-link { flex-direction: column; gap: 4px; }
}
@media (max-width: 560px) {
  .top-cta { display: none; }
  .logo span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side-head .logo span { position: static; inline-size: auto; block-size: auto; clip-path: none; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager > span:empty { display: none; }
  .content h1 { overflow-wrap: anywhere; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .copy-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .play { padding-inline: 8px; }
  .tab-labels label, .tab { padding-inline: 9px; }
  .filter { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .side, .toc-wrap, .pager, .copy, .play, .foot-keys { display: none !important; }
  .layout { display: block; }
}

/* Small screens: every table row becomes a card, the description gets the full width. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .table-wrap table, .ref-table table, table { min-inline-size: 0; }
  .table-wrap thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; inline-size: auto; }
  .table-wrap tr { margin-block-end: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .table-wrap td { padding: 2px 0; border: 0; white-space: normal !important; }
  .table-wrap td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-block-start: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .table-wrap td:first-child::before { display: none !important; }
  .table-wrap td:first-child { font-weight: 650; }
  .ref-table td:nth-child(3) { inline-size: auto; }
}
.hero-key { display: flex; gap: 10px; align-items: baseline; margin-block-end: 14px; }
@media (max-width: 640px) {
  .table-wrap .group-row, .table-wrap .group-row th { display: block; padding: 14px 2px 6px; border: 0; background: none; font-size: 14px; }
  .table-wrap tr.group-row { margin: 0; padding: 0; border: 0; background: none; }
}
@media (max-width: 640px) { .table-wrap td, .table-wrap tbody tr td { border: 0 !important; box-shadow: none !important; } }

/* Round 27 SEO: links from a docs page to the matching feature, use-case or pricing page on the website. */
.see-site { margin-block-start: 40px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.see-site-title { margin: 0 0 6px; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--muted); }
.see-site ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.see-site li { margin: 0; }
.see-site a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 600; }

/* Round 27 Responsive: wide pages without a table of contents keep running text at a readable length;
   in the stacked table cards long inline code (JSON fields) wraps instead of running off the screen. */
.no-toc .content > p { max-inline-size: 75ch; }
@media (max-width: 640px) {
  .table-wrap td code, .table-wrap td:nth-child(-n+2) code { white-space: normal; overflow-wrap: anywhere; }
}

/* Round 40: alignment and touch areas found by the layout audit (phone, tablet, laptop, desktop). */
/* A path that wraps onto two lines: the method stays on its first line, not in the middle. */
.endpoint { align-items: baseline; }
/* Touch screens up to tablets: every link and button gets a touch area of at least 40 px, and the
   extra room is taken back with a negative margin, so nothing in the line moves. */
@media (max-width: 1024px), (pointer: coarse) {
  .copy { min-block-size: 40px; min-inline-size: 40px; justify-content: center; }
  .top .logo { min-block-size: 44px; }
  .foot-links { align-items: center; }
  .foot-links a { display: inline-flex; align-items: center; min-block-size: 40px; margin-block: -8px; }
  .content .crumbs a { display: inline-flex; align-items: center; min-block-size: 40px; min-inline-size: 40px; margin-block: -11px; }
  h2 > a.anchor, h3 > a.anchor { display: inline-block; padding-block: 6px; margin-block: -6px; }
  td > a:only-child { display: inline-block; padding-block: 10px; margin-block: -10px; }
}

/* ===== Round 42: motion and small tools. The dashboard's vocabulary: short, quiet, with a purpose.
   Only transform and opacity move; nothing changes the layout; reduced motion keeps it all still. ===== */
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pal-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes spot { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* Hover and focus: colour, background and border change softly everywhere; nothing moves or reflows. */
.nav-group a, .nav-group summary, .toc li a, .toc-top, .crumbs a, .top-links a, .icon-btn, .tab, .tab-labels label, .copy, .search-close,
.foot a, .foot-help, .see-site a, .linklike, .code-more, #search-results .sr-link, .top-cta, .side-cta, .logo {
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), opacity .2s var(--ease-out);
}
.pager a, .card, .btn, .search-btn, .play { transition: color .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out); }
.chev { transition: transform .2s var(--ease-out); }
.pager span::before, .pager span::after { display: inline-block; transition: transform .2s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .pager-prev:hover span::before { transform: translateX(-3px); }
  .pager-next:hover span::after { transform: translateX(3px); }
}
/* Rows of the reference tables: a thin accent on the row under the pointer helps to read across. */
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  .table-wrap tbody tr:not(.group-row):hover td:first-child { box-shadow: inset 2px 0 var(--accent); }
}

/* A short sweep of light over the gold buttons on hover. */
.top-cta, .btn-primary { position: relative; overflow: hidden; }
.top-cta::after, .btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .3) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.top-cta:hover::after, .btn-primary:hover::after { animation: sheen .9s var(--ease-glide); }

/* Code tabs: the line under the active tab glides; the new code settles in. */
.tab-labels { position: relative; }
.tab-ink { position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 1px; block-size: 2px; background: var(--gold-bright); transform-origin: 0 0; transform: scaleX(0); pointer-events: none; }
.tab-ink.is-ready { transition: transform .32s var(--ease-glide); }
.has-ink .tab[aria-selected="true"]::after { content: none; }
.tab-panel.is-in { animation: rise .28s var(--ease-out) both; }
/* Before the script runs, the remembered language is underlined already (not the first tab first). */
.js[data-lang="curl"] .tabs:not(.is-ready)[data-langs~="curl"] .tab-labels label, .js[data-lang="python"] .tabs:not(.is-ready)[data-langs~="python"] .tab-labels label, .js[data-lang="node"] .tabs:not(.is-ready)[data-langs~="node"] .tab-labels label, .js[data-lang="php"] .tabs:not(.is-ready)[data-langs~="php"] .tab-labels label, .js[data-lang="go"] .tabs:not(.is-ready)[data-langs~="go"] .tab-labels label { box-shadow: none; color: var(--code-muted); }
.js[data-lang="curl"] .tabs:not(.is-ready)[data-langs~="curl"] .tab-labels label[data-lang="curl"], .js[data-lang="python"] .tabs:not(.is-ready)[data-langs~="python"] .tab-labels label[data-lang="python"], .js[data-lang="node"] .tabs:not(.is-ready)[data-langs~="node"] .tab-labels label[data-lang="node"], .js[data-lang="php"] .tabs:not(.is-ready)[data-langs~="php"] .tab-labels label[data-lang="php"], .js[data-lang="go"] .tabs:not(.is-ready)[data-langs~="go"] .tab-labels label[data-lang="go"] { box-shadow: inset 0 -2px var(--gold-bright); color: #fff; }

/* Copy: both words share one grid cell, so the button keeps its width; the tick pops in. */
.copy-label { display: grid; }
.copy-label > span { grid-area: 1 / 1; transition: opacity .2s var(--ease-out); }
.copy-label > span + span, .copy.copied .copy-label > span:first-child { opacity: 0; }
.copy.copied .copy-label > span + span { opacity: 1; }
.copy .i-done { display: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy.copied .i-copy { display: none; }
.copy.copied .i-done { display: block; animation: pop-in .3s var(--ease-out) both; }
/* Small copy buttons next to one value: an endpoint, an error code, a parameter name. */
.copyable { display: inline-flex; align-items: center; gap: 4px; }
.copy-mini { inline-size: 28px; block-size: 28px; padding: 0; justify-content: center; margin-block: -4px; }
.copy-mini svg { inline-size: 14px; block-size: 14px; }
.endpoint .copy-mini { align-self: center; }
.table-wrap .copy-mini { color: var(--muted); }
.table-wrap .copy-mini:hover { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.table-wrap .copy-mini.copied { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .table-wrap .copy-mini { opacity: 0; }
  .table-wrap tr:hover .copy-mini, .table-wrap .copy-mini:focus-visible, .table-wrap .copy-mini.copied { opacity: 1; }
}
@media (max-width: 1024px), (pointer: coarse) {
  .copy-mini { margin-block: -10px; }
  .copyable > a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .foot-help { min-block-size: 40px; margin-block: -8px; }
}

/* Long example responses start folded (only with JavaScript; the button is part of the page). */
.js .code-long:not(.is-open) pre { max-block-size: calc(14 * 1.7em + 16px); overflow-y: hidden; -webkit-mask-image: linear-gradient(#000 64%, transparent); mask-image: linear-gradient(#000 64%, transparent); }
.code-more { display: flex; align-items: center; justify-content: center; gap: 6px; inline-size: 100%; min-block-size: 40px; padding: 0 12px; border: 0; border-block-start: 1px solid var(--code-line); background: var(--code-head); color: var(--code-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.code-more:hover { color: #fff; }
.code-more:focus-visible { outline-offset: -3px; border-radius: 0 0 11px 11px; }
.code-more svg { inline-size: 12px; block-size: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.code-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* On this page: the marker glides to the section in view. */
.toc ul { position: relative; }
.toc-ink { position: absolute; inset-block-start: 0; inset-inline-start: -1px; inline-size: 2px; block-size: 1px; background: var(--gold-bright); transform-origin: 0 0; transform: scaleY(0); pointer-events: none; }
.toc-ink.is-ready { transition: transform .38s var(--ease-glide); }
.toc.has-ink li a[aria-current] { border-inline-start-color: transparent; }

/* Reading progress: a thin line under the header. */
.read-bar { position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 2px; background: var(--gold-bright); opacity: .9; transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* A jump to a section lights the heading (or table row) up once. */
.content :is(h2, h3).is-flash { position: relative; isolation: isolate; }
.content :is(h2, h3).is-flash::before { content: ''; position: absolute; z-index: -1; inset: -4px -10px; border-radius: 10px; background: var(--gold-soft); box-shadow: inset 3px 0 var(--gold-bright); pointer-events: none; animation: spot 1.8s .15s var(--ease-out) both; }
tr.is-flash td { position: relative; }
tr.is-flash td::after { content: ''; position: absolute; inset: 0; background: rgb(217 164 65 / .2); pointer-events: none; animation: spot 1.8s .15s var(--ease-out) both; }

/* Back to top: appears after some scrolling (on wide screens the table of contents has its own link). */
.to-top { position: fixed; z-index: 35; inset-block-end: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px; display: grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s, border-color .2s var(--ease-out), color .2s var(--ease-out); }
.to-top.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out); }
.to-top:hover { border-color: var(--accent); color: var(--accent-ink); }
.to-top svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1241px) { .to-top.has-toc { display: none; } }
html.drawer-open .to-top, html.search-open .to-top { visibility: hidden; }

/* Dialogs open softly. */
.search[open], .keys-dlg[open] { animation: pal-in .22s var(--ease-out) both; }
.search[open]::backdrop, .keys-dlg[open]::backdrop { animation: fade .2s var(--ease-out) both; }
.keys-dlg { inline-size: min(540px, calc(100% - 32px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px -12px rgb(0 0 0 / .45); }
.keys-dlg::backdrop { background: rgb(6 14 11 / .58); }
.keys-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-block-end: 1px solid var(--line); }
.keys-head h2 { font-size: 17px; line-height: 1.3; font-weight: 680; letter-spacing: -.01em; }
.keys-dlg dl { margin: 0; padding: 6px 20px 14px; }
.keys-dlg dl > div { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 14px; padding-block: 9px; border-block-end: 1px solid var(--line); }
.keys-dlg dl > div:last-child { border-block-end: 0; }
.keys-dlg dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.keys-dlg dt span { padding-inline: 3px; color: var(--muted); font-size: 12.5px; }
.keys-dlg dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.foot-help { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.foot-help:hover { color: var(--ink); }

/* Page changes cross-fade where the browser can (header and menu stay put); the theme switch too. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.top { view-transition-name: vp-top; }
@media (min-width: 1025px) { .side { view-transition-name: vp-side; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease-out); }
::view-transition-group(vp-top), ::view-transition-group(vp-side) { animation-duration: .22s; }
:root.theme-fade::view-transition-old(root), :root.theme-fade::view-transition-new(root) { animation-duration: .3s; }

@media print {
  .to-top, .read-bar, .code-more, .copy-mini { display: none !important; }
  .js .code-long:not(.is-open) pre { max-block-size: none; -webkit-mask-image: none; mask-image: none; }
}

/* ===== Round 43: tools that help (request builder, cost calculator, field hints, page list in the
   breadcrumb) and the last rough edges. Same rules: only transform and opacity move, nothing shifts. ===== */
:root { --get: #2F5FB3; --get-soft: rgb(47 95 179 / .1); --shade: rgb(15 31 26 / .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --get: #A9C8FF; --get-soft: rgb(169 200 255 / .12); --shade: rgb(0 0 0 / .45); } }
:root[data-theme="dark"] { --get: #A9C8FF; --get-soft: rgb(169 200 255 / .12); --shade: rgb(0 0 0 / .45); }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes tip-in-below { from { opacity: 0; transform: translateY(-4px); } }
@keyframes upd { from { opacity: .45; } }
@keyframes life { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Home: the key step no longer touches the step below it. */
.hero-code .hero-label.hero-key { margin-block-end: 18px !important; }

/* Figures in tables: right-aligned and on one line. */
th.num, td.num { text-align: end; white-space: nowrap; }
/* Column heads may take two lines, so a table with many figures fits its column instead of scrolling. */
thead th, thead th.num { white-space: normal; text-wrap: balance; }
/* Inline code in a cell breaks between words first, inside a word only when it must. */
.content td code { overflow-wrap: break-word; }
.content td:not(:first-child) code { overflow-wrap: anywhere; }
/* A table wider than its box shows a soft shade at the edge that can still scroll (no script, no movement). */
.table-wrap {
  background:
    linear-gradient(90deg, var(--surface) 40%, transparent) 0 0 / 28px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 40%, transparent) 100% 0 / 28px 100% no-repeat local,
    linear-gradient(90deg, var(--shade), transparent) 0 0 / 12px 100% no-repeat scroll,
    linear-gradient(270deg, var(--shade), transparent) 100% 0 / 12px 100% no-repeat scroll,
    var(--surface);
}

/* Endpoint headings carry the same method badge as the code; the colours mean the same in light and dark. */
.content :is(h2, h3) .method { display: inline-block; vertical-align: .2em; margin-inline-end: 2px; font-size: 12px; padding: 4px 7px; background: var(--accent-soft); color: var(--accent-ink); }
.content :is(h2, h3) .method-get { background: var(--get-soft); color: var(--get); }
.content :is(h2, h3) .method-delete { background: var(--warn-soft); color: var(--warn); }

/* Errors: what to do, as a small badge in its own column. */
.retry { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 650; line-height: 1.6; white-space: nowrap; }
.retry-wait { background: var(--gold-soft); border-color: var(--tip-line); color: var(--gold); }
.retry-yes { background: var(--accent-soft); border-color: var(--note-line); color: var(--accent-ink); }
.retry-hint { display: block; margin-block-start: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.err-table td:last-child { inline-size: 1%; }

/* Parameter rows: copy the name, copy it as JSON, link to the row. */
.row-tools { display: inline-flex; align-items: center; gap: 2px; }
.copy-json { font: 600 11px/1 var(--mono); letter-spacing: -.02em; }
.row-link { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; margin-block: -4px; border-radius: 7px; color: var(--muted); transition: color .2s var(--ease-out), background-color .2s var(--ease-out), opacity .2s var(--ease-out); }
.row-link:hover { color: var(--ink); background: var(--surface-2); }
.row-link svg { inline-size: 14px; block-size: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) {
  .table-wrap .row-link { opacity: 0; }
  .table-wrap tr:hover .row-link, .table-wrap .row-link:focus-visible, .table-wrap tr:target .row-link { opacity: 1; }
}
@media (max-width: 1024px), (pointer: coarse) {
  .row-link { min-inline-size: 40px; min-block-size: 40px; margin-block: -10px; }
}

/* Hints on the fields of example responses. */
pre [data-tip] { cursor: help; text-decoration: underline dotted rgb(134 217 196 / .45); text-decoration-thickness: 1px; text-underline-offset: 4px; }
pre [data-tip]:hover { text-decoration-color: currentColor; }
.field-tip { position: fixed; z-index: 80; display: grid; gap: 3px; max-inline-size: min(320px, calc(100vw - 16px)); padding: 9px 12px; border: 1px solid var(--night-line); border-radius: 10px; background: var(--night); color: #E8EEEB; box-shadow: 0 10px 28px rgb(0 0 0 / .32); font-size: 13px; line-height: 1.45; pointer-events: none; }
.field-tip[hidden] { display: none; }
.field-tip code { color: var(--gold-bright); font-size: 12px; overflow-wrap: anywhere; }
.field-tip.is-in { animation: tip-in .14s var(--ease-out) both; }
.field-tip.is-below.is-in { animation-name: tip-in-below; }

/* The group in the breadcrumb opens its page list. */
.crumb-menu { position: relative; }
.crumb-menu summary { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; cursor: pointer; list-style: none; color: var(--muted); transition: color .2s var(--ease-out); }
.crumb-menu summary::-webkit-details-marker { display: none; }
.crumb-menu summary:hover, .crumb-menu[open] summary { color: var(--ink); }
.crumb-menu summary .chev { transform: rotate(90deg); }
.crumb-menu[open] summary .chev { transform: rotate(-90deg); }
.content .crumb-menu ul { position: absolute; z-index: 25; inset-block-start: calc(100% + 8px); inset-inline-start: -10px; display: grid; gap: 1px; inline-size: max-content; min-inline-size: 220px; max-inline-size: min(320px, calc(100vw - 32px)); margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.crumb-menu[open] ul { animation: pal-in .18s var(--ease-out) both; }
.crumbs .crumb-menu li::before { content: none; }
.crumbs .crumb-menu a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.crumbs .crumb-menu a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.crumbs .crumb-menu a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
@media (max-width: 1024px), (pointer: coarse) {
  .crumb-menu summary { min-block-size: 40px; margin-block: -11px; }
  .content .crumbs .crumb-menu a { display: flex; align-items: center; min-block-size: 40px; min-inline-size: 0; margin-block: 0; }
}

/* On this page: the part already read gets a quiet line, its entries a darker tone. */
.toc-fill { position: absolute; inset-block-start: 0; inset-inline-start: -1px; inline-size: 2px; block-size: 1px; background: rgb(217 164 65 / .32); transform-origin: 0 0; transform: scaleY(0); pointer-events: none; }
.toc-fill.is-ready { transition: transform .38s var(--ease-glide); }
.toc li a.is-past { color: var(--ink-2); }

/* Toasts show the time they stay with a thin line, as in the dashboard. */
.toast { overflow: hidden; }
.toast::after { content: ''; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 2px; background: currentColor; opacity: .25; transform-origin: 0 50%; transform: scaleX(0); }
.toast.live::after { animation: life 2s linear both; }

/* Request builder and cost calculator. */
.builder-form, .calc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px 16px; margin-block: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bf-wide { grid-column: 1 / -1; }
.bf-row { display: grid; gap: 6px; align-content: start; min-inline-size: 0; }
.bf-row label, .bf-checks legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.bf-opt { font-weight: 450; color: var(--muted); font-size: 12.5px; }
.bf-row input, .bf-row select { inline-size: 100%; block-size: 42px; padding-inline: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s var(--ease-out), opacity .2s var(--ease-out); }
.bf-row input::placeholder { color: var(--muted); }
.bf-row :is(input, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.bf-row :is(input, select):disabled { opacity: .5; cursor: not-allowed; }
.bf-row [aria-invalid="true"] { border-color: var(--warn); }
.bf-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.bf-checks legend { padding: 0; margin-block-end: 6px; }
.bf-check { display: inline-flex; align-items: center; gap: 8px; min-block-size: 40px; padding-inline: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-size: 14.5px; cursor: pointer; user-select: none; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out), opacity .2s var(--ease-out); }
.bf-check:hover { border-color: var(--line-strong); color: var(--ink); }
.bf-check input { inline-size: 16px; block-size: 16px; margin: 0; accent-color: var(--accent); cursor: inherit; }
.bf-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.bf-check:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.bf-check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bf-check input:focus-visible { outline: none; }
.bf-check code { font-size: .88em; }
.bf-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.content .bf-cost { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); min-block-size: 1.5em; }
.content .bf-cost.is-error { color: var(--warn); }
.bf-reset { flex: none; block-size: 36px; padding-inline: 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s var(--ease-out), color .2s var(--ease-out); }
.bf-reset:hover { border-color: var(--accent); color: var(--ink); }
@media (max-width: 1024px), (pointer: coarse) { .bf-reset { min-block-size: 40px; } }
.builder .tabs { margin-block-start: 12px; }
.tab-panel.is-upd { animation: upd .35s var(--ease-out) both; }
.content .calc-sum { margin: 16px 0 0; font-weight: 600; }
.calc-table td { position: relative; }
.calc-table td.is-tick::after { content: ''; position: absolute; inset: 0; background: var(--accent-soft); pointer-events: none; animation: spot 1.1s var(--ease-out) both; }
.best-badge { visibility: hidden; display: inline-block; margin-inline-start: 6px; padding: 0 8px; border: 1px solid var(--note-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 650; line-height: 1.6; vertical-align: .1em; }
.is-best .best-badge { visibility: visible; animation: fade .25s var(--ease-out) both; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) { .calc-table tbody tr.is-best td:first-child { box-shadow: inset 2px 0 var(--accent); } }
@media (max-width: 640px) {
  .table-wrap td.num { text-align: start; }
  .builder-form, .calc-form { padding: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); gap: 12px; }
  .bf-foot { flex-wrap: wrap; }
}
@media print { .builder-form, .calc, .field-tip { display: none !important; } }
/* A first column of sentences wraps; the breadcrumb's page list stays in the line. */
.prose-first td:first-child { white-space: normal; min-inline-size: 14em; }
.crumb-menu { display: inline-block; }
@media (max-width: 640px) {
  /* A long parameter name keeps to one line; its tools move below it when there is no room beside it. */
  .ref-table .copyable { flex-wrap: wrap; row-gap: 6px; }
  .ref-table td:first-child a code { white-space: nowrap !important; overflow-wrap: normal !important; }
}

/* "Use this page with AI": copy or open the page as Markdown, or hand it to a chat assistant */
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: -4px 22px; }
.page-act { display: inline-flex; align-items: center; gap: 6px; min-block-size: 32px; padding-inline: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; }
.page-act:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.page-act:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.page-act svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.page-act-label { display: grid; }
.page-act-label > span { grid-area: 1 / 1; }
.page-act-label > span + span, .page-act.copied .page-act-label > span:first-child { visibility: hidden; }
.page-act.copied .page-act-label > span + span { visibility: visible; }
.page-act.copied { color: var(--accent-ink); border-color: var(--accent); }
.page-home .page-actions { margin-block: 32px 0; }
@media (prefers-reduced-motion: no-preference) { .page-act { transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out), color .15s var(--ease-out); } }
@media (max-width: 1024px), (pointer: coarse) { .page-act { min-block-size: 40px; } }
/* Phones: the four actions stay on one line that scrolls sideways (instead of two lines before the introduction);
   the edge with more to see fades, where the browser can follow the scroll. */
@media (max-width: 640px) {
  .page-actions:not(.page-home .page-actions) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; padding-block: 2px; }
  .page-actions::-webkit-scrollbar { display: none; }
}
@supports (animation-timeline: scroll()) {
  @media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
    .page-actions:not(.page-home .page-actions) { mask-image: linear-gradient(to right, transparent, #000 var(--pa-s), #000 calc(100% - var(--pa-e)), transparent); animation: pa-fade linear both; animation-timeline: scroll(self inline); }
    [dir='rtl'] .page-actions:not(.page-home .page-actions) { mask-image: linear-gradient(to left, transparent, #000 var(--pa-s), #000 calc(100% - var(--pa-e)), transparent); }
  }
}
@property --pa-s { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --pa-e { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes pa-fade { 0% { --pa-s: 0px; --pa-e: 28px; } 8% { --pa-s: 28px; } 92% { --pa-e: 28px; } 100% { --pa-s: 28px; --pa-e: 0px; } }

/* Round 46: field tables line up. Name and type columns have the same width on every page (wider names still widen them);
   on small screens the type sits beside the name instead of taking two lines of its own. */
.is-fields th:first-child { inline-size: 13rem; }
.is-fields.has-type th:nth-child(2), .is-fields.has-mid th:nth-child(2) { inline-size: 9.5rem; }
.is-fields.has-type td:nth-child(2) { white-space: nowrap; color: var(--muted); }
@media (max-width: 640px) {
  .is-fields.has-type tr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
  .is-fields.has-type td:nth-child(2) { font-size: 13.5px; white-space: normal !important; }
  .is-fields.has-type td:nth-child(2)::before { display: none !important; }
  .is-fields.has-type td:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .is-fields.has-type td:nth-child(3) { padding-block-start: 6px; }
  .is-fields.has-type td:nth-child(3)::before { display: none !important; }
}

/* ---- signed in (data-auth="in" from theme.js): member header, account menu ------------------- */
html:not([data-auth="in"]) .for-member, html[data-auth="in"] .for-guest { display: none !important; }
.acct { position: relative; flex-shrink: 0; }
.acct summary { list-style: none; cursor: pointer; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; user-select: none; }
.acct summary::-webkit-details-marker { display: none; }
.acct-av { position: relative; display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 50%; background: linear-gradient(145deg, #2A4A40, #1C312B); color: var(--gold-bright); font-weight: 700; font-size: 14px; line-height: 1; box-shadow: inset 0 0 0 1px rgb(217 164 65 / .35); transition: transform .2s var(--ease-out); }
.acct summary .acct-av::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--night-line); transition: border-color .2s var(--ease-out); }
@media (hover: hover) { .acct summary:hover .acct-av::after { border-color: var(--night-muted); } }
.acct[open] summary .acct-av::after { border-color: var(--gold-bright); }
.acct[open] summary .acct-av { transform: scale(.94); }
[data-state="loading"] .acct-av:empty, [data-state="error"] .acct-av:empty { background: linear-gradient(100deg, #1C312B 30%, #2A4A40 50%, #1C312B 70%) 0 0 / 300% 100%; animation: acct-shimmer 1.4s linear infinite; }
@keyframes acct-shimmer { to { background-position: -150% 0; } }
.acct-av:not(:empty) { animation: acct-av-in .35s var(--ease-out); }
@keyframes acct-av-in { from { opacity: 0; transform: scale(.8); } }
.acct-pop { position: absolute; inset-inline-end: -4px; inset-block-start: calc(100% + 10px); z-index: 40; inline-size: 296px; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgb(0 0 0 / .28); font-size: 15px; }
@keyframes acct-pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
@keyframes acct-pop-out { to { opacity: 0; transform: translateY(-6px) scale(.985); } }
.acct[open] .acct-pop { animation: acct-pop .18s var(--ease-out); transform-origin: 100% 0; }
[dir='rtl'] .acct[open] .acct-pop { transform-origin: 0 0; }
.acct.is-closing .acct-pop { animation: acct-pop-out .14s var(--ease-out) forwards; pointer-events: none; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.acct-av-lg { inline-size: 40px; block-size: 40px; font-size: 17px; flex-shrink: 0; }
.acct-who { display: grid; min-inline-size: 0; line-height: 1.3; }
.acct-who b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who span:empty { display: none; }
[data-state="loading"] .acct-who b, [data-state="loading"] .acct-who span, [data-state="loading"] .acct-plan-row > *, [data-state="loading"] .acct-plan-sub { color: transparent; border-radius: 5px; background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: acct-shimmer 1.4s linear infinite; }
[data-state="loading"] .acct-who b { inline-size: 140px; }
[data-state="loading"] .acct-who span { inline-size: 180px; margin-block-start: 4px; }
.acct-plan { display: grid; gap: 8px; margin: 0 2px 6px; padding: 11px 12px 12px; border-radius: 10px; background: var(--surface-2); text-decoration: none; color: inherit; transition: background-color .15s var(--ease-out); }
@media (hover: hover) { .acct-plan:hover { background: var(--surface-3); } }
.acct-plan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.acct-plan-row b { font-weight: 700; color: var(--accent); }
.acct-plan-row span { color: var(--muted); font-weight: 600; }
.acct-plan-sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.acct-meter { display: block; block-size: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.acct-meter i { display: block; block-size: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: 0 0; }
[dir='rtl'] .acct-meter i { transform-origin: 100% 0; }
.acct[open] .acct-meter i { transform: scaleX(var(--fill, 0)); transition: transform .6s var(--ease-glide) .08s; }
.is-low .acct-meter i { background: var(--warn); }
.acct-pop nav { border-block: 1px solid var(--line); padding-block: 6px; margin-block: 2px 6px; }
.acct-pop nav a, .acct-out { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.acct-pop nav a svg, .acct-out svg { color: var(--muted); flex-shrink: 0; transition: color .15s var(--ease-out), transform .2s var(--ease-out); }
@media (hover: hover) {
}
.acct-pop a:focus-visible { outline-offset: -2px; }
.member-note { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--note-line); }
@media (max-width: 640px) { .acct-pop { position: fixed; inset-inline: 12px; inset-block-start: calc(var(--top-h) + 8px); inline-size: auto; } }
@media (prefers-reduced-motion: reduce) {
  .acct-av:not(:empty), .acct[open] .acct-pop, [data-state="loading"] .acct-av:empty, [data-state="loading"] .acct-who b, [data-state="loading"] .acct-who span, [data-state="loading"] .acct-plan-row > *, [data-state="loading"] .acct-plan-sub { animation: none; }
  .acct[open] .acct-meter i { transition: none; }
}
.acct-pop ul { list-style: none; margin: 0; padding: 0; }
.acct-pop li { margin: 0; }

.acct { --acct-hl: color-mix(in srgb, var(--ink) 7%, transparent); --acct-accent: var(--accent); --acct-warn: var(--warn); }
/* Account menu motion (same block in site.css and docs.css; colours come from the --acct-* variables above).
   Opening: a gold ring draws once round the avatar, the panel unfolds from its corner, the rows rise one after
   another, the figures count up with the bar and a light runs over it. Rows: a highlight glides between them,
   the icon takes the accent, a small arrow slides in; "Sign out" leans out and turns red. */
@property --acct-sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.acct summary .acct-av { transition: transform .2s var(--ease-out); }
@media (hover: hover) { .acct summary:hover .acct-av { transform: scale(1.05); } }
.acct summary:active .acct-av { transform: scale(.93); transition-duration: .08s; }
.acct summary .acct-av::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; padding: 1.5px; background: conic-gradient(from 0deg, var(--gold-bright) var(--acct-sweep), transparent 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; pointer-events: none; }
.acct[open] summary .acct-av::before { animation: acct-sweep .6s var(--ease-glide) forwards; }
@keyframes acct-sweep { from { --acct-sweep: 0deg; opacity: 1; } to { --acct-sweep: 360deg; opacity: 1; } }
.acct[open] .acct-pop { animation: acct-unfold .24s var(--ease-out); }
@keyframes acct-unfold { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.acct[open] .acct-head, .acct[open] .acct-plan, .acct[open] .acct-pop nav li, .acct[open] .acct-out { animation: acct-rise .32s var(--ease-out) both; }
@keyframes acct-rise { from { opacity: 0; transform: translateY(5px); } }
.acct[open] .acct-plan { animation-delay: 35ms; }
.acct[open] .acct-pop nav li:nth-child(1) { animation-delay: 60ms; }
.acct[open] .acct-pop nav li:nth-child(2) { animation-delay: 78ms; }
.acct[open] .acct-pop nav li:nth-child(3) { animation-delay: 96ms; }
.acct[open] .acct-pop nav li:nth-child(4) { animation-delay: 114ms; }
.acct[open] .acct-pop nav li:nth-child(5) { animation-delay: 132ms; }
.acct[open] .acct-pop nav li:nth-child(6) { animation-delay: 150ms; }
.acct[open] .acct-pop nav li:nth-child(7) { animation-delay: 168ms; }
.acct[open] .acct-pop nav li:nth-child(8) { animation-delay: 186ms; }
.acct[open] .acct-out { animation-delay: 205ms; }
/* The bar fills in step with the counting figures, then a light runs over it once. */
.acct[open] .acct-meter i { transition: none; animation: acct-fill .7s var(--ease-out) .08s both; }
@keyframes acct-fill { from { transform: scaleX(0); } }
.acct-meter i { position: relative; overflow: hidden; }
.acct-meter i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent); transform: translateX(-100%); }
.acct[open] .acct-meter i::after { animation: acct-light .9s var(--ease-out) .85s; }
@keyframes acct-light { to { transform: translateX(100%); } }
[dir='rtl'] .acct[open] .acct-meter i::after { animation-name: acct-light-rtl; }
@keyframes acct-light-rtl { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
/* Rows and the gliding highlight. */
.acct-hl { position: absolute; inset-inline: 8px; inset-block-start: 0; block-size: 40px; border-radius: 8px; background: var(--acct-hl); opacity: 0; pointer-events: none; transition: opacity .16s var(--ease-out), background-color .2s var(--ease-out); }
.acct-hl.is-on { opacity: 1; }
.acct-hl.is-ready { transition: transform .24s var(--ease-glide), block-size .24s var(--ease-glide), opacity .16s var(--ease-out), background-color .2s var(--ease-out); }
.acct-hl.is-out { background: color-mix(in srgb, var(--acct-warn) 12%, transparent); }
.acct-pop nav a, .acct-out { position: relative; z-index: 1; }
.acct-pop nav a::after { content: ''; margin-inline-start: auto; inline-size: 6px; block-size: 6px; border-inline-end: 1.5px solid currentColor; border-block-start: 1.5px solid currentColor; color: var(--muted); opacity: 0; transform: translateX(-5px) rotate(45deg); transition: opacity .18s var(--ease-out), transform .22s var(--ease-out); }
[dir='rtl'] .acct-pop nav a::after { transform: translateX(5px) rotate(-45deg); }
.acct-pop nav a svg, .acct-out svg { transition: color .18s var(--ease-out), transform .22s var(--ease-out); }
@media (hover: hover) {
  .acct-pop nav a:hover svg { color: var(--acct-accent); }
  .acct-pop nav a:hover::after { opacity: 1; transform: translateX(0) rotate(45deg); }
  [dir='rtl'] .acct-pop nav a:hover::after { transform: translateX(0) rotate(-45deg); }
  .acct-out:hover, .acct-out:hover svg { color: var(--acct-warn); }
  .acct-out:hover svg { transform: translateX(-2px); }
  [dir='rtl'] .acct-out:hover svg { transform: translateX(2px) scaleX(-1); }
}
.acct-pop nav a:focus-visible svg { color: var(--acct-accent); }
.acct-pop nav a:focus-visible::after { opacity: 1; transform: translateX(0) rotate(45deg); }
.acct-plan { transition: background-color .15s var(--ease-out), box-shadow .2s var(--ease-out); }
@media (hover: hover) { .acct-plan:hover { box-shadow: inset 0 0 0 1px var(--line); } }
@media (prefers-reduced-motion: reduce) {
  .acct[open] summary .acct-av::before { animation: none; opacity: 1; --acct-sweep: 360deg; }
  .acct[open] .acct-pop, .acct[open] .acct-head, .acct[open] .acct-plan, .acct[open] .acct-pop nav li, .acct[open] .acct-out, .acct[open] .acct-meter i, .acct[open] .acct-meter i::after { animation: none; }
  .acct[open] .acct-meter i, .acct-hl, .acct-hl.is-ready, .acct-pop nav a::after, .acct-pop nav a svg, .acct-out svg, .acct summary .acct-av { transition: none; }
}
/* While open the drawn ring is the gold edge; the static one steps back so the sweep is seen. */
.acct[open] summary .acct-av::after { border-color: transparent; }

/* Round 55: profile picture (Gravatar, fetched by the dashboard's server) and the request pulse round the avatar
   (site/acct-pulse.js draws it on a canvas next to the avatar: one real impulse per request of the account). */
.acct { --pulse-ok: var(--gold-bright); --pulse-base: var(--gold-bright); --pulse-bad: #F0705A; --pulse-dull: rgb(190 200 196 / .75); }
.acct summary { position: relative; }
.acct-av { position: relative; }
.acct summary .acct-av { z-index: 1; }
.acct-pulse { position: absolute; z-index: 0; pointer-events: none; }
.acct-img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border-radius: 50%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease-out); }
.acct-av.has-img { color: transparent; }
.acct-av.has-img .acct-img { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .acct-img { transition: none; } }

.top { overflow-x: clip; } /* the avatar's pulse canvas never widens the page on a phone */

/* Round 56 – the light that runs through the V of the logo (markup: site/logo-mark.mjs). Down the left arm,
   round the point, up the right arm; about 1.8 s, then a long rest. The mark itself never changes. */
.logo-run { stroke-dasharray: 14 300; stroke-dashoffset: 26; animation: logo-run 9s cubic-bezier(.45,0,.4,1) .9s infinite; }
@keyframes logo-run { 0% { stroke-dashoffset: 26; } 20% { stroke-dashoffset: -116; } 100% { stroke-dashoffset: -116; } }
@media (prefers-reduced-motion: reduce) { .logo-run { animation: none; } }
@media print { .logo-run { display: none; } }

/* Round 59 – active markers (accent-motion.js): the sheen over the active surface and the run along the accent line,
   on two separate random clocks, as in the dashboard. The light is a small element the script puts in and takes out. */
.acc-light { position: absolute; z-index: 2; overflow: hidden; pointer-events: none; }
.acc-light i { position: absolute; display: block; }
.acc-run i { inset-block: 0; inset-inline-start: 0; inline-size: 45%; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .45) 30%, #FFF4D6 50%, rgba(255, 236, 190, .45) 70%, transparent); animation: acc-x .6s var(--ease-glide) both; }
[dir='rtl'] .acc-run i { inset-inline-start: auto; inset-inline-end: 0; animation-direction: reverse; }
@keyframes acc-x { from { transform: translateX(-100%); } to { transform: translateX(225%); } }
.acc-run.is-v i, .acc-v i { inset-inline: 0; inset-block-start: 0; inline-size: auto; block-size: 70%; animation: acc-y 1s var(--ease-glide) both;
  background: linear-gradient(to bottom, transparent, rgba(255, 236, 190, .45) 30%, #FFF4D6 50%, rgba(255, 236, 190, .45) 70%, transparent); }
@keyframes acc-y { from { transform: translateY(-100%); } to { transform: translateY(143%); } }
.acc-sheen { inset: 0; z-index: 0; border-radius: inherit; }
.acc-sheen i { inset: 0; --sheen-peak: rgba(255, 236, 190, .16); --sheen-mid: rgba(255, 255, 255, .06);
  background: linear-gradient(105deg, transparent 0 36%, var(--sheen-mid) 45%, var(--sheen-peak) 50%, var(--sheen-mid) 55%, transparent 64% 100%); animation: acc-sheen 1.1s var(--ease-glide) both; }
[dir='rtl'] .acc-sheen i { scale: -1 1; }
@keyframes acc-sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .acc-light { display: none; } }
.tab > .acc-run, .tab-labels label > .acc-run { inset-inline: 9px; inset-block-end: -1px; block-size: 2px; border-radius: 2px; }
.nav-group a[aria-current] { isolation: isolate; }
.nav-group a > .acc-run { inset-block: 7px; inset-inline-start: 11px; inline-size: 3px; border-radius: 2px; }
.nav-group a > .acc-sheen { z-index: -1; }
.nav-group a > .acc-sheen i { --sheen-peak: rgba(255, 255, 255, .7); --sheen-mid: rgba(255, 255, 255, .25); }
.toc li a > .acc-run { inset-block: 0; inset-inline-start: -2px; inline-size: 2px; }
.nav-group a > .acc-run i, .toc li a > .acc-run i { inset-inline: 0; inset-block-start: 0; inline-size: auto; block-size: 70%; animation: acc-y 1s var(--ease-glide) both;
  background: linear-gradient(to bottom, transparent, rgba(255, 236, 190, .45) 30%, #FFF4D6 50%, rgba(255, 236, 190, .45) 70%, transparent); }
:root[data-theme='dark'] .nav-group a > .acc-sheen i { --sheen-peak: rgba(255, 255, 255, .12); --sheen-mid: rgba(255, 255, 255, .04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .nav-group a > .acc-sheen i { --sheen-peak: rgba(255, 255, 255, .12); --sheen-mid: rgba(255, 255, 255, .04); } }

/* Round 62: on touch the search closes with a cross (there is no Esc key); a button that reads like a link. */
.search-close-x { display: none; inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (pointer: coarse) { .search-close-key { display: none; } .search-close-x { display: block; } .search-close { min-inline-size: 40px; min-block-size: 40px; display: grid; place-items: center; } }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

/* ===== Round 63: endpoint list, cost chips, builder endpoints, status, signature check, recipes, menu badges ===== */
/* Cost chip and Playground link under an example. */
.foot-acts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cost-chip { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid var(--code-line); border-radius: 999px; color: var(--code-muted); font: 600 12px/1.2 var(--sans); text-decoration: none; white-space: nowrap; }
.cost-chip:hover { color: #fff; border-color: #3B554B; }
.cost-chip:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.cost-chip[hidden], .play[hidden] { display: none; }
@media (max-width: 1024px), (pointer: coarse) {
  .cost-chip, .tab-foot .play { min-block-size: 32px; margin-block: -4px; }
}
@media (prefers-reduced-motion: no-preference) { .cost-chip { transition: color .15s var(--ease-out), border-color .15s var(--ease-out); } }

/* Request builder: endpoint switch, list of URLs, the estimate button; the signature check uses the same form. */
.builder-form [hidden] { display: none !important; }
.bf-modes .bf-check { min-block-size: 36px; }
.bf-row textarea { inline-size: 100%; min-block-size: 88px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: 13.5px/1.55 var(--mono); resize: vertical; }
.bf-row textarea::placeholder { color: var(--muted); }
.bf-row textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.bf-row textarea[aria-invalid="true"] { border-color: var(--warn); }
.bf-acts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: none; }
.bf-reset:disabled { opacity: .5; cursor: not-allowed; }
.bf-reset:disabled:hover { border-color: var(--line-strong); color: var(--ink-2); }
.bf-primary { border-color: var(--accent); color: var(--accent-ink); }
.content .bf-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.content .whsig + .bf-note { margin-block-start: 10px; }
.content .bf-cost.is-ok { color: var(--accent-ink); }
.content .bf-cost { overflow-wrap: anywhere; }

/* API status: a dot in the header, a notice during maintenance, the explanation page. */
.status-dot { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-block-size: 32px; min-inline-size: 32px; margin-inline-start: 6px; padding-inline: 8px; border-radius: 8px; color: var(--night-muted); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.status-dot:hover { color: #fff; background: rgb(255 255 255 / .07); }
.status-dot[hidden] { display: none; }
.status-mark { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; }
.status-dot[data-state="ok"] .status-mark { background: #45BFA3; }
.status-dot[data-state="maintenance"] .status-mark { background: #E7B95A; }
.status-dot[data-state="disturbed"] .status-mark { background: #F29A78; }
@media (max-width: 1180px) { .status-text { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.status-banner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-block: 24px 0; padding: 12px 16px; border: 1px solid var(--tip-line); border-radius: 12px; background: var(--gold-soft); color: var(--ink); font-size: 15px; line-height: 1.5; }
.status-banner[hidden] { display: none; }
.status-banner.is-disturbed { border-color: var(--warn-line); background: var(--warn-soft); }
.status-banner strong { font-weight: 650; }
.status-now { margin-block: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.status-now[hidden] { display: none; }
.content .status-now-line { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.status-now .status-mark, .status-key { inline-size: 9px; block-size: 9px; border-radius: 50%; }
.status-key { display: inline-block; margin-inline-end: 6px; vertical-align: .05em; }
.status-now[data-state="ok"] .status-mark, .status-key-ok { background: var(--accent); }
.status-now[data-state="maintenance"] .status-mark, .status-key-maintenance { background: var(--gold-bright); }
.status-now[data-state="disturbed"] .status-mark, .status-key-disturbed { background: var(--warn); }

/* Endpoint list. */
.scope { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font: 650 12px/1.6 var(--mono); white-space: nowrap; }
.scope-requests { background: var(--accent-soft); border-color: var(--note-line); color: var(--accent-ink); }
.scope-read { background: var(--get-soft); border-color: transparent; color: var(--get); }
.scope-manage { background: var(--gold-soft); border-color: var(--tip-line); color: var(--gold); }
.scope-none { font-family: var(--sans); font-weight: 600; }
.scope-or, .scope-note { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ep { margin-block-start: 28px; }
.ep + .ep { padding-block-start: 4px; border-block-start: 1px solid var(--line); }
.ep h3 { margin-block-start: 28px; }
.content .ep-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-block: 6px 0; }
.ep-summary { font-weight: 600; color: var(--ink); }
.ep-scopes { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ep-label-inline, .content .ep-label { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ep-link { text-decoration: none; white-space: nowrap; }
.ep-link .method { margin-inline-end: 2px; }
.content .ep-link .method { background: var(--accent-soft); color: var(--accent-ink); }
.content .ep-link .method-get { background: var(--get-soft); color: var(--get); }
.content .ep-link .method-delete { background: var(--warn-soft); color: var(--warn); }
.content .ep-link code { color: var(--ink); }
.ep-more { margin-block-start: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ep-more > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-block-size: 44px; padding: 8px 14px; border-radius: 10px; cursor: pointer; list-style: none; font-weight: 600; }
.ep-more > summary::-webkit-details-marker { display: none; }
.ep-more > summary::before { content: ''; flex: none; inline-size: 7px; block-size: 7px; margin-inline-end: 2px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; rotate: -45deg; }
.ep-more[open] > summary::before { rotate: 45deg; }
.ep-more > summary:hover { background: var(--surface-2); }
.ep-more[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.ep-sum-note { font-weight: 400; font-size: 14px; color: var(--muted); }
.ep-more-body { padding: 4px 14px 14px; border-block-start: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .ep-more > summary::before { transition: rotate .15s var(--ease-out); } }
.content .schema { display: block; list-style: none; margin: 6px 0 0; padding: 0; }
.content .schema .schema { margin-inline-start: 4px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.schema li { padding-block: 6px; }
.sch-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.content .sch-name { font-weight: 600; }
.sch-type { font: 12.5px/1.4 var(--mono); color: var(--muted); }
.sch-desc { display: block; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sch-enum { display: block; font-size: 13px; line-height: 1.8; }
.sch-enum code { margin-inline-end: 4px; }
.content .ep-small { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.ep-errors { margin-block-start: 16px; }
.content .ep-errors .ep-label { margin: 0 0 6px; }
.content .ep-errors ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ep-errors li { line-height: 1.9; }
.ep-errors li > .http { margin-inline-end: 6px; }
.ep-errors a { margin-inline-end: 6px; text-decoration: none; }
.content .ep-doc { margin-block: 12px 0; font-size: 14.5px; font-weight: 600; }
@media (max-width: 1024px), (pointer: coarse) {
  .ep-errors a, .ep-doc a { display: inline-block; padding-block: 6px; margin-block: -6px; }
}
.scope-matrix th:not(:first-child), .scope-matrix td:not(:first-child) { text-align: center; }
.mx-yes { color: var(--accent-ink); font-weight: 650; }
.mx-no { color: var(--muted); }
.sdk-missing { color: var(--muted); font-size: 14px; }

/* Changelog by area. */
.cl-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block: 20px 0; }
.cl-chip { min-block-size: 36px; padding-inline: 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.cl-chip:hover { border-color: var(--accent); color: var(--ink); }
.cl-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.cl-filter .filter-count { margin-inline-start: auto !important; }
@media (prefers-reduced-motion: no-preference) { .cl-chip { transition: color .15s var(--ease-out), background-color .15s var(--ease-out), border-color .15s var(--ease-out); } }

/* "New" and "Updated" in the menu. */
.nav-badge { display: inline-block; margin-inline-start: 8px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.55; letter-spacing: .02em; vertical-align: .08em; }
.nav-badge-new { border-color: var(--tip-line); background: var(--gold-soft); color: var(--gold); }

/* Recipes. */
.content .recipe-steps { display: block; list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; }
.recipe-step { position: relative; margin-block-start: 22px; padding-inline-start: 38px; counter-increment: step; }
.recipe-step::before { content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 1px; display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.content .recipe-step > h3 { margin-block: 0 8px; font-size: 17.5px; }
.content .recipe-more { font-size: 14.5px; color: var(--muted); }
@media (max-width: 640px) { .recipe-step { padding-inline-start: 0; } .recipe-step::before { position: static; display: inline-grid; margin-block-end: 6px; } }
@media print { .status-dot, .status-banner, .cl-filter, .whsig { display: none !important; } }
.scope-matrix th .scope { text-transform: none; letter-spacing: 0; }
.status-key-label { white-space: nowrap; }
@media (max-width: 1024px), (pointer: coarse) { .recipe-list a { display: inline-block; padding-block: 6px; margin-block: -6px; } }

/* ---- Round 64 (26.11.2026): checklist website + docs ---------------------------------------------------------------- */
/* Code tabs: where the row of languages is wider than its box, the edge with more behind it fades (classes from docs.js). */
.tab-labels.fade-e { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.tab-labels.fade-s { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); }
.tab-labels.fade-s.fade-e { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
[dir='rtl'] .tab-labels.fade-e { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); }
[dir='rtl'] .tab-labels.fade-s { -webkit-mask-image: linear-gradient(to left, transparent, #000 32px); mask-image: linear-gradient(to left, transparent, #000 32px); }
[dir='rtl'] .tab-labels.fade-s.fade-e { -webkit-mask-image: linear-gradient(to left, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to left, transparent, #000 32px, #000 calc(100% - 32px), transparent); }

/* "On this page" on screens without the right-hand column: a button above the text opens the same list. */
.toc-toggle { display: none; }
@media (max-width: 1240px) {
  .js .toc-wrap { display: block; position: static; grid-column: 2; grid-row: 1; inline-size: 100%; max-inline-size: 780px; max-block-size: none; overflow: visible; padding-block: 24px 0; }
  .js .layout > .side { grid-row: 1 / span 2; }
  .js .layout > .content { grid-column: 2; grid-row: 2; padding-block-start: 22px; }
  .toc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; inline-size: 100%; min-block-size: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 650 14px/1.3 var(--sans); cursor: pointer; }
  .toc-toggle svg { flex: none; inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s var(--ease-out); }
  .toc-wrap.is-open .toc-toggle svg { transform: rotate(180deg); }
  .toc-wrap:not(.is-open) .toc { display: none; }
  .toc-wrap.is-open .toc { margin-block-start: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .toc-wrap .toc-title, .toc-wrap .toc-ink, .toc-wrap .toc-fill, .toc-wrap .toc-top { display: none; }
  .toc-wrap .toc li a { display: flex; align-items: center; min-block-size: 40px; padding-block: 6px; }
}
@media (max-width: 1024px) {
  .js .toc-wrap, .js .layout > .content { grid-column: 1; }
  .js .toc-wrap { margin-inline: auto; padding-block-start: 16px; }
  .js .layout > .content { padding-block-start: 18px; }
}
@media (prefers-reduced-motion: reduce) { .toc-toggle svg { transition: none; } }
@media print { .toc-toggle { display: none !important; } }

/* The date under each page. */
.page-date { margin-block-start: 56px; color: var(--muted); font-size: 13.5px; }
.page-date + .pager { margin-block-start: 20px; }
/* Phones: the row of page actions fades at its end also where the browser cannot follow the scroll (or motion is reduced). */
@media (max-width: 640px) {
  .page-actions:not(.page-home .page-actions) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); }
  [dir='rtl'] .page-actions:not(.page-home .page-actions) { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 20px), transparent); }
}
@supports (animation-timeline: scroll()) {
  @media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
    .page-actions:not(.page-home .page-actions) { -webkit-mask-image: none; mask-image: linear-gradient(to right, transparent, #000 var(--pa-s), #000 calc(100% - var(--pa-e)), transparent); }
    [dir='rtl'] .page-actions:not(.page-home .page-actions) { -webkit-mask-image: none; mask-image: linear-gradient(to left, transparent, #000 var(--pa-s), #000 calc(100% - var(--pa-e)), transparent); }
  }
}
/* The key button in the header keeps its full width (it was cut by 2px at tablet width). */
.top-cta { flex: none; }
/* Nothing under 12px. */
.method, .nav-badge { font-size: 12px; }
.retry-hint code { font-size: 12px; }

/* "Was this page helpful?" (docs.js, data-feedback): one quiet line at the end of the page; after a vote an optional
   short text, then thanks. Real buttons, the thanks in a live region, logical properties only. */
.fb { margin-block-start: 56px; padding-block: 18px; padding-inline: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.fb + .page-date { margin-block-start: 20px; }
.fb p { margin: 0; }
.fb-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.fb-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.fb-choices { display: flex; gap: 8px; }
.fb-btn { display: inline-flex; align-items: center; gap: 7px; min-block-size: 36px; padding-inline: 13px 15px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.fb-btn svg { inline-size: 17px; block-size: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fb-no svg { scale: 1 -1; }
.fb-btn:hover { border-color: var(--accent); color: var(--ink); }
.fb-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fb-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.fb-btn:disabled { cursor: default; opacity: .6; }
.fb-form { margin-block-start: 14px; }
.fb-form[hidden] { display: none; }
.fb-label { display: block; margin-block-end: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.fb-opt { font-weight: 450; color: var(--muted); }
.fb-text { display: block; inline-size: 100%; min-block-size: 84px; padding-block: 10px; padding-inline: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.fb-text:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.fb-hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block-start: 10px; }
.fb-hint { flex: 1 1 260px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.fb-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.fb-count.is-near { color: var(--gold); }
.fb-send { display: inline-flex; align-items: center; min-block-size: 36px; padding-inline: 16px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
:root[data-theme="dark"] .fb-send { color: #0B1411; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fb-send { color: #0B1411; } }
.fb-send:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.fb-send:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fb-send:disabled { cursor: progress; opacity: .7; }
.fb-status { font-size: 14.5px; color: var(--ink-2); }
.fb-status:empty { display: none; }
.fb-status:not(:empty) { margin-block-start: 12px; }
.fb-status:focus { outline: none; }
.fb-status.is-error { color: var(--warn); }
.fb.is-done .fb-ask, .fb.is-done .fb-form { display: none; }
.fb.is-done .fb-status { margin-block-start: 0; }
@media (prefers-reduced-motion: no-preference) {
  .fb-btn, .fb-send { transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out), color .15s var(--ease-out); }
  .fb-form:not([hidden]), .fb.is-done .fb-status { animation: fb-in .22s var(--ease-out) both; }
}
@keyframes fb-in { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1024px), (pointer: coarse) { .fb-btn, .fb-send { min-block-size: 44px; } }
@media (max-width: 640px) { .fb { padding-inline: 16px; } .fb-send { margin-inline-start: auto; } }
@media print { .fb { display: none !important; } }
