/* One stylesheet for every page, public and admin (decisions.md 2026-10-17). Colors are tokens on
   :root, redefined for dark mode; the palette and type are option A, the quote page
   (decisions.md 2026-10-24, ztmp/design/search-options/a.html): ink on white, hairlines, one
   violet accent, Instrument Sans for text and IBM Plex Mono for money. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;        /* a panel: a table, a card, a popover */
  --field: #F4F5F7;          /* an admin input's background */
  --text: #0E1116;           /* ink */
  --text-soft: #3A424D;
  --muted: #6B7280;
  --border: #E6E8EC;         /* the hairline rule */
  --border-strong: #CDD1D7;  /* an input's border */
  --accent: #5F4EB3;
  --accent-hover: #4C3D99;
  --accent-tint: #EEEBF8;
  --on-accent: #ffffff;
  --row-hover: #F6F7F9;
  --panel: #F7F8F9;          /* a card set off from the page: the search's funder cards */
  --admin-bg: #FFF7E6;
  --admin-border: #F3D9A4;
  --admin-text: #7A4B00;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #1e1e1c;
    --field: #262624;
    --text: #e8e8e4;
    --text-soft: #c9cdd3;
    --muted: #9a9a94;
    --border: #33332f;
    --border-strong: #4a4e55;
    --accent: #A99BE8;
    --accent-hover: #C3B8F2;
    --accent-tint: #2B2640;
    --on-accent: #161615;
    --row-hover: #262624;
    --panel: #1e1e1c;
    --admin-bg: #2a2210;
    --admin-border: #5a4a1a;
    --admin-text: #f3d9a4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The header, one row on every page: the site name, then the page's own nav or breadcrumb, the
   search and the links. An admin page's header is the Admin mode banner. */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-row { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site-name { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
         color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand picture, .brand img { display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.site-nav a { color: var(--text-soft); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 13px var(--mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumb-here { color: var(--text); }
.site-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
               color: var(--muted); background: var(--field); border: 1px solid var(--border); border-radius: 8px; }
.site-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; color: var(--text); }
.admin-banner { background: var(--admin-bg); border-color: var(--admin-border); }
.admin-tag { font: 600 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--admin-text);
             padding: 2px 8px; border: 1px solid var(--admin-border); border-radius: 4px; }

main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; }

h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
section { margin-top: 2rem; }
.lede { color: var(--muted); margin: 0 0 1.25rem; }
.note, .empty { color: var(--muted); font-size: 0.85rem; }
[x-cloak] { display: none !important; }

.tag {
  font-size: 0.75rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  white-space: nowrap;
}

form.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}
form.filters label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
form.filters select, form.filters input {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  max-width: 22rem;
}
.chip { display: inline-flex; gap: 0.5rem; align-items: baseline; margin: 0 0 1rem;
        padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.chip-clear { color: var(--muted); }
.sub { display: block; font-size: 0.8rem; color: var(--muted); }
td.purpose { font-size: 0.85rem; color: var(--muted); max-width: 22rem; }
.unclassified { color: var(--muted); }
@media (min-width: 60rem) { .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; align-items: start; } }
td.sources .cite + .cite { margin-left: 0.4rem; }
tr.incomplete td { color: var(--muted); }
table.field-funders td { vertical-align: top; }
table.data.field-funders th, table.data.field-funders td { padding: 0.4rem 0.5rem; }
.change { display: block; }
.change .quiet { font-size: 0.8rem; margin-left: 0.25rem; white-space: nowrap; }
.pager { display: flex; gap: 1.5rem; justify-content: center; margin: 1rem 0; color: var(--muted); }

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0;
}
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
/* A person's correction of a fact: one quiet line until opened. */
details.correct { font-size: 0.8rem; color: var(--muted); }
details.correct summary { cursor: pointer; }
details.correct form { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }

/* An entity page's header: the facts, with the latest return's figures beside them at desktop width,
   then one quiet line on the record itself. */
.overview { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .overview { grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: start; } }
.summary { max-width: 28rem; }
.summary-caption { margin: 0 0 0.5rem; font-size: 0.8rem; color: var(--muted); }
.figures { margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 1rem 2.5rem; }
.figures dt { font-size: 0.8rem; color: var(--muted); }
.figures dd { margin: 0; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.record { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; margin: 1.25rem 0 0;
          font-size: 0.85rem; color: var(--muted); }
.record form { display: inline; }
.record button { font-size: 0.8rem; }

/* History and Named in: complete, but read as the appendix they are. */
section.audit { font-size: 0.85rem; }
section.audit h2 { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
section.audit table.data th { color: var(--muted); }

.cite { position: relative; font-size: 0.75rem; font-weight: normal; }
.cite-toggle {
  font: inherit;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.cite-toggle:hover, .cite-toggle:focus-visible, .cite-toggle[aria-expanded="true"] { color: var(--accent); }
/* The popover hangs from the marker's right edge (an h2's from its left), so a marker near a card's
   edge would push it past the card, which clips it (.p-card's overflow: hidden). The cite component
   in base.html measures it on opening and slides it back inside with a transform. */
.cite-body {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 1.4rem;
  width: max-content;
  max-width: min(34rem, 80vw);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
  overflow-wrap: anywhere;
}
h2 .cite-body { left: 0; right: auto; }
.cite-figure { font-size: inherit; }
.cite-figure .cite-toggle { color: inherit; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.cite-figure .cite-body { text-align: left; font-size: 0.75rem; }
.cite-body code { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.cite-date { color: var(--muted); }

.mono { font-family: var(--mono); font-size: 0.9em; white-space: nowrap; }
.mono.wrap { white-space: normal; overflow-wrap: anywhere; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date { white-space: nowrap; }
td.locator { white-space: normal; overflow-wrap: anywhere; font-size: 0.8em; color: var(--muted); }
a.quiet { color: var(--muted); font-size: 0.85em; }
a.quiet:hover, a.quiet:focus-visible { color: var(--accent); }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
table.data th {
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
table.data th.num { text-align: right; }
table.data th, table.data td { padding: 0.5rem 0.75rem; }
table.data tbody tr + tr td { border-top: 1px solid var(--border); }
table.data tbody tr:hover { background: var(--row-hover); }
table.data.compact { width: auto; min-width: 28rem; }
table.data .empty { color: var(--muted); text-align: center; padding: 2rem; }

@media (max-width: 40rem) {
  main { padding: 1rem; }
  table.data { display: block; overflow-x: auto; }
  .figures { gap: 1rem 1.5rem; }
  .figures dd { font-size: 1.1rem; }
}

.review-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-top: 1rem; }
.review-actions label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.review-actions input, form button, td.action button {
  font: inherit;
  padding: 0.3rem 0.6rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.review-actions input[name="note"] { width: 20rem; }
ul.plain { list-style: none; padding: 0; margin: 0.5rem 0; }
ul.plain li { margin: 0.25rem 0; }
kbd { font: 0.75rem ui-monospace, monospace; padding: 0 0.3rem; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); }
form button { cursor: pointer; }
form button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { cursor: not-allowed; opacity: 0.6; }
td.action { white-space: nowrap; }
td.action form { display: inline; margin-left: 0.5rem; }
td.action form:first-child { margin-left: 0; }
.job-state { font-weight: 500; }
.job-running, .job-cancelling { color: var(--accent); }
.job-failed, .job-aborted { color: #b3261e; }
.job-queued, .job-retrying, .job-cancelled { color: var(--muted); }
table.log td { vertical-align: top; }
table.log pre, pre.log { margin: 0; font-family: var(--mono); font-size: 0.85em; white-space: pre-wrap; word-break: break-word; }
pre.log { padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
tr.log-warning td, tr.log-error td { color: #b3261e; }
tr.log-step td { padding-top: 0.6rem; }
tr.log-step pre { font-weight: 600; }
.flash { padding: 0.5rem 0.75rem; border-left: 3px solid var(--accent); background: var(--surface); }
.default-submit { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.error { color: #b3261e; }

/* An organization's programs, in its own words: a long description shows its first lines. */
table.programs td { vertical-align: top; }
@media (min-width: 48rem) { td.program { min-width: 20rem; } }
.filed-lines { white-space: pre-line; }
.filed-lines.clamped { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
button.more { font: inherit; font-size: 0.8rem; color: var(--accent); background: none; border: none; padding: 0; cursor: pointer; }

/* The public organization page (app/web/public), from the org page archetype: the card, its
   head row, the chips and the pair. */
.public main { display: flex; flex-direction: column; gap: 20px; }
.public h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; }
.p-aside { font-size: 13px; margin: 0.75rem 0 0; }
.p-muted { margin: 0; font-size: 14px; color: var(--muted); }
.p-small { font-size: 12px; }
.p-card { border: 1px solid var(--border-strong); border-radius: 10px; margin: 0; overflow: hidden; }
.p-head { padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.p-avatar { flex: 0 0 52px; height: 52px; border-radius: 10px; background: var(--border); color: var(--muted);
            display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.p-what { flex: 1 1 600px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.p-actions { display: flex; gap: 8px; }
.p-button { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
            font: inherit; font-size: 14px; cursor: pointer; }
.p-button-dark { border: 0; background: var(--text); color: var(--bg); font-weight: 500; }
.p-mission { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-soft); max-width: 760px; }
.p-works { margin: 0; font-size: 14px; color: var(--text-soft); }
.p-areas { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-soft); }
.p-areas ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-soft); }
.p-chip { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
.p-chip-lead { border-color: var(--text); font-weight: 500; }
.p-chips .p-muted { font-size: 13px; align-self: center; }
.p-pair { padding: 0 20px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.p-box { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
         font-size: 14px; color: var(--text-soft); }
.p-box-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.p-giving { margin: 0; padding: 0; list-style: none; }
.p-giving li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.p-amount { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* A public card's sources (public/_sources.html): a pill with a badge per kind of source, which
   opens a panel on the right listing them. */
.src-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--border);
            border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.src-pill:hover, .src-pill[aria-expanded="true"] { border-color: var(--border-strong); color: var(--text-soft); }
.src-badges { display: inline-flex; }
.src-badges .src-badge + .src-badge { margin-left: -6px; }
.src-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px;
             border-radius: 50%; border: 2px solid var(--surface); font-size: 10px; font-weight: 600; line-height: 1; }
.src-badge-irs { background: #1F3A5F; color: #fff; }
.src-badge-web { background: var(--accent-tint); color: var(--accent); }
.src-badge-synapse { background: var(--text); color: var(--bg); }
.src-badge-other { background: var(--border); color: var(--muted); }
.src-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(420px, 100vw); overflow-y: auto;
             background: var(--surface); border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgb(0 0 0 / 0.08); }
.src-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
            background: var(--surface); border-bottom: 1px solid var(--border); font-weight: 500; }
.src-close { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
             color: var(--text-soft); font-size: 18px; line-height: 1; cursor: pointer; }
.src-list { list-style: none; margin: 0; padding: 4px 20px 20px; }
.src-entry { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.src-entry:last-child { border-bottom: 0; }
.src-publisher { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.src-publisher .src-badge { border: 0; }
.src-title { font-size: 15px; color: var(--text); }
.src-title a { color: inherit; }
.src-quote, .src-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-soft);
                        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.src-facts { margin: 0; font-size: 13px; color: var(--text-soft); }
.src-when { margin: 0; font-size: 12px; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .src-panel { box-shadow: -8px 0 24px rgb(0 0 0 / 0.4); }
}
.p-foot { padding: 0 20px 16px; }

/* ---- Strategy search (public/search.html) ---------------------------------------------------
   Option A in one centred 760px column: the brand alone above, then on the home page the h1,
   the box with its button under it at the right and the examples as hairline rows, vertically
   centred; on a result the box, the first lookalikes as ranked hairline rows with fit dots, the
   top funders as three cards with their grant lines (B's cards in A's type). */
.s-page .site-header { border-bottom: 0; }
.s-page .site-row { max-width: 760px; padding: 20px 16px; }
.s-page main { max-width: 760px; padding: 0 16px 96px; gap: 0; }
.s-home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.s-home main { flex: 1 1 auto; width: 100%; justify-content: center; padding: 48px 16px 76px; }
.s-page section { margin: 0; }
.s-box { display: flex; flex-direction: column; }
.public .s-box h1 { font-size: 44px; line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 32px; max-width: 16em; }
.s-form { display: flex; flex-direction: column; align-items: flex-end; }
/* Two lines to start, growing with the words to three, then scrolling (search.html has the
   fallback for browsers without field-sizing). */
.s-form textarea { display: block; width: 100%; resize: none; overflow-y: auto; padding: 12px 14px;
                   font: 400 19px/1.45 var(--font); color: var(--text); background: var(--surface);
                   border: 1px solid var(--border-strong); border-radius: 6px;
                   field-sizing: content; min-height: calc(2 * 1.45em + 26px); max-height: calc(3 * 1.45em + 26px); }
.s-form textarea::placeholder { color: var(--muted); }
.s-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.s-compact .s-form textarea { font-size: 16px; }
.s-button { margin-top: 12px; font: 600 15px/1 var(--font); color: var(--on-accent); background: var(--accent); border: 0;
            border-radius: 6px; padding: 13px 18px; cursor: pointer; white-space: nowrap; }
.s-button:hover { background: var(--accent-hover); color: var(--on-accent); }  /* the admin form button rule above would colour the label */
.s-examples { margin-top: 40px; }
.s-examples-head { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.s-examples ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.s-examples li { border-bottom: 1px solid var(--border); }
.s-example { display: block; padding: 12px 8px 12px 0; font-size: 15px; line-height: 1.45; color: var(--text-soft); }
.s-example:hover { text-decoration: none; background: var(--accent-tint); color: var(--text);
                   padding-left: 8px; margin-left: -8px; }

/* A section: title, a hairline lead, the count on the right; then its rows under a rule in ink. */
.s-page .s-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 48px 0 0; font-size: 20px;
                  font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.s-lead { flex: 1 1 24px; height: 1px; background: var(--border); align-self: center; }
.s-count { font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.s-every a { color: var(--muted); }
.s-every a:hover { color: var(--accent); }
.s-lookalikes { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--text); counter-reset: look; }
.s-lookalikes li { counter-increment: look; display: grid; grid-template-columns: 24px minmax(0, 1fr) 150px auto;
                   align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.s-lookalikes li::before { content: counter(look); font-size: 13px; color: var(--muted); text-align: right; }
.s-name { font-weight: 500; min-width: 0; }
.s-place { font-size: 13px; color: var(--muted); }
.s-dots { display: inline-flex; gap: 3px; }
.s-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.s-dots i.on { background: var(--accent); }
.s-more { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* The funders: three panels across (B's cards in A's type), each its top (name, place, the
   dollars and their scale), a hairline, then its grant lines stacked: recipient and total, the
   years, the purposes. */
.s-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--border-strong);
          border-radius: 6px; }
.s-card-top { padding: 16px 16px 14px; }
.s-f-name { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.s-f-place { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.s-f-amount { margin: 16px 0 0; font: 500 22px/1.2 var(--mono); letter-spacing: -0.02em; }
.s-f-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.s-lines { list-style: none; margin: 0; padding: 4px 16px; border-top: 1px solid var(--border-strong); }
.s-line { padding: 10px 0; }
.s-line + .s-line { border-top: 1px solid var(--border); }
.s-line-a { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.s-line-name { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.s-line-amount { flex: none; font: 500 13px var(--mono); white-space: nowrap; }
.s-line-years { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.s-line-purpose { margin: 3px 0 0; font-size: 13px; color: var(--text-soft); }
.s-f-more { margin: 0; padding: 0 16px 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .s-cards { grid-template-columns: minmax(0, 1fr); } }

.public .s-empty { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-soft); }
.s-empty p { margin: 0; max-width: 66ch; }
/* Footnotes: a short rule, then one paragraph of small print. */

@media (max-width: 640px) {
  .public .s-box h1 { font-size: 32px; margin-bottom: 22px; }
  .s-home main { padding: 24px 16px 48px; }
  .s-lookalikes li { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 10px; }
  .s-place { grid-column: 2; grid-row: 2; }
  .s-dots { grid-column: 3; grid-row: 1; }
  .s-button { width: 100%; }
}
/* ---- end strategy search ---- */
