
/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
/* Student Concessions Hub.
   One idea carries the look: the figure. Every card leads with its value, drawn
   with a highlighter swipe, and ends on a stamp that says when and where it was
   checked. Everything else stays quiet so those two things are what you notice. */
:root {
  --bg: #F3F5EF;
  --surface: #FFFFFF;
  --sunk: #E9EEE6;
  --ink: #0F1F19;
  --muted: #4F5F57;
  --line: #D6DDD3;
  --accent: #0B6B4F;
  --accent-deep: #084B39;
  --accent-ink: #FFFFFF;
  --hl: #FFD84D;
  --hl-ink: #10211B;
  --ok: #1E7A4C;
  --ok-bg: #E1F2E8;
  --warn: #8A5200;
  --warn-bg: #FBEBCB;
  --bad: #8B2E2E;
  --bad-bg: #F6E1DE;
  --soon: #B4380A;
  --soon-bg: #FDE6DA;
  --shadow: 0 6px 18px rgba(15, 31, 25, 0.09);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --head-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1612; --surface: #13211B; --sunk: #1A2A23; --ink: #E8F0EC; --muted: #9DB1A7; --line: #243830;
    --accent: #52D3A2; --accent-deep: #8DE6C3; --accent-ink: #0C1612; --ok: #5FD39A; --ok-bg: #12301F; --warn: #F2B84B; --warn-bg: #3A2B0B;
    --bad: #F09A8E; --bad-bg: #3A1A16; --soon: #FFA27A; --soon-bg: #3D2016; --shadow: 0 6px 18px rgba(0, 0, 0, 0.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1612; --surface: #13211B; --sunk: #1A2A23; --ink: #E8F0EC; --muted: #9DB1A7; --line: #243830;
  --accent: #52D3A2; --accent-deep: #8DE6C3; --accent-ink: #0C1612; --ok: #5FD39A; --ok-bg: #12301F; --warn: #F2B84B; --warn-bg: #3A2B0B;
  --bad: #F09A8E; --bad-bg: #3A1A16; --soon: #FFA27A; --soon-bg: #3D2016; --shadow: 0 6px 18px rgba(0, 0, 0, 0.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { left: 16px; z-index: 40; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
main.wrap { padding-block: 28px 72px; display: flex; flex-direction: column; gap: 44px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.015em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--hl); color: var(--hl-ink); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.hsearch { position: relative; flex: 1 1 auto; max-width: 520px; margin-inline: auto; }
.hsearch input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 44px 10px 18px; }
.hsearch input:focus { border-color: var(--accent); }
.hsearch button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.hsearch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; }
.suggest li { margin: 0; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; }
.suggest a small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--sunk); }
.suggest .all a { color: var(--accent); font-weight: 600; }
.top-links { display: flex; align-items: center; gap: 18px; font-size: 15px; white-space: nowrap; }
.top-links a { color: var(--ink); text-decoration: none; }
.top-links a:hover, .top-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--hl); color: var(--hl-ink); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.count-pill:empty, .count-pill[data-n="0"] { display: none; }

.catbar { border-top: 1px solid var(--line); }
.catbar .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.catbar .wrap::-webkit-scrollbar { display: none; }
.catbar a { flex: none; padding: 7px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.catbar a:hover { background: var(--sunk); }
.catbar a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.catbar .n { color: var(--muted); font-size: 12.5px; margin-left: 3px; }
.catbar a[aria-current="page"] .n { color: inherit; opacity: 0.8; }

.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --head-h: 56px; }
  .bar { gap: 10px; }
  .top-links a.hide-sm { display: none; }
  .hsearch { position: absolute; left: 12px; right: 12px; top: 8px; max-width: none; margin: 0; display: none; }
  body.searching .hsearch { display: block; }
  body.searching .brand, body.searching .top-links { visibility: hidden; }
  .site-head { backdrop-filter: none; background: var(--bg); }
  main.wrap { padding-block: 20px 96px; gap: 36px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font: inherit; font-size: 12px; font-weight: 500; color: var(--muted); background: none; border: 0; text-decoration: none; cursor: pointer; border-radius: var(--radius-sm); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar [aria-current="page"] { color: var(--accent); }
  .tabbar .count-pill { position: absolute; margin: -4px 0 0 14px; }
  .tabbar a { position: relative; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; max-width: 760px; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 7vw, 64px); line-height: 1; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.lede { margin: 0; max-width: 60ch; color: var(--muted); font-size: 18px; }
.cta-row { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 17px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--sunk); color: var(--accent); }
.btn.small { font-size: 14.5px; padding: 9px 16px; }
.facts { color: var(--muted); font-size: 15px; margin: 0; }
.facts b { color: var(--ink); font-weight: 650; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14.5px; color: var(--muted); }
.quick a { color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.quick a:hover { border-color: var(--accent); color: var(--accent); }

.sources { display: flex; flex-direction: column; gap: 10px; }
.sources p { margin: 0; font-size: 14.5px; color: var(--muted); }
.sources ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sources li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 10px; }
.sources li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- Matcher ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: calc(var(--head-h) + 12px); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.panel h2 { font-family: var(--font-display); font-size: 26px; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.panel-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.stepper-bar { display: none; gap: 6px; }
.stepper .stepper-bar { display: grid; grid-template-columns: repeat(3, 1fr); }
.stepper-bar button { font: inherit; text-align: left; background: none; border: 0; border-top: 4px solid var(--line); padding: 8px 0 0; color: var(--muted); font-size: 14px; cursor: pointer; }
.stepper-bar button[aria-current="step"] { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
.stepper-bar button.done { border-top-color: var(--accent); }
fieldset.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
fieldset.step legend { padding: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
fieldset.step .blurb { margin: 0; color: var(--muted); font-size: 15px; }
.stepper fieldset.step:not(.on) { display: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 14.5px; font-weight: 500; color: var(--muted); }
select, input[type="number"], input[type="url"], input[type="email"], textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px; width: 100%; min-width: 0; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.step-nav { display: none; gap: 10px; }
.stepper .step-nav { display: flex; }
.tally { font-size: 15px; color: var(--muted); margin: 0; }
.tally b { color: var(--ink); font-weight: 650; }
.linkish { font: inherit; font-size: 14.5px; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.recap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--ok-bg); border-radius: var(--radius); padding: 14px 18px; }
.recap p { margin: 0; font-size: 16px; }
.recap b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.recap .btn { margin-left: auto; }

/* ---------- Section headings, directory ---------- */
.section-title, .directory h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.02em; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.dir a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 550; min-height: 52px; transition: border-color 0.15s ease, transform 0.15s ease; }
.dir a:hover { border-color: var(--accent); transform: translateY(-1px); }
.ct { font-size: 13px; font-weight: 500; color: var(--muted); }

.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.collection { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--hl); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.collection:hover { border-color: var(--accent); border-left-color: var(--hl); transform: translateY(-1px); }
.collection b { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.collection span { color: var(--muted); font-size: 14.5px; }
.collection .ct { color: var(--ink); font-weight: 600; margin-top: 4px; }

/* ---------- Filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.toolbar .field { flex: 0 1 180px; }
.toolbar .field label { font-size: 13px; }
.toolbar select { padding: 8px 10px; font-size: 15px; }
.toolbar .linkish { align-self: center; }
.active-collection { display: inline-flex; align-items: center; gap: 8px; background: var(--hl); color: var(--hl-ink); border-radius: 999px; padding: 5px 8px 5px 14px; font-size: 14.5px; font-weight: 600; }
.active-collection button { font: inherit; border: 0; background: rgba(16, 33, 27, 0.14); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; color: inherit; }

/* ---------- Results ---------- */
#results { display: flex; flex-direction: column; gap: 40px; scroll-margin-top: calc(var(--head-h) + 12px); }
.group { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--head-h) + 12px); }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.group-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.group-head .more { font-size: 14.5px; }
.gn { margin: 0; color: var(--muted); font-size: 15px; max-width: 64ch; }
.search-note { margin: 0; font-size: 15.5px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty h3 { font-family: var(--font-display); margin: 0; font-size: 22px; }
.empty p { margin: 0; color: var(--muted); max-width: 56ch; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover, .card:focus-within { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card.v-yes { border-left: 5px solid var(--accent); }
.card.v-maybe { border-left: 5px solid #E3B341; }
.card.v-no { border-left: 5px solid var(--line); opacity: 0.88; }
.card-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 12px; align-items: start; }
.tile { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 19px; background: hsl(var(--h) 48% 90%); color: hsl(var(--h) 55% 24%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { background: hsl(var(--h) 28% 22%); color: hsl(var(--h) 60% 84%); } }
:root[data-theme="dark"] .tile { background: hsl(var(--h) 28% 22%); color: hsl(var(--h) 60% 84%); }
.card-id { min-width: 0; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.22; margin: 0; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:hover { text-decoration: underline; }
.prov { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.save { position: relative; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sunk); color: var(--muted); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.save svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.save:hover { color: var(--accent); }
.save.on { background: var(--hl); color: var(--hl-ink); }
.save.on svg { fill: currentColor; }
.value { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fig { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); background: linear-gradient(transparent 58%, var(--hl) 58% 90%, transparent 90%); padding: 0 4px; margin-left: -4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fig { background: linear-gradient(transparent 58%, rgba(255, 216, 77, 0.38) 58% 90%, transparent 90%); } }
:root[data-theme="dark"] .fig { background: linear-gradient(transparent 58%, rgba(255, 216, 77, 0.38) 58% 90%, transparent 90%); }
.per { font-size: 15px; color: var(--muted); font-weight: 500; }
.sum { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.why { margin: 0; font-size: 13.5px; color: var(--ink); background: var(--sunk); border-radius: var(--radius-sm); padding: 6px 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--sunk); color: var(--ink); white-space: nowrap; }
.chip.dl.open { background: var(--hl); color: var(--hl-ink); font-weight: 600; }
.chip.dl.soon { background: var(--soon-bg); color: var(--soon); font-weight: 700; }
.chip.dl.closed { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.chip.dl.ongoing { background: var(--ok-bg); color: var(--ok); }
.stamp { margin: auto -16px 0; padding: 10px 16px 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stamp .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stamp.re .dot { background: #E3B341; }
.stamp.un .dot { background: var(--bad); }
.stamp .host { overflow: hidden; text-overflow: ellipsis; }

.badge { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.yes { background: var(--accent); color: var(--accent-ink); }
.badge.maybe { background: var(--warn-bg); color: var(--warn); }
.badge.no { background: var(--sunk); color: var(--muted); }
.badge.ver { background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.badge.re { background: var(--warn-bg); color: var(--warn); font-weight: 500; }
.badge.un { background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.badge.draft { background: var(--hl); color: var(--hl-ink); }

.show-more { align-self: flex-start; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; text-decoration: none; }
.show-more:hover { border-color: var(--accent); }
details.later { border: 1px dashed var(--line); border-radius: var(--radius); padding: 0 16px; }
details.later > summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
details.later[open] { padding-bottom: 16px; }
details.later .gn { margin-bottom: 12px; }

/* ---------- FAQ and how we check ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); max-width: 64ch; }

/* ---------- Pages ---------- */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(32px, 5.5vw, 52px); max-width: 22ch; }
.notice { background: var(--warn-bg); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; max-width: 70ch; font-size: 15px; }
.notice.draft { background: var(--hl); color: var(--hl-ink); }

/* Entry page */
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .entry { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.entry-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.entry-head { display: flex; flex-direction: column; gap: 12px; }
.id-row { display: flex; align-items: center; gap: 12px; }
.id-row .tile { width: 48px; height: 48px; font-size: 22px; border-radius: 13px; }
.id-row .prov { margin: 0; font-size: 15px; }
.entry-head h1 { font-size: clamp(30px, 5vw, 46px); max-width: 24ch; }
.entry-head .sum { font-size: 18px; max-width: 62ch; display: block; -webkit-line-clamp: unset; overflow: visible; }
.hero-value { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 64ch; }
.hero-value .fig { font-size: 44px; align-self: flex-start; }
.hero-value p { margin: 0; font-size: 17px; }
.fit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 64ch; }
.fit .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.fit ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.fit li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
.fit li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--line); }
.fit li.yes::before { background: var(--accent); }
.fit li.maybe::before { background: #E3B341; }
.fit li.no::before { background: var(--bad); }
.block h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.block ul, .block ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; max-width: 64ch; }
.block ol.steps { list-style: none; padding: 0; counter-reset: step; gap: 12px; }
.block ol.steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.block ol.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 15px; font-weight: 700; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.block.catches ul li::marker { color: var(--warn); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); max-width: 680px; background: var(--surface); }
.tbl table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 15px; }
.tbl th, .tbl td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.tbl tr:first-child th, .tbl tr:first-child td { border-top: 0; }
.tbl th { font-weight: 600; width: 40%; }
.aside { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
@media (min-width: 900px) { .aside { position: sticky; top: calc(var(--head-h) + 16px); } }
.aside h2 { font-family: var(--font-display); font-size: 19px; margin: 0; font-weight: 750; }
.go { display: block; text-align: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 13px 14px; border-radius: 999px; }
.go:hover { background: var(--accent-deep); color: var(--accent-ink); }
.aside .save-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.aside .save-btn:hover { border-color: var(--accent); }
.aside .save-btn.on { background: var(--hl); color: var(--hl-ink); border-color: var(--hl); }
.meta { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; font-size: 14.5px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.aside .src { font-size: 14px; overflow-wrap: anywhere; margin: 0; }
.aside .src a { display: block; }
.aside .small { font-size: 13px; color: var(--muted); margin: 0; }
.related { display: flex; flex-direction: column; gap: 14px; }
.related + .related { margin-top: 8px; }

/* About, privacy */
.prose { max-width: 66ch; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-family: var(--font-display); font-size: 25px; margin: 16px 0 0; font-weight: 750; letter-spacing: -0.01em; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: baseline; margin: 0; }
.legend dd { margin: 0; }

/* Saved list */
.saved-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.saved-note { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Report form */
.report-form { max-width: 640px; }
.report-form .field label { color: var(--ink); }
textarea { resize: vertical; line-height: 1.5; }
.aside .report { font-size: 14px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 28px 44px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.site-foot p { margin: 0; max-width: 75ch; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-foot .wrap { padding-bottom: 96px; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .card, .dir a, .collection, .btn { transition: none; } .card:hover, .card:focus-within { transform: none; } }

@media print {
  .site-head, .tabbar, .site-foot, .saved-actions, .save, .toolbar { display: none !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; box-shadow: none; transform: none; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* What the source says */
.block.evidence .ev-note { color: var(--muted); font-size: 14px; margin: -4px 0 12px; max-width: 64ch; }
.block.evidence .quote { margin: 0 0 12px; max-width: 64ch; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--hl); border-radius: 10px; padding: 12px 16px; }
.block.evidence blockquote { margin: 0; font-size: 15.5px; line-height: 1.5; }
.block.evidence blockquote::before { content: "\201C"; } .block.evidence blockquote::after { content: "\201D"; }
.block.evidence figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media print { .block.evidence .quote { break-inside: avoid; } }
