/* Wombat-Email: the website's one stylesheet, the same variables and look as the panel, with larger type
   for reading: a clear step from page title to section to body text. Pages add no colors of their own. */
/* Fonts: Fira Sans for text, JetBrains Mono for code, as in the panel; served from assets/fonts/ (no outside
   files). Basic Latin only. SIL OFL; the licenses are beside them. 650 shows as 700, 750 as 800. */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fira-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/fira-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  color-scheme: light dark;
  --bg: light-dark(#e7ebf1, #0f172a);
  --bg-a: light-dark(#d7dbe1, #0f172a); --bg-b: light-dark(#e7ebf1, #2f394c); --bg-c: light-dark(#c7cbd1, #0f172a);   /* the page's diagonal gradient: lighter in the middle */
  --panel: light-dark(#ffffff, #1e293b);
  --raised: light-dark(#f4f6f9, #27364b);
  --zebra: light-dark(#f3f5f8, #243146);
  --line: light-dark(#d5dbe3, #3b4b63);
  --fg: light-dark(#1f2937, #e5e7eb);
  --strong: light-dark(#0f172a, #f8fafc);
  --muted: light-dark(#5b6472, #a7b4c7);
  --accent: light-dark(#2563eb, #60a5fa);
  --accent-fill: light-dark(#2563eb, #3b82f6);
  --accent-bg: light-dark(rgb(37 99 235 / .09), rgb(96 165 250 / .15));
  --ok: light-dark(#059669, #34d399); --ok-bg: light-dark(#d1fae5, rgb(52 211 153 / .15));
  --warn: light-dark(#b45309, #fbbf24); --warn-bg: light-dark(#fef3c7, rgb(251 191 36 / .14));
  --bad: light-dark(#dc2626, #f87171); --bad-bg: light-dark(#fee2e2, rgb(248 113 113 / .15));
  /* depth: fine, layered, low-opacity shadows; dark mode leans on a light top edge instead of black */
  --shadow-1: 0 1px 2px light-dark(rgb(15 23 42 / .05), rgb(0 0 0 / .35)), 0 1px 1px light-dark(rgb(15 23 42 / .03), rgb(0 0 0 / .2)),
              inset 0 1px 0 light-dark(rgb(255 255 255 / .6), rgb(255 255 255 / .04));
  --shadow-2: 0 10px 24px -6px light-dark(rgb(15 23 42 / .12), rgb(0 0 0 / .55)), 0 2px 6px light-dark(rgb(15 23 42 / .05), rgb(0 0 0 / .3)),
              inset 0 1px 0 light-dark(rgb(255 255 255 / .6), rgb(255 255 255 / .05));
  --hair: color-mix(in oklab, var(--line) 65%, transparent);            /* dividers that barely show */
  --glow: light-dark(rgb(37 99 235 / .10), rgb(96 165 250 / .13));     /* the ambient light behind the top of a page */
  --surface: linear-gradient(180deg, var(--panel), color-mix(in oklab, var(--panel) 92%, var(--bg)));   /* cards: a hint of depth */
  --code-bg: light-dark(#f6f8fb, #0b1222);
  --code-line: light-dark(#e1e6ee, #26344b);
  --cf: light-dark(#e26f0d, #f38020);   /* Cloudflare's orange, for the steps on its website */
  --ease: .2s ease-in-out;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px;
  --r: 8px; --text: 16px; --small: 13.5px; --tiny: 11.5px; --top-h: 58px;
  --measure: 44rem;   /* the reading column: body copy never runs wider */
  --section: clamp(3.5rem, 6vw, 5rem);   /* the space above each major section */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 24px); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; padding-top: var(--top-h); color: var(--fg); font: 400 var(--text)/1.68 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: radial-gradient(60rem 26rem at 78% -6rem, var(--glow), transparent 70%), radial-gradient(40rem 20rem at 8% -4rem, color-mix(in oklab, var(--glow) 60%, transparent), transparent 70%), linear-gradient(135deg, var(--bg-a) 0%, var(--bg-b) 50%, var(--bg-c) 100%) fixed, var(--bg);
  background-repeat: no-repeat; }
a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; text-decoration-thickness: 1px;
    transition: color var(--ease), text-decoration-color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 var(--s4); }

/* the top bar: the same as the panel's */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; background: color-mix(in oklab, var(--panel) 82%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--hair); box-shadow: 0 1px 0 light-dark(rgb(255 255 255 / .5), rgb(255 255 255 / .03)) inset; }
.top .wrap { display: flex; align-items: center; gap: var(--s5); height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--strong); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.ver { font: 600 var(--tiny)/1 var(--mono); color: var(--muted); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; margin-left: calc(-1 * var(--s3)); white-space: nowrap; }
.ver:hover, .ver[aria-current="page"] { color: var(--accent); text-decoration: none; }
.top nav { display: flex; gap: var(--s1); flex: 1; font-size: var(--small); }
.top nav a { display: flex; align-items: center; gap: 6px; color: var(--fg); padding: 6px 10px; border-radius: var(--r); text-decoration: none; }
.top nav a .i { color: var(--muted); }
.top nav a:hover { background: var(--accent-bg); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); font-weight: 600; }
.top nav a[aria-current="page"] .i { color: var(--accent); }
.theme { display: flex; gap: 1px; padding: 2px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); }
.theme button { display: grid; place-items: center; width: 28px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; transition: color var(--ease), background-color var(--ease), box-shadow var(--ease); }
.theme button:hover { color: var(--fg); }
.theme button[aria-pressed="true"] { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1); }
@media (max-width: 820px) {
  body { padding-top: 84px; }
  .top .wrap { flex-wrap: wrap; height: auto; gap: var(--s1) var(--s2); padding-top: var(--s1); padding-bottom: var(--s1); }
  .theme { margin-left: auto; }
  .top nav { order: 3; flex-basis: 100%; }
  .top nav a { flex: 1; justify-content: center; padding: 5px 4px; }
  .top .wrap { gap: var(--s1) var(--s3); }
  .ver { margin-left: calc(-1 * var(--s1)); }
  .top .badge { display: none; }
}
@media (max-width: 480px) {
  .top nav a { padding: 4px; }
  .top nav a .i { display: none; }
}

/* type: each level clearly apart from the next */
main.wrap { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: var(--section); }
h1 { font-size: clamp(2.25rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: var(--strong); margin: 0 0 var(--s4); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.65rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; color: var(--strong); margin: var(--section) 0 var(--s4); padding: 0; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.012em; font-weight: 650; color: var(--strong); margin: var(--s5) 0 var(--s2); }
p { margin: 0 0 var(--s3); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); margin-bottom: var(--s5); max-width: var(--measure); }
.lead-aside { display: block; margin-top: var(--s2); font-size: .75em; line-height: 1.6; }
/* body copy keeps to the reading column; tables, cards and commands use the full width */
main.wrap > :where(p, ul:not(.steps), ol:not(.steps), blockquote, .note), .steps > li > :where(p, ul, ol, .note, .callout), details.own > :where(p, ul, ol) { max-width: var(--measure); }
ul, ol { margin: 0 0 var(--s3); padding-left: 20px; }
li { margin-bottom: var(--s3); }   /* each item stands apart, everywhere (lists of their own kind set their own) */
li > :where(ul, ol) { margin-top: var(--s3); }
code { font: .875em/1.4 var(--mono); color: var(--strong); background: var(--code-bg); border: 1px solid var(--code-line); padding: .1em .4em; border-radius: 5px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.foot { color: var(--muted); font-size: var(--small); border-top: 1px solid var(--hair); padding-top: var(--s5); padding-bottom: var(--s6); }
.foot a { color: var(--muted); text-decoration-color: color-mix(in oklab, var(--muted) 40%, transparent); }
.foot a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* why it's different: cards with an icon */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--s4); margin: 0 0 var(--s3); }
.feature { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); padding: var(--s4) var(--s5) var(--s5); transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease); }
.feature:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); }
.feature .i { color: var(--accent); width: 20px; height: 20px; padding: 7px; box-sizing: content-box; border-radius: 8px; background: var(--accent-bg); }
.feature h3 { margin: var(--s3) 0 var(--s1); font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* commands */
.cmd { position: relative; margin: 0 0 var(--s4); }
.cmd pre { margin: 0; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--r); box-shadow: var(--shadow-1);
           padding: var(--s3) 72px var(--s3) var(--s4); overflow-x: auto; line-height: 1.6; }
.cmd code { color: var(--strong); background: none; border: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.copy { position: absolute; top: 8px; right: 8px; font: 600 var(--tiny)/1.4 var(--sans); color: var(--muted);
        background: var(--panel); border: 1px solid var(--code-line); border-radius: 6px; padding: 3px 9px; cursor: pointer;
        transition: color var(--ease), border-color var(--ease), background-color var(--ease), box-shadow var(--ease); }
.copy:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.copy.done { color: var(--ok); border-color: var(--ok); }

/* tables: small type, like the panel's */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 var(--s4); background: var(--panel); font-size: var(--small); line-height: 1.5;
  border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 8px var(--s3); border-bottom: 1px solid var(--hair); transition: background-color var(--ease); }
th { font-size: var(--tiny); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; background: var(--raised); white-space: nowrap; }
tbody tr:nth-child(even) td:not(.group) { background: var(--zebra); }
tbody tr:hover td:not(.group) { background: var(--accent-bg); }
tr:last-child td { border-bottom: 0; }
td.k { white-space: nowrap; font-weight: 600; color: var(--strong); }
/* rows only: no frame, no fill, no zebra; a hairline between rows and the name as the anchor */
table.rows { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; font-size: 14px; }
table.rows th { background: none; padding: 0 var(--s4) var(--s2) 0; border-bottom: 1px solid var(--hair); }
table.rows td { padding: 14px var(--s4) 14px 0; vertical-align: baseline; color: var(--muted); }
table.rows td.k { font-weight: 650; color: var(--strong); }
table.rows.compare td { width: 50%; }   /* home: what running mail takes, what Wombat-Email does */
table.rows th, table.rows td { border-bottom-color: color-mix(in oklab, var(--muted) 45%, transparent); }   /* rows only: their lines are all that separates them, so they show */
table.rows tbody tr:nth-child(even) td, table.rows tbody tr:hover td { background: none; }
table.rows tbody tr:hover td.k { color: var(--accent); }
table.rows th:last-child, table.rows td:last-child { padding-right: 0; }
/* narrow: each row becomes a small stack, so nothing is cut off or scrolls sideways */
@media (max-width: 640px) {
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { padding: 1px var(--s3); border: 0; overflow-wrap: anywhere; }
  td:first-child { font-weight: 600; color: var(--strong); }
  tr { border-bottom-color: var(--hair); }
  table.rows td { padding: 2px 0; }
  table.rows tr { padding: var(--s3) 0; border-bottom-color: color-mix(in oklab, var(--muted) 45%, transparent); }
  table.rows td.k { padding-bottom: var(--s1); }
}

/* a green check, an amber triangle */
.mark { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.mark .i { width: 14px; height: 14px; stroke-width: 2.2; }
.mark.ok { color: var(--ok); } .mark.warn { color: var(--warn); } .mark.bad { color: var(--bad); }
table.rows .mark { gap: 5px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: var(--tiny); letter-spacing: .01em; line-height: 1.6;
  color: color-mix(in oklab, var(--accent) 55%, var(--muted)); background: color-mix(in oklab, var(--accent) 9%, var(--raised));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 16%, transparent); transition: color var(--ease), background-color var(--ease), box-shadow var(--ease); }
table.rows .mark:not(:has(.i)) { padding-left: 10px; }
table.rows .mark .i { width: 12px; height: 12px; }
table.rows .mark.ok { color: var(--ok); background: color-mix(in oklab, var(--ok) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ok) 22%, transparent); }
table.rows .mark.warn { color: var(--warn); background: color-mix(in oklab, var(--warn) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warn) 24%, transparent); }
table.rows tr:hover .mark.ok { background: color-mix(in oklab, var(--ok) 17%, transparent); }
.badge { font-size: var(--tiny); line-height: 16px; font-weight: 600; padding: 0 6px; border-radius: 8px; white-space: nowrap; background: var(--raised); color: var(--muted); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }

/* status: a card with a colored edge */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); padding: var(--s3) var(--s4); margin: 0 0 var(--s3); font-size: var(--small); }
.card.ok { border-left: 3px solid var(--ok); }
.card.warn { border-left: 3px solid var(--warn); }
.card.bad { border-left: 3px solid var(--bad); }
.card p:last-child { margin-bottom: 0; }

/* numbered steps */
/* numbered steps, with a line between them; each says where it happens */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: var(--s6) 0 var(--s5) 40px; margin: 0; border-bottom: 1px solid var(--hair); }
.steps > li:last-child { border-bottom: 0; }
.steps > li > h3:first-child { margin-top: 0; line-height: 25px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: var(--s6); width: 25px; height: 25px; border-radius: 50%;
  background: var(--accent-fill); color: #fff; box-shadow: var(--shadow-1); text-align: center; font-size: var(--small); font-weight: 600; line-height: 25px; }
/* where a step happens: a banner nobody can miss, its color by place (the VPS dark like a terminal,
   your computer blue, Cloudflare its own orange, websites plain) */
.where { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s4); padding: 10px 14px; max-width: var(--measure);
  border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); font-size: 14px; line-height: 1.4; }
.where > .i { width: 22px; height: 22px; flex: none; color: var(--muted); }
.where-tag { flex: none; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--muted); }
.where-text { min-width: 0; }
.where-text strong { display: block; font-size: 15px; color: var(--strong); }
.where-text span { display: block; font-size: var(--small); color: var(--muted); }
.where-go { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--r); font-size: var(--small); font-weight: 650;
  color: #fff; background: var(--cf); text-decoration: none; box-shadow: var(--shadow-1); }
.where-go:hover { filter: brightness(1.08); text-decoration: none; box-shadow: var(--shadow-2); }
.where-go .i { width: 13px; height: 13px; }
.where.pc { border-left-color: var(--accent-fill); }
.where.pc > .i { color: var(--accent); } .where.pc .where-tag { background: var(--accent-fill); }
.where.vps { border-color: var(--strong); border-left-color: var(--strong); background: var(--strong); }
.where.vps .where-text strong { color: light-dark(#fff, #0f172a); }
.where.vps .where-text span, .where.vps > .i { color: light-dark(#cbd5e1, #334155); }
.where.vps .where-tag { color: var(--strong); background: light-dark(#fff, #0f172a); }
.where.cf { border-left-color: var(--cf); }
.where.cf > .i { color: var(--cf); } .where.cf .where-tag { background: var(--cf); }
@media (max-width: 640px) { .where { flex-wrap: wrap; } .where-go { margin-left: 0; } }
.note { font-size: var(--small); color: var(--muted); }

/* the Install page's form: what you type here fills in every command below */
/* The install helper: the one thing on the Install page that must not be missed */
.setup { margin: 0 0 var(--s5); padding: var(--s4) var(--s5); background: var(--panel); border: 2px solid var(--accent); border-radius: var(--r); box-shadow: var(--shadow-2), 0 0 0 6px var(--accent-bg); scroll-margin-top: calc(var(--top-h) + var(--s3)); }
.setup h2 { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s2); padding: 0; border: 0; font-size: 24px; color: var(--strong); }
.setup h2 .i { width: 26px; height: 26px; color: var(--accent); }
.setup .tag { font-size: var(--small); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent-fill); border-radius: 10px; padding: 1px 10px; }
.setup .why { font-size: 16px; line-height: 1.6; margin: 0 0 var(--s2); max-width: var(--measure); }
.setup > .note { max-width: var(--measure); }
.setup .fields input { font-size: 15px; padding: 9px var(--s3); }
.setup .status { margin: var(--s3) 0 0; font-size: var(--small); font-weight: 600; color: var(--warn); }
/* the helper's boxes: a block of their own inside the helper */
.setup-input { margin: var(--s5) 0 var(--s4); padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.setup-label { margin: 0 0 var(--s1); font-size: var(--tiny); font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.setup-input .fields { margin-top: var(--s2); }
@media (max-width: 640px) { .setup-input { padding: var(--s3); } }
/* the one command a page is about (Install's step 6): room around it, a larger terminal, a soft ring */
.cmd.hero { margin: var(--s6) 0; display: flow-root; }   /* beside a floated picture (home), it narrows instead of running under it */
.cmd.hero pre { padding: 20px 92px 20px 22px; border-color: color-mix(in oklab, var(--accent) 40%, var(--code-line)); box-shadow: var(--shadow-2), 0 0 0 5px var(--accent-bg); }
.cmd.hero code { font-size: 15px; line-height: 1.7; }
.cmd.hero .copy { top: 14px; right: 14px; padding: 5px 12px; font-size: var(--small); }
/* narrow: the command keeps its lines (a broken option reads wrong) and scrolls sideways in its box, Copy above it */
@media (max-width: 640px) { .cmd.hero pre { padding: 52px var(--s4) var(--s4); } .cmd.hero code { white-space: pre; overflow-wrap: normal; font-size: 13px; } }
.setup .status.done { color: var(--ok); }
@media (max-width: 640px) { .setup { padding: var(--s3); } .setup h2 { font-size: 20px; } }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s2); }
.fields label { display: flex; flex-direction: column; gap: 2px; font-size: var(--small); color: var(--muted); }
.fields input { font: var(--small)/1.4 var(--mono); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 6px var(--s2); min-width: 0; }
.fields input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.fields input.bad { border-color: var(--bad); }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.os { display: inline-flex; gap: 1px; margin: 0 0 var(--s2); padding: 2px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); }
.os button { padding: 2px var(--s3); border: 0; border-radius: 4px; background: none; color: var(--muted); font: 600 var(--small)/1.5 var(--sans); cursor: pointer; }
.os button[aria-pressed="true"] { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1); }
[hidden] { display: none !important; }
.copy:disabled { opacity: .5; cursor: not-allowed; }
details.own { margin: var(--s4) 0 0; padding: var(--s2) var(--s4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
details.own summary { cursor: pointer; font-weight: 600; color: var(--strong); }
details.own[open] summary { margin-bottom: var(--s2); }
.steps details.own { margin: var(--s3) 0 var(--s2); max-width: var(--measure); }
.steps details.own summary { font-size: 15px; }
/* an email to send, copied like a command but read like a letter */
.cmd.email pre { padding: var(--s4) 80px var(--s4) var(--s4); }
.cmd.email code { font: 400 14px/1.65 var(--sans); white-space: pre-wrap; }
.mascot { float: right; width: 214px; height: auto; margin: 0 0 var(--s3) var(--s4); }
.mascot.sm { width: 128px; margin-bottom: 0; }
@media (max-width: 640px) { .mascot, .mascot.sm { width: 96px; } }
.toc { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-bottom: var(--s4); font-size: var(--small); }
pre.license { white-space: pre-wrap; font: var(--small)/1.6 var(--mono); background: var(--code-bg); border: 1px solid var(--code-line); padding: var(--s4); border-radius: var(--r); }
h2[id] { scroll-margin-top: calc(var(--top-h) + var(--s4)); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: currentColor; }
main > .card { display: flow-root; }

/* buttons and small helpers, shared */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--small)/1.4 var(--sans); padding: 7px var(--s4); border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; box-shadow: var(--shadow-1); touch-action: manipulation; text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease), filter var(--ease), transform var(--ease); }
.btn:active { transform: translateY(1px); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.link-btn { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.bad { color: var(--bad); }
.field-error { color: var(--bad); font-weight: 600; }
kbd { font: var(--tiny)/1.4 var(--mono); padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); white-space: nowrap; }

/* a post's text, as the forum shows it (and the editor's preview) */
.post { line-height: 1.6; overflow-wrap: anywhere; min-width: 0; }
.post > :first-child { margin-top: 0; }
.post > :last-child { margin-bottom: 0; }
.post h3 { font-size: 19px; margin: var(--s4) 0 var(--s2); }
.post h4 { font-size: 16px; font-weight: 600; color: var(--strong); margin: var(--s4) 0 var(--s1); }
.post h5 { font-size: var(--text); font-weight: 600; color: var(--strong); margin: var(--s3) 0 var(--s1); }
.post blockquote { margin: 0 0 var(--s3); padding: 2px var(--s3); border-left: 3px solid var(--line); color: var(--muted); }
.post pre { margin: 0 0 var(--s3); padding: var(--s2) var(--s3); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.post pre code { display: block; background: none; padding: 0; white-space: pre; overflow-wrap: normal; }
.post li > ul, .post li > ol { margin: var(--s3) 0 0; }
.post a { overflow-wrap: anywhere; }

/* the forum's editor: a plain text box, its toolbar, and the preview beside it (behind a switch on a phone) */
.editor { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.editor:focus-within { border-color: var(--accent); box-shadow: var(--shadow-1), 0 0 0 3px var(--accent-bg); }
.ed-bar { position: sticky; top: var(--top-h); z-index: 5; display: flex; align-items: center; gap: var(--s2); padding: 3px var(--s2);
  background: var(--raised); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.ed-tools { display: flex; align-items: center; gap: 1px; overflow-x: auto; scrollbar-width: none; }
.ed-tools::-webkit-scrollbar { display: none; }
.ed-tools button { display: grid; place-items: center; flex: none; width: 32px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--fg); cursor: pointer; touch-action: manipulation; }
.ed-tools button:hover { background: var(--accent-bg); color: var(--accent); }
.ed-tools button:active { background: var(--accent-bg); color: var(--accent); transform: translateY(1px); }
.ed-tools .i { width: 16px; height: 16px; }
.ed-sep { flex: none; width: 1px; height: 18px; margin: 0 5px; background: var(--line); }
.ed-tabs { display: none; gap: 1px; padding: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.ed-tabs button { display: inline-flex; align-items: center; gap: 5px; padding: 3px var(--s3); border: 0; border-radius: 4px; background: none; color: var(--muted); font: 600 var(--small)/1.5 var(--sans); cursor: pointer; touch-action: manipulation; }
.ed-tabs button[aria-pressed="true"] { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1); }
.ed-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ed-write { border-right: 1px solid var(--line); }
.ed-write textarea { display: block; width: 100%; min-height: 300px; field-sizing: content; resize: none; overflow-y: hidden; margin: 0; border: 0; outline: 0;
  background: none; color: var(--fg); font: 14px/1.6 var(--mono); padding: var(--s3); tab-size: 4; }
.ed-write textarea::placeholder { color: var(--muted); opacity: .8; }
.ed-preview { padding: var(--s3) var(--s4); min-width: 0; }
.ed-label { font-size: var(--tiny); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: var(--s2); }
.ed-note:empty { display: none; }
.ed-note { font-size: var(--small); color: var(--warn); margin: 0 0 var(--s2); }
.ed-empty { color: var(--muted); }
.ed-loading .ed-label::after { content: " · updating"; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ed-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); padding: 6px var(--s2) 6px var(--s3); border-top: 1px solid var(--line); font-size: var(--small); color: var(--muted); }
.ed-status { flex: 1; min-width: 0; }
.ed-under { margin-top: var(--s2); font-size: var(--small); color: var(--muted); }
@media (max-width: 820px) { .ed-bar { top: 84px; } }
@media (max-width: 760px) {
  .ed-bar { flex-wrap: wrap; gap: 3px; }
  .ed-tabs { display: flex; flex-basis: 100%; }
  .ed-tabs button { flex: 1; justify-content: center; padding: 5px var(--s3); }
  .ed-tools { flex-basis: 100%; }
  .ed-tools button { width: 36px; height: 36px; }
  .ed-tools .i { width: 18px; height: 18px; }
  .ed-panes { grid-template-columns: minmax(0, 1fr); }
  .ed-write { border-right: 0; }
  .ed-write textarea { font-size: 16px; min-height: 45vh; }   /* 16px: phones don't zoom in on it */
  .ed-label { display: none; }
  .editor:not([data-view="preview"]) .ed-preview { display: none; }
  .editor[data-view="preview"] .ed-write, .editor[data-view="preview"] .ed-tools { display: none; }
  .editor[data-view="preview"] .ed-preview { min-height: 45vh; }
}

/* the test page: the post as a thread shows it, and the help under the editor */
.posted h2 { margin-top: 0; }
.thread-post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); padding: var(--s3) var(--s4); margin: 0 0 var(--s2); }
.byline { display: flex; align-items: center; gap: var(--s2); font-size: var(--small); color: var(--muted); margin-bottom: var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.byline strong { color: var(--strong); }
.posted { margin-bottom: var(--s5); }
.ed-help .help-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); align-items: start; }
.ed-help pre { margin: 0; font: var(--small)/1.4 var(--mono); white-space: pre-wrap; }
.ed-help td.post p, .ed-help td.post ul, .ed-help td.post ol, .ed-help td.post blockquote, .ed-help td.post pre { margin: 0; }
.ed-help td.post h4 { margin: 0; }
@media (max-width: 760px) { .ed-help .help-cols { grid-template-columns: minmax(0, 1fr); } }

/* the forum: its bar under the top bar, lists, posts and forms */
.fbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin: calc(var(--s5) * -1) 0 var(--s5); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--small); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s1); list-style: none; margin: 0; padding: 0; min-width: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: var(--s1); min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.who { display: flex; align-items: center; gap: var(--s2); }
.who a { display: inline-flex; align-items: center; gap: 5px; }
.fsearch { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.fsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.fsearch input { font: var(--small)/1.4 var(--sans); color: var(--fg); background: none; border: 0; outline: 0; padding: 3px var(--s2); width: 11ch; min-width: 0; }
.fsearch button { display: flex; align-items: center; background: none; border: 0; padding: 3px 7px; color: var(--muted); cursor: pointer; }
.fsearch button:hover { color: var(--accent); }
.search-big { display: flex; gap: var(--s2); margin: 0 0 var(--s4); max-width: var(--measure); }
.search-big input { flex: 1; font: var(--text)/1.4 var(--sans); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px var(--s3); min-width: 0; box-shadow: var(--shadow-1) inset; }
.search-big input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.results { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.results li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); margin: 0; }
.results .snip { margin: var(--s1) 0 0; font-size: var(--small); color: var(--fg); }
.results mark { background: var(--accent-bg); color: inherit; padding: 0 1px; border-radius: 2px; }
.badge.owner { color: var(--accent); background: var(--accent-bg); }
.badge .i { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }
.btn.small { padding: 3px var(--s3); font-size: var(--tiny); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); color: #fff; }
a.btn:hover { text-decoration: none; }
.small { font-size: var(--small); }
.num { text-align: right; width: 1%; white-space: nowrap; }
.cat-name, .thread-title { font-weight: 600; }
.cat-name { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
.cats td { padding-top: var(--s3); padding-bottom: var(--s3); }
.cat-about { font-size: var(--small); margin-top: 3px; }
.cats td .muted, .threads td .muted { margin-top: 1px; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.head-row .lead { margin-bottom: var(--s4); }
.empty { color: var(--muted); padding: var(--s5) 0; }
.pages { display: flex; gap: var(--s4); justify-content: center; font-size: var(--small); }
.card.done { font-size: var(--text); }
.card.notice { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--small); line-height: 1.5; }
.card.notice > .i { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.card.warn.notice > .i { color: var(--warn); }
.card.bad.notice > .i { color: var(--bad); }
.card.notice ul { margin: var(--s1) 0; }
.thread-h { overflow-wrap: anywhere; }
.thread-post.waiting { border-style: dashed; border-color: var(--warn); }
.byline { flex-wrap: wrap; }
.byline .when { color: var(--muted); }
.byline .actions { margin-left: auto; display: flex; gap: var(--s3); }
.byline .actions a { display: inline-flex; align-items: center; gap: 4px; }
.wait-line { display: flex; align-items: center; gap: 6px; color: var(--warn); font-size: var(--small); font-weight: 600; }
.reply { margin-top: var(--s5); }
.reply h2 { margin-top: var(--s5); }
.narrow { max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: 3px; }
.field label { font-weight: 600; color: var(--strong); font-size: var(--small); }
.field input { font: var(--text)/1.4 var(--sans); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px var(--s3); min-width: 0; box-shadow: var(--shadow-1) inset; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: var(--small); color: var(--muted); }
.code-input { font-family: var(--mono) !important; font-size: 22px !important; letter-spacing: .3em; max-width: 10em; }
.check { display: flex; align-items: center; gap: var(--s2); font-size: var(--small); }
.check input { width: 16px; height: 16px; accent-color: var(--accent-fill); }
.row-buttons { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.resend { margin-top: var(--s4); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
table.facts { max-width: 640px; }
.post-preview { margin-bottom: var(--s3); }
@media (max-width: 640px) {
  .field input, .search-big input, .fsearch input { font-size: 16px; }
  .crumbs [aria-current] { max-width: 22ch; }
  .threads td.num, .threads th.num, .cats td.num, .cats th.num { display: none; }
}

/* the maintainer's controls */
.tabs { display: flex; gap: 2px; margin: 0 0 var(--s4); border-bottom: 1px solid var(--line); font-size: var(--small); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--s3); color: var(--fg); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; color: var(--accent); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.mod-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); padding: var(--s2) var(--s3); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); font-size: var(--small); }
.mod-bar > .muted { display: inline-flex; align-items: center; gap: 5px; margin-right: var(--s1); }
.mod-bar .move { display: inline-flex; gap: 4px; align-items: center; }
select { font: var(--small)/1.4 var(--sans); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 3px var(--s2); }
.mod-actions { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); }
.mono { font-family: var(--mono); }
table.people td.mono, table.people td.when { font-size: var(--tiny); white-space: nowrap; }   /* forum Moderation › People: address and last seen on one line */
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline-flex; gap: 4px; }
.follow { flex: none; margin-top: 6px; }
.cat-edit { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--s2) var(--s3); padding: var(--s3); margin: 0 0 var(--s2); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.cat-edit .field input { font-size: var(--small); padding: 5px var(--s2); }
.cat-edit .grow { flex: 1; min-width: 220px; }
.cat-edit .order { display: flex; flex-direction: column; gap: 2px; }
.cat-edit .check { padding-bottom: 6px; }
.cat-edit .field-error { flex-basis: 100%; margin: 0; }
.btn:disabled { cursor: default; }

/* release notes */
.release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); }
.rel-date { font-size: var(--small); font-weight: 400; color: var(--muted); }
.release .mark { font-size: var(--small); }
.release > :where(p, ul, ol) { font-size: 15px; line-height: 1.6; max-width: var(--measure); }   /* updates: a step smaller than the pages */

/* Docs: the sections in a sticky sidebar, the text in a reading column beside it, inside the same width as
   every other page (the top bar, logo and margins never move between pages). Tables keep the panel's look
   (framed, a header row, zebra rows), with room around them. Sections that are only text sit in modules
   (cards) of their own. */
.docs { display: grid; grid-template-columns: 186px minmax(0, 1fr); gap: clamp(24px, 3vw, 32px); align-items: start; }
.docs-nav { position: sticky; top: calc(var(--top-h) + var(--s5)); max-height: calc(100vh - var(--top-h) - 48px); overflow-y: auto; scrollbar-width: none;
  padding: 2px var(--s2) var(--s5) 0; font-size: var(--small); }
.docs-group { margin: var(--s5) 0 6px; font-size: var(--tiny); font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.docs-nav div:first-child .docs-group { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hair); }
.docs-nav li { margin: 0; }
.docs-nav a { display: block; margin-left: -1px; padding: 4px 12px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.45; text-decoration: none; }
.docs-nav a:hover { color: var(--strong); border-left-color: var(--line); }
.docs-nav a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.docs-nav .docs-sub { margin: 0 0 var(--s1) 12px; border-left: 0; font-size: 12.5px; }
.docs-nav .docs-sub a { padding: 2px 10px; border-left-color: transparent; }
.docs-nav .docs-sub a[aria-current="true"] { border-left-color: var(--accent); }
.docs-nav a.in { color: var(--strong); }
.docs-body { min-width: 0; }
.docs-body > :where(h1, h2, h3, p, ul, ol, .lead, .note, .callout),
.module > :where(h2, h3, p, ul, ol, .note, .callout) { max-width: var(--measure); }
.docs-body > table { margin: var(--s5) 0 var(--s6); }
.docs-body > table + table { margin-top: calc(-1 * var(--s3)); }
.docs-body > h3[id] { margin-top: var(--s6); scroll-margin-top: calc(var(--top-h) + var(--s4)); }
/* Mail terms: the point in a paragraph, the depth folded underneath */
.docs-body > h2[id] { scroll-margin-top: calc(var(--top-h) + var(--s4)); }
.docs-body > details.own { max-width: calc(var(--measure) + 2 * var(--s4) + 2px); margin: var(--s3) 0 var(--s5); }
.docs-body > details.own > table { margin: var(--s3) 0; }
.docs-body > details.own > table td:not(:last-child) { white-space: nowrap; }   /* names and codes stay whole; the last column wraps */
.docs-body > h3 + .callout { margin-top: var(--s2); }
/* a module: one feature of the server, set apart */
.module { margin: var(--section) 0; padding: 2rem; max-width: calc(var(--measure) + 4rem + 2px); border: 1px solid var(--hair); border-radius: calc(var(--r) + 4px);
  background: radial-gradient(28rem 12rem at 100% 0%, var(--glow), transparent 70%), var(--surface); box-shadow: var(--shadow-1);
  transition: box-shadow var(--ease), border-color var(--ease); }
.module:hover { box-shadow: var(--shadow-2); border-color: color-mix(in oklab, var(--accent) 22%, var(--line)); }
.module + .module { margin-top: var(--s6); }
.module > h2 { margin-top: 0; }
.module > :last-child { margin-bottom: 0; }
.module li::marker { color: var(--accent); }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-nav { position: static; order: 0; max-height: none; overflow: visible; margin: 0 0 var(--s5); padding: var(--s4) var(--s4) var(--s3);
    background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); }
  .docs-nav nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3) var(--s5); }
  .docs-nav .docs-group { margin-top: 0; }
  .docs-body { order: 1; }
  .module { padding: var(--s5) var(--s4); }
}


/* callouts: a warning, or a tip worth knowing first; a soft tint of its color, an edge, an icon */
.callout { display: flex; gap: var(--s3); margin: var(--s5) 0; padding: 14px 18px; border: 1px solid; border-left-width: 3px; border-radius: var(--r); font-size: 15px; line-height: 1.65; }
.callout > .i { width: 18px; height: 18px; margin-top: 3px; }
.callout > div { min-width: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: color-mix(in oklab, var(--warn) 7%, var(--panel)); border-color: color-mix(in oklab, var(--warn) 24%, transparent); border-left-color: var(--warn); }
.callout.warn > .i { color: var(--warn); }
.callout.tip { background: color-mix(in oklab, var(--accent) 6%, var(--panel)); border-color: color-mix(in oklab, var(--accent) 20%, transparent); border-left-color: var(--accent); }
.callout.tip > .i { color: var(--accent); }

/* lettered parts of a step (A, B, C): each its own small task, none to be missed */
.substeps { list-style: none; counter-reset: sub; margin: var(--s3) 0 0; padding: 0; }
.substeps > li { counter-increment: sub; position: relative; margin: 0; padding: var(--s3) 0 var(--s2) 36px; }
.substeps > li + li { border-top: 1px dashed var(--hair); }
.substeps > li::before { content: counter(sub, upper-alpha); position: absolute; left: 0; top: calc(var(--s3) + 2px); width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent); }
.substeps > li > :where(p, .note, .callout, details) { max-width: var(--measure); }
.substeps > li > p:first-child strong:first-child { color: var(--strong); }
.substeps > li > table { margin: var(--s3) 0; }
.substeps .callout { margin: var(--s2) 0 0; }

/* why Cloudflare: the case, set apart before the steps */
.why-cf { max-width: var(--measure); margin: 0 0 var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--hair); border-top: 3px solid var(--cf); border-radius: var(--r);
  background: radial-gradient(24rem 10rem at 100% 0%, color-mix(in oklab, var(--cf) 10%, transparent), transparent 70%), var(--surface); box-shadow: var(--shadow-1); }
.why-cf { position: relative; }
/* Cloudflare's own logo, unaltered, on a white plate with clear space (its lettering is black, so the plate
   keeps it readable in the dark theme too); it links to Cloudflare DNS */
.cf-logo { float: right; margin: 0 0 var(--s3) var(--s4); padding: 10px 14px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); line-height: 0;
  transition: box-shadow var(--ease), transform var(--ease); }
.cf-logo:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.cf-logo img { display: block; width: 128px; height: auto; }
@media (max-width: 640px) { .cf-logo { float: none; display: inline-block; margin: 0 0 var(--s3); } }
ul.perms { list-style: none; margin: 6px 0 0; padding: 0; }
ul.perms li { margin: 0 0 4px; }
ul.perms code { margin-right: 6px; }
.why-cf h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s2); font-size: 16px; color: var(--strong); }
.why-cf h4 .i { width: 20px; height: 20px; color: var(--cf); }
.why-cf p { font-size: 15px; }
.why-cf p:last-child { margin-bottom: 0; }

/* a short value with its own Copy button, inside a sentence or a table */
.cmd.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0 2px; vertical-align: middle; }
.cmd.inline code { font-size: 13px; }
.cmd.inline .copy { position: static; padding: 2px 8px; }

/* Requirements: each requirement a card, its number big, what it must have as a tick list */
.req { margin: var(--s6) 0; padding: var(--s5) var(--s5) var(--s4); border: 1px solid var(--hair); border-radius: calc(var(--r) + 4px);
  background: radial-gradient(30rem 12rem at 100% 0%, var(--glow), transparent 70%), var(--surface); box-shadow: var(--shadow-1); }
.req-head { display: flex; gap: var(--s4); align-items: flex-start; margin-bottom: var(--s3); }
.req-head h2 { margin: 2px 0 var(--s1); }
.req-head p { margin: 0; max-width: var(--measure); color: var(--fg); }
.req-num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; font-weight: 800;
  color: #fff; background: var(--accent-fill); box-shadow: var(--shadow-2); }
.req-list { list-style: none; margin: 0; padding: 0 0 0 60px; max-width: calc(var(--measure) + 60px); }
.req-list li { display: flex; gap: var(--s3); margin: 0; padding: var(--s3) 0; border-top: 1px solid var(--hair); }
.req-list li:first-child { border-top: 0; }
.req-list li > .i { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); stroke-width: 2.2; }
.req-list strong { display: block; color: var(--strong); }
.req-list span { display: block; font-size: 15px; color: var(--muted); line-height: 1.6; }
.req-note { margin: var(--s2) 0 0 60px; }
.req .why-cf { margin: var(--s4) 0 0 60px; }
.req-also { margin-top: var(--s5); color: var(--muted); }
@media (max-width: 640px) {
  .req { padding: var(--s4) var(--s3); }
  .req-list, .req-note, .req .why-cf { padding-left: 0; margin-left: 0; }
  .req-num { width: 36px; height: 36px; font-size: 18px; }
}
/* the three short reasons, at the top of Why Cloudflare */
.cf-points { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); list-style: none; margin: 0 0 var(--s3); padding: 0; }
.cf-points li { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.cf-points .i { width: 15px; height: 15px; color: var(--ok); stroke-width: 2.2; }

/* logos: each project's own, unaltered, on a white plate so dark lettering stays readable in the dark theme */
.plate { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--hair); border-radius: 8px; box-shadow: var(--shadow-1); }
.plate { overflow: hidden; }
.plate img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.feature .plate { width: 92px; height: 40px; padding: 5px 10px; vertical-align: top; }
.feature > .i, .feature > .plate { margin-bottom: 0; }
/* Built on: the software, as a row of logo tiles, each linking to its project */
.built-lead { color: var(--muted); max-width: var(--measure); }
/* Coming: add-ons, one line each, the name first */
.coming { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); margin: var(--s4) 0 0; }
.addon { text-align: center; }
.addon img { display: block; height: 170px; width: auto; margin: 0 auto var(--s2); }
.addon h3 { margin: 0 0 var(--s1); white-space: nowrap; }
.addon-doc { display: flow-root; }
.addon-doc img { float: right; height: 140px; width: auto; margin: 0 0 var(--s3) var(--s5); }
@media (max-width: 640px) { .addon-doc img { height: 96px; } }
.addon p { margin: 0; color: var(--muted); text-align: left; text-wrap: pretty; }
.built { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); list-style: none; margin: var(--s4) 0 0; padding: 0; }
.built li { margin: 0; }
@media (max-width: 820px) { .built { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .built { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.built a { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s3) var(--s2) var(--s2); border-radius: var(--r); color: var(--fg); font-size: var(--small); font-weight: 600; text-decoration: none; }
.built a:hover { background: var(--accent-bg); color: var(--accent); }
.built .plate { width: 100%; height: 72px; padding: 12px 16px; transition: box-shadow var(--ease), transform var(--ease); }
.built a:hover .plate { box-shadow: var(--shadow-2); transform: translateY(-2px); }
/* the Webmail card: Roundcube's logo */
.module-logo { float: right; width: 52px; height: 52px; padding: 8px; margin: 0 0 var(--s2) var(--s3); }

/* Overview: the list of what's built, folded away */
details.progress { margin: var(--s3) 0 0; }
details.progress summary { cursor: pointer; padding: var(--s3) var(--s4); border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1);
  font-weight: 600; color: var(--strong); transition: box-shadow var(--ease), border-color var(--ease); }
details.progress summary:hover { box-shadow: var(--shadow-2); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
details.progress summary .muted { font-weight: 400; }
details.progress[open] summary { margin-bottom: var(--s4); }
details.progress[open] summary .muted { display: none; }

/* Questions: each one a row that opens to its answer */
.faq { max-width: calc(var(--measure) + 4rem); border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.faq details { border-top: 1px solid var(--hair); scroll-margin-top: calc(var(--top-h) + var(--s4)); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; gap: var(--s3); padding: 14px var(--s5); cursor: pointer; list-style: none; font-weight: 600; color: var(--strong);
  transition: background-color var(--ease), color var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--accent-bg); color: var(--accent); }
.faq-a { padding: 0 var(--s5) var(--s4); max-width: calc(var(--measure) + 4rem); }
.faq-a p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .faq summary, .faq-a { padding-left: var(--s4); padding-right: var(--s4); } }

/* screenshots of the panel: framed like a browser window; the one for the reader's theme shows */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); margin: var(--s4) 0 0; }
@media (max-width: 760px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; }
.steps .shot { margin: var(--s4) 0 var(--s2); max-width: calc(var(--measure) + 8rem); }
.shot-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-2); transition: box-shadow var(--ease), transform var(--ease); }
.shot-frame:hover { box-shadow: 0 18px 40px -12px light-dark(rgb(15 23 42 / .28), rgb(0 0 0 / .7)); transform: translateY(-2px); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: var(--raised); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-bar span { margin-left: 10px; font: 400 11px var(--mono); color: var(--muted); }
.shot-frame a { display: block; line-height: 0; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: var(--s2); font-size: var(--small); color: var(--muted); }
.shot-dark { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
}

/* people: round pictures, or initials on a color of their own (eight, picked from the account's number) */
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; object-fit: cover; overflow: hidden; user-select: none;
  font-weight: 650; color: #fff; letter-spacing: .02em; background: var(--raised); box-shadow: inset 0 0 0 1px light-dark(rgb(15 23 42 / .08), rgb(255 255 255 / .08)); vertical-align: middle; }
.av-s { width: 24px; height: 24px; font-size: 10px; }
.av-m { width: 40px; height: 40px; font-size: 15px; }
.av-l { width: 96px; height: 96px; font-size: 34px; }
.av-gone { color: var(--muted); } .av-gone .i { width: 55%; height: 55%; }
.av-c0 { background: light-dark(#2563eb, #3b82f6); } .av-c1 { background: light-dark(#7c3aed, #8b5cf6); }
.av-c2 { background: light-dark(#db2777, #ec4899); } .av-c3 { background: light-dark(#dc2626, #ef4444); }
.av-c4 { background: light-dark(#c2410c, #ea580c); } .av-c5 { background: light-dark(#047857, #059669); }
.av-c6 { background: light-dark(#0e7490, #0891b2); } .av-c7 { background: light-dark(#475569, #64748b); }
.byline .av-m { margin-right: var(--s1); }
.who-link { color: inherit; }
.who-link:hover { color: var(--accent); }
.by { display: flex; align-items: center; gap: 6px; }
.badge.new { color: var(--accent); background: var(--accent-bg); }
.t-cell.unread .thread-title { font-weight: 700; }
.t-cell .badge { margin-left: 6px; }
.pin-mark { display: inline-flex; color: var(--accent); margin-right: 6px; vertical-align: -1px; }
.thread-h .pin-mark .i { width: 20px; height: 20px; }
.jump-new { font-size: var(--small); margin: 0 0 var(--s3); }
.jump-new a { display: inline-flex; align-items: center; gap: 4px; }
.jump-new .i { width: 10px; height: 10px; }
.new-line { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0 var(--s3); color: var(--accent); font-size: var(--tiny); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.new-line::before, .new-line::after { content: ""; flex: 1; height: 1px; background: color-mix(in oklab, var(--accent) 45%, transparent); }
.profile-head { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s4); }
.profile-head h1 { margin: 0 0 var(--s1); }
.profile-head p { margin: 0 0 var(--s1); }
.stat-row { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.stat { display: flex; flex-direction: column; min-width: 120px; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); }
.stat strong { font-size: 1.5rem; line-height: 1.2; color: var(--strong); }
.stat span { font-size: var(--small); color: var(--muted); }
.av-row { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s4); padding: var(--s2); border-radius: var(--r); border: 1px dashed transparent; }
.av-row.av-over { border-color: var(--accent); background: var(--accent-bg); }
.av-row .stack { gap: var(--s2); }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.av-form label.btn { cursor: pointer; }
.av-form:focus-within label.btn { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .profile-head, .av-row { gap: var(--s3); } .profile-head .av-l, .av-row .av-l { width: 72px; height: 72px; font-size: 26px; } }

/* the picture editor (assets/avatar.js): a window with the crop circle, zoom and turn, and small previews */
.av-editor { border: 1px solid var(--hair); border-radius: calc(var(--r) * 1.5); background: var(--panel); color: var(--fg); box-shadow: var(--shadow-2); padding: 0; width: min(400px, calc(100% - 2 * var(--s4))); }
.av-editor::backdrop { background: rgb(8 12 22 / .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.av-box { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s5) var(--s5); }
.av-box h2 { margin: 0; font-size: 1.15rem; }
.av-box .hint { margin: -6px 0 0; }
.av-stage canvas { display: block; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: var(--r); touch-action: none; cursor: grab; }
.av-stage canvas:active { cursor: grabbing; }
.av-zoom { display: flex; align-items: center; gap: var(--s2); }
.av-zoom input[type="range"] { flex: 1; accent-color: var(--accent-fill); min-width: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--fg); cursor: pointer; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn:disabled { opacity: .5; cursor: default; }
.av-zoom [data-av-rotate] { margin-left: var(--s2); }
.av-previews { display: flex; align-items: center; gap: var(--s3); font-size: var(--small); color: var(--muted); }
.av-previews span { margin-right: auto; }
.av-previews canvas { border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hair); }
.av-previews .av-l { width: 64px; height: 64px; }
.av-previews .av-m { width: 40px; height: 40px; }
.av-previews .av-s { width: 24px; height: 24px; }
.av-actions { justify-content: flex-end; }
.av-actions .link-btn { margin-right: auto; }

/* stage 6: statuses, solved, upvotes, tags */
.badge.st-ok { color: var(--ok); background: var(--ok-bg); }
.badge.st-warn { color: var(--warn); background: var(--warn-bg); }
.badge.st-accent { color: var(--accent); background: var(--accent-bg); }
.badge.st-plain { color: var(--muted); background: var(--raised); }
.badge .i { stroke-width: 2.6; }
.thread-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: calc(var(--s2) * -1) 0 var(--s4); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.t-cell .chips { display: flex; margin: 4px 0 0; }
.thread-marks .chips { margin-left: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--tiny); line-height: 18px; padding: 0 8px; border-radius: 999px; color: var(--fg); background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
a.chip:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.chip.ver-chip { font-family: var(--mono); color: var(--muted); }
.chip.big { font-size: var(--small); line-height: 26px; padding: 0 12px; }
.tag-cloud, .browse-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.browse-tags { margin-top: var(--s4); }
.browse-tags > span { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; }
.tag-h { color: var(--muted); margin-right: 8px; } .tag-h .i { width: .8em; height: .8em; vertical-align: 0; }
.post-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--hair); font-size: var(--small); }
.vote-form, .solve-form { margin: 0; }
.vote { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--small)/1.4 var(--sans); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px 2px 9px; }
button.vote { cursor: pointer; }
button.vote:hover { color: var(--accent); border-color: var(--accent); }
.vote.on { color: var(--accent); background: var(--accent-bg); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.vote.static { border-color: transparent; padding-left: 0; }
.vote [data-vote-count] { min-width: 1ch; color: var(--strong); }
.vote.on [data-vote-count] { color: var(--accent); }
.vote .i { width: 14px; height: 14px; stroke-width: 2.4; }
.vote-failed { animation: vote-shake .4s; border-color: var(--bad) !important; }
@keyframes vote-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.solve-form .link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: var(--small); }
.thread-post.solution { border-color: color-mix(in oklab, var(--ok) 55%, transparent); box-shadow: var(--shadow-1), 0 0 0 1px color-mix(in oklab, var(--ok) 25%, transparent); }
.solution-label { display: flex; align-items: center; gap: 5px; margin: 0 0 var(--s2); color: var(--ok); font-size: var(--tiny); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.solution-label .i { stroke-width: 2.8; }
.solved-card { display: flex; gap: var(--s3); align-items: flex-start; margin: 0 0 var(--s3) var(--s5); border-color: color-mix(in oklab, var(--ok) 40%, transparent); color: var(--fg); font-size: var(--small); }
.solved-card:hover { text-decoration: none; border-color: var(--ok); }
.solved-card > .i { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.6; }
.solved-card strong { color: var(--ok); }
.solved-card .snip { display: block; color: var(--muted); margin-top: 2px; }
.votes-n { color: var(--muted); white-space: nowrap; } .votes-n .i { width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; }
.mod-more { gap: var(--s4); }
.inline-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.inline-form input { font: var(--small)/1.4 var(--sans); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 3px var(--s2); width: 7em; }
.tag-edit summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--accent); }
.tag-edit[open] { flex-basis: 100%; }
.tag-edit form { margin-top: var(--s2); display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.tag-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.tag-pick legend { font-weight: 600; color: var(--strong); font-size: var(--small); padding: 0; margin-bottom: 4px; }
.tag-pick legend .hint { font-weight: 400; margin-left: 4px; }
.tag-boxes { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; font-size: var(--small); line-height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); transition: background var(--ease), border-color var(--ease), color var(--ease); }
.chip-check input:checked + span { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-check:hover span { border-color: var(--accent); }
.narrow-field { max-width: 260px; }

/* stage 7: reports, the secret catcher, "Already asked?" */
.flag { position: relative; }
.flag summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--muted); list-style: none; }
.flag summary::-webkit-details-marker { display: none; }
.flag summary:hover, .flag[open] summary { color: var(--bad); }
.flag-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: var(--s2); padding: var(--s3); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); }
.flag-form .hint { margin: 0 0 2px; }
.flag[open] { flex-basis: 100%; }
.flag-done, .flag-hidden { display: inline-flex; align-items: center; gap: 5px; }
.post-foot .flag-done { font-size: var(--small); }
.reports { margin: 0 0 var(--s2); padding-left: 1.2em; font-size: var(--small); }
.secret-warn code { font-size: var(--small); }
.secret-warn ul { margin: var(--s2) 0; }
.similar { margin: -4px 0 var(--s2); padding: var(--s3) var(--s4); background: var(--accent-bg); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); border-radius: var(--r); font-size: var(--small); }
.similar-h { margin: 0 0 4px; font-weight: 600; color: var(--strong); }
.similar ul { margin: 0; padding-left: 1.1em; }
.similar li { margin: 2px 0; }
.similar .badge { margin-left: 2px; }


/* stage 8: @mentions, quotes, pictures in posts, mail choices */
.mention { font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 0 3px; border-radius: 4px; }
.mention:hover { text-decoration: none; filter: brightness(1.1); }
.ed-write { position: relative; }
.mention-list { position: absolute; left: var(--s3); bottom: var(--s2); z-index: 5; list-style: none; margin: 0; padding: 4px; min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); font-size: var(--small); }
.mention-list li { margin: 0; padding: 4px var(--s2); border-radius: 5px; cursor: pointer; }
.mention-list li[aria-selected="true"], .mention-list li:hover { background: var(--accent-bg); color: var(--accent); }
.quote-btn { display: inline-flex; align-items: center; gap: 4px; font-size: var(--small); }
.post .post-img { display: inline-block; max-width: 100%; margin: var(--s1) 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.post .post-img img { max-width: 100%; height: auto; display: block; }
.how-mail { display: flex; flex-direction: column; gap: 4px; margin-left: 24px; }
.docs-nav::-webkit-scrollbar { display: none; }   /* it still scrolls with the wheel or a finger when the window is short */

/* Typography: no single word left alone on a line; headings and leads broken into even lines */
p, li, td, dd, figcaption, .note, .hint, .faq summary { text-wrap: pretty; }
h1, h2, h3, h4, .lead, .where-text span { text-wrap: balance; }

/* FAQ: each question on its own band, so it stands apart from its answer */
.faq summary { background: var(--raised); }
.faq details[open] summary { border-bottom: 1px solid var(--hair); margin-bottom: var(--s3); }

/* "Wombat-Email" stays on one line. The wrapper takes everything from the text around it, so rules for
   spans elsewhere (the Where boxes, the requirements list) never change how it looks. */
.nw { display: inline !important; white-space: nowrap; font: inherit !important; color: inherit !important; line-height: inherit !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }

/* the 1.0 box: its headline larger, the lines closer */
.callout.soon p { line-height: 1.5; }
.callout.soon strong { display: block; font-size: 1.15rem; line-height: 1.3; margin-bottom: 4px; color: var(--strong); }

/* the forum's front page: the heading with a big search opposite */
.forum-head { align-items: center; margin-bottom: var(--s2); }
.forum-head h1 { margin: 0; }
.forum-search { flex: 1 1 320px; max-width: 460px; margin: 0; }
.forum-search input { font-size: 17px; padding: 11px var(--s4); }
.forum-search .btn { padding: 10px var(--s4); font-size: var(--text); }

/* the screenshot viewer (assets/site.js): the picture large, arrows to the next, the caption for a moment */
a.shot-light, a.shot-dark { cursor: zoom-in; }
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgb(6 10 20 / .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb-fig { position: relative; margin: 0; max-width: calc(100vw - 140px); }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.lb-cap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 8px 16px; border-radius: 999px;
  background: rgb(10 14 24 / .82); color: #fff; font-size: 15px; line-height: 1.4; text-align: center; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.lb-cap.show { opacity: 1; }
.lb button { position: absolute; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgb(255 255 255 / .12); transition: background .2s ease; }
.lb button:hover, .lb button:focus-visible { background: rgb(255 255 255 / .25); }
.lb button .i { width: 26px; height: 26px; stroke-width: 2.2; }
.lb-close { top: 18px; right: 18px; width: 44px; height: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: var(--small); color: rgb(255 255 255 / .7); }
@media (max-width: 640px) { .lb-fig { max-width: 100vw; } .lb-fig img { border-radius: 0; } .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* the editor's Undo and Redo: for touch screens, which have no Ctrl+Z (keyboards keep their shortcuts) */
.ed-tools [data-cmd="undo"], .ed-tools [data-cmd="redo"], .ed-tools .ed-sep:has(+ [data-cmd="undo"]) { display: none; }
@media (hover: none) and (pointer: coarse) {
  .ed-tools [data-cmd="undo"], .ed-tools [data-cmd="redo"], .ed-tools .ed-sep:has(+ [data-cmd="undo"]) { display: inline-flex; }
}

/* a long thread's pages */
.thread-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: var(--s3) 0; font-size: var(--small); }
.thread-pages a, .thread-pages span { min-width: 30px; padding: 3px 9px; border-radius: var(--r); text-align: center; border: 1px solid transparent; }
.thread-pages a { border-color: var(--line); background: var(--panel); }
.thread-pages a:hover { border-color: var(--accent); text-decoration: none; }
.thread-pages [aria-current] { background: var(--accent-fill); color: #fff; font-weight: 600; }
.thread-pages .gap { border: 0; color: var(--muted); min-width: 0; padding: 3px 2px; }


/* ===== The forum, tightened (2026-11-08): one control height, headers that hold their shape, one
   maintainer panel, toasts, and quiet motion. Later rules here win over the stage-by-stage ones above. */
:root { --ctl-h: 34px; --ctl-h-s: 30px; --lift: translateY(-1px); }

/* buttons: two sizes only, everything in a bar the same height; a lift on hover, a press on click */
.btn { min-height: var(--ctl-h); padding-block: 0; justify-content: center; white-space: nowrap; }
.btn.small { min-height: var(--ctl-h-s); padding: 0 var(--s3); font-size: var(--small); }
.btn:not(:disabled):hover { transform: var(--lift); box-shadow: var(--shadow-2); }
.btn:not(:disabled):active { transform: translateY(0) scale(.98); box-shadow: var(--shadow-1); transition-duration: .06s; }
.btn .i { width: 15px; height: 15px; flex: none; }
.btn.danger-outline { color: var(--bad); }
.btn.danger-outline:hover { color: var(--bad); border-color: var(--bad); }
select, .inline-form input, .fsearch { min-height: var(--ctl-h-s); }
select { padding: 0 28px 0 var(--s2); }
.inline-form input { padding: 0 var(--s2); }
:where(.btn, select, input, summary, a.chip, .vote, .link-btn):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the forum bar: search a usable size on every page */
.fbar { row-gap: var(--s2); }
.fsearch { width: 240px; max-width: 100%; transition: border-color var(--ease), box-shadow var(--ease); }
.fsearch input { width: 100%; flex: 1; padding: 0 var(--s2); }
.fsearch button { align-self: stretch; padding: 0 9px; }

/* page headers: title on the left, actions on the right, on every page and at every title length;
   they only stack on a phone */
.head-row { flex-wrap: nowrap; align-items: flex-start; margin-bottom: var(--s2); }
.head-row > :first-child { flex: 1 1 auto; min-width: 0; }
.head-row > .head-actions, .head-row > .row-buttons, .head-row > form:last-child { flex: none; display: flex; align-items: center; gap: var(--s2); margin-top: .55rem; }
.head-row h1 { margin-bottom: var(--s2); }
.head-row .lead { margin: 0 0 var(--s4); }
@media (max-width: 720px) {
  .head-row { flex-wrap: wrap; }
  .head-row > .head-actions, .head-row > .row-buttons, .head-row > form:last-child { margin-top: 0; margin-bottom: var(--s3); flex-wrap: wrap; }
}

/* a thread's title: smaller than a page's, even lines, never broken inside a word */
h1.thread-h { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; margin-bottom: var(--s3); }
h1.thread-h .badge { vertical-align: middle; font-size: var(--small); letter-spacing: 0; }
.thread-marks { margin: 0 0 var(--s4); gap: var(--s2); }
.thread-marks .chips { gap: var(--s2); }

/* badges and chips: one line height, centered on the text beside them */
.badge { display: inline-flex; align-items: center; gap: 3px; line-height: 18px; vertical-align: middle; }
.badge .i { margin: 0; }
.chip { line-height: 22px; transition: color var(--ease), border-color var(--ease), background-color var(--ease), transform var(--ease); }
a.chip:hover { transform: var(--lift); }
.thread-marks .chip, .thread-marks .badge { line-height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--small); }

/* the thread list: badges sit on the title's line, tags and author with room between; rows light up */
.threads td { padding-top: 11px; padding-bottom: 11px; }
.t-cell .thread-title { vertical-align: middle; }
.t-cell .badge { margin-left: 8px; }
.t-cell .chips { margin: 6px 0 0; gap: 6px; }
.t-cell .by { margin-top: 6px; }
.t-cell .thread-title { line-height: 1.35; }
.threads tbody tr { transition: background-color var(--ease), box-shadow var(--ease); }
.threads tbody tr:hover { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }

/* the maintainer's controls: one panel, actions above, status and tags below, Delete set apart */
.mod-panel { margin: 0 0 var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); font-size: var(--small); }
.mod-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: var(--s2) var(--s3); }
.mod-row + .mod-row { border-top: 1px solid var(--hair); }
.mod-label { display: inline-flex; align-items: center; gap: 6px; margin-right: var(--s2); font-weight: 600; color: var(--muted); }
.mod-label .i { width: 15px; height: 15px; }
.mod-row .move { display: inline-flex; align-items: center; gap: var(--s1); margin-left: var(--s2); }
.mod-row .danger-outline { margin-left: auto; }
.mod-row .inline-form { gap: var(--s2); }
.mod-row .inline-form label { color: var(--muted); }
.tag-edit summary { list-style: none; color: var(--fg); }
.tag-edit summary::-webkit-details-marker { display: none; }
.tag-edit[open] summary { color: var(--accent); border-color: var(--accent); }
.tag-edit form { padding: var(--s3) 0 var(--s1); }

/* posts: a soft card that settles in; the footer's actions one height and one color */
.thread-post { padding: var(--s4); margin: 0 0 var(--s3); transition: box-shadow var(--ease), border-color var(--ease); }
.thread-post:hover { box-shadow: var(--shadow-2); }
.byline .actions a, .byline .actions button { color: var(--muted); }
.byline .actions a:hover, .byline .actions button:hover { color: var(--accent); }
.post-foot { gap: var(--s3); min-height: var(--ctl-h-s); }
.post-foot > *, .post-foot form { display: inline-flex; align-items: center; }
.vote { min-height: 28px; padding: 0 12px 0 9px; transition: color var(--ease), background-color var(--ease), border-color var(--ease), transform var(--ease); }
button.vote:hover { transform: var(--lift); }
button.vote:active { transform: scale(.95); }
.vote.on .i { animation: vote-pop .3s ease-out; }
@keyframes vote-pop { 50% { transform: translateY(-3px) scale(1.25); } }
.post-foot .flag summary, .post-foot .link-btn, .post-foot .quote-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 6px; border-radius: var(--r); color: var(--muted); font-size: var(--small); text-decoration: none; transition: color var(--ease), background-color var(--ease); }
.post-foot .flag summary:hover, .post-foot .link-btn:hover, .post-foot .quote-btn:hover { color: var(--accent); background: var(--accent-bg); }
.post-foot .flag[open] summary { color: var(--bad); background: var(--bad-bg, transparent); }
.post-foot .i { width: 14px; height: 14px; }

/* the "Solved by" card under the first post: lined up with the posts, its check beside the words */
main > .solved-card { display: flex; margin: 0 0 var(--s3) var(--s5); padding: var(--s3) var(--s4);   /* indented: it hangs off the first post */ transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease); }
main > .solved-card:hover { box-shadow: var(--shadow-2); transform: var(--lift); }
.solved-card > .i { margin-top: 1px; }

/* toasts: top center under the top bar; drop in, wait, fade away (hovering holds them) */
.toasts { position: fixed; top: calc(var(--top-h, 58px) + var(--s3)); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: max-content; max-width: min(480px, calc(100vw - 2 * var(--s4))); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: var(--s2); padding: 12px var(--s4); background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--r); box-shadow: var(--shadow-2); font-size: var(--small); line-height: 1.45; pointer-events: auto;
  animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2) both, toast-out .4s ease-in 6s forwards; }
.toast:hover { animation-play-state: paused; }
.toast .i { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--ok); stroke-width: 2.4; }
.toast.warn { border-left-color: var(--warn); } .toast.warn .i { color: var(--warn); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }

/* settling in: posts and list rows fade up a few pixels as the page opens */
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main .thread-post, main .threads tbody tr, main .cats tbody tr { animation: settle .35s ease-out both; }
main .thread-post:nth-of-type(2), main .threads tbody tr:nth-child(2) { animation-delay: .03s; }
main .thread-post:nth-of-type(3), main .threads tbody tr:nth-child(3) { animation-delay: .06s; }
main .thread-post:nth-of-type(4), main .threads tbody tr:nth-child(4) { animation-delay: .09s; }
main .threads tbody tr:nth-child(n+5) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active, a.chip:hover, button.vote:hover, main > .solved-card:hover { transform: none !important; }
  .toast { animation: toast-out .01s 8s forwards; }
  main .thread-post, main .threads tbody tr, main .cats tbody tr, .vote.on .i { animation: none; }
}
.post :not(pre) > code { white-space: nowrap; }   /* a short code word (mta-sts) never splits at its hyphen */

/* smileys typed as text show as emoji; the editor's emoji button opens a small grid */
.post .emoji { font-size: 1.15em; line-height: 1; vertical-align: -.08em; cursor: default; }
.emoji-pop { position: absolute; top: calc(100% + 4px); z-index: 20; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); animation: pop-in .14s ease-out both; }
.emoji-pop button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; font-size: 20px; line-height: 1; cursor: pointer; transition: background-color var(--ease), transform var(--ease); }
.emoji-pop button:hover, .emoji-pop button:focus-visible { background: var(--accent-bg); transform: scale(1.15); outline: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .emoji-pop { grid-template-columns: repeat(6, 34px); } }
@media (prefers-reduced-motion: reduce) { .emoji-pop { animation: none; } .emoji-pop button:hover { transform: none; } }
.toast span { text-wrap: balance; }   /* a two-line toast in even lines */

/* ---- thread lists (2026-11-11): starter, title with its marks, one meta line, a peek, numbers, people, last reply.
   A grid per row: picture | main | numbers | people | last. Under 980px the people go; under 680px the numbers
   and the last reply drop under the text. */
main.wrap > ol.tlist { max-width: none; }   /* a list of threads is a table, not reading text */
.tlist { list-style: none; margin: 0 0 var(--s4); padding: 0; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; }
.trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 104px 92px 172px; gap: 0 var(--s4); align-items: center; padding: 14px var(--s4); border-bottom: 1px solid var(--hair); transition: background-color var(--ease); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--accent-bg); }
.trow.pinned { background: color-mix(in oklab, var(--accent-bg) 55%, transparent); }
.trow-av { align-self: start; padding-top: 2px; line-height: 0; }
.trow-av a { display: inline-block; border-radius: 50%; }
.trow-main { min-width: 0; }
.trow-title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.trow-title .badge, .trow-title .pin-mark { margin-right: 6px; vertical-align: 2px; }
.trow-title .badge.new { margin: 0 0 0 6px; }
.trow-title .thread-title { color: var(--strong); }
.trow-title .thread-title:hover { color: var(--accent); }
.trow.unread .thread-title { color: var(--accent); font-weight: 700; }
.trow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 4px 0 0; font-size: var(--small); color: var(--muted); line-height: 22px; }
.trow-meta { column-gap: 10px; }
.trow-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.dot-sep { color: var(--muted); opacity: .6; }
.trow-meta .who-link { color: var(--fg); font-weight: 600; }
.trow-meta .chips { margin: 0; gap: 4px; }
.trow-meta .chip { line-height: 20px; }
.dot-sep { color: var(--line); }
.trow-cat { color: var(--muted); font-weight: 600; }
.trow-pages { display: inline-flex; gap: 3px; }
.trow-pages a, .trow-pages .muted { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; font-size: var(--tiny); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); line-height: 1; }
.trow-pages .muted { border-color: transparent; }
.trow-pages a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.trow-peek { margin: 4px 0 0; font-size: var(--small); color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 72ch; }
.trow-stats { display: grid; grid-template-columns: auto auto; gap: 1px var(--s3); margin: 0; font-size: var(--small); align-content: center; }
.trow-stats div { display: contents; }
.trow-stats dt { color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.trow-stats dt .i { width: 13px; height: 13px; }
.trow-stats dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--strong); font-weight: 600; }
.trow-stats .votes-n dt, .trow-stats .votes-n dd { color: var(--accent); }
.trow-people { display: flex; align-items: center; justify-content: flex-start; padding-left: 6px; }
.trow-people .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.trow:hover .trow-people .av { box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent-bg) 100%, var(--panel)); }
.more-people { margin-left: 4px; font-size: var(--tiny); color: var(--muted); font-weight: 600; }
.trow-last { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); text-align: right; min-width: 0; }
.trow-last-text { display: flex; flex-direction: column; min-width: 0; font-size: var(--small); line-height: 1.35; }
.trow-last-text a { color: var(--fg); font-weight: 600; white-space: nowrap; }
.trow-last-text a:hover { color: var(--accent); }
.trow-last-who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) { .trow { grid-template-columns: 40px minmax(0, 1fr) 100px 164px; } .trow-people { display: none; } }
@media (max-width: 680px) {
  .trow { grid-template-columns: 32px minmax(0, 1fr); gap: 0 var(--s3); padding: 12px var(--s3); }
  .trow-av .av-m { width: 32px; height: 32px; font-size: 12px; }
  .trow-title { font-size: 16px; }
  .trow-stats, .trow-last { grid-column: 2; }
  .trow-stats { display: flex; gap: var(--s3); margin-top: 6px; justify-content: flex-start; }
  .trow-stats div { display: inline-flex; gap: 4px; }
  .trow-last { justify-content: flex-end; text-align: left; flex-direction: row-reverse; margin-top: 4px; }
  .trow-last-text { flex-direction: row; gap: 6px; }
}

/* the front page: each category's newest thread; a heading with a button beside it */
table.cats td.cat-last { min-width: 240px; }
.cat-last { display: flex; align-items: flex-start; gap: var(--s2); }
td.cat-last { display: table-cell; }
td.cat-last > .av { float: left; margin: 2px var(--s2) 0 0; }
.cat-last-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cat-last-title { color: var(--fg); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cat-last-title:hover { color: var(--accent); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s6) 0 var(--s3); }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: var(--s2); font-size: 1.25rem; }
.section-head h2 .i { color: var(--muted); }

/* ---- a thread (2026-11-11): the summary under the title, the author beside each post, numbered posts that copy
   their link, quotes as cards that lead back, and who found a post helpful. Under 760px the author column folds
   back into the byline. */
.av-p { width: 64px; height: 64px; font-size: 22px; }
.thread-sum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); font-size: var(--small); }
.thread-sum > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.thread-sum dt { color: var(--muted); font-size: var(--tiny); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.thread-sum dd { margin: 0; color: var(--strong); font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.thread-sum dd a { color: var(--fg); font-family: var(--sans, inherit); }
.thread-sum .ts-start { flex: 1 1 260px; }
.thread-sum .ts-start dd { display: flex; align-items: center; gap: var(--s2); font-family: inherit; }
.thread-sum .ts-start dd > span { display: flex; flex-direction: column; line-height: 1.35; }
.thread-sum .ts-start .who-link { color: var(--strong); }
.thread-sum .ts-start .small { font-weight: 400; }
.thread-sum .ts-people dd { display: flex; align-items: center; padding-left: 6px; }
.thread-sum .ts-people .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.thread-sum .ts-people dt, .thread-sum .ts-people dd { font-family: inherit; }

.thread-post.with-side { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 var(--s4); padding: var(--s4); }
.post-side { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 2px var(--s3) 0 0; border-right: 1px solid var(--hair); min-width: 0; }
.post-side > a { line-height: 0; border-radius: 50%; margin-bottom: 4px; }
.side-name { font-size: var(--small); line-height: 1.3; overflow-wrap: anywhere; }
.side-name .who-link { color: var(--strong); }
.side-fact { font-size: var(--tiny); color: var(--muted); line-height: 1.4; }
.post-main { min-width: 0; }
.with-side .byline-who { display: none; }
.byline-who { display: inline-flex; align-items: center; gap: var(--s2); }
.post-no { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: var(--tiny); padding: 2px 6px; border-radius: 6px; transition: color var(--ease), background-color var(--ease); }
.byline .actions + .post-no { margin-left: var(--s3); }
.post-no .i { width: 13px; height: 13px; }
.post-no:hover { color: var(--accent); background: var(--accent-bg); text-decoration: none; }
.post-no.copied { color: var(--ok); background: var(--ok-bg); }

.post blockquote.quote-card { margin: 0 0 var(--s3); padding: 0; border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--raised); color: var(--fg); overflow: hidden; }
.post blockquote.quote-card > :not(.quote-head) { margin-left: var(--s3); margin-right: var(--s3); }
.post blockquote.quote-card > :last-child { margin-bottom: var(--s2); }
.quote-head { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s2) !important; padding: 6px var(--s3); font-size: var(--small); font-weight: 600; color: var(--accent); background: color-mix(in oklab, var(--accent-bg) 70%, transparent); border-bottom: 1px solid var(--hair); }
.quote-head .mention { color: inherit; }
.quote-up { display: inline-flex; color: inherit; opacity: .8; }
.quote-up:hover { opacity: 1; }
.quote-up .i { width: 14px; height: 14px; }

.voters { color: var(--muted); font-size: var(--small); }
.voters .who-link { color: var(--fg); white-space: nowrap; }
.voters .who-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  .thread-post.with-side { display: block; }
  .post-side { display: none; }
  .with-side .byline-who { display: inline-flex; }
  .thread-sum { gap: var(--s3) var(--s4); }
}
.post-foot > .voters { display: inline-block; text-wrap: pretty; }   /* plain text flow: the footer's row layout would swallow the spaces between names */
.quote-head .mention { background: none; padding: 0; border: 0; font-weight: 700; }

/* An uploaded picture sits on the same light backdrop in both themes (2026-11-11): a transparent logo is drawn to
   sit on white, so on the dark theme's slate it would vanish. Initials keep their own colors. The crop window
   (assets/avatar.js) paints the same backdrop, so what you crop is what you get. */
:root { --av-backdrop: #f4f6f9; }
.av:is(img, canvas) { background: var(--av-backdrop); }

/* 2026-11-11, the owner's tweaks: Views quieter than Replies; status badges squarer; tags shaped like tags
   (a pointed end with a hole), smaller; names in the author column already come in pyramid order (pyramid_name()). */
.trow-stats .views-n dt, .trow-stats .views-n dd { font-size: var(--tiny); color: var(--muted); font-weight: 400; }
.badge.status { border-radius: 3px; padding: 0 5px; }
.chip.tag { position: relative; display: inline-flex; align-items: center; height: 16px; line-height: 16px; padding: 0 6px 0 12px; font-size: 10.5px; font-weight: 600;
  color: light-dark(#1d4ed8, #bfdbfe); background: light-dark(#bfdbfe, #1e4fa8); border: 0; border-radius: 0 3px 3px 0;
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); transform: rotate(-6deg); margin: 0 2px; }
.chip.tag::before { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--panel); }
a.chip.tag:hover { color: #fff; background: var(--accent); border: 0; }
.trow-meta .chip.tag { line-height: 16px; }
.thread-marks .chip.tag { height: 20px; line-height: 20px; font-size: 11.5px; padding: 0 8px 0 14px; }

/* 2026-11-15: Share and Bookmark under each post, and the Bookmarks page */
.share { position: relative; }
.share summary { list-style: none; cursor: pointer; }
.share summary::-webkit-details-marker { display: none; }
.post-foot .share summary { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 6px; border-radius: var(--r); color: var(--muted); font-size: var(--small); transition: color var(--ease), background-color var(--ease); }
.post-foot .share summary:hover, .post-foot .share[open] summary { color: var(--accent); background: var(--accent-bg); }
main .thread-post:has(.share[open]) { position: relative; z-index: 5; }   /* above the posts after it (their entrance animation stacks them) */
.share-box { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 460px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s3); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2, 0 8px 24px rgb(0 0 0 / .18)); }
@media (max-width: 680px) {   /* phones: under the row, full width, instead of floating off the edge */
  .post-foot .share[open] { display: block; flex-basis: 100%; }
  .share-box { position: static; width: auto; margin-top: var(--s2); box-shadow: none; }
}
.share-url { flex: 1 1 100%; min-width: 0; font: var(--small)/1.4 var(--mono); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px var(--s2); }
.share-ways { display: inline-flex; flex-wrap: wrap; gap: var(--s2); }
.share-ways .btn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.share-ways .btn.copied { color: var(--ok); border-color: var(--ok); }
.bookmark-form { margin: 0; }
.post-foot .bookmark.on { color: var(--accent); }
.bookmark.on .i path { fill: currentColor; }
.bm-list { list-style: none; margin: 0; padding: 0; }
.bm { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
.bm-main { flex: 1; min-width: 0; }
.bm-title { font-weight: 600; font-size: 16px; }
.bm-meta { margin: 2px 0 0; }
.bm-peek { margin: 4px 0 0; color: var(--muted); font-size: var(--small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-remove { margin: 0; }
.bm-remove .link-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--small); }
.bm-remove .link-btn:hover { color: var(--bad); }
.empty .i { width: 1em; height: 1em; vertical-align: -2px; margin: 0 2px; }
.post-foot > .foot-break { flex-basis: 100%; height: 0; }
.post-foot:has(> .foot-break) { row-gap: 3px; }   /* after "Found helpful by": Quote, Share… on their own line */

/* Where it runs: the world map, a numbered circle per place (merged when close) */
.world { margin: var(--s5) 0 var(--s6); position: relative; }
.world svg { display: block; width: 100%; height: auto; cursor: zoom-in; user-select: none; -webkit-user-select: none; border-radius: var(--r); }
.world.zoomed svg { cursor: grab; touch-action: none; }
.world.dragging svg { cursor: grabbing; }
.map-zoom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin-top: var(--s3); }
.map-zoom .note { margin-left: var(--s2); }
.map-zoom .btn { padding: 4px 11px; min-width: 34px; justify-content: center; font-size: 15px; line-height: 1.3; }
.map-zoom [data-zoom-reset] { font-size: var(--small); }
.world path { vector-effect: non-scaling-stroke; }
.world .land { fill: color-mix(in oklab, var(--muted) 22%, transparent); stroke: color-mix(in oklab, var(--muted) 35%, transparent); stroke-width: .6; }
.world .dot circle { fill: var(--accent); }
.world .dot .halo { fill: color-mix(in oklab, var(--accent) 22%, transparent); }
/* zoomed in: 1:50m takes over from the plain outline; close up, the 1:10m squares take over from that */
.world.detailed svg > .land, .world .close, .world.near .mid { display: none; }
.world.near .close { display: inline; }
.world .detail .lakes { fill: var(--bg); stroke: color-mix(in oklab, var(--muted) 35%, transparent); stroke-width: .6; }
.world .detail .borders { fill: none; stroke: color-mix(in oklab, var(--muted) 60%, transparent); stroke-width: .9; }
.world .detail .states { fill: none; stroke: color-mix(in oklab, var(--muted) 40%, transparent); stroke-width: .6; stroke-dasharray: 3 2; }
.world .close .land { stroke: none; }
.world .close .lakes { stroke: none; }
.world .close .coast { fill: none; stroke: color-mix(in oklab, var(--muted) 35%, transparent); stroke-width: .6; }
.world .city circle { fill: var(--muted); }
.world .city text { fill: var(--muted); pointer-events: none; }
.world .pin { cursor: pointer; outline: none; }
.world .pin circle { fill: var(--accent); stroke: var(--bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.world .pin:hover circle, .world .pin:focus-visible circle { fill: color-mix(in oklab, var(--accent) 80%, var(--fg)); }
.world .pin text { fill: #fff; font-weight: 700; text-anchor: middle; pointer-events: none; }
.world .pin text.town { fill: var(--fg); font-weight: 600; text-anchor: start; }
table.rows.by-country { max-width: 420px; }
table.rows.by-country td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.rows.by-country th:last-child { text-align: right; }
