/* Osbert · One Eye Open design system
   Rules of the house:
   - Night is Osbert speaking (status, empty states). Paper is the company's words (every quote).
   - Cards only for things you act on. Everything else sits on the page.
   - Young Serif only for Osbert's lines; Figtree for the interface; a book serif for policy text.
   - One status language: Hold on · Worth a look · Good news · FYI, each with Osbert's head.
   Fonts are self-hosted so no visitor data goes to a font service. */

@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/young-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/young-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #EEF2F8;            /* first light */
  --panel: #FFFFFF;
  --panel-2: #F6F8FC;
  --ink: #16213A;           /* midnight */
  --ink-2: #3A4661;
  --muted: #5A6782;
  --line: #D6DDE9;
  --accent: #E9A621;        /* tag brass */
  --accent-ink: #16213A;
  --accent-soft: #FBF0D6;
  --link: #24508F;
  --brand: #9B2410;         /* logo brick red, brand only */
  --good: #1F7556;   --good-bg: #E3F3EC;   /* 4.9:1 on its tint (was #2A8562, 3.95:1) */
  --caution: #8F5F00; --caution-bg: #FBF0D6;
  --concern: #B93C2A; --concern-bg: #FBE6E2;
  --neutral: #5A6782; --neutral-bg: #E7ECF4;
  --ins: #DDF1E6; --ins-ink: #1D5C3F;
  --del: #FBE3DF; --del-ink: #8A2A1C;
  --paper: #FFFFFF;          /* the company's words */
  --paper-ink: #222834;
  --rule: #C9D2E2;
  --night: #16213A;
  --night-ink: #EEF1F8;
  --night-muted: #B7C2DA;
  --shadow: 0 1px 2px rgba(22, 33, 58, .05), 0 14px 36px -24px rgba(22, 33, 58, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --doc: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --tabbar-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10182B;
    --panel: #18223A;
    --panel-2: #1D2843;
    --ink: #EEF1F8;
    --ink-2: #CBD3E4;
    --muted: #A3AFC6;
    --line: #283352;
    --accent: #EDB33A;
    --accent-ink: #10182B;
    --accent-soft: #3A2F14;
    --link: #9DBDF5;
    --brand: #F08A73;
    --good: #5CC99A;   --good-bg: #173A2F;
    --caution: #EDB33A; --caution-bg: #3A2F14;
    --concern: #FF7D66; --concern-bg: #43211E;
    --neutral: #A3AFC6; --neutral-bg: #232E4A;
    --ins: #1C3D30; --ins-ink: #A6E8C6;
    --del: #4A2421; --del-ink: #FFB8AA;
    --paper: #1A2440;
    --paper-ink: #E3E7F0;
    --rule: #34416A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 18px 40px -26px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); padding-bottom: var(--tabbar-h); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: 1.15rem; font-weight: 750; letter-spacing: -.005em; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
img { max-width: 100%; }
picture { display: contents; } picture > source { display: none; }   /* else a source takes a grid cell */
 /* <picture> only swaps the source for dark mode */
code { font-family: var(--mono); font-size: .88em; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }  /* a component's own display rule mustn't undo hidden */
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Top bar and phone tab bar ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.hq-mark { font: 800 .72rem var(--font); letter-spacing: .12em; color: var(--accent-ink); background: var(--accent); padding: 3px 7px; border-radius: 6px; }
.topnav { display: flex; gap: 2px; }
.topnav a { color: var(--ink-2); text-decoration: none; padding: 8px 13px; border-radius: 999px; font-size: .95rem; font-weight: 600; }
.topnav a:hover { background: var(--panel-2); }
.topnav a.active { background: var(--ink); color: var(--panel); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; text-align: center; font-weight: 800; }
body.hq .topbar { background: var(--night); border-bottom-color: transparent; }
body.hq .topnav a { color: var(--night-muted); }
body.hq .topnav a.active, body.hq .topnav a:hover { background: rgba(255,255,255,.1); color: var(--night-ink); }
.nav-form { margin: 0; display: flex; }
.nav-form button { border: 0; background: none; color: var(--night-muted); padding: 8px 13px; border-radius: 999px; font-family: inherit; font-size: .95rem; font-weight: 600; line-height: inherit; cursor: pointer; white-space: nowrap; }
.nav-form button:hover { background: rgba(255,255,255,.1); color: var(--night-ink); }
.signin-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.signin { width: min(400px, 100%); text-align: center; padding: 30px 28px; }
.signin h1 { margin: 10px 0 16px; }
.signin form { display: grid; gap: 14px; text-align: left; }
.signin .btn { justify-content: center; width: 100%; }
.signin-error { color: #A3271F; font-weight: 600; }
@media (prefers-color-scheme: dark) { .signin-error { color: #FF9A8F; } }
body.hq .brand img { filter: brightness(0) invert(1); }

.tabbar { display: none; }
@media (max-width: 720px) {
  :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body:not(.hq) .topnav { display: none; }
  body.hq .topnav { overflow-x: auto; }
  .topbar { position: static; }
  .topbar-inner { min-height: 54px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px;
    font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: none; }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .count { position: absolute; top: 8px; left: calc(50% + 6px); }
}

.jobbar { background: var(--panel-2); color: var(--ink-2); font-size: .9rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.jobbar .wrap { display: flex; align-items: center; gap: 12px; }
.jobbar img { width: 30px; height: auto; flex: none; }
.jobbar.done { background: var(--good-bg); color: var(--good); }

main { padding-block: 28px 12px; }
.footer { padding-block: 26px 40px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px;
  display: flex; gap: 14px; align-items: flex-start; }
.footer img { width: 22px; height: auto; flex: none; margin-top: 2px; }
.footer p { margin: 0 0 6px; max-width: 70ch; }
.footer a { color: var(--muted); }

/* ---------- Page structure: sections sit on the page, not in boxes ---------- */
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 6px; }
.page-title > div { min-width: 0; }
.page-title h1 { margin: 0; }
.page-title .muted { margin: 4px 0 0; }
.page-lede { color: var(--ink-2); margin: 0 0 18px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.section { margin-top: 32px; }
.section > h2, .section-head h2 { margin: 0; }
.section > h2 { margin-bottom: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 600; font-size: .94rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 650 .95rem var(--font); padding: 10px 18px; min-height: 44px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.quiet { background: transparent; }
.btn.danger { background: var(--concern); border-color: var(--concern); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 6px 4px; font: 600 .84rem var(--font); color: var(--link); cursor: pointer; }
.linkish:hover { text-decoration: underline; }

/* ---------- Status: Osbert's head + one word ---------- */
.status-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; font-size: .86rem; white-space: nowrap; }
.status-tag .head { width: 30px; height: auto; }
.status-tag.sm { font-size: .8rem; gap: 5px; }
.status-tag.sm .head { width: 22px; }
.status-tag.lg { font-size: .95rem; }
.status-tag.lg .head { width: 38px; }
.st-hold_on { color: var(--concern); }
.st-worth_a_look { color: var(--caution); }
.st-good_news { color: var(--good); }
.st-fyi { color: var(--muted); }
.flag { display: inline-block; font-size: .8rem; font-weight: 650; color: var(--muted); }
.flag.warn { color: var(--caution); }

/* ---------- Night: where Osbert speaks ---------- */
.night { background: var(--night); color: var(--night-ink); border-radius: var(--radius); overflow: hidden;
  background-image: radial-gradient(110% 120% at 85% 0%, #2A3A63 0%, transparent 60%); }
.night h1 { font: 400 clamp(1.7rem, 3.6vw, 2.3rem)/1.12 var(--display); color: var(--night-ink); margin: 0 0 8px; letter-spacing: 0; }
.night p { color: var(--night-muted); margin: 0; max-width: 48ch; }
.night strong { color: var(--night-ink); }
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: end; gap: 12px 28px; padding: 28px 30px 0; }
.band-copy { padding-bottom: 28px; align-self: center; }
.band-figure { width: auto; max-width: 100%; max-height: 220px; justify-self: end; display: block; margin-bottom: -2px; }
.band.quiet .band-figure { margin-bottom: 16px; }
.strip { display: flex; align-items: center; gap: 18px; padding: 14px 24px 14px 16px; }
.strip h1 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 0 0 2px; }
.wake { position: relative; flex: none; width: 150px; aspect-ratio: 1000 / 600; }
.wake img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.wake-a { animation: wake-out .5s ease 1s forwards; }
.wake-b { opacity: 0; animation: wake-in .5s ease 1s forwards; }
@keyframes wake-out { to { opacity: 0; } }
@keyframes wake-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wake-a { opacity: 0; } .wake-b { opacity: 1; } }
@media (max-width: 640px) {
  .band { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 0; }
  .band-copy { padding-bottom: 0; }
  .band-figure { max-height: 150px; justify-self: center; }
  .strip { padding: 12px 16px 12px 10px; gap: 12px; }
  .wake { width: 96px; }
}

/* ---------- Feed: changes you can open (these are the cards) ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feed-item { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.feed-item:hover { border-color: var(--muted); box-shadow: var(--shadow); }
.feed-item.unread::before { content: ""; position: absolute; left: -5px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.feed-link { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 2px 16px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.feed-link > .status-tag { grid-row: 1 / span 3; align-self: start; padding-top: 1px; }
.feed-title { font-weight: 700; font-size: 1.04rem; line-height: 1.35; }
.feed-item.unread .feed-title { font-weight: 800; }
.feed-meta { color: var(--muted); font-size: .88rem; }
.feed-date { color: var(--caution); font-size: .86rem; font-weight: 700; }
.feed-toggle { position: absolute; right: 10px; bottom: 6px; margin: 0; }
.review-item .feed-link { padding-bottom: 4px; }
.review-actions { display: flex; gap: 8px; padding: 0 18px 14px 166px; flex-wrap: wrap; }
.review-actions form { margin: 0; }
@media (max-width: 640px) {
  .feed-link { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 16px; }
  .feed-link > .status-tag { grid-row: auto; margin-bottom: 4px; }
  .feed-toggle { position: static; padding: 0 12px 8px; text-align: right; margin-top: -10px; }
  .review-actions { padding: 0 16px 14px; }
}

/* ---------- Home: your services ---------- */
.svc-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-rows li { border-bottom: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr); gap: 4px 16px; align-items: center;
  padding: 14px 6px; color: var(--ink); text-decoration: none; }
.svc-row:hover { background: var(--panel-2); }
.svc-row-name { font-weight: 750; }
.svc-row-latest { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.svc-row-flags { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
@media (max-width: 640px) {
  .svc-row { grid-template-columns: minmax(0, 1fr); padding: 12px 4px; }
  .svc-row-flags { align-items: flex-start; text-align: left; }
}

/* ---------- Browse ---------- */
.browse-tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 18px; }
.search { position: relative; display: block; flex: 1 1 260px; max-width: 380px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; font: inherit; padding: 11px 14px 11px 40px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats a { padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 650; color: var(--ink-2); text-decoration: none; border: 1.5px solid transparent; }
.cats a:hover { border-color: var(--line); }
.cats a.on { background: var(--ink); color: var(--panel); }
@media (max-width: 680px) {
  .browse-tools .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; width: calc(100% + 40px);
    mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .browse-tools .cats::-webkit-scrollbar { display: none; }
  .browse-tools .cats a { flex: none; white-space: nowrap; }
}
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--muted); }
.tile-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 8px; color: var(--ink); text-decoration: none; flex: 1; }
.tile-name { font-weight: 800; font-size: 1.05rem; }
.tile-co { color: var(--muted); font-size: .86rem; margin-top: -4px; }
.tile-latest { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.tile .follow-form { padding: 0 16px 14px; }
.tile { content-visibility: auto; contain-intrinsic-size: auto 165px; }
.tile-co:empty { display: none; }
@media (max-width: 560px) {   /* a list, not cards: the name and its latest change, with Follow at the right */
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tile { flex-direction: row; align-items: center; contain-intrinsic-size: auto 100px; }
  .tile-link { padding: 12px 8px 12px 14px; min-width: 0; }
  .tile-latest { margin-top: 4px; }
  .tile .follow-form { padding: 0 14px 0 0; }
}
.follow-form { margin: 0; }
.btn.follow { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.btn.follow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.follow.on { background: var(--neutral-bg); border-color: transparent; color: var(--ink-2); }
.btn.follow.on:hover { background: var(--concern-bg); color: var(--concern); }
.btn.follow .lbl { display: inline-flex; align-items: center; gap: 6px; }
.btn.follow .lbl-hover { display: none; }
.btn.follow.on:hover .lbl { display: none; }
.btn.follow.on:hover .lbl-hover { display: inline; }

/* ---------- Notices and empty states ---------- */
.notice { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); margin: 14px 0; }
.notice.good { background: var(--good-bg); border-color: transparent; }
.notice.warn { background: var(--caution-bg); border-color: transparent; }
.notice p { margin: 0; }
.notice-pose { width: 64px; height: auto; flex: none; }
.empty-state { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; }
.empty-state .figure { width: 150px; }
.empty-state h1, .empty-state h2 { font: 400 1.45rem/1.2 var(--display); margin: 0 0 6px; }
.empty-state p { margin: 0; color: var(--ink-2); }
.notice-ok { padding: 10px 14px; border-radius: 12px; background: var(--good-bg); color: var(--good); }
@media (max-width: 520px) { .empty-state { grid-template-columns: 96px minmax(0, 1fr); } .empty-state .figure { width: 96px; } }

/* ---------- Paper: the company's own words ---------- */
.paper { margin: 0; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: 4px 14px 14px 4px;
  border-left: 4px double var(--rule); padding: 16px 22px 16px 24px; }
.paper blockquote { margin: 0; font: 400 1.08rem/1.7 var(--doc); max-width: 68ch; overflow-wrap: anywhere; }
.paper figcaption { font: 500 .82rem/1.4 var(--font); color: var(--muted); margin-top: 10px; }
.paper figcaption a { color: var(--muted); }
.gap { color: var(--muted); padding: 0 2px; }
ins { background: var(--ins); color: var(--ins-ink); text-decoration: none; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
del { background: var(--del); color: var(--del-ink); text-decoration-thickness: 1px; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Change page ---------- */
.change-head { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 8px 32px; align-items: center; padding-bottom: 8px; }
.change-head .pose { width: 200px; align-self: end; }
.change-head h1 { font: 400 clamp(1.7rem, 3.6vw, 2.4rem)/1.15 var(--display); letter-spacing: 0; margin: 12px 0 10px; max-width: 26ch; }
.change-head .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 10px; }
.change-meta { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.change-meta a { color: inherit; }
.change-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.change-actions form { margin: 0; }
.action-steps { flex-basis: 100%; margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.legend { font-size: .86rem; color: var(--muted); margin: -4px 0 14px; }
.passage { margin-bottom: 14px; }
.passage-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0 0 10px !important; font: 600 .88rem var(--font) !important; color: var(--ink-2) !important; }
.passage-section { font: 500 .78rem var(--font); color: var(--muted); margin: 10px 0 0; }
.more { margin-top: 10px; }
.more summary { cursor: pointer; font: 650 .86rem var(--font); color: var(--link); }
.more blockquote { margin-top: 10px; }
.how { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink-2); font-size: .92rem; }
.how summary, .sources summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.how summary::-webkit-details-marker, .sources summary::-webkit-details-marker { display: none; }
.sv2-sources > summary { min-height: 40px; }
.how summary::before, .sources summary::before { content: "+"; width: 1ch; color: var(--muted); }
.how[open] summary::before, .sources[open] summary::before { content: "–"; }
.how ul { margin: 10px 0 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; max-width: 70ch; }
.deadline { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; margin: 4px 0 14px; border-radius: 12px; background: var(--caution-bg); color: var(--caution); font-size: .93rem; max-width: 60ch; }
.deadline span { color: var(--ink-2); }
/* Phone dock: the main action follows you down the page once the header's buttons scroll away. */
.change-dock { display: none; }
@media (max-width: 680px) {
  .change-dock { display: flex; position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 9; padding: 10px 16px;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .22s ease; }
  .change-dock.show { transform: none; }
  .change-dock .btn { flex: 1; justify-content: center; }
  .has-dock main { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .change-dock { transition: none; } }
.review-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px dashed var(--line); }
.review-bar > span { flex: 1 1 100%; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; }
.decide form { margin: 0; }
.decide .btn { min-height: 38px; padding: 6px 14px; font-size: .88rem; gap: 6px; }
.decide .btn .head { width: 22px; height: auto; }
.decide .btn.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.decide-hold_on { background: var(--concern-bg); border-color: transparent; color: var(--concern); }
.decide-worth_a_look { background: var(--caution-bg); border-color: transparent; color: var(--caution); }
.decide-dismiss { color: var(--muted); }
.decide-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; margin: 10px 0 0; font-size: .88rem; }
.decide-legend div { margin: 0; }
.decide-legend dt { font-weight: 700; }
.decide-legend dd { margin: 0; color: var(--muted); }
.review-bar form { margin: 0; }
@media (max-width: 680px) {
  /* Osbert stands on the right of the status line; the headline gets the full width below him. */
  .change-head { grid-template-columns: minmax(0, 1fr) 92px; gap: 0 12px; align-items: end; }
  .change-head .change-copy { display: contents; }
  .change-head .change-copy > * { grid-column: 1 / -1; }
  .change-head .change-copy > .status-tag,
  .change-head .change-copy > .rating { grid-row: 1; grid-column: 1; align-self: end; justify-self: start; margin-bottom: 6px; }
  .change-head .pose { grid-row: 1; grid-column: 2; width: 92px; }
  .change-head h1 { margin-top: 10px; }
  .change-actions .action-btn { flex: 1 1 100%; }
  .paper { padding: 14px 16px 14px 18px; }
  .paper blockquote { font-size: 1.04rem; }
}

/* ---------- Service page ---------- */
.checking { display: flex; align-items: center; gap: 12px; color: var(--ink-2); margin: 6px 0 0; }
.checking-pose { width: 72px; flex: none; }
.actions-list { display: flex; flex-direction: column; gap: 12px; }
.action-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.action-topic { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 110px; }
.action-item .action-steps { flex-basis: auto; }
.topics { border-top: 1px solid var(--line); }
.topic { border-bottom: 1px solid var(--line); }
.topic summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; cursor: pointer; list-style: none; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary::after { content: "+"; font-weight: 700; color: var(--muted); margin-left: 8px; }
.topic[open] summary::after { content: "–"; }
.topic-name { font-weight: 750; margin-right: auto; }
.topic-body { padding: 0 4px 16px; }
.sources { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.sources .table-wrap { margin-top: 10px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 2px 10px 2px 8px; border-radius: 999px; white-space: nowrap; }
.rating .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rating-good { background: var(--good-bg); color: var(--good); }
.rating-caution { background: var(--caution-bg); color: var(--caution); }
.rating-concern { background: var(--concern-bg); color: var(--concern); }
.rating-not_addressed, .rating-unrated { background: var(--neutral-bg); color: var(--neutral); }

/* ---------- Tables (HQ and sources only) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- Alerts filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 18px; }
.seg { display: inline-flex; background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.seg a.on { background: var(--ink); color: var(--panel); }
.select select { font: 600 .9rem var(--font); padding: 9px 12px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); }

/* ---------- Sign-up ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; margin-bottom: 26px; }
.hero .kicker { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.hero h1 { font: 400 clamp(2.2rem, 5vw, 3.3rem)/1.04 var(--display); letter-spacing: 0; margin: 0 0 14px; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }
.scene { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; box-shadow: var(--shadow); }
.scene > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.scene .on-mat { position: absolute; left: 6%; right: 6%; bottom: 13%; }
.scene .on-mat img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 12px rgba(0,0,0,.28)); }
@media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); } .scene { aspect-ratio: 5 / 4; } .scene .on-mat { left: 18%; right: 18%; bottom: 8%; } }
.picked { font-weight: 700; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pref { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--panel); }
.pref:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pref input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.group { margin: 20px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.svc-name { font-weight: 750; }
.svc-co { width: 100%; padding-left: 28px; font-size: .8rem; color: var(--muted); margin-top: -4px; }
.text { font: inherit; padding: 10px 14px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; width: min(100%, 360px); background: var(--panel); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin: 10px 0 16px; }

/* ---------- Settings ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.subnav a { padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 650; color: var(--ink-2); text-decoration: none; border: 1.5px solid var(--line); }
.subnav a:hover { border-color: var(--muted); }
@media (max-width: 680px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; white-space: nowrap; }
  .pl-name { flex-direction: column; align-items: flex-start; }
}
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plain-list li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.plain-list li > a, .pl-name a { font-weight: 700; }
.pl-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.plain-list li .follow-form { margin-left: auto; }
.choices { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.choices legend { font-weight: 700; margin-bottom: 8px; }
.choice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; max-width: 560px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin: 0; }
.form-actions { margin: 14px 0 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-actions p { margin: 0; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Privacy page ---------- */
.prose { max-width: 760px; }
.prose h1 { font: 400 2rem/1.15 var(--display); letter-spacing: 0; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose-top { margin-bottom: 8px; }
.prose-top img { width: 150px; height: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; display: block; }

/* ---------- HQ ---------- */
.hq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.hq-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hq-card h2 { margin: 0; font-size: 1rem; }
.hq-card p { margin: 0; }
.hq-num { font: 400 2.2rem/1 var(--display); }
.hq-num.small-num { font-size: 1.4rem; }
.tech { display: inline-block; font: 500 .74rem var(--mono); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin: 2px 4px 2px 0; }
.tech-row { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; }
.review-head { padding-top: 0; }
.label-box { margin-top: 12px; font: .88rem var(--font); }
.label-box summary { cursor: pointer; color: var(--muted); display: inline-block; }
.label-box[open] summary { color: var(--link); margin-bottom: 8px; }
.label-box form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--panel-2); }
.label-box fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; flex-basis: 100%; }
.label-box legend { font-weight: 700; margin-bottom: 4px; }
.label-box label { display: inline-flex; gap: 6px; align-items: center; }
.label-box label.grow { flex: 1; min-width: 180px; }
.label-box label.grow input { flex: 1; }
.label-box select, .label-box input[type=text] { font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 4px; }
.metric { display: flex; flex-direction: column; margin-bottom: 0; }
.metric h2 { font-size: .95rem; }
.metric-value { font: 400 2.1rem/1.1 var(--display); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.metric h3 { font-size: .95rem; margin: 0; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap .table th.num { white-space: normal; }
.count-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.count-status p { margin: 0; }
.metric-cols > .panel { min-width: 0; }
.metric-cols > .panel h3 { margin: 18px 0 4px; }
.metrics-head { margin: 26px 0 12px; }
.metric-value .muted { font: 500 1rem var(--font); }
.metric-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 720px) { .metric-cols { grid-template-columns: 1fr; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.head { width: 40px; height: auto; flex: none; display: block; }
.figure { display: block; height: auto; }

/* HQ: Claude spend */
.meter { align-self: stretch; width: 100%; height: 8px; border-radius: 999px; background: var(--neutral-bg); overflow: hidden; margin: 2px 0 10px; }
.meter span { display: block; height: 100%; background: var(--good); border-radius: inherit; }
.meter.high span { background: var(--caution); }
.claude-card.is-paused .meter span { background: var(--concern); }
.claude-log { margin-top: 18px; }

/* Question pages: /services/<service>/questions/<topic> */
.question .change-head .rating { font-size: .95rem; padding: 6px 12px; }
.question .lede.answer { color: var(--ink); font-size: 1.18rem; }
.watch-cta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.watch-cta h2 { margin: 0 0 4px; }
.watch-cta p { margin: 0 0 12px; }
.watch-cta .watch-pose { width: 120px; grid-column: 1; grid-row: 1; }
.watch-cta > div { grid-column: 2; grid-row: 1; }  /* placed explicitly: .section adds its own boxes */
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-list a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); text-decoration: none; color: var(--ink); font-weight: 600; }
.q-list a:hover { border-color: var(--link); color: var(--link); }
.q-list a::after { content: " →"; color: var(--muted); }
.q-link { margin: 12px 0 0; font-weight: 600; }
@media (max-width: 520px) {
  .watch-cta { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .watch-cta .watch-pose { width: 72px; }
}

/* Upcoming changes calendar (/upcoming) */
.cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 18px; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.cal-date { display: flex; flex-direction: column; gap: 2px; }
.cal-day { font: 400 1.35rem/1.1 var(--display); color: var(--ink); }
.cal-when { font-size: .84rem; color: var(--muted); }
.cal.past .cal-day { color: var(--ink-2); }
.cal-service { font-weight: 750; color: var(--ink); text-decoration: none; }
.cal-service:hover { color: var(--link); text-decoration: underline; }
.cal-doc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; }
.cal-doc > a { color: var(--ink); }
.cal-doc-name { font-weight: 650; }
.announced-tag { font-weight: 750; font-size: .8rem; color: var(--caution); background: var(--caution-bg);
  padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.coming-link { margin: -4px 0 18px; font-weight: 600; }
.browse-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -4px 0 16px; font-weight: 600; }
.browse-links a { padding: 4px 0; }
@media (max-width: 520px) {
  .cal-item { grid-template-columns: minmax(0, 1fr); }
  .cal-date { flex-direction: row; align-items: baseline; gap: 10px; }
}

/* Linkable passages: /services/<s>/changes/<slug>?p=3#passage-3 */
.passage { scroll-margin-top: 88px; }
.passage:target, .passage.linked { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.passage-link { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 999px; font: 600 .8rem var(--font); color: var(--muted);
  text-decoration: none; background: var(--panel); white-space: nowrap; }
.passage-link:hover, .passage-link:focus-visible { color: var(--link); border-color: var(--link); }
.passage-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.passage-link.copied { color: var(--good); border-color: var(--good); }

/* Home page for visitors */
.home-hero { margin-top: 8px; }
.home-hero h1 { max-width: 20ch; }
.home-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; max-width: 520px; }
.home-search .search { flex: 1 1 290px; max-width: none; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero-stats { font-size: .88rem; color: var(--muted); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft);
  color: var(--ink); font-weight: 800; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); text-decoration: none; font-weight: 650; }
.chip-list a:hover { border-color: var(--link); color: var(--link); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0; }
.trust div { border-top: 3px solid var(--accent); padding-top: 12px; color: var(--ink-2); font-size: .95rem; }
.trust strong { color: var(--ink); display: block; margin-bottom: 2px; }
.cta-band { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--night); color: var(--night-ink);
  border-radius: var(--radius); padding: 24px 28px; margin: 10px 0 20px; }
.cta-band .cta-pose { width: 180px; grid-column: 1; grid-row: 1; }
.cta-band > div { grid-column: 2; grid-row: 1; }
.cta-band h2 { margin: 0 0 6px; color: var(--night-ink); }
.cta-band .muted { color: var(--night-muted); margin: 0 0 14px; }
@media (max-width: 720px) {
  .steps, .trust { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .cta-band .cta-pose { width: 96px; }
  .home-search .search { flex: 1 1 100%; }
  .home-search .btn { flex: 1 1 auto; justify-content: center; }
}

/* Visitor navigation (no account): Browse, Upcoming, Get alerts */
.visitor-nav { align-items: center; }
.visitor-nav .nav-cta { margin-left: 6px; padding: 8px 16px; color: var(--accent-ink); white-space: nowrap; }
.visitor-nav .nav-cta:hover { background: var(--accent); filter: brightness(1.05); }
@media (max-width: 720px) {
  body:not(.hq) .topnav.visitor-nav { display: flex; }
  .visitor-nav a { padding: 7px 10px; font-size: .9rem; }
}
/* On phones everything but Browse and the button moves into a menu (2026-11-30) */
.nav-menu { display: none; position: relative; }
.nav-menu > summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { background: var(--panel-2); }
.nav-menu svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.nav-menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px; padding: 8px; display: grid; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.visitor-nav .nav-menu-list a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
.nav-menu-list .nav-menu-browse { display: none; }
@media (max-width: 660px) {
  .visitor-nav .nav-upcoming, .visitor-nav .nav-research, .visitor-nav .nav-compare, .visitor-nav .nav-signin { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 385px) { .visitor-nav > a:first-child { display: none; } .nav-menu-list .nav-menu-browse { display: block; } }

/* View toggle (footer) and the bar shown while previewing as a visitor */
.view-toggle { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 3px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--panel); font-size: .82rem; }
.view-toggle span { padding: 0 8px 0 10px; color: var(--muted); font-weight: 650; }
.view-toggle form { margin: 0; }
.view-toggle button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font: inherit; font-weight: 650;
  color: var(--ink-2); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.preview-bar { background: var(--accent-soft); color: var(--accent-ink); font-size: .9rem; border-bottom: 1px solid var(--line); }
.preview-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; padding-bottom: 8px; }
.preview-bar form { margin: 0; }
.preview-bar button { border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 3px 12px;
  font: inherit; font-weight: 700; cursor: pointer; }

/* HQ: Claude stopped working, or the key expires soon */
.claude-alert { border-bottom: 1px solid var(--line); font-size: .92rem; }
.claude-alert .wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; }
.claude-alert.stopped { background: var(--concern-bg); color: var(--concern); }
.claude-alert.soon { background: var(--caution-bg); color: var(--caution); }
.claude-alert span { color: var(--ink-2); }
.claude-alert code { font-size: .85em; }
.claude-card.is-problem { border-color: var(--concern); }
.claude-card.is-problem .hq-num { color: var(--concern); }

.also-covers { margin: 2px 0 4px; color: var(--ink-2); font-size: .95rem; }

/* ---- Search suggestions (search.js) ---- */
.search { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.suggest li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.suggest li.on a, .suggest li a:hover { background: var(--panel-2); }
.suggest .sg-of { color: var(--muted); font-weight: 500; }
.suggest .sg-request { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.suggest .sg-request a { color: var(--link); font-weight: 600; font-size: .92rem; }
.suggest .sg-none { padding: 9px 12px; color: var(--muted); font-size: .92rem; }
.browse-tools .search { flex: 1 1 320px; max-width: 520px; }

/* ---- Customize links, calendar tabs, join and request pages ---- */
.head-links { display: flex; gap: 16px; align-items: baseline; }
.head-links a { padding: 4px 0; }
.section-note { margin: -6px 0 12px; }
.view-tabs { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.view-tabs .n { opacity: .7; font-weight: 600; margin-left: 2px; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.join { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; max-width: 760px; margin: 32px auto; }
.join h1 { margin-top: 0; }
.join-figure { width: 160px; }
.join-figure .join-pose { width: 100%; height: auto; }
@media (max-width: 640px) { .join { grid-template-columns: 1fr; text-align: center; } .join-figure { margin: 0 auto; width: 120px; } .join .hero-actions { justify-content: center; } }
.request-form { display: grid; gap: 16px; max-width: 560px; }
.request-form label { display: grid; gap: 6px; font-weight: 600; }
.request-form input, .request-form textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); }
.request-form .btn { justify-self: start; }

/* ---- Logos (Most Popular) ---- */
.logo-tile { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); overflow: hidden; font: 800 1rem var(--font); color: var(--muted); }
.logo-tile img { width: 72%; height: 72%; object-fit: contain; }
.logo-tile.mono { background: var(--panel-2); }
.logo-tile.sm { width: 24px; height: 24px; border-radius: 6px; font-size: .72rem; }
.logo-tile.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.3rem; }

/* ---- Topic pages ---- */
.topic-tally { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 8px; padding: 0; }
.topic-tally a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); text-decoration: none; color: var(--ink); }
.topic-tally strong { font-size: .95rem; }
.topic-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.topic-row-body { min-width: 0; flex: 1; }
.topic-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.topic-name { font-weight: 750; font-size: 1.05rem; color: var(--ink); }
.topic-row p { margin: 6px 0 0; color: var(--ink-2); }
.topic-quote { margin-top: 8px; }
.topic-quote summary { cursor: pointer; color: var(--link); font-size: .9rem; font-weight: 600; }
.topic-quote blockquote { margin: 8px 0 0; padding: 12px 14px; background: var(--paper); color: var(--paper-ink); border-left: 3px solid var(--line);
  border-radius: 8px; font-family: var(--serif, Georgia, serif); }
.topic-group { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 10px; }
.topic-group > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; font-weight: 650; }
.topic-group-title { flex: 1; min-width: 200px; }
.topic-group .n { color: var(--muted); font-weight: 700; }
.topic-list { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; gap: 8px; }
.topic-list li { line-height: 1.45; }
.topic-list li a { font-weight: 700; }
.topic-list .muted { font-size: .92rem; }
.topic-names { padding: 0 16px 14px; margin: 0; line-height: 1.8; }
.topic-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.topic-card { display: grid; gap: 10px; padding: 18px; height: 100%; box-sizing: border-box; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.topic-card:hover { border-color: var(--link); }
.topic-card-title { font-weight: 750; font-size: 1.1rem; line-height: 1.3; }
.topic-card-tally { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.topic-card-tally strong { margin-right: 6px; }

/* ---- Logos in cards, chips, search and headers ---- */
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-titles .tile-co { margin-top: -2px; }
.chip-list a.chip-logo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; }
.suggest li a { display: flex; align-items: center; gap: 10px; }
.suggest .sg-of { margin-left: -4px; }
.svc-title { display: flex; align-items: center; gap: 14px; }


/* ---- Stats page (colors checked with the dataviz validator: light and dark) ---- */
:root { --fill-concern: #B93C2A; --fill-caution: #E9A621; --fill-good: #2A8562; --fill-none: #C9D1DE;
        --fill-one: #24508F; --fill-then: #A9BCD9; --ink-on-none: #16213A; }
@media (prefers-color-scheme: dark) {
  :root { --fill-concern: #D84B57; --fill-caution: #C08A12; --fill-good: #2E9E72; --fill-none: #3A4661;
          --fill-one: #9DBDF5; --fill-then: #3D5A8A; --ink-on-none: #EEF1F8; }
}
.fill-concern { background: var(--fill-concern); } .fill-caution { background: var(--fill-caution); }
.fill-good { background: var(--fill-good); } .fill-none { background: var(--fill-none); }
.on-concern, .on-good { color: #fff; }
@media (prefers-color-scheme: dark) { .on-concern, .on-good { color: #150A0C; } }
 .on-caution { color: #16130A; } .on-none { color: var(--ink-on-none); }
.sx-hero { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 20px 28px; align-items: center; margin: 8px 0 28px; }
.sx-hero-figure { display: grid; gap: 6px; }
.sx-hero-value { font: 750 clamp(3rem, 7vw, 4.25rem)/1 var(--font); letter-spacing: -0.02em; }
.sx-hero-label { color: var(--ink-2); max-width: 32ch; }
.sx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sx-tiles li { display: grid; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sx-tile-label { font-size: .86rem; color: var(--muted); font-weight: 600; }
.sx-tile-value { font: 700 1.5rem/1.15 var(--font); }
.sx-tile-note { font-size: .86rem; color: var(--ink-2); }
.sx-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.sx-card > p.muted { margin-top: 4px; }
.sx-legend { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-2); }
.sx-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sx-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sx-key.then { background: var(--fill-then); } .sx-key.now { background: var(--fill-one); }
.sx-seg { display: flex; gap: 2px; height: 18px; width: 100%; }
.sx-seg.tall { height: 28px; margin-top: 14px; }
.sx-seg-part { display: flex; align-items: center; min-width: 2px; border-radius: 4px; overflow: visible; cursor: default; }
.sx-seg-part:hover, .sx-seg-part:focus-visible { filter: brightness(1.12); }
.sx-seg-label { font-size: .78rem; font-weight: 700; padding-left: 8px; white-space: nowrap; }
.sx-stack-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sx-stack-rows li { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 6px 16px; align-items: center; }
.sx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-row { display: grid; grid-template-columns: minmax(150px, 15em) 1fr 7.5em; gap: 6px 14px; align-items: center; }
.sx-rows.compact .sx-row { grid-template-columns: 8em 1fr 9em; gap: 4px 10px; }
.sx-row-name { font-weight: 600; color: var(--ink); }
.sx-row-value { font-size: .92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.sx-track { position: relative; height: 16px; }
.sx-bar { position: absolute; left: 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.sx-bar.one { top: 2px; height: 12px; background: var(--fill-one); }
.sx-bar.then { top: 0; height: 7px; background: var(--fill-then); }
.sx-bar.now { top: 9px; height: 7px; background: var(--fill-one); }
.sx-track:hover .sx-bar, .sx-track:focus-visible .sx-bar { filter: brightness(1.12); }
.sx-cols { display: flex; align-items: stretch; gap: 10px; margin-top: 12px; }
.sx-col { flex: 1; display: grid; grid-template-rows: auto 150px auto; justify-items: center; gap: 4px; min-width: 0; }
.sx-col-plot { display: flex; align-items: flex-end; justify-content: center; width: 100%; border-bottom: 1px solid var(--line); }
.sx-col-bar { width: min(24px, 70%); background: var(--fill-one); border-radius: 4px 4px 0 0; min-height: 2px; }
.sx-col-value { font-size: .82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sx-col-year { font-size: .78rem; color: var(--muted); }
.sx-col:hover .sx-col-bar, .sx-col:focus-visible .sx-col-bar { filter: brightness(1.12); }
.sx-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 20px; }
.sx-rank { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.sx-rank a { font-weight: 600; }
.sx-table { margin-top: 14px; }
.sx-table summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .92rem; }
.sx-notes { padding-left: 1.2em; display: grid; gap: 4px; }
.sx-tip { position: absolute; z-index: 40; pointer-events: none; background: var(--ink); color: var(--panel); padding: 6px 10px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); max-width: 280px; }
[data-tip]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 700px) {
  .sx-hero { grid-template-columns: 1fr; }
  .sx-stack-rows li { grid-template-columns: 1fr; }
  .sx-row, .sx-rows.compact .sx-row { grid-template-columns: 1fr auto; }
  .sx-row .sx-track { grid-column: 1 / -1; grid-row: 2; }
  .sx-cols { gap: 4px; }
  .sx-col-year { font-size: .68rem; }
}

/* Research: score and length curves (stats.py _spread, research.js). The chosen group in blue over all services, faint. */
:root { --rx-all: #77839B; } @media (prefers-color-scheme: dark) { :root { --rx-all: #8C99B5; } }
.rx-dates h3 { font-size: 1.02rem; margin: 10px 0; }
.rx-group { scroll-margin-top: 70px; }
.rx-lede { margin: 4px 0 12px; max-width: 75ch; }
.rx-card { margin-top: 14px; } .rx-card > h3 { margin: 0; font-size: 1.16rem; } .rx-card > p { margin: 6px 0 0; max-width: 80ch; } .rx-card > .rx-two, .rx-card > .rx-dots, .rx-card > .rx-ladder { margin-top: 16px; }
.rx-sub { margin: 24px 0 4px; font-size: 1rem; }
/* the filter stays in view while its charts are on screen */
.rx-bar { position: sticky; top: 62px; z-index: 4; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 18px; padding: 10px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.rx-bar[hidden] { display: none; } .rx-bar .rx-legend { margin: 0 0 10px; }
@media (max-width: 720px) { .rx-bar { top: 0; } }
.rx-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px 32px; }
.rx-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 14px; margin: 0; }
.rx-controls[hidden], .rx-legend[hidden] { display: none; }
.rx-controls label { display: grid; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.rx-controls select { font: 600 .95rem var(--font); color: var(--ink); background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; min-height: 44px; max-width: 100%; }
.rx-controls .btn[hidden] { display: none; }
.rx-controls .btn { min-height: 44px; }
.rx-key-pick { background: var(--fill-one); } .rx-key-all { background: var(--rx-all); opacity: .55; }
.rx-card > .rx-insight { margin: 8px 0 0; font-weight: 600; color: var(--ink); max-width: 75ch; }
.rx-card > .rx-insight[hidden] { display: none; }
.rx-chart { margin: 0; min-width: 0; }
.rx-chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; margin-bottom: 6px; }
.rx-chart h4 { margin: 0; font-size: .98rem; } .rx-facts { margin: 0; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rx-plot { position: relative; height: 190px; border-bottom: 1.5px solid var(--line); touch-action: pan-y; cursor: crosshair; }
.rx-plot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.rx-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rx-band { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); display: flex; justify-content: center; }
.rx-band:first-child { border-left: 0; }
.rx-band em { font-style: normal; font-size: .7rem; line-height: 1.1; color: var(--muted); white-space: nowrap; }
.rx-area { stroke: none; } .rx-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rx-area.all { fill: var(--fill-one); opacity: .16; } .rx-line.all { stroke: var(--fill-one); }
.rx-area.pick { fill: var(--fill-one); opacity: .2; } .rx-line.pick { stroke: var(--fill-one); stroke-width: 2.5; }
.rx-picked .rx-area.all { fill: var(--rx-all); opacity: .16; } .rx-picked .rx-line.all { stroke: var(--rx-all); opacity: .6; stroke-width: 1.5; }
.rx-med { position: absolute; top: 18px; bottom: 0; width: 0; border-left: 2px dashed var(--fill-one); pointer-events: none; }
.rx-med[hidden] { display: none; }
.rx-picked .rx-med.all { border-color: var(--rx-all); opacity: .7; }
.rx-cross { position: absolute; top: 0; bottom: 0; background: var(--ink); opacity: .08; pointer-events: none; }
.rx-tip { position: absolute; bottom: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; width: max-content; max-width: min(100%, 300px); pointer-events: none; background: var(--ink); color: var(--panel);
  padding: 7px 11px; border-radius: 8px; font-size: .84rem; box-shadow: var(--shadow); }
.rx-tip[hidden] { display: none; }
.rx-tip span { display: flex; align-items: center; gap: 6px; }
.rx-tip .sx-key { flex: none; width: 9px; height: 9px; outline: 1px solid var(--panel); opacity: 1; }
.rx-none { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; padding: 0 20px; font-weight: 600; color: var(--ink-2); pointer-events: none; }
.rx-none[hidden] { display: none; }
.rx-axis { position: relative; height: 20px; margin-top: 4px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rx-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rx-axis .first { transform: none; } .rx-axis .last { transform: translateX(-100%); }
@media (max-width: 520px) { .rx-axis .crowd, .sx-seg-label.snug { display: none; } }   /* too narrow for every label; the tip and the table have them all */
.rx-over { margin: 2px 0 0; }
.rx-scroll { position: relative; overflow-x: auto; }
.rx-table { margin-top: 12px; min-width: 620px; } .rx-table td { text-align: right; font-variant-numeric: tabular-nums; } .rx-table thead th:not(:first-child) { text-align: right; } .rx-table tbody th { text-align: left; font-size: 1em; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: nowrap; }
.rx-table .rx-total th, .rx-table .rx-total td { border-top: 2px solid var(--line); font-weight: 700; }
.rx-when .sx-row { grid-template-columns: 8.5em 1fr 3em; }
@media (min-width: 701px) { .sx-hero .sx-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rx-band em { font-size: .64rem; } .rx-bar { padding: 8px 10px; } .rx-bar .rx-legend { margin: 0; } .rx-controls { width: 100%; flex-wrap: nowrap; gap: 8px; } .rx-controls label { flex: 1; min-width: 0; } .rx-controls label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .rx-controls select { width: 100%; text-overflow: ellipsis; padding: 9px 10px; font-size: .9rem; } .rx-controls .btn { padding: 8px 12px; white-space: nowrap; } }
@media (max-width: 700px) { .rx-when .sx-row { grid-template-columns: 7em 1fr 2.5em; } .rx-when .sx-row .sx-track { grid-column: auto; grid-row: auto; } }
.rx-table.narrow { min-width: 0; max-width: 620px; }
/* one dot per service */
.rx-dots { margin: 0; min-width: 0; } .rx-dots h4 { margin: 0 0 4px; font-size: .98rem; }
.rx-ylabel, .rx-xlabel { margin: 0; font-size: .8rem; font-weight: 600; color: var(--ink-2); } .rx-xlabel { text-align: right; }
.rx-dotwrap { display: grid; grid-template-columns: 26px 1fr; margin-top: 8px; }
.rx-yaxis { position: relative; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; } .rx-yaxis span { position: absolute; right: 7px; transform: translateY(50%); }
.rx-dotplot { position: relative; aspect-ratio: 1.45; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); touch-action: pan-y; }
.rx-dotplot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.rx-dotplot canvas { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); pointer-events: none; }
.rx-mid { position: absolute; border: 0 dashed var(--line); } .rx-mid.h { left: 0; right: 0; bottom: 50%; border-top-width: 1.5px; } .rx-mid.v { top: 0; bottom: 0; left: 50%; border-left-width: 1.5px; }
.rx-corner { position: absolute; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); pointer-events: none; z-index: 1; background: color-mix(in srgb, var(--panel) 78%, transparent); border-radius: 6px; padding: 1px 5px; }
.rx-corner.tl { top: 4px; left: 4px; } .rx-corner.tr { top: 4px; right: 4px; } .rx-corner.bl { bottom: 4px; left: 4px; } .rx-corner.br { bottom: 4px; right: 4px; }
.rx-dotaxis { margin-left: 26px; }
@media (min-width: 900px) { .rx-card > .rx-dots .rx-dotplot { aspect-ratio: 1.85; } }
@media (max-width: 560px) { .rx-dotplot { aspect-ratio: 1.1; } .rx-corner { font-size: .7rem; } }
/* the AI training ladder */
.rx-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rx-rung { display: grid; grid-template-columns: minmax(180px, 17em) 1fr 11em; gap: 4px 14px; align-items: center; }
.rx-rung-name { display: flex; align-items: center; gap: 8px; font-weight: 600; } .rx-rung-name .sx-key { flex: none; }
.rx-rung-track { position: relative; height: 18px; }
.rx-rung-bar { position: absolute; left: 0; min-width: 0; border-radius: 0 4px 4px 0; }
.rx-rung-bar.all { top: 2px; height: 14px; background: var(--fill-one); } .rx-rung-bar.pick { top: 0; height: 9px; background: var(--fill-one); }
.rx-picked .rx-rung-bar.all { background: var(--rx-all); opacity: .55; } .rx-rung.two .rx-rung-bar.all { top: 11px; height: 7px; }
.rx-rung-value { font-size: .92rem; font-variant-numeric: tabular-nums; text-align: right; }
.rx-stack { gap: 9px; } .rx-stack .sx-row-name .muted { font-weight: 400; font-size: .86em; }
@media (max-width: 700px) { .rx-rung { grid-template-columns: 1fr auto; } .rx-rung-track { grid-column: 1 / -1; grid-row: 2; } }

@media (forced-colors: active) { .rx-line.pick { stroke: Highlight; } .rx-line.all { stroke: CanvasText; } }

.sx-facts { margin-top: 12px; }
.sx-facts li { background: var(--panel-2); }

/* ---- Scores: chips, HQ preview, the public method page ---- */
.score-chip { display: inline-block; min-width: 2.2em; padding: 1px 8px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums;
  text-align: center; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.score-chip.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.score-chip.caution { background: var(--caution-bg); color: var(--caution); border-color: transparent; }
.score-chip.concern { background: var(--concern-bg); color: var(--concern); border-color: transparent; }
.score-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 18px 0 10px; }
.score-filters label { display: flex; gap: 6px; align-items: center; font-size: .9rem; }
.score-filters select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.score-table td { vertical-align: top; }
.score-parts q { quotes: "“" "”"; }

.method { max-width: 860px; }
.method-head { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; margin: 8px 0 12px; }
.method-head h1 { margin-top: 0; }
.method-figure { width: 100%; height: auto; }
.method-head > picture { display: block; min-width: 0; }   /* poses with a moonlit version come wrapped in <picture> (About) */
@media (max-width: 720px) {
  .method-head { grid-template-columns: 1fr; }
  .method-figure { width: 190px; justify-self: center; order: -1; }
  .method-head > picture { width: 190px; justify-self: center; order: -1; }
  .method-head > picture .method-figure { width: 100%; }
}
.method-two, .method-rules { padding-left: 1.1em; }
.method-two li, .method-rules li { margin: 0 0 10px; }
.method-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.method-q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.method-q h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 1.02rem; }
.method-q p { margin: 0 0 8px; font-size: .92rem; }
.method-pts { flex: none; font-size: .85rem; font-weight: 650; color: var(--muted); }
.method-answers { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.method-answers li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.method-answers strong { font-variant-numeric: tabular-nums; }
.method-answers li > span { display: flex; align-items: baseline; gap: 8px; }
.method-bands td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Service page, second edition (service_v2.html, osbert/pages.py) ----
   Design pass 2026-11-28: every section is a panel; Young Serif only for the one-sentence bottom line
   (Osbert's voice), the body font everywhere else; on wide screens a column with the scores, the alerts
   button and the section links stays in view. */
/* A tone that doesn't rely on color: a shape per tone, with the word for screen readers (_macros.tone_mark). */
.mark { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; flex: none; font: 800 .74rem/1 var(--font);
  color: var(--panel); background: var(--neutral); transform: translateY(2px); }
.mark-good { background: var(--good); }
.mark-caution { background: var(--caution); }
.mark-concern { background: var(--concern); }
.mark-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); margin: 0 0 6px; padding: 0; list-style: none; }
.mark-legend li { display: flex; gap: 6px; align-items: baseline; }

.sv2 { --sv2-gap: 18px; --sv2-pad: 24px; --sv2-lift: 0 1px 2px rgba(22, 33, 58, .05); }
.sv2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 4px; }
.sv2-id { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 420px; }
.sv2-id h1 { margin: 2px 0 4px; font-size: 1.8rem; }
.sv2-id .muted { margin: 0; }
.sv2-what { font-size: .8rem; color: var(--muted); margin: 2px 0 0; line-height: 1.35; }
.sv2-beyond h3 { font-size: 1.02rem; margin: 18px 0 4px; }
.sv2-beyond .notice { margin: 12px 0 0; }
.sv2-facts { margin: 0; }
.sv2-facts .row { display: grid; grid-template-columns: 190px 1fr; gap: 4px 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.sv2-facts .row:first-child { border-top: 0; }
.sv2-facts dt { font-weight: 650; }
.sv2-facts dd { margin: 0; }
.sv2-facts q { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.sv2-facts dd .small { display: block; margin-top: 4px; }
.sv2-findings { list-style: none; margin: 0; padding: 0; }
.sv2-findings li { padding: 12px 0; border-top: 1px solid var(--line); }
.sv2-findings li:first-child { border-top: 0; padding-top: 6px; }
.sv2-findings p { margin: 0 0 4px; }
.sv2-finding-h { font-weight: 650; }
.sv2-finding-d { color: var(--muted); font-weight: 500; margin-right: 8px; }
@media (max-width: 640px) { .sv2-facts .row { grid-template-columns: 1fr; } }
.sv2-note { font-size: .86rem; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

/* Panels */
.sv2-panel, .sv2-latest, .sv2-sources { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sv2-lift); margin-top: var(--sv2-gap); scroll-margin-top: 128px; }
.sv2-panel { padding: 22px var(--sv2-pad); }
.sv2-panel-head { margin-bottom: 6px; }
.sv2-panel-head h2, .sv2-take-head h2 { font-size: 1.4rem; font-weight: 750; letter-spacing: -.012em; margin: 0; }
.sv2-panel-head p { margin: 6px 0 0; }
.sv2-panel-head.section-head { margin-bottom: 12px; }
.sv2-kicker { display: block; font: 700 .76rem var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* The bottom line */
.sv2-verdict { padding-top: 20px; padding-bottom: 22px; }
.sv2-bottom { font: 400 1.38rem/1.45 var(--display); color: var(--ink); margin: 0; max-width: 34em; text-wrap: pretty; }
.sv2-read { margin-top: 12px; }

/* The latest change: a strip under the bottom line */
.sv2-latest { display: block; padding: 12px var(--sv2-pad) 14px; color: var(--ink); text-decoration: none; }
.sv2-latest .sv2-kicker { margin-bottom: 6px; }
.sv2-latest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sv2-latest:hover .feed-title { text-decoration: underline; text-underline-offset: 3px; }

/* Score cards */
.sv2-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 4px; border-top: 4px solid var(--neutral-bg); box-shadow: var(--sv2-lift); }
.sv2-card + .sv2-card { margin-top: 12px; }
.sv2-card.tone-good { border-top-color: var(--good); }
.sv2-card.tone-caution { border-top-color: var(--caution); }
.sv2-card.tone-concern { border-top-color: var(--concern); }
.sv2-card h3.k { margin: 0; font: 600 .84rem var(--font); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sv2-beta { font: 800 .7rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--link);
  border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; }
.sv2-card .v { font: 800 2.1rem/1.1 var(--font); margin: 2px 0 2px; letter-spacing: -.02em; }
.sv2-card .v span { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.sv2-card .b { font-weight: 700; font-size: .98rem; }
.sv2-card.tone-good .b { color: var(--good); }
.sv2-card.tone-caution .b { color: var(--caution); }
.sv2-card.tone-concern .b { color: var(--concern); }
.sv2-card .s { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.sv2-delta.up { color: var(--good); }
.sv2-delta.down { color: var(--concern); }
.sv2-delta a { font-weight: 600; }
.sv2-scale { margin: 12px 0 2px; }
.sv2-scale .bar { position: relative; display: flex; gap: 2px; height: 8px; }
.sv2-scale .seg { background: var(--neutral-bg); border-radius: 2px; }
.sv2-scale .seg:first-child { border-radius: 999px 2px 2px 999px; }
.sv2-scale .seg:nth-last-child(2) { border-radius: 2px 999px 999px 2px; }
.sv2-card.tone-good .seg.on { background: var(--good); }
.sv2-card.tone-caution .seg.on { background: var(--caution); }
.sv2-card.tone-concern .seg.on { background: var(--concern); }
.sv2-scale .pin { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--panel); }
.sv2-scale .ends { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.sv2-why { margin-top: 8px; border-top: 1px solid var(--line); }
.sv2-why summary, .sv2-product summary, .sv2-more summary { cursor: pointer; font-weight: 700; color: var(--link); padding: 10px 0; min-height: 44px; box-sizing: border-box;
  display: flex; align-items: center; gap: 8px; list-style: none; }
.sv2-why summary::-webkit-details-marker, .sv2-product summary::-webkit-details-marker, .sv2-more summary::-webkit-details-marker { display: none; }
.sv2-why summary::before, .sv2-product summary::before, .sv2-more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; flex: none; margin-right: 2px; }
.sv2-why[open] summary::before, .sv2-product[open] summary::before, .sv2-more[open] summary::before { transform: rotate(45deg); }
.sv2-why p { margin: 0 0 8px; }
.sv2-why dl { margin: 0 0 8px; }
.sv2-why .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.sv2-why dt { color: var(--muted); }
.sv2-why dd { margin: 0; display: flex; gap: 7px; align-items: baseline; }

/* The column beside the reading column */
.sv2-rail-h { font: 700 .76rem var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.sv2-rail-cta { margin-top: 16px; }
.sv2-rail-cta .btn, .sv2-rail-cta .follow-form, .sv2-rail-cta .follow-form .btn { width: 100%; }
.sv2-jump-rail { margin-top: 18px; display: flex; flex-direction: column; }
.sv2-jump-rail a { padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; }
.sv2-jump-rail a:hover { color: var(--ink); border-left-color: var(--muted); }
.sv2-jump-rail a[aria-current] { color: var(--ink); border-left-color: var(--accent); }

/* Section links on phones and tablets: a bar that stays at the top (under the top bar where that stays too) */
.sv2-jump-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 62px; z-index: 4;
  margin: var(--sv2-gap) calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0; padding: 8px max(20px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sv2-jump-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.sv2-jump-links::-webkit-scrollbar { display: none; }
.sv2-jump-links a { flex: none; font: 600 .86rem var(--font); padding: 6px 13px; min-height: 36px; box-sizing: border-box; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; }
.sv2-jump-links a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.sv2-jump-cta { flex: none; min-height: 36px; padding: 6px 14px; font-size: .86rem; }
@media (max-width: 720px) { .sv2-jump-bar { top: 0; } }   /* the top bar scrolls away on phones */

@media (min-width: 1040px) {
  .sv2-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 24px; align-items: start; }
  .sv2-layout > * { grid-column: 1; }
  .sv2-layout > .sv2-rail { grid-column: 2; grid-row: 1 / span 40; align-self: stretch; margin-top: var(--sv2-gap); }
  .sv2-rail-inner { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
  .sv2-jump-bar, .sv2-head-cta { display: none; }   /* the column's alerts button stays in view instead */
  /* the latest change joins the bottom-line panel */
  .has-latest > .sv2-verdict { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .has-latest > .sv2-latest { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; background: var(--panel-2); }
}
@media (max-width: 1039px) {
  .sv2-rail { margin-top: 12px; }
  .sv2-rail-cta, .sv2-jump-rail { display: none; }
  .sv2-latest { margin-top: 12px; }
}
@media (min-width: 680px) and (max-width: 1039px) {
  .sv2-rail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: start; }
  .sv2-rail-inner > :not(.sv2-card) { grid-column: 1 / -1; }
  .sv2-card + .sv2-card { margin-top: 0; }
}

/* Osbert's take: plain body text, and the three kinds of point marked by a colored edge */
.sv2-take-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sv2-take-head .head { width: 36px; }
.sv2-take-lead { font-size: 1.06rem; line-height: 1.7; color: var(--ink); margin: 0 0 12px; max-width: 66ch; }
.sv2-points { display: grid; gap: 16px; margin: 18px 0 4px; }
.sv2-point { border-left: 3px solid var(--line); padding: 1px 0 1px 16px; }
.sv2-point h3 { font: 700 .78rem var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.sv2-point p { margin: 0; line-height: 1.68; color: var(--ink-2); max-width: 66ch; }
.sv2-point.pt-good { border-left-color: var(--good); }
.sv2-point.pt-good h3 { color: var(--good); }
.sv2-point.pt-watch { border-left-color: var(--caution); }
.sv2-point.pt-watch h3 { color: var(--caution); }
.sv2-point.pt-switch { border-left-color: var(--link); }
.sv2-point.pt-switch h3 { color: var(--link); }

/* Topics: the rating first, then the question (a link to the full answer) and its one-line answer */
.sv2-topic { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 128px; }
.sv2-topic:last-of-type { padding-bottom: 4px; }
.sv2-topic:target { background: var(--accent-soft); margin: 0 -12px; padding: 16px 12px; border-radius: var(--radius-sm); }
.sv2-topic-rating { padding-top: 1px; }
.sv2-topic-body h3 { margin: 0 0 4px; font-size: 1.06rem; line-height: 1.35; }
.sv2-topic-body h3 a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sv2-topic-body h3 a:hover { text-decoration-color: var(--link); }
.sv2-topic-body > p { margin: 0; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.sv2-topic .q-link { margin: 8px 0 0; font-size: .88rem; }
.sv2-topic .q-link a { display: inline-block; padding: 4px 0; }
.sv2-action { margin-top: 10px; }
.sv2-uncovered { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); }

/* Products: one line each, a short teaser, open for the details */
.sv2-products { border-bottom: 1px solid var(--line); }
.sv2-product { border-top: 1px solid var(--line); scroll-margin-top: 128px; }
.sv2-product summary { align-items: flex-start; padding: 12px 0; }
.sv2-product summary::before { margin-top: 7px; }
.sv2-product-name { display: flex; flex-direction: column; gap: 2px; }
.sv2-product summary h3 { margin: 0; font-size: 1rem; color: var(--ink); }
.sv2-teaser { font-weight: 400; font-size: .9rem; color: var(--muted); }
.sv2-product[open] { padding-bottom: 14px; }
.sv2-product > p { margin: 0 0 0 19px; line-height: 1.65; max-width: 66ch; color: var(--ink-2); }
.sv2-product .sv2-product-q { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.sv2-more { margin-top: 6px; }
.sv2-more summary { font-size: .92rem; min-height: 40px; }
.sv2-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 4px; margin: 0; }
.sv2-chips li { font-size: .84rem; background: var(--neutral-bg); color: var(--ink-2); border-radius: 999px; padding: 4px 11px; }

/* Changes, inside their panel */
.sv2-feed { gap: 0; }
.sv2-feed .feed-item { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.sv2-feed .feed-item:hover { box-shadow: none; background: var(--panel-2); }
.sv2-feed .feed-link { padding: 14px 6px; }

/* The comparison: Norton's row tinted, with an edge and a "This page" tag */
table.sv2-compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; margin-top: 4px; }
.sv2-compare th, .sv2-compare td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sv2-compare thead th { font-size: .8rem; color: var(--muted); font-weight: 600; padding-top: 0; }
.sv2-compare tbody th a { display: inline-block; padding: 5px 0; min-width: 24px; }
.q-rivals li > a { padding: 4px 0; min-width: 24px; }
.sv2-compare tbody th { font-weight: 500; width: 30%; padding-right: 12px; overflow-wrap: anywhere; }
.sv2-compare td { width: 35%; padding-right: 14px; }
.sv2-compare .cell { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 8px; align-items: center; }
.sv2-compare .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sv2-compare .bar { height: 10px; background: var(--neutral-bg); border-radius: 999px; overflow: hidden; }
.sv2-compare .fill { display: block; height: 100%; border-radius: 999px; background: var(--neutral); }
.sv2-compare .fill.tone-good { background: var(--good); }
.sv2-compare .fill.tone-caution { background: var(--caution); }
.sv2-compare .fill.tone-concern { background: var(--concern); }
.sv2-compare tr.self > * { background: var(--accent-soft); border-bottom-color: transparent; }
.sv2-compare tr.self > th { font-weight: 800; box-shadow: inset 4px 0 0 var(--accent); border-radius: 8px 0 0 8px; }
.sv2-compare tr.self > td:last-child { border-radius: 0 8px 8px 0; }
.sv2-compare tr.self .bar { background: color-mix(in srgb, var(--neutral-bg) 70%, var(--panel)); }
.sv2-here { display: inline-block; white-space: nowrap; vertical-align: 1px; margin-left: 6px; font: 800 .7rem var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 2px 7px; border-radius: 999px; }
.sv2-star { font-weight: 700; color: var(--muted); margin-left: 1px; }

/* Alerts, with Osbert keeping watch */
.sv2-cta { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin-top: var(--sv2-gap);
  padding: 16px var(--sv2-pad); background: var(--accent-soft); border-radius: var(--radius); }
.sv2-cta-art .sv2-cta-pose { width: 92px; height: auto; }
.sv2-cta h2 { font-size: 1.12rem; margin: 0 0 2px; }
.sv2-cta p { margin: 0; color: var(--ink-2); }

/* Sources */
.sv2-sources { padding: 14px var(--sv2-pad); }
.sv2 .sources tr.sub td { border-top: 0; }

@media (max-width: 680px) {
  .sv2 { --sv2-pad: 18px; --sv2-gap: 14px; }
  .sv2-id h1 { font-size: 1.45rem; }
  .sv2-bottom { font-size: 1.16rem; }
  .sv2-panel-head h2, .sv2-take-head h2 { font-size: 1.2rem; }
  .sv2-take-lead { font-size: 1.02rem; }
  .sv2-why .row { grid-template-columns: 1fr; gap: 2px; }
  .sv2-topic { grid-template-columns: 1fr; gap: 8px; }
  .sv2-topic-rating { padding-top: 0; }
  .sv2-compare tbody th { width: 34%; }
  .sv2-cta { grid-template-columns: 64px minmax(0, 1fr); }
  .sv2-cta-art .sv2-cta-pose { width: 64px; }
  .sv2-cta > :last-child { grid-column: 1 / -1; }
  .sv2-cta .btn { width: 100%; }
}

/* A change's effect on the score (change.html, score.change_effect) */
.score-effect { margin: 14px 0 4px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--panel-2); border-left: 4px solid var(--neutral); }
.score-effect.up { border-left-color: var(--good); }
.score-effect.down { border-left-color: var(--concern); }
.score-effect p { margin: 0; }
.score-effect ul { margin: 6px 0 0; padding-left: 1.1em; }
.score-effect .small { margin-top: 6px; }

/* ---- Question pages, design pass 2026-11-28 (question.html): the service page's panels and side column ---- */
.q-answer { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 24px; align-items: end; }
.q-answer .rating { font-size: .95rem; padding: 6px 12px; }
.q-answer h1 { font: 800 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--font); letter-spacing: -.015em; margin: 12px 0 10px; max-width: 28ch; }
.q-lede { font-size: 1.12rem; line-height: 1.65; color: var(--ink); max-width: 62ch; margin: 0 0 12px; }
.q-meta { font-size: .88rem; color: var(--muted); margin: 0 0 4px; }
.q-meta a { color: inherit; }
.q-answer .change-actions { margin-top: 12px; }
.q-answer-art .q-pose { width: 150px; height: auto; }
.qv2 .paper { margin-top: 4px; }
.q-scores { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 8px; box-shadow: var(--sv2-lift); }
.q-scores .sv2-rail-h { display: flex; align-items: center; gap: 8px; }
.q-score { display: grid; grid-template-columns: 64px auto 1fr; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.q-score .k { font-size: .86rem; color: var(--muted); font-weight: 600; }
.q-score .v { font: 800 1.5rem/1 var(--font); letter-spacing: -.02em; }
.q-score .v span { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 1px; }
.q-score .b { font-weight: 700; font-size: .9rem; text-align: right; }
.q-score.tone-good .b { color: var(--good); }
.q-score.tone-caution .b { color: var(--caution); }
.q-score.tone-concern .b { color: var(--concern); }
.q-back { display: block; margin-top: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; box-shadow: var(--sv2-lift); }
.q-back:hover { border-color: var(--link); }
.q-back-t { display: block; font-weight: 700; }
.q-back-s { display: block; font-size: .86rem; color: var(--link); margin-top: 2px; }
.q-rivals, .q-more { list-style: none; margin: 4px 0 0; padding: 0; }
.q-rivals li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 8px; border-top: 1px solid var(--line); }
.q-rivals li.self { background: var(--accent-soft); border-radius: 8px; box-shadow: inset 4px 0 0 var(--accent); font-weight: 800; border-top-color: transparent; }
.q-rivals li.self + li, .q-rivals li + li.self { border-top-color: transparent; }
.q-more a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; }
.q-more a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.qv2 .q-link { margin: 12px 0 0; font-size: .92rem; }
@media (max-width: 1039px) { .qv2 .sv2-rail-cta { display: block; } }   /* no section bar here, so the alerts button stays in the column */
@media (max-width: 680px) {
  .q-answer { grid-template-columns: minmax(0, 1fr) 76px; align-items: start; }
  .q-answer-art { grid-row: 1; grid-column: 2; }
  .q-answer-copy { grid-row: 1; grid-column: 1 / -1; }
  .q-answer-art .q-pose { width: 76px; }
  .q-answer h1 { margin-right: 84px; }
}

/* ---- Compare (compare.html, osbert/compare.py, 2026-11-28) ---- */
.cmp-intro h1 { margin: 4px 0 6px; }
.cmp-form { padding-top: 18px; padding-bottom: 18px; }
.cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: end; }
.cmp-pick label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.cmp-pick input { font: 500 1rem var(--font); padding: 11px 14px; min-height: 46px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2); color: var(--ink); width: 100%; }
.cmp-pick input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cmp-pick .btn { min-height: 46px; }
.cmp-vs { font: 400 1.1rem var(--display); color: var(--muted); padding-bottom: 12px; text-align: center; }
.cmp-error { margin: 12px 0 0; color: var(--concern); font-weight: 600; }
.cmp-popular { columns: 3 230px; column-gap: 24px; margin-top: 6px; }
.cmp-group { break-inside: avoid; padding-bottom: 14px; }
.cmp-group h3 { font: 700 .78rem var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.cmp-group ul, .cmp-topics-links { list-style: none; margin: 0; padding: 0; }
.cmp-group li a, .cmp-topics-links a { display: block; padding: 7px 0; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.cmp-group li a:hover, .cmp-topics-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cmp-head { display: grid; gap: 10px; margin-bottom: 2px; }
.cmp-head h1 { margin: 0; font-size: 1.8rem; }
.cmp-logos { display: flex; align-items: center; gap: 12px; }
.cmp-logos .cmp-vs { padding: 0; }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.cmp-scores { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin-top: 16px; }
.cmp-col-h { font-weight: 800; padding-bottom: 8px; }
.cmp-col-h a { color: var(--ink); }
.cmp-row-h { font-size: .88rem; color: var(--muted); font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line); }
.cmp-score { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cmp-score .v { font: 800 1.8rem/1 var(--font); letter-spacing: -.02em; }
.cmp-score .v span { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 1px; }
.cmp-score .b { font-weight: 700; font-size: .92rem; }
.cmp-score .bar { grid-column: 1 / -1; height: 8px; margin-top: 6px; background: var(--neutral-bg); border-radius: 999px; overflow: hidden; }
.cmp-score .fill { display: block; height: 100%; border-radius: 999px; background: var(--neutral); }
.cmp-score.tone-good .b { color: var(--good); }   .cmp-score.tone-good .fill { background: var(--good); }
.cmp-score.tone-caution .b { color: var(--caution); } .cmp-score.tone-caution .fill { background: var(--caution); }
.cmp-score.tone-concern .b { color: var(--concern); } .cmp-score.tone-concern .fill { background: var(--concern); }
.cmp-caveat { color: var(--caution); }
.cmp-topic { padding: 14px 0; border-top: 1px solid var(--line); }
.cmp-topic h3 { margin: 0 0 8px; font-size: 1.02rem; }
.cmp-who { font: 700 .76rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; display: block; }
.cmp-answer p { margin: 6px 0 0; line-height: 1.55; color: var(--ink-2); font-size: .95rem; }
.cmp-more { white-space: nowrap; font-weight: 600; }
.cmp-diff-h { margin: 0; font-size: 1rem; }
.cmp-diff-head { border-top: 0; padding: 14px 0 6px; align-items: end; }
.cmp-diff-name { font: 800 .8rem var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }   /* which column is which app */
.cmp-diff-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.cmp-diff-row p { margin: 0; display: flex; gap: 7px; align-items: baseline; }
.cmp-diff-row p .t { flex: 1; min-width: 0; }
.cmp-diff-row .q { color: var(--muted); }
.cmp-diff-row .cmp-who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* read aloud; the header row shows the names */
.cmp-change { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.cmp-change:hover .feed-title { text-decoration: underline; text-underline-offset: 3px; }
.cmp-next-col { display: grid; gap: 10px; align-content: start; }
.cmp-next-col .q-back { margin-top: 0; }
.cmp-alerts .btn, .cmp-alerts .follow-form, .cmp-alerts .follow-form .btn { width: 100%; }
@media (max-width: 680px) {
  .cmp-pick { grid-template-columns: 1fr; }
  .cmp-vs { padding: 0; text-align: left; }
  .cmp-head h1 { font-size: 1.4rem; }
  .cmp-scores { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .cmp-score { grid-template-columns: minmax(0, 1fr); }
  .cmp-scores > .cmp-col-h:first-child { display: none; }
  .cmp-row-h { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-row-h + .cmp-score, .cmp-row-h + .cmp-score + .cmp-score { border-top: 0; }
  .cmp-answers { grid-template-columns: 1fr; gap: 12px; }
  .cmp-diff-row { grid-template-columns: 1fr; }
  .cmp-diff-row .cmp-who { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: inline; margin: 0 4px 0 0; }
  .cmp-diff-head .cmp-diff-name { display: none; }   /* on phones each answer carries its app's name instead */
  .cmp-latest, .cmp-next .cmp-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Compare, second pass (2026-11-28): the site's search suggestions in the boxes, swapping one side,
   the more protective answer marked, a share button, the editor's summary */
.cmp-pick label, .cmp-box-field { position: relative; }
.cmp-question { font: 400 1.25rem/1.35 var(--display); margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cmp-question .sv2-beta { font-family: var(--font); }
.cmp-share-row { margin: 2px 0 0; display: flex; align-items: center; gap: 12px; min-height: 0; }
.cmp-share { min-height: 40px; padding: 7px 14px; font-size: .9rem; }
.cmp-better { display: inline-block; margin-left: 8px; font: 700 .72rem var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--good);
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; vertical-align: 1px; }
.cmp-swap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding-top: 16px; padding-bottom: 16px; }
.cmp-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin: 0; }
.cmp-box-field { display: grid; gap: 5px; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.cmp-box input { font: 500 .95rem var(--font); padding: 9px 12px; min-height: 42px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); color: var(--ink); width: 100%; }
.cmp-box input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cmp-box .btn { min-height: 42px; padding: 8px 14px; }
.sv2-rail .cmp-box, .qv2 .sv2-rail .cmp-box { margin-top: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--sv2-lift); }
@media (max-width: 680px) { .cmp-swap { grid-template-columns: 1fr; } }

/* Following on this device (2026-11-30) */
.follow-local.on { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.follow-strip { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin: 0 0 18px; color: var(--ink); text-decoration: none; font-weight: 600; }
.follow-strip[hidden] { display: none; }
.follow-strip:hover { background: var(--panel-2); }
.follow-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.follow-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.follow-row:last-child { border-bottom: 0; }
.follow-main { min-width: 0; }
.follow-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.follow-name:hover { text-decoration: underline; }
.follow-latest { display: block; color: var(--ink-2); text-decoration: none; font-size: .94rem; margin-top: 2px; }
.follow-latest .feed-title { font-weight: 500; font-size: inherit; display: block; }
.follow-latest .feed-meta { font-size: .86rem; }
.nav-cta .count { margin-left: 2px; }
#new-other { margin-top: 12px; }
#new-other summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); background: var(--night, #16213A); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); z-index: 60; font-size: .95rem; }
.toast[hidden] { display: none; }
.toast a { color: #FFD27A; font-weight: 600; white-space: nowrap; }
label.btn { cursor: pointer; }
label.btn:focus-within { outline: 3px solid var(--focus, #2E6BE6); outline-offset: 2px; }

/* Sign in and account (2026-11-30) */
.signin-card { max-width: 480px; margin: 24px auto 40px; padding: 28px; }
.signin-card .signin-pose { width: 120px; height: auto; margin: 0 auto 6px; display: block; }
.signin-card h1 { margin: 4px 0 10px; font-size: 1.6rem; }
.signin-form { display: grid; gap: 14px; margin: 14px 0; }
.signin-form .btn, .signin-providers .btn { width: 100%; justify-content: center; }
.signin-form input.text { width: 100%; }
.signin-form input.code { font-size: 1.5rem; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.signin-providers { display: grid; gap: 10px; margin-bottom: 14px; }
.signin-providers form { margin: 0; }
.signin-or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 16px 0; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0 18px; }
#account h3 { margin: 22px 0 6px; }
#account .btn-row { margin-top: 16px; }
.mailbox { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border-radius: 10px; padding: 12px; font-size: .9rem; }

/* Follow asks for an account (2026-11-30) */
.follow-dialog { border: 0; border-radius: 20px; padding: 26px; width: min(430px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); color: var(--ink); box-shadow: 0 18px 60px rgba(0,0,0,.3); }
.follow-dialog::backdrop { background: rgba(16,24,44,.55); }
.follow-dialog h2 { margin: 0 34px 6px 0; }
.follow-dialog .signin-form { margin: 14px 0 12px; }
.fd-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.fd-close:hover { background: var(--panel-2); }
.fd-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fd-ways form { margin: 0; }
.fd-ways .btn { width: 100%; justify-content: center; padding-left: 8px; padding-right: 8px; }
.fd-device { margin: 12px 0 0; text-align: center; }
.keep-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 0 0 18px; }
.keep-bar[hidden] { display: none; }
.keep-bar p { margin: 0; flex: 1 1 260px; }
.keep-bar form { margin: 0; }
#manage > summary { cursor: pointer; }
#manage > summary h2 { display: inline; }
.visitor-nav .nav-cta { white-space: nowrap; }
@media (max-width: 430px) { .visitor-nav .nav-cta { padding: 8px 12px; margin-left: 2px; } }

.brake { border: 2px solid var(--accent); }

.choice.soon { cursor: default; background: transparent; }
.choice.soon strong { color: var(--ink-2); }
.soon-tag { display: inline-block; background: var(--panel-2); color: var(--ink-2); border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 600; margin-left: 4px; }


/* Picking services (setup.js) */
.su { max-width: 860px; margin: 0 auto; }
.su h1:focus { outline: none; }
.su-search { max-width: none; }
.su-search input { min-height: 52px; }
.su-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px; margin: 0 -20px; scrollbar-width: none; scroll-padding-inline: 20px; }
.su-chips::-webkit-scrollbar { display: none; }
.su-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer; }
.su-chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.su-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: #fff; font-size: .68rem; font-weight: 800; }
.su-tick[hidden] { display: none; }
.su-where { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.su-where[hidden] { display: none; }
.su-where h2 { font-size: 1.05rem; margin: 0; }
.su-where label { font-size: .9rem; color: var(--muted); }
.su-where select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-height: 36px; }
.su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 10px; }
.su-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 116px; padding: 14px 6px 11px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.su-tile:hover { border-color: var(--muted); }
.su-name { font-size: .88rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.su-of { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.su-tile[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.su-tile[aria-pressed=true]::after { content: "✓"; position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: .78rem; font-weight: 800; }
.su-tile[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.su-more { display: block; margin: 12px auto 0; padding: 10px; min-height: 44px; }
.su-more[hidden] { display: none; }
.su-tray { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px -20px 0; padding: 10px 20px 12px; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -20px rgba(22, 33, 58, .5); }
body:has(.tabbar) .su-tray { bottom: var(--tabbar-h); }
.su-slots { display: flex; gap: 6px; flex: 1 1 300px; min-width: 0; overflow-x: auto; padding: 8px 8px 6px 2px; scrollbar-width: none; }
.su-slots::-webkit-scrollbar { display: none; }
.su-slot { position: relative; flex: none; width: 36px; height: 36px; padding: 0; border: 1.5px dashed var(--rule); border-radius: 11px; background: none; }
.su-slot.on { border: 0; cursor: pointer; }
.su-slot .logo-tile { width: 36px; height: 36px; }
.su-slot.on::after { content: "×"; position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: .74rem; line-height: 17px; text-align: center; }
.su-n { margin: 0; font-size: .9rem; line-height: 1.3; color: var(--muted); max-width: 130px; }
.su-sum { padding: 18px 20px; margin-bottom: 14px; }
.su-sum details { border-top: 1px solid var(--line); padding: 6px 0; }
.su-sum summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; cursor: pointer; list-style: none; }
.su-sum summary::-webkit-details-marker { display: none; }
.su-sum summary strong, .su-sum summary .muted { display: block; }
.su-sum summary .muted { font-size: .94rem; }
.su-change { flex: none; color: var(--link); font-weight: 650; text-decoration: underline; }
.su-sum details[open] .su-change { font-size: 0; }
.su-sum details[open] .su-change::after { content: "Done"; font-size: 1rem; }
.su-opts { border: 0; margin: 4px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.su-mini { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
.su-mini .logo-tile { width: 36px; height: 36px; }
.su-account { padding: 20px; max-width: none; }
.su-device { text-align: center; margin-top: 16px; }
.plain-list li > .btn.sm { margin-left: auto; flex: none; }
@media (max-width: 480px) { .su-grid { grid-template-columns: repeat(3, 1fr); } .su-slots { flex-basis: 100%; } .su-n { max-width: none; } .su-tray > .btn, .su-tray form { flex: 1; } .su-tray form .btn { width: 100%; } }

/* Research report: AI agents (/research/agents) */
.ra .eyebrow { margin: 0 0 4px; font-size: .86rem; font-weight: 650; color: var(--muted); }
.ra-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.ra-summary p { max-width: 75ch; margin: 12px 0 0; line-height: 1.6; }
.ra-summary h2 { margin: 0; }
.ra-tiles { margin: 16px 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.ra-toc ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ra-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: .9rem; font-weight: 600; text-decoration: none; }
.ra-toc a:hover { background: var(--panel-2); }
.ra .section { scroll-margin-top: 76px; }
.ra .sx-card > h3 { margin: 0; font-size: 1.08rem; }
.ra .sx-card > .sx-rows { margin: 14px 0; }
@media (min-width: 721px) { .ra .sx-row { grid-template-columns: minmax(150px, 24em) 1fr 9.5em; } .ra .sx-rows.compact .sx-row { grid-template-columns: 10.5em 1fr 5em; } }
.ra-two { margin-top: 14px; align-items: start; }
.ra-two > *, .ra-four > *, .ra-quotes > * { min-width: 0; }
.ra-echo { margin-top: 14px; }
.ra-echo > p:last-child { max-width: 80ch; margin: 14px 0 0; }
.ra-after { margin: 12px 0; max-width: 85ch; }
.ra-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ra-chips a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.ra-chips a:hover { border-color: var(--link); color: var(--link); }
.ra-four { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.ra-big { margin: 0; font: 750 2.4rem/1 var(--font); letter-spacing: -.02em; }
.ra .ra-four .sx-card > h3 { margin-top: 6px; }
.ra-table td, .ra-table th[scope="row"] { vertical-align: top; overflow-wrap: anywhere; }
.ra-table { margin-top: 12px; }
.ra-table th[scope="row"], .ra-matrix tbody th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); font-weight: 650; padding: 10px 8px; min-width: 7em; }
.ra-matrix { min-width: 860px; }
.ra-matrix thead th { vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: .82rem; line-height: 1.25; }
.ra-matrix .ra-yes, .ra-matrix .ra-no { text-align: center; }
.ra-yes { color: var(--link); } .ra-no { color: var(--muted); }
.ra-matrix .ra-grouprow th { padding-top: 16px; font-size: .86rem; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.ra-matrix .ra-words { min-width: 22em; text-align: left; }
.rx-table.ra-matrix thead th:not(:first-child), .rx-table.ra-matrix td { text-align: center; } .rx-table.ra-matrix .ra-words, .rx-table.ra-matrix.words thead th:nth-child(2) { text-align: left; }
.ra-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ra-chain h3 { font-size: 1rem; }
.ra-quote { margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--accent); }
.ra-quote blockquote { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.ra-quote blockquote::before { content: "“"; } .ra-quote blockquote::after { content: "”"; }
.ra-quote figcaption { margin-top: 6px; font-size: .88rem; color: var(--ink-2); }
.ra-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 28px; }
.ra-outside > p { margin: 6px 0 0 17px; }
.ra-check { margin: 12px 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 80ch; }
.ra-cite { margin: 16px 0 0; font-size: .92rem; max-width: 85ch; } .ra-url { overflow-wrap: anywhere; }
@media (max-width: 720px) { .ra-chain { grid-template-columns: 1fr; } }
@media print { .ra-toc, .ra-actions { display: none; } .ra .sx-card { break-inside: avoid; } }
.ra-promo { color: inherit; text-decoration: none; } .ra-promo strong { color: var(--link); text-decoration: underline; text-underline-offset: 2px; } .ra-promo:hover { border-color: var(--link); }
.ra-cardnote { margin: 14px 0 0; } #responsible > .sx-card { margin-bottom: 14px; } #responsible > .sx-card > p { max-width: 80ch; margin: 10px 0 0; }
#proof > .sx-card, #proof > .ra-chain { margin-bottom: 14px; }
.ra-parts .sx-card > p { margin: 8px 0 0; } .ra-parts .ra-ask { margin: 0 0 2px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.ra-steps { margin: 12px 0; padding-left: 1.4em; display: grid; gap: 8px; max-width: 80ch; } .ra-steps li::marker { font-weight: 700; }
.ra-thing { display: block; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
#proof .ra-table td strong { font-weight: 650; }

.digest-frame { width: 100%; max-width: 660px; height: 780px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #F3F5FA; display: block; margin: 12px 0; }

/* Last pass before launch (2026-11-30) */
.lost .home-search { margin-bottom: 0; }
@media (max-width: 520px) { .empty-state.lost { grid-template-columns: minmax(0, 1fr); } }
.section-head a, .btn-row + p a { display: inline-block; padding: 3px 0; }
.how summary { min-height: 32px; }
.passage summary { display: inline-block; padding: 6px 0; }
main details:has(table) { max-width: 100%; }
main details > table, main details > div > table { max-width: 100%; }
main details:has(> table), main details > div:has(> table) { overflow-x: auto; }
