/* threefold.eco content pages. Loaded after /styles.css (web/styles.css), the landing's design
   system: tokens, type, cards, tiles, pills, buttons, header and footer all come from there.
   This file only adds what content pages need: page heads, prose, code, tables, docs, blog. */

/* ===== site pages =====
   Everything a content page shares, and the pages built from site/pages/ and the data pages. Owner: builder 1 (P2). */
/* inset-inline-start, not left: on a right-to-left page a box 9999px to the left widens the page to 11,000px */
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { inset-inline-start: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.site main:focus { outline: none; }
.site a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* links in running text: the accent (--link, threefold blue) and underlined, the same as in the app */
.site main :is(p, td, figcaption) a:not(.btn, .ghost), .site .prose li a { color: var(--link); }
.site { overflow-wrap: break-word; }

/* page head: the landing's centred eyebrow, hero and lede, a size down */
.page-head { padding: 24px 0 8px; }
.page-head h1.hero { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.28; max-width: 860px; overflow-wrap: break-word; padding-block: 0.04em; }
:is(html:lang(ar), html:lang(he), html:lang(th), html:lang(hi), html:lang(bn)) .page-head h1.hero { line-height: 1.34; }
.page-head .lede { max-width: 700px; }

/* Keep the 11-link header inside 1280px desktop screens and across longer translated labels (Issue #401). */
.site .nav { gap: 12px; }
.site .nav .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.site .nav .nav-links a { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1360px) {
  .site .nav .nav-links a .ic { display: none; }
}

/* Script-aware system fallbacks after the Latin brand fonts so non-Latin pages never trigger mismatched fallback metrics. */
html:lang(ja) { --font: "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif; --mono: "Nudica Mono", "Hiragino Kaku Gothic ProN", "Noto Sans JP", ui-monospace, monospace; }
html:lang(ko) { --font: "Geist", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; --mono: "Nudica Mono", "Apple SD Gothic Neo", "Noto Sans KR", ui-monospace, monospace; }
html:lang(zh-Hans) { --font: "Geist", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; --mono: "Nudica Mono", "PingFang SC", "Noto Sans SC", ui-monospace, monospace; }
html:lang(zh-Hant) { --font: "Geist", "PingFang TC", "Noto Sans TC", system-ui, sans-serif; --mono: "Nudica Mono", "PingFang TC", "Noto Sans TC", ui-monospace, monospace; }
html:lang(ar) { --font: "Geist", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif; --mono: "Nudica Mono", "Geeza Pro", "Noto Sans Arabic", ui-monospace, monospace; }
html:lang(he) { --font: "Geist", "Arial Hebrew", "Noto Sans Hebrew", system-ui, sans-serif; --mono: "Nudica Mono", "Arial Hebrew", "Noto Sans Hebrew", ui-monospace, monospace; }
html:lang(th) { --font: "Geist", "Thonburi", "Noto Sans Thai", system-ui, sans-serif; --mono: "Nudica Mono", "Thonburi", "Noto Sans Thai", ui-monospace, monospace; }
html:lang(hi) { --font: "Geist", "Kohinoor Devanagari", "Noto Sans Devanagari", system-ui, sans-serif; --mono: "Nudica Mono", "Kohinoor Devanagari", "Noto Sans Devanagari", ui-monospace, monospace; }
html:lang(bn) { --font: "Geist", "Kohinoor Bangla", "Noto Sans Bengali", system-ui, sans-serif; --mono: "Nudica Mono", "Kohinoor Bangla", "Noto Sans Bengali", ui-monospace, monospace; }

/* Zero-JS language switcher for translated pages (main, issue 401). Its colours use the redesign's token names: main
   wrote --fg, --soft and --accent-soft, the aliases that were deleted on 24 Nov 2026 (they stood for --ink and --fill-2). */
.lang-bar { max-width: 1180px; margin: 0 auto; padding: 0 32px 16px; display: flex; justify-content: flex-end; }
.lang-switch { position: relative; font-size: 13px; }
.lang-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; user-select: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch[open] > summary { color: var(--ink); background: var(--fill-2); }
.lang-switch nav { position: absolute; inset-inline-end: 0; bottom: calc(100% + 8px); z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 4px; padding: 10px; max-height: 320px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.lang-switch nav a { padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.lang-switch nav a:hover { color: var(--ink); background: var(--fill-2); }
.lang-switch nav a[aria-current="page"] { color: var(--ink); background: var(--fill-2); font-weight: 500; }
@media (max-width: 640px) {
  .lang-bar { padding: 0 16px 16px; }
  .lang-switch nav { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
}
.page-head .actions { justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.site:not(.sx) h2 { margin-top: 64px; }
.site h2.center + .sub { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.site .card h3 { font-size: 19px; }
.site .card p { color: var(--muted); margin: 6px 0 0; line-height: 1.55; font-size: 15px; }
.site .card p strong, .site .card p b { color: var(--ink); font-weight: 500; }
.tile .tile-n { font-size: 22px; }
.source { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 14px 0 0; }
.source.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }

/* grid and flex children may shrink below their content: code blocks scroll instead */
.site .grid > *, .site .stats > *, .exchange > *, .docs > *, .plans > *, .actions > *, .footer > *, .sitebar-in > * { min-width: 0; }

/* numbers row: the landing's .stats, four across */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; }
.stat .n { font-family: var(--font); }

/* example exchange (how it works) */
.exchange { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.exchange .bubble { margin: 0 0 14px auto; }
.example pre { max-height: 520px; }

/* diagram */
.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan h3 { font-size: 22px; letter-spacing: -0.02em; }
.plan .price { font-family: var(--font-code); font-size: 13px; color: var(--muted); margin: 2px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.plan li span:last-child { text-align: end; font-weight: 500; }

/* closing call to action: the landing's .finale band, without the icon pile */
.site .finale { padding: 72px 32px 96px; margin: 96px 0 -40px; border-radius: 28px; }
.site .finale .sub { margin: 12px auto 0; max-width: 620px; }
.site .finale .actions { justify-content: center; margin-top: 28px; }


@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site .g2, .site .g3, .exchange { grid-template-columns: minmax(0, 1fr); }
  .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.four .stat + .stat { border-left: 0; }
  .stats.four .stat { border-top: 1px solid var(--line); }
  .stats.four .stat:nth-child(-n + 2) { border-top: 0; }
  .stats.four .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .site .finale { padding: 56px 20px 72px; }
}
/* the decorative mark would sit behind headlines on narrow screens */
@media (max-width: 700px) {
  .site .finale::before { display: none; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .site .stat .n { font-size: 30px; }
}
@media print { .sitebar, .footer, .docs-nav, .toc, .copy, .skip { display: none !important; } }
.tile.dark :not(pre) > code { background: var(--foot-fill); color: var(--on-ink); }
.tile.dark h3 { color: var(--on-ink); }

/* --- the site family (sx): the landing's manner on the pages in site/pages (front matter "class: sx"), scratch KIT.md 2b
   and 3a. The hero and every section heading on the column edge, one picture per section, Snuug's two rails with a
   hairline between sections, then the landing's centred closing ask. Values are tokens; the law's table is in
   web/AGENTS.md ("Building a screen"). The pages' live parts are web/views/site/<page>.js. */
body.sx main#main { max-width: none; margin: 0; padding: 0; min-height: 0; }
/* zero specificity, so every class below sets its own margins */
:where(.sx main) :where(h1, h2, h3, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(.sx main) :where(ul) { padding: 0; list-style: none; }
.sx-col { width: var(--col); max-width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.sx-rails { position: relative; border-bottom: 1px solid var(--rail); }
.sx-rails::before { content: ""; position: absolute; inset: 0 var(--rail-x); z-index: 0; border-inline: 1px solid var(--rail); pointer-events: none; }
.sx-rails > * { position: relative; z-index: 1; }
.sx-sec { padding-block: var(--section); }
.sx-rails > .sx-sec + .sx-sec { border-top: 1px solid var(--rail); }
.sx-hero { padding-block: var(--s10) var(--section); }
.sx-title { max-width: calc(18 * var(--ch-bold)); font-size: var(--t-cta); line-height: var(--lh-cta); font-weight: var(--w-bold); letter-spacing: var(--tr-display); color: var(--ink); text-wrap: balance; }
.sx-h { max-width: calc(24 * var(--ch-bold)); font-size: var(--t-h); line-height: var(--lh-h); font-weight: var(--w-bold); letter-spacing: var(--tr-head); color: var(--ink); text-wrap: balance; }
.sx-title em, .sx-h em { font-style: normal; color: var(--muted); }
.sx-lede { max-width: calc(44 * var(--ch)); margin-top: var(--hero-gap); font-size: var(--t-lede); line-height: var(--lh-lede); font-weight: var(--w-regular); letter-spacing: var(--tr-lede); color: var(--muted); text-wrap: balance; }
.sx-sec .sx-lede { margin-top: var(--site-head-gap); }
.sx-lede b { font-weight: var(--w-bold); }
.sx-pills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--hero-gap); }
.sx-pic { margin-top: var(--content); min-width: 0; }
.sx-small { font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.sx-small a, .sx-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.sx-small a:hover, .sx-link:hover { color: var(--ink); text-decoration-color: currentColor; }
/* the two pills, 44 tall and 16 px from their sides: the kit's black .btn (web/nav.js counts it), and the quiet grey one
   with Mobbin's arrow (the landing's pair) */
.sx .btn, .sx-quiet { height: var(--pill-h); min-height: 0; padding: 0 var(--s4); font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-ui); letter-spacing: var(--tr-ui); white-space: nowrap; }
.sx-quiet { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); border: 0; border-radius: var(--r-pill); background: var(--fill-2); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color var(--d1) var(--ease-hover); }
.sx-quiet:hover { background: var(--line); }
.sx-quiet::after { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16 10H3M9.73 16.32 15.63 10 9.73 3.68' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16 10H3M9.73 16.32 15.63 10 9.73 3.68' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; transition: translate var(--d2) var(--ease); }
.sx-quiet:hover::after { translate: 2px 0; }
.sx-quiet.no-arrow::after { display: none; }
.sx .btn:focus-visible, .sx-quiet:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* the closing ask: centred, a section's rhythm above and below (--section: 160, 120, 80), as every other section */
.sx-ask { display: flex; flex-direction: column; align-items: center; padding: var(--section) var(--gutter); text-align: center; }
.sx-ask .sx-title { max-width: calc(16 * var(--ch-bold)); margin-bottom: 0; }
.sx-ask > p { max-width: calc(44 * var(--ch)); margin-top: var(--site-head-gap); font-size: var(--t-body); line-height: var(--lh-body); color: var(--muted); text-wrap: balance; }
.sx-ask .sx-pills { justify-content: center; margin-top: var(--cta-row); }
/* a grey well round one picture (32 corners), and the white card inside it (corners smaller by the padding) */
.sx-well { padding: var(--s5); border-radius: var(--r-xl); background: var(--paper-2); min-width: 0; }
/* a part that waits for data: the kit's skeleton light; a part that could not load holds its place, calm */
.sx [aria-busy="true"] { pointer-events: none; }
.sx .is-state { display: block; }
.sx .is-state .empty { display: grid; justify-items: start; gap: var(--s2); padding: var(--s7) 0; text-align: left; }
.sx .is-state .empty b { font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink); }
.sx .is-state .empty p { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); }
/* the questions people ask (the FAQ partials: also each page's FAQPage data) */
.sx-faq { max-width: calc(72 * var(--ch)); }
.sx-faq h2 { display: none; }
.sx-faq p + h3 { margin-top: var(--s7); }
.sx-faq h3 { font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); color: var(--ink); }
.sx-faq p { margin-top: var(--s2); max-width: calc(60 * var(--ch)); font-size: var(--t-body); line-height: var(--lh-prose); color: var(--muted); }
.sx-faq code { font-family: var(--font-code); font-size: 0.875em; }
/* code on a grey well: the system monospace, long lines wrap (critique 2, fix 10); site.js adds Copy */
.sx pre:not(.code > pre) { position: relative; margin: 0; padding: var(--s4) var(--s4) var(--s4); border-radius: var(--r-md); background: var(--paper-2); font-family: var(--font-code); font-size: var(--t-small); line-height: var(--lh-small); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.sx pre code { font: inherit; background: none; padding: 0; white-space: inherit; }
.sx pre .copy { position: absolute; right: var(--s2); top: var(--s2); }
/* BUG-196: `.sx pre:not(.code > pre)` (padding shorthand) outranked the old `.sx pre:has(.copy)`, so the Copy button sat on the first line of code. The :not() here lifts it above. Remove when `.sx pre:not(.code > pre)` is gone. */
.sx pre:not(.code > pre):has(.copy) { padding-right: calc(var(--s4) + 64px); }
@media (max-width: 767px) {
  .sx-hero { padding-top: var(--s8); }
  .sx-well { padding: var(--s3); border-radius: var(--r-lg); }
}
@media print { .sx-rails::before { display: none; } .sx-ask { display: none; } }

/* --- pricing (pr-) --- */
.pr-hero .sx-title, .pr-hero .sx-lede { margin-inline: auto; text-align: center; }
.pr-hero .sx-title { max-width: calc(16 * var(--ch-bold)); }
.pr-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--site-grid-gap); }
.pr-plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; padding: var(--site-card-pad); border-radius: var(--r-lg); background: var(--paper-2); min-width: 0; }
.pr-name { font-size: var(--t-card); line-height: var(--lh-card); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.pr-fig { margin-top: var(--s4); font-size: var(--a-num); line-height: var(--a-num-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-head); font-variant-numeric: tabular-nums; }
.pr-fig > span { display: block; white-space: nowrap; }
.pr-pic { display: grid; align-content: center; gap: var(--s3); margin: var(--s5) calc(var(--s2) - var(--site-card-pad)) 0; padding: var(--s4); border-radius: var(--r-lg-in); background: var(--card); }
.pr-row { display: flex; align-items: center; min-width: 0; height: 32px; }
/* the first in a stack sits on top, so no icon or flag hides behind the next */
.pr-row > * { position: relative; }
.pr-row > :nth-child(1) { z-index: 5; } .pr-row > :nth-child(2) { z-index: 4; } .pr-row > :nth-child(3) { z-index: 3; } .pr-row > :nth-child(4) { z-index: 2; } .pr-row > :nth-child(5) { z-index: 1; }
.pr-ic { display: block; flex: none; width: 32px; height: 32px; border-radius: var(--r-icon); background: var(--paper-2); box-shadow: 0 0 0 2px var(--card); overflow: hidden; }
.pr-ic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-ic + .pr-ic { margin-left: calc(-1 * var(--s2)); }
.pr-row .flag { width: 24px; height: 24px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 3px var(--card); }
.pr-row .flag + .flag { margin-left: calc(-1 * var(--s2)); }
.pr-more { flex: none; display: inline-grid; place-items: center; height: 24px; margin-left: var(--s3); padding-inline: var(--s2); border-radius: var(--r-pill); background: var(--fill-2); color: var(--muted); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-pills { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s5); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); }
.pr-pills > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pr-pills > span::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--tick) center / 11px no-repeat; mask: var(--tick) center / 11px no-repeat; } /* included: a tick, not a dot */
.pr-pills > .is-off { color: var(--quiet); font-weight: var(--w-regular); }
.pr-pills > .is-off::before { display: none; } /* not included: grey words, no mark */
.pr-btn { width: 100%; margin-top: var(--s5); }
.pr-plan .ghost.pr-btn { height: var(--pill-h); min-height: 0; padding: 0 var(--s4); font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-ui); letter-spacing: var(--tr-ui); }
.pr-incl { margin-top: var(--s6); padding-top: var(--s5); box-shadow: inset 0 1px 0 var(--line); }
.pr-incl > p { font-size: var(--t-small); line-height: var(--lh-small); color: var(--quiet); }
.pr-incl ul { display: grid; gap: var(--s2); margin-top: var(--s3); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink); }
.pr-incl li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2); }
.pr-incl li > svg { margin-top: 3px; }
.pr-note { margin-top: var(--s5); text-align: center; }
.pr-switch { display: none; }
/* hairline tables straight on white; plan columns hold numbers: right-aligned, tabular */
.pr-scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }
.sx .pr-table { width: 100%; border-collapse: collapse; font-size: var(--t-body); line-height: var(--lh-body); }
/* BUG-195: the docs block's `.site table`, `.site th` and `.site td` (12 px, bottom-aligned, a second border) outranked these rules, so a row's label sat 5 px below its values. The `.sx` prefix wins. Remove when the docs tables carry their own class (.doc-table) and `.site th` is gone. */
.sx .pr-table :is(th, td) { padding: var(--s4) 0 var(--s4) var(--s5); text-align: right; vertical-align: top; font-weight: var(--w-regular); font-size: inherit; line-height: inherit; white-space: normal; border-bottom: 0; font-variant-numeric: tabular-nums; box-shadow: inset 0 -1px 0 var(--line); }
.sx .pr-table :is(th, td):first-child { padding-left: 0; text-align: left; }
.sx .pr-table thead th { padding-top: 0; font-weight: var(--w-bold); color: var(--ink); box-shadow: inset 0 -1px 0 var(--line-2); }
.sx .pr-table tbody th { color: var(--muted); }
.sx .pr-table small { display: block; font-size: var(--t-small); line-height: var(--lh-small); color: var(--quiet); }
.sx .pr-table .is-no { color: var(--quiet); }
.sx .pr-table td > svg { vertical-align: -3px; }
.pr-limits { table-layout: fixed; }
.pr-limits :is(th, td):first-child { width: 32%; }
.pr-cost :is(th, td):first-child { width: 50%; }
.pr-cost td { text-align: left; color: var(--ink); }
.pr-after { margin-top: var(--s5); max-width: calc(72 * var(--ch)); }
.pr-big { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: var(--s5) var(--s7); }
.pr-big .bigcompare-say { max-width: calc(30 * var(--ch)); padding-bottom: var(--s3); }
/* What is free, under the figure: connect's sign-in list (.cn-modes), three across, at body size */
.pr-free .pr-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--site-grid-gap); margin-top: var(--s8); padding-top: var(--s5); box-shadow: inset 0 1px 0 var(--line); }
.pr-free .pr-facts :is(dt, dd) { font-size: var(--t-body); line-height: var(--lh-body); }
@media (max-width: 1099px) { .pr-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .sx .pr-table { font-size: var(--t-small); line-height: var(--lh-small); }
  .sx .pr-table :is(th, td) { padding: var(--s3) 0 var(--s3) var(--s4); }
  .pr-cost :is(th, td):first-child { width: 46%; }
  .pr-big { grid-template-columns: minmax(0, 1fr); }
  .pr-free .pr-facts { grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s6); }
}
/* a phone: one plan at a time under a sticky switch, which also picks the table's column (critique 2: pricing) */
@media (max-width: 639px) {
  .pr-plans { grid-template-columns: minmax(0, 1fr); }
  .pr-switch:not([hidden]) { display: block; position: sticky; top: 65px; z-index: 5; margin: 0 calc(-1 * var(--gutter)) var(--s3); padding: var(--s3) var(--gutter); background: var(--paper); }
  .pr-switch .seg { display: flex; width: 100%; }
  .pr-switch .seg > button { flex: 1; }
  .pr-plans.is-one > .pr-plan:not(.is-on) { display: none; }
  .pr-limits.is-one :is(th, td):not(:first-child) { display: none; }
  .pr-limits.is-one[data-show="free"] :is(th, td):nth-child(2), .pr-limits.is-one[data-show="indie"] :is(th, td):nth-child(3),
  .pr-limits.is-one[data-show="team"] :is(th, td):nth-child(4), .pr-limits.is-one[data-show="enterprise"] :is(th, td):nth-child(5) { display: table-cell; }
  .pr-limits.is-one :is(th, td):first-child { width: 62%; }
}


/* a skeleton drawn from the real template (the mock-ups' ghost): every text run becomes a grey block of its own size,
   pictures keep their box and lose their image, so nothing moves when the data lands. aria-hidden; still under
   reduced motion */
.sx-ghost { display: contents; pointer-events: none; }
.sx-ghost, .sx-ghost * { color: transparent !important; }
.sx-ghost :is(p, b, small, code, .bignum, .vs-row > span, .chat-call-tool, .chat-call-args) { width: fit-content; max-width: 100%; border-radius: var(--r-xs); background: linear-gradient(90deg, var(--paper-2) 30%, var(--skel-light) 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sx-ghost :is(p, b, small, code) :is(b, small, code, span) { background: none; animation: none; }
.sx-ghost .chat-you { width: auto; }
.sx-ghost img, .sx-ghost svg, .sx-ghost .vs-bar > i, .sx-ghost .chat-call-state { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .sx-ghost * { animation: none !important; } }

/* --- how it works (hw-) --- */
.hw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--site-grid-gap); }
.hw-tile { display: flex; flex-direction: column; aspect-ratio: 407 / 330; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); min-width: 0; }
.hw-tile figcaption { padding: var(--s5) var(--s5) 0; text-align: center; font-size: var(--t-label); line-height: var(--lh-label); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.hw-tpic { position: relative; flex: 1; min-height: 0; display: grid; overflow: hidden; }
.hw-tpic.is-state .empty { justify-items: center; text-align: center; padding: var(--s5); align-self: center; }
/* Store pages: one country's first screenshot rises from the tile's foot, its flag on the corner */
.hw-store { position: absolute; inset: 0; }
.hw-phone { position: absolute; left: 50%; top: var(--s5); width: 46%; aspect-ratio: 9 / 19.5; translate: -50% 0; overflow: hidden; border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-1); }
.hw-phone.is-wide { width: 78%; aspect-ratio: 16 / 9; top: 50%; translate: -50% -50%; }
.hw-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hw-tpic > .hw-phone.skel { box-shadow: none; }
.hw-flag { position: absolute; right: calc(27% - var(--s4)); top: var(--s3); z-index: 2; }
.hw-flag .flag { width: 32px; height: 32px; box-shadow: 0 0 0 1px var(--line), 0 0 0 3px var(--card); }
.hw-phone.is-wide + .hw-flag { right: calc(11% - var(--s4)); top: calc(50% - 4.4vw - var(--s4)); }
/* Charts: the top three, a medal on each, and the chart they lead */
.hw-chart { display: grid; align-content: center; justify-items: center; gap: var(--s5); }
.hw-podium { display: flex; align-items: flex-end; justify-content: center; }
.hw-podium > span { position: relative; }
.hw-podium .hw-ic, .hw-podium > .skel { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-icon); object-fit: cover; background: var(--card); box-shadow: var(--sh-1); }
.hw-podium > :nth-child(1) { rotate: -8deg; margin-right: calc(-1 * var(--s3)); }
.hw-podium > :nth-child(2) { z-index: 1; translate: 0 calc(-1 * var(--s3)); }
.hw-podium > :nth-child(2) .hw-ic, .hw-podium > .skel:nth-child(2) { width: 80px; height: 80px; }
.hw-podium > :nth-child(3) { rotate: 8deg; margin-left: calc(-1 * var(--s3)); }
.hw-podium .medal { position: absolute; right: -6px; bottom: -6px; z-index: 2; box-shadow: 0 0 0 2px var(--paper-2); }
.hw-noicon { padding: var(--s1); font-size: var(--t-small); line-height: var(--lh-small); text-align: center; overflow: hidden; }
.hw-pill { display: inline-flex; align-items: center; gap: var(--s2); height: 36px; padding: 0 var(--s4) 0 var(--s2); border-radius: var(--r-pill); background: var(--card); box-shadow: var(--sh-1); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); white-space: nowrap; }
.hw-pill.skel { width: 200px; box-shadow: none; }
.hw-pill small { font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-regular); color: var(--quiet); }
/* Videos and ads: two real videos with their views, and one real ad with how long it has run (ads have no pictures) */
.hw-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); align-content: center; height: 100%; padding: 0 var(--s5) var(--s5); }
.hw-vids { display: grid; gap: var(--s2); align-content: center; }
.hw-vid { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--card); }
.hw-vid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hw-views { position: absolute; left: var(--s2); bottom: var(--s2); padding: 2px var(--s2); border-radius: var(--r-pill); background: var(--scrim); color: var(--on-ink); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); }
.hw-ad { display: grid; align-content: space-between; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--card); min-width: 0; }
.hw-ad.skel { background: var(--card); animation: none; }
.hw-ad-top { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); }
.hw-ad-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-adic { width: 32px; height: 32px; flex: none; border-radius: var(--r-icon); box-shadow: var(--sh-ring); }
.hw-ad-where { display: flex; align-items: center; gap: 6px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); white-space: nowrap; overflow: hidden; }
.hw-ad b { display: block; margin-top: var(--s2); font-size: var(--t-card); line-height: var(--lh-card); font-weight: var(--w-bold); letter-spacing: var(--tr-head); font-variant-numeric: tabular-nums; }
.hw-ad small { display: block; font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.hw-ad .track { margin-top: var(--s2); }
/* What we hold: the figure beside its words, then one bar per country on one scale */
/* the figure over its words, so a longer number never narrows them (the skeleton keeps its height whatever the count) */
.hw-big { display: grid; gap: var(--s5); }
.hw-big .bigcompare-say { max-width: calc(40 * var(--ch)); }
.hw-hold .vs { grid-template-columns: minmax(96px, max-content) minmax(0, 1fr) max-content; margin-top: var(--s8); max-width: 760px; }
.hw-hold .vs-row { font-size: var(--t-body); line-height: var(--lh-body); }
.hw-hold .vs-row > span { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.hw-fkey { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); margin-top: var(--s6); }
.hw-fkey > p { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.hw-fkey > p > span { display: inline-flex; align-items: center; gap: var(--s2); }
.hw-fkey > p i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.hw-fkey > p i.is-old { background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
/* Your agent asks: the kit's agent exchange (lib/parts.js chat) beside the answer drawn */
.hw-ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; padding: var(--s8); border-radius: var(--r-xl); background: var(--paper-2); }
.hw-ask.is-state { display: block; }
.hw-ask .chat { padding: 0; background: none; }
.hw-waiting { margin-top: var(--s4); }
.hw-both { padding: var(--s5); border-radius: var(--r-xl-in); background: var(--card); min-width: 0; }
.hw-both-head, .hw-both-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px 48px; align-items: center; gap: var(--s3); }
.hw-both-head { padding-bottom: var(--s3); font-size: var(--t-small); line-height: var(--lh-small); color: var(--quiet); }
.hw-both-head > span:not(:first-child), .hw-both-row > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.hw-both-row { min-height: 44px; box-shadow: inset 0 1px 0 var(--line); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.hw-both-row > span:first-child { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.hw-both-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--w-medium); color: var(--ink); }
.hw-both-row img { flex: none; border-radius: var(--r-icon); box-shadow: var(--sh-ring); }
.hw-both-row .hw-icons { display: flex; gap: var(--s1); grid-column: 2 / -1; justify-content: end; }
.hw-eu { margin-top: var(--s5); }
/* the trust sections (how calls are metered, privacy, EU hosting): the live page's words, two facts to a row on grey */
.hw-trust-h { max-width: calc(30 * var(--ch-bold)); }
.hw-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--site-grid-gap); }
.hw-fact { min-width: 0; padding: var(--site-card-pad); border-radius: var(--r-lg); background: var(--paper-2); }
.hw-fact h3 { font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); color: var(--ink); }
.hw-fact p { margin-top: var(--s2); font-size: var(--t-body); line-height: var(--lh-prose); color: var(--muted); }
.hw-fact code { font-family: var(--font-code); font-size: 0.875em; overflow-wrap: anywhere; }
.hw-fact b { color: var(--ink); font-weight: var(--w-medium); }
@media (max-width: 768px) { .hw-trust { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) {
  .hw-tiles { grid-template-columns: minmax(0, 1fr); }
  .hw-tile { aspect-ratio: 4 / 3; }
  .hw-ask { grid-template-columns: minmax(0, 1fr); padding: var(--s5); }
}
@media (max-width: 767px) {
  .hw-big { grid-template-columns: minmax(0, 1fr); }
  .hw-hold .vs { margin-top: var(--s6); }
  .hw-hold .vs-row { font-size: var(--t-small); line-height: var(--lh-small); }
}

/* --- connect (cn-) --- */
.sx code.cn-url { padding: 0; background: none; font-family: var(--font-code); font-size: 0.85em; color: var(--ink); overflow-wrap: anywhere; }
.cn-well { display: grid; gap: var(--s3); }
/* the switch: the kit's .seg look, one row that scrolls sideways on a phone */
.cn-tabs { display: flex; gap: 2px; width: fit-content; max-width: 100%; padding: 2px; border-radius: var(--r-pill); background: var(--fill-2); overflow-x: auto; scrollbar-width: none; }
.cn-tabs::-webkit-scrollbar { display: none; }
.cn-tabs [role="tab"] { display: inline-flex; flex: none; align-items: center; gap: var(--s2); height: 32px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font: inherit; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); white-space: nowrap; cursor: pointer; }
.cn-tabs [role="tab"]:hover { color: var(--ink); }
.cn-tabs [role="tab"][aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-lift); }
.cn-tabs [role="tab"]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cn-mark { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
.cn-mark svg { width: 16px; height: 16px; }
.cn-mark-claude { color: var(--brand-claude); }
.cn-mark-opencode svg { width: 14px; height: 14px; }
/* The clients stay on one line: the page's script moves the ones that do not fit into a last "More" pill
   (wireMoreTabs, web/lib/fragments.js). Until it has measured, the row keeps its place and is not shown; without
   script, or if the script is two seconds late, the row shows and scrolls as before. */
.cn-tablist { display: flex; flex: none; gap: 2px; }
@media (scripting: enabled) { .cn-tabs[data-fit="wait"] { visibility: hidden; animation: cn-late 0s 2s forwards; } }
@keyframes cn-late { to { visibility: visible; } }
.cn-tabs[data-fit="done"] { overflow: visible; }
.cn-tabs .tabs-more > .menu-btn { height: 32px; min-height: 0; font-size: var(--t-small); line-height: var(--lh-small); }
.cn-tabs .tabs-more > .menu-btn.is-on { box-shadow: var(--sh-lift); }
/* the panels share one grid cell, so the card keeps the tallest client's height and nothing below jumps (critique 2) */
.cn-panels { display: grid; padding: var(--site-card-pad); border-radius: var(--r-xl-in); background: var(--card); min-width: 0; }
.cn-panel { grid-area: 1 / 1; min-width: 0; }
.cn-panel[data-off] { visibility: hidden; }
.cn-panel:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: var(--r-xs); }
.cn-panel p, .cn-panel table, .cn-panel .note { max-width: calc(72 * var(--ch)); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.cn-panel > * + * { margin-top: var(--s3); }
.cn-panel a { color: var(--ink); }
.cn-panel :not(pre) > code { font-size: 0.86em; }
.cn-panel table { border-collapse: collapse; width: 100%; }
.cn-panel :is(th, td) { padding: var(--s2) var(--s3) var(--s2) 0; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.cn-panel th { font-weight: var(--w-medium); color: var(--ink); }
.cn-panel .note { padding: var(--s3) var(--s4); border-radius: var(--r-md-in); background: var(--paper-2); }
.cn-panel .note > p { margin: 0; }
.cn-more > summary { cursor: pointer; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); color: var(--ink); }
.cn-more > table { margin-top: var(--s3); }
.cn-signin { padding: var(--site-card-pad); border-radius: var(--r-xl-in); background: var(--card); }
.cn-signin-h { font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); }
.cn-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s3); }
.cn-modes dt { font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); color: var(--ink); }
.cn-modes dd { margin-top: var(--s1); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.cn-modes code { font-size: 0.86em; }
/* Then ask it something: the question, the calls, the answer and its apps (the landing's agent tile) */
.cn-ask { display: grid; justify-items: center; padding: var(--s8); border-radius: var(--r-xl); background: var(--paper-2); }
.cn-ask.is-state { display: block; }
.cn-ask .chat { width: 100%; max-width: 560px; padding: 0; background: none; }
.cn-apps { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cn-apps img { width: 44px; height: 44px; border-radius: var(--r-icon); box-shadow: var(--sh-ring); }
.cn-apps small { display: inline-grid; place-items: center; height: 44px; padding: 0 var(--s3); border-radius: var(--r-md); background: var(--card); font-size: var(--t-small); color: var(--muted); }
@media (max-width: 899px) { .cn-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cn-panels, .cn-more > summary { cursor: pointer; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); color: var(--ink); }
.cn-more > table { margin-top: var(--s3); }
.cn-signin { padding: var(--s4); border-radius: var(--r-lg-in); }
  .cn-modes { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .cn-ask { padding: var(--s5); border-radius: var(--r-lg); }
}

/* --- visuals (vi-): the tool is the hero's picture --- */
.vi-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s5); }
.vi-pick { display: flex; align-items: center; gap: var(--s4); min-width: 0; min-height: 40px; }
.vi-pick > span { font-size: var(--t-small); line-height: var(--lh-small); color: var(--quiet); white-space: nowrap; }
.vi-pick .flagset { gap: var(--s2); }
.vi-find { margin-top: var(--s5); min-height: 48px; }
.vi-find .findstrip { font-size: var(--t-small); line-height: var(--lh-small); }
.vi-find .icon.sm { width: 24px; height: 24px; border-radius: var(--r-icon); }
.vi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--site-grid-gap); margin-top: var(--s5); }
.vi-grid.is-state, .vi-grid:has(> .empty) { display: block; }
.vi-card { display: grid; align-content: start; gap: var(--s4); min-width: 0; }
.vi-card .shotwell { aspect-ratio: 4 / 5; }
.vi-card .shotwell.shotwell-web { aspect-ratio: 4 / 5; place-items: center; padding-bottom: var(--s6); }
.vi-card .shotwell-web .well-shot { border-radius: var(--r-sm); }
.vi-web { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); align-content: end; aspect-ratio: 4 / 5; padding: var(--s8) var(--s4) var(--s4); border-radius: var(--r-xl); background: var(--paper-2); }
.vi-web > .vi-icon { position: absolute; left: var(--s4); top: var(--s4); z-index: 2; width: 44px; height: 44px; border-radius: var(--r-icon); box-shadow: var(--sh-ring); }
.vi-web > .flag { position: absolute; left: calc(var(--s4) + 30px); top: calc(var(--s4) + 30px); z-index: 3; box-shadow: 0 0 0 2px var(--paper-2); }
.vi-land { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--fill); }
.vi-land.is-first { grid-column: 1 / -1; }
.vi-land.is-tall { aspect-ratio: 9 / 16; }
.vi-land img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vi-cap { display: grid; gap: var(--s1); min-width: 0; }
.vi-cap b { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); }
.vi-cap b > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-cap > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.vi-cap > .vi-meter { display: flex; align-items: center; min-height: var(--lh-small); }
.vi-cap .skel-text { width: 70%; height: var(--lh-small); }
.vi-say { margin-top: var(--s6); max-width: calc(72 * var(--ch)); font-size: var(--t-body); line-height: var(--lh-body); color: var(--muted); }
.vi-call { margin-top: var(--s5); }
.vi-call .code > pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.vi-call .code { align-items: center; }
.sx .code > pre { background: none; }
.vi-short { display: none; }
/* One answer holds every country: the pictures drift by (the landing's row), still with reduced motion */
.vi-drift { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.vi-track { display: flex; width: max-content; animation: vi-drift 60s linear infinite; }
.vi-track.is-still { animation: none; }
.vi-drift:hover .vi-track { animation-play-state: paused; }
.vi-row { display: flex; gap: var(--site-grid-gap); padding-right: var(--site-grid-gap); }
.vi-dcard { display: grid; gap: var(--s3); width: 380px; }
.vi-dshot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); }
.vi-dshot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vi-dcard figcaption { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
@keyframes vi-drift { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .vi-track { animation: none; } }
@media (max-width: 899px) {
  .vi-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .vi-grid > * { scroll-snap-align: start; }
}
@media (max-width: 599px) { .vi-find .findstrip { min-height: 56px; } .vi-long { display: none; } .vi-short { display: inline; } .vi-bar { align-items: flex-start; } .vi-pick { flex-wrap: wrap; } .vi-dcard { width: 280px; } }

/* --- watches (wa-): the example and the builder in one grey well, two white cards --- */
.wa-well { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); padding: var(--s2); }
.wa-feed, .wa-form { padding: var(--site-card-pad); border-radius: var(--r-lg-in); background: var(--card); min-width: 0; }
.wa-feed { align-self: start; }
.wa-feed.is-state .empty { padding-block: var(--s5); }
.wa-head { display: flex; align-items: center; gap: var(--s3); padding-bottom: var(--s4); box-shadow: inset 0 -1px 0 var(--line); }
.wa-head > div { flex: 1; min-width: 0; display: grid; }
.wa-head b { font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); }
.wa-head small { font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-ic { flex: none; border-radius: var(--r-icon); box-shadow: var(--sh-ring); }
span.wa-ic { width: 40px; height: 40px; }
.wa-chip { flex: none; padding: 2px var(--s2); border-radius: var(--r-pill); background: var(--fill-2); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--ink); white-space: nowrap; }
.wa-ev { display: grid; gap: var(--s1); padding-block: var(--s4); box-shadow: inset 0 -1px 0 var(--line); }
.wa-ev small { display: flex; align-items: center; gap: 6px; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.wa-ev b { font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); }
.wa-ev span { font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.wa-ev.is-quiet b { font-weight: var(--w-medium); }
.wa-foot { padding-top: var(--s4); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.wa-form { display: grid; align-content: start; gap: var(--s5); }
.wa-field { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.wa-label { padding: 0; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.wa-apps .seg > button { gap: var(--s2); }
.wa-apps > .skel { display: block; width: 200px; height: 32px; border-radius: var(--r-pill); }
.wa-apps .wa-ic { box-shadow: none; }
.wa-events { gap: var(--s3); }
.wa-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); cursor: pointer; }
.wa-switch > span { display: grid; min-width: 0; }
.wa-switch b { font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); }
.wa-switch small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.wa-switch input { margin: 0; } /* the kit's toggle (input[role="switch"], web/styles.css) */
.wa-by { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.wa-api > summary { cursor: pointer; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); }
.wa-api > pre { margin-top: var(--s3); }
.wa-api > p { margin-top: var(--s2); }
.wa-go { justify-self: start; }
.wa-under { margin-top: var(--s5); }
@media (max-width: 899px) { .wa-well { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .wa-feed, .wa-form { padding: var(--s4); } }

/* --- 404 (nf-): one window tall, the bar on top and the ask centred in the rest, so the footer waits below the fold --- */
body.nf .sheet { display: flex; flex-direction: column; min-height: calc(100svh + var(--r-xl)); }
body.nf main#main { flex: 1; display: flex; flex-direction: column; }
.nf { flex: 1; justify-content: center; padding-bottom: calc(var(--section) + var(--r-xl)); } /* the sheet's rounded foot (--r-xl) comes on top of the section's rhythm */
.nf .sx-title { max-width: calc(20 * var(--ch-bold)); }
.nf .sx-pills { margin-top: var(--site-head-gap); } /* a title to the pills below it: the law's heading to body gap (40, 32, 24) */
.nf .sx-title em { display: block; }
.nf-flag { display: inline-block; width: 0.85em; height: 0.85em; margin-inline: 0.12em; vertical-align: -0.08em; overflow: hidden; border-radius: 30%; box-shadow: inset 0 0 0 1px var(--line); }
.nf-flag img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--d1) var(--ease), filter var(--d1) var(--ease); }
.nf-flag img.is-out { opacity: 0; filter: blur(6px); }

/* --- i18n check (ic-) --- */
.ic-well { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); padding: var(--s2); }
.ic-card { display: grid; align-content: start; gap: var(--s4); padding: var(--site-card-pad); border-radius: var(--r-lg-in); background: var(--card); min-width: 0; }
.ic-field { display: grid; gap: var(--s2); margin: 0; padding: 0; border: 0; min-width: 0; }
.ic-label { padding: 0; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ic-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ic-chips label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--s3); border-radius: var(--r-pill); background: var(--fill-2); color: var(--muted); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); cursor: pointer; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.ic-chips label:hover { color: var(--ink); }
.ic-chips label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: var(--sh-lift); }
.ic-chips label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ic-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ic-chips .flag { box-shadow: var(--sh-ring); }
.ic-report-h { font-size: var(--t-label); line-height: var(--lh-label); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.ic-verdict { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-medium); }
.ic-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); -webkit-mask: none; position: relative; }
.ic-tick::after { content: ""; position: absolute; inset: 0; background: var(--card); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ic-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.ic-figs > div { display: grid; padding: var(--s3) var(--s4); }
.ic-figs > div + div { box-shadow: inset 1px 0 0 var(--line); }
.ic-figs small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ic-figs b { font-size: var(--a-num); line-height: var(--a-num-lh); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.ic-figs span { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
.ic-rows p { display: flex; align-items: center; gap: var(--s2); min-height: 40px; box-shadow: inset 0 1px 0 var(--line); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); }
.ic-rows p span { margin-left: auto; font-weight: var(--w-regular); color: var(--muted); }
.ic-md > summary { cursor: pointer; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); }
.ic-md > pre { margin-top: var(--s3); }
.ic-md > p { margin-top: var(--s2); }
.ic-area { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.ic-area h3 { font-size: var(--t-label); line-height: var(--lh-label); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.ic-area h3 + p { margin-top: var(--s1); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.ic-area ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); }
.ic-area li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2); font-size: var(--t-small); line-height: var(--lh-small); }
.ic-area li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3Cpath d='M17 8.5 10.5 15 7 11.5' fill='none' stroke='white' stroke-width='2.4'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm5 8.5L10.5 15 7 11.5 8.4 10l2.1 2.1 5.1-5.1L17 8.5Z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ic-measure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; padding: var(--s8); }
.ic-big { display: grid; gap: var(--s3); }
.ic-big .bignum { font-variant-numeric: normal; }
.ic-big > p:not(.sx-small) { max-width: calc(30 * var(--ch)); font-size: var(--t-lede); line-height: var(--lh-lede); color: var(--muted); }
.ic-big b { color: var(--ink); font-weight: var(--w-medium); }
.ic-cells { display: grid; grid-template-columns: repeat(9, 48px); gap: var(--s2); justify-content: start; }
.ic-cells > i { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--ink); }
.ic-cells > i.is-beta { background: var(--quiet-mark); }
.ic-key { grid-column: 1 / -1; display: grid; gap: var(--s1); margin-top: var(--s3); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.ic-key span { display: flex; align-items: center; gap: var(--s2); }
.ic-key i { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--ink); }
.ic-key i.is-beta { background: var(--quiet-mark); }
.ic-key i.is-none { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ic-key b { color: var(--ink); font-weight: var(--w-bold); }
@media (max-width: 1099px) { .ic-cells { grid-template-columns: repeat(9, minmax(0, 1fr)); } .ic-cells > i { width: auto; height: auto; aspect-ratio: 1; } }
@media (max-width: 899px) {
  .ic-well, .ic-measure { grid-template-columns: minmax(0, 1fr); }
  .ic-area { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) { .ic-card { padding: var(--s4); } .ic-measure { padding: var(--s5); } .ic-area ul { grid-template-columns: minmax(0, 1fr); } }

/* --- resources (rs-): three hero tiles (the how-it-works tile frame), the loop --- */
.rs-mid { display: grid; justify-items: center; align-content: center; gap: var(--s3); height: 100%; padding: 0 var(--s5) var(--s5); text-align: center; }
.rs-where { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); }
.rs-where.skel { width: 96px; height: 20px; border-radius: var(--r-pill); }
.rs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.rs-chips > span { display: inline-grid; place-items: center; height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--card); box-shadow: var(--sh-1); font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-medium); }
.rs-chips > .skel { width: 72px; box-shadow: none; }
.rs-cap { max-width: calc(28 * var(--ch)); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); text-wrap: balance; }
.rs-cap.skel { width: 160px; height: 20px; border-radius: var(--r-pill); }
.rs-flags { display: flex; gap: var(--s2); }
.rs-flags .flag, .rs-flagrow .flag { box-shadow: 0 0 0 1px var(--line), 0 0 0 3px var(--card); }
.rs-lint { display: grid; gap: var(--s1); padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-1); }
.rs-lint small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.rs-lint span { font-size: var(--t-label); line-height: var(--lh-label); }
.rs-lint u { text-decoration: underline wavy var(--ink) 1.5px; text-underline-offset: 4px; }
.rs-sym { font-size: var(--t-h); line-height: var(--lh-h); font-weight: var(--w-bold); }
.rs-sym.skel { width: 48px; height: 48px; border-radius: var(--r-md); }
.rs-flagrow { display: flex; gap: var(--s2); min-height: 24px; }
.rs-loop { display: grid; gap: var(--s6); padding: var(--s7); }
.rs-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); counter-reset: step; }
.rs-steps > li { display: grid; gap: 2px; padding-top: var(--s3); box-shadow: inset 0 2px 0 var(--line); counter-increment: step; transition: box-shadow var(--d2) var(--ease); }
.rs-steps > li::before { content: counter(step); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-variant-numeric: tabular-nums; }
.rs-steps > li.is-now { box-shadow: inset 0 2px 0 var(--ink); }
.rs-steps b { font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-bold); }
.rs-steps small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
.rs-stage { display: grid; padding: var(--site-card-pad); border-radius: var(--r-xl-in); background: var(--card); }
.rs-step { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity var(--d3) var(--ease); }
.rs-step.is-now { visibility: visible; opacity: 1; }
.rs-step p { max-width: calc(72 * var(--ch)); font-size: var(--t-body); line-height: var(--lh-prose); color: var(--muted); }
.rs-step b { color: var(--ink); font-weight: var(--w-bold); }
.rs-also { max-width: calc(72 * var(--ch)); }
.rs-also b { color: var(--ink); font-weight: var(--w-medium); }
.rs-pills { margin-top: 0; align-items: flex-start; }
.rs-answer { width: 100%; }
.rs-answer > summary { list-style: none; width: fit-content; }
.rs-answer > summary::-webkit-details-marker { display: none; }
.rs-answer[open] > summary { margin-bottom: var(--s3); }
.rs-answer > p, .rs-answer > pre { margin-top: var(--s3); }
.rs-answer:not([open]) { width: auto; }
@media (prefers-reduced-motion: reduce) { .rs-step { transition: none; } }
@media (max-width: 899px) {
  .rs-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
  .rs-steps small { display: none; }
}
@media (max-width: 767px) { .rs-loop { padding: var(--s4); } .rs-steps b { font-size: var(--a-small); line-height: var(--a-small-lh); } .rs-stage { padding: var(--s4); } }

/* ===== docs =====
   Code, tables, prose, the docs and guides shell, the API reference and the blog. Owner: builder 6 (P10).
   The look is scratch docs.html (hub code T4) with the second critique's fixes (port/CRITIQUE-2.md, docs.html). The
   reading pair is 16/24 in a column of 66 characters (--measure, --lh-prose). Every size is a token. */

/* code: one grey well. Long lines wrap (never cut mid-letter, never a sideways scroll); "Copy" (site.js puts it as the
   last child of <pre>) sits in a column of its own at the right, so no code runs under it; on a phone it takes a row
   above the code. */
.site pre { display: flex; align-items: flex-start; gap: var(--s3); position: relative; max-width: 100%; margin: 0 0 var(--s5); padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--paper-2); overflow: auto; font: var(--w-regular) var(--t-code) / var(--lh-sm) var(--font-code); font-variant-ligatures: none; letter-spacing: 0; color: var(--ink); tab-size: 2; }
.site pre > code { flex: 1; min-width: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.site pre:focus-visible { outline-offset: 2px; }
.site :not(pre) > code { padding: 1px var(--s1); border-radius: var(--r-xs); background: var(--fill); font-family: var(--font-code); font-size: 0.88em; letter-spacing: 0; overflow-wrap: anywhere; }
.card pre { margin: var(--s3) 0 0; }
.tile.dark pre { background: var(--foot-fill); color: var(--on-ink); }
.copy { flex: none; display: inline-flex; align-items: center; min-height: calc(var(--lh-sm) + var(--s2)); margin: calc(-1 * var(--s1)) calc(-1 * var(--s2)) calc(-1 * var(--s1)) 0; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font: var(--w-medium) var(--a-small) / var(--a-small-lh) var(--font); white-space: nowrap; cursor: pointer; transition: background-color var(--d1) var(--ease-hover), color var(--d1) var(--ease-hover); }
.copy:hover { background: var(--fill-2); color: var(--ink); }
@media (max-width: 599px) {
  .site pre { flex-direction: column; gap: 0; }
  .site pre > code { width: 100%; }
  .copy { order: -1; align-self: flex-end; margin: calc(-1 * var(--s2)) calc(-1 * var(--s3)) var(--s2) 0; }
}

/* tables: hairline rows, quiet 12 px heads, 14/20 cells. A table wider than its column scrolls in its own box, with a
   soft shade at the edge that has more (backgrounds fixed to the box and to the content: no script). */
.table-wrap { overflow-x: auto; margin: 0 0 var(--s5); background: linear-gradient(to right, var(--paper) 40%, transparent) left / var(--s7) 100% no-repeat local, linear-gradient(to left, var(--paper) 40%, transparent) right / var(--s7) 100% no-repeat local, radial-gradient(farthest-side at 0 50%, var(--line-2), transparent) left / var(--s3) 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, var(--line-2), transparent) right / var(--s3) 100% no-repeat scroll; }
.site table { width: 100%; border-collapse: collapse; font-size: var(--a-body); line-height: var(--a-body-lh); }
.site th, .site td { text-align: start; vertical-align: top; padding: var(--s3) 0; padding-inline-end: var(--s4); border-bottom: 1px solid var(--line); }
.site th { padding-top: 0; padding-bottom: var(--s2); vertical-align: bottom; font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--quiet); white-space: nowrap; }
.site :is(th, td):last-child { padding-inline-end: 0; }
.site tr:last-child td { border-bottom: 0; }
.align-right { text-align: right; } .align-center { text-align: center; }
.site th.align-right, .site td.align-right { text-align: right; } .site th.align-center, .site td.align-center { text-align: center; }

/* prose for the site pages' long sections (site pages block's .section-prose) and older markup */
.prose { max-width: calc(72 * var(--ch)); font-size: var(--t-body); line-height: var(--lh-prose); }
.prose h1 { font-size: var(--t-h); letter-spacing: var(--tr-head); line-height: var(--lh-h); margin: 0 0 var(--s4); }
.prose h2 { font-size: var(--t-card); line-height: var(--lh-card); margin: var(--s8) 0 var(--s3); }
.prose h3 { font-size: var(--t-label); line-height: var(--lh-label); margin: var(--s6) 0 var(--s2); }
.prose h4 { font-size: var(--t-body); margin: var(--s5) 0 var(--s1); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s4); }
.prose li { margin: var(--s1) 0; }
.prose li > ul, .prose li > ol { margin: var(--s1) 0 0; }
.prose blockquote { margin: 0 0 var(--s5); padding: var(--s3) var(--s5); background: var(--paper-2); border-radius: var(--r-md); }
.prose img { height: auto; border-radius: var(--r-md); }
.prose hr { margin: var(--s7) 0; }
/* BUG-197: the anchor was a float, which turns off `text-wrap: balance` in WebKit, so a docs heading left one word on its last line. It is absolute now, at the same place. Remove when WebKit balances beside a float. */
.anchor { position: absolute; margin-inline-start: -1em; width: 1em; color: var(--quiet); text-decoration: none; opacity: 0; }
:is(h2, h3, h4):has(> .anchor) { position: relative; }
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor { opacity: 1; }
.note { background: var(--paper-2); border-radius: var(--r-md); padding: var(--s3) var(--s5); margin: 0 0 var(--s5); }
.note p:last-child { margin-bottom: 0; }
.section-prose { max-width: 820px; margin: 0 auto; }
.section-prose > h2 { text-align: center; }

/* the reading text: 16/24, 66 characters, headings with room above them */
.site .dc-prose { max-width: var(--measure); font-size: var(--t-body); line-height: var(--lh-prose); color: var(--ink); }
.dc-prose > * { margin: 0; }
.dc-prose > * + * { margin-top: var(--s4); }
.site .dc-prose > h2 { margin-top: var(--s8); font-size: var(--t-card); line-height: var(--lh-card); font-weight: var(--w-bold); letter-spacing: var(--tr-label); scroll-margin-top: var(--s10); }
.site .dc-prose > h3 { margin-top: var(--s7); font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); letter-spacing: 0; scroll-margin-top: var(--s10); }
.site .dc-prose > h4 { margin-top: var(--s6); font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-medium); color: var(--muted); scroll-margin-top: var(--s10); }
.dc-prose > :is(h2, h3, h4) + * { margin-top: var(--s3); }
.dc-prose > :is(pre, .table-wrap, blockquote, .note), .dc-prose > :is(pre, .table-wrap, blockquote, .note) + * { margin-top: var(--s5); }
.dc-prose :is(ul, ol) { display: grid; gap: var(--s2); padding-left: var(--s5); }
.dc-prose ul { list-style: disc; } .dc-prose ol { list-style: decimal; }
.dc-prose li { min-width: 0; margin: 0; }
.dc-prose a { overflow-wrap: anywhere; }
.dc-prose li::marker { color: var(--quiet); }
.dc-prose li > :is(ul, ol) { margin-top: var(--s2); }
.site .dc-prose a:not(.anchor, .ghost) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color var(--d1) var(--ease-hover); }
.site .dc-prose a:not(.anchor, .ghost):hover { text-decoration-color: currentColor; }
.dc-prose strong { font-weight: var(--w-bold); }
.dc-prose blockquote > * { margin: 0; } .dc-prose blockquote > * + * { margin-top: var(--s2); }
.dc-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--s7); }
/* short code never breaks (a break after "-" split "--upload"); code longer than 32 characters may (markdown.mjs marks it) */
.site .dc-prose :not(pre) > code:not(.is-long) { white-space: nowrap; overflow-wrap: normal; }
.dc-prose .anchor { margin-inline-start: -1em; }

/* the frame: as wide as the bar, the bar's side padding */
:is(.page-docs, .page-hub, .page-post) main { max-width: calc(var(--max) + 2 * var(--gutter)); padding: 0 var(--gutter) var(--section); }

/* a heading never leaves one word alone on its last line (docs, guides, posts, the API reference) */
.site :is(h2, h3, h4) { text-wrap: balance; }
/* ---- the reading layout: the rail of pages, the column, "On this page" */
.dc-read { --toc-w: 11.5rem; display: grid; grid-template-columns: 13.5rem minmax(0, var(--measure)) var(--toc-w); justify-content: space-between; gap: var(--s8); align-items: start; padding-top: var(--s9); }
.dc-rail, .dc-toc { position: sticky; top: calc(var(--s9) + var(--s3)); font-size: var(--t-small); line-height: var(--lh-small); }
.dc-rail-in { max-height: calc(100svh - var(--s10)); overflow-y: auto; margin-left: calc(-1 * var(--s3)); padding: 0 var(--s2) var(--s4) var(--s3); }
.dc-rail-h { margin: 0 0 var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--quiet); }
.dc-rail ul + .dc-rail-h, .dc-rail .dc-rail-h + .dc-rail-h { margin-top: var(--s5); }
.dc-rail .dc-rail-h a { display: inline; padding: 0; margin: 0; color: inherit; }
.dc-rail ul { display: grid; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.site .dc-rail a { display: block; margin-left: calc(-1 * var(--s3)); padding: var(--s1) var(--s3); border-radius: var(--r-sm); color: var(--muted); text-decoration: none; transition: color var(--d1) var(--ease-hover), background-color var(--d1) var(--ease-hover); }
.site .dc-rail a:hover { color: var(--ink); }
.site .dc-rail a[aria-current="page"] { background: var(--paper-2); color: var(--ink); font-weight: var(--w-medium); }
.site .dc-rail .dc-rail-h a { margin-left: 0; padding: 0; color: var(--quiet); }
.site .dc-rail .dc-rail-h a:hover { color: var(--ink); background: none; }
.dc-art { min-width: 0; }
.dc-crumb { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); }
.site .dc-crumb a { color: var(--muted); text-decoration: none; }
.site .dc-crumb a::before { content: "← "; }
.site .dc-crumb a:hover { color: var(--ink); }
.site .dc-h1 { margin: var(--s4) 0 0; font-size: var(--t-h); line-height: var(--lh-h); font-weight: var(--w-bold); letter-spacing: var(--tr-head); text-wrap: balance; overflow-wrap: break-word; }
.dc-h1 em, .dc-title em, .dc-post b em { font-style: normal; color: var(--muted); }
.dc-lede { margin: var(--s4) 0 0; font-size: var(--t-lede); line-height: var(--lh-lede); letter-spacing: var(--tr-lede); color: var(--muted); text-wrap: pretty; }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); font-size: var(--t-small); line-height: var(--lh-small); color: var(--quiet); }
.dc-meta .flag { width: var(--s4); height: var(--s4); margin-right: var(--s2); vertical-align: -3px; }
.dc-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.dc-mtoc { display: none; }
.dc-art > .dc-prose { margin-top: var(--s7); }
.dc-foot { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s9) 0 0; padding-top: var(--s6); border-top: 1px solid var(--line); }
/* a translated page: the text and "On this page", with no rail of pages (the rail's pages are English) */
.dc-read.dc-solo { grid-template-columns: minmax(0, var(--measure)) var(--toc-w); justify-content: center; }
.dc-solo .dc-mtoc { margin-top: var(--s5); }

/* ---- "On this page" (web/lib/on-this-page.js draws it, web/views/site/on-this-page.js marks the section in view): one row for each
   heading, cut to one line, and one SVG line beside the rows that follows their levels. The rows and the line come
   from the same two numbers: --onpage-row is on-this-page.js ROW, --onpage-indent is its INDENT (test/on-this-page.test.mjs). */
.onpage { --onpage-row: var(--s6); --onpage-indent: var(--s4); }
.onpage-h { margin: 0 0 var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--quiet); }
.onpage-list { position: relative; max-height: calc(100svh - var(--s9) - var(--s3) - var(--s7)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.onpage-line { position: absolute; top: 0; inset-inline-start: 0; overflow: visible; color: var(--line-2); pointer-events: none; }
.onpage-line path { fill: none; stroke: currentColor; stroke-width: 1; }
.onpage-line circle { fill: currentColor; }
.onpage-mark { fill: var(--ink); }
.onpage-mark[data-move="slide"] { transition: transform var(--d-in) var(--ease-move); }
.onpage ul { margin: 0; padding: 0; list-style: none; }
.onpage ul ul { padding-inline-start: var(--onpage-indent); }
.site .onpage a { display: block; height: var(--onpage-row); padding-inline-start: var(--s4); font-size: var(--t-small); line-height: var(--onpage-row); color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--d1) var(--ease-hover); }
.site .onpage a:hover, .site .onpage a[aria-current] { color: var(--ink); }
.site .onpage a:focus-visible { outline-offset: -2px; border-radius: var(--r-xs); }
.dc-mtoc .onpage-h { display: none; }
.dc-mtoc .onpage-list { max-height: none; padding-bottom: var(--s3); }
@media (prefers-reduced-motion: reduce) { .onpage-mark[data-move] { transition: none; } }

/* ---- the API reference: one section per endpoint; its route, "Try in Playground", inputs in one readable column */
.site .dc-prose > h2 .dc-n { margin-left: var(--s2); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-regular); letter-spacing: 0; color: var(--quiet); }
.dc-ep { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.dc-prose > h2 + .dc-ep { margin-top: var(--s5); padding-top: 0; border-top: 0; }
.dc-ep > * { margin: 0; }
.dc-ep > * + * { margin-top: var(--s3); }
.site .dc-ep > h3 { font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-bold); scroll-margin-top: var(--s10); }
.site .dc-prose .dc-route { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.dc-method { flex: none; padding: 0 var(--s2); border-radius: var(--r-xs); background: var(--fill-2); font: var(--w-medium) var(--a-small) / var(--lh-sm) var(--font-code); letter-spacing: 0; }
.site .dc-route > code { flex: 1 1 12rem; min-width: 0; padding: 0; background: none; font-size: var(--t-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-route > .ghost { flex: none; }
.dc-inputs { display: grid; margin: var(--s4) 0 0; border-top: 1px solid var(--line); font-size: var(--a-body); line-height: var(--a-body-lh); }
.dc-input { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.dc-input dt { display: grid; align-content: start; gap: calc(var(--s1) / 2); min-width: 0; }
.site .dc-input dt code { justify-self: start; max-width: 100%; padding: 0; background: none; font-size: var(--a-body); font-weight: var(--w-medium); overflow-wrap: anywhere; }
.dc-input dt small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.dc-input dd { display: grid; gap: var(--s1); min-width: 0; margin: 0; }
.dc-input dd p { margin: 0; }
.dc-kind { color: var(--muted); }
.site .dc-kind code:not(.is-long) { white-space: nowrap; }
.dc-kind details { display: inline; }
.dc-kind summary { display: inline; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; list-style: none; }
.dc-kind summary::-webkit-details-marker { display: none; }
.dc-kind summary::marker { content: ""; }
.dc-kind details[open] summary { display: none; }

/* ---- the indexes (/docs/, /guides/, /blog/, /integrations/, /checks/): one title, the word tabs, quiet lists */
.dc-head { padding-top: var(--s10); text-align: center; }
.site .dc-title { margin: 0 auto; max-width: calc(20 * var(--ch-bold)); font-size: var(--t-cta); line-height: var(--lh-cta); font-weight: var(--w-bold); letter-spacing: var(--tr-display); text-wrap: balance; }
.dc-sub { max-width: 40rem; margin: var(--site-body-gap) auto 0; font-size: var(--t-lede); line-height: var(--lh-lede); letter-spacing: var(--tr-lede); color: var(--muted); text-wrap: balance; }
.dc-tabs { margin-top: var(--site-head-gap); gap: var(--s6); font-size: var(--t-label); line-height: var(--lh-label); }
.site .dc-tabs > a { color: var(--quiet); text-decoration: none; }
.site .dc-tabs > a:hover { color: var(--muted); }
.site .dc-tabs > a[aria-current="page"] { color: var(--ink); }
.dc-tabs small { margin-left: var(--s1); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-regular); color: var(--quiet); font-variant-numeric: tabular-nums; }
.dc-index { padding-top: var(--s9); }
.dc-index-solo { max-width: 52rem; margin-inline: auto; }
.site .dc-h { margin: 0 0 var(--s5); font-size: var(--t-label); line-height: var(--lh-label); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.dc-start { margin-bottom: var(--s9); }

/* Start here: three grey tiles, each a link with a small picture drawn from text */
.dc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--site-grid-gap); }
.site .dc-tile { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; min-width: 0; padding: var(--site-card-pad) var(--site-card-pad) 0; border-radius: var(--r-lg); background: var(--paper-2); color: var(--ink); text-align: center; text-decoration: none; overflow: hidden; transition: background-color var(--d1) var(--ease-hover); }
.site .dc-tile:hover { background: var(--paper-3); }
.dc-tile-label { font-size: var(--t-label); line-height: var(--lh-label); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.dc-tile-sub { margin-top: var(--s1); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.dc-tile-pic { display: grid; align-content: center; justify-items: center; gap: var(--s3); width: 100%; min-height: calc(var(--s11) + var(--s5)); padding-block: var(--s5); text-align: left; }
.dc-chat { display: grid; gap: var(--s3); width: 100%; }
.dc-you { justify-self: end; max-width: 85%; padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-ring); font-size: var(--a-body); line-height: var(--a-body-lh); }
.dc-call { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-ring); font: var(--a-small) / var(--a-small-lh) var(--font-code); }
.dc-call b { font-weight: var(--w-medium); }
.site .dc-call code { flex: 1; min-width: 0; padding: 0; background: none; font-size: inherit; color: var(--muted); }
.dc-call svg { flex: none; margin-top: calc(var(--s1) / 2); }
.dc-well { display: block; width: 100%; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-ring); font: var(--a-small) / var(--a-small-lh) var(--font-code); white-space: pre; overflow: hidden; }
.site .dc-well code { padding: 0; background: none; font-size: inherit; }
/* a request longer than the tile fades at its right edge, never cut mid-letter */
.dc-fade { display: block; mask-image: linear-gradient(to right, black 80%, transparent); }
.dc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.dc-chips span { padding: var(--s1) var(--s3); border-radius: var(--r-pill); background: var(--card); box-shadow: var(--sh-ring); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }

/* the groups: a label over a hairline, then two columns of rows, each with its one line */
.dc-group + .dc-group, .dc-start + .dc-group { margin-top: var(--s8); }
.site .dc-group-h { display: flex; justify-content: space-between; gap: var(--s3); margin: 0; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-bold); letter-spacing: 0; }
.dc-n { font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-regular); color: var(--quiet); font-variant-numeric: tabular-nums; }
.dc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s8); margin: 0; padding: 0; list-style: none; }
.dc-index-solo .dc-rows { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.dc-row { position: relative; display: flex; align-items: flex-start; gap: var(--s3); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.dc-lead { flex: none; display: grid; place-items: center; width: var(--s5); height: var(--lh-body); }
.dc-lead .flag { width: 18px; height: 18px; }
.site .dc-row-main { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.dc-row-main::after { content: ""; position: absolute; inset: 0; }
.dc-row-main b { display: block; font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-medium); }
.dc-row-main small { display: block; font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.dc-row:hover .dc-row-main b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.dc-plat { margin-right: var(--s2); font-size: var(--a-small); font-weight: var(--w-medium); color: var(--quiet); }
.site .dc-md { position: relative; z-index: 1; flex: none; align-self: center; padding: var(--s1) var(--s2); border-radius: var(--r-sm); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); text-decoration: none; opacity: 0; transition: opacity var(--d1) var(--ease-hover), color var(--d1) var(--ease-hover); }
.dc-row:hover .dc-md, .dc-md:focus-visible { opacity: 1; }
.site .dc-md:hover { color: var(--ink); }
@media (hover: none) { .dc-md { opacity: 1; } }
/* with a pointer on a wide screen, "Markdown" floats over the row's end on white, so the line keeps its whole width */
@media (hover: hover) and (min-width: 900px) { .site .dc-md { position: absolute; right: 0; top: 50%; translate: 0 -50%; background: var(--paper); box-shadow: 0 0 0 var(--s2) var(--paper); } }
.dc-all > summary { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); padding: var(--s1) 0; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); cursor: pointer; list-style: none; }
.dc-all > summary::-webkit-details-marker { display: none; }
.dc-all > summary::after { content: "→"; color: var(--quiet); }
.dc-all[open] > summary { display: none; }
.dc-more { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s8) 0 0; }
.dc-about { margin-top: var(--s9); padding-top: var(--s2); }

/* the blog: newest first, the date, the title (the grey half after the colon) and its one sentence */
.dc-posts { display: grid; max-width: 52rem; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dc-posts > li { border-bottom: 1px solid var(--line); }
.site .dc-post { display: grid; gap: var(--s2); padding-block: var(--s6); color: var(--ink); text-decoration: none; }
.dc-post small { font-size: var(--t-small); line-height: var(--lh-small); color: var(--quiet); }
.dc-post b { font-size: var(--t-card); line-height: var(--lh-card); font-weight: var(--w-bold); letter-spacing: var(--tr-label); text-wrap: pretty; }
.dc-post > span { font-size: var(--t-body); line-height: var(--lh-body); color: var(--muted); text-wrap: pretty; }
.site .dc-post:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); text-decoration-thickness: 1.5px; }
.dc-posts + .dc-more { max-width: 52rem; margin-inline: auto; }

@media (max-width: 1199px) {
  .dc-read { grid-template-columns: minmax(0, var(--measure)) var(--toc-w); }
  .dc-read > .dc-rail { display: none; }
}
@media (max-width: 899px) {
  .dc-read, .dc-read.dc-solo { grid-template-columns: minmax(0, 1fr); }
  .dc-read > .dc-toc { display: none; }
  .dc-meta { padding-bottom: 0; border-bottom: 0; }
  .dc-mtoc { display: block; margin-top: var(--s5); border-block: 1px solid var(--line); }
  .dc-mtoc > summary { display: flex; align-items: center; gap: var(--s2); padding-block: var(--s3); font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); cursor: pointer; list-style: none; }
  .dc-mtoc > summary::-webkit-details-marker { display: none; }
  .dc-mtoc > summary::before { content: "›"; display: inline-block; width: var(--s3); color: var(--quiet); transition: rotate var(--d1) var(--ease); }
  .dc-mtoc[open] > summary::before { rotate: 90deg; }
  .dc-art > .dc-prose { margin-top: var(--s6); }
  .dc-rows { grid-template-columns: minmax(0, 1fr); }
  .dc-tiles { grid-template-columns: minmax(0, 1fr); }
  .dc-tabs { gap: var(--s5); font-size: var(--t-body); line-height: var(--lh-body); }
}
@media (max-width: 767px) {
  .dc-head { padding-top: var(--s8); }
  .dc-read, .dc-index { padding-top: var(--s7); }
  .dc-start { margin-bottom: var(--s8); }
  .dc-input { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
}
/* "Markdown" on every row is noise on a phone (critique 2); the page itself has the link */
@media (max-width: 599px) { .dc-md { display: none; } }
@media (prefers-reduced-motion: reduce) { .dc-mtoc > summary::before, .copy, .dc-md, .dc-tile { transition: none; } }
@media print {
  .sitebar, .footer, .skip, .copy, .dc-rail, .dc-toc, .dc-mtoc, .dc-acts, .dc-foot, .dc-route > .ghost { display: none !important; }
  .dc-read { display: block; padding-top: 0; }
  .site pre { white-space: pre-wrap; }
}

/* right-to-left pages (/ar/, /he/: <html dir="rtl">, issue 154): the same components, mirrored. The logical
   properties above mirror by themselves; these rules cover what web/styles.css sets on a physical side. Code blocks
   and inline code stay left to right, and a link takes its direction from its own text, so a URL reads left to right. */
.site pre, .site code { direction: ltr; unicode-bidi: isolate; }
.site pre { text-align: left; }
[dir="rtl"] .prose a { unicode-bidi: plaintext; }
[dir="rtl"] .stat + .stat { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .nav-menu > nav { right: auto; left: 0; }
/* the footer's faint wordmark is drawn as text: it keeps its left-to-right order */
[dir="rtl"] .footer-mark { direction: ltr; }
[dir="rtl"] .sitebar-links { margin-left: 0; margin-right: var(--s6); }
[dir="rtl"] .sitebar-end { margin-left: 0; margin-right: auto; }
[dir="rtl"] .sitebar:not(.is-past) .sitebar-late { margin-left: 0; margin-right: calc(-1 * var(--s5)); }
@media (max-width: 860px) {
  [dir="rtl"] .stats.four .stat + .stat { border-right: 0; }
  [dir="rtl"] .stats.four .stat:nth-child(even) { border-left: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  [dir="rtl"] .stat + .stat { border-right: 0; }
}
