/* StoreRules design tokens, shared by the landing, the app, the legal and the rule pages.
   Direction as of 2 Nov 2026 (owner approved): clean white and slate surfaces, one brand colour
   (ink blue #2952CC; #7C9BFF in dark) for clause numbers, links and primary buttons, and serif
   headings in the self-hosted "SR Serif Display" (SIL OFL 1.1, see /fonts/OFL-*.txt). Body text
   stays in the system sans-serif (SF / Segoe / Roboto, nothing to download). CJK headings use
   the Gothic face because the serif has no CJK glyphs. "Changed" marks are amber so they never
   read as links. This replaces the 28 Oct 2026 "modern product" headings (sans only). */

@font-face {
  font-family: "SR Serif Text";
  src: url("/fonts/SRSerifText.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SR Serif Text";
  src: url("/fonts/SRSerifText-Italic.woff2") format("woff2");
  font-weight: 400 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "SR Serif Display";
  src: url("/fonts/SRSerifDisplay.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SR Sans";
  src: url("/fonts/SRSans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SR Sans";
  src: url("/fonts/SRSans-Italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "SR Mono";
  src: url("/fonts/SRMono.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: var(--font-sans);
  --font-display: "SR Serif Display", Georgia, "Times New Roman", serif;
  --font-ui: var(--font-sans);
  --font-serif: "SR Serif Text", Georgia, "Times New Roman", serif;
  --font-mono: "SR Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* One step up on 28 Oct 2026 (owner: larger default text). */
  --fs-micro: 0.875rem;
  --fs-label: 0.875rem;
  --fs-small: 0.9375rem;
  --fs-ui: 1rem;
  --fs-serh: 1rem;
  --fs-text: 1.125rem;
  --fs-h4: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-h2: 1.875rem;
  --fs-h1: 2.25rem;
  --fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --lh-tight: 1.15;
  --lh-head: 1.3;
  --lh-ui: 1.5;
  --lh-serh: 1.55;
  --lh-text: 1.7;
  --measure: 70ch;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --gutter: 16px;

  --w-page: 1200px;
  --w-side: 232px;
  --header-h: 56px;

  --r-1: 10px;
  --r-2: 14px;
  --r-pill: 999px;
  --t-fast: 120ms;
  --t-panel: 180ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  --paper: #FFFFFF;
  --sheet: #FFFFFF;
  --sunk: #F4F6F9;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #5B6472;
  --rule: #E5E7EB;
  --rule-strong: #D1D5DB;
  --field-border: #9CA3AF;
  --rubric: #1D42B5;
  --rubric-wash: #EDF2FD;
  --brand: #1D42B5;
  --brand-hover: #15348F;
  --on-brand: #FFFFFF;
  --link: #2952CC;
  --change: #B45309;
  --focus: #2952CC;
  --mark: #FEF08A;
  --ins-fg: #166534; --ins-bg: #DCFCE7;
  --del-fg: #991B1B; --del-bg: #FEE2E2;
  --yes: #15803D;
  --partly: #B45309;
  --no: #B91C1C;
  --apple: #334155;
  --google: #166534;
  --scrim: rgb(15 23 42 / .45);
  --card-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 10px 28px -16px rgb(29 66 181 / .22);
  --lift: 0 1px 2px rgb(15 23 42 / .06), 0 18px 40px -16px rgb(29 66 181 / .28);
}

:root[data-theme="sepia"] {
  color-scheme: light;
  --paper: #F3ECDD; --sheet: #FAF5EA; --sunk: #EAE0CC;
  --ink: #2A2318; --ink-2: #54493A; --ink-3: #6A5D4B;
  --rule: #DDD0B5; --rule-strong: #BFAE8C; --field-border: #8C7B5F;
  --mark: #E9CF6E;
  --ins-bg: #D7E2C3; --del-bg: #ECD0C4; --partly: #6E4A00; --no: #962318;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="sepia"]) {
    color-scheme: dark;
    --paper: #0D1117; --sheet: #141A23; --sunk: #1A212C;
    --ink: #E6EAF1; --ink-2: #B4BECB; --ink-3: #8F9AA9;
    --rule: #262F3C; --rule-strong: #364152; --field-border: #4F5B6B;
    --rubric: #7C9BFF; --rubric-wash: #1A2340; --brand: #6E8EFF; --brand-hover: #8FAAFF; --on-brand: #0B1020;
    --link: #8FAAFF; --change: #FBBF24; --focus: #8FAAFF; --mark: #4A3D0C;
    --ins-fg: #86EFAC; --ins-bg: #12301F; --del-fg: #FCA5A5; --del-bg: #3A1717;
    --yes: #4ADE80; --partly: #FBBF24; --no: #F87171;
    --apple: #CBD5E1; --google: #86EFAC;
    --scrim: rgb(0 0 0 / .6);
    --card-shadow: 0 0 0 1px var(--rule);
    --lift: 0 0 0 1px var(--rule), 0 16px 40px -16px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D1117; --sheet: #141A23; --sunk: #1A212C;
  --ink: #E6EAF1; --ink-2: #B4BECB; --ink-3: #8F9AA9;
  --rule: #262F3C; --rule-strong: #364152; --field-border: #4F5B6B;
  --rubric: #7C9BFF; --rubric-wash: #1A2340; --brand: #6E8EFF; --brand-hover: #8FAAFF; --on-brand: #0B1020;
  --link: #8FAAFF; --change: #FBBF24; --focus: #8FAAFF; --mark: #4A3D0C;
  --ins-fg: #86EFAC; --ins-bg: #12301F; --del-fg: #FCA5A5; --del-bg: #3A1717;
  --yes: #4ADE80; --partly: #FBBF24; --no: #F87171;
  --apple: #CBD5E1; --google: #86EFAC;
  --scrim: rgb(0 0 0 / .6);
  --card-shadow: 0 0 0 1px var(--rule);
  --lift: 0 0 0 1px var(--rule), 0 16px 40px -16px rgb(0 0 0 / .6);
}

/* CJK: system Gothic/Hei faces; clause numbers and English quotes still read in the Latin stack. */
:lang(ja) {
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --lh-text: 1.85; --lh-serh: 1.7;
}
:lang(zh) {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --lh-text: 1.85; --lh-serh: 1.7;
}
:lang(ko) {
  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --lh-text: 1.8; --lh-serh: 1.65;
}
:lang(ja), :lang(zh), :lang(ko) { --font-display: var(--font-sans); } /* CJK headings stay in the Gothic face; the serif is Latin only */
:lang(ja) em, :lang(zh) em, :lang(ko) em, :lang(ja) i, :lang(zh) i, :lang(ko) i { font-style: normal; font-weight: 600; }

@media (max-width: 767px) { :root { --fs-text: 1.125rem; --fs-h1: 1.875rem; --fs-h2: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { :root { --t-fast: 0ms; --t-panel: 0ms; } }

/* ---- shared base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-ui)/var(--lh-ui) var(--font-ui);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-head); letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h3, h4 { letter-spacing: -0.005em; font-weight: 650; }
p, li { text-wrap: pretty; }
/* Links: brand colour; underlined inside running text, plain in interface lists (see .plain). */
a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--mark); color: var(--ink); }
abbr, .sc { letter-spacing: .02em; }
[hidden] { display: none !important; }
code, kbd { font-family: var(--font-mono); font-variant-numeric: slashed-zero; }
/* Clause numbers, dates, ids: tabular figures in the UI face (a monospace face gives the
   dots a full cell and reads as "3 . 1 . 2"). */
.mono { font-family: var(--font-ui); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }
kbd { font-size: .8em; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: var(--r-1); padding: 0 .35em; color: var(--ink-2); background: var(--sheet); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); border-radius: var(--r-1); text-decoration: none; }
.skip-link:focus { top: var(--s-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid var(--brand); border-radius: var(--r-1);
  background: var(--brand); color: var(--on-brand);
  font: 600 var(--fs-ui)/1 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--sheet); color: var(--ink); border-color: var(--rule-strong); }
.btn.secondary:hover { background: var(--sunk); }
.btn.danger { background: transparent; color: var(--no); border-color: var(--no); }
.btn.danger:hover { background: var(--rubric-wash); }
.btn.small { min-height: 32px; padding: 0 var(--s-3); font-size: var(--fs-small); }
.textbtn {
  background: none; border: 0; padding: 0; color: var(--link); cursor: pointer;
  font: inherit; font-weight: 500; text-decoration: none;
}
.textbtn:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Fields */
.field, input[type="text"].field, input[type="email"].field, input[type="search"].field, textarea.field, select.field {
  min-height: 40px; padding: var(--s-2) var(--s-3);
  border: 1px solid var(--rule-strong); border-radius: var(--r-1);
  background: var(--sheet); color: var(--ink);
  font: 400 var(--fs-ui)/1.4 var(--font-ui);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field:hover { border-color: var(--field-border); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea.field { line-height: var(--lh-ui); resize: vertical; }
.field::placeholder { color: var(--ink-3); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* Platform tag: never colour alone (WCAG 1.4.1) — mono code + shape */
/* Store mark: the App Store / Google Play logo (owner decision, 27 Oct 2026, accepting the
   trademark risk). The element keeps its text (AS/GP) for search and copy; it is not shown. */
.pf {
  display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px;
  background: center / contain no-repeat; overflow: hidden; text-indent: 100%; white-space: nowrap; font-size: 0;
}
.pf.apple { background-image: url(/img/app-store.svg); border-radius: 22.5%; }
.pf.google { background-image: url(/img/google-play.svg); }
h1 .pf, h2 .pf, h3 .pf { width: 20px; height: 20px; vertical-align: -2px; }
/* An empty inline-block has no text baseline: centre it in flex rows instead. */
.pf { align-self: center; }

/* Status label: small caps, never pills */
.tag {
  display: inline-block; font: 600 var(--fs-micro)/1.2 var(--font-ui);
   letter-spacing: .05em; font-size: var(--fs-label);
  color: var(--ink-3); padding: 1px 0; white-space: nowrap;
}
.tag.change { color: var(--change); }
.tag.rubric { color: var(--rubric); }
.tag.partly { color: var(--partly); }
.tag.no { color: var(--no); }
.tag.yes { color: var(--yes); }

/* Verdict label: a dot and a tint of the verdict colour */
.stamp {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px;
  border-radius: var(--r-1); background: color-mix(in srgb, currentColor 11%, transparent);
  font: 600 var(--fs-micro)/1.15 var(--font-ui); white-space: nowrap;
}
.stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stamp.yes { color: var(--yes); }
.stamp.partly { color: var(--partly); }
.stamp.no { color: var(--no); }
.stamp.none { color: var(--ink-3); }

/* Booktabs tables */
table.book { border-collapse: collapse; width: 100%; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
table.book thead th { font: 600 var(--fs-label)/1.3 var(--font-ui);  letter-spacing: .05em; color: var(--ink-2); text-align: left; border-bottom: 1px solid var(--rule-strong); padding: var(--s-2) var(--s-3) var(--s-2) 0; }
table.book { border-top: 1.5px solid var(--rule-strong); border-bottom: 1.5px solid var(--rule-strong); }
table.book tbody tr:first-child td { padding-top: var(--s-3); }
table.book tbody tr:last-child td { padding-bottom: var(--s-3); }
/* Booktabs: rules above and below the table and under its head only; rows are set apart by space. */
table.book td { padding: var(--s-2) var(--s-3) var(--s-2) 0; vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* One rule under page titles (formerly a double rule; simplified 27 Oct 2026). */
.double-rule { border: 0; height: 0; margin: var(--s-4) 0 var(--s-5); border-top: 1px solid var(--rule-strong); background: transparent; }

/* Inline icon (sprite) */
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: miter; }

/* Seal: "verified verbatim" */
.seal { display: inline-flex; align-items: center; gap: 4px; color: var(--yes); font: 500 var(--fs-micro)/1 var(--font-ui); white-space: nowrap; }
.seal .ic { width: 14px; height: 14px; }

/* Type-ahead (app/suggest.js): a sheet hanging under the search field, set like an index. */
.sg-host { position: relative; }
.sg { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: min(62vh, 480px); overflow: auto; overscroll-behavior: contain; background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--ink) 35%, transparent); text-align: left; }
.sg[hidden] { display: none; }
.sg mark { background: var(--mark); color: var(--ink); padding: 0; }
.sg-group + .sg-group { margin-top: var(--s-1); }
.sg-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 8px 14px 2px; font: 600 var(--fs-micro)/1.4 var(--font-ui);  letter-spacing: .05em; color: var(--ink-3); }
.sg-clear { border: 0; background: none; padding: 0; color: var(--ink-3); font: inherit; font-variant-caps: normal; letter-spacing: 0; cursor: pointer; text-decoration: underline; }
.sg-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 14px; color: var(--ink); text-decoration: none; font: 400 var(--fs-ui)/1.4 var(--font-ui); }
.sg-row:hover { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.sg-row[aria-selected="true"] { background: var(--sunk); box-shadow: inset 2px 0 0 var(--rubric); }
.sg-row .pf { flex: none; align-self: flex-start; margin-top: 2px; }
.sg-no { flex: none; min-width: 4.6em; color: var(--rubric); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.sg-main { display: grid; min-width: 0; flex: 1; }
.sg-title { font-family: var(--font-text); font-weight: 600; overflow-wrap: anywhere; }
.sg-doc { font-weight: 500; }
.sg-lt { color: var(--ink-2); font-size: var(--fs-small); }
.sg-sum { color: var(--ink-3); font-size: var(--fs-micro); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-meta { flex: none; color: var(--ink-3); font-size: var(--fs-micro); font-variant-numeric: tabular-nums; }
.sg-ask { color: var(--ink-2); }
.sg-recent { color: var(--ink-2); }
.sg-foot { color: var(--link); font-size: var(--fs-small); }
.sg-sum-only { color: var(--ink-2); font-size: var(--fs-ui); -webkit-line-clamp: 2; }
.sg-note { margin: 0; padding: 10px 14px; color: var(--ink-3); font-size: var(--fs-small); }
@media (max-width: 560px) {
  .sg { max-height: 56dvh; }
  .sg-row { padding: 10px 12px; gap: 2px 8px; flex-wrap: wrap; }
  .sg-no { min-width: 0; }
  .sg-row > .sg-main { flex-basis: 100%; }
  .sg-row > .sg-meta, .pal-row > .sg-meta { margin-left: auto; }
  .pal-row { flex-wrap: wrap; row-gap: 2px; }
  .pal-row > .sg-main { flex-basis: 100%; }
}
@media (pointer: coarse) { .sg-row { min-height: 44px; } .pal-foot { display: none; } }

/* Touch: standalone links and controls get a >=44px hit area (WCAG 2.5.8 asks 24px, Apple
   HIG 44pt). Inline padding grows the hit box without moving the line box; links inside
   running text are left alone. */
@media (pointer: coarse) {
  .brand, .signin, .top-login { padding-block: 11px; margin-block: -11px; }
  .brand { min-width: 44px; }
  .examples a, .no a, .lang-switch a, .toc-more a, nav li > a, .toc li > a { padding-block: 12px; margin-block: -12px; }
  .examples a, .lang-switch a { display: inline-block; padding-inline: 4px; margin-inline: -4px; }
  .check input, .radio input { width: 20px; height: 20px; flex: none; align-self: center; }
  .check, .radio { min-height: 44px; align-items: center; }
}

@media print {
  :root { --paper: #fff; --sheet: #fff; --ink: #000; --ink-2: #333; --ink-3: #555; --rule: #bbb; }
  .no-print { display: none !important; }
}


/* Groups of buttons and links: one rhythm everywhere (12px between buttons, 16px rows). */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin: var(--s-4) 0; }

/* Card: kept for the few blocks that stand on their own; flat, hairline border. */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-2); padding: var(--s-5); }
.plain, .plain a { text-decoration: none; }

/* ---------------------------------------------------------------- loader
   The app icon, animated: the page tilts in, its lines fill, the badge pops and the
   check draws, then it settles and repeats. Markup: core.js loader() and app/index.html. */
.sr-loader { display: inline-grid; justify-items: center; gap: 10px; color: var(--ink-3); font: 500 var(--fs-small, .875rem)/1.3 var(--font-ui); }
.sr-loader svg { width: var(--loader-size, 56px); height: var(--loader-size, 56px); border-radius: 22%; box-shadow: 0 6px 18px rgba(26, 57, 160, .22); }
.sr-loader .l-page { transform-box: view-box; transform-origin: 512px 540px; animation: srl-page 2.4s cubic-bezier(.2, .8, .2, 1) infinite; }
.sr-loader .l-line { transform-box: fill-box; transform-origin: left center; animation: srl-line 2.4s cubic-bezier(.3, .7, .2, 1) infinite; }
.sr-loader .l-line:nth-of-type(2) { animation-delay: .08s; }
.sr-loader .l-line:nth-of-type(3) { animation-delay: .16s; }
.sr-loader .l-badge { transform-box: fill-box; transform-origin: center; animation: srl-badge 2.4s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.sr-loader .l-check { stroke-dasharray: 320; animation: srl-check 2.4s ease-out infinite; }
@keyframes srl-page { 0% { transform: translateY(70px) rotate(6deg); opacity: 0; } 14%, 86% { transform: none; opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
@keyframes srl-line { 0%, 16% { transform: scaleX(0); } 36%, 86% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes srl-badge { 0%, 38% { transform: scale(0); } 52%, 86% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes srl-check { 0%, 50% { stroke-dashoffset: 320; } 66%, 100% { stroke-dashoffset: 0; } }
/* Page-level loading: centred in the window, not in the content column, so it sits in the same
   place as the boot loader; the empty page keeps the footer out of view meanwhile. */
.sr-loader-block { position: fixed; inset: var(--header-h) 0 0; display: grid; place-content: center; justify-items: center; z-index: 4; pointer-events: none; }
.page:has(> .sr-loader-block) { min-height: calc(100dvh - var(--header-h)); }
/* With the sidebar, centre in the content area, not the window. */
@media (min-width: 1100px) { .sr-loader-block { left: var(--w-side); } }
@media (prefers-reduced-motion: reduce) {
  .sr-loader .l-page, .sr-loader .l-line, .sr-loader .l-badge, .sr-loader .l-check { animation: none; }
  .sr-loader svg { animation: srl-breathe 2s ease-in-out infinite; }
  @keyframes srl-breathe { 50% { opacity: .65; } }
}

/* ---------------------------------------------------------------- brand lockup (all pages)
   App icon + name + tagline in headers; icon + name + tagline in footers. One copy here. */
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 1.125rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 1.75rem; height: 1.75rem; flex: none; border-radius: 22%; display: block; }
.brand-text { display: grid; gap: 2px; line-height: 1; }
.brand-tag { font: 500 .8125rem/1.15 var(--font-ui); letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 720px) { .brand-tag { display: none; } }

/* ---- site footer (shared; lives in tokens.css) */
.colophon { border-top: 1px solid var(--rule); background: var(--sunk); margin-top: var(--s-8); color: var(--ink-2); font: 400 var(--fs-small)/1.5 var(--font-ui); }
.colophon-in { max-width: var(--w-page); margin: 0 auto; padding: var(--s-7) var(--s-5) var(--s-5); }
:where(.colophon) :where(p, ul, h2) { margin: 0; padding: 0; }
.colophon ul { list-style: none; }
:where(.colophon) a { color: inherit; text-decoration: none; }
.colophon a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.colophon a:focus-visible, .colophon .textbtn:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; border-radius: 3px; }

.colo-main { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.colo-brand { display: flex; align-items: center; gap: var(--s-2); font: 600 1.125rem/1 var(--font-display); color: var(--ink); }
.colo-brand img { width: 28px; height: 28px; border-radius: 22%; }
.colo-tagline { margin-top: var(--s-4); font: 600 var(--fs-h4)/1.25 var(--font-display); color: var(--ink); max-width: 18em; text-wrap: balance; }
.colo-desc { margin-top: var(--s-2); max-width: 30em; color: var(--ink-2); }
.colo-fresh { display: flex; gap: var(--s-2); align-items: baseline; margin-top: var(--s-4); max-width: 30em; font-size: var(--fs-micro); color: var(--ink-3); }
.colo-fresh::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rubric); transform: translateY(-1px); }
.colo-h { margin-bottom: var(--s-3) !important; font: 600 .8125rem/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.colo-col li + li { margin-top: 2px; }
.colo-col a { display: inline-block; padding: 5px 0; }

.colo-base { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule); font-size: var(--fs-micro); color: var(--ink-3); }
.colo-legal { flex: 1 1 28em; max-width: 46em; }
.colo-legal a { text-decoration: underline; text-underline-offset: 3px; }
.colo-langs { display: flex; flex-wrap: wrap; gap: 2px; }
.colo-langs a { padding: 4px 10px; border-radius: 999px; color: var(--ink-2); }
.colo-langs a:hover { background: var(--paper); text-decoration: none; }
.colo-langs a[aria-current] { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--ink); font-weight: 600; }

/* compact: app, legal, rules, cases */
.colophon.compact { margin-top: var(--s-7); }
.compact .colophon-in { padding-top: var(--s-5); padding-bottom: var(--s-5); display: grid; gap: var(--s-3) var(--s-6); grid-template-columns: auto 1fr auto; align-items: center; font-size: var(--fs-micro); }
.compact .colo-brand { font-size: 1rem; }
.compact .colo-brand img { width: 24px; height: 24px; }
.colo-inline { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.colo-inline a, .colo-inline .textbtn { padding: 4px 0; }
.compact .colo-langs { justify-self: end; }
.compact .colo-meta { grid-column: 1 / -1; display: grid; gap: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--rule); color: var(--ink-3); }
.compact .colo-meta p + p { margin: 0; }

@media (pointer: coarse) {
  .colophon a, .colophon .textbtn { padding-block: 10px; margin-block: 0; }
  .colo-col a { display: block; }
}
@media (max-width: 960px) {
  .colo-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colo-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .colophon-in { padding: var(--s-6) var(--gutter) var(--s-5); }
  .colo-main { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
  .colo-col:last-of-type { grid-column: 1 / -1; }
  .colo-col:last-of-type ul { columns: 2; column-gap: var(--s-5); }
  .colo-base { margin-top: var(--s-6); }
  .compact .colophon-in { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .compact .colo-langs { justify-self: start; }
}
.compact .colo-tag { margin-left: 4px; color: var(--ink-3); font: 400 var(--fs-micro)/1.2 var(--font-ui); }
.compact .colo-brand { flex-wrap: wrap; }
