/* Randolph Collective command center: one stylesheet, self-hosted type, no inline style (the page's security policy).

   How it is built (Private advisory, 2026-11-04):
   1. Tokens. Two themes that follow the device: warm ivory with dark ink and brass (light), and deep forest with
      brass (prefers-color-scheme: dark). The sidebar and the phone tab bar stay forest in both. Straight edges, hairline
      dividers, almost no fills: a page is composed with type and rules, not cards.
   2. Base elements, then components in the order a page uses them: shell, page header, headings, figures, tables,
      badges, buttons, forms, disclosures, charts, page pieces.
   3. Phone (max-width 860px): the sidebar becomes a top bar with a menu and the tab bar; 44px tap targets, safe-area
      insets, tables that become cards where they carry the page.
   Newsreader (self-hosted, SIL OFL, static/fonts) sets the wordmark, headings and display figures; the system sans sets
   navigation, labels, forms and dense data, with tabular numerals where numbers align. */

@font-face { font-family: "Newsreader"; src: url("/static/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/static/fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;

  /* brand, identical in both themes */
  --brand: #142d24;
  --brand-deep: #0e2119;
  --copper-hi: #d9b27c;
  --copper-lo: #a7803f;
  --on-brand: #c6d0c8;

  /* light: ivory paper, green ink, copper */
  --bg: #f5f2eb;
  --panel: #fbf9f4;
  --panel-2: #ece6d9;
  --text: #232d26;
  --strong: #111c16;
  --muted: #515c54;
  --faint: #5f6a62;
  --line: #cfc7b6;
  --line-soft: #e0d9ca;
  --accent: #7a5520;
  --bronze: #a7803f;
  --btn: #142d24;
  --btn-ink: #f5f2eb;
  --btn-hover: #204335;
  --accent-ink: #f5f2eb;
  --ok: #23704a;
  --warn: #8a5f0f;
  --bad: #b2362d;
  --banner-bg: #7d1d17;
  --banner-text: #ffffff;
  --code-bg: #ece6d9;
  --row-hover: #ece6d9;
  --focus: #7a5520;
  --fill: rgba(20, 45, 36, 0.055);
  --fill-2: rgba(20, 45, 36, 0.1);
  --plate: #e9e3d6;
  --plate-ink: #142d24;
  --seg-on: #fbf9f4;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2356625e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.75 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(18, 28, 24, 0.05), 0 6px 20px rgba(18, 28, 24, 0.06);
  --l0: #efe9de;
  --l1: #e3d3bd;
  --l2: #d0b48f;
  --l3: #b8905f;
  --l4: #9a6f40;
  --l5: #6e4a26;
  --s-realized: #8a5d31;
  --s-ask: #3f6189;
  --s-reported: #6b7672;
  --s-2: #5d7a3a;
  --s-3: #a14f49;

  /* type scale (rem, html is 16px) */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-cap: 0.75rem;   /* spaced capitals: labels, table heads */
  --t-xs: 0.8125rem;     /* footnotes, tile labels */
  --t-sm: 0.875rem;   /* secondary text, dense tables */
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.75rem;   /* section headings, tile figures */
  --t-xl: 2rem;    /* key figure */
  --t-2xl: 2.75rem;   /* page title */
  --t-3xl: 3.5rem;
  --t-table: 0.9375rem; /* primary table text */

  /* spacing rhythm */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --gutter: 2.5rem;
  --rail: 15rem;

  --r-sm: 2px;
  --r: 2px;
  --r-lg: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --tap: 44px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a15;
    --panel: #15221c;
    --panel-2: #1b2a23;
    --text: #e7e3d8;
    --strong: #f6f3ea;
    --muted: #aab4ac;
    --faint: #98a39b;
    --line: #33463c;
    --line-soft: #25362e;
    --accent: #dcb985;
    --bronze: #b58f55;
    --btn: #d9b27c;
    --btn-ink: #111c16;
    --btn-hover: #e6c594;
    --accent-ink: #111c16;
    --ok: #7dbb94;
    --warn: #d9b46a;
    --bad: #e8857e;
    --code-bg: #15221c;
    --row-hover: #1b2a23;
    --focus: #e6c594;
    --fill: rgba(255, 255, 255, 0.07);
    --fill-2: rgba(255, 255, 255, 0.13);
    --plate: #ece7db;
    --plate-ink: #142d24;
    --seg-on: #2b3c38;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2397a39e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.75 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --l0: #1b2a23;
    --l1: #2a251f;
    --l2: #43382b;
    --l3: #66533a;
    --l4: #94774f;
    --l5: #c9ab7c;
    --s-realized: #d8bc8c;
    --s-ask: #8fa3bc;
    --s-reported: #8f9c97;
    --s-2: #a3b38a;
    --s-3: #c99a95;
  }
}

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { color: var(--strong); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--copper-hi) 45%, transparent); }
a, button, summary, input, select, textarea, .card, .bag, .ph img, .tag, .views a, .markets a {
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease), opacity var(--fast) var(--ease), transform 220ms var(--ease);
}
.skip { position: absolute; left: -999px; top: 0; background: var(--btn); color: var(--btn-ink); padding: var(--sp-2) var(--sp-4); z-index: 30; border-radius: var(--r-sm); }
.skip:focus { left: var(--sp-2); top: var(--sp-2); }
img { max-width: 100%; }

.banner {
  position: sticky; top: 0; z-index: 10; background: var(--banner-bg); color: var(--banner-text);
  text-align: center; font-weight: 600; letter-spacing: 0.04em; padding: 0.4rem var(--sp-4); font-size: var(--t-xs);
  border-bottom: 1px solid #a8352c;
}
.banner b { font-weight: 800; letter-spacing: 0.1em; }

/* ------------------------------------------------------------ type */
h1, h2, .brand { font-family: var(--serif); font-weight: 560; }
h1 { font-size: var(--t-2xl); line-height: 1.08; margin: var(--sp-1) 0 var(--sp-3); color: var(--strong); letter-spacing: -0.018em; }
h2 {
  font-size: var(--t-lg); line-height: 1.2; margin: var(--sp-7) 0 var(--sp-3); padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line); color: var(--strong); letter-spacing: -0.012em;
}
h2 .tag { vertical-align: 0.2em; margin-left: var(--sp-2); font-family: var(--sans); }
h2 a.small { font-family: var(--sans); font-size: var(--t-sm); margin-left: var(--sp-2); display: inline-block; }
h3 { font-size: var(--t-cap); margin: var(--sp-5) 0 var(--sp-2); color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
p { margin: var(--sp-2) 0 var(--sp-3); }
main p, main li, dl.qa dd { max-width: 78ch; }
main p.notice, main p.callout, main p.tabs, main p.figs, main p.pager, main p.views, main .actions p, main p.steps { max-width: none; }
.lede { color: var(--muted); max-width: 64ch; font-size: var(--t-md); line-height: 1.55; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--t-sm); }
p.small, p.faint.small { line-height: 1.55; }
.crumb { margin: 0 0 var(--sp-3); font-size: var(--t-sm); }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.mono, pre, .json, textarea.mono { font-family: var(--mono); font-size: 0.86em; }
.nw { white-space: nowrap; }
.n { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
b, strong { font-weight: 600; }

/* ------------------------------------------------------------ shell: the forest rail, the ivory workspace */
/* the rail's colour runs the full height of a long page; its contents stay in view (sticky) */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--brand) var(--rail), var(--bg) var(--rail)); }
.shell.no-nav { grid-template-columns: minmax(0, 1fr); background: none; }
.shell.no-nav .topbar { position: static; height: auto; flex-direction: row; padding: var(--sp-3) var(--gutter); }
.shell.no-nav .brand { flex-direction: row; align-items: baseline; gap: var(--sp-3); margin: 0; }
.shell.no-nav .brand .mark { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 9; align-self: start; height: 100vh; display: flex; flex-direction: column;
  padding: var(--sp-6) 0 var(--sp-5); background: var(--brand); color: var(--on-brand); overflow-y: auto; scrollbar-width: thin;
}
.brand { color: var(--strong); }
.topbar .brand { display: flex; flex-direction: column; align-items: center; margin: 0 var(--sp-4) var(--sp-7); text-decoration: none; color: #f5f2eb; line-height: 1; }
.topbar .brand .mark { font-size: 3.25rem; font-weight: 400; margin-bottom: var(--sp-2); }
/* The Randolph Goods wordmark on one line (Ryan, 2026-11-18: "make it all in line"): their logo's serif capitals in
   its gold, as the app's bar draws it */
@font-face { font-family: "Randolph Wordmark"; src: url("/static/fonts/playfair-display-latin-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
.topbar .brand .wm {
  display: block; white-space: nowrap; font-family: "Randolph Wordmark", Georgia, serif; font-weight: 400;
  font-size: 1.125rem; letter-spacing: 0.2em; padding-left: 0.2em; line-height: 1.2; color: #d0a46c;
  background: linear-gradient(100deg, #a8804f 0%, #f0cf98 42%, #cf9f63 68%, #a8804f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.topbar .brand .word { font-size: 1.5rem; letter-spacing: 0.14em; padding-left: 0.14em; }
.topbar .brand .coll { font-family: var(--sans); font-size: 0.625rem; letter-spacing: 0.42em; padding-left: 0.42em; text-transform: uppercase; margin-top: var(--sp-2); color: var(--on-brand); }
.menu { display: none; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu .ic { display: none; }

/* the main navigation (#nav); in-page tabs are p.tabs below */
.topbar .tabs { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; border: 0; gap: 0; }
.topbar .tabs ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.topbar .tabs ul a {
  display: block; padding: 0.55rem var(--sp-5) 0.6rem calc(var(--sp-5) + 3px); color: #e4e8e1; text-decoration: none; font-size: 1.25rem;
  border-left: 3px solid transparent; margin-left: var(--sp-2); padding-left: calc(var(--sp-5) - var(--sp-2));
}
.topbar .tabs ul a:hover { color: #fff; }
.topbar .tabs a.on { color: #fff; font-weight: 600; border-left-color: var(--copper-hi); }
/* sub-pages open under the section in use, and on hover or keyboard focus */
.topbar .tabs ul.sub { display: none; padding: 0 0 var(--sp-2); }
.topbar .tabs li.has-sub:hover > ul.sub, .topbar .tabs li.has-sub:focus-within > ul.sub, .topbar .tabs li.has-sub:has(a.on) > ul.sub { display: flex; }
.topbar .tabs ul.sub a { font-size: 1rem; padding-top: 0.3rem; padding-bottom: 0.3rem; color: var(--on-brand); padding-left: calc(var(--sp-5) + var(--sp-2)); }
.topbar .tabs ul.sub a.on { color: #fff; }
.topbar .tabs .end { margin: auto var(--sp-5) 0; padding-top: var(--sp-3); border-top: 1px solid rgba(217, 178, 124, 0.45); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); font-size: 1.125rem; }
.topbar .tabs .end form { margin: 0; }
.topbar .tabs .adv, .topbar .tabs .who { color: #e4e8e1; text-decoration: none; }
.topbar .tabs .adv:hover, .topbar .tabs .who:hover { color: #fff; }
.topbar .tabs .adv.on { color: #fff; font-weight: 600; }
.topbar .tabs .end .link { color: var(--copper-hi); font-size: var(--t-sm); }
.topbar :focus-visible { outline-color: var(--copper-hi); }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.deskline { display: flex; justify-content: space-between; gap: var(--sp-4); max-width: 88rem; width: 100%; margin: 0 auto; padding: var(--sp-4) var(--gutter) 0; font-size: 1.125rem; color: var(--text); }
.deskline > div { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--strong); }
.deskline .where { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deskline time { white-space: nowrap; }
main { display: block; padding: var(--sp-5) var(--gutter) var(--sp-8); max-width: 88rem; width: 100%; margin: 0 auto; min-width: 0; }
main > :first-child { margin-top: 0; }

/* ------------------------------------------------------------ page header */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin: 0 0 var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.pagehead h1 { margin: 0; }
.pagehead h1 .mono { font-size: 0.55em; color: var(--muted); letter-spacing: 0.02em; vertical-align: 0.25em; margin-left: var(--sp-1); }
.pagehead p { margin: var(--sp-2) 0 0; color: var(--muted); max-width: 64ch; line-height: 1.55; }
.pagehead form { margin: 0; }

/* ------------------------------------------------------------ layout helpers */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: var(--sp-2) var(--sp-7); align-items: start; }
.split.wide-first { grid-template-columns: minmax(0, 1.6fr) minmax(min(20rem, 100%), 1fr); }
.cols { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-start; }
.cols > .tw { flex: 1 1 14rem; width: auto; min-width: 0; }
.split > *, .cols > *, .kpis > * { min-width: 0; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.cols3 h3 { margin: 0 0 var(--sp-1); }
.cols3 p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: var(--sp-3); }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--sp-2) var(--sp-6); }
.adv-grid ul { list-style: none; margin: 0; padding: 0; }
.adv-grid li { padding: var(--sp-1) 0; }
.guide { margin-bottom: var(--sp-6); }
.terminal { margin-top: var(--sp-6); }
.chart-narrow { max-width: 34rem; }

/* ------------------------------------------------------------ notices */
.notice, .callout {
  background: none; border: 0; border-left: 3px solid var(--bronze);
  padding: var(--sp-2) var(--sp-4); border-radius: 0; margin: var(--sp-3) 0 var(--sp-4); line-height: 1.5;
}
.notice.bad { border-left-color: var(--bad); }
.callout { border-left-color: var(--warn); }
.callout .mono { word-break: break-all; }
.callout.mono { overflow-wrap: anywhere; }
.error { color: var(--bad); font-weight: 600; }
.gate { border: 1px solid var(--line); background: var(--panel); padding: var(--sp-4) var(--sp-5); border-radius: var(--r); }
.gate h3 { margin-top: 0; }
.gates { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(36rem, 100%), 1fr)); margin: var(--sp-2) 0 var(--sp-4); }
.gates > * { min-width: 0; }
.gate + .gate { margin-top: var(--sp-3); }
.gates > .gate + .gate { margin-top: 0; }
blockquote { margin: var(--sp-2) 0 var(--sp-4); padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); border-left: 2px solid var(--line); }
pre.json { background: var(--code-bg); border: 1px solid var(--line-soft); padding: var(--sp-3) var(--sp-4); overflow-x: auto; margin: var(--sp-1) 0 var(--sp-3); border-radius: var(--r-sm); max-height: 24rem; }
pre.text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--code-bg); border: 1px solid var(--line-soft); padding: var(--sp-3) var(--sp-4); max-width: 60rem; border-radius: var(--r-sm); }
.empty { color: var(--muted); }

/* ------------------------------------------------------------ figure tiles: one component for kpis, stats and figs */
.kpis, .figs, .stats { display: grid; gap: var(--sp-3); margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr)); }
.figs { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: var(--sp-3) var(--sp-5); }
.stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi, .figs > div, .stats > div, .stats > a {
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: var(--sp-3) 0 var(--sp-2);
  min-width: 0; display: flex; flex-direction: column;
}
.kpi .v, .figs b, .stats b {
  order: 0; display: block; font-family: var(--serif); font-size: var(--t-lg); font-weight: 500; color: var(--strong); line-height: 1.15;
  letter-spacing: -0.01em; overflow-wrap: anywhere; font-variant-numeric: lining-nums;
}
.kpi .k { order: 1; font-size: var(--t-cap); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: var(--sp-2); line-height: 1.4; }
.stats span { font-size: var(--t-cap); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: var(--sp-2); line-height: 1.4; }
.figs span { font-size: var(--t-sm); color: var(--muted); margin-top: var(--sp-2); line-height: 1.45; }
.kpi .v.sm { font-size: var(--t-base); font-weight: 500; }
.kpi .v.sm .nw { white-space: normal; }
.kpi .s { order: 2; font-size: var(--t-xs); color: var(--faint); margin-top: var(--sp-1); }
.figs.lead > div:first-child { border-top: 2px solid var(--strong); }
.figs.lead b { font-size: var(--t-xl); font-weight: 500; }
a.kpi-link { color: inherit; text-decoration: none; }
a.kpi-link:hover .kpi, a.kpi-link:focus-visible .kpi { border-color: var(--bronze); }
.stats > a { color: inherit; text-decoration: none; }
.stats > a:hover { border-color: var(--bronze); }
.stats > a:hover b { color: var(--accent); }
.markets-home { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: calc(-1 * var(--sp-2)); }
/* the record page's price: a figure with its note, no tile */
p.figs { display: block; margin: var(--sp-3) 0 var(--sp-2); }
p.figs > span { display: block; }
p.figs > span > b { font-family: var(--serif); font-size: var(--t-2xl); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
p.figs > span > span { display: block; margin-top: var(--sp-1); font-size: var(--t-xs); color: var(--muted); }

/* overview: figures without boxes, hairlines and the type scale */
.kpis.primary, .kpis.secondary { gap: 0 var(--sp-5); border-top: 1px solid var(--line); margin: var(--sp-4) 0 var(--sp-3); }
.kpis.secondary { border-top: 0; }
.kpis.primary .kpi, .kpis.secondary .kpi { background: none; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: var(--sp-4) 0; }
.kpis.primary .kpi .v { font-size: var(--t-xl); font-weight: 500; }
.kpis.primary .kpi .v.sm { font-size: var(--t-base); font-weight: 500; }
.kpis.secondary .kpi .v { font-size: var(--t-md); font-weight: 500; }
.kpis.secondary .kpi .v.sm { font-size: var(--t-sm); }
@media (min-width: 1100px) {
  .kpis.primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.secondary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.facts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin: var(--sp-4) 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.facts > div { display: flex; flex-direction: column; min-width: 0; font-size: var(--t-sm); color: var(--strong); }
.facts > div > span:first-child { font-size: var(--t-cap); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.15rem; }
.four { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: var(--sp-3); margin: var(--sp-3) 0 var(--sp-5); }
.four .panel { background: var(--panel); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line-soft); border-radius: var(--r); }
.four h2 { margin: 0; font-size: var(--t-md); color: var(--strong); border: 0; padding: 0; }
.four ul { margin: var(--sp-2) 0; padding: 0; list-style: none; }
.four li { padding: 0.15rem 0; }
.four strong { color: var(--accent); font-weight: 500; }
.bar { display: inline-block; height: 0.55rem; background: var(--l4); vertical-align: middle; min-width: 1px; border-radius: 2px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-4); align-items: center; margin: var(--sp-2) 0; }

/* the valuation range and the homepage title share .hero; the first is a figure, the second the wordmark */
.hero { margin: var(--sp-4) 0 var(--sp-2); }
.hero .k { font-size: var(--t-cap); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.hero .v { font-family: var(--serif); font-size: var(--t-2xl); font-weight: 500; color: var(--strong); letter-spacing: -0.015em; margin: var(--sp-1) 0; }
.hero .v .to { font-size: var(--t-base); color: var(--muted); margin: 0 var(--sp-2); }
.hero .v.sm { font-size: var(--t-base); }
.hero .s { color: var(--muted); font-size: var(--t-sm); }
.insuf { color: var(--warn); font-size: var(--t-cap); letter-spacing: 0.06em; white-space: nowrap; }
.fmv { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--sp-1) 0 var(--sp-4); margin: var(--sp-6) 0; }
.fmv h2 { border-bottom: 0; margin-top: var(--sp-4); }
.experimental { margin-top: var(--sp-7); padding-top: var(--sp-1); border-top: 2px solid var(--warn); }
.experimental h2 { border-bottom: 0; margin-top: var(--sp-4); }
.experimental h3 { margin-top: var(--sp-5); color: var(--strong); }
.xp-label { display: inline-block; color: var(--warn); border: 1px solid currentColor; padding: var(--sp-1) var(--sp-3); font-weight: 700; letter-spacing: 0.1em; font-size: var(--t-cap); margin: 0 0 var(--sp-3); border-radius: var(--r-sm); }

/* ------------------------------------------------------------ tables: scroll inside their box, never the page */
.tw { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--sp-1) 0 var(--sp-3); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
table.dense { font-size: var(--t-table); }
table.dense th, table.dense td { padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
table.dense th:first-child, table.dense td:first-child { padding-left: var(--sp-1); }
table.dense th:last-child, table.dense td:last-child { padding-right: var(--sp-1); }
table.dense th.n, table.dense td.n { text-align: right; }
table.dense thead th {
  color: var(--accent); font-weight: 600; font-size: var(--t-cap); text-transform: uppercase; letter-spacing: 0.12em;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg); position: sticky; top: 0; z-index: 1;
  vertical-align: bottom; padding-top: var(--sp-3);
}
table.dense.nowrap td { white-space: nowrap; }
table.dense tbody tr { transition: background-color var(--fast) var(--ease); }
table.dense tbody tr:hover { background: var(--row-hover); }
table.dense tbody tr.on, tr.hl td { background: color-mix(in srgb, var(--copper-hi) 12%, transparent); }
table.dense tfoot td { border-top: 1px solid var(--line); font-weight: 600; }
table.dense tbody th { text-align: left; font-weight: 500; color: var(--strong); }
table.dense th.wrap { white-space: normal; min-width: 16rem; max-width: 24rem; }
table.dense td .faint, table.dense td.n .faint { font-size: 0.92em; }
table.dense a { text-decoration: none; }
table.dense a:hover { text-decoration: underline; }
table.series td { min-width: 4.6rem; }
th.grp { text-align: center !important; color: var(--strong) !important; border-bottom: 1px solid var(--line-soft) !important; }
td.sep, th.sep { border-left: 1px solid var(--line); }
td.raw { max-width: 34rem; overflow-wrap: anywhere; }
td.wide { min-width: 24rem; }
td.mid { min-width: 11rem; }
/* a long table keeps its header in view: it scrolls in its own box, so the sticky header has something to stick to */
@media (min-width: 861px) {
  .tw:has(> table.dense > tbody > tr:nth-child(18)) { max-height: min(78vh, 46rem); overflow: auto; border-bottom: 1px solid var(--line); }
}
table.kv { width: 100%; }
table.kv th { text-align: left; font-weight: 400; color: var(--muted); padding: 0.45rem var(--sp-4) 0.45rem 0; width: 16rem; vertical-align: top; }
table.kv td { padding: 0.45rem 0; vertical-align: top; overflow-wrap: anywhere; color: var(--strong); }
table.kv tr + tr th, table.kv tr + tr td { border-top: 1px solid var(--line-soft); }
table.kv td.n { text-align: left; }

/* ------------------------------------------------------------ badges: evidence, status, availability */
.tag {
  display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.6875rem; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.1rem 0.55rem; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); white-space: nowrap; font-weight: 500;
  vertical-align: 0.1em; font-family: var(--sans);
}
.tag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.tag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.tag.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }
.tag.sale { color: var(--s-realized); border-color: var(--s-realized); background: color-mix(in srgb, var(--s-realized) 10%, transparent); }
.tag.ask { color: var(--s-ask); border-color: color-mix(in srgb, var(--s-ask) 60%, transparent); }
.tag.reported { color: var(--muted); border-style: dashed; border-color: var(--s-reported); }
.tag.unsold { color: var(--faint); }
.st { font-weight: 600; font-size: 0.82em; letter-spacing: 0.03em; }
.st.ok { color: var(--ok); }
.st.warn { color: var(--warn); }
.st.bad { color: var(--bad); }
.rec { letter-spacing: 0.03em; }
.ask { color: var(--warn); font-size: 0.9em; }
.tag.ask, .tag.sale { font-size: 0.66rem; }
.avail { display: block; color: var(--muted); }
td .avail { display: inline; }
.avail.active { color: var(--ok); }
.avail.inactive { color: var(--muted); }
.avail.active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 0.4rem; vertical-align: 0.1em; }
.conf { font-size: var(--t-xs); letter-spacing: 0.03em; }
.conf::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.45rem; vertical-align: 1px; background: var(--faint); }
.conf-higher::before { background: var(--ok); }
.conf-moderate::before { background: var(--bronze); }
.conf-low::before { background: var(--warn); }
.conf-insufficient { color: var(--muted); }
.fx { color: var(--faint); font-size: 0.78em; font-weight: 400; margin-left: 0.3em; white-space: nowrap; }

/* ------------------------------------------------------------ navigation inside a page */
p.tabs, .tabs:not(#nav) { display: flex; gap: var(--sp-5); margin: var(--sp-1) 0 var(--sp-4); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
p.tabs a, .tabs:not(#nav) a { padding: var(--sp-2) 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
p.tabs a:hover, .tabs:not(#nav) a:hover { color: var(--strong); }
p.tabs a.on, .tabs:not(#nav) a.on { color: var(--strong); border-bottom-color: var(--bronze); font-weight: 600; }
.pager { font-size: var(--t-sm); color: var(--muted); margin-top: var(--sp-5); }
.pager a { margin: 0 var(--sp-3); }
/* With script the pager is the feed's trigger (app.js data-feed): its links give way to a quiet status line. */
.pager.feed > * { display: none; }
.pager.feed::after { content: "Loading more"; }
.pager.feed.done::after { content: "End of results"; }
ul.plain { margin: var(--sp-1) 0 var(--sp-3); padding-left: 1.1rem; }
ul.plain li { margin: 0.2rem 0; }
ul.plain li::marker { color: var(--faint); }
ul.trace { list-style: none; padding-left: 1.1rem; margin: var(--sp-1) 0; border-left: 1px solid var(--line); }
ul.trace li { padding: 0.15rem 0 0.15rem var(--sp-3); }
.trace-f { margin-left: var(--sp-3); color: var(--muted); }
.saved-views { margin: var(--sp-1) 0 var(--sp-3); }
.saved-views form.inline { display: inline-flex; margin-left: var(--sp-3); }

/* a bag's interactive price history (web/price_history.py, drawn by app.js) */
.js-only { display: none; }
.js .js-only { display: block; }
.ph-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: flex-end; margin: 0 0 var(--sp-2); }
.ph-color { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); margin: 0; }
.ph-grain { margin: 0; }
.ph-chart { margin: 0 0 var(--sp-3); }
.js .ph-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; margin-bottom: var(--sp-2); }
.ph-ranges { margin: 0; }
.ph-legend { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; }
.ph-toggle { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.25rem; padding: 0 var(--sp-3); background: transparent; color: var(--strong); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: var(--t-sm); cursor: pointer; }
.ph-toggle[aria-pressed="false"] { color: var(--faint); text-decoration: line-through; }
.ph-toggle:hover { border-color: var(--bronze); }
.ph-plot { position: relative; width: 100%; height: 26rem; }
.ph-tip { position: absolute; z-index: 5; white-space: nowrap; padding: var(--sp-2) var(--sp-3); pointer-events: none; background: var(--panel); color: var(--strong); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: var(--t-sm); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.ph-tip b { display: block; margin-bottom: 0.15rem; }
.ph-tip div { display: flex; align-items: center; gap: var(--sp-2); }
.ph-tip span { color: var(--muted); margin-left: auto; padding-left: var(--sp-3); }
@media (max-width: 640px) { .ph-plot { height: 20rem; } }

/* segmented views (Gallery, Table, Analytics; timeframes) and market chips */
.views { display: flex; gap: 2px; margin: 0 0 var(--sp-4); flex-wrap: wrap; align-items: center; }
.views a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: 0 var(--sp-4);
  border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: var(--t-sm); background: var(--panel);
}
.views a:first-of-type { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.views a:last-of-type { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.views a:only-of-type { border-radius: var(--r-sm); }
.views a:hover { color: var(--strong); border-color: var(--bronze); }
.views a.on { color: var(--btn-ink); background: var(--btn); border-color: var(--btn); font-weight: 600; }
.views .count { margin-left: auto; color: var(--muted); font-size: var(--t-sm); }
.markets { display: flex; gap: var(--sp-5); margin: 0 0 var(--sp-3); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.markets::-webkit-scrollbar { display: none; }
.markets a { padding: var(--sp-3) 0; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.markets a:hover { color: var(--strong); }
.markets a.on { color: var(--strong); border-bottom-color: var(--bronze); }
.markets a span { color: var(--faint); font-size: var(--t-xs); margin-left: 0.25rem; }

/* ------------------------------------------------------------ disclosures */
details { margin: var(--sp-2) 0; }
summary { cursor: pointer; font-weight: 600; padding: var(--sp-1) 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
details:not(.filters details):not(.navgroup) > summary:not(.navtitle)::before {
  content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin: 0 0.6em 0.15em 0.1em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
  transition: transform 200ms var(--ease); opacity: 0.8;
}
details[open]:not(.filters details):not(.navgroup) > summary:not(.navtitle)::before { transform: rotate(45deg) translate(-0.1em, -0.1em); }
details[open] > :not(summary) { animation: reveal 220ms var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
details.why { margin: var(--sp-3) 0 var(--sp-4); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 0 var(--sp-4); background: var(--panel); }
details.why > summary { color: var(--accent); font-weight: 500; letter-spacing: 0.01em; padding: var(--sp-3) 0; min-height: var(--tap); display: flex; align-items: center; }
details.why > summary:hover { color: var(--strong); }
details.why[open] > summary { border-bottom: 1px solid var(--line-soft); margin-bottom: var(--sp-2); }
details.why > :last-child { margin-bottom: var(--sp-4); }
details.why ul { padding-left: 1.1rem; }
details.why li { margin: var(--sp-1) 0; }
details.how { margin: var(--sp-1) 0 var(--sp-3); }
details.how summary { font-weight: 500; font-size: var(--t-sm); color: var(--muted); }
details.how summary:hover { color: var(--accent); }
details.how > div { max-width: 62rem; border-left: 1px solid var(--line); padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); }
details.small > summary { font-size: var(--t-sm); color: var(--muted); font-weight: 500; }
summary.navtitle { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary.navtitle::after { content: "+"; color: var(--faint); }
details[open] > summary.navtitle::after { content: "\2212"; }

/* ------------------------------------------------------------ forms and buttons */
form.stack { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 32rem; }
form.stack.wide { max-width: 52rem; }
form.inline { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
form.filters { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: end; margin: var(--sp-2) 0 var(--sp-4); }
form.filters label { min-width: 8rem; flex: 1 1 8rem; max-width: 14rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.01em; }
input, select, textarea {
  font: inherit; font-size: var(--t-base); color: var(--strong); background: var(--panel); border: 1px solid var(--line);
  padding: 0.45rem 0.7rem; border-radius: var(--r-sm); width: 100%; min-height: 2.5rem;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--bronze) 55%, var(--line)); }
input:focus, select:focus, textarea:focus { border-color: var(--bronze); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper-hi) 28%, transparent); }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--brand); box-shadow: none; }
input[type=file] { border-style: dashed; padding: var(--sp-2); color: var(--muted); font-size: var(--t-sm); }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: var(--sp-3); padding: 0.4rem 0.9rem; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--line); background: var(--fill); color: var(--strong);
}
input[type=file]::file-selector-button:hover { border-color: var(--bronze); }
input[type=date] { min-width: 0; }
form.inline input { width: 14rem; max-width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 2.1rem;
  background-image: var(--chevron); background-position: calc(100% - 0.8rem) 50%; background-size: 0.7rem auto; background-repeat: no-repeat;
}
label.check { flex-direction: row; gap: var(--sp-2); align-items: center; font-size: var(--t-sm); color: var(--text); }
fieldset { border: 1px solid var(--line); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); }
button, a.button, a.btn {
  font: inherit; font-size: var(--t-sm); cursor: pointer; align-self: flex-start; background: var(--btn); color: var(--btn-ink);
  border: 1px solid var(--btn); padding: 0 1.15rem; border-radius: var(--r-sm); font-weight: 600; min-height: 2.5rem; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); text-decoration: none; white-space: nowrap;
}
button:hover, a.button:hover, a.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-ink); }
button:active, a.button:active, a.btn:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; }
button.secondary, a.button.secondary, a.btn.ghost { background: transparent; color: var(--strong); border-color: var(--line); }
button.secondary:hover, a.button.secondary:hover, a.btn.ghost:hover { border-color: var(--bronze); color: var(--strong); background: var(--fill); }
button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.danger:hover { background: color-mix(in srgb, var(--bad) 85%, #000); }
button.link { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; min-height: 0; letter-spacing: 0; font-size: inherit; }
button.link:hover { background: none; color: var(--strong); }
a.btn { padding: 0 1.3rem; min-height: 2.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin: var(--sp-4) 0; }
.actions form.inline { margin: 0; }
.bigbtns { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-5) 0; }
.login { max-width: 24rem; margin: 12vh auto var(--sp-8); padding: var(--sp-6); background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.login h1 { margin-bottom: var(--sp-5); color: var(--strong); }
.login form.stack button { width: 100%; align-self: stretch; min-height: 2.75rem; font-size: var(--t-base); }
.login .muted { margin: var(--sp-4) 0 0; text-align: center; font-size: var(--t-sm); }
.login .muted a { color: var(--muted); }
.drop {
  display: block; border: 1px dashed var(--bronze); background: var(--panel); padding: var(--sp-7) var(--sp-5); text-align: center;
  cursor: pointer; border-radius: var(--r-lg); transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.drop:hover, .drop.over { background: var(--panel-2); border-color: var(--accent); }
.drop b { display: block; font-family: var(--serif); font-size: var(--t-lg); font-weight: 500; color: var(--strong); margin-bottom: var(--sp-2); }
.drop input[type=file] { display: block; margin: var(--sp-5) auto 0; max-width: 100%; color: var(--muted); border: 0; background: transparent; width: auto; }
progress.bar-progress { display: block; width: 100%; height: 4px; margin: var(--sp-4) 0; border: 0; background: var(--line); appearance: none; border-radius: 2px; overflow: hidden; }
progress.bar-progress::-webkit-progress-bar { background: var(--line); }
progress.bar-progress::-webkit-progress-value { background: var(--bronze); }
progress.bar-progress::-moz-progress-bar { background: var(--bronze); }
.steps { list-style: none; padding: 0; margin: var(--sp-4) 0; display: grid; gap: var(--sp-1); color: var(--faint); counter-reset: step; }
ol.steps, p.steps { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); }
.steps li { counter-increment: step; }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "\2713  "; color: var(--ok); }
.steps li.now { color: var(--strong); }
.steps li.now::before { content: "\2022  "; color: var(--accent); }
.steps li.current { color: var(--accent); font-weight: 600; }
.search { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.search input[type=search] { flex: 1; font-size: var(--t-md); padding: 0.65rem var(--sp-4); min-width: 0; min-height: 2.9rem; border-radius: var(--r); }
.search button { min-height: 2.9rem; border-radius: var(--r); }
.ask-box { margin: 0 0 var(--sp-6); }
.ask-box .search { margin: var(--sp-3) 0 0; }
.ask-box .card { border: 1px solid var(--line-soft); border-radius: var(--r); padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-3); }
.answer { border-left: 2px solid var(--bronze); padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); margin-top: var(--sp-4); }
dl.qa { margin: var(--sp-2) 0 var(--sp-4); max-width: 62rem; }
dl.qa dt { color: var(--accent); font-size: var(--t-sm); letter-spacing: 0.02em; margin-top: var(--sp-4); font-weight: 600; }
dl.qa dd { margin: var(--sp-1) 0 0; color: var(--text); line-height: 1.6; }

/* ------------------------------------------------------------ homepage */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin: var(--sp-4) 0 var(--sp-6); }
a.card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 12.5rem; padding: var(--sp-5);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); color: var(--text); text-decoration: none;
}
a.card:hover { border-color: var(--bronze); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
a.card .k { color: var(--accent); font-size: var(--t-cap); letter-spacing: 0.2em; text-transform: uppercase; }
a.card h2 { border: 0; margin: var(--sp-3) 0 var(--sp-2); padding: 0; font-size: var(--t-lg); letter-spacing: 0.01em; text-transform: none; }
a.card p { color: var(--muted); margin: 0; font-size: var(--t-sm); line-height: 1.55; }
a.card .go { color: var(--accent); font-size: var(--t-sm); margin-top: var(--sp-5); }
a.card:hover .go { color: var(--strong); }
.preparing { max-width: 34rem; margin: 18vh auto 0; padding: 0 var(--sp-4); text-align: center; }
.preparing .brandline { letter-spacing: 0.4em; color: var(--accent); font-size: var(--t-xs); }

/* ------------------------------------------------------------ explore: filters, gallery */
.explore { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.filters { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
aside.filters { position: sticky; top: var(--sp-4); max-height: calc(100vh - var(--sp-6)); overflow-y: auto; scrollbar-width: thin; }
.filters label { display: flex; margin: 0 0 var(--sp-3); font-size: var(--t-xs); color: var(--muted); }
.filters label.check { margin-top: var(--sp-1); }
.filters select, .filters input:not([type=checkbox]) { width: 100%; margin-top: 0.15rem; min-height: 2.35rem; font-size: var(--t-sm); }
.filters summary { cursor: pointer; color: var(--muted); font-size: var(--t-cap); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--sp-3); font-weight: 600; }
.filters details > button[type=submit] { width: 100%; margin-top: var(--sp-2); }
.filters details > a.small { display: inline-block; margin-top: var(--sp-2); color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--sp-6) var(--sp-5); }
a.bag { display: block; color: var(--text); text-decoration: none; border-radius: var(--r); }
a.bag:hover { color: var(--text); }
.ph {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--sp-4); background: var(--plate); color: var(--plate-ink); border-radius: var(--r);
  font-family: var(--serif); font-size: var(--t-md); letter-spacing: 0.08em;
}
.ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(4, 55, 53, 0.06); pointer-events: none; }
.ph img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; background: transparent; mix-blend-mode: multiply; }
.ph:has(img) > span { visibility: hidden; }
a.bag:hover .ph img { transform: scale(1.03); }
a.bag:hover .ph { background: color-mix(in srgb, var(--plate) 92%, var(--brand)); }
a.bag .meta { padding: var(--sp-3) 0.1rem 0; }
a.bag .meta b { display: block; color: var(--strong); font-weight: 500; line-height: 1.3; }
a.bag .meta .muted { display: block; font-size: var(--t-xs); margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.bag .meta .price { font-size: var(--t-md); color: var(--strong); margin: var(--sp-2) 0 var(--sp-2); font-weight: 500; letter-spacing: 0.005em; }
a.bag .meta .price .fx { display: block; margin: 0.1rem 0 0; }
a.bag .avail, a.bag .dom, a.bag .src { font-size: var(--t-xs); margin-top: 0.3rem; }
a.bag .meta .src { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.bag .meta .dom { display: block; color: var(--text); }
.detail-ph { max-width: 32rem; aspect-ratio: 1 / 1; font-size: var(--t-lg); }
.listing-link { margin-top: var(--sp-4); }
.listing-link a { display: inline-flex; align-items: center; min-height: 2.5rem; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 var(--sp-4); text-decoration: none; color: var(--strong); }
.listing-link a:hover { border-color: var(--bronze); background: var(--fill); }
/* Where a dealer's offer was posted and the link to it (_source.html): staff only. */
.dealer-src { margin: var(--sp-2) 0 0; color: var(--muted); overflow-wrap: anywhere; }
.dealer-src .ds-where { color: var(--strong); font-weight: 500; }
.dealer-src .ds-link { display: inline-flex; align-items: center; gap: 0.25rem; min-height: var(--tap); }
.dealer-src .ds-note { display: block; }
.dealer-src.on-card { margin: 0.15rem 0.1rem 0; font-size: var(--t-xs); }
.dealer-msg { margin: var(--sp-2) 0 0; border-left: 2px solid var(--line); padding: 0 0 0 var(--sp-3); }
.dealer-msg > summary { min-height: var(--tap); display: flex; align-items: center; color: var(--accent); }
.dealer-msg .dm-head { margin: 0 0 var(--sp-1); }
.dealer-msg .dm-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 var(--sp-2); }
.dealer-msg .dm-photos { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.dealer-msg .dm-photos img { max-width: min(100%, 22rem); height: auto; border-radius: var(--r-sm); }

/* the record page: name, price, evidence, then the facts */
.split > div > h1 { margin-top: 0; }
.split > div > h1 + p.muted { margin-top: 0; }
.split > div > p > .tag + .tag { margin-left: var(--sp-1); }
.split > div > table.kv { margin-top: var(--sp-4); border-top: 1px solid var(--line); }

/* Price DNA: the table on wide screens, one card per trait on a phone (nothing clipped, no sideways scroll) */
.dna-cards { display: none; }
.dna-card { border: 1px solid var(--line-soft); border-radius: var(--r); padding: var(--sp-3) var(--sp-4); margin: var(--sp-2) 0; background: var(--panel); }
.dna-card p { margin: var(--sp-1) 0; }
.dna-card .dna-card-head { font-family: var(--serif); font-size: var(--t-md); color: var(--strong); margin-bottom: var(--sp-2); }
.dna-card .dna-card-head b { font-weight: 500; }
.dna-table td.n { line-height: 1.45; }

/* ------------------------------------------------------------ Index terminal */
.terminal-overview { margin: var(--sp-2) 0 var(--sp-6); }
.it-kicker { color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; font-size: var(--t-cap); margin: 0; }
.it-rows { border-top: 1px solid var(--line); margin: var(--sp-2) 0 var(--sp-3); }
a.it-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--sp-4);
  align-items: baseline; padding: var(--sp-4) var(--sp-2); border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none;
}
a.it-row:hover { background: var(--row-hover); color: var(--text); }
.it-row small { display: block; font-size: var(--t-cap); color: var(--muted); margin-top: 0.2rem; letter-spacing: 0.02em; font-family: var(--sans); }
.it-name { font-family: var(--serif); font-size: var(--t-lg); color: var(--strong); }
.it-level { font-family: var(--serif); font-size: var(--t-xl); font-weight: 500; color: var(--strong); font-variant-numeric: tabular-nums lining-nums; }
.it-change { font-size: var(--t-md); font-variant-numeric: tabular-nums lining-nums; }
.it-row-sm .it-name { font-size: var(--t-base); }
.it-row-sm .it-level { font-size: var(--t-md); }

/* ------------------------------------------------------------ charts: inline SVG, thin strokes, minimal axes */
figure.chart { margin: var(--sp-3) 0; }
figure.chart svg, svg.hbars { display: block; width: 100%; height: auto; max-width: 100%; overflow: visible; }
svg .grid { stroke: var(--line-soft); stroke-width: 1; }
svg .base { stroke: var(--line); stroke-width: 1; }
svg .axis { fill: var(--muted); font-size: 10px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
svg .axis.lbl { fill: var(--text); }
svg .ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
svg .dot { stroke: none; }
svg .hb { fill: var(--l4); }
.s-realized { stroke: var(--s-realized); fill: var(--s-realized); }
.s-ask { stroke: var(--s-ask); fill: var(--s-ask); }
.s-reported { stroke: var(--s-reported); fill: var(--s-reported); }
.s-0 { stroke: var(--s-realized); fill: var(--s-realized); }
.s-1 { stroke: var(--s-ask); fill: var(--s-ask); }
.s-2 { stroke: var(--s-2); fill: var(--s-2); }
.s-3 { stroke: var(--s-3); fill: var(--s-3); }
path.ln.s-realized, path.ln.s-ask, path.ln.s-reported, path.ln.s-0, path.ln.s-1, path.ln.s-2, path.ln.s-3 { fill: none; }
path.ln.s-reported { stroke-dasharray: 3 3; }
.legend { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--t-xs); color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 1.1rem; height: 0.8rem; border: 1px solid var(--line); border-radius: 2px; }
figcaption.legend { gap: var(--sp-1) var(--sp-5); margin-top: var(--sp-2); }
figcaption.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
i.key { display: inline-block; width: 1rem; height: 2px; border: 0; border-radius: 1px; }
i.key.s-realized { background: var(--s-realized); } i.key.s-ask { background: var(--s-ask); }
i.key.s-reported { background: var(--s-reported); } i.key.s-0 { background: var(--s-realized); }
i.key.s-1 { background: var(--s-ask); } i.key.s-2 { background: var(--s-2); } i.key.s-3 { background: var(--s-3); }

/* the coverage map: a tile grid, no map files */
.tilemap { display: grid; grid-template-columns: repeat(24, minmax(1.7rem, 3.2rem)); gap: 2px; min-width: 46rem; }
.tile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.62rem; line-height: 1.1; color: var(--muted); background: var(--l0); border: 1px solid var(--line-soft); text-decoration: none; border-radius: 3px; }
.tile.empty { background: transparent; border-color: transparent; }
.tile b { font-weight: 600; color: var(--text); font-size: 0.68rem; }
.tile.l1 { background: var(--l1); } .tile.l2 { background: var(--l2); } .tile.l3 { background: var(--l3); }
.tile.l4 { background: var(--l4); } .tile.l5 { background: var(--l5); }
.tile.l3 b, .tile.l4 b, .tile.l5 b, .tile.l3, .tile.l4, .tile.l5 { color: #f4f7fa; }
.legend .l0 { background: var(--l0); } .legend .l1 { background: var(--l1); } .legend .l2 { background: var(--l2); }
.legend .l3 { background: var(--l3); } .legend .l4 { background: var(--l4); } .legend .l5 { background: var(--l5); }

/* ------------------------------------------------------------ reports */
.report { max-width: 52rem; }
.report-head { border-bottom: 1px solid var(--line); padding-bottom: var(--sp-3); margin-bottom: var(--sp-4); }
.report-head .brandline { letter-spacing: 0.4em; color: var(--accent); font-size: var(--t-xs); margin: 0; }
.report-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-4); gap: var(--sp-3); flex-wrap: wrap; }

/* the old sidebar shell (a few pages still carry its classes) */
.side ul { list-style: none; margin: 0; padding: 0; }
.navgroup { margin-bottom: var(--sp-2); }
.navtitle { padding: var(--sp-3) 0 var(--sp-1); font-size: var(--t-cap); color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }
.who { font-size: var(--t-sm); }

/* ------------------------------------------------------------ medium screens */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .markets-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ Phone: an app, not a page
   Everything here applies at phone width only, in Safari and in the Randolph Collective app alike. iOS conventions:
   a compact bar under the status bar, a large title, a filled search field, segmented controls, edge to edge
   photography on a light plate, a tab bar with icons, every control at least 44px to tap, and 16px fields so iOS
   does not zoom the page when one is focused (Safari draws a native select at its own height, hence the plain box). */
.dock { display: none; }
@media (max-width: 860px) {
  :root { --gutter: 1rem; --t-2xl: 2.25rem; --t-lg: 1.375rem; --t-table: 0.9375rem; }
  html { -webkit-tap-highlight-color: transparent; }
  a, button, summary { -webkit-touch-callout: none; }
  a:active, button:active, summary:active { opacity: 0.6; }

  /* the rail becomes a bar: wordmark left, menu right, under the status bar */
  .shell { display: block; background: none; }
  .topbar {
    position: sticky; top: 0; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0;
    padding: calc(env(safe-area-inset-top) + 0.35rem) max(var(--gutter), env(safe-area-inset-right)) 0.45rem max(var(--gutter), env(safe-area-inset-left));
  }
  html.js .topbar:has(.tabs.open) { max-height: 100dvh; overflow-y: auto; }
  .topbar .brand { flex-direction: row; align-items: baseline; gap: var(--sp-2); margin: 0; min-height: var(--tap); align-self: center; padding-top: 0.6rem; }
  .topbar .brand .mark { display: none; }
  .topbar .brand .word { font-size: 1.125rem; letter-spacing: 0.16em; padding: 0; }
  .topbar .brand .coll { font-size: 0.5625rem; letter-spacing: 0.26em; padding: 0; margin: 0; }
  .topbar .brand .wm { font-size: 1rem; letter-spacing: 0.18em; padding-left: 0; }
  .menu {
    display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); min-height: var(--tap);
    margin-right: -0.5rem; padding: 0; border: 0; background: transparent; color: #f5f2eb;
  }
  .menu:hover { background: rgba(255, 255, 255, 0.08); color: #f5f2eb; border: 0; }
  .menu .ic { display: block; }
  .menu .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar .tabs { flex: 0 0 100%; padding: var(--sp-2) 0 var(--sp-3); }
  html.js .topbar .tabs { display: none; }
  html.js .topbar .tabs.open { display: flex; animation: reveal 200ms var(--ease); }
  .topbar .tabs ul a { margin-left: 0; padding: 0 var(--sp-3); min-height: var(--tap); display: flex; align-items: center; border-bottom: 1px solid rgba(217, 178, 124, 0.18); }
  .topbar .tabs ul.sub { display: flex; padding: 0 0 0 var(--sp-3); }
  .topbar .tabs ul.sub a { padding: 0 var(--sp-3); }
  .topbar .tabs .end { margin: var(--sp-3) 0 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .topbar .tabs .adv, .topbar .tabs .who { display: inline-flex; align-items: center; min-height: var(--tap); }
  .deskline { padding: var(--sp-2) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); font-size: var(--t-xs); }
  .deskline > div { padding-bottom: var(--sp-2); }

  /* large title, quiet lede */
  main {
    padding: var(--sp-4) max(var(--gutter), env(safe-area-inset-right)) var(--sp-7) max(var(--gutter), env(safe-area-inset-left));
  }
  h1, .pagehead h1, main > h1 { font-size: var(--t-2xl); line-height: 1.08; }
  h2 { margin-top: var(--sp-6); }
  h2 a.small { display: block; margin: var(--sp-1) 0 0; }
  h2 .tag { margin-left: var(--sp-1); }
  .pagehead { margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); }
  .pagehead p { font-size: var(--t-sm); }
  .pagehead p a, .lede a { text-decoration: none; }
  .lede { font-size: var(--t-base); }
  .split.wide-first, .cols2, .cols3 { grid-template-columns: minmax(0, 1fr); }
  .split { gap: var(--sp-2) var(--sp-6); }
  table.kv th { width: auto; min-width: 8.5rem; }
  form.filters label { max-width: none; }

  /* touch: every control at least 44px */
  input, select, textarea { font-size: 16px; min-height: var(--tap); border-radius: var(--r); }
  input[type=checkbox], input[type=radio] { width: 1.35rem; height: 1.35rem; min-height: 0; }
  label.check { min-height: var(--tap); }
  button, a.button, a.btn { min-height: var(--tap); border-radius: var(--r); font-size: var(--t-base); padding: 0 1.2rem; }
  button.link { min-height: var(--tap); font-size: inherit; }
  button.secondary, a.button.secondary { border-color: transparent; background: var(--fill); color: var(--strong); }
  .actions form.inline input { border-color: transparent; background: var(--fill); }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .actions form.inline { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: var(--sp-2); }
  .actions form.inline input { width: 100%; }
  .actions form.inline button, .actions > button, .actions > a.button { grid-column: 1 / -1; width: 100%; align-self: stretch; }
  .crumb a, .listing-link a, .pager a, .views a, .markets a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .crumb { margin: 0 0 var(--sp-1); }
  p.tabs, .tabs:not(#nav) {
    flex-wrap: nowrap; overflow-x: auto; gap: var(--sp-5); scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  }
  p.tabs::-webkit-scrollbar, .tabs:not(#nav)::-webkit-scrollbar { display: none; }
  p.tabs a, .tabs:not(#nav) a { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; white-space: nowrap; }
  .crumb a { font-size: var(--t-base); color: var(--accent); }
  details > summary { min-height: var(--tap); display: flex; align-items: center; }
  .notice, .callout { border-radius: var(--r); }
  .bigbtns > button, .bigbtns > a.btn { flex: 1 1 auto; }

  /* search: one filled field with a glass; submit with the keyboard's Search key */
  .search { margin: 0 0 var(--sp-2); position: relative; }
  .search input[type=search] {
    font-size: 16px; min-height: var(--tap); padding: 0.55rem 0.9rem 0.55rem 2.3rem; border: 0; border-radius: var(--r-sm);
    background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9c97' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.3'/%3E%3Cpath d='m15.4 15.4 4.8 4.8'/%3E%3C/svg%3E") no-repeat 0.75rem 50% / 1.05rem;
    -webkit-appearance: none; appearance: none; box-shadow: none;
  }
  .search input[type=search]:focus { background-color: var(--fill-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper-hi) 28%, transparent); }
  .search button[type=submit] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

  /* filters: a single chip that opens the sheet of fields */
  .explore { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
  aside.filters { position: static; max-height: none; overflow: visible; }
  .filters { border: 0; padding: 0; }
  .filters summary {
    display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-1); padding: 0 var(--sp-4); min-height: 36px;
    border-radius: var(--r-sm); background: var(--fill); color: var(--text); font-size: var(--t-sm); letter-spacing: 0.01em; text-transform: none; font-weight: 500;
  }
  .filters summary::before { content: ""; width: 0.95rem; height: 0.95rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7764b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h16M7 12h10M10 17h4'/%3E%3C/svg%3E") no-repeat center / contain; }
  .filters details[open] { border-top: 1px solid var(--line); padding: var(--sp-2) 0 var(--sp-4); margin-bottom: var(--sp-3); }
  .filters details[open] summary { background: none; padding-left: 0; }
  .filters label { font-size: var(--t-xs); }
  .filters select, .filters input:not([type=checkbox]) { border-color: transparent; background-color: var(--fill); min-height: var(--tap); font-size: 16px; }

  /* market views: scrolling chips, never clipped */
  .markets { gap: var(--sp-2); border-bottom: 0; margin: var(--sp-2) calc(-1 * var(--gutter)) var(--sp-3); padding: 0 var(--gutter); }
  .markets a {
    flex: 0 0 auto; min-height: 36px; padding: 0 var(--sp-4); border: 0; margin: 0; border-radius: var(--r-sm); font-size: var(--t-sm);
    background: var(--fill); color: var(--muted);
  }
  .markets a.on { background: var(--strong); color: var(--bg); border: 0; }
  .markets a span { font-size: var(--t-cap); margin-left: 0.3rem; color: inherit; opacity: 0.7; }

  /* segmented control: equal segments on a filled track; the record count sits under it */
  .views { gap: 0; margin: 0 0 var(--sp-3); }
  .views a {
    flex: 1 1 0; min-height: 34px; border: 2px solid transparent; border-radius: 0; padding: 0 var(--sp-2); font-size: var(--t-sm);
    color: var(--text); background: var(--fill); background-clip: padding-box; box-shadow: 0 0 0 2px var(--fill);
  }
  .views a:first-of-type { border-radius: var(--r-sm) 0 0 10px; }
  .views a:last-of-type { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .views a:only-of-type { border-radius: var(--r-sm); }
  .views a:hover { border-color: transparent; }
  .views a.on { background: var(--seg-on); color: var(--strong); font-weight: 600; border-radius: var(--r-sm); border-color: transparent; box-shadow: 0 0 0 2px var(--fill), 0 1px 3px rgba(0, 0, 0, 0.18); }
  .views .count { flex: 0 0 100%; order: 2; margin: var(--sp-2) 0 0; padding: 0 0.2rem; font-size: var(--t-xs); color: var(--faint); }

  /* gallery: two columns, photographs on a light plate the way a house shows its pieces, text without boxes */
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-3); margin-top: var(--sp-3); }
  a.bag .ph { aspect-ratio: 1 / 1; border-radius: var(--r-sm); font-size: var(--t-base); padding: var(--sp-2); }
  a.bag .meta { padding: var(--sp-2) 0.1rem 0; }
  a.bag .meta b { font-size: var(--t-sm); line-height: 1.25; }
  a.bag .meta .muted { font-size: 0.74rem; }
  a.bag .meta .price { font-size: var(--t-base); margin: var(--sp-1) 0 var(--sp-1); }
  a.bag .tag { border: 0; padding: 0; background: none; font-size: 0.6rem; letter-spacing: 0.12em; }
  a.bag .avail, a.bag .dom, a.bag .src { font-size: 0.72rem; margin-top: 0.15rem; }
  .pager { text-align: center; margin-top: var(--sp-5); }

  /* a bag's own page: the photograph full width on the light plate, the name as a large title, the price under it */
  .detail-ph.ph, .passport .ph { max-width: none; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 1 / 1; border-radius: 0; font-size: var(--t-lg); }
  .detail-ph.ph::after { display: none; }
  .split > div > h1 { font-size: 1.75rem; margin-top: var(--sp-4); }
  p.figs > span > b { font-size: 2rem; }
  table.kv { font-size: var(--t-sm); }
  table.kv th, table.kv td { padding: 0.65rem 0; border-top: 0; border-bottom: 0.5px solid var(--line); }
  table.kv th { color: var(--muted); font-weight: 400; min-width: 8.5rem; padding-right: var(--sp-3); }
  .listing-link a { border: 0; border-radius: var(--r-sm); background: var(--fill); width: 100%; justify-content: center; }
  .fmv { border-top: 0; margin-top: var(--sp-4); }
  .dna-table { display: none; }
  .dna-cards { display: block; }
  details.why { padding: 0 var(--sp-3); }

  /* figure tiles: two columns, tighter */
  .kpis, .figs, .stats, .markets-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .kpi .v, .figs b, .stats b { font-size: 1.3rem; }
  .figs.lead b { font-size: 1.35rem; }
  .kpis.primary, .kpis.secondary { gap: 0 var(--sp-4); }
  .kpis.primary .kpi .v { font-size: 1.35rem; }
  .hero .v { font-size: 1.7rem; }

  /* tables: the ones that carry a page become cards (table.cards-sm, each cell labelled); the rest scroll in their
     box with a soft edge that says there is more */
  .tw { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); width: auto; max-width: none; padding: 0 var(--gutter); }
  .tw:has(> table.cards-sm) { margin-left: 0; margin-right: 0; padding: 0; overflow: visible; }
  table.dense thead th { position: static; }
  table.cards-sm, table.cards-sm tbody, table.cards-sm tr, table.cards-sm td { display: block; }
  table.cards-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards-sm tr { border-top: 1px solid var(--line); padding: var(--sp-2) 0; margin: 0 0 var(--sp-2); }
  table.cards-sm tbody tr:hover { background: none; }
  table.cards-sm tbody tr.on { background: color-mix(in srgb, var(--copper-hi) 12%, var(--panel)); }
  table.dense.cards-sm td, table.dense.cards-sm.nowrap td {
    display: block; padding: 0.3rem 0; border: 0; white-space: normal; text-align: right; min-height: 0; overflow-wrap: anywhere;
  }
  table.dense.cards-sm td::after { content: ""; display: table; clear: both; }
  table.dense.cards-sm td::before { content: attr(data-label); float: left; margin-right: var(--sp-3); color: var(--muted); font-size: var(--t-xs); text-align: left; line-height: 1.9; }
  table.dense.cards-sm td:first-child { font-size: var(--t-base); color: var(--strong); text-align: left; padding-bottom: var(--sp-2); margin-bottom: var(--sp-1); border-bottom: 0.5px solid var(--line-soft); }
  table.dense.cards-sm td:first-child::before { display: none; }
  /* a row can name its own title cell; the first cell then becomes an ordinary labelled line */
  table.cards-sm tr:has(> td.card-title) { display: flex; flex-direction: column; }
  table.dense.cards-sm td.card-title { order: -1; font-size: var(--t-md); text-align: left; padding-bottom: var(--sp-2); margin-bottom: var(--sp-1); border-bottom: 0.5px solid var(--line-soft); }
  table.dense.cards-sm td.card-title::before { display: none; }
  table.dense.cards-sm tr:has(> td.card-title) > td:first-child { font-size: inherit; color: inherit; text-align: right; padding-bottom: 0.3rem; margin: 0; border: 0; }
  table.dense.cards-sm tr:has(> td.card-title) > td:first-child::before { display: block; }
  table.dense.cards-sm td:empty, table.dense.cards-sm td.blank { display: none; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards a.card {
    min-height: var(--tap); flex-direction: row; align-items: center; padding: var(--sp-4) 0.1rem; border: 0; border-radius: 0;
    border-bottom: 1px solid var(--line-soft); background: none; box-shadow: none; transform: none;
  }
  .cards a.card .k, .cards a.card p { display: none; }
  .cards a.card h2 { margin: 0; font-size: var(--t-md); letter-spacing: 0.01em; }
  .cards a.card .go { margin: 0; font-size: var(--t-sm); }

  /* index terminal rows */
  a.it-row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) 0; }
  .it-name { grid-column: 1 / -1; font-size: var(--t-md); }
  .it-level { font-size: 1.4rem; }
  .it-change { text-align: right; }
  .it-conf { grid-column: 1 / -1; }

  /* the tab bar: icons over small labels, iOS proportions, the green of the house */
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
    background: var(--brand); border-top: 1px solid rgba(217, 178, 124, 0.3);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .dock a {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
    min-height: 52px; padding-top: 6px; color: #c6d0c8; text-decoration: none; font-size: 0.6875rem; letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
  }
  .dock a .ic { width: 25px; height: 25px; stroke-width: 1.35; transition: transform 200ms var(--ease); }
  .dock a.on { color: #fff; }
  .dock a.on .ic { stroke-width: 1.7; }
  .dock a:active .ic { transform: scale(0.9); }
  .shell:has(.dock) main { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }

  .login { margin: var(--sp-6) auto; padding: var(--sp-5); border-radius: var(--r-lg); }
}
@media (max-width: 560px) {
  .stats > div, .stats > a { padding: var(--sp-2) 0; }
}
html.native body { -webkit-user-select: none; user-select: none; }
html.native input, html.native textarea, html.native td, html.native p { -webkit-user-select: text; user-select: text; }
html.native.navigating::before { content: ""; position: fixed; top: env(safe-area-inset-top); left: 0; right: 0; height: 3px; z-index: 1000; background: var(--accent, #e4b98a); transform-origin: left; animation: navbar 12s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes navbar { from { transform: scaleX(0.05); } to { transform: scaleX(0.92); } }

/* ------------------------------------------------------------ motion: none for whoever asks for none */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  a.card:hover, a.bag:hover .ph img { transform: none; }
}

/* ------------------------------------------------------------ print: black on white, no chrome */
@media print {
  .topbar, .menu, .dock, .banner, .deskline, form, .report-actions, .report-review, .crumb { display: none !important; }
  .report .tw { overflow: visible !important; max-height: none !important; }
  .report table.dense { font-size: 9pt; }
  .report img.thumb { width: 40px; height: 40px; }
  .shell { display: block; }
  body { background: #fff; color: #000; }
  main { padding: 0; max-width: none; }
  .report, .report * { color: #111 !important; background: #fff !important; border-color: #ccc !important; }
  .report .brandline { color: #8a6d3b !important; }
  .report table { page-break-inside: avoid; }
}

/* Randolph Fair Value (templates/_rfv.html, value.html) */
.rfv { margin: 0 0 var(--sp-5); }
.rfv h3 { margin-top: var(--sp-5); }
.rfv details.why ul { margin: var(--sp-2) 0; padding-left: 1.2rem; }
.confirm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: var(--sp-3); }
.confirm select, .confirm input { width: 100%; min-height: 2.75rem; font-size: 1rem; }
.confirm p { grid-column: 1 / -1; margin: 0; }

/* Valuation Studio (templates/studio.html, studio_item.html): one column, large tap targets, nothing wider than a phone */
.assess { max-width: 40rem; }
form.assess-form { max-width: 40rem; gap: var(--sp-4); }
form.assess-form label { font-size: var(--t-sm); color: var(--text); font-weight: 600; }
form.assess-form label .hint { font-weight: 400; color: var(--muted); font-size: var(--t-xs); }
form.assess-form input, form.assess-form select, form.assess-form textarea { min-height: var(--tap); font-size: 1rem; }
form.assess-form button { align-self: stretch; min-height: 3rem; font-size: 1rem; }
form.assess-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--sp-2); }
form.assess-form legend { font-size: var(--t-sm); font-weight: 600; color: var(--text); padding: 0; margin-bottom: var(--sp-2); }
form.assess-form label.choice { flex-direction: row; align-items: center; gap: var(--sp-3); min-height: var(--tap); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); font-weight: 400; font-size: var(--t-base); cursor: pointer; }
form.assess-form label.choice input { width: 1.25rem; height: 1.25rem; min-height: 0; }
form.assess-form label.choice:has(input:checked) { border-color: var(--bronze); background: var(--fill); }
form.assess-form details { margin: 0; }
form.assess-form details > summary { min-height: var(--tap); display: flex; align-items: center; gap: 0.35em; }
form.assess-form .more-fields { display: flex; flex-direction: column; gap: var(--sp-4); padding-top: var(--sp-2); }
dl.facts { display: grid; grid-template-columns: minmax(6.5rem, max-content) minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); margin: var(--sp-3) 0 var(--sp-4); }
dl.facts > div { display: contents; }
dl.facts dt { color: var(--muted); font-size: var(--t-sm); }
dl.facts dd { margin: 0; color: var(--strong); overflow-wrap: anywhere; }
ul.links { list-style: none; padding: 0; columns: 2 14rem; }
ul.links li { padding: var(--sp-1) 0; break-inside: avoid; }

/* Glass Box: the explanation drawer (templates/_explain.html). A side panel on wide screens, a bottom sheet on phones. */
.why-btn { background: none; border: 1px solid var(--line); color: var(--accent); border-radius: var(--r-sm); padding: 6px 14px; font: inherit; font-size: 0.92rem; cursor: pointer; }
.why-btn:hover, .why-btn:focus-visible { border-color: var(--accent); }
dialog.explain { border: 0; border-left: 1px solid var(--line); padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); background: var(--panel); color: var(--text); box-shadow: var(--shadow); overflow-y: auto; }
dialog.explain::backdrop { background: rgba(7, 17, 15, 0.35); }
dialog.explain > * { padding-left: 24px; padding-right: 24px; }
.x-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 20px; position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.x-head h3 { margin: 0; font-size: 1.05rem; }
.x-figure { display: block; font-size: 1.6rem; color: var(--strong); margin-top: 4px; }
.x-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.x-answer { font-size: 1.02rem; margin-top: 16px; }
.x-facts { padding-left: 18px; margin: 12px 0; }
.x-facts li { margin: 6px 0; }
.x-scenario { border-left: 3px solid var(--bronze); padding-left: 10px; }
.x-proof-btn { background: var(--btn); color: var(--btn-ink); border: 0; border-radius: var(--r-sm); padding: 10px 16px; font: inherit; cursor: pointer; margin: 8px 0 24px; }
.x-back { background: none; border: 0; color: var(--accent); font: inherit; padding: 16px 0 8px; cursor: pointer; }
.x-cards { list-style: none; padding: 0; margin: 8px 0 16px; }
.x-cards li { border: 1px solid var(--line-soft); border-radius: var(--r-sm); margin: 8px 0; background: var(--bg); }
.x-cards summary { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.x-cards summary::-webkit-details-marker { display: none; }
.x-c-price { font-weight: 600; color: var(--strong); grid-row: span 2; align-self: center; min-width: 84px; }
.x-c-main { font-size: 0.92rem; }
.x-c-tags { font-size: 0.8rem; }
.x-c-weight { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.x-c-weight progress { flex: 1; height: 4px; border: 0; border-radius: 2px; background: var(--line-soft); appearance: none; -webkit-appearance: none; }
.x-c-weight progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 2px; }
.x-c-weight progress::-webkit-progress-value { background: var(--bronze); border-radius: 2px; }
.x-c-weight progress::-moz-progress-bar { background: var(--bronze); border-radius: 2px; }
.x-c-detail { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; padding: 0 12px 12px; margin: 0; }
.x-c-detail dt { color: var(--muted); }
.x-c-detail dd { margin: 0; }
dialog.explain h4 { margin: 18px 0 6px; font-size: 0.95rem; }
.tag.warn { color: var(--warn); border-color: currentColor; }
@media (max-width: 640px) {
  dialog.explain { margin: auto 0 0 0; width: 100vw; max-width: 100vw; height: auto; max-height: 88dvh; border-radius: 0; }
  dialog.explain > * { padding-left: 16px; padding-right: 16px; }
}
summary h3.inline { display: inline; font-size: 1rem; }
.glossary > div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.glossary dt { font-weight: 600; color: var(--strong); }
.glossary dd { margin: 4px 0 0; }

/* the date review: one sale per row (commercial_dates.html) */
.review-row { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
.review-row h3 { margin: 0 0 var(--sp-2); }

/* ------------------------------------------------------------ Decision Lab */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.lab-panel > h2:first-child { margin-top: 0; }
.lab-list { list-style: none; margin: 0; padding: 0; }
.lab-list li + li { border-top: 1px solid var(--line-soft); }
.lab-list a { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) 0; text-decoration: none; color: var(--text); }
.lab-list a span { color: var(--muted); font-size: var(--t-sm); }
.lab-list a:hover b { color: var(--accent); }
.lab-head { display: flex; justify-content: space-between; gap: var(--sp-5); align-items: flex-end; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.lab-head h1 { margin: 0 0 var(--sp-1); }
.lab-head p { margin: 0; }
.lab-status { display: flex; gap: var(--sp-5); margin: 0; flex-wrap: wrap; }
.lab-status div { min-width: 7rem; }
.lab-status dt { font-size: var(--t-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.lab-status dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.lab-actions { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.lab-consent { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; padding: var(--sp-3) var(--sp-4); background: var(--panel-2); border-radius: var(--r); }
.lab-consent .choice { flex: 1 1 24rem; }
.rec-controls { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.rec-start { background: var(--bad); color: #fff; }
.rec-start:hover { background: #8f2a22; }
.lab-queue { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.lab-queue li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line-soft); }
.lab-queue li > a { flex: 1; display: grid; grid-template-columns: 2rem 1fr auto; gap: var(--sp-3); align-items: center; text-decoration: none; color: var(--text); min-height: var(--tap); }
.lab-queue .pos { font-variant-numeric: tabular-nums; color: var(--faint); }
.lab-queue .state { font-size: var(--t-sm); color: var(--muted); white-space: nowrap; }
.lab-queue li.open > a { background: var(--fill); border-radius: var(--r-sm); padding: 0 var(--sp-2); }
.lab-queue li.open .state { color: var(--accent); font-weight: 600; }
.lab-queue li.done .state, .lab-queue li.final .state { color: var(--ok); }
.lab-queue li.skipped { opacity: 0.6; }
.lab-case .facts { margin-top: var(--sp-3); }
.lab-assess { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.lab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.lab-cols h2:first-child { margin-top: 0; }
.stances { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.stances .choice { flex: 1 1 8rem; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r); text-align: center; min-height: var(--tap); }
.stances .choice:has(input:checked) { border-color: var(--accent); background: var(--fill); }
.stances kbd { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); margin-left: var(--sp-1); }
.factors { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.factors .choice { font-size: var(--t-sm); }
.lab-reveal { margin-top: var(--sp-6); padding: var(--sp-5); background: var(--panel-2); border-radius: var(--r-lg); }
.lab-reveal h2:first-child { margin-top: 0; }
.lab-stream { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.lab-stream li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--sp-3); padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); position: relative; }
.lab-stream li::before { content: ""; position: absolute; left: -5px; top: 0.95rem; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.lab-stream li.final::before, .lab-stream li.revision::before { background: var(--accent); }
.lab-stream li.information::before { background: var(--s-ask); }
.lab-stream .when { font-variant-numeric: tabular-nums; color: var(--faint); font-size: var(--t-sm); }
.lab-stream .what { display: flex; flex-direction: column; gap: 2px; }
.lab-stream .delta { font-size: var(--t-sm); color: var(--accent); font-variant-numeric: tabular-nums; }
.lab-stream .text { color: var(--muted); }
.tag.warn { color: var(--warn); border-color: currentColor; }
.lab-transcript { list-style: none; margin: 0; padding: 0; }
.lab-transcript li { display: grid; grid-template-columns: 4.5rem 1fr 12rem; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.lab-transcript li.low { background: var(--fill); }
.lab-transcript .t { font-variant-numeric: tabular-nums; color: var(--faint); font-size: var(--t-sm); }
.lab-transcript select { width: 100%; }
@media (max-width: 860px) {
  .lab-grid, .lab-cols { grid-template-columns: 1fr; }
  .lab-status { gap: var(--sp-3); }
  .lab-status div { min-width: 40%; }
  .lab-transcript li { grid-template-columns: 4rem 1fr; }
  .lab-transcript li select { grid-column: 1 / -1; }
  .lab-queue li > a { grid-template-columns: 1.6rem 1fr; }
  .lab-queue .state { grid-column: 2; white-space: normal; }
}

/* ------------------------------------------------------------ Home and My Randolph */
.home-search { margin: var(--sp-5) 0 var(--sp-4); }
.home-search .search input { font-size: var(--t-md); }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; margin-top: var(--sp-5); }
.home-grid > div { min-width: 0; }
.home-grid h2 { margin-top: 0; }
.home-grid h3 { margin-top: var(--sp-5); }
.markets-home { margin-top: var(--sp-6); }
.figs a.tile-link { color: inherit; text-decoration: none; }
.figs a.tile-link:hover b { color: var(--accent); }
.bag-actions { margin-top: var(--sp-3); gap: var(--sp-2); flex-wrap: wrap; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } .home-grid table.nowrap, .home-grid .tw { white-space: normal; max-width: 100%; } }
.research-center { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--sp-5); }
.research-center b { font-size: var(--t-base); }
@media (max-width: 860px) { .research-center { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ Private advisory: shared page pieces */
.kicker { color: var(--accent); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 var(--sp-1); }
h1.display { font-size: clamp(2.5rem, 4.2vw, 3.75rem); font-weight: 600; letter-spacing: -0.026em; margin: 0 0 var(--sp-3); }
.standfirst { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; margin: 0 0 var(--sp-4); color: var(--text); }
.figure { font-family: var(--serif); font-weight: 500; color: var(--strong); letter-spacing: -0.015em; font-variant-numeric: lining-nums; line-height: 1.05; }
.note { font-size: var(--t-sm); color: var(--muted); font-style: italic; line-height: 1.45; }
.deskhead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.deskhead > div:first-child { min-width: 0; }
.rule-top { border-top: 1px solid var(--line); }
main p.note, main .standfirst { max-width: none; }
a.quiet, button.quiet { color: var(--strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--bronze); }
.linkrow { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; }
.linkrow button.link { color: var(--strong); text-decoration-color: var(--bronze); }
.home-search .search input, .ask-box .search input { background: transparent; border-color: var(--strong); min-height: 3rem; }
.home-search { margin: 0 0 var(--sp-5); }
.search button { border-radius: var(--r-sm); }

/* ------------------------------------------------------------ asking price beside RFV (templates/_price.html) */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 var(--sp-5); margin: var(--sp-3) 0; }
.pair > div { min-width: 0; }
.pair > div + div { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
.pair-label { display: block; font-size: 1.125rem; color: var(--text); margin-bottom: var(--sp-1); }
.pair .figure { display: block; font-size: clamp(2.25rem, 3.5vw, 3.25rem); font-weight: 600; }
.pair .figure .fx { display: block; font-family: var(--sans); font-size: var(--t-sm); letter-spacing: 0; margin: var(--sp-1) 0 0; color: var(--muted); }
.pair-state { display: block; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.15; color: var(--strong); }
.slot-range { display: block; font-size: var(--t-sm); font-style: italic; margin-top: var(--sp-1); color: var(--text); }
.slot-line { display: block; font-size: var(--t-sm); color: var(--muted); margin-top: var(--sp-1); line-height: 1.4; }
.slot-line.warn { color: var(--warn); }
.slot-line.bad { color: var(--bad); }
.slot-acts { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); margin-top: var(--sp-2); font-size: var(--t-sm); }
.slot-acts a, .slot-acts button.link { color: var(--strong); text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 3px; min-height: 1.75rem; display: inline-flex; align-items: center; font-size: inherit; }
.rfv-cell { display: block; white-space: normal; min-width: 8.5rem; text-align: left; }
.rfv-cell b { font-weight: 600; color: var(--strong); }
.rfv-cell .sub { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.35; }
.rfv-cell em { color: var(--strong); }
.rfv-cell .slot-acts { margin-top: 0; font-size: var(--t-xs); }
td.n .rfv-cell { text-align: right; }
td.n .rfv-cell .slot-acts { justify-content: flex-end; }
.rfv-cell.tight { min-width: 11rem; }
.rfv-cell.tight .sub.bad { color: var(--bad); }
.rfv-cell.tight .slot-acts { margin-top: 0.1rem; font-size: var(--t-xs); gap: 0 var(--sp-3); }
.rfv-cell.tight .slot-acts a, .rfv-cell.tight .slot-acts button.link { min-height: 1.25rem; }
.bag-card { min-width: 0; }
dl.card-prices { margin: var(--sp-2) 0 0; display: grid; gap: 0.2rem; }
dl.card-prices > div { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); align-items: baseline; gap: var(--sp-2); }
dl.card-prices > div.rfv { border-top: 1px solid var(--line); padding-top: 0.3rem; }
dl.card-prices dt { font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
dl.card-prices dd { margin: 0; min-width: 0; }
dl.card-prices .v { display: block; font-family: var(--serif); font-size: var(--t-md); font-weight: 500; color: var(--strong); font-variant-numeric: lining-nums; line-height: 1.25; }
dl.card-prices .rfv .v { font-weight: 600; }
dl.card-prices .v .fx { display: block; font-family: var(--sans); font-size: var(--t-xs); font-weight: 400; margin: 0; }
dl.card-prices .sub { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.35; }
dl.card-prices .sub.bad { color: var(--bad); }
dl.card-prices .word, em.rfv-word { display: block; font-size: var(--t-sm); font-style: italic; color: var(--muted); line-height: 1.3; }
@media (max-width: 560px) { dl.card-prices > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.card-why { display: inline-block; font-size: var(--t-xs); color: var(--strong); text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 3px; margin-top: var(--sp-1); }
/* Phones: a thumb-sized tap area for the card link without moving the card, and long button labels wrap
   instead of running off the screen (Take back on Venue verification was 510px wide at 375). */
@media (max-width: 560px) {
  .card-why { padding-block: 0.75rem; margin-block: calc(var(--sp-1) - 0.75rem) -0.75rem; }
  button, a.button, a.btn { white-space: normal; text-align: center; max-width: 100%; padding-block: 0.5rem; }
}

/* ------------------------------------------------------------ Home */
.feature { display: grid; align-items: start; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--sp-5); margin-bottom: var(--sp-5); }
.feature .ph { border-radius: 0; font-size: var(--t-lg); aspect-ratio: 1.66 / 1; }
.feature .ph img { inset: 4%; width: 92%; height: 92%; }
.feature h2 { border: 0; padding: 0; margin: var(--sp-1) 0 var(--sp-1); font-size: clamp(2.25rem, 3.2vw, 3rem); font-weight: 600; }
.feature .sub { font-style: italic; margin: 0 0 var(--sp-3); font-size: 1.25rem; margin-bottom: var(--sp-2); }
.feature-line { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--t-sm); padding: var(--sp-1) 0; margin-bottom: var(--sp-1); }
.feature-line b { font-size: var(--t-base); }
.feature-acts { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin: var(--sp-2) 0; }
.review-head { display: grid; grid-template-columns: minmax(0, 1fr) 9rem minmax(0, 1.1fr); gap: var(--sp-4); align-items: end; border-bottom: 1px solid var(--line); padding-bottom: var(--sp-2); margin-top: var(--sp-5); }
.review-head h2 { border: 0; padding: 0; margin: 0; font-size: clamp(1.875rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1.05; }
.review-head span { font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
ul.review { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
ul.review > li { display: grid; grid-template-columns: minmax(0, 1fr) 9rem minmax(0, 1.1fr); gap: var(--sp-4); align-items: center; border-bottom: 1px solid var(--line); max-width: none; padding: var(--sp-2) 0; }
.review-bag { display: flex; gap: var(--sp-4); align-items: center; min-width: 0; text-decoration: none; color: var(--strong); }
.review-bag .ph { flex: none; width: 4.5rem; aspect-ratio: 1 / 1; padding: var(--sp-1); font-size: 0.625rem; border-radius: 0; letter-spacing: 0.02em; }
.review-bag b { display: block; font-family: var(--serif); font-weight: 500; line-height: 1.2; font-size: 1.5rem; }
.review-bag small { display: block; font-size: var(--t-sm); color: var(--muted); }
.review-ask { font-family: var(--serif); color: var(--strong); font-variant-numeric: lining-nums; font-size: 1.5rem; font-weight: 600; }
.review-ask .fx { display: block; font-family: var(--sans); font-size: var(--t-xs); margin: 0; }
.coverage-strip { display: grid; gap: var(--sp-5); align-items: center; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; }
.coverage-strip .kicker { margin: 0; letter-spacing: 0.18em; }
.coverage-strip .figure { display: block; font-size: 2.5rem; font-weight: 600; }
.coverage-strip small { font-size: var(--t-base); }
.coverage-strip a.quiet { white-space: nowrap; font-size: 1.25rem; align-self: stretch; display: flex; align-items: center; }
.coverage-strip a.fig-link { text-decoration: none; color: inherit; }
.coverage-strip a.fig-link:hover .figure { color: var(--accent); }

/* ------------------------------------------------------------ Intelligence */
.intel-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-6); }
.intel-top > section + section { border-left: 1px solid var(--line); padding-left: var(--sp-6); }
.intel-top h2 { margin-top: 0; font-size: clamp(1.875rem, 2.6vw, 2.5rem); font-weight: 600; }
.twofig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); padding: var(--sp-3) 0 var(--sp-4); }
.twofig > div + div { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
.twofig .figure { display: block; font-size: clamp(2.75rem, 4.4vw, 4rem); font-weight: 600; }
table.ruled { width: 100%; }
table.ruled th, table.ruled td { padding: 0.6rem var(--sp-2); border-top: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
table.ruled tr:last-child th, table.ruled tr:last-child td { border-bottom: 1px solid var(--line); }
table.ruled th { font-weight: 600; color: var(--strong); font-size: 1.125rem; }
table.ruled td.n { text-align: right; font-family: var(--serif); color: var(--strong); font-size: 1.5rem; font-weight: 600; }
table.ruled td.note { border-left: 1px solid var(--line); }
.library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin-bottom: var(--sp-5); }
.library > div + div { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
.library h3 { margin-top: 0; }
.library a { display: block; padding: var(--sp-2) 1.5rem var(--sp-2) 0; text-decoration: none; color: var(--strong); border-bottom: 1px solid var(--line-soft); position: relative; }
.library a:last-child { border-bottom: 0; }
.library a::after { content: "\2192"; position: absolute; right: 0; top: var(--sp-2); color: var(--muted); }
.library a b { display: block; font-weight: 600; font-size: 1.25rem; }
.library a span { display: block; font-size: var(--t-sm); color: var(--muted); }
.library a:hover b { color: var(--accent); }
details.fold { border-top: 1px solid var(--line); margin: 0; }
details.fold:last-of-type { border-bottom: 1px solid var(--line); }
details.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: 3.25rem; padding: var(--sp-2) 0; font-weight: 600; color: var(--strong); }
details.fold > summary::before { display: none !important; }
details.fold > summary::after { content: ""; flex: none; width: 0.55em; height: 0.55em; margin-right: var(--sp-1); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--ease); }
details.fold[open] > summary::after { transform: rotate(-135deg); }
details.fold > summary h2 { margin: 0; padding: 0; border: 0; font-size: 1.25rem; }
details.fold > summary .count { margin-left: auto; font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
details.fold > .fold-body { padding-bottom: var(--sp-5); }

/* ------------------------------------------------------------ Decision Lab: the hub */
.lab-top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: var(--sp-5); margin-bottom: var(--sp-6); }
.challenge { background: var(--panel-2); padding: var(--sp-5); min-width: 0; }
.challenge h2 { border: 0; padding: 0; margin: var(--sp-1) 0 var(--sp-1); overflow-wrap: anywhere; font-size: clamp(2.25rem, 3.4vw, 3.25rem); font-weight: 600; }
.challenge .who { margin: 0 0 var(--sp-3); font-size: 1.125rem; }
.progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; margin: var(--sp-3) 0 var(--sp-4); font-size: 1.125rem; }
progress.journey { display: block; width: 100%; height: 0.625rem; border: 0; background: var(--line); appearance: none; -webkit-appearance: none; border-radius: 0; overflow: hidden; }
progress.journey::-webkit-progress-bar { background: var(--line); }
progress.journey::-webkit-progress-value { background: var(--btn); }
progress.journey::-moz-progress-bar { background: var(--btn); }
ol.stepline { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin: 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
ol.stepline li { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--serif); color: var(--strong); max-width: none; font-size: 1.3125rem; }
.stepno { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.875rem; height: 1.875rem; border: 1px solid var(--accent); border-radius: 50%; font-family: var(--sans); font-size: var(--t-sm); color: var(--strong); }
.stepno svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.challenge-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-4); }
a.button.big, button.big { min-height: 3rem; padding: 0 var(--sp-6); font-size: var(--t-md); font-weight: 500; }
.next-goal { border-left: 1px solid var(--line); padding-left: var(--sp-5); min-width: 0; }
.next-goal h2 { margin: 0 0 var(--sp-2); font-size: 1.5rem; }
.next-goal h3 { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.next-goal .goal { font-family: var(--serif); font-weight: 500; color: var(--strong); margin: 0 0 var(--sp-1); line-height: 1.2; font-size: 1.75rem; }
.lab-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.lab-two > * + * { border-left: 1px solid var(--line); padding-left: var(--sp-5); min-width: 0; }
.lab-two h2 { margin-top: 0; font-size: 1.625rem; }
ol.path { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
ol.path > li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); min-height: 3.5rem; max-width: none; }
.path-bag { font-family: var(--serif); font-weight: 500; color: var(--strong); min-width: 0; line-height: 1.2; font-size: 1.625rem; }
.path-bag small { display: block; font-family: var(--sans); font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
.path-state { display: flex; gap: var(--sp-2); align-items: center; min-width: 0; border-left: 1px solid var(--line); padding-left: var(--sp-3); font-size: 1.0625rem; }
.mark-i { flex: none; display: inline-flex; width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center; color: var(--accent); }
.mark-i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.path-state.complete .mark-i, .milestone.earned .mark-i { color: var(--ok); }
.path-state.skipped { color: var(--muted); }
.path-go { white-space: nowrap; }
.path-go a { color: var(--strong); text-decoration-color: var(--bronze); display: inline-flex; align-items: center; min-height: var(--tap); font-size: 1.125rem; }
ul.milestones { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-3); padding: 0 0 var(--sp-3); border-bottom: 1px solid var(--line); }
.milestone { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--t-base); line-height: 1.3; min-width: 0; max-width: none; color: var(--strong); }
.milestone small { display: block; font-size: var(--t-sm); font-style: italic; color: var(--muted); }
.lockline { border-left: 2px solid var(--bronze); padding-left: var(--sp-3); font-style: italic; font-size: var(--t-sm); margin: var(--sp-3) 0; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.metrics .figure { display: block; font-size: 2.5rem; font-weight: 600; }
.metrics span { line-height: 1.3; display: block; color: var(--text); font-size: 1rem; }
.go-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.go-list li { border-top: 1px solid var(--line); max-width: none; }
.go-list li:last-child { border-bottom: 1px solid var(--line); }
.go-list a { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); text-decoration: none; color: var(--strong); font-size: 1.125rem; }
.go-list a::after { content: "\2192"; color: var(--muted); }
.go-list a:hover { color: var(--accent); }
.others { margin-top: var(--sp-5); }
.new-session { margin-top: var(--sp-6); }

/* ------------------------------------------------------------ Decision Lab: a round */
nav.steps-nav { margin: 0 0 var(--sp-5); border-bottom: 1px solid var(--line); }
nav.steps-nav ol { list-style: none; display: flex; gap: 0 var(--sp-3); margin: 0; padding: 0; justify-content: flex-start; flex-wrap: nowrap; }
nav.steps-nav li { max-width: none; display: flex; align-items: center; flex: 0 0 auto; }
nav.steps-nav a, nav.steps-nav .locked { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 3.25rem; padding: 0 var(--sp-2); text-decoration: none; font-family: var(--serif); color: var(--strong); border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: 1.375rem; }
nav.steps-nav .locked { color: var(--muted); }
nav.steps-nav .locked small { font-family: var(--sans); font-size: var(--t-xs); font-style: italic; }
nav.steps-nav a:hover { color: var(--accent); }
nav.steps-nav a[aria-current] { font-weight: 600; border-bottom-color: var(--bronze); }
nav.steps-nav a[aria-current] .stepno { background: var(--bronze); border-color: var(--bronze); color: #111c16; }
nav.steps-nav .done .stepno { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.round { display: grid; gap: var(--sp-6); align-items: start; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.45fr); }
.round-bag .ph { border-radius: 0; font-size: var(--t-lg); max-width: none; aspect-ratio: 1 / 0.96; }
.round-bag h2 { border: 0; padding: 0; margin: var(--sp-3) 0 var(--sp-1); overflow-wrap: anywhere; font-size: clamp(2.25rem, 3.2vw, 3rem); font-weight: 600; margin-bottom: 0; }
.round-bag .facts { margin-top: var(--sp-2); }
.round-main { min-width: 0; }
.round-main > h2:first-child { margin-top: 0; font-size: clamp(1.875rem, 2.6vw, 2.5rem); font-weight: 600; }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.compare > div { min-width: 0; }
.compare > div + div { border-left: 1px solid var(--line); padding-left: var(--sp-4); }
.compare .figure { display: block; overflow-wrap: anywhere; font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 600; }
.compare .figure .fx { display: block; font-family: var(--sans); font-size: var(--t-xs); letter-spacing: 0; color: var(--muted); }
.compare .pair-label { font-size: 1.0625rem; }
.lockslot { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); background: var(--panel-2); margin: 0 0 var(--sp-4); }
.lockslot .mark-i { margin-top: 0.15rem; }
.lockslot b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--strong); }
.lockslot span { font-size: var(--t-sm); color: var(--muted); }
.help-model { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: var(--sp-4) 0; border-top: 1px solid var(--line); margin-top: var(--sp-5); }
.help-model h2 { margin: 0; padding: 0; border: 0; font-size: 1.5rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-3); }
.form-actions .button, .form-actions button { min-height: 3rem; font-size: 1rem; }
.reflect-note { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
h2 + .reflect-note { border-top: 0; padding-top: 0; }
.reflect-note p { margin: 0 0 var(--sp-1); }
.lab-stream li.reflection::before { background: var(--accent); }
.round-main dl.facts { border-top: 0; margin-top: 0; }
.pagehead p.kicker { color: var(--accent); margin: 0 0 var(--sp-1); }
table.dense .slot-acts a { text-decoration: underline; }
td .rfv-cell.short { min-width: 13rem; }
.debrief-note { border-left: 2px solid var(--bronze); padding-left: var(--sp-3); margin: var(--sp-3) 0; }
.lab-assess { border-top: 0; margin-top: 0; padding-top: 0; }
.lab-reveal { background: none; padding: 0; }
.lab-queue li.open > a { background: none; padding: 0; }
.rec-start { background: var(--bad); border-color: var(--bad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.reflect-form { max-width: none; margin-top: var(--sp-5); }
form.reflect-form { max-width: none; margin-top: var(--sp-3); gap: var(--sp-3); }
form.reflect-form h2 { margin: 0; border: 0; padding: 0; font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 600; }
form.reflect-form button { align-self: center; }
html:not(.js) .menu { display: none; }
.lab-two.solo { display: block; }
.lab-two.solo > * { border: 0; padding: 0; }
.lab-two.solo .metrics { grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); }
.tw[tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-go { position: absolute; right: 0; top: 0; bottom: 0; min-height: 0; width: 3rem; padding: 0; background: none; border: 0; color: var(--strong); align-self: stretch; }
.search-go:hover { background: none; color: var(--accent); border: 0; }
.home-search .search { position: relative; gap: 0; }
.home-search .search input[type=search] { padding-right: 3.25rem; }
.feature .pair { margin: var(--sp-2) 0; }
.feature-acts .slot-acts { margin: 0; font-size: 1.0625rem; gap: 0 var(--sp-5); }
.feature-acts .button { min-height: 2.75rem; padding: 0 var(--sp-6); font-size: 1.125rem; font-weight: 500; }
.feature .note { margin: var(--sp-1) 0; }
.review-head, ul.review > li { grid-template-columns: minmax(0, 1.6fr) 8.5rem minmax(0, 1.5fr) minmax(0, 1fr); }
.review-cell + .review-cell, .review-ask, .review-go { border-left: 1px solid var(--line); padding-left: var(--sp-4); min-height: 2.75rem; display: flex; flex-direction: column; justify-content: center; }
.review-go .slot-acts { margin: 0; flex-direction: column; align-items: flex-start; font-size: 1.0625rem; }
.review .rfv-cell { min-width: 0; }
.review .rfv-cell em { font-family: var(--serif); font-size: 1.375rem; line-height: 1.15; }
.review .rfv-cell b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; font-variant-numeric: lining-nums; }
.coverage-strip > a { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
.twofig > div { font-size: 1.25rem; }
.library-h { font-size: clamp(1.875rem, 2.6vw, 2.5rem); font-weight: 600; }
ol.stepline li:not(:last-child)::after { content: "\2192"; margin-left: var(--sp-4); color: var(--muted); font-family: var(--sans); }
.next-goal h2, .lab-two h2 { font-size: clamp(1.625rem, 2.2vw, 2.125rem); font-weight: 600; }
.next-goal .small { font-size: 1.125rem; }
.milestone.earned .mark-i { background: var(--accent); color: var(--bg); border-radius: 50%; padding: 0.15rem; }
.crumb.kicker { margin: 0 0 var(--sp-1); font-size: 0.875rem; }
.crumb.kicker a { color: inherit; text-decoration: none; }
.crumb.kicker a:hover { text-decoration: underline; }
nav.steps-nav li:not(:last-child) { flex: 1 1 auto; }
nav.steps-nav li:not(:last-child)::after { content: ""; flex: 1; height: 1px; min-width: 1rem; background: var(--line); margin: 0 var(--sp-3); }
.bag-sub { font-style: italic; font-size: 1.25rem; margin: 0 0 var(--sp-2); }
.bag-source { border-top: 1px solid var(--line); padding-top: var(--sp-2); margin: 0 0 var(--sp-1); font-size: 1.125rem; }
.reveal-line { margin: var(--sp-2) 0; }
.form-actions button.big, .form-actions .button.big { flex: 1 1 16rem; align-self: stretch; }
.form-actions .button.secondary { padding: 0 var(--sp-6); font-size: 1.125rem; font-weight: 500; }
.form-actions button.link { min-height: 0; font-size: var(--t-sm); }
details.help-model { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--sp-5) 0; padding: var(--sp-3) 0; }
details.help-model > summary { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); font-weight: 400; }
details.help-model > summary::before { display: none !important; }
details.help-model > summary h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.625rem, 2.2vw, 2.125rem); font-weight: 600; }
details.help-model > summary .button { align-self: center; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--sp-6); border: 1px solid var(--strong); color: var(--strong); font-size: 1.125rem; font-weight: 500; }
details.help-model form { margin-top: var(--sp-3); }
details.slot-line { margin: var(--sp-1) 0 0; }
details.slot-line > summary { font-weight: 400; padding: 0; color: var(--strong); min-height: 0; }

@media (min-width: 1280px) {
  ul.milestones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  :root { --rail: 13rem; --gutter: 1.75rem; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .round { gap: var(--sp-5); }
  .lab-top, .intel-top, .lab-two { grid-template-columns: minmax(0, 1fr); }
  .intel-top > section + section, .next-goal, .lab-two > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--sp-4); }
  .review-head, ul.review > li { grid-template-columns: minmax(0, 1.5fr) 7rem minmax(0, 1.5fr); }
  .review-go { grid-column: 3; border-left: 0; min-height: 0; }
  .review-head .sr { display: none; }
  nav.steps-nav a, nav.steps-nav .locked { font-size: 1.125rem; }
  nav.steps-nav .locked small { display: none; }
  .round { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); }
}

@media (max-width: 860px) {
  h1.display { font-size: 2.5rem; }
  .pair { gap: 0 var(--sp-3); }
  .pair > div + div { padding-left: var(--sp-3); }
  .pair .figure { font-size: 1.875rem; }
  .pair-state { font-size: 1.1875rem; }
  .feature, .round, .library, .compare { grid-template-columns: minmax(0, 1fr); }
  .feature .ph { aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gutter)); }
  .feature-acts .button { width: 100%; }
  .library > div + div { border-left: 0; padding-left: 0; }
  .compare > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-top: var(--sp-3); }
  .review-head { display: block; }
  .review-head span { display: none; }
  ul.review > li { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-3); }
  ul.review > li > .review-bag { grid-column: 1 / -1; }
  .review-cell::before { content: attr(data-label); display: block; font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
  .coverage-strip { gap: var(--sp-3) var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-strip .kicker, .coverage-strip > a.quiet { grid-column: 1 / -1; }
  .coverage-strip .figure { font-size: 1.75rem; }
  .coverage-strip small { font-size: var(--t-sm); }
  .twofig .figure { font-size: 2.25rem; }
  .twofig > div + div { padding-left: var(--sp-3); }
  .twofig { gap: var(--sp-3); }
  table.ruled td.note { border-left: 0; display: block; padding-top: 0; border-top: 0; }
  ol.stepline { justify-content: flex-start; }
  ol.path > li { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) 0; }
  .path-bag { grid-column: 1 / -1; font-size: 1.25rem; }
  .path-state { border-left: 0; padding-left: 0; }
  nav.steps-nav a, nav.steps-nav .locked { padding: 0; gap: var(--sp-1); font-size: 1rem; }
  nav.steps-nav .locked small { display: none; }
  .stepno { width: 1.5rem; height: 1.5rem; font-size: var(--t-xs); }
  .help-model { grid-template-columns: minmax(0, 1fr); }
  .challenge { padding: var(--sp-4); margin: 0 calc(-1 * var(--gutter)); }
  .challenge-acts .button { width: 100%; }
  /* without script the whole menu stays open, so it scrolls away with the page instead of covering it */
  html:not(.js) .topbar { position: static; }
  .home-search .search input[type=search], .ask-box .search input[type=search] { border: 1px solid var(--strong); background: transparent; padding: 0.55rem 0.9rem; }
  .home-search .search input[type=search]:focus, .ask-box .search input[type=search]:focus { background: transparent; }
  .slot-acts { gap: 0 var(--sp-4); }
  .slot-acts a, .slot-acts button.link { min-height: var(--tap); }
  nav.steps-nav ol { gap: 0 var(--sp-1); flex-wrap: wrap; justify-content: space-between; }
  .topbar .tabs ul a { font-size: var(--t-base); }
  .topbar .brand .word { letter-spacing: 0.16em; }
  .deskline { font-size: var(--t-xs); }
  .kicker { font-size: var(--t-cap); }
  .search-go { display: none; }
  .home-search .search input[type=search] { padding-right: 0.9rem; }
  .review-head h2 { font-size: var(--t-lg); }
  ul.review > li, .review-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-cell + .review-cell, .review-ask, .review-go { border-left: 0; padding-left: 0; min-height: 0; }
  .review-go { grid-column: 1 / -1; }
  .review-go .slot-acts { flex-direction: row; font-size: var(--t-sm); }
  .review-bag b, .review-ask, .review .rfv-cell b { font-size: 1.25rem; }
  .review .rfv-cell em { font-size: 1.125rem; }
  .coverage-strip > a { border-left: 0; padding-left: 0; }
  .coverage-strip a.quiet { font-size: var(--t-base); }
  .feature-acts .slot-acts { font-size: var(--t-sm); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .round { grid-template-columns: minmax(0, 1fr); }
  .twofig > div { font-size: var(--t-base); }
  .intel-top h2, .lab-two h2, .next-goal h2 { font-size: var(--t-lg); }
  .challenge h2, .feature h2, .round-bag h2 { font-size: 1.875rem; }
  ol.stepline li { font-size: 1.0625rem; }
  ol.stepline li:not(:last-child)::after { display: none; }
  nav.steps-nav li:not(:last-child) { flex: 0 0 auto; }
  nav.steps-nav li:not(:last-child)::after { display: none; }
  .compare .figure { font-size: 1.875rem; }
  .form-actions button.big { flex-basis: 100%; }
  .form-actions .button.secondary { flex: 1 1 100%; }
  details.help-model > summary .button { width: 100%; }
  .form-actions .button { white-space: normal; text-align: center; max-width: 100%; }
}

@media (max-width: 360px) {
  .dock a { font-size: 0.625rem; white-space: nowrap; letter-spacing: 0; }
  table.kv td .nw { white-space: normal; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: var(--sp-2); padding-top: var(--sp-2); }
  nav.steps-nav ol { gap: 0 var(--sp-2); }
  nav.steps-nav a, nav.steps-nav .locked { font-size: 0.875rem; }
}

/* ------------------------------------------------------------ Price Check: the game */
.play-hero { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); flex-wrap: wrap; background: var(--brand); color: #f5f2eb; padding: var(--sp-5); margin: 0 0 var(--sp-6); }
.play-hero h2 { color: #fff; border: 0; padding: 0; margin: var(--sp-1) 0 var(--sp-1); font-size: clamp(1.875rem, 3vw, 2.75rem); font-weight: 600; }
.play-hero p { margin: 0; color: #e4e8e1; max-width: 60ch; }
.play-hero .kicker { color: var(--copper-hi); }
.play-hero-go { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.play-hero .button { background: var(--copper-hi); border-color: var(--copper-hi); color: #111c16; }
.play-hero .button:hover { background: #e6c594; border-color: #e6c594; color: #111c16; }
.play-hero .small, .play-hero .small.muted { color: #c6d0c8; }
.play-hero a.quiet { color: #fff; }
.play-board { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3) var(--sp-5); flex-wrap: wrap; padding-bottom: var(--sp-3); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
ol.play-pips { list-style: none; display: flex; gap: 0.3rem; margin: 0; padding: 0; }
ol.play-pips li { width: 1.75rem; height: 0.5rem; background: var(--line); max-width: none; }
ol.play-pips li.called { background: var(--btn); }
ol.play-pips li.reasoned { background: var(--bronze); }
dl.play-score { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); margin: 0; }
dl.play-score dt { font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
dl.play-score dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--strong); font-variant-numeric: lining-nums; }
.play-table { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.play-ph.ph { aspect-ratio: 1 / 1; border-radius: 0; font-size: var(--t-lg); max-height: calc(100vh - 9rem); width: 100%; }
.play-ph img { inset: 4%; width: 92%; height: 92%; }
.play-side { min-width: 0; }
h1.play-name { font-size: clamp(2.5rem, 4.2vw, 3.75rem); font-weight: 600; letter-spacing: -0.026em; margin: 0; }
.play-traits { font-style: italic; font-size: 1.375rem; margin: var(--sp-1) 0 0; color: var(--text); }
.play-facts { color: var(--muted); margin: var(--sp-1) 0 var(--sp-4); }
main p.play-asking { margin: 0; font-size: 1.25rem; }
.play-price.figure { font-size: clamp(3.25rem, 6vw, 5rem); font-weight: 600; margin: 0 0 var(--sp-5); }
.play-price .fx { display: block; font-family: var(--sans); font-size: var(--t-sm); letter-spacing: 0; color: var(--muted); margin: var(--sp-1) 0 0; font-weight: 400; }
.play-q { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 var(--sp-2); color: var(--strong); }
.play-calls > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
form.play-calls { max-width: none; }
button.play-call { align-self: stretch; min-height: 5rem; flex-direction: column; gap: 0.15rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0; white-space: normal; background: transparent; color: var(--strong); border: 1px solid var(--strong); }
button.play-call kbd { font-family: var(--sans); font-size: var(--t-xs); font-weight: 400; color: var(--muted); }
button.play-call:hover, button.play-call:focus-visible { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
button.play-call:hover kbd, button.play-call:focus-visible kbd { color: inherit; }
.play-skip { margin: var(--sp-3) 0 0; font-size: var(--t-sm); }
.play-skip a { color: var(--muted); }
h1.play-verdict { font-size: clamp(2.25rem, 3.8vw, 3.25rem); font-weight: 600; letter-spacing: -0.022em; margin: var(--sp-1) 0 var(--sp-3); animation: play-in 260ms var(--ease); }
@keyframes play-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.play-versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--sp-2) 0 var(--sp-3); border-top: 1px solid var(--line); }
.play-versus > div + div { border-left: 1px solid var(--line); padding-left: var(--sp-4); }
.play-versus .figure { display: block; font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 600; }
.play-gauge { margin: var(--sp-2) 0 var(--sp-3); }
.play-gauge svg { display: block; width: 100%; height: 2.25rem; }
.play-gauge .track { fill: var(--line); }
.play-gauge .range { fill: var(--bronze); opacity: 0.45; }
.play-gauge .value { fill: var(--strong); }
.play-gauge .ask { fill: var(--btn); }
.play-gauge figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-2); font-size: var(--t-sm); color: var(--muted); }
.play-gauge figcaption b { color: var(--strong); font-size: var(--t-base); }
form.play-next { max-width: none; display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.play-why input { min-height: 3rem; }
.play-factors { margin: 0; }
.play-factors summary { font-weight: 500; font-size: var(--t-sm); color: var(--muted); }
.play-factors .choices { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); padding-top: var(--sp-2); }
button.play-go { align-self: stretch; }
.play-recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); margin-bottom: var(--sp-4); }
.play-recap h2 { margin-top: 0; }
.play-lean { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
@media (max-width: 860px) {
  .play-hero { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: var(--sp-4) var(--gutter); }
  .play-hero-go, .play-hero-go .button { width: 100%; }
  .play-table, .play-recap { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  /* a phone keeps the price and the three buttons on the first screen, above the tab bar */
  .play-board { gap: var(--sp-1); padding-bottom: var(--sp-2); margin-bottom: 0; border-bottom: 0; }
  .play-ph.ph { aspect-ratio: auto; height: 30vh; max-height: none; margin: 0 calc(-1 * var(--gutter)); width: auto; }
  .play-side > .kicker { display: none; }
  .play-result > .kicker { display: block; }
  h1.play-name { font-size: 1.875rem; }
  .play-traits { font-size: 1.0625rem; margin-top: 0; }
  .play-facts { margin: 0 0 var(--sp-1); font-size: var(--t-sm); }
  main p.play-asking { font-size: var(--t-sm); }
  .play-price.figure { font-size: 2.5rem; margin-bottom: var(--sp-2); }
  .play-q { display: none; }
  .play-calls > div { gap: var(--sp-1); }
  button.play-call { min-height: 3.75rem; font-size: 1.0625rem; padding: 0 0.25rem; }
  button.play-call kbd { display: none; }
  dl.play-score { width: 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--sp-2); }
  dl.play-score dt { font-size: 0.625rem; letter-spacing: 0.06em; }
  dl.play-score dd { font-size: 1rem; }
  h1.play-verdict { font-size: 1.875rem; }
  ol.play-pips { width: 100%; }
  ol.play-pips li { flex: 1; width: auto; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .play-ph.ph { height: 22vh; }
  .play-traits, .play-facts { display: inline; }
  .play-facts::before { content: " / "; }
}
.play-factors summary { gap: 0.35em; }
@media (max-width: 860px) {
  /* the reveal leads with the verdict: the photo was on the last screen */
  [data-play-reveal] .play-ph { display: none; }
  [data-play-reveal] .play-board { margin-bottom: var(--sp-2); }
}
.bag-gallery { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.bag-gallery img { display: block; width: 100%; height: auto; }

.feed-why { display: block; max-width: 28ch; font-weight: 400; margin-top: 0.15rem; }

/* Home, editorial (home_issue.html; issue- names, since .tile is the heat map's). Ryan's reference, 2026-11-10: "Anna Wintour meets Jony Ive". One bag on the cover,
   photographs on plates, a large serif only on the cover, figures in the system face at reading size, hairlines, a quiet arrival.
   Ryan, 2026-11-10, on the first version's 4.75rem figures and 3.25rem headings: "too much, too big and excessive". */
.issue { --issue-gap: clamp(2.5rem, 4.5vw, 4rem); }
.issue-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin: 0 0 var(--sp-6); }
.issue-search { display: flex; align-items: center; flex: 0 1 26rem; border-bottom: 1px solid var(--line); }
.issue-search:focus-within { border-bottom-color: var(--strong); }
.issue-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.6rem 0; font-size: var(--t-base); color: var(--strong); border-radius: 0; box-shadow: none; }
.issue-search input[type=search]:focus { outline: none; box-shadow: none; }
.issue-search button, .issue-search button:hover { background: transparent; border: 0; color: var(--muted); min-height: var(--tap); padding: 0 0 0 var(--sp-2); }
.issue-search button:hover { color: var(--strong); }
.issue-quiet { color: var(--muted); font-size: var(--t-sm); text-decoration: none; white-space: nowrap; }
.issue-quiet b { color: var(--accent); font-weight: 600; }

.cover { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cover-ph { display: block; }
.cover-ph .ph { aspect-ratio: 1 / 1; border-radius: 0; font-size: var(--t-lg); }
.cover-ph .ph img { inset: 6%; width: 88%; height: 88%; transition: transform 1.2s var(--ease); }
.cover-ph:hover .ph img { transform: scale(1.025); }
main p.issue-label { color: var(--accent); font-size: var(--t-sm); font-weight: 500; margin: 0 0 var(--sp-3); }
h1.cover-title { font-weight: 300; font-size: clamp(3.25rem, 6.4vw, 6rem); line-height: 0.95; letter-spacing: -0.035em; margin: 0; font-variation-settings: "opsz" 72; }
h1.cover-title a { color: var(--strong); text-decoration: none; }
main p.cover-sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 1.8vw, 1.6rem); color: var(--muted); margin: var(--sp-3) 0 0; }
main p.cover-price { font-weight: 600; font-size: clamp(2.25rem, 3.6vw, 3.25rem); letter-spacing: -0.03em; line-height: 1; color: var(--strong); margin: var(--sp-6) 0 0; font-variant-numeric: tabular-nums; }
.cover-price .fx { display: block; font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--faint); margin: var(--sp-2) 0 0; }
main p.cover-line { color: var(--muted); margin: var(--sp-3) 0 var(--sp-6); }
.cover-line b { color: var(--strong); font-weight: 600; }
.cover-wait { grid-template-columns: 1fr; min-height: 40vh; }

.issue-sec { margin-top: var(--issue-gap); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.issue-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-4); }
.issue-head h2 { margin: 0; padding: 0; border: 0; font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; letter-spacing: -0.018em; }
.issue-head a { color: var(--muted); font-size: var(--t-sm); white-space: nowrap; text-decoration: none; }
.issue-head a::after { content: " \2192"; }
.issue-head a:hover { color: var(--strong); }
main p.issue-note { color: var(--faint); font-size: var(--t-xs); margin: var(--sp-5) 0 0; max-width: 72ch; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--sp-5)) / 5); gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--sp-3); scrollbar-width: thin; }
.issue-tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; color: var(--text); text-decoration: none; }
.issue-tile:hover { color: var(--text); }
.issue-tile .ph { aspect-ratio: 4 / 5; border-radius: 0; margin-bottom: var(--sp-3); }
.issue-tile .ph img { transition: transform 0.9s var(--ease); }
.issue-tile:hover .ph img { transform: scale(1.04); }
.issue-tile-k { font-weight: 600; font-size: var(--t-base); color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.issue-tile-k .fx, .issue-tile small .fx { font-weight: 400; font-size: var(--t-xs); color: var(--faint); }
.issue-tile b { font-family: var(--serif); font-weight: 400; font-size: 1.125rem; letter-spacing: -0.012em; color: var(--strong); }
.issue-tile small { color: var(--muted); font-size: var(--t-xs); }

.shelf { list-style: none; margin: 0; padding: 0; }
main .shelf li { display: grid; grid-template-columns: minmax(0, 1.4fr) 6rem minmax(0, 1fr); grid-template-areas: "who n bar"; gap: var(--sp-1) var(--sp-5); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); max-width: none; }
.shelf-n { grid-area: n; text-align: right; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; color: var(--strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shelf-n small { font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 0.25rem; }
.shelf-who { grid-area: who; min-width: 0; }
.shelf-who b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.125rem; letter-spacing: -0.012em; color: var(--strong); }
.shelf-who small { color: var(--muted); font-size: var(--t-xs); }
.shelf-bar { grid-area: bar; display: block; width: 100%; height: 3px; }
.shelf-bar rect { fill: var(--accent); }
.shelf-bar rect.shelf-track { fill: var(--line-soft); }

.moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
main .moves li { max-width: none; }
.moves a { display: flex; flex-direction: column; gap: 0.2rem; color: var(--text); text-decoration: none; }
.moves-n { font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.02em; line-height: 1; color: var(--ok); font-variant-numeric: tabular-nums; margin-bottom: var(--sp-1); }
.moves-n.down { color: var(--bad); }
.moves b { font-family: var(--serif); font-weight: 400; font-size: 1.125rem; color: var(--strong); }
.moves small { color: var(--muted); font-size: var(--t-sm); }

.issue-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--issue-gap); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.issue-figs a { display: flex; flex-direction: column; gap: var(--sp-1); color: var(--text); text-decoration: none; min-width: 0; }
.issue-figs b { font-weight: 600; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1; color: var(--strong); font-variant-numeric: tabular-nums; }
.issue-figs span { color: var(--muted); font-size: var(--t-sm); }
.issue-figs a:hover b { color: var(--accent); }
.issue-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); color: var(--faint); font-size: var(--t-xs); }
main .issue-foot p { margin: 0; }
.issue-foot a { color: var(--muted); text-decoration: none; margin-right: var(--sp-4); }
.issue-foot a:last-child { margin-right: 0; }
.issue-foot a:hover { color: var(--strong); }

@keyframes issue-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.issue .cover-ph, .issue .cover-copy, .issue > .issue-sec:nth-of-type(2) { animation: issue-rise 0.9s var(--ease) both; }
.issue .cover-copy { animation-delay: 0.12s; }
.issue > .issue-sec:nth-of-type(2) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .issue .cover-ph, .issue .cover-copy, .issue > .issue-sec { animation: none; }
  .cover-ph .ph img, .issue-tile .ph img { transition: none; }
}
@media (max-width: 1100px) { .strip { grid-auto-columns: calc((100% - 3 * var(--sp-5)) / 4); } }
@media (max-width: 860px) {
  .cover { grid-template-columns: 1fr; gap: var(--sp-5); }
  .strip { grid-auto-columns: 40%; gap: var(--sp-4); }
  .moves, .issue-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .shelf li { grid-template-columns: minmax(0, 1fr) 5.5rem; grid-template-areas: "who n" "bar bar"; gap: var(--sp-2) var(--sp-4); }
}
@media (max-width: 560px) {
  .issue-top { flex-wrap: wrap; }
  .issue-search { flex-basis: 100%; }
  .issue-head { flex-direction: column; }
  .strip { grid-auto-columns: 62%; }
}

/* The frozen comparables on a Decision Lab reveal sit in a narrow column, so each record is a labelled block at every
   width (the small-screen card rules, applied always) */
table.frozen-comps { width: 100%; display: block; }
table.frozen-comps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.frozen-comps tbody, table.frozen-comps tr { display: block; }
table.frozen-comps tr { border-top: 1px solid var(--line); padding: var(--sp-2) 0; margin: 0 0 var(--sp-2); }
table.frozen-comps tbody tr:hover { background: none; }
table.frozen-comps td { display: block; padding: 0.3rem 0; border: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
table.frozen-comps td::after { content: ""; display: table; clear: both; }
table.frozen-comps td::before { content: attr(data-label); float: left; margin-right: var(--sp-3); color: var(--muted); font-size: var(--t-xs); text-align: left; line-height: 1.9; }
table.frozen-comps td:first-child { font-size: var(--t-base); color: var(--strong); text-align: left; padding-bottom: var(--sp-2); margin-bottom: var(--sp-1); border-bottom: 0.5px solid var(--line-soft); }
table.frozen-comps td:first-child::before { display: none; }

/* Report review (report_review.py) and comparable photos */
.report-status { border-left: 3px solid var(--warn, #b7791f); padding: var(--sp-2) var(--sp-3); margin: var(--sp-3) 0; }
.report-status.approved { border-left-color: var(--ok, #2f6f4f); }
.report-photo img { max-width: 100%; max-height: 320px; object-fit: contain; }
img.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.report-review { margin-top: var(--sp-5); }

/* The meeting review: ten Randolph bags, one page, previous and next on each bag */
.meeting-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; justify-content: space-between; padding: var(--sp-2) 0; margin-bottom: var(--sp-3); border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.meeting-nav .pn { display: flex; gap: var(--sp-4); }
.meeting-nav a { font-weight: 600; text-decoration: none; }
@media (min-width: 861px) { .compare:has(> div:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sheet-facts { margin: var(--sp-3) 0; }
dl.facts.unknowns { margin-top: var(--sp-2); }
.tw.comps-all, .tw.comps-all:has(> table.dense > tbody > tr:nth-child(18)) { max-height: none !important; overflow: visible !important; border-bottom: 0; }
table.frozen-comps td.comp-photo { text-align: left; border-bottom: 0; }
table.frozen-comps td.comp-photo::before { display: none; }
table.frozen-comps td.comp-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; display: block; }
table.frozen-comps td.comp-photo:has(img) .nophoto { display: none; }
table.frozen-comps.with-verdicts tr { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: var(--sp-3); align-items: start; }
table.frozen-comps.with-verdicts td { padding: 0.15rem 0; }
table.frozen-comps.with-verdicts td.comp-photo { grid-row: span 6; padding-top: var(--sp-1); }
table.frozen-comps.with-verdicts td:nth-child(2) { font-size: var(--t-sm); text-align: right; border-bottom: 0; margin: 0; padding-bottom: 0.15rem; }
table.frozen-comps.with-verdicts td:nth-child(2)::before { display: block; }
table.frozen-comps td.verdict { grid-column: 1 / -1; text-align: left; padding-top: var(--sp-2); }
table.frozen-comps td.verdict::before { display: none; }
.verdict-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-1); }
.verdict-form fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: var(--sp-3); align-items: center; min-height: 2.5rem; }
.verdict-form label.pick { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; white-space: nowrap; }
.verdict-form label.small { flex: 1 1 9rem; min-width: 0; }
.verdict-form label.small select, .verdict-form label.small input { width: 100%; }
.v-accept { color: var(--ok, #2f6f4f); } .v-reject { color: var(--bad, #9b2c2c); } .v-unsure { color: var(--warn, #b7791f); }
@media (min-width: 861px) { .compare:has(> div:nth-child(4)) .figure { font-size: clamp(1.5rem, 2.1vw, 2.25rem); } }
.meeting-start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0; }
.meeting-start .button { font-size: var(--t-lg); padding: var(--sp-3) var(--sp-5); }
ol.meeting-bags { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
ol.meeting-bags li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
ol.meeting-bags .n { font-size: var(--t-lg); color: var(--muted); }
ol.meeting-bags a.bag { font-weight: 600; text-decoration: none; }
ol.meeting-bags .state { text-align: right; font-size: var(--t-sm); white-space: nowrap; }
@media (max-width: 560px) { ol.meeting-bags li { grid-template-columns: 2rem minmax(0, 1fr); } ol.meeting-bags .state { grid-column: 2; text-align: left; white-space: normal; } }
.meeting-legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--t-sm); margin: var(--sp-3) 0; }

/* Price Check: every stored photo, the listing's words and the dealer's own page */
.play-media { min-width: 0; }
.play-more { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.play-more img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
.play-desc { max-height: 12rem; overflow: auto; margin: var(--sp-2) 0; white-space: pre-line; }
.store-desc { white-space: pre-line; }
.play-listing { margin: var(--sp-2) 0 var(--sp-3); font-weight: 600; }

/* The estimate step: the value, buy or not, how sure, one button; everything else folded */
.simple-estimate { max-width: 44rem; }
.simple-estimate .big-field input { font-size: 1.5rem; padding: var(--sp-3); }
.simple-estimate .stances, .simple-estimate .sure { display: flex; flex-wrap: wrap; gap: var(--sp-2); border: 0; padding: 0; }
.simple-estimate .stances .choice, .simple-estimate .sure .choice { flex: 1 1 8rem; }
.simple-estimate .actions .big { width: 100%; font-size: var(--t-lg); padding: var(--sp-3) var(--sp-4); }
.simple-estimate > details.fold { margin-top: var(--sp-5); }

/* The original listing on a bag page: one click to every photo and the condition notes */
.source-out { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-3); }
.source-out .warn-note { color: var(--warn, #8a5a12); }

/* Tim's Desk scoreboard (web/templates/desk_score.html) */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0 1.4rem; }
.stat-row .stat { border: 1px solid var(--line); background: var(--panel); padding: 0.9rem 1rem; border-radius: 6px; }
.stat-row .figure { font-size: 1.6rem; margin: 0.2rem 0; }
.tag.special { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }

/* ------------------------------------------------------------ Tim's Desk: the swipe deck (web/templates/desk.html, static/desk.js)
   One bag fills the card: photos left, the facts that decide it in the middle, the market and Tim's rules right, the
   four answers along the bottom. On a laptop the whole card fits the screen; on a phone the answers stay pinned above
   the tab bar. Colour carries the meaning of every fact: green for it, red against it, grey not stated. Without the
   script each card is the form it always was. */
.dk { --dk-good: var(--ok); --dk-bad: var(--bad); --dk-gold: #9a6b1f; --dk-gold-fill: #c9963a; --dk-unknown: var(--muted); }
@media (prefers-color-scheme: dark) { .dk { --dk-gold: #e3bd7d; --dk-gold-fill: #d9b27c; } }
.dk kbd { font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0; padding: 0.05rem 0.3rem; border: 1px solid currentColor; border-radius: var(--r-sm); opacity: 0.55; line-height: 1.2; }
.dk p { margin: 0; max-width: none; }

/* the game: today's ring, the streak, the score that matters, deals, speed */
.dk-game { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); padding: 0 0 var(--sp-2); margin: 0 0 var(--sp-3); border-bottom: 1px solid var(--line); }
.dk-goal { display: flex; align-items: center; gap: var(--sp-2); }
.dk-ring { width: 2.6rem; height: 2.6rem; flex: none; transform: rotate(-90deg); }
.dk-ring circle { fill: none; stroke-width: 3.2; }
.dk-ring .track { stroke: var(--line); }
.dk-ring .fill { stroke: var(--btn); stroke-linecap: round; transition: stroke-dasharray 420ms var(--ease), stroke 420ms var(--ease); }
.dk-ring .tick { fill: none; stroke: var(--dk-gold-fill); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: rotate(90deg); transform-origin: 18px 18px; transition: opacity 300ms var(--ease); }
.dk-goal.met .dk-ring .fill { stroke: var(--dk-gold-fill); }
.dk-goal.met .dk-ring .tick { opacity: 1; }
.dk-goal.met.fresh .dk-ring { animation: dk-goal 900ms var(--ease); }
@keyframes dk-goal { 0% { transform: rotate(-90deg) scale(1); } 40% { transform: rotate(-90deg) scale(1.18); } 100% { transform: rotate(-90deg) scale(1); } }
.dk-goal p, .dk-stat, .dk-stat > p { display: flex; flex-direction: column; line-height: 1.1; }
.dk-game b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--strong); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
.dk-game span { font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 0.2rem; }
.dk-goal p { display: block; }
.dk-goal p b { display: inline; }
.dk-goal p > span { display: block; }
.dk-goal p { font-family: var(--serif); color: var(--muted); font-size: 1.125rem; }
.dk-stat a { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.dk-stat a:hover b { color: var(--accent); }
.dk-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--t-sm); }
.dk-links a { color: var(--muted); text-decoration: none; }
.dk-links a:hover { color: var(--accent); text-decoration: underline; }
.dk-who { margin-top: var(--sp-3) !important; font-size: var(--t-sm); color: var(--muted); }
.dk-last { font-size: var(--t-sm); color: var(--muted); margin: 0 0 var(--sp-3); padding-left: var(--sp-3); border-left: 3px solid var(--bronze); }

/* the stack: the bag on top, the next one waiting under it while the top one is dragged */
.dk-stack { display: grid; position: relative; }
.dk-card { grid-area: 1 / 1; position: relative; z-index: 2; min-width: 0; }
/* the next bag waits underneath, full colour, a little smaller; it rises as the top one is dragged (desk.js) */
.dk-card.under { position: absolute; top: 0; left: 0; right: 0; height: 100%; overflow: hidden; z-index: 1; transform: translateY(14px) scale(0.95); pointer-events: none; box-shadow: none; }
.dk-card.lifting { transform: none; transition: transform 300ms var(--ease); }
.dk-card.under .dk-act { visibility: hidden; }  /* only its card shows from underneath */
.hp-profile.settle { transition: transform 260ms var(--ease); }
.hp-profile.fly { transition: transform 300ms cubic-bezier(0.4, 0, 1, 1), opacity 300ms ease-in; opacity: 0; pointer-events: none; }
.dk-card.back { animation: dk-back 320ms var(--ease); }
@keyframes dk-back { from { transform: translateY(-24px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.hp-profile.nudge { animation: dk-nudge 380ms var(--ease); }
@keyframes dk-nudge { 25% { transform: translateX(-8px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
html.dk-dragging, html.dk-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }

/* photos: full bleed on the plate, a tap on either side for the next or the last, dots and a count */
.dk-media { position: relative; min-height: 0; touch-action: none; cursor: grab; }
.dk-plate { position: relative; height: 100%; min-height: 18rem; overflow: hidden; background: var(--plate); color: var(--plate-ink); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: var(--t-lg); letter-spacing: 0.08em; }
.dk-plate > span { padding: var(--sp-4); text-align: center; }
.dk-plate:has(img) > span { visibility: hidden; }
.dk-track { position: absolute; inset: 0; display: flex; transition: transform 280ms var(--ease); }
.dk-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
html:not(.js) .dk-track { overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.js) .dk-track img { scroll-snap-align: center; }
.dk-pg {
  position: absolute; top: 50%; z-index: 3; width: 2.5rem; height: 2.5rem; min-height: 0; margin-top: -1.25rem; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, #fbf9f4 82%, transparent); color: #142d24; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); opacity: 0;
}
.dk-pg svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dk-pg:hover { background: #fbf9f4; color: #142d24; }
.dk-pg.prev { left: var(--sp-3); }
.dk-pg.next { right: var(--sp-3); }
.dk-media:hover .dk-pg, .dk-pg:focus-visible { opacity: 1; }
.dk-pg:disabled { opacity: 0 !important; }
.pc-bars { position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem; z-index: 3; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.pc-bars li { flex: 1; height: 3px; max-width: none; border-radius: 2px; background: rgba(20, 45, 36, 0.2); transition: background-color var(--fast) var(--ease); }
.pc-bars li.on { background: #142d24; }
.dk-expand {
  position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 3; width: 2.25rem; height: 2.25rem; min-height: 0; padding: 0; border: 0; border-radius: var(--r-sm);
  background: rgba(20, 45, 36, 0.78); color: #f5f2eb;
}
.dk-expand:hover { background: #142d24; color: #fff; }
.dk-expand svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Curtain Call's card, a profile read like Hinge's: a column of the bag's photos and the listing's own words, the first
   photo with the name and the price, the basics as icon chips under it, prompts between the photos, and four round
   answers pinned at the foot. A fact against the bag reads red, one the listing does not state reads grey. */
.hp-card { width: 100%; max-width: 32.5rem; min-width: 0; margin: 0 auto; }  /* min-width: a clipped chip never widens the column */
.hp-profile { display: flex; flex-direction: column; gap: var(--sp-3); padding-bottom: var(--sp-3); touch-action: pan-y; transform-origin: 50% 0; will-change: transform; }
.hp-hero { height: 46vh; min-height: 17rem; max-height: 34rem; border-radius: 14px; overflow: hidden; background: var(--plate); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); touch-action: pan-y; }
.hp-hero .dk-plate { min-height: 0; }
.hp-hero .dk-track img { object-fit: contain; padding: 5% 5% 22%; mix-blend-mode: multiply; }
.hp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(8, 14, 11, 0.86), rgba(8, 14, 11, 0)); }
.hp-price { position: absolute; top: 1.35rem; right: 0.75rem; z-index: 3; margin: 0; padding: 0.3rem 0.8rem; border-radius: 999px; background: #fbf9f4; color: #142d24; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.hp-price small { font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; color: #515c54; }
.hp-price a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.hp-price a .tx-ic { width: 0.8em; height: 0.8em; }
.hp-name { position: absolute; left: var(--sp-4); right: 4rem; bottom: var(--sp-4); z-index: 3; color: #fff; pointer-events: none; }
.hp-name p { margin: 0; max-width: none; }
h2.hp-title { margin: 0; padding: 0; border: 0; color: #fff; font-size: 2.25rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
h2.hp-title:focus { outline: none; }
h2.hp-title:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 4px; }
.hp-seller { margin-top: 0.25rem !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem var(--sp-2); font-size: var(--t-sm); font-weight: 600; color: #ece7db; }
.hp-note { padding: 0 0.45rem; font-size: var(--t-xs); border-radius: 999px; border: 1px solid currentColor; }
.hp-note.bad { color: #ffb3ab; background: rgba(178, 54, 45, 0.35); }
.hp-note.good { color: #b6e4c6; background: rgba(35, 112, 74, 0.35); }
.hp-note.mixed, .hp-note.info { color: #f1d9a4; background: rgba(138, 95, 15, 0.35); }
.hp-hero .dk-expand { top: auto; bottom: var(--sp-4); right: var(--sp-3); }
.hp-box { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: var(--sp-4) var(--sp-4); }
.hp-box h3 { margin: 0 0 var(--sp-2); }
ul.hp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.45rem; }
.hp-chip { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; padding: 0.35rem 0.75rem 0.35rem 0.55rem; border-radius: 999px; background: var(--fill); border: 1px solid var(--line-soft); font-size: 0.9375rem; font-weight: 500; line-height: 1.25; color: var(--strong); }
.hp-v { min-width: 0; }
.hp-chip.is-clip .hp-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-ic { flex: none; width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hp-chip.bad, .hp-bad { color: var(--bad); font-weight: 600; }
.hp-chip.bad .hp-ic { stroke: var(--bad); }
.hp-chip.unknown { color: var(--faint); font-weight: 400; background: none; border-style: dashed; }
.hp-chip.unknown .hp-ic { stroke: var(--faint); }
.hp-answer { margin: 0; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.35; color: var(--strong); }
.hp-long { font-size: 1.125rem; line-height: 1.5; white-space: pre-line; }
.hp-quiet { margin: 0; color: var(--muted); }
ul.hp-rules { margin: 0; padding-left: 1.1rem; }
.hp-rules li { padding: 0.15rem 0; max-width: none; font-size: 1rem; }
.hp-tag { display: inline-block; padding: 0 0.45rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.hp-photo { margin: 0; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--plate); }
.hp-photo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 5%; mix-blend-mode: multiply; }
.hp-link { margin: 0 !important; text-align: center; font-size: var(--t-sm); }

/* the four answers, round and pinned at the foot of the column; the Too high strip opens above them */
.hp-card .dk-act {
  position: sticky; bottom: 0; z-index: 5; margin-top: calc(-1 * var(--sp-5)); padding: var(--sp-6) 0 var(--sp-3); border-top: 0;
  background: linear-gradient(to top, var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent)); pointer-events: none;
}
.hp-card .dk-act > * { pointer-events: auto; }
.hp-round { display: flex !important; justify-content: center; align-items: flex-end; gap: var(--sp-5); }
.dk { --ic-high: #6e2230; --ic-skip: #6b746d; --ic-buy: #a7803f; --ic-fair: #1d5a3f; }
@media (prefers-color-scheme: dark) { .dk { --ic-high: #e0a1a6; --ic-skip: #aab4ac; --ic-buy: #d9b27c; --ic-fair: #8fcaa6; } }
.hp-rb {
  --tone: var(--ic-skip);
  align-self: flex-end; justify-content: flex-end; flex-direction: column; gap: 0.25rem; width: 4.25rem; min-height: 0; padding: 0;
  background: none; border: 0; color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em;
  font-variant-caps: all-small-caps;
}
/* thin line icons in thin outline circles: no fills, a 1.5px stroke at any size */
.hp-rb svg {
  box-sizing: content-box; width: 1.75rem; height: 1.75rem; padding: 0.75rem; border-radius: 50%; background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  fill: none; stroke: var(--tone); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.hp-rb svg path { vector-effect: non-scaling-stroke; }
.hp-rb:hover { background: none; color: var(--strong); }
.hp-rb:hover svg { transform: scale(1.05); border-color: var(--tone); }
.hp-rb.is-off { --tone: var(--ic-high); }
.hp-rb.is-skip { --tone: var(--ic-skip); }
.hp-rb.is-buy { --tone: var(--ic-buy); }
.hp-rb.is-approve { --tone: var(--ic-fair); color: var(--strong); }
.hp-rb.is-approve svg { width: 2rem; height: 2rem; padding: 0.9rem; border-color: var(--tone); }
/* the icons that stand in for arrow characters in text: the text's colour, 1.5px */
.tx-ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tx-ic path { vector-effect: non-scaling-stroke; }
kbd .tx-ic { width: 0.9em; height: 0.9em; vertical-align: -0.1em; }
.hp-card .dk-strip { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: var(--sp-2); box-shadow: var(--shadow); }
html:not(.js) .dk-pg, html:not(.js) .dk-expand, html:not(.js) .pc-bars { display: none; }
html:not(.js) .hp-hero .pc-bars { display: none; }

/* what a drag will do, written on the photo as it moves (desk.js sets --a from 0 to 1) */
.dk-stamp {
  position: absolute; top: 18%; z-index: 4; padding: 0.15rem 0.7rem; border: 3px solid currentColor; border-radius: var(--r);
  font-family: var(--sans); font-size: 1.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: color-mix(in srgb, var(--panel) 70%, transparent); opacity: var(--a, 0); pointer-events: none; transition: opacity 80ms linear;
}
.dk-stamp.is-approve { left: 8%; color: var(--dk-good); transform: rotate(-12deg); }
.dk-stamp.is-off { right: 8%; color: var(--dk-bad); transform: rotate(12deg); }
.dk-stamp.is-buy { left: 50%; top: auto; bottom: 22%; color: var(--dk-gold); transform: translateX(-50%); }
.dk-stamp.is-skip { left: 50%; top: 10%; color: var(--muted); transform: translateX(-50%); }
html:not(.js) .dk-stamp { display: none; }

/* the answers: the four swipes as buttons, the move strip that a left swipe opens in their place */
.dk-act { grid-area: act; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); background: var(--panel); max-width: none; margin: 0; }
.dk-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-2); }
.dk-row > [hidden], html:not(.js) .dk-row > .js-only { display: none; }
.dk-btn {
  align-self: stretch; min-height: 3.25rem; padding: 0 var(--sp-3); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; gap: var(--sp-2);
  background: transparent; color: var(--strong); border: 1px solid var(--line);
}
.dk-btn > span[aria-hidden] { font-size: 1.25rem; line-height: 1; }
.dk-btn:hover { background: var(--fill); color: var(--strong); border-color: var(--bronze); }
.dk-btn.is-off { color: var(--dk-bad); border-color: color-mix(in srgb, var(--dk-bad) 50%, var(--line)); }
.dk-btn.is-off:hover { background: color-mix(in srgb, var(--dk-bad) 10%, transparent); color: var(--dk-bad); border-color: var(--dk-bad); }
.dk-btn.is-buy { color: var(--dk-gold); border-color: color-mix(in srgb, var(--dk-gold-fill) 70%, var(--line)); }
.dk-btn.is-buy:hover { background: color-mix(in srgb, var(--dk-gold-fill) 16%, transparent); color: var(--dk-gold); border-color: var(--dk-gold-fill); }
.dk-btn.is-buy.on { background: var(--dk-gold-fill); color: #111c16; border-color: var(--dk-gold-fill); }
.dk-btn.is-approve { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); font-size: 1.0625rem; }
.dk-btn.is-approve:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-ink); }
.dk-strip { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--sp-2); }
html.js .dk-strip:not(.open) { display: none; }
html.js .dk-act.moving .dk-row { display: none; }
html.js .dk-act.moving .dk-strip { display: flex; }
.dk-move {
  flex: 1 1 6.5rem; align-self: stretch; min-height: 3.25rem; flex-direction: column; gap: 0; padding: 0.25rem var(--sp-2); position: relative;
  font-family: var(--serif); font-size: 1.1875rem; font-weight: 600; background: transparent; color: var(--strong); border: 1px solid var(--strong);
}
.dk-move small { font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.dk-move kbd { margin-left: 0.2rem; }
.dk-game b.dk-none { font-family: var(--sans); font-size: var(--t-sm); font-weight: 500; color: var(--muted); padding: 0.45rem 0 0.2rem; }
.dk-move:hover, .dk-move:focus-visible { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.dk-move:hover small, .dk-move:focus-visible small { color: inherit; opacity: 0.8; }
.dk-own { flex: 1 1 9rem; flex-direction: row; align-items: center; gap: var(--sp-1); font-family: var(--serif); font-size: 1.25rem; color: var(--strong); }
.dk-own input { min-height: 3.25rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.dk-save { align-self: stretch; min-height: 3.25rem; padding: 0 var(--sp-4); }
.dk-close { align-self: stretch; min-height: 3.25rem; width: 3.25rem; padding: 0; font-size: 1.5rem; font-weight: 400; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.dk-close:hover { background: var(--fill); color: var(--strong); border-color: var(--bronze); }
.dk-act .js-only { display: none; }
html.js .dk-act .js-only { display: inline-flex; }
.dk-nojs { display: grid; gap: var(--sp-2); padding-top: var(--sp-2); }
.dk-nojs fieldset { display: grid; gap: var(--sp-1); border: 0; padding: var(--sp-1) 0; margin: 0; }
html.js .dk-nojs { display: none; }

/* Undo: three seconds, then the answer is sent */
.dk-toast {
  position: fixed; left: 50%; bottom: var(--sp-5); z-index: 20; transform: translateX(-50%); width: max-content; max-width: min(46rem, calc(100vw - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4);
  background: var(--brand); color: #f5f2eb; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); overflow: hidden; animation: dk-toast 200ms var(--ease);
}
@keyframes dk-toast { from { opacity: 0; transform: translate(-50%, 8px); } }
/* beside the deck, over the foot of the rail, so the next bag's answers are never covered */
@media (min-width: 861px) {
  .dk-toast {
    left: var(--sp-3); bottom: var(--sp-3); transform: none; width: calc(var(--rail) - 2 * var(--sp-3)); max-width: none;
    flex-direction: column; align-items: stretch; gap: var(--sp-2); padding: var(--sp-3); animation-name: dk-toast-side;
  }
  .dk-toast .dk-undo { order: 4; }
  .dk-toast p { font-size: var(--t-sm); }
  .dk-reason { min-height: 2rem; padding: 0 var(--sp-2); font-size: var(--t-xs); }
  .dk-reasons { order: 3; }
}
@keyframes dk-toast-side { from { opacity: 0; transform: translateY(8px); } }
.dk-toast p { font-size: var(--t-base); }
.dk-toast p b { color: #fff; }
.dk-undo { min-height: 2.5rem; background: var(--copper-hi); border-color: var(--copper-hi); color: #111c16; }
.dk-undo:hover { background: #e6c594; border-color: #e6c594; color: #111c16; }
.dk-undo kbd { opacity: 0.7; }
.dk-reasons { display: flex; flex-wrap: wrap; gap: var(--sp-1); flex-basis: 100%; order: 3; }
.dk-reason { min-height: 2.25rem; padding: 0 var(--sp-3); font-size: var(--t-sm); font-weight: 500; background: transparent; color: #f5f2eb; border: 1px solid rgba(217, 178, 124, 0.55); }
.dk-reason:hover, .dk-reason[aria-pressed="true"] { background: var(--copper-hi); color: #111c16; border-color: var(--copper-hi); }
.dk-clock { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--copper-hi); transform-origin: left; }
.dk-clock.run { animation: dk-clock 3s linear forwards; }
@keyframes dk-clock { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.dk-toast.is-failed { background: var(--banner-bg); }
.dk-keys { margin-top: var(--sp-3) !important; font-size: var(--t-xs); color: var(--faint); }
.dk-keys kbd { opacity: 0.8; }
.dk-empty { margin-top: var(--sp-5); }

/* the full-screen photos: every photo, keys and a zoom for the corners and the stamp */
dialog.dk-viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0b120f; color: #f5f2eb; overflow: hidden;
}
dialog.dk-viewer::backdrop { background: rgba(5, 9, 7, 0.9); }
.dk-vbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: var(--sp-4); padding: calc(env(safe-area-inset-top) + var(--sp-2)) var(--sp-4) var(--sp-2); background: linear-gradient(rgba(11, 18, 15, 0.92), rgba(11, 18, 15, 0)); }
.dk-vtitle { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-vcount { font-size: var(--t-sm); color: #c6d0c8; font-variant-numeric: tabular-nums; }
.dk-vzoom, .dk-vclose { min-height: 2.5rem; background: transparent; color: #f5f2eb; border: 1px solid rgba(245, 242, 235, 0.35); }
.dk-vzoom:hover, .dk-vclose:hover, .dk-vzoom[aria-pressed="true"] { background: #f5f2eb; color: #111c16; border-color: #f5f2eb; }
.dk-vclose { width: 2.5rem; padding: 0; font-size: 1.5rem; font-weight: 400; }
.dk-vstage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--plate); touch-action: pinch-zoom; cursor: zoom-in; }
.dk-vstage img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; padding: 4.5rem 4rem 3rem; mix-blend-mode: multiply; transition: transform 220ms var(--ease); user-select: none; -webkit-user-drag: none; }
.dk-vstage.zoomed { cursor: zoom-out; }
.dk-vstage.zoomed img { transform: scale(2.6); transition: none; }
dialog.dk-viewer .dk-pg { opacity: 1; width: 3rem; height: 3rem; margin-top: -1.5rem; }
dialog.dk-viewer .dk-pg.prev { left: var(--sp-4); }
dialog.dk-viewer .dk-pg.next { right: var(--sp-4); }

/* a phone: the photo across the screen, the answers pinned above the tab bar */
@media (max-width: 860px) {
  .dk-game { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; align-items: center; padding-bottom: var(--sp-2); margin-bottom: 0; border-bottom: 0; }
  .dk-goal { gap: 0.35rem; }
  .dk-ring { width: 1.9rem; height: 1.9rem; }
  .dk-game b { font-size: 1rem; }
  .dk-goal p { white-space: nowrap; }
  .dk-game span { font-size: 0.5625rem; letter-spacing: 0.04em; margin-top: 0.1rem; }
  .dk-goal p { font-size: 0.8125rem; }
  .dk-goal p > span { display: block; }
  .dk-links { flex: 0 0 100%; order: 9; margin: 0; gap: var(--sp-1) var(--sp-3); font-size: var(--t-xs); }
  .dk-game b { white-space: nowrap; }
  .dk-game > * { flex: none; }
  .dk-who { font-size: var(--t-xs); }
  .dk-pg { opacity: 1; width: 2.25rem; height: 2.25rem; margin-top: -1.125rem; }
  .dk-stack { overflow-x: clip; }  /* a profile flying off never widens the page */
  .hp-profile { gap: var(--sp-2); }
  .hp-hero { border-radius: 12px; }
  h2.hp-title { font-size: 2rem; }
  .hp-box { padding: var(--sp-3) var(--sp-3); }
  .hp-basics { padding: 0.625rem 0.625rem 0.75rem; }
  .hp-box h3 { margin-bottom: var(--sp-1); }
  .hp-basics h3 { margin: 0 0 0.375rem 0.25rem; }
  ul.hp-chips { gap: 0.25rem; }
  .hp-chip { padding: 0.2rem 0.5rem 0.2rem 0.4rem; gap: 0.25rem; font-size: 0.8125rem; line-height: 1.25; }
  .hp-ic { width: 0.875rem; height: 0.875rem; }
  .hp-card .dk-act { bottom: calc(52px + env(safe-area-inset-bottom)); padding: var(--sp-5) 0 var(--sp-2); }
  .shell:not(:has(.dock)) .hp-card .dk-act { bottom: env(safe-area-inset-bottom); }
  .hp-round { gap: var(--sp-3); }
  .hp-rb svg { width: 1.5rem; height: 1.5rem; padding: 0.55rem; }
  .hp-rb.is-approve svg { width: 1.75rem; height: 1.75rem; padding: 0.65rem; }
  .hp-rb { font-size: 0.75rem; }
  .shell:not(:has(.dock)) .dk-act { bottom: env(safe-area-inset-bottom); }
  .dk-row { gap: var(--sp-1); }
  .dk-btn { min-height: var(--tap); padding: 0 var(--sp-1); font-size: 0.9375rem; flex-direction: column; gap: 0; line-height: 1.15; white-space: normal; }
  .dk-btn > span[aria-hidden] { font-size: 1.0625rem; }
  .dk-btn.is-approve { font-size: 0.9375rem; }
  .dk-long { display: none; }
  .dk-btn.is-approve > span[aria-hidden] { display: none; }
  .dk-strip { gap: var(--sp-1); }
  .dk-move { flex: 1 1 22%; min-height: var(--tap); font-size: 1rem; padding: 0.2rem 0.25rem; }
  .dk-move kbd, .dk-save kbd, .dk-btn kbd, .dk-undo kbd { display: none; }
  .dk-own { flex: 1 1 8rem; }
  .dk-own input, .dk-save, .dk-close { min-height: var(--tap); }
  .dk-close { width: var(--tap); }
  .dk-toast { top: calc(env(safe-area-inset-top) + 4.5rem); bottom: auto; width: calc(100vw - 2 * var(--gutter)); }
  .dk-keys { display: none; }
  .dk-vstage img { padding: 4rem 0.5rem 1.5rem; }
  dialog.dk-viewer .dk-pg { width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; }
  dialog.dk-viewer .dk-pg.prev { left: var(--sp-2); }
  dialog.dk-viewer .dk-pg.next { right: var(--sp-2); }
  .dk-vzoom { display: none; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .hp-hero { height: 36vh; min-height: 13rem; }  /* a short phone: the basics still show under the first photo */
}
@media (prefers-reduced-motion: reduce) {
  .hp-profile.fly { transition: opacity 120ms linear !important; transform: none !important; }
}

/* Comp Finder (web/comp_finder.py), under Intelligence: results fill in as the reader types. */
.cf-search { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-4); }
.cf-search input { flex: 1 1 20rem; max-width: 36rem; }
.cf-hint { color: var(--muted); line-height: 1.5; }
.cf-read { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0 0 var(--sp-3); }
.cf-read small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.cf-results[aria-busy="true"] { opacity: 0.6; }
.cf-table tr.cf-exact td { background: color-mix(in srgb, var(--ok) 8%, transparent); }

/* Price and date order on Liked, the Watchlist, the Portfolio and Sourcing (templates/_list_sort.html) */
.list-sort { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: end; margin: var(--sp-2) 0 var(--sp-3); }
.list-sort label { display: grid; gap: 2px; font-size: var(--t-xs, 0.75rem); color: var(--muted); }
.list-sort select { font-size: var(--t-sm, 0.875rem); }
html.js .list-sort .nojs { display: none; }
/* The price summary over Explore's results, closed until opened */
details.price-summary > section { margin-top: var(--sp-2); }
.cf-photo { width: 56px; min-width: 60px; padding-top: 2px; padding-bottom: 2px; }
.cf-photo img, .cf-photo .thumb { width: 56px; height: 56px; min-width: 56px; max-width: none; object-fit: cover; border-radius: 4px; display: block; }
.cf-nophoto { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); font-size: 0.65rem; text-align: center; line-height: 1.1; white-space: normal; }
/* Closest market evidence under a value that cannot be stated (rfv_pages.nearest_evidence) */
.nearest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--sp-3); margin: var(--sp-2) 0 var(--sp-4); padding: 0; list-style: none; }
.nearest-grid li { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.nearest-grid .nearest-ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.nearest-grid .cf-nophoto { width: 100%; height: auto; aspect-ratio: 1 / 1; }

/* ------------------------------------------------------------ Everything Google shows (web/google_comps.py) */
.gs .gs-grid { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--sp-5) var(--sp-4); margin: var(--sp-3) 0; }
.gs .gs-grid .meta b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.gs[aria-busy="true"] [data-google-out] { opacity: 0.55; }
/* On Explore the Google results are one row that swipes, so the market's own list stays in view on a phone (Tim,
   2026-12-01). Comp Finder keeps its grid. */
.explore .gs .gs-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 11rem); gap: var(--sp-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: var(--sp-2); }
.explore .gs .gs-grid > .bag-card { scroll-snap-align: start; }
/* Explore's table: the listing's photo beside its title (_table_bits.html) */
.st-bag { display: flex; align-items: center; gap: var(--sp-2); }
.st-thumb { flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--panel-2); }
span.st-thumb.cf-nophoto { width: 48px; height: 48px; font-size: 0.6rem; }
.bag-card .card-original { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3, 0.75rem); }

/* ------------------------------------------------------------ Search, the simple way (web/find.py) */
.find { max-width: 72rem; margin: 0 auto; padding: 0 0 var(--sp-6, 2rem); }
.find p { margin: 0; }
.find-q { display: flex; margin: var(--sp-3, 0.75rem) 0 var(--sp-5, 1.5rem); }
.find-q input { flex: 1; min-width: 0; height: 52px; font-size: 1.125rem; padding: 0 1rem; border: 1px solid var(--line); border-right: 0; border-radius: 0; background: var(--panel, #fff); }
.find-q button { height: 52px; padding: 0 1.25rem; border-radius: 0; }
.find-hint { color: var(--muted); font-size: 1rem; padding: var(--sp-5, 1.5rem) 0; }
.find-answer { padding: var(--sp-2, 0.5rem) 0 var(--sp-5, 1.5rem); }
.find-answer .fa-label { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.find-answer .fa-big { font-family: "Playfair Display", Georgia, serif; font-size: 3.5rem; line-height: 1.05; font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -0.01em; color: var(--strong); margin: 0.2rem 0 0.35rem; }
.find-answer .fa-note { font-size: 0.875rem; color: var(--muted); }
.find-answer .fa-sides { display: flex; gap: 2.5rem; margin: var(--sp-4, 1rem) 0 0; padding-top: var(--sp-3, 0.75rem); border-top: 1px solid var(--line-soft, #e3e8e8); max-width: 26rem; }
.find-answer .fa-sides div { display: flex; flex-direction: column; }
.find-answer .fa-sides dt { font-size: 0.8125rem; color: var(--muted); }
.find-answer .fa-sides dd { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; font-weight: 400; font-variant-numeric: lining-nums; }
.find-relaxed { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--sp-3, 0.75rem) !important; }
.find-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line-soft, #e3e8e8); }
.find-tabs a { padding: 0.75rem 0; min-height: 44px; box-sizing: border-box; color: var(--muted); text-decoration: none; font-size: 1rem; border-bottom: 2px solid transparent; }
.find-tabs a span { font-variant-numeric: tabular-nums; }
.find-tabs a.on { color: var(--strong); border-bottom-color: var(--strong); }
.find-sort { display: flex; gap: 1rem; padding: 0.75rem 0; }
.find-sort a { font-size: 0.875rem; color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.find-sort a.on { color: var(--strong); text-decoration: underline; text-underline-offset: 4px; }
.find-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (min-width: 760px) { .find-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
.find-card { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.find-card .fc-photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #f4f5f5; overflow: hidden; margin-bottom: 0.4rem; text-decoration: none; }
/* a listing with no photo held: its name, set as a tile, in place of an empty frame */
.find-card .fc-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; padding: 1rem; text-align: center; }
.find-card .fc-tile b { font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 1.375rem; line-height: 1.2; color: var(--strong); }
.find-card .fc-tile small { font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.find-card .fc-photo:has(img) > .fc-tile { visibility: hidden; }
.find-card.is-google .fc-tile b { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.find-card .fc-via { color: var(--muted); font-size: 0.75rem; }
.find-card.is-google .fc-bag { color: var(--strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.find-google-wait { font-size: 0.875rem; color: var(--muted); padding: 0 0 0.75rem; }
.find-card .fc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; background: #f6f7f7; }
.find-card .fc-price { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; color: var(--strong); }
.find-card .fc-price .fx, .find-card .fc-price small { font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.find-card .fc-bag { font-size: 0.875rem; line-height: 1.35; }
.find-card .fc-bag a { color: var(--strong); text-decoration: none; }
.find-card .fc-bag span { color: var(--muted); }
.find-card .fc-seller { font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-card .fc-link { font-size: 0.8125rem; }
.find-card .fc-link a { min-height: 32px; display: inline-flex; align-items: center; gap: 0.25rem; }
.find-card .fc-link span { color: var(--muted); }
.find-more { text-align: center; padding: var(--sp-5, 1.5rem) 0; }
.find-deep { font-size: 0.875rem; padding-top: var(--sp-5, 1.5rem); }
.find-google { border: 0; padding: 0; }

/* Search: the price range at a glance (find.scale) */
.find-scale { padding: 0.25rem 0 1.25rem; }
.find-scale .fs-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.find-scale .fs-range { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; line-height: 1.15; color: var(--strong); margin: 0.15rem 0 0.2rem; font-variant-numeric: lining-nums; }
.find-scale .fs-note { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem !important; }
.find-scale .fs-note b { color: var(--strong); font-weight: 600; }
.find-scale .fs-chart { display: block; width: 100%; max-width: 40rem; height: 64px; }
.find-scale .fs-band { fill: #e3ecea; }
.find-scale .fs-bar { fill: #c9d1d0; }
.find-scale .fs-bar.in { fill: #043735; }
.find-scale .fs-base { stroke: #b9c3c2; stroke-width: 1; }
.find-scale .fs-mark { stroke-width: 2; vector-effect: non-scaling-stroke; }
.find-scale .fs-mark.m-dealers, .find-scale .k.m-dealers::before { stroke: #2f7a6d; background: #2f7a6d; }
.find-scale .fs-mark.m-sells, .find-scale .k.m-sells::before { stroke: #0a0f0e; background: #0a0f0e; }
.find-scale .fs-mark.m-retail, .find-scale .k.m-retail::before { stroke: #a8802a; background: #a8802a; }
.find-scale .fs-axis { display: flex; justify-content: space-between; max-width: 40rem; font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem !important; }
.find-scale .fs-keys { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.8125rem; color: var(--muted); margin-top: 0.6rem !important; }
.find-scale .k { display: inline-flex; align-items: center; gap: 0.4rem; }
.find-scale .k::before { content: ""; width: 3px; height: 0.9rem; display: inline-block; }
.find-scale .k b { color: var(--strong); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

/* Search: Wholesale or Retail, and the everyday filters, under the box (Ryan, 2026-12-01: "in one thing") */
.find-refine { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1.5rem; margin: -0.75rem 0 1.25rem; }
.find-channel { display: flex; gap: 1.25rem; }
.find-channel a { color: var(--muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; font-size: 0.9375rem; }
.find-channel a.on { color: var(--strong); border-bottom-color: var(--strong); }
.find-filters { flex: 1 1 100%; order: 2; }
.find-filters > summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; color: var(--strong); font-size: 0.9375rem; list-style: none; }
.find-filters > summary::-webkit-details-marker { display: none; }
.find-filters > summary::after { content: ""; width: 6px; height: 6px; margin-left: 0.5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.find-filters[open] > summary::after { transform: rotate(-135deg); }
.find-filters form { padding: 0.75rem 0 0.25rem; }
.find-filters .ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
@media (min-width: 760px) { .find-filters .ff-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.find-filters label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; color: var(--muted); }
.find-filters select, .find-filters input { height: 40px; font-size: 0.9375rem; border-radius: 0; }
.find-filters .ff-acts { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; font-size: 0.875rem; }
