/* Fellowship Index — "catalogue card" design.
   Plum and ink on a plum-tinted white, one warm signal colour kept for deadlines.
   Headings: Bricolage Grotesque. Body: Atkinson Hyperlegible. Tokens first. */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2-variations'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-hyperlegible-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --page: #fbfafc;
  --surface: #ffffff;
  --band: #f3eef6;
  --ink: #1e1624;
  --text-2: #4f4757;
  --muted: #5e5566;
  --line: #e4dee8;
  --line-strong: #d6ccdc;
  --plum: #6a2c70;
  --plum-hover: #4a1a50;
  --plum-tint: #f3e9f4;
  --plum-soft: #d9bfdc;
  --lilac: #b98abf;
  --lilac-soft: #efe3f1;
  --on-plum: #ffffff;
  --signal: #a13a17;
  --signal-fill: #c2461e;
  --peach: #f2b8a0;
  --ok: #1d6b4f;
  --foot: #1e1624;
  --foot-text: #e9e2ee;
  --foot-muted: #c9bfd0;
  --foot-link: #f2b8a0;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --wrap: 76rem;
  --radius: 10px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --page: #141016; --surface: #1e1822; --band: #19131c; --ink: #f1ebf4; --text-2: #d3c8d9; --muted: #b6aabd;
  --line: #342b3a; --line-strong: #4a3f51; --plum: #d9a6e0; --plum-hover: #f3d4f7; --plum-tint: #2a2030;
  --plum-soft: #4b3352; --lilac: #8f6a96; --lilac-soft: #2c2231; --on-plum: #1e1028; --signal: #f2a07f;
  --signal-fill: #f2a07f; --peach: #8a4a33; --ok: #7fd1ad; --foot: #0e0b10; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page: #141016; --surface: #1e1822; --band: #19131c; --ink: #f1ebf4; --text-2: #d3c8d9; --muted: #b6aabd;
    --line: #342b3a; --line-strong: #4a3f51; --plum: #d9a6e0; --plum-hover: #f3d4f7; --plum-tint: #2a2030;
    --plum-soft: #4b3352; --lilac: #8f6a96; --lilac-soft: #2c2231; --on-plum: #1e1028; --signal: #f2a07f;
    --signal-fill: #f2a07f; --peach: #8a4a33; --ok: #7fd1ad; --foot: #0e0b10; color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal-fill); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.05rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-weight: 800; font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.15rem); }
h3 { font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (max-width: 22.5rem) { .wrap { padding: 0 1rem; } }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 0.75rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.35rem; letter-spacing: -0.02em; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.mark-card { fill: var(--plum); }
.mark-line { fill: var(--surface); }
.mark-line-2 { fill: var(--signal-fill); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--plum); text-decoration: underline; text-underline-offset: 0.35em; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0 0.75rem; border: 2px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.icon-btn:hover { border-color: var(--plum); color: var(--plum); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 47.99rem) {
  .site-head .wrap { gap: 0.5rem; }
  .brand { font-size: 1.12rem; gap: 0.5rem; }
  .brand svg { width: 28px; height: 28px; }
  .menu-btn { display: inline-flex; padding: 0; width: 44px; order: 3; }
  [data-theme-toggle] { order: 2; padding: 0; width: 44px; }
  .hero-art svg { max-width: 340px; }
  .nav { display: none; width: 100%; order: 5; padding-bottom: 0.75rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--plum); color: var(--on-plum); }
.btn-primary:hover { background: var(--plum-hover); color: var(--on-plum); text-decoration: none; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Eyebrows, crumbs and meta ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.9rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum); }
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--signal-fill); }
.crumbs { font-size: 0.93rem; color: var(--muted); margin: 0 0 1.25rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.35rem; color: var(--line-strong); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); color: var(--text-2); max-width: 44rem; margin: 1.1rem 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; margin: 1.1rem 0 0; font-size: 0.93rem; color: var(--muted); }

/* ---------- Page heads ---------- */
.page-head { padding-top: 2.5rem; }
.page-head h1 { max-width: 54rem; }
.banner { margin: 1.75rem 0 0; border-radius: 12px; overflow: hidden; line-height: 0; }
.banner svg { display: block; width: 100%; height: auto; aspect-ratio: 10 / 3; }

/* ---------- Banner art ---------- */
.a-bg { fill: var(--lilac-soft); }
.a-plum { fill: var(--plum); }
.a-signal { fill: var(--signal-fill); }
.a-lilac { fill: var(--lilac); }
.a-peach { fill: var(--peach); }
.a-ink { fill: var(--ink); }
.a-surface { fill: var(--surface); }
.a-stroke { stroke: var(--ink); stroke-width: 2; }
.a-plum-soft { fill: var(--plum-soft); }
.a-lilac-soft { fill: var(--band); }
.a-rule { stroke: var(--plum-soft); stroke-width: 2; opacity: 0.6; }
.a-ink-s { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.a-ink-s2 { stroke: var(--ink); stroke-width: 3; fill: none; }
.a-dot { fill: var(--plum-soft); }
.a-band { fill: var(--band); }
.a-ink-line { stroke: var(--ink); stroke-width: 3; }
.a-on-plum { fill: var(--on-plum); font-family: var(--display); }

/* ---------- Home hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 3rem; }
.hero-copy { flex: 1.25 1 28rem; min-width: 0; }
.hero-art { flex: 1 1 22rem; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 540px; height: auto; }
.counts { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin: 2.25rem 0 0; }
.counts dt { font-size: 0.88rem; color: var(--muted); }
.counts dd { margin: 0; font-family: var(--display); font-weight: 750; font-size: 1.9rem; line-height: 1.1; }
.counts .counts-note { align-self: end; font-size: 0.88rem; color: var(--muted); max-width: 15rem; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head p { margin: 0.4rem 0 0; color: var(--muted); }

/* ---------- Years picker ---------- */
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.picker fieldset { border: 0; margin: 0; padding: 0; }
.picker legend { font-family: var(--display); font-weight: 750; font-size: 1.25rem; padding: 0; margin-bottom: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--page); }
.chip input:focus-visible + span { outline: 3px solid var(--signal-fill); outline-offset: 2px; }
.picker .hint { margin: 0.9rem 0 0; font-size: 0.93rem; color: var(--muted); }
.picker .result { margin: 0.9rem 0 0; font-weight: 700; }

/* ---------- Scheme index table (cards on phones) ---------- */
.index-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.index-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.index-table th { text-align: left; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0.9rem 0.75rem; border-bottom: 2px solid var(--ink); }
.index-table td { padding: 1rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.index-table th:first-child, .index-table td:first-child { padding-left: 1.25rem; }
.index-table th:last-child, .index-table td:last-child { padding-right: 1.25rem; }
.index-table tr:last-child td { border-bottom: 0; }
.index-table .scheme a { font-weight: 700; color: var(--ink); }
.index-table .scheme a:hover { color: var(--plum); }
.index-table .funder { display: block; font-size: 0.9rem; color: var(--muted); }
.tab { display: inline-block; padding: 0.1rem 0.65rem; border-radius: 5px 5px 0 0; border-bottom: 3px solid var(--plum); background: var(--plum-tint); font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.when { color: var(--muted); font-size: 0.95rem; }
.when strong { display: block; color: var(--signal); }
.checked { font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.fit { display: none; margin-top: 0.4rem; font-size: 0.85rem; font-weight: 700; }
.has-fit .fit { display: block; }
.fit[data-fit='yes'] { color: var(--ok); }
.fit[data-fit='part'] { color: var(--signal); }
.fit[data-fit='no'] { color: var(--muted); }
tr[data-dim='true'] td > *:not(.fit) { opacity: 0.55; }
@media (max-width: 47.99rem) {
  .index-box { background: transparent; border: 0; overflow: visible; }
  .index-table, .index-table tbody, .index-table tr, .index-table td { display: block; }
  .index-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .index-table tr { position: relative; margin: 2.1rem 0 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); }
  .index-table td, .index-table th:first-child, .index-table td:first-child, .index-table td:last-child { padding: 0.3rem 0; border: 0; }
  .index-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8rem; color: var(--muted); }
  .index-table td.where { position: absolute; top: -1.75rem; left: -1px; padding: 0; }
  .index-table td.where .tab { background: var(--plum); color: var(--on-plum); border-radius: 7px 7px 0 0; border: 0; padding: 0.15rem 0.8rem; }
  .index-table td.checked { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.6rem; }
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--plum); color: var(--ink); text-decoration: none; }
.card svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.card .body { padding: 1.1rem 1.25rem 1.35rem; }
.card .kicker { display: block; margin-bottom: 0.3rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum); }
.card h3 { font-size: 1.25rem; line-height: 1.25; }
.card p { margin: 0.5rem 0 0; color: var(--text-2); font-size: 0.98rem; }
/* Shorter cards (home page): the summary is cut to two lines; the full text is on the scheme's own page. */
.cards-brief .card p { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cards-brief .card h3 { font-size: 1.15rem; }

/* ---------- Steps ("How we check") ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.75rem; }
.steps li { border-top: 3px solid var(--ink); padding-top: 0.9rem; color: var(--text-2); }
.steps strong { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--ink); margin-bottom: 0.2rem; }

/* ---------- Article layout (scheme pages, guides) ---------- */
.article-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem 3rem; padding-top: 2.5rem; padding-bottom: 1rem; }
.article-side { flex: 1 1 15rem; min-width: 0; }
.article-main { flex: 999 1 34rem; min-width: 0; max-width: 46rem; }
.toc { border-top: 3px solid var(--ink); padding-top: 0.75rem; }
.toc h2 { font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.25rem; line-height: 2; font-size: 0.98rem; }
@media (min-width: 62rem) { .article-side { position: sticky; top: 1rem; } }
.prose h2 { margin: 2.75rem 0 0.8rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.55rem; }
.prose > :first-child { margin-top: 0; }
.ref { font-size: 0.78em; font-weight: 700; text-decoration: none; margin-left: 0.15rem; white-space: nowrap; }

.glance { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.glance-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--page); }
.glance-head h2 { margin: 0; font-size: 1.25rem; color: var(--page); }
.glance-head span { font-size: 0.9rem; opacity: 0.85; }
.glance dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.glance dl > div { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--line); }
.glance dt { font-size: 0.88rem; color: var(--muted); }
.glance dd { margin: 0; font-weight: 700; }
.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.85rem 1.25rem; }
.status strong { color: var(--signal); }
.status span { color: var(--muted); font-size: 0.95rem; }

.timeline { margin: 1.25rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.t-cap { margin: 0 0 0.6rem; font-weight: 700; }
.t-track { position: relative; height: 2rem; margin-bottom: 0.4rem; }
.t-win, .t-ext { position: absolute; top: 0; height: 100%; border-radius: 999px; }
.t-win { background: var(--plum); }
.t-ext { background: var(--peach); }
.t-unit { margin: 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
.t-axis { position: relative; height: 2.3rem; border-top: 2px solid var(--ink); }
.t-tick { position: absolute; top: -6px; transform: translateX(-50%); font-size: 0.8rem; color: var(--muted); text-align: center; white-space: nowrap; }
.t-tick::before { content: ''; display: block; width: 2px; height: 10px; margin: 0 auto 0.15rem; background: var(--ink); }
.t-tick:first-child { transform: none; text-align: left; }
.t-tick:first-child::before { margin: 0 0 0.15rem; width: 10px; height: 10px; border-radius: 50%; transform: translate(-4px, -2px); }
.t-tick:last-child { transform: translateX(-100%); text-align: right; }
.t-tick:last-child::before { margin: 0 0 0.15rem auto; }
.t-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--text-2); }
.t-key li::before { content: ''; display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 3px; margin-right: 0.4rem; vertical-align: -0.12rem; background: var(--plum); }
.t-key li.ext::before { background: var(--peach); }

.note { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--plum-tint); font-size: 0.98rem; }
.note strong { color: var(--plum-hover); }
.sources { margin-top: 2.75rem; border-top: 3px solid var(--ink); padding-top: 0.9rem; }
.sources h2 { font-size: 1.35rem; margin: 0 0 0.6rem; }
.sources ol { margin: 0; padding-left: 1.3rem; font-size: 0.97rem; color: var(--text-2); }
.sources li { margin-bottom: 0.4rem; }
.sources li:target { background: var(--plum-tint); }

/* Share row: eight equal buttons, four to a line on wider screens and two on phones, so no button is left on a line by itself. */
.share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 2rem 0 0; }
.share .label { grid-column: 1 / -1; font-size: 0.93rem; color: var(--muted); }
.share [data-native-share] { grid-column: 1 / -1; }
.share [hidden] { display: none; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem; border: 2px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.93rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--plum); color: var(--plum); }

.keep-reading { margin-top: 3.5rem; }

/* ---------- Plain pages ---------- */
.plain { max-width: 46rem; padding-top: 2.25rem; padding-bottom: 3.5rem; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
/* Eligibility window checker */
.checker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.checker .btn { cursor: pointer; font: inherit; font-weight: 700; background: transparent; min-height: 44px; }
.checker-total { font-weight: 700; }
.check-list { display: grid; gap: 2.4rem 0; margin: 2.6rem 0 0; }
.check-row { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 1.1rem 1.25rem 0.4rem; }
.check-row > .tab { position: absolute; top: -1.75rem; left: -1px; background: var(--plum); color: var(--on-plum); border: 0; border-radius: 7px 7px 0 0; padding: 0.15rem 0.8rem; }
.check-row h3 { margin: 0; font-size: 1.25rem; }
.check-row h3 a { color: var(--ink); }
.check-row h3 a:hover { color: var(--plum); }
.check-row .verdict { margin: 0.45rem 0 0; font-weight: 700; color: var(--muted); }
.check-row .verdict[data-fit='yes'] { color: var(--ok); }
.check-row .verdict[data-fit='part'] { color: var(--signal); }
.check-row .verdict[data-fit='no'] { color: var(--ink); }
.check-row .working { margin: 0.3rem 0 0; font-size: 0.93rem; color: var(--text-2); }
.check-row dl { margin: 0.9rem 0 0; border-top: 1px solid var(--line); }
.check-row dl > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.check-row dl > div:last-child { border-bottom: 0; }
.check-row dt { font-size: 0.88rem; color: var(--muted); }
.check-row dd { margin: 0; }
@media (max-width: 40rem) { .checker { grid-template-columns: minmax(0, 1fr); } .check-row dl > div { grid-template-columns: minmax(0, 1fr); } }
@media print { .checker .form-send { display: none; } }

/* Contact form */
.write-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.write-form[hidden] { display: none; }
.form-row { display: grid; gap: 0.35rem; align-content: start; }
.form-wide { grid-column: 1 / -1; }
.form-row label { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.form-row .optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 0.35rem; }
.form-row input, .form-row select, .form-row textarea { font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0.65rem 0.8rem; min-height: 48px; width: 100%; }
.form-row textarea { min-height: 10rem; resize: vertical; }
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible { outline: 3px solid var(--signal-fill); outline-offset: 2px; border-color: var(--plum); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.form-send .btn { cursor: pointer; font: inherit; font-weight: 700; }
.form-send .btn[disabled] { opacity: 0.6; cursor: default; }
.form-status { color: var(--signal); font-size: 0.95rem; }
.form-small { margin: 0; color: var(--muted); font-size: 0.88rem; }
.note.problem { background: var(--surface); border: 1px solid var(--signal-fill); }
@media (max-width: 40rem) { .write-form { grid-template-columns: minmax(0, 1fr); } .form-send .btn { width: 100%; } }
.records { list-style: none; margin: 0; padding: 0; }
.records li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.records .kind { display: inline-block; margin-right: 0.5rem; padding: 0.05rem 0.55rem; border-radius: 4px; background: var(--plum-tint); font-size: 0.82rem; font-weight: 700; }
.records time { color: var(--muted); font-size: 0.93rem; }

/* ---------- Footer ---------- */
.site-foot { margin-top: 3rem; background: var(--foot); color: var(--foot-text); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; font-size: 0.95rem; }
.site-foot .about { flex: 1 1 18rem; max-width: 32rem; }
.site-foot .name { margin: 0; font-family: var(--display); font-weight: 750; font-size: 1.25rem; color: #ffffff; }
.site-foot p { color: var(--foot-muted); margin: 0.4rem 0 0; }
.site-foot a { color: var(--foot-text); }
.site-foot a:hover { color: #ffffff; }
.site-foot .sisters a { color: var(--foot-link); }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.site-foot nav a { display: inline-flex; min-height: 44px; align-items: center; }
.site-foot .small { flex-basis: 100%; font-size: 0.85rem; color: var(--foot-muted); border-top: 1px solid #3a2f40; padding-top: 1rem; margin: 0; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); display: none; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 6px 18px rgba(20, 10, 25, 0.15); }
.to-top.show { display: inline-flex; }
.to-top:hover { border-color: var(--plum); color: var(--plum); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-head nav, .icon-btn, .share, .to-top, .site-foot nav { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Guide extras ---------- */
.compare td:first-child a { font-weight: 700; color: var(--ink); }
.compare td:first-child a:hover { color: var(--plum); }
.compare .start { font-weight: 700; }
.example { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.example > p:first-child { margin-top: 0; }
.example .label { display: inline-block; margin-bottom: 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum); }
.clocks, .prose .clocks { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; }
.clocks li { margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--plum-tint); }
.clocks strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.clocks span { font-size: 0.95rem; color: var(--text-2); }

/* ---------- Phone tidy-up: even grids instead of ragged wrapping ---------- */
@media (max-width: 47.99rem) {
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .chip { display: flex; }
  .chip span { width: 100%; min-height: 48px; justify-content: center; text-align: center; padding: 0.35rem 0.5rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.25; }
  .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .site-foot nav { width: 100%; }
  .site-foot nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .site-foot nav a { width: 100%; }
  .site-foot .small { padding-right: 4rem; }
  .share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share .label { grid-column: 1 / -1; }
  .share a, .share button { justify-content: center; }
  .share [hidden] { display: none; }
}
