/* base.css: structure for every variant. Themes (assets/themes/{theme}.css) load AFTER this file and
   should only change the custom properties below plus purely visual details. Class names are documented
   in DESIGN_CONTRACT.md. Rules that protect the footer disclosure (size, contrast, never hidden) are marked LOCKED.
   Owner decision 20.10.2026: the ownership disclosure lives in the footer of every page; there is no top bar, no
   line under tables and no special styling of Fan Fusion's row, card or profile. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0eb;
  --ink: #1d1b18;
  --muted: #5d5850;
  --line: #d9d4ca;
  --accent: #2b5c8a;
  --accent-ink: #ffffff;
  --good: #2b5c8a;          /* published in full */
  --good-ink: #ffffff;
  --partial: #9cbcd6;       /* partly published */
  --partial-ink: #1d1b18;
  --none: #d6d3cd;          /* not found: always grey, never red */
  --none-ink: #1d1b18;
  --highlight: #f4efe2;     /* :target row tint (scorecard row linked from elsewhere) */
  --badge-bg: var(--ink);   /* the one row badge ("Highest published-terms score · month") */
  --badge-ink: var(--bg);
  --footer-bg: var(--surface-2); /* LOCKED pair: footer disclosure text (--footer-ink) must reach 7:1 on --footer-bg */
  --footer-ink: var(--ink);
  --focus: #c26b00;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 6px;
  --maxw: 72rem;
  --gutter: 16px;
  --space: 1rem;
  color-scheme: light;
}

/* ---------- reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1rem/1.55 var(--font-body); overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; }
p { margin: 0 0 0.75rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
code { font-family: var(--font-mono); font-size: 0.9em; }
button, input, select { font: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 10; background: var(--surface); color: var(--ink); padding: 0.5rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 0.5rem; }

.sample-banner { background: #fff1b8; color: #1d1b18; border-bottom: 1px solid #c9b25a; }
.sample-banner__text { max-width: var(--maxw); margin: 0 auto; padding: 0.4rem var(--gutter); font-size: 0.9rem; }

/* ---------- header / nav */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 0.75rem var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; justify-self: start; }
.brand__mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius); background: var(--ink); color: var(--bg); font: 700 0.75rem/1 var(--font-mono); letter-spacing: 0.02em; }
/* the monogram is drawn from data-mark, so the page text reads "OF Agency Rankings", not "OFOF Agency Rankings" */
.brand__mark::before { content: attr(data-mark); }
.brand__tagline { margin: 0; color: var(--muted); font-size: 0.9rem; }
.site-nav { min-width: 0; margin-top: 0.25rem; }
.site-nav__list { list-style: none; margin: 0; padding: 0 0 0.1rem; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.site-nav__item { flex: 0 0 auto; }
.site-nav__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.6rem; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav__link:hover { border-bottom-color: var(--line); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- layout */
.site-main { display: block; }
.site-main:focus { outline: none; }
.site-main__inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gutter) 2rem; min-width: 0; }
.breadcrumbs__list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin-right: 0.25rem; color: var(--line); }
.page-head { margin: 0.5rem 0 1.5rem; }
.page-title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); letter-spacing: -0.01em; }
.page-head__lead { font-size: 1.1rem; color: var(--ink); max-width: 46rem; }
.page-head__meta { color: var(--muted); font-size: 0.9rem; }
.section { margin: 2.25rem 0; min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.section-head__title { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.section-head__meta { margin: 0; color: var(--muted); font-size: 0.875rem; }
.section-more { margin: 1rem 0; }
.caveat { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }
.absent { color: var(--muted); }
.crit-ref { font-family: var(--font-mono); font-size: 0.8em; color: var(--muted); }
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1rem 0; padding: 0.5rem 1rem; border-left: 3px solid var(--line); color: var(--ink); }

/* ---------- home */
.lead { margin: 0.5rem 0 1.5rem; }
.lead__kicker { color: var(--muted); font-size: 0.875rem; font-family: var(--font-mono); margin-bottom: 0.4rem; }
.lead__title { max-width: 52rem; }
.answer { max-width: 52rem; margin-top: 0.75rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.answer__text { font-size: 1.075rem; margin: 0 0 0.4rem; }
.answer__caveat { margin: 0; color: var(--muted); font-size: 0.9rem; }
.answer__top { margin: 0 0 0.4rem; }
.home__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
.findings__list, .how__list { padding-left: 1.2rem; }
.findings__item, .how__item { margin-bottom: 0.5rem; }
.findings__link { color: var(--ink); text-decoration-color: var(--line); }
.findings__link:hover { text-decoration-color: currentColor; }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; counter-reset: step; }
.steps__item { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.steps__item::before { content: counter(step); display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 0.5rem; }
.steps__title { font-size: 1.05rem; }
.steps__text { margin: 0; color: var(--muted); }

/* ---------- chips (filters) and status chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.25rem 0; }
.chips__label { margin: 0; font-weight: 600; font-size: 0.9rem; }
.chips__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-link, .tool-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 0.8rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.9rem; cursor: pointer;
}
.chip-link:hover, .tool-chip:hover { border-color: var(--accent); }
.chip-link__count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.tool-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.8rem; line-height: 1.5; white-space: nowrap; font-weight: 600; }
.chip__glyph { font-size: 0.8em; }
/* status glyphs come from CSS, so extracted text reads "Published in full", not "● Published in full" */
.chip--full .chip__glyph::before { content: "\25CF"; }
.chip--partial .chip__glyph::before { content: "\25D0"; }
.chip--none .chip__glyph::before { content: "\25CB"; }
.chip--full { background: var(--good); color: var(--good-ink); }
.chip--partial { background: var(--partial); color: var(--partial-ink); }
.chip--none { background: var(--none); color: var(--none-ink); }
/* score ring markup (the terms theme styles it; other themes may opt in) */
.scorering { display: none; }
.rank-badge { display: inline-block; vertical-align: middle; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; white-space: normal; }
.col-agency .rank-badge { margin-top: 0.2rem; }
.dots { display: inline-flex; gap: 3px; flex-wrap: nowrap; }
.dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dot--full { background: var(--good); }
.dot--partial { background: var(--partial); }
.dot--none { background: transparent; box-shadow: inset 0 0 0 2px var(--none); }

/* ---------- tables */
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
/* keeps the .visually-hidden labels of the C01-C12 dots inside the scroll box (no page overflow on phones) */
.table-scroll, .scorecard-wrap { position: relative; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.data-table__caption { caption-side: top; text-align: left; padding: 0.6rem 0.75rem; color: var(--muted); font-size: 0.85rem; }
.data-table th, .data-table td { padding: 0.55rem 0.7rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--surface-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; border-top: 0; }
.data-table tbody th { font-weight: 600; }
.data-table .sort-button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; }
.data-table .sort-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.data-table .sort-button::after { content: "\2195"; font-size: 0.85em; color: var(--muted); }
.data-table th[aria-sort="ascending"] .sort-button::after { content: "\2191"; color: var(--ink); }
.data-table th[aria-sort="descending"] .sort-button::after { content: "\2193"; color: var(--ink); }
.db-table .col-agency { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.db-table thead .col-agency { background: var(--surface-2); z-index: 2; }
.rank-row[hidden] { display: none; }
.col-rank, .col-overall { white-space: nowrap; width: 3.5rem; }
.col-score { min-width: 6.5rem; white-space: nowrap; }
.col-agency { min-width: 9rem; }
.col-full, .col-checked, .col-nf { white-space: nowrap; }
.col-fact { min-width: 12rem; max-width: 24rem; font-size: 0.875rem; }
.col-dots { white-space: nowrap; }
.score { white-space: nowrap; }
.score__value { font-weight: 700; font-size: 1.05em; }
.score__max { color: var(--muted); font-size: 0.85em; }
.scorebar { display: block; width: 100%; max-width: 6rem; height: 8px; margin-top: 0.3rem; }
.scorebar__track { fill: var(--surface-2); }
.scorebar__fill { fill: var(--accent); }
.ranking__note { color: var(--muted); font-size: 0.9rem; }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.table-tools[hidden] { display: none; }
.table-tools__search { min-height: 2.5rem; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: 100%; max-width: 18rem; }
.table-tools__count { color: var(--muted); font-size: 0.875rem; margin: 0; }
.table-tools__label { font-size: 0.9rem; font-weight: 600; }

/* ---------- stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; }
.stat-tile__value { font-size: 2rem; font-weight: 700; line-height: 1.1; margin: 0 0 0.25rem; font-variant-numeric: tabular-nums; }
.stat-tile__label { margin: 0 0 0.25rem; font-weight: 600; }
.stat-tile__link { color: var(--ink); }
.stat-tile__meta { margin: 0; color: var(--muted); font-size: 0.8rem; }
.stats-strip .stat-tile__value { font-size: 1.6rem; }
.stat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.75rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; scroll-margin-top: 1rem; }
.stat:target { outline: 3px solid var(--focus); }
.stat__value { font-size: 1.9rem; font-weight: 700; margin: 0 0 0.2rem; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 1rem; }
.stat__sentence { margin-bottom: 0.4rem; }
.stat__meta { margin: 0; color: var(--muted); font-size: 0.8rem; }

/* ---------- FAQ, downloads, citation */
.faq__item { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq__q { font-size: 1.05rem; }
.faq__a p:last-child { margin-bottom: 0; }
.downloads__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0.5rem 1.5rem; }
.downloads__link { font-family: var(--font-mono); font-weight: 600; }
.downloads__desc { display: block; color: var(--muted); font-size: 0.875rem; }
.downloads__note { color: var(--muted); font-size: 0.875rem; }
.citation__code { display: block; padding: 0.75rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); white-space: normal; overflow-wrap: anywhere; }
.citation__note { color: var(--muted); font-size: 0.875rem; }
.button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 600; }
.button--small { min-height: 2.25rem; font-size: 0.9rem; }
.button[hidden] { display: none; }

/* ---------- cards (guide home) */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; }
.card__inner { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.card__rank { margin: 0; font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__inner > .rank-badge { align-self: flex-start; }
.card__title a { color: var(--ink); }
.card__band { margin: 0; color: var(--muted); font-size: 0.875rem; }
.card__facts { margin: 0.25rem 0; display: grid; gap: 0.25rem; }
.card__fact { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.875rem; }
.card__fact dt { color: var(--muted); }
.card__fact dd { margin: 0; }
.card__more { margin: auto 0 0; }

/* ---------- profile (AI-first, 21.10.2026): summary, key-terms list and quick answers come before the scorecard */
.summary { margin: 0.5rem 0 1.75rem; max-width: 52rem; }
.summary__score { margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.4rem; }
.summary__label { color: var(--muted); font-size: 0.9rem; }
.summary__value { font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.summary__max { color: var(--muted); font-size: 1rem; }
.summary__rank { color: var(--muted); font-size: 0.95rem; }
.summary .rank-badge { align-self: center; }
.summary__text { font-size: 1.075rem; margin-bottom: 0.6rem; }
.summary__quote { margin-bottom: 0.6rem; }
.crit-sentence { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.crit-sentence a { color: inherit; }
.key-terms__list { margin: 0; max-width: 60rem; }
.key-terms__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.key-terms__term { font-weight: 600; font-size: 0.9rem; }
.key-terms__value { margin: 0; }
.key-terms__rate { display: block; }
.key-terms__more, .key-terms__src { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; overflow-wrap: anywhere; }
.quick-answers .faq__a p { max-width: 52rem; }
.nearby__text, .nearby__lists { max-width: 52rem; }
.questions__guide { white-space: nowrap; }

.profile__head { margin: 0.5rem 0 1rem; }
.profile__meta { color: var(--muted); font-size: 0.9rem; }
.score-block__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.score-block__score { margin: 0; line-height: 1; }
.score-block__value { font-size: 3.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-block__max { font-size: 1.25rem; color: var(--muted); }
.score-block .scorebar { max-width: 12rem; height: 10px; }
.score-block__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.crit-strip { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: 0.25rem 0.75rem; font-size: 0.85rem; }
.crit-strip__item a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); }
.crit-strip__status { color: var(--muted); }
.terms-table .col-term { width: 14rem; }
.terms-table .col-source { min-width: 10rem; font-size: 0.85rem; overflow-wrap: anywhere; }
.scorecard-wrap { max-width: 100%; overflow-x: auto; }
.scorecard { background: var(--surface); }
.scorecard .col-criterion { min-width: 10rem; }
.scorecard .col-points, .scorecard .col-status, .scorecard .col-checked { white-space: nowrap; }
.scorecard .col-evidence { min-width: 16rem; }
.scorecard .col-source { font-size: 0.85rem; overflow-wrap: anywhere; min-width: 8rem; }
.scorecard__row { scroll-margin-top: 1rem; }
.scorecard__row:target > * { background: var(--highlight); }
.evidence__quote { margin-bottom: 0.3rem; }
.quote { font-style: italic; }
.evidence__paraphrase { margin-bottom: 0.3rem; }
.evidence__absent { margin-bottom: 0.3rem; color: var(--muted); }
.evidence__details { font-size: 0.85rem; color: var(--muted); }
.evidence__details summary { cursor: pointer; min-height: 1.75rem; }
.evidence__pages { overflow-wrap: anywhere; padding-left: 1rem; }
.source-link { overflow-wrap: anywhere; }
.questions__list { padding-left: 1.4rem; }
.questions__item { margin-bottom: 0.6rem; }
.questions__q { font-weight: 600; }
.questions__crit { display: block; color: var(--muted); font-size: 0.85rem; }
.facts { margin: 0; }
.facts__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.facts__term { font-weight: 600; font-size: 0.9rem; }
.facts__value { margin: 0; }
.bands { margin: 0; }
.bands .facts__row, .bands__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.bands__term { font-weight: 600; }
.bands__value { margin: 0; }
.history__pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.history__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; }
.history__label { margin: 0 0 0.2rem; color: var(--muted); font-size: 0.85rem; }
.history__value { margin: 0; font-weight: 600; }
.profile__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
.claims__item { margin-bottom: 0.4rem; }
.reply__status { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--none); color: var(--none-ink); font-weight: 600; }
.reply__text { margin: 0 0 0.5rem; padding: 0.5rem 1rem; border-left: 3px solid var(--line); }
.nearby__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }

/* ---------- compare, filters, criteria */
.compare-diff__list { padding-left: 1.2rem; max-width: 52rem; }
.compare-diff__list li { margin-bottom: 0.45rem; }
.compare-diff__same { color: var(--muted); max-width: 52rem; }
.compare__para { margin: 0.3rem 0 0; font-size: 0.875rem; }
.best__rule, .best__near { color: var(--muted); font-size: 0.95rem; max-width: 52rem; }
.best__near { margin-top: 0.75rem; }
.commission-table .col-agency { min-width: 9rem; }
.commission-table .col-service { min-width: 9rem; }
.commission-table .col-rate, .commission-table .col-basis, .commission-table .col-score, .commission-table .col-checked { white-space: nowrap; }
.commission-table .col-note { min-width: 14rem; max-width: 26rem; font-size: 0.875rem; color: var(--muted); }
.commission-table .col-source { font-size: 0.85rem; overflow-wrap: anywhere; min-width: 8rem; }
.band-list__dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: 0 0 auto; }
.band-list--full .band-list__dot { background: var(--good); }
.band-list--partial .band-list__dot { background: var(--partial); }
.band-list--none .band-list__dot { box-shadow: inset 0 0 0 2px var(--none); }
.data-note { max-width: 46rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.data-note p:last-child { margin-bottom: 0; }
.compare-table th:first-child { min-width: 9rem; }
.compare-table td { min-width: 10rem; }
.compare__points { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.compare__quote, .compare__absent { margin: 0.3rem 0 0; font-size: 0.875rem; }
.compare__absent { color: var(--muted); }
.compare-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin-bottom: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-picker[hidden] { display: none; }
.compare-picker__row { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.compare-picker__label { font-weight: 600; font-size: 0.9rem; }
.compare-picker__select { min-height: 2.75rem; max-width: 100%; padding: 0 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.compare-picker__msg { flex-basis: 100%; margin: 0; color: var(--muted); }
.pair-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.35rem 1rem; }
.filter-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.filter-list__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; }
.filter-list__item--empty { background: transparent; }
.filter-list__link, .filter-list__name { font-weight: 600; }
.filter-list__count { color: var(--muted); font-size: 0.875rem; }
.filter-list__rule { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.fact-source { display: block; font-size: 0.8rem; margin-top: 0.2rem; }
.related__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.band-list { margin-bottom: 1.25rem; }
.band-list__title { font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.band-list__count { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.band-list__items { padding-left: 1.2rem; }
.band-list__item { margin-bottom: 0.35rem; }
.band-list__evidence { color: var(--ink); font-size: 0.925rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin: 2rem 0 1rem; }
.rules { padding-left: 1.4rem; }
.rules__item { margin-bottom: 0.4rem; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.guide-list__title { font-size: 1.15rem; }
.guide-list__desc { color: var(--muted); margin: 0; }
.changes { list-style: none; padding: 0; }
.changes__item { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.changes__date { margin: 0; color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); }
.changes__title { font-size: 1.05rem; margin: 0.2rem 0; }

/* ---------- charts */
.chart { margin: 1.5rem 0; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 52rem; }
.chart__caption { display: block; margin-bottom: 0.75rem; }
.chart__title { display: block; font-weight: 700; font-size: 1.05rem; }
.chart__sub { display: block; color: var(--muted); font-size: 0.85rem; }
.chart-legend { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.85rem; }
.chart-legend__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.swatch--full { background: var(--good); }
.swatch--partial { background: var(--partial); }
.swatch--none { background: var(--none); }
.hbar { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.hbar__row { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; grid-template-areas: "label value" "bar bar"; gap: 0.15rem 0.5rem; align-items: center; }
.hbar__label { grid-area: label; font-size: 0.875rem; }
.hbar--scores .hbar__row { grid-template-columns: minmax(0, 1fr) 2rem; }
.hbar__svg { grid-area: bar; display: block; width: 100%; height: 14px; }
.hbar__value { grid-area: value; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.875rem; font-weight: 600; }
.seg--full, .col--score { fill: var(--good); }
.seg--partial { fill: var(--partial); }
.seg--none { fill: var(--none); }
.chart__plot { max-width: 34rem; }
.histogram { display: block; width: 100%; height: auto; }
.axis-grid { stroke: var(--line); stroke-width: 1; }
.axis-base { stroke: var(--muted); stroke-width: 1; }
.axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.value-label { fill: var(--ink); font-size: 11px; font-weight: 600; font-family: var(--font-body); }
.chart__table { margin-top: 0.75rem; font-size: 0.9rem; }
.chart__table summary { cursor: pointer; color: var(--accent); min-height: 2rem; }

/* ---------- prose classes used by content/ files (the content writer's hooks) */
.lede { font-size: 1.1rem; }
.guide-meta, .report-meta { color: var(--muted); font-size: 0.9rem; border-left: 3px solid var(--line); padding-left: 0.75rem; }
blockquote.citation { margin: 1rem 0; padding: 0.75rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.85rem; overflow-wrap: anywhere; }
blockquote.citation p:last-child { margin-bottom: 0; }
.score-caveat { color: var(--muted); font-size: 0.9rem; }
.legal-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem 1rem; }
.legal-details dt { font-weight: 600; margin-top: 0.4rem; }
.legal-details dd { margin: 0; }
.findings li { margin-bottom: 0.5rem; }
.changelog { padding-left: 1.4rem; }
.changelog > li { margin-bottom: 1rem; }
.corrections-log { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.corrections-log tr.empty td { color: var(--muted); font-style: italic; }
.steps-list { padding-left: 1.4rem; }
.steps-list li { margin-bottom: 0.4rem; }
.compare__subhead { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; }
@media (min-width: 40rem) {
  .legal-details { grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); }
  .legal-details dt { margin-top: 0; }
}

/* ---------- footer */
.site-footer { margin-top: 3rem; background: var(--footer-bg); color: var(--footer-ink); border-top: 1px solid var(--line); font-size: 0.9rem; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem var(--gutter) 2rem; }
/* LOCKED: the ownership disclosure. Real text, >= 1rem, --footer-ink on --footer-bg (7:1), never hidden, collapsed or clipped. */
.site-footer__disclosure { font-size: 1rem; line-height: 1.5; max-width: 52rem; color: var(--footer-ink); margin: 0 0 0.5rem; }
.site-footer__disclosure-link { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.site-footer__caveat { color: var(--muted); max-width: 52rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem 2rem; margin: 1.25rem 0; }
/* lean footer (21.10.2026): one row of links instead of four columns */
.site-footer__nav { margin: 1rem 0; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.site-footer__links a { color: var(--footer-ink); }
.site-footer__heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 0.3rem; }
.site-footer__list a { color: var(--footer-ink); }
.site-footer__legal { color: var(--muted); }

/* ---------- small screens: scorecard rows stack (semantic table kept) */
@media (max-width: 47.99rem) {
  .scorecard, .scorecard tbody, .scorecard caption { display: block; width: 100%; }
  .scorecard thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .scorecard tr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.15rem 0.6rem; border-top: 1px solid var(--line); padding: 0.6rem 0.75rem; }
  .scorecard th, .scorecard td { display: block; border: 0; padding: 0; min-width: 0 !important; white-space: normal !important; }
  .scorecard .col-criterion, .scorecard .col-evidence, .scorecard .col-source, .scorecard .col-checked { grid-column: 1 / -1; }
  .scorecard .col-criterion { font-size: 1rem; }
  .scorecard .col-evidence, .scorecard .col-source { margin-top: 0.25rem; }
  .scorecard .col-source::before, .scorecard .col-checked::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.8rem; }
  .scorecard .col-checked { font-size: 0.8rem; color: var(--muted); }
  .scorecard-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
}

@media (min-width: 40rem) {
  .facts__row, .bands .facts__row, .bands__row, .key-terms__row { grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); gap: 1rem; }
  .history__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hbar__row { grid-template-columns: minmax(10rem, 22rem) minmax(0, 1fr) 3rem; grid-template-areas: "label bar value"; }
  .hbar--scores .hbar__row { grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr) 2rem; }
}

@media (min-width: 60rem) {
  .site-header__inner { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1.5rem; padding-top: 0.6rem; }
  .brand__tagline { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; }
  .home__grid, .profile__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-nav, .table-tools, .skip-link, .citation__actions, .compare-picker { display: none !important; }
  .site-footer__disclosure { color: #000; }
  .table-scroll { overflow: visible; border: 0; }
}
