/* kwker.io - the product site (the documentation lives under /docs with its own styles) */
/* Inter (SIL Open Font License 1.1, userdocs/assets/fonts/OFL.txt), the latin subset; system fonts until it loads */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/docs/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef2f0;
  --ink: #0f1513;
  --muted: #55615b;
  --line: #dce3df;
  --accent: #0a7650;
  --accent-ink: #ffffff;
  --accent-soft: #dff3e9;
  --bar: #c7d3cd;
  --code-bg: #0f1513;
  --code-ink: #e6eee9;
  --code-dim: #8fa198;
  --shadow: 0 1px 2px rgba(15, 21, 19, .06), 0 8px 24px rgba(15, 21, 19, .06);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c100e;
    --surface: #131a17;
    --surface-2: #18211d;
    --ink: #e8efeb;
    --muted: #9aa8a1;
    --line: #25302b;
    --accent: #3ddc97;
    --accent-ink: #06130d;
    --accent-soft: #10271c;
    --bar: #2c3a33;
    --code-bg: #0a0e0c;
    --code-ink: #e6eee9;
    --code-dim: #7f9188;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > footer { flex: none; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
code, pre { font-family: var(--mono); }
:not(pre) > code { font-size: .88em; }   /* (monospace runs large next to Inter: inline code at the text's visual size) */
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 22px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
/* the header buttons: one size on product pages, docs and playground (34 px); the text 1.5 px above the middle, where
   "Try it" (lowercase, a descender) looks centred */
.top .btn { height: 34px; padding: 0 14px 3px; font-size: .9rem; line-height: 1.2; }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: var(--accent-ink); }
/* phones: the brand, Try it and a Menu button that drops down every link */
.nav-small { display: none; margin-left: auto; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); user-select: none; }
/* icon buttons (the phone header: account, menu) */
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s, transform .1s; }
.icon-btn:hover { border-color: var(--muted); }
.icon-btn:active { transform: scale(.94); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the account link: a person icon in the bar (labelled Sign in, or Account once signed in); a line in the phone menu */
.top nav a.icon-btn, .top nav a.icon-btn:hover { padding: 0; color: var(--ink); }
/* (the actions at the right end: Try it, then the account icon, closer together than the text links) */
.top nav .nav-act { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; }
/* (account pages on wide screens: the header spans the window and the logo sits centred over the sidebar) */
@media (min-width: 901px) {
  body.acct-app header.top .wrap { max-width: none; padding-inline: 0 clamp(16px, 4vw, 48px); }
  body.acct-app header.top .brand { flex: none; width: var(--side-w, 248px); justify-content: center; }
}
.top nav a.nav-acct[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--muted); }
.top .menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 12rem; margin: 0; padding: 6px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.top .menu nav a { padding: 11px 12px; border-radius: 6px; color: var(--ink); font-size: 1rem; }
.top .menu nav a:hover { background: var(--surface); }
.top .menu nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .top .nav-full { display: none; }
  .nav-small { display: flex; }
}

/* hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 18px; text-wrap: balance; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.viz { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 16px; box-shadow: var(--shadow); }
.viz figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--muted); margin-top: 12px; font-family: var(--mono); }
.bars { display: block; width: 100%; height: auto; }
.bars rect { fill: var(--bar); }
.bars .s rect { fill: var(--accent); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-block: 44px 36px; } }

/* sections */
section { padding-block: 56px; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
/* (two plain sections in a row: one gap and a hairline across the content, not two paddings of blank page) */
section:not(.alt):not(.page-head) + section:not(.alt) { padding-top: 0; }
section:not(.alt):not(.page-head) + section:not(.alt) > .wrap { padding-top: 56px; background: linear-gradient(var(--line), var(--line)) 0 -56px / 100% 1px no-repeat content-box padding-box; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 1.1rem; margin: 0 0 6px; letter-spacing: -.005em; }
.sub { color: var(--muted); max-width: 44em; margin: 0 0 32px; font-size: 1.05rem; }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--surface); padding: 22px 20px; }
.stat .num { display: block; font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
section.alt .card { background: var(--bg); }
.card p { margin: 0 0 14px; color: var(--muted); font-size: .96rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; }
.card .more::after { content: " \2192"; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* code */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.code { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.code [role="tablist"] { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid #22302a; overflow-x: auto; }
.code [role="tab"] { background: none; border: 0; color: var(--code-dim); font: 600 .85rem var(--sans); padding: 8px 12px; border-radius: 6px 6px 0 0; cursor: pointer; }
.code [role="tab"][aria-selected="true"] { color: var(--code-ink); background: #1a2621; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.code .guide { display: block; padding: 10px 20px 14px; border-top: 1px solid #22302a; font: 600 .88rem var(--sans); color: var(--code-ink); text-decoration: none; }
.code .guide::after { content: " \2192"; }
.code .guide:hover { text-decoration: underline; }
/* code boxes (tools/site_code.mjs: the documentation's box, styled by /docs/assets/repl.css) inside a .code panel - the
   panel draws the frame; the box keeps its bar (language, where it runs, Copy, Run), code and Output */
.code .repl { margin: 0; border: 0; border-radius: 0; }
.code .repl-static pre.repl-code { margin: 0; padding: 14px 18px; background: var(--repl-bg); color: var(--repl-ink); font: 13.5px/1.6 var(--mono); tab-size: 4; overflow-x: auto; }
.code .repl-static pre.repl-code code { font: inherit; background: none; padding: 0; }
.code .repl pre.repl-text { padding: 6px 14px 12px; font-size: 13px; line-height: 1.55; }
.code .repl + .guide { border-top-color: var(--repl-line); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: .9rem; }
section.alt .chips li { background: var(--bg); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgb(15 21 19 / .04); }
code.sha { font-size: .78rem; word-break: break-all; }   /* (download page: 64-digit SHA-256 checksums) */
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
/* (headings wrap - balanced, two lines at most in practice - so a wide comparison table fits the page instead of scrolling) */
th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); text-wrap: balance; vertical-align: bottom; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
/* (comparison tables: a model or runtime name never breaks; rows of one model share a faint rule, a new model a full one;
   the rows with the bold - fastest - figures are tinted) */
/* (wide comparison tables - four columns or more, figures besides a price - keep the model and runtime names on one line;
   narrow tables wrap, so they fit a phone) */
.table-wrap:has(th:nth-child(5)):has(td.num:not(.price)) td:nth-child(-n+2):not(.num) { white-space: nowrap; }
@media (min-width: 561px) { .table-wrap:has(th:nth-child(4)):has(td.num:not(.price)) td:nth-child(-n+2):not(.num) { white-space: nowrap; } }
.table-wrap td.num, .table-wrap td.nw { white-space: nowrap; }   /* (a figure - "€1,500 / year", "2.10×" - never breaks over two lines) */
.table-wrap tbody tr:has(+ tr > td:first-child:empty) > td { border-bottom-color: color-mix(in srgb, var(--line) 45%, transparent); }
/* (grouped tables - a model's rows under one name, the later rows' first cell empty: the fastest row of each group is
   tinted; tables with a bold figure in every row are not) */
.table-wrap:has(td:first-child:empty) tbody tr:has(> td.num.price) { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.table-wrap:has(td:first-child:empty) tbody tr:has(> td.num.price):hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
th code { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; color: inherit; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
.price { font-weight: 700; }
.fmt { margin-left: .4em; font-size: .78em; font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { th, td { padding: 10px 12px; } th:first-child, td:first-child { min-width: 9rem; } }
/* (four-column tables - a name and three figures, or a few words per cell - fit a phone too: text cells wrap, headings set smaller) */
@media (max-width: 560px) {
  .table-wrap:has(th:nth-child(4):last-child):has(td.num) :is(th, td):not(.num, .nw) { white-space: normal; }
  .table-wrap:has(th:nth-child(4):last-child):has(td.num) :is(th, td) { min-width: 0; }
  .table-wrap:has(th:nth-child(4):last-child):not(:has(th.num:nth-child(2))) table { font-size: .86rem; }   /* (text tables: a little smaller) */
  .table-wrap:has(th:nth-child(4):last-child) :is(th, td) { padding-inline: 8px; }
  .table-wrap:has(th:nth-child(4):last-child) table { font-size: .9rem; }
  .table-wrap:has(th:nth-child(4):last-child) th { font-size: .64rem; letter-spacing: .03em; }
  .table-wrap:has(th:nth-child(4):last-child):has(th.num:nth-child(2)) :is(th, td).num { width: 1%; }   /* (a name and three figures: figures as narrow as they are, the name gets the rest) */
}
/* (grouped tables on a phone: no sideways scrolling - the table becomes a grid whose rows are the runtimes with their
   figures beside them, each model's name a heading row across it; the column count from the heading row) */
.table-wrap:has(th:nth-child(4):last-child) { --gcols: 2; }
.table-wrap:has(th:nth-child(5):last-child) { --gcols: 3; }
.table-wrap:has(th:nth-child(6):last-child) { --gcols: 4; }
@media (max-width: 560px) {
  .table-wrap:has(td:first-child:empty) table { display: grid; grid-template-columns: minmax(5.5rem, 1fr) repeat(var(--gcols, 3), auto); font-size: .86rem; }
  .table-wrap:has(td:first-child:empty) :is(thead, tbody, tr) { display: contents; }
  .table-wrap:has(td:first-child:empty) :is(th, td) { padding: 9px 10px; min-width: 0; }
  .table-wrap:has(td:first-child:empty) th { font-size: .62rem; letter-spacing: .03em; }
  .table-wrap:has(td:first-child:empty) td .delta { display: block; margin: 1px 0 0; }
  .table-wrap:has(td:first-child:empty) :is(th:first-child, td:first-child:empty) { display: none; }
  .table-wrap:has(td:first-child:empty) td:first-child { grid-column: 1 / -1; font-weight: 700; background: var(--surface-2); padding-block: 8px; }
  .table-wrap:has(td:first-child:empty):has(td.num) tbody td:nth-child(2):not(.num) { white-space: normal; }  /* (beats the wide tables' nowrap) */
  .table-wrap:has(td:first-child:empty) tr:has(> td.num.price) > td:not(:first-child) { background: color-mix(in srgb, var(--accent) 6%, transparent); }
}

/* backend band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }
.meter { display: grid; gap: 14px; }
.meter div { display: grid; grid-template-columns: 9.5em 1fr 4.5em; gap: 12px; align-items: center; font-size: .92rem; }
.meter span.track { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.meter span.fill { display: block; height: 100%; background: var(--bar); border-radius: 6px; }
.meter span.fill.k { background: var(--accent); }
.meter b { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 460px) { .meter div { grid-template-columns: 7em 1fr 4em; font-size: .85rem; } }

/* pricing teaser */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: var(--muted); }

/* page header (inner pages) */
.page-head { padding-block: 56px 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 12px; }
.prose { max-width: 46em; }
/* (a page's text column inside the site's wrap: the wrap keeps its full width, so the text starts at the same left edge
   as the sections below it, and only the text itself keeps a readable measure) */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 46em; }
.page-head .wrap.prose > h1 { max-width: none; text-wrap: balance; }
.page-head .wrap.prose > .lede { max-width: 44em; }
/* (news: the list and every post in one centered reading column, head included) */
.wrap.prose.col { max-width: calc(46em + 40px); }
.wrap.prose.col > * { max-width: none; }
.prose h2 { margin-top: 40px; font-size: 1.5rem; }
.prose > h2:first-child { margin-top: 0; }   /* (the section's own padding is the space above its first heading) */
.prose p, .prose li { color: var(--ink); }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }

/* footer: the brand with the mailing-list sign-up, then three columns of links, then one line */
footer.site-foot { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px 32px; padding-block: 44px 36px; }
.foot-brand { display: grid; align-content: start; gap: 10px; min-width: 0; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand .foot-sub-title { margin: 0; color: var(--ink); font-weight: 600; font-size: .86rem; }
.foot-col { display: grid; align-content: start; justify-items: start; gap: 9px; }
.foot-col h2 { margin: 0 0 4px; font-size: .86rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
footer.site-foot a { color: var(--muted); text-decoration: none; transition: color .15s; }
footer.site-foot a:hover { color: var(--ink); }
footer.site-foot .brand { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 16px 22px; font-size: .82rem;
  background: linear-gradient(var(--line), var(--line)) 0 -16px / 100% 1px no-repeat content-box padding-box; }  /* (the rule spans the content, not the side padding) */
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding-block: 36px 28px; } }

@media (prefers-reduced-motion: no-preference) {
  .bars .s rect { transform-origin: bottom; transform-box: fill-box; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { transform: scaleY(.15); } }
}

/* hero results (the workloads, measured) */
.results { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 14px; box-shadow: var(--shadow); margin: 0; }
.results ol { list-style: none; margin: 0; padding: 0; display: grid; }
.results li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); }
.results li:first-child { border-top: 0; }
.results .what { font-weight: 600; color: var(--ink); }
.results .vs { grid-column: 1; font-size: .86rem; color: var(--muted); }
.results .x { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 1.45rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results figcaption { font-size: .8rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
/* (a card's result sits just above its link, at the same height in every card of a row) */
.card .gain + .more { margin-top: 0; }
.card .gain { margin: auto 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; color: var(--muted); }
.steps li strong { color: var(--ink); display: block; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
/* a perplexity cell's change from the model's full-precision result (benchmarks, llm): a muted figure beside the value */
td .delta { margin-left: .45em; font-size: .82em; color: var(--muted); white-space: nowrap; }
/* mailing list sign-up (footer, news pages, /subscribe/ results) and the news list */
.subscribe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.subscribe label { color: var(--ink); font-weight: 600; margin-right: 4px; }
.subscribe input[type="email"] { flex: 1 1 220px; max-width: 340px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.subscribe input[type="email"]:focus { border-color: var(--accent); outline: none; }
.subscribe .btn { cursor: pointer; font: inherit; font-weight: 600; }
.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the footer's sign-up: one line - the email field with a small button inside it */
footer .subscribe { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; max-width: 22rem; padding: 4px 4px 4px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); transition: border-color .15s, box-shadow .2s; }
footer .subscribe:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
footer .subscribe input[type="email"] { flex: 1 1 0; width: 0; min-width: 0; max-width: none; padding: 5px 10px; border: 0; background: transparent; font-size: .88rem; }
footer .subscribe input[type="email"]:focus { outline: none; }
footer .subscribe .btn { flex: none; height: 28px; padding: 0 11px; border-radius: 7px; font-size: .78rem; line-height: 1; box-shadow: none; }
section.post-body { padding-top: 8px; }
.news-tools { display: grid; gap: 14px; margin: 0 0 30px; }
.news-tools[hidden], .post-none[hidden], .post-item[hidden] { display: none; }
.news-search input {
  width: 100%; max-width: 28rem; padding: 11px 14px 11px 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a978f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 18px;
  transition: border-color .15s, box-shadow .2s;
}
.news-search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tag-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: .85rem; font-weight: 500; cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s;
}
.tag-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tag-toggle:hover { border-color: var(--muted); }
.tag-toggle:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); color: var(--ink); }
.tag-toggle:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag-toggle::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); box-sizing: border-box; transition: background .15s, border-color .15s; }
.tag-toggle:has(input:checked)::before {
  border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.tag-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1.5; }
.post-none { color: var(--muted); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list > li:not(.post-item) { color: var(--muted); }
.post-item {
  position: relative; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color .15s, transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
}
.post-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.post-item time, .page-head time { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.post-item h2 { margin: 4px 0 6px; font-size: 1.22rem; letter-spacing: -.01em; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-item:hover h2 a { color: var(--accent); }
.post-item p { margin: 0; color: var(--muted); }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.post pre { margin: 18px 0; padding: 14px 18px; overflow-x: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; line-height: 1.55; }
.post .table-wrap { margin: 18px 0; }
.post th, .post td { white-space: nowrap; }

/* account pages (/account/: sign-in, companies, licenses) */
.acct .acct-who { color: var(--muted); font-size: .92rem; }
form.inline { display: inline; margin: 0; }
button.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.acct-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 32rem; margin: 18px 0; }
.acct-form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; font-weight: 600; }
.acct-form input:not([type="checkbox"]):not([type="radio"]), .acct-form select, .acct-form textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.acct-form input:focus, .acct-form select:focus, .acct-form textarea:focus { border-color: var(--accent); outline: none; }
.acct-form .opt { color: var(--muted); font-weight: 400; }
.acct-form textarea { resize: vertical; min-height: 6rem; line-height: 1.45; }
.acct-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.support-form { max-width: 40rem; }
.acct-form > .btn { justify-self: start; justify-content: center; min-width: 8rem; font: inherit; font-weight: 600; cursor: pointer; }
.acct-form fieldset { display: grid; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.acct-form legend { padding: 0 6px; font-weight: 600; }
.acct-form .acct-tier, .acct-form .acct-check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.acct-tier span { flex: 1; }
.acct-orgs { color: var(--muted); }
.acct .btn { cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.prose pre { max-width: 100%; overflow-x: auto; }
/* (phones: the account tables as one card a row, each cell with its column's name) */
@media (max-width: 640px) {
  .acct .table-wrap table, .acct .table-wrap tbody, .acct .table-wrap tr, .acct .table-wrap td { display: block; width: 100%; }
  .acct .table-wrap thead { display: none; }
  .acct .table-wrap tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .acct .table-wrap td { padding: 3px 12px; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .acct .table-wrap td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 7.5em; color: var(--muted); font-size: .85rem; }
  .acct .table-wrap td:empty { display: none; }
}
