/* Scholarship Atlas: printed annual, bottle green and gold */

:root {
  --green-950: #0b2a18;
  --green-900: #10351f;
  --green-800: #164127;
  --green-700: #1d4d2f;
  --gold: #f4d96c;
  --gold-soft: #e8cf85;
  --cream: #f3e7bd;
  --cream-muted: #c4b77f;
  --paper: #eae3d2;
  --paper-deep: #ded3ba;
  --paper-ink: #14331f;
  --paper-muted: #4c5a42;
  --paper-soft: #4f5a43;

  --bg: var(--green-950);
  --ink: var(--cream);
  --muted: var(--cream-muted);
  --surface: var(--green-800);
  --surface-alt: #123a23;
  --soft: #98a17e;
  --accent: var(--gold);

  --font: "Schibsted Grotesk", "Arial Narrow", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 1rem + 9vw, 9rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 11.25rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-width: none;
}
html::-webkit-scrollbar { width: 0; height: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
body.dialog-open { overflow: hidden; }

::selection { background: var(--gold); color: var(--green-950); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
  hyphens: none;
}

p { max-width: 62ch; text-wrap: pretty; }

.soft { color: var(--muted); }
.count { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--margin);
  z-index: 100;
  padding: 14px 18px;
  background: var(--gold);
  color: var(--green-950);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Fields */
.field-dark {
  --ink: var(--cream);
  --muted: var(--cream-muted);
  --surface: var(--green-800);
  --surface-alt: #123a23;
  --soft: #98a17e;
  background: var(--green-950);
  color: var(--ink);
}

.field-paper {
  --ink: var(--paper-ink);
  --muted: var(--paper-muted);
  --surface: var(--paper-deep);
  --surface-alt: #e9dfc6;
  --soft: var(--paper-soft);
  --focus-paper: var(--paper-ink);
  background: var(--paper);
  color: var(--ink);
}

.field-paper :focus-visible { outline-color: var(--paper-ink); }

.field-gold {
  --ink: var(--green-950);
  --muted: #465b36;
  --surface: #e8cf85;
  --surface-alt: #edd88f;
  background: var(--gold);
  color: var(--green-950);
}

.field-gold :focus-visible { outline-color: var(--green-950); }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gutter);
  min-height: 72px;
  padding: 0 var(--margin);
  background: var(--green-950);
  color: var(--cream);
}
.wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 30px);
  font-size: 15px;
  font-weight: 600;
}
.topnav a {
  text-decoration: none;
  color: var(--cream-muted);
  transition: color var(--t-hover) ease;
}
.topnav a:hover { color: var(--gold); }
.shortlist-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.shortlist-trigger:hover { background: var(--gold); color: var(--green-950); }
.shortlist-trigger:active { transform: scale(0.98); }
.shortlist-trigger .count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--gold);
  color: var(--green-950);
  font-size: 13px;
}
.shortlist-trigger:hover .count { background: var(--green-950); color: var(--gold); }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: 96px var(--margin) clamp(48px, 8vh, 92px);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--gutter);
  width: 100%;
  align-items: start;
}
.hero-note {
  grid-column: 1 / 5;
  grid-row: 2;
  align-self: end;
  margin-bottom: 80px;
  max-width: 32ch;
  font-size: 17px;
  line-height: 1.45;
  color: var(--cream-muted);
}
.hero-note span { color: var(--cream); }
.hero-statement {
  grid-column: 6 / 13;
  grid-row: 2;
  min-width: 0;
}
.hero-title {
  font-size: clamp(3.5rem, 6.6vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title [data-line] { display: block; }
.hero-action { margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  background: var(--gold);
  color: var(--green-950);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:hover { background: var(--cream); }
.button:active { transform: scale(0.98); }
.button-paper { background: var(--gold); color: var(--green-950); }
.button-dark { background: var(--green-950); color: var(--gold); }
.button-dark:hover { background: var(--green-800); color: var(--cream); }

/* Sections */
.section {
  padding: var(--section) var(--margin);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-title {
  font-size: var(--step-head);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

/* List */
.list-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.tier-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 150px;
  min-height: 64px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tier-tab:hover { background: var(--paper-deep); }
.tier-tab.is-active { background: var(--green-900); color: var(--gold); }
.tier-tab:active { transform: scale(0.985); }
.tier-letter {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.tier-sub {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tier-tab.is-active .tier-sub { color: var(--gold-soft); }

.list-body { min-width: 0; }

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}
.field input::placeholder { color: var(--soft); opacity: 1; }
.field select { appearance: none; background-image: none; cursor: pointer; }

.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.toggle {
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.toggle:hover { background: var(--paper-deep); }
.toggle[aria-pressed="true"] { background: var(--green-900); color: var(--gold); }
.toggle:active { transform: scale(0.98); }

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}
.result-line {
  max-width: 62ch;
  font-size: 15px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.result-line strong { color: var(--ink); font-weight: 700; }
.view-switch { display: flex; gap: 4px; }
.view-button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.view-button:hover { background: var(--paper-deep); color: var(--ink); }
.view-button.is-active { background: var(--green-900); color: var(--gold); }

.list-view { min-width: 0; }

.tier-group { margin-bottom: 56px; }
.tier-group:last-child { margin-bottom: 0; }
.tier-band {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--green-900);
  color: var(--gold);
}
.tier-band-letter {
  font-size: 54px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.tier-band h3 { font-size: 20px; letter-spacing: -0.03em; }
.tier-band p { max-width: 64ch; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--cream-muted); }
.tier-band .tier-count { font-size: 13px; font-weight: 600; color: var(--gold-soft); white-space: nowrap; }

.tier-rows { display: flex; flex-direction: column; gap: 2px; }
.tier-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.55fr) minmax(0, 0.78fr) minmax(0, 0.62fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  color: var(--ink);
  transition: background-color var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}
.tier-row:nth-child(even) { background: var(--surface-alt); }
.tier-row:hover { background: var(--paper-deep); }
.field-paper .tier-row:hover { background: #ddcfad; }
.tier-row:focus-within { background: #ddcfad; }
.row-tier {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.tier-S { background: var(--green-900); color: var(--gold); }
.tier-A { background: var(--gold); color: var(--green-950); }
.tier-B { background: #c9b96b; color: var(--green-950); }
.tier-C { background: #d8cfb3; color: #4c503c; }

.row-main { min-width: 0; }
.row-main h4 { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.15; letter-spacing: -0.025em; }
.row-title {
  display: inline;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
  transition: text-decoration-color var(--t-hover) ease;
}
.row-title:hover { text-decoration: underline; }
.row-host {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag {
  display: inline-block;
  padding: 3px 7px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.field-paper .tag { background: #dccfae; color: var(--paper-muted); }
.tag.tag-good { background: var(--gold); color: var(--green-950); }
.field-paper .tag.tag-good { background: var(--gold); color: var(--green-950); }

.row-fund,
.row-deadline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}
.row-fund .label,
.row-deadline .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}
.row-fund strong,
.row-deadline strong { font-weight: 700; font-size: 15px; }
.row-fund span:last-child,
.row-deadline span:last-child { font-size: 13px; color: var(--muted); }
.status-open { color: var(--green-800) !important; font-weight: 700; }
.field-paper .status-open { color: var(--green-800) !important; }
.status-soon { color: #6a4b00 !important; font-weight: 700; }
.status-closed { color: var(--soft) !important; }

.save-button {
  min-height: 38px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.save-button:hover { background: var(--gold); color: var(--green-950); }
.save-button[aria-pressed="true"] { background: var(--green-900); color: var(--gold); }
.save-button:active { transform: scale(0.97); }

/* Empty state */
.empty-state {
  padding: 48px 24px;
  background: var(--surface);
  color: var(--ink);
}
.empty-state h3 { font-size: 24px; }
.empty-state p { margin-top: 8px; font-size: 17px; color: var(--muted); max-width: 52ch; }

/* Deadline view */
.deadline-view { display: flex; flex-direction: column; gap: 0; }
.month-block { margin-bottom: 36px; }
.month-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 14px 20px;
  background: var(--green-900);
  color: var(--gold);
}
.month-head h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.04em; }
.month-head span { font-size: 13px; font-weight: 600; color: var(--gold-soft); }
.deadline-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.5fr) minmax(0, 0.8fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  transition: background-color var(--t-hover) ease;
}
.deadline-row:nth-child(even) { background: var(--surface-alt); }
.deadline-row:hover { background: #ddcfad; }
.deadline-date {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.deadline-date span { display: block; font-size: 13px; font-weight: 600; color: var(--soft); }
.deadline-name { min-width: 0; }
.deadline-name h4 { font-size: 17px; line-height: 1.2; }
.deadline-name p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.deadline-money { font-size: 13px; color: var(--muted); }
.deadline-money strong { display: block; font-size: 15px; color: var(--ink); }

/* Table view */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.data-table th {
  padding: 12px 12px;
  background: var(--green-900);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.data-table td { padding: 13px 12px; vertical-align: top; background: var(--surface); }
.data-table tr:nth-child(even) td { background: var(--surface-alt); }
.data-table tbody tr:hover td { background: #ddcfad; }
.data-table .cell-name { min-width: 220px; font-weight: 700; }
.data-table .cell-name span { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.data-table .cell-tier { width: 44px; }
.data-table .mini-tier {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 800;
}
.data-table .cell-link { white-space: nowrap; }
.data-table .cell-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.data-table .save-button { padding: 0 8px; }

/* Places mosaic */
.places { padding-top: var(--section); }
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
}
.tile-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--green-800);
}
.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) sepia(0.12) contrast(1.04);
  transition: transform 900ms var(--ease-out);
}
.tile-photo:hover img { transform: scale(1.045); }
.tile-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px 12px;
  background: var(--green-900);
}
.tile-photo figcaption span { font-size: 13px; line-height: 1.3; color: var(--cream-muted); }
.tile-photo figcaption strong { font-size: 15px; line-height: 1.2; color: var(--gold); letter-spacing: -0.02em; }
.tile-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 26px);
}
.tile-gold { background: var(--gold); color: var(--green-950); }
.tile-green { background: var(--green-800); color: var(--cream); }
.tile-gold h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.tile-gold p { margin-top: 12px; font-size: 13px; line-height: 1.42; color: #43552f; max-width: 30ch; }
.tile-small { font-size: 15px; line-height: 1.45; color: var(--cream-muted); max-width: 28ch; }
.tile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 0 14px;
  background: var(--gold);
  color: var(--green-950);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tile-link:hover { background: var(--cream); }
.tile-link:active { transform: scale(0.98); }
.credit { margin-top: 14px; font-size: 13px; color: var(--soft); }

/* Method */
.method-title {
  margin-bottom: clamp(48px, 6vw, 80px);
  font-size: var(--step-head);
  line-height: 0.98;
}
.steps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.step {
  grid-column: var(--start) / span 6;
  margin-bottom: clamp(40px, 5vw, 64px);
  min-width: 0;
}
.step:last-of-type { margin-bottom: 0; }
.step-line {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.step p {
  max-width: 36ch;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream-muted);
}
.step:last-of-type .step-line { color: var(--gold); }
.score-note {
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 24px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-muted);
}
.score-note a { text-underline-offset: 0.2em; }
.score-note a:hover { color: var(--gold); }

/* FAQ */
.faq-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 0 0 clamp(40px, 5vw, 64px);
}
.faq-head-row { padding-bottom: clamp(32px, 4vw, 52px); }
.faq-question {
  grid-column: 1 / 7;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.faq-answer {
  grid-column: 8 / 13;
  font-size: 17px;
  line-height: 1.55;
}
.faq-answer p { max-width: 42ch; color: var(--ink); }
.faq-answer a { text-underline-offset: 0.2em; }

/* CTA */
.cta {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(72px, 10vw, 150px);
  padding-bottom: 48px;
}
.cta-title {
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.cta-bottom {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}
.cta-bottom p {
  grid-column: 1 / 6;
  max-width: 44ch;
  font-size: 20px;
  line-height: 1.45;
  color: #3d512e;
}
.cta-bottom .button { grid-column: 10 / 13; justify-self: end; }

/* Footer */
.footer {
  background: var(--green-950);
  color: var(--cream);
  padding: var(--section) var(--margin) 32px;
  overflow: hidden;
}
.footer-wordmark {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(2.75rem, 9vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.footer-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(56px, 7vw, 88px);
}
.footer-places {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.footer-places span,
.footer-places a { color: var(--gold); text-decoration: none; }
.footer-places a:hover { color: var(--cream); }
.footer-links {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 15px;
  color: var(--cream-muted);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-legal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--soft);
}
.footer-legal p { max-width: 70ch; }
.footer-legal a { text-underline-offset: 0.2em; }
.footer-legal span { white-space: nowrap; }

/* Detail dialog */
.detail {
  width: min(760px, 100%);
  max-width: 100%;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.4); /* taste-skill-ignore: the slide-over detail dialog is a real overlay */
}
.detail::backdrop { background: rgba(4, 18, 10, 0.72); }
.detail-inner {
  min-height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 40px);
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.detail-tier {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.detail-close {
  min-height: 42px;
  padding: 0 14px;
  background: var(--paper-deep);
  color: var(--paper-ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.detail-close:hover { background: var(--green-900); color: var(--gold); }
.detail h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.detail-host {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--paper-muted);
}
.detail-why {
  margin-top: 26px;
  font-size: 20px;
  line-height: 1.45;
  max-width: 52ch;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: 28px;
}
.detail-fact {
  padding: 14px 16px;
  background: var(--paper-deep);
}
.detail-fact dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-muted);
}
.detail-fact dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
.detail-section { margin-top: 34px; }
.detail-section h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper-muted);
}
.detail-section p,
.detail-section li {
  font-size: 17px;
  line-height: 1.55;
}
.detail-section p { margin-top: 8px; max-width: 56ch; }
.detail-section ul { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.detail-section li { position: relative; padding-left: 18px; }
.detail-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.detail-section ol { margin: 10px 0 0 20px; display: flex; flex-direction: column; gap: 7px; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.detail-actions .button { min-height: 50px; }
.detail-note {
  margin-top: 26px;
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-muted);
}
.detail-note a { text-underline-offset: 0.2em; }
.detail-source { margin-top: 6px; font-size: 13px; color: var(--paper-soft); }

/* Print */
.print-only { display: none; }
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff; color: #111; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea * { color: #111 !important; background: transparent !important; }
  .print-head { margin-bottom: 24px; }
  .print-head h1 { font-size: 30px; line-height: 1.05; }
  .print-head p { margin-top: 6px; font-size: 13px; }
  .print-item { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid #bbb; } /* taste-skill-ignore: a printed shortlist is a real list, the rule separates entries */
  .print-item h2 { font-size: 17px; line-height: 1.2; letter-spacing: -0.02em; }
  .print-tier { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
  .print-meta { margin-top: 5px; font-size: 13px; line-height: 1.45; }
  .print-docs { margin-top: 5px; font-size: 13px; line-height: 1.45; }
  .print-url { margin-top: 4px; font-size: 13px; word-break: break-all; }
}

/* Narrow desktop */
@media (max-width: 1180px) {
  .filters { grid-template-columns: 2fr repeat(2, 1fr); }
  .tier-row { grid-template-columns: 40px minmax(0, 1.5fr) minmax(0, 0.8fr) auto; }
  .row-deadline { display: none; }
  .deadline-row { grid-template-columns: 86px minmax(0, 1.4fr) minmax(0, 0.8fr) auto; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .hero-note { grid-column: 1 / 4; }
  .hero-statement { grid-column: 4 / 9; }
  .list-shell { grid-template-columns: 1fr; }
  .tier-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
  }
  .tier-tab { flex: 0 0 118px; width: 118px; min-height: 58px; }
  .tier-letter { font-size: 20px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .search-field { grid-column: 1 / -1; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { display: flex; flex-direction: column; }
  .step {
    margin-left: calc((var(--start) - 1) * 3.2vw);
    margin-bottom: 42px;
  }
  .step-line { font-size: clamp(2rem, 7.2vw, 3.4rem); }
  .faq-question { grid-column: 1 / 8; }
  .faq-answer { grid-column: 8 / 13; }
  .cta-bottom p { grid-column: 1 / 8; }
  .cta-bottom .button { grid-column: 8 / 13; justify-self: end; }
  .footer-places { grid-column: 1 / 7; }
  .footer-links { grid-column: 7 / 13; }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 64px; }
  .topnav { display: none; }
  .hero { min-height: 0; padding-top: 120px; padding-bottom: 56px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .hero-note { order: 2; max-width: 40ch; font-size: 17px; }
  .hero-statement { order: 1; }
  .hero-title { font-size: clamp(3rem, 12.5vw, 5rem); line-height: 0.92; }
  .hero-action .button { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head .button { width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .filters .search-field { grid-column: auto; }
  .tier-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .tier-tab { flex: none; width: auto; min-height: 56px; }
  .toggles { gap: 6px; }
  .toggle { flex: 1 1 calc(50% - 6px); padding: 0 10px; }
  .list-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .view-switch { width: 100%; }
  .view-button { flex: 1; justify-content: center; display: inline-flex; align-items: center; }
  .tier-band { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px 16px; }
  .tier-band-letter { font-size: 40px; }
  .tier-band .tier-count { grid-column: 2; font-size: 13px; }
  .tier-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 14px;
  }
  .row-tier { width: 34px; height: 34px; font-size: 15px; }
  .row-main h4 { font-size: 17px; }
  .row-fund { grid-column: 2 / 3; padding-top: 2px; }
  .row-deadline { display: flex; grid-column: 2 / 3; padding-top: 0; }
  .row-fund .label,
  .row-deadline .label { display: none; }
  .row-fund strong,
  .row-deadline strong { font-size: 13px; }
  .row-fund span:last-child,
  .row-deadline span:last-child { font-size: 13px; }
  .save-button { grid-column: 3; grid-row: 1; padding: 0 9px; font-size: 13px; }
  .row-tags { margin-top: 8px; }
  .deadline-row { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 13px 14px; }
  .deadline-money { display: none; }
  .deadline-date { font-size: 13px; }
  .deadline-name h4 { font-size: 15px; }
  .month-head { padding: 12px 14px; }
  .month-head h3 { font-size: 24px; }
  .data-table { font-size: 13px; }
  .data-table th:nth-child(3),
  .data-table td:nth-child(3) { display: none; }
  .mosaic { gap: 6px; }
  .tile-photo figcaption { padding: 8px 9px 9px; }
  .tile-photo figcaption span { font-size: 13px; }
  .tile-photo figcaption strong { font-size: 13px; }
  .tile-gold h2 { font-size: clamp(1.45rem, 7vw, 2rem); }
  .tile-gold p, .tile-small { font-size: 13px; line-height: 1.35; }
  .tile-link { min-height: 34px; padding: 0 9px; font-size: 13px; }
  .tile-text { padding: 12px; }
  .faq-row { display: flex; flex-direction: column; gap: 10px; padding-bottom: 44px; }
  .faq-head-row { gap: 0; padding-bottom: 30px; }
  .faq-question { font-size: 24px; line-height: 1.12; }
  .faq-answer { font-size: 17px; }
  .cta { min-height: 84svh; padding-top: 64px; }
  .cta-title { font-size: clamp(4rem, 17vw, 6rem); }
  .cta-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .cta-bottom p { font-size: 17px; }
  .cta-bottom .button { width: 100%; }
  .footer { padding-top: 72px; }
  .footer-wordmark { font-size: clamp(2.6rem, 13vw, 4rem); white-space: normal; line-height: 0.84; }
  .footer-row { display: flex; flex-direction: column; gap: 34px; margin-top: 48px; }
  .footer-places { font-size: 20px; }
  .footer-links { gap: 14px; }
  .footer-links a { font-size: 13px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 48px; }
  .detail { width: 100%; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-why { font-size: 17px; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title [data-line] {
    transform: translateY(105%);
    animation: line-in 900ms var(--ease-expo) forwards;
  }
  .js .hero-title .line:nth-child(2) [data-line] { animation-delay: 110ms; }
  .js .hero-note { animation: rise-in 800ms var(--ease-out) 420ms both; }
  .js .hero-action { animation: rise-in 800ms var(--ease-out) 480ms both; }

  .reveal-pending {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  }
  .reveal-pending.is-in { opacity: 1; transform: none; }

  .motion-ready .mosaic .tile { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
  .motion-ready .mosaic .tile.is-in { opacity: 1; transform: none; }
  .mosaic .tile-photo:first-child img { animation: drift 14s ease-in-out infinite alternate; }
}

@keyframes line-in { to { transform: translateY(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
