/* Solver API documentation. The shared look (fonts, tokens, ground, header, panels, search, buttons, planes,
   code panels, cards) is in site.css. This file holds what only the documentation pages have: the frame of a page
   (static/docs/layout.html) and the pieces the pages in static/docs/pages/ are built from. */

html { scroll-padding-top: calc(var(--nav-h) + 24px); }
code { color: var(--text); background: rgb(205 218 255 / 0.07); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- frame: pages on the left, the text, this page's headings on the right */
.layout { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 48px; }
.side { position: sticky; top: var(--nav-h); z-index: 3; align-self: start; height: calc(100dvh - var(--nav-h)); display: flex; flex-direction: column; padding: 28px 0 0; }
.side .search { flex: none; margin: 0 6px 16px 0; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 32px 0; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 16px; }
.nav-group-title { margin: 0; padding: 0 12px 6px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.nav-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nav-group li { color: inherit; line-height: inherit; }
.nav-group a { position: relative; display: block; padding: 5px 12px; border-radius: var(--r-item); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text-muted); text-decoration: none; }
.nav-group a:hover { color: var(--text); background: var(--hover); }
.nav-group a:active { background: rgb(205 218 255 / 0.13); }
.nav-group a:focus-visible { border-radius: var(--r-item); outline-offset: -2px; }
.nav-group a[aria-current='page'] { color: var(--heading); background: var(--selected); box-shadow: var(--selected-shadow); }
.nav-group a[aria-current='page']::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--metal); }

.page { min-width: 0; display: grid; grid-template-columns: minmax(0, 748px) 184px; column-gap: 48px; align-content: start; justify-content: space-between; padding: 40px 0 96px; }
.page:focus { outline: none; }
.content { grid-column: 1; min-width: 0; }
.pager, .page > .foot { grid-column: 1; }
.onpage { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; max-height: calc(100dvh - var(--nav-h) - 72px); overflow-y: auto; scrollbar-width: thin; }
.onpage-title { margin: 0 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.onpage ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--edge); }
.onpage li { line-height: inherit; }
.onpage a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; overflow-wrap: anywhere; border-left: 1px solid transparent; font-size: 13px; line-height: 1.4; color: var(--text-faint); text-decoration: none; }
.onpage a:hover { color: var(--text); }
.onpage a:active { color: var(--text-muted); }
.onpage a[aria-current='true'] { color: var(--heading); border-left-color: var(--text-2); }
.onpage code { font-size: 12px; background: none; padding: 0; color: inherit; }

.content > * + *, .flow > * + * { margin-top: 18px; }
.crumb { margin: 0 0 12px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.12; }
.crumb + h1 { margin-top: 0; }
h2 { font-size: 1.45rem; line-height: 1.25; }
h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -0.01em; }
h4 { font: 600 15px/1.4 var(--ui); letter-spacing: 0; color: var(--text); }
.content h2 { margin-top: 56px; }
.content h3 { margin-top: 34px; }
.content h4 { margin-top: 24px; }
.content h2 + h3 { margin-top: 20px; }
h2 code, h3 code { font-size: 0.86em; }
.lead { font-size: 1.1rem; line-height: 1.6; color: var(--text-2); max-width: 660px; }
h1 + .lead { margin-top: 14px; }
p, li { color: var(--text-2); line-height: 1.65; }
p { max-width: 70ch; }
.content ul, .content ol.list { padding-left: 22px; display: grid; gap: 8px; max-width: 70ch; }
.content ul li::marker { color: var(--text-off); }
.content ol.list li::marker { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.anchor { margin-left: 10px; font-family: var(--mono); font-weight: 400; font-size: 0.7em; color: var(--text-off); text-decoration: none; opacity: 0; transition: opacity var(--fast) var(--ease); }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--text); }
@media (hover: none) { .anchor { opacity: 1; } }
.small { font-size: 14px; color: var(--text-faint); }
.content ul.small { max-width: none; gap: 6px; }
ul.small li { font-size: 14px; line-height: 1.55; color: var(--text-faint); }

/* previous and next page */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }
.pager a { display: grid; gap: 5px; padding: 14px 18px; border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; color: var(--heading); text-decoration: none; }
.pager a span { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.pager a:hover { background-image: var(--chip-hover); box-shadow: inset 0 0 0 1px var(--edge-strong), inset 0 1px 0 0 var(--edge-top); }
.pager a:active { background-image: var(--chip-press); }
.pager a:focus-visible { border-radius: var(--r-card); }
.pager .prev { grid-column: 1; }
.pager .next { grid-column: 2; text-align: right; }
.page > .foot { margin-top: 56px; }

/* a closed block for long reference material */
details.more { max-width: none; border-radius: var(--r-control); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); }
details.more > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px; border-radius: var(--r-control); font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ''; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 1.5px solid var(--text-faint); border-bottom: 1.5px solid var(--text-faint); transform: rotate(-45deg); transition: transform var(--base) var(--ease); }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary:hover { background: rgb(205 218 255 / 0.04); }
details.more > summary:active { background: rgb(205 218 255 / 0.07); }
details.more > summary:focus-visible { border-radius: var(--r-control); outline-offset: -2px; }
details.more > summary code { font-size: 13px; }
details.more > summary h2, details.more > summary h3 { margin: 0; font: inherit; letter-spacing: 0; color: inherit; }
details.more > summary { flex-wrap: wrap; row-gap: 2px; }
details.more > summary .more-hint { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 400; color: var(--text-faint); }
.content details.more + details.more, .more-body details.more + details.more { margin-top: 10px; }
.more-body h3 { margin-top: 22px; font-size: 1.02rem; }
.more-body > h3:first-child { margin-top: 4px; }

/* "In short": what most readers need, before anything else */
.inshort { max-width: none; padding: 16px 20px 18px; border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); }
.inshort-title { margin: 0 0 10px; max-width: none; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.content .inshort ul { max-width: none; gap: 7px; padding-left: 20px; }
.inshort li { font-size: 15.5px; line-height: 1.55; color: var(--text); }
.inshort li::marker { color: var(--text-faint); }
/* a label over a run of closed blocks */
.group-label { max-width: none; margin: 40px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.content .group-label + * { margin-top: 12px; }
.pointer { max-width: none; padding: 12px 16px; border-radius: var(--r-control); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); font-size: 15px; color: var(--text-2); }
.pointer a { font-weight: 500; color: var(--text); }
details.more > summary .anchor { display: none; }
details.before { margin-bottom: 18px; }
.more-body { padding: 4px 16px 16px; }
.more-body > * + * { margin-top: 14px; }
.more-body > :first-child { margin-top: 0; }
.more-body .code, .more-body pre { box-shadow: inset 0 0 0 1px var(--edge); }

/* "use this when": the line that says who a block is for */
.use { padding: 12px 16px; border-left: 2px solid var(--text-faint); border-radius: 0 var(--r-item) var(--r-item) 0; background: rgb(205 218 255 / 0.04); font-size: 15px; line-height: 1.55; color: var(--text); max-width: none; }
.use b { display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.way { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--edge); }
.way > h2 { margin-top: 6px; }
.way-n { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.note { padding: 14px 18px; border-radius: var(--r-control); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: none; }

/* ---------------------------------------------------------------- code: the language tabs in the header strip */
.code-tabs { display: flex; gap: 2px; margin-left: -8px; }
.code-tab { padding: 6px 12px; border: 0; border-radius: var(--r-pill); background: none; font: 400 12px/1.2 var(--mono); color: var(--text-faint); cursor: pointer; }
.code-tab:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.code-tab:active { background: rgb(255 255 255 / 0.08); }
.code-tab[aria-selected='true'] { color: var(--select-ink); background-image: linear-gradient(180deg, var(--select-top), var(--select-bottom)); box-shadow: inset 0 0 0 1px var(--select-edge), inset 0 1px 0 rgb(255 255 255 / 0.12); }
.code-tab:focus-visible { border-radius: var(--r-pill); }

/* ---------------------------------------------------------------- the overview: how it works, and the map of the site */
.how { list-style: none; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: how; }
.how li { counter-increment: how; padding: 16px 18px 18px; border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.how li::before { content: counter(how); display: grid; place-content: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--edge-strong); font: 500 12px/1 var(--mono); color: var(--text); }
.how b { display: block; margin-bottom: 4px; font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; color: var(--heading); }
.map { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.map-card { position: relative; padding: 18px 20px 14px; border-radius: var(--r-card); background-image: var(--plane); box-shadow: var(--plane-shadow); min-width: 0; }
.map-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--ring);
  -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);
}
.map-card h3 { margin: 0; font-size: 1.12rem; }
.map-card > p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-faint); }
.content .map-card ul { list-style: none; margin: 10px -8px 0; padding: 0; display: grid; gap: 1px; max-width: none; }
.map-card li { line-height: 1.4; }
.map-card a { position: relative; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 8px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text); text-decoration: none; }
.map-card a span { font-size: 13px; font-weight: 400; color: var(--text-faint); text-align: right; }
.map-card a:hover { background: var(--hover); }
.map-card a:active { background: rgb(205 218 255 / 0.13); }
/* measured figures: two cards of three numbers */
.figures { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.figure-card { position: relative; padding: 18px 20px 20px; border-radius: var(--r-card); background-image: var(--plane); box-shadow: var(--plane-shadow); min-width: 0; }
.figure-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--ring);
  -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);
}
.content .figure-title { margin: 0; max-width: none; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.figure-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.figure-row b { display: block; font: 600 1.5rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure-row span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.4; color: var(--text-faint); }
/* a table of times: headings of two lines, so that four columns fit the text column */
.table.times th { white-space: normal; vertical-align: bottom; }
.table.times th span { display: block; white-space: nowrap; }
.table.times td.num { white-space: nowrap; }
@media (max-width: 520px) {
  .figure-row { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 10px; }
  .figure-row div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; }
  .figure-row div + div { box-shadow: inset 0 1px 0 0 var(--edge); }
  .figure-row b { order: 2; font-size: 1.25rem; }
  .figure-row span { margin-top: 0; font-size: 14px; color: var(--text-2); }
}
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: none; font-size: 14.5px; color: var(--text-2); }
.address code { font-size: 13.5px; padding: 4px 10px; }

/* ---------------------------------------------------------------- the quick start: a row of steps, one step in view */
.stepper { max-width: none; }
.step-row { list-style: none; margin-bottom: 16px; padding: 4px; max-width: none; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-pill); background-color: var(--well); box-shadow: var(--well-shadow); }
.content ol.step-row { padding: 4px; display: flex; gap: 2px; max-width: none; }
.step-row::-webkit-scrollbar { display: none; }
.step-row li { flex: 1 0 auto; line-height: 1; }
.step-row a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px 0 7px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.step-row a i { flex: none; display: grid; place-content: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--edge-strong); font: 500 12px/1 var(--mono); font-style: normal; color: var(--text-2); }
.step-row a:hover { color: var(--text); background-image: linear-gradient(180deg, rgb(205 218 255 / 0.09), rgb(205 218 255 / 0.05)); }
.step-row a:active { background-image: linear-gradient(180deg, rgb(205 218 255 / 0.13), rgb(205 218 255 / 0.09)); }
.step-row a:focus-visible { border-radius: var(--r-pill); outline-offset: -2px; }
.step-row a[aria-current='step'] { color: var(--select-ink); background-image: linear-gradient(180deg, var(--select-top), var(--select-bottom)); box-shadow: inset 0 0 0 1px var(--select-edge), inset 0 1px 0 rgb(255 255 255 / 0.12); }
.step-row a[aria-current='step'] i { box-shadow: none; background: var(--select-ink); color: #10141f; }
.step-card { position: relative; padding: 20px 24px 18px; border-radius: var(--r-card); background-image: var(--plane); box-shadow: var(--plane-shadow); }
.step-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--ring);
  -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);
}
.step-card + .step-card { margin-top: 16px; }
.step-card > * { position: relative; z-index: 1; }
.step-card > * + * { margin-top: 12px; }
.step-card ol.list { gap: 6px; max-width: none; }
.step-card h2 { margin-top: 0; font-size: 1.3rem; }
.step-card h2:focus { outline: none; }
.step-n { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.step-n + h2 { margin-top: 4px; }
.step-card pre { max-height: 400px; }
.step-card .code { box-shadow: inset 0 0 0 1px var(--edge); }
.expect { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 8px 16px; max-width: none; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.expect dt { font: 500 11px/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.expect dd { margin: 0; min-width: 0; }
.step-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-foot .btn[hidden] + .btn { margin-left: auto; }
.step-next { max-width: none; font-size: 14.5px; }

/* ---------------------------------------------------------------- the API reference: one block for each route */
.method { flex: none; display: inline-block; min-width: 46px; padding: 4px 8px; border-radius: 6px; background-image: var(--chip); box-shadow: var(--chip-shadow); font: 600 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-align: center; color: var(--heading); }
.route { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--edge); }
details.route { margin-top: 10px; padding-top: 0; border-top: 0; }
details.route > summary { min-height: 52px; }
details.route > summary h2 { display: inline-flex; align-items: center; gap: 10px; font: 500 14.5px/1.4 var(--mono); letter-spacing: -0.01em; color: var(--heading); overflow-wrap: anywhere; }
details.route > summary h2 .anchor { display: none; }
details.route .more-body { padding-top: 2px; }
.route > h2 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 500 1.12rem/1.4 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.route > h2 .anchor { margin-left: 0; }
.route-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; max-width: none; }
.route-errors { max-width: none; font-size: 14.5px; line-height: 1.9; color: var(--text-faint); }
.route-errors b { margin-right: 6px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.route-errors a { text-decoration: none; }
.route-errors a code { font-size: 12.5px; }
.route-errors a:hover code { background: rgb(205 218 255 / 0.14); }
.route h3 { margin-top: 26px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.route h3 + * { margin-top: 10px; }
.params td:first-child code { font-size: 13px; font-weight: 500; color: var(--heading); background: none; padding: 0; }
.params td:nth-child(2) { white-space: nowrap; font-size: 13.5px; color: var(--text-faint); }
.routes td:first-child { white-space: nowrap; }
.routes td:first-child a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.routes td:first-child a code { font-size: 13px; background: none; padding: 0; }
.routes td:first-child a:hover code { text-decoration: underline; text-underline-offset: 3px; }

/* without scripts every language of a sample shows, each under its name */
html:not(.js) .tabs pre[hidden] { display: block !important; margin-top: 12px; }
html:not(.js) .tabs pre[data-lang]::before { content: attr(data-lang); display: block; margin-bottom: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
/* with scripts, only the first step shows until the stepper takes over */
.js .stepper:not(.is-live) .step-card ~ .step-card { display: none; }

/* ---------------------------------------------------------------- field lists: rows on the ground, parted by soft lines */
.fields { display: grid; max-width: none; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.fields > div { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 4px 24px; padding: 15px 2px; }
.fields > div + div { border-top: 1px solid var(--edge); }
.fields dt { min-width: 0; }
.fields dt code { background: none; padding: 0; font-size: 14px; font-weight: 500; color: var(--heading); }
.fields dt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-faint); line-height: 1.5; }
.fields dt span code { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.fields dd { font-size: 15px; line-height: 1.6; color: var(--text-2); min-width: 0; }
.fields dd code { font-size: 12.5px; }
.fields.narrow > div { grid-template-columns: 176px minmax(0, 1fr); }
.fields .status { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.table { border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th { padding: 12px 18px 11px; text-align: left; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--edge); white-space: nowrap; }
th code { font-size: 11px; background: none; padding: 0; color: inherit; text-transform: none; letter-spacing: 0; }
td { padding: 12px 18px; vertical-align: top; color: var(--text-2); border-bottom: 1px solid var(--edge); }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.num { font-variant-numeric: tabular-nums; }
td.strong { color: var(--text); font-weight: 600; }
td code { font-size: 12.5px; white-space: nowrap; }
td.wrap code { white-space: normal; }

/* ---------------------------------------------------------------- the life of a solve, as a small picture */
.states { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); max-width: none; }
.states-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.states-row.is-side { padding-top: 14px; border-top: 1px solid var(--edge); }
.state { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); background-image: var(--chip); box-shadow: var(--chip-shadow); font: 500 13px/1 var(--mono); color: var(--text); white-space: nowrap; }
.state.is-final { background-image: none; box-shadow: inset 0 0 0 1px var(--edge-strong); color: var(--text-2); }
.state.is-ok::before, .state.is-bad::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3fb89a; }
.state.is-bad::before { background: var(--bad); }
.state-end { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.arrow { position: relative; flex: none; width: 22px; height: 1px; background: var(--text-faint); }
.arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--text-faint); border-right: 1px solid var(--text-faint); transform: rotate(45deg); }
.states-note { font-size: 13px; color: var(--text-faint); }
.errors-table table { font-size: 14px; }
.errors-table td:nth-child(3) code { white-space: normal; }
.errors-table td:nth-child(4) { min-width: 128px; }
.errors-table tr:has(:target) td { background: rgb(205 218 255 / 0.08); }
.errors-table td h3 { margin: 0; font: inherit; letter-spacing: 0; }
.errors-table td h3 .anchor { display: none; }
.errors-table td:nth-child(2) { white-space: nowrap; }
.fields dt b { font: 600 15px/1.4 var(--display); letter-spacing: -0.01em; color: var(--heading); }

/* ---------------------------------------------------------------- the solved spot: a solid plane with a header strip */
.intro { display: grid; gap: 28px; }
.intro > * + * { margin-top: 0; }
.intro .eyebrow { margin-bottom: -12px; }
.spot { border-radius: 18px; background-color: var(--surface-solid); background-image: radial-gradient(120% 80% at 50% 0%, rgb(205 218 255 / 0.05), transparent 70%), linear-gradient(180deg, rgb(255 255 255 / 0.015), transparent); box-shadow: inset 0 0 0 1px var(--edge), 0 30px 80px -40px rgb(0 0 0 / 0.8); max-width: none; overflow: hidden; }
.spot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--edge); }
.spot-meta { font: 400 12.5px/1.5 var(--mono); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.spot-meta b { font-weight: 500; color: var(--text-2); }
.spot-body { padding: 20px 18px 20px; display: grid; gap: 14px; }
.spot-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.spot-title span { letter-spacing: 0.08em; }
.pc { width: 32px; height: 44px; font-size: 16px; }
.pc.sm { width: 24px; height: 32px; border-radius: 4px; font-size: 12px; }
.mix { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: rgb(205 218 255 / 0.08); }
.mix i { display: block; height: 100%; background-image: linear-gradient(180deg, rgb(255 255 255 / 0.13), transparent 55%, rgb(0 0 0 / 0.16)); }
.mix .check { background-color: var(--act-check); }
.mix .bet { background-color: var(--act-bet); }
.mix .allin { background-color: var(--act-allin); }
.mix .fold { background-color: var(--act-fold); }
.mix.tall { height: 22px; border-radius: 6px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.keys span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.keys i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.keys b { font-weight: 600; color: var(--heading); }
.keys .check { background: var(--act-check); }
.keys .bet { background: var(--act-bet); }
.keys .allin { background: #7e2239; }
.hands { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--edge); }
.hand { display: grid; grid-template-columns: 60px minmax(0, 1fr) 168px; gap: 14px; align-items: center; font: 400 12px/1.4 var(--mono); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.hand .what { text-align: right; white-space: nowrap; }
.spot-foot { padding: 12px 18px; border-top: 1px solid var(--edge); font-size: 13px; color: var(--text-faint); }

.read { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center; padding: 20px; border-radius: var(--r-card); background-image: var(--plane); box-shadow: var(--plane-shadow); max-width: none; }
.read::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--ring);
  -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);
}
.read .mix { grid-column: 1 / -1; }
.read table { grid-column: 1 / -1; }
.read th, .read td { padding: 9px 0 9px 16px; }
.read th:first-child, .read td:first-child { padding-left: 0; }
.read-title { font-size: 14px; color: var(--text-2); }
.read-title b { display: block; font: 600 17px/1.35 var(--display); letter-spacing: -0.01em; color: var(--heading); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.sw.check { background: var(--act-check); }
.sw.bet { background: var(--act-bet); }
.sw.allin { background: #7e2239; }

.price-live { display: grid; gap: 18px; max-width: none; }
.price-live > * + * { margin-top: 0; }
.price-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); }
.price-col { padding: 16px 18px; min-width: 0; }
.price-col + .price-col { border-left: 1px solid var(--edge); }
.price-col h4 { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.price-col dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.price-col dt { color: var(--text-2); }
.price-col dd { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------------------------------------------------------------- the terms: numbered clauses */
.legal-meta { font: 400 12.5px/1.5 var(--mono); letter-spacing: 0.02em; color: var(--text-faint); }
.legal-toc { display: none; position: relative; padding: 18px 20px 20px; border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); max-width: none; }
.legal-toc p { margin: 0 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.content .legal-toc ol { columns: 2; column-gap: 32px; display: block; padding-left: 26px; max-width: none; font-size: 15px; line-height: 1.5; }
.legal-toc li { padding: 3px 0; break-inside: avoid; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--text); text-decoration: underline; text-decoration-color: currentColor; }
.legal-toc a:active { color: var(--text-muted); }
.legal h2 { font-size: 1.3rem; margin-top: 48px; }
.legal h2 + .clause { margin-top: 14px; }
.legal .clause + .clause { margin-top: 10px; }
.clause { display: grid; grid-template-columns: 52px minmax(0, 1fr); max-width: none; }
.clause .n { font: 400 13px/2 var(--mono); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.clause.sub { padding-left: 52px; grid-template-columns: 40px minmax(0, 1fr); }

@media (max-width: 1199px) {
  .page { grid-template-columns: minmax(0, 780px); justify-content: start; }
  .onpage { display: none; }
  .legal-toc { display: block; }
}
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .js .side { display: none; }
  .side { position: static; order: 2; height: auto; padding: 0 0 56px; }
  .side-nav { overflow: visible; }
  .page { padding-top: 28px; }
}
@media (max-width: 719px) {
  body { font-size: 15px; }
  .layout { padding: 0 16px; }
  .lead { font-size: 1.05rem; }
  pre { font-size: 12px; padding: 14px; }
  .content > h2 { margin-top: 44px; }
  .how, .map { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .pager .prev, .pager .next { grid-column: 1; text-align: left; }
  .step-card { padding: 18px 16px 16px; }
  .step-row a { padding: 0 12px 0 6px; }
  .step-row a span { display: none; }
  .step-row a[aria-current='step'] span { display: inline; }
  .step-row a:not([aria-current='step']) { padding: 0 7px; }
  .step-card pre { max-height: none; }
  .expect { grid-template-columns: minmax(0, 1fr); }
  .route, .way { margin-top: 44px; padding-top: 24px; }
  .map-card a span { display: none; }
  .fields > div, .fields.narrow > div { grid-template-columns: minmax(0, 1fr); padding: 13px 2px; }
  .fields dt span { display: inline; margin-left: 8px; }
  .fields dd { font-size: 14px; }
  table { font-size: 14px; }
  th, td { padding: 10px 14px; }
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td { display: block; }
  .table.stack thead { display: none; }
  .table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--edge); }
  .table.stack tbody tr:last-child { border-bottom: 0; }
  .table.stack td { padding: 2px 0; border: 0; text-align: left; }
  .table.stack td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .table.stack td[data-label]::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); padding-top: 4px; }
  .table.stack td[data-label] > .v { min-width: 0; }
  .table.stack td.strong { padding-bottom: 4px; font-family: var(--display); font-size: 16px; color: var(--heading); }
  .table.stack td:first-child:not([data-label]) { padding-bottom: 4px; }
  .states { padding: 16px; }
  .arrow { width: 14px; }
  .table.stack td code { white-space: normal; }
  .price-cols { grid-template-columns: 1fr; }
  .price-col + .price-col { border-left: 0; border-top: 1px solid var(--edge); }
  .hand { grid-template-columns: 54px minmax(0, 1fr); }
  .hand .what { grid-column: 1 / -1; text-align: left; margin-top: -6px; }
  .spot-head, .spot-body { padding-left: 14px; padding-right: 14px; }
  .spot-foot { padding: 12px 14px; }
  .content .legal-toc ol { columns: 1; }
  .clause { grid-template-columns: 44px minmax(0, 1fr); }
  .clause.sub { padding-left: 44px; grid-template-columns: 34px minmax(0, 1fr); }
  .read { padding: 16px; }
  .read .opt { display: none; }
  .read th, .read td { padding-left: 10px; }
}
