/* The one stylesheet of ReachStats. The mockups in docs/mockups/ set the look:
   IBM Plex Sans for text, IBM Plex Mono for numbers, a neutral palette, and
   green only for "verified". When a mockup and this file disagree, the mockup wins. */

/* ── Fonts ──────────────────────────────────────────────────── */
/* IBM Plex, served from this site (static/fonts, SIL Open Font License): no request to Google,
   so no visitor IP goes to a third party. Files from @fontsource/ibm-plex-sans and -mono 5.3.0.
   The browser loads a subset only when the page has a character in its unicode-range. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Colors ─────────────────────────────────────────────────── */
:root {
  --bg: #FAFAFA;
  --hl: #D9480F; /* the one highlight of the pictures of /formulas (docs/pictures/draw.py) */
  --card: #FFFFFF;
  --text: #111111;
  --muted: #6B6B6B;
  --border: #E5E5E5;
  --btn: #171717;
  --btn-text: #FAFAFA;
  --seal: #0F7B4A;
  --seal-soft: #E9F5EE;
  --stale: #B45309;
  --stale-soft: #FEF3E2;
  --danger: #B42318;
  --danger-soft: #FEF0EE;
  --tile-a: #ECECEC;
  --tile-b: #DADADA;
  --best: #F1F1F1;
  /* Sponsor pastels (compare.html): only in the sponsor spots, never the verified green. */
  --sponsor: #F3EEFF;
  --sponsor-border: #E3D9FB;
  --s2: #EAF4FF;
  --s2b: #D3E6FB;
  --s3: #FFF1E6;
  --s3b: #FBDCC3;
  --s4: #FFEEF5;
  --s4b: #F9D5E5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --hl: #FF8A4C;
    --card: #171717;
    --text: #EDEDED;
    --muted: #A1A1A1;
    --border: #262626;
    --btn: #EDEDED;
    --btn-text: #0A0A0A;
    --seal: #34D399;
    --seal-soft: #0F2A1E;
    --stale: #FBBF24;
    --stale-soft: #2A2008;
    --danger: #F97066;
    --danger-soft: #2A1212;
    --tile-a: #222222;
    --tile-b: #2E2E2E;
    --best: #232323;
    --sponsor: #1D1730;
    --sponsor-border: #342A52;
    --s2: #0F1E30;
    --s2b: #1E3550;
    --s3: #2A1A0E;
    --s3b: #4A3020;
    --s4: #2A1320;
    --s4b: #4A2238;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
.symbols { position: absolute; } /* the <symbol> sheet of partials/seal_symbol.html: no style attribute (the CSP) */
[hidden], .hidden { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
h2 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 0; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; margin: 0; }
/* The section label of the mockups: small capitals above a card. */
.head h1, .head h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
}
code { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.who { font-weight: 500; overflow-wrap: anywhere; }
.what { font-size: 13px; color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
/* A form field for bots only (the contact form): off the screen, but not display:none, which some bots skip. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Page frame ─────────────────────────────────────────────── */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }
.wrap-narrow { max-width: 440px; }
.wrap-wide { max-width: 1000px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.seal { color: var(--seal); flex: none; }
.top-links { display: flex; align-items: center; gap: 8px; }
/* A 44 px hit area for each control on a phone (audit 12, A26; audit 14, B3). */
.logo, .top-links a, .link-actions a, .top-back { min-height: 44px; }
.top-links a, .link-actions a, .top-back { display: inline-flex; align-items: center; padding: 0 6px; }

.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
main > .head:first-child { margin-top: 8px; }
.section { margin-top: 28px; }
main > .card + .card { margin-top: 16px; }
.board-area { margin-top: 16px; }
#requests + .card { margin-top: 16px; }
.intro { margin: 8px 0 20px; }
.intro p { margin: 6px 0 0; }
.stack > * + * { margin-top: 16px; }
/* A hidden input is no visible element: the element after it is the first one, with no top margin. */
.stack > [type=hidden] + * { margin-top: 0; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.fine { font-size: 12px; color: var(--muted); }

.site-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.site-footer .logo { font-size: 15px; color: var(--text); }
.site-footer p { margin: 10px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────────── */
/* One main action on each screen: .btn is the filled main action, the other buttons are .btn-ghost. */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--btn);
  background: var(--btn); color: var(--btn-text);
  font-weight: 500; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-sm { min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn-block { display: flex; width: 100%; min-height: 48px; white-space: normal; }
/* Two full-width actions one after the other never touch: a phone tap must not hit the wrong one (audit 15, U5). */
.btn-block + .btn-block, form + .btn-block { margin-top: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-spinner {
  display: inline-block; width: 14px; height: 14px; vertical-align: middle;
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cards and lists ────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 + p { margin: 4px 0 0; }
.card > h2 + p, .card > h1 + p { margin: 6px 0 16px; }
.card > h1 + form { margin-top: 20px; } /* the email tap page: the heading, then the button */
.section-desc { margin: 0 0 16px; }
details.card > summary { min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); font-weight: 400; }
details.card[open] > summary::after { content: "−"; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.requests-fold .list { margin-top: 12px; }
.list > li:last-child { padding-bottom: 0; }
.list .line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.list .line > .btn-row { grid-column: 1 / -1; }
.list .btn-row, .list .row { margin-top: 10px; }

/* The creator home (mockups/creator.html). */
.ready { text-align: center; padding: 16px 0 4px; }
.ready .big-seal { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--seal-soft); margin-bottom: 12px; }
.ready p { margin: 8px 0 0; }
.ready + .stack { margin-top: 20px; }
/* Under the link box: the page link, and "Turn off this link". */
.link-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.linkbox {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 14px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; font-size: 15px;
  text-overflow: ellipsis;
}
.linkbox:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.banner {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 14px;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; margin-bottom: 6px; }
legend.form-label { padding: 0; }
.form-control {
  display: block; width: 100%; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text);
}
textarea.form-control { padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.form-control {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.form-control:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters > div { flex: 1 1 140px; }
.filters .form-label { font-size: 13px; }

.autosave-status { display: inline-flex; margin-left: 6px; font-size: 12px; font-weight: 400; vertical-align: middle; }
.field-saved-indicator { color: var(--muted); animation: field-saved 2s ease forwards; }
@keyframes field-saved { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* ── Messages ───────────────────────────────────────────────── */
.alert { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--border); }
.alert-warning { background: var(--stale-soft); border-color: transparent; }
.alert-warning b { color: var(--stale); }
.alert-danger { background: var(--danger-soft); border-color: transparent; }
.alert-danger b { color: var(--danger); }
.alert-success { background: var(--seal-soft); border-color: transparent; }
.alert-success b { color: var(--seal); }
.undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* The "Undo" bars float at the bottom of the screen, as the toasts do: the person sees the bar where the tap was. */
.undo-dock {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 350;
  width: min(560px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px;
}
.undo-dock .alert { margin: 0; box-shadow: var(--shadow); }
/* base.html sets --dock-h (the dock and a gap) and --dock-space from the real height of the dock: the toasts go
   above the bars, and the end of the page can scroll above them. Both are 0 with no bar. */
body { padding-bottom: var(--dock-space, 0px); }
.alert .alert-action { margin-top: 10px; }
.alert-dismissing { opacity: 0; transition: opacity 0.4s ease; }
.card-new { border-color: var(--text); }

.badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
  font-size: 12px; font-weight: 500; color: var(--muted);
}
.badge-warning { color: var(--stale); background: var(--stale-soft); border-color: transparent; }
.stale { display: inline-block; font-size: 12px; color: var(--stale); font-weight: 500; background: var(--stale-soft); border-radius: 6px; padding: 3px 6px; }
.fresh { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--seal); font-weight: 500; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--seal); display: inline-block; }

#toast-container {
  position: fixed; left: 50%; bottom: calc(24px + var(--dock-h, 0px)); transform: translateX(-50%); z-index: 400;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 32px);
}
.toast {
  background: var(--btn); color: var(--btn-text);
  padding: 10px 16px; border-radius: 10px; font-size: 14px;
  animation: toast-in 0.2s ease, toast-out 0.2s ease 3.8s forwards;
}
.toast-danger { background: var(--danger); color: var(--card); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(20px); } }

.dialog {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 301;
  width: calc(100% - 32px); max-width: 400px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow);
}
.dialog p { margin: 8px 0 20px; }
.dialog .dialog-title { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 0; }
.dialog .btn-row { justify-content: flex-end; }
.backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.4); }

/* ── Tabs, tables, pages ────────────────────────────────────── */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 3px; max-width: 100%; overflow-x: auto; }
/* 44 px high: a ::before ring does not work here, because the overflow of .seg cuts it (audit 15, U4). */
.seg a, .seg button { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: transparent; padding: 0 12px; border-radius: 9px; font-size: 14px; white-space: nowrap; color: var(--muted); text-decoration: none; cursor: pointer; }
.seg [aria-current="true"], .seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }

.page-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 8px 0 16px; }
.page-header p { margin: 0; }

.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-top: 1px solid var(--border); }
.data-table thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 13px; }
.data-table .right { text-align: right; }
.data-table .date { white-space: nowrap; }
.data-table .empty { padding: 32px 14px; text-align: center; color: var(--muted); }
.card:not(.card-flush) > .table-wrap { margin: 0 -20px -20px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 14px; }


/* ── Public pages ───────────────────────────────────────────── */
.hero { padding: 36px 0 8px; }
.hero p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.hero .btn-row { margin-top: 24px; }
.hero .beta-notice { margin: 24px 0 0; }  /* the closed beta notice in place of the two buttons (app/beta.py) */
.hero > .btn { margin-top: 24px; }
.prose { max-width: 65ch; }
.prose h1 { margin: 8px 0 16px; }
.prose h2 { margin: 28px 0 8px; }
.prose h3 { margin: 20px 0 6px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose a { text-decoration: underline; }
.prose a.btn { text-decoration: none; }
/* The engagement rate calculator (pages/calculator.html): the form, then the two rates. */
.prose .calc, .prose .calc-result { margin: 16px 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.calc-grid .fine { margin: 4px 0 0; }
.calc-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; }
.prose .calc-rates p { margin: 0; }
.calc-label { font-size: 13px; color: var(--muted); }
.calc-error { color: var(--danger); }
.calc-rate { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 4px 0; }
@media (max-width: 380px) { .calc-grid, .calc-rates { grid-template-columns: 1fr; } }
/* A list of links in a card (the guides of the home page): each row is a 44 px tap target. */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--border); }
.link-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; text-decoration: underline; }
/* /tools and /guides: each page of the list, with one line of text under its name. Only the name has the underline. */
.tool-list a { text-decoration: none; padding: 12px 0; }
.tool-list b { display: block; text-decoration: underline; }
.tool-list .small { display: block; }
/* The way in at the end of a page for a search (partials/guide.html, cta). */
.prose .cta-card { margin: 24px 0; }
.cta-card h2 { margin: 0 0 6px; }
.cta-card p { margin: 0 0 16px; }
.cta-card .beta-notice { margin: 0; }
.cta-card .cta-sample { margin: 12px 0 0; }
.cta-card .beta-notice + .cta-sample-btn { margin-top: 16px; }
.hero .beta-notice + .btn { margin-top: 16px; }
/* The sample link (/instagram-media-kit-example): the notice above the profile, and the way in at the end. */
.sample-notice { margin-top: 8px; }
main > .cta-card { margin-top: 24px; }
/* The guides: the "Updated" line and the comparison table. */
.guide-meta { font-size: 13px; color: var(--muted); }
.prose .table-wrap { overflow-x: auto; margin: 0 0 12px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.compare th { font-weight: 600; }
.hero .fine { margin: 12px 0 0; font-size: 12px; }
.hero .hero-sample { margin: 16px 0 0; }
.hero .hero-sample a { color: var(--text); font-weight: 500; }
.qa-list { padding-top: 4px; padding-bottom: 4px; }
.qa + .qa { border-top: 1px solid var(--border); }
.qa > summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 500; cursor: pointer; list-style: none; }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.qa[open] > summary::after { content: "−"; }
.qa > p { margin: 0 0 14px; }

/* ── The share page and the other public link pages ─────────── */
/* From docs/mockups/share-page.html. Mobile first: brands and creators open it in Instagram DMs on a phone. */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.profile > .alert { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tile-b), var(--tile-a));
  display: grid; place-items: center;
  font-weight: 600; font-size: 24px; color: var(--muted);
}
.name { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.handle { margin: 2px 0 0; overflow-wrap: anywhere; }
.verified {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  background: var(--seal-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.verified b { color: var(--seal); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Two columns on a phone: a last tile alone takes the full row. */
.stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > .stat:last-child:nth-child(odd) { grid-column: auto; }
}
.stat { padding: 16px; position: relative; }
.stat .label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-right: 24px; }
.stat .value { font-size: 26px; margin-top: 6px; line-height: 1.1; }
.stat .note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat details { position: static; }
.stat summary, .more-item details summary {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--muted);
  cursor: pointer; list-style: none;
}
.stat summary::-webkit-details-marker, .more-item details summary::-webkit-details-marker { display: none; }
.stat summary::before, .more-item details summary::before { content: ""; position: absolute; inset: -11px; } /* 46 px: 44 px also on a fractional position (audit 15, U4) */
.stat summary, .more-item details summary, .rm { z-index: 1; } /* the hit area above the number and the creator link */
.stat details[open] summary { background: var(--text); color: var(--card); border-color: var(--text); }
/* The "i" panel (partials/explain.html): in the middle of a computer screen, a sheet from the bottom on a phone. The
   ring of shadow dims the page; a tap there closes the panel (partials/explain_js.html). z-index: as the confirm dialog. */
details.explain[open] > .sheet {
  position: fixed; z-index: 301; left: 50%; top: 8vh; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); max-height: 84vh; overflow-y: auto;
  display: grid; gap: 16px; padding: 20px; text-align: left; font-size: 15px; line-height: 1.5;
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.4), var(--shadow);
}
@media (max-width: 640px) {
  details.explain[open] > .sheet {
    top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 85vh;
    border-radius: 18px 18px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet h3 { font-size: 18px; }
.fx { display: grid; gap: 10px; }
.fx + .fx { border-top: 1px solid var(--border); padding-top: 16px; }
.fx h4 { margin: 0; font-size: 15px; }
.fx p { margin: 0; }
.frac { display: grid; justify-items: center; gap: 6px; padding: 12px 16px; border-radius: 12px; background: var(--s3); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.frac-line { height: 2px; width: 100%; background: var(--text); border-radius: 1px; }
.fx-then, .fx-note { font-size: 14px; color: var(--muted); }
.fx-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.fx-ex { display: grid; gap: 4px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px; font-size: 14px; }
.fx-ex-h { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fx-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.fx-row span:first-child { color: var(--muted); }
.basis { margin: 12px 0 0; }

.actions { display: grid; gap: 10px; margin-top: 28px; }
/* Each screen size: the brand action stays at the bottom of the screen, so the brand never scrolls to it.
   The bar is the last part of the page, so at the end of the page it covers no data. */
.share-actions { position: sticky; bottom: 0; z-index: 5; margin-inline: -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
@media (max-width: 1199px) { body.has-sponsors .share-actions { bottom: 44px; } } /* above the sponsor strip */
/* The sponsor columns: the bar stays in the creator's column, with no part over a sponsor spot. */
@media (min-width: 1200px) { .sponsor-layout .share-actions { margin-inline: 0; padding-inline: 0; } }
.ask-name { display: grid; gap: 6px; }

/* The brand's board page: the handle field and its button on one line. */
.ask-form { display: grid; gap: 12px; }
.ask-form .row > .btn { flex: 0 0 auto; }
.creator-cta { color: var(--text); font-weight: 500; }
/* A small link or fold of one line: 44 px high, so a phone tap does not miss it (audit 15, U4). A summary keeps its
   marker (display: list-item), so it gets the height from its padding. */
.tap, .site-footer nav a, .creator-cta { display: inline-flex; align-items: center; min-height: 44px; }
summary.tap { display: list-item; min-height: 0; padding-block: 13px; line-height: 20px; }

.missing { text-align: center; padding: 48px 20px; }
.missing h1 { font-size: 20px; line-height: 1.3; }
.missing p { margin: 10px 0 0; }

/* Audience bars */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* An SVG: the width of the rect is an attribute, not a style attribute (the CSP, audit 15). */
.track { display: block; width: 100%; height: 8px; background: var(--tile-a); border-radius: 999px; overflow: hidden; }
.fill { fill: var(--text); }
.bar .num { text-align: right; font-size: 13px; font-weight: 500; }
.audience { display: grid; gap: 24px; }
@media (min-width: 600px) { .audience { grid-template-columns: 1fr 1fr; } .audience .wide { grid-column: 1 / -1; } }
.audience h3 { font-size: 14px; margin: 0 0 10px; }
.trials-switch a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-underline-offset: 3px; }
.more-bars { margin-top: 8px; }
.more-bars > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.more-bars > summary::-webkit-details-marker { display: none; }
.more-bars > summary::after { content: " +"; white-space: pre; }
.more-bars[open] > summary::after { content: " −"; }
.more-bars > summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.source { font-size: 12px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 6px; }

/* Recent posts. No images: Instagram image URLs expire, so the tile has one
   header line (type and date) instead of the mockup's thumbnail. */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post { padding: 0; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.thumb {
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px; font-size: 11px; color: var(--muted);
}
.tag { background: var(--card); border-radius: 999px; padding: 1px 8px; font-weight: 500; }
/* A post with its thumbnail: a square image under the type and the date (docs/mockups/share-page.html). */
.thumb.has-image { position: relative; aspect-ratio: 1 / 1; align-items: flex-start; }
.thumb.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.has-image > span { position: relative; }
.thumb.has-image .date { background: var(--card); color: var(--text); border-radius: 999px; padding: 1px 8px; }
.post dl { margin: 0; padding: 10px 12px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 12px; }
.post dt { color: var(--muted); }
.post dd { margin: 0; text-align: right; }

/* More numbers */
details.more { margin-top: 16px; }
details.more > summary { min-height: 44px; font-weight: 500; gap: 12px; }
/* The title, and under it the line that says what the closed part holds. */
.more-title { display: grid; gap: 2px; }
.more-holds { font-weight: 400; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.more-item { position: relative; padding-right: 28px; }
.more-item .value { font-size: 20px; }
.more-item details summary { top: 0; right: 0; }
.vlabel { display: flex; align-items: center; gap: 6px; }
.types { grid-column: 1 / -1; }
.types table { border-collapse: collapse; width: 100%; margin-top: 6px; font-size: 13px; }
.types th, .types td { padding: 6px 0 6px 12px; text-align: right; border-top: 1px solid var(--border); }
.types thead th, .types thead td { border-top: 0; color: var(--muted); font-weight: 500; }
.types th:first-child, .types td:first-child { padding-left: 0; text-align: left; font-weight: 400; }
/* The follower growth, the first card of the full history. Only the chart: the 13 px seal in the label keeps
   its own size. */
.spark > svg { width: 100%; height: 64px; display: block; margin-top: 6px; }
.spark-ends { display: flex; justify-content: space-between; }

/* From the creator: not verified */
.self { border: 1.5px dashed var(--border); border-radius: 14px; padding: 20px; color: var(--muted); }
.self .who { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.self p { margin: 10px 0 0; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }

/* Full history: on the share link and on the brand's board. minmax(0, 1fr): a grid item keeps the width of its
   content, so the 440 px day table made a phone page wider than the screen (audit 14, A1). */
.history { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.month { padding: 0; }
.month summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.month summary::-webkit-details-marker { display: none; }
.month .mname { font-weight: 600; }
.month .mnums { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.days { overflow-x: auto; border-top: 1px solid var(--border); }
.days table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 13px; }
.days th, .days td { padding: 6px 16px; text-align: right; border-top: 1px solid var(--border); }
.days thead th { border-top: 0; color: var(--muted); font-weight: 500; }
.days th:first-child { text-align: left; font-weight: 400; }
.history-formula { margin-top: 8px; }
.history-formula summary { cursor: pointer; }

/* The request link /r/<token> (DESIGN-USERS.md, section 4B). */
.request h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 20px; letter-spacing: -0.01em; }
.request .for { margin: 0; }
.asks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.asks li { display: flex; gap: 10px; align-items: flex-start; }
.asks li .seal { margin-top: 3px; }
.asks li > span { display: grid; }
#answer p { margin: 12px 0 0; }
/* "You are logged in as ..." above its button: a gap, so the text does not read as a part of the button. */
#answer p + .btn { margin-top: 12px; }
#answer .done { margin: 0 0 12px; }
#answer .alert { margin-bottom: 12px; }

/* The status page of a data deletion (/data-deletion). */
.deletion .code { margin-top: 16px; }

/* ── The brand's comparison board ───────────────────────────── */
/* From docs/mockups/compare.html. Creators are columns, metrics are rows. The first column stays in place on a phone. */
.board-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
/* The frame fits the table: one creator column is not the width of a desktop screen (audit 12, A27). */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card); width: fit-content; max-width: 100%; }
/* No min-width: one creator column fits a phone, so its ✕ is on the screen. The cell widths make more columns scroll. */
.board-table { border-collapse: separate; border-spacing: 0; }
.board-table th, .board-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.board-table thead th { border-top: 0; }
.board-table tbody th { font-weight: 500; font-size: 14px; }
.board-table tbody th .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.board-table th:first-child {
  position: sticky; left: 0; z-index: 1;
  background: var(--card); width: 150px; min-width: 130px;
  border-right: 1px solid var(--border);
}
.board-table td, .board-table thead th:not(:first-child) { min-width: 140px; width: 200px; }
/* A phone (390 px) shows two whole creator columns next to the labels (audit 12, B9). */
@media (max-width: 599px) {
  .board-table th, .board-table td { padding: 12px 10px; }
  .board-table th:first-child { width: 80px; min-width: 80px; }
  .board-table td, .board-table thead th:not(:first-child) { min-width: 0; width: 108px; }
}
.board-table td .num { font-size: 17px; }
.board-table td .note { display: block; font-size: 12px; color: var(--muted); }
.board-table td.best { background: var(--best); }
.best-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); vertical-align: 2px; }

.creator-col { display: grid; gap: 6px; text-decoration: none; }
.creator-th { position: relative; }
.rm { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 13px; color: var(--muted); padding: 0; }
/* A hit area of 44 x 44 px around the small circle: a tap a bit off the circle must not open the creator page. */
.rm::before { content: ""; position: absolute; inset: -11px; } /* 46 px (audit 15, U4) */
/* One line each, with "…" at the end: a long handle never breaks inside a word (audit 12, B9). A fixed max-width,
   because a table cell grows to fit a line that does not wrap. */
.creator-col .name, .creator-col .handle {
  display: block; max-width: 172px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal;
}
@media (max-width: 599px) { .creator-col .name, .creator-col .handle { max-width: 108px; } }
.creator-col .name { font-size: 15px; line-height: 1.2; }
.creator-col .handle { font-size: 13px; color: var(--muted); }
.creator-col .rank { font-size: 11px; font-weight: 600; color: var(--muted); }
.creator-col .av { width: 36px; height: 36px; border-radius: 50%; background: var(--border); display: grid; place-items: center; font-weight: 600; color: var(--muted); }
.board-source { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ── Sponsor spots ──────────────────────────────────────────── */
/* From mockups/share-page.html and compare.html (DESIGN-USERS.md, section 8).
   Phone and tablet (< 1200 px): a still strip at the top, a moving strip at the bottom.
   Desktop: a column at each side of the page. The board has wider data, so it gets the
   columns from 1500 px, and a row of cards below the table from 1200 to 1499 px. */
.schip, .rcard, .scard { background: var(--sponsor); border: 1px solid var(--sponsor-border); text-decoration: none; color: var(--text); }
.schip.c2, .rcard.c2, .scard.c2 { background: var(--s2); border-color: var(--s2b); }
.schip.c3, .rcard.c3, .scard.c3 { background: var(--s3); border-color: var(--s3b); }
.schip.c4, .rcard.c4, .scard.c4 { background: var(--s4); border-color: var(--s4b); }
.logo-i { display: grid; place-items: center; flex: none; background: var(--card); border-radius: 6px; font-style: normal; font-weight: 600; }
.rail .lbl, .mstrip .lbl, .sponsor-row .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.advertise { display: block; margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }

.rail { display: none; }
.rcard { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px 12px; border-radius: 12px; margin-top: 12px; }
.rcard .logo-i { width: 28px; height: 28px; font-size: 13px; margin-bottom: 4px; }
.rcard b, .scard b { font-weight: 600; font-size: 14px; }
.rcard span, .scard span { font-size: 12px; color: var(--muted); }

.sponsor-row { margin-top: 28px; }
.sponsor-row .lbl { margin-bottom: 8px; }
.sponsor-row .advertise { text-align: left; }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scard { display: grid; gap: 2px; align-content: start; border-radius: 12px; padding: 12px; }
.scard .logo-i { width: 26px; height: 26px; font-size: 12px; margin-bottom: 6px; border-radius: 7px; }
.sponsor-row.board-row { display: none; }

.mstrip { position: fixed; left: 0; right: 0; z-index: 20; height: 44px; overflow: hidden; background: var(--bg); display: flex; align-items: center; }
.mstrip.top { position: relative; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.mstrip.top::-webkit-scrollbar { display: none; }
.mstrip.top .mtrack { padding-left: 96px; }
.mstrip.bottom { bottom: 0; border-top: 1px solid var(--border); }
.mstrip .lbl {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; gap: 6px; padding: 0 18px 0 12px;
  background: linear-gradient(to right, var(--bg) 78%, transparent);
}
.pause {
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 1px solid var(--border); background: var(--card);
  display: grid; place-items: center; cursor: pointer; font-size: 9px; color: var(--muted);
}
.mtrack { display: flex; width: max-content; }
.mtrack.moving { animation: marquee 60s linear infinite; }
.schip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  margin-right: 8px; padding: 4px 10px 4px 5px; border-radius: 9px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.schip .logo-i { width: 20px; height: 20px; font-size: 11px; }
body.sponsors-paused .mtrack.moving, .mstrip:hover .mtrack.moving { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  /* No movement: the user scrolls the strip by hand, and the copies go away. */
  .mtrack.moving { animation: none; }
  .mstrip.bottom { overflow-x: auto; }
  .mtrack.moving [aria-hidden="true"] { display: none; }
  .pause { display: none; }
}

@media (max-width: 1199px) {
  body.has-sponsors { padding-bottom: calc(44px + var(--dock-space, 0px)); }
  body.has-sponsors #toast-container { bottom: calc(64px + var(--dock-h, 0px)); }
  body.has-sponsors .undo-dock { bottom: 64px; }
}
@media (min-width: 1200px) {
  .mstrip { display: none; }
  .sponsor-layout { display: grid; grid-template-columns: 200px minmax(0, 680px) 200px; gap: 32px; justify-content: center; padding: 0 16px; }
  .sponsor-layout > .wrap { margin: 0; padding-left: 0; padding-right: 0; max-width: none; }
  .sponsor-layout > .rail { display: block; position: sticky; top: 16px; align-self: start; padding-top: 22px; }
}
@media (min-width: 1200px) and (max-width: 1499px) {
  .sponsor-layout.board-layout { display: block; padding: 0; }
  .sponsor-layout.board-layout > .wrap { margin: 0 auto; padding: 0 16px 48px; max-width: 1000px; }
  .sponsor-layout.board-layout > .rail { display: none; }
  .sponsor-row.board-row { display: block; }
}
@media (min-width: 1500px) {
  .sponsor-layout.board-layout { grid-template-columns: 200px minmax(0, 1000px) 200px; }
}

/* ── /formulas (app/formulas.py, the one source of the words) ─────────── */
.formulas { display: grid; gap: 20px; max-width: 760px; }
.formulas .lede { font-size: 17px; max-width: 60ch; margin: 0; }
.formulas h1 { text-wrap: balance; }
.rules { display: grid; gap: 8px; }
.rules h2 { font-size: 15px; margin: 0; }
.rules ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.rules p { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 46px; /* 44 px also on a fractional position */ padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; }
.fgroup { display: grid; gap: 14px; padding-top: 16px; scroll-margin-top: 16px; }
.fgroup h2 { font-size: 22px; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.fcard { display: grid; gap: 12px; scroll-margin-top: 16px; min-width: 0; }
.fcard h3 { font-size: 18px; }
.fcard > p { margin: 0; }
.fcard .frac { justify-self: start; }

/* Pictures (templates/partials/pictures/, drawn by docs/pictures/draw.py): a wide form and a phone form. */
.pic { margin: 0; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.pic-t { margin: 0; font-weight: 600; font-size: 14px; text-wrap: balance; }
.pic-c { margin: 0; font-size: 13px; color: var(--muted); }
.pic-svg { width: 100%; height: auto; display: block; }
.pic-narrow { display: none; max-width: 420px; }
@media (max-width: 640px) {
  .pic-wide { display: none; }
  .pic-narrow { display: block; }
  .pic { padding: 6px; margin-inline: -6px; }
}
.pic-svg text { font-family: "IBM Plex Sans", system-ui, sans-serif; }
.pic-svg .t { fill: var(--text); font-size: 14px; }
.pic-svg .tb { fill: var(--text); font-size: 14px; font-weight: 600; }
.pic-svg .tm { fill: var(--muted); font-size: 13px; }
.pic-svg .tn { fill: var(--text); font-size: 12px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.pic-svg .thl { fill: var(--hl); font-size: 14px; font-weight: 600; }
.pic-svg .tseal { fill: var(--seal); font-size: 13px; font-weight: 600; }
.pic-svg .dim { fill: var(--tile-b); }
.pic-svg .ink { fill: var(--text); }
.pic-svg .hl { fill: var(--hl); }
.pic-svg .hl-soft { fill: var(--s3); }
.pic-svg .seal { color: var(--seal); fill: var(--seal); }
.pic-svg .card-f { fill: var(--card); stroke: var(--border); }
.pic-svg .room { fill: none; stroke: var(--muted); stroke-dasharray: 4 5; }
.pic-svg .dash { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 6 5; }
.pic-svg .axis { stroke: var(--muted); stroke-width: 1; }
.pic-svg .arrow { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pic-svg .line-ink { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; }
.pic-svg .hl-ring { fill: none; stroke: var(--hl); stroke-width: 2.5; }
