/* FirstOpenPath site styles */
:root {
  --navy: #0F2A3D;
  --navy-2: #1A3A52;
  --slate: #3E5566;
  --slate-2: #6B7C89;
  --amber: #F2A541;
  --amber-ink: #8F5A0B;       /* amber dark enough for text on light backgrounds */
  --sky: #EEEEEC;             /* at or just below the bird photo's sky, so "darken" blending hides its edges */
  --paper: #F7F6F3;
  --card: #FFFFFF;
  --line: #E6E2D8;
  --line-2: #D9D4C7;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 61, .04), 0 8px 24px -12px rgba(15, 42, 61, .14);
  --shadow-up: 0 2px 4px rgba(15, 42, 61, .05), 0 18px 40px -16px rgba(15, 42, 61, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 24px;
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
h2 {
  font: 400 clamp(34px, 4.4vw, 54px)/1.06 var(--serif);
  letter-spacing: -0.02em;
}
h3 { font: 600 18px/1.35 var(--sans); letter-spacing: -0.01em; }
.eyebrow {
  font: 700 12.5px/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 18px;
}
.lead { font-size: 18.5px; line-height: 1.6; color: var(--slate); max-width: 58ch; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  font: 700 15.5px/1 var(--sans);
  color: var(--navy); background: var(--amber);
  border: 0; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #F5B864; }
.btn:active { transform: translateY(1px); }
.btn--small { height: 40px; padding: 0 16px; font-size: 14.5px; }
.arrow { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none;
}
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sky) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand svg { width: 36px; height: 36px; flex: none; }
.wordmark { font: 400 21px/1 var(--sans); letter-spacing: -0.02em; }
.wordmark b { font-weight: 800; }
.brand--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--slate);
  padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--amber); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--sky); padding-bottom: 40px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: 24px;
  padding-block: clamp(24px, 4vw, 56px) clamp(32px, 4vw, 48px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-title {
  font: 400 clamp(52px, 7.4vw, 96px)/.98 var(--serif);
  letter-spacing: -0.03em;
}
.hero-title span { display: inline-block; }
.hero-title em {
  font-style: italic;
  background: linear-gradient(var(--amber), var(--amber)) 0 92% / 100% 3px no-repeat;
  padding-bottom: 4px;
}
.hero-lead { margin-top: 26px; font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 46ch; }
.hero-art { position: relative; }
.hero-art { width: 100%; max-width: 540px; justify-self: end; aspect-ratio: 1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: darken; }
.hero-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* search */
.search { position: relative; margin-top: 36px; max-width: 540px; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(242, 165, 65, .28), var(--shadow); }
.search-icon { width: 20px; height: 20px; color: var(--slate-2); flex: none; }
.search input {
  flex: 1; min-width: 0; height: 44px; border: 0; background: transparent;
  font: 500 16.5px var(--sans); color: var(--navy); outline: none;
}
.search input::placeholder { color: var(--slate-2); font-weight: 400; }
.search input::-webkit-search-cancel-button { display: none; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-up); padding: 6px; max-height: 340px; overflow: auto;
}
.search-results a, .search-results .empty {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--paper); }
.search-results small { margin-left: auto; color: var(--slate-2); font-weight: 500; font-size: 13.5px; }
.search-results .empty { display: block; font-weight: 500; color: var(--slate); line-height: 1.5; }
.search-results .empty a { display: inline; padding: 0; font-weight: 700; text-decoration: underline; }
.search-hint { margin-top: 16px; font-size: 14.5px; color: var(--slate-2); }
.search-hint a { color: var(--slate); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.search-hint a:hover { text-decoration-color: var(--amber); }

.flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 42, 61, .12); object-fit: cover; flex: none; }
.flag[src$="qatar.svg"], .flag[src$="us.svg"] { object-position: left center; }

.facts {
  display: flex; flex-wrap: wrap; gap: 10px 40px;
  padding-top: 28px; border-top: 1px solid var(--line-2);
  font-size: 14.5px; color: var(--slate);
}
.facts strong { font: 500 22px/1 var(--serif); color: var(--navy); margin-right: 4px; }

/* ---------- motto ---------- */
.motto { background: var(--navy); color: #fff; padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.motto-line { font: 400 clamp(32px, 4.8vw, 60px)/1.1 var(--serif); letter-spacing: -0.02em; }
.motto-line span { color: var(--amber); font-style: italic; }
.motto-sub { margin: 20px auto 0; max-width: 52ch; color: #B9C7D2; font-size: 17.5px; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 20px; }

/* who */
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.who-photos { position: relative; padding: 0 14% 18% 0; max-width: 500px; }
.who-photo { border-radius: var(--radius); object-fit: cover; }
.who-photo--tall { width: 100%; aspect-ratio: 5 / 6; object-position: 50% 40%; }
.who-photo--wide {
  position: absolute; right: 0; bottom: 0; width: 58%; aspect-ratio: 3 / 2;
  border: 6px solid var(--paper); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-up);
}
.who-copy h2 { margin-bottom: 20px; }
.who-list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.who-list li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.who-list h3 { margin-bottom: 6px; }
.who-list p { color: var(--slate); font-size: 15.5px; line-height: 1.55; }

/* quotes */
.quotes { background: var(--card); border-block: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote-card {
  margin: 0; display: flex; flex-direction: column; gap: 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px;
}
.quote-topic { font: 700 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); }
.quote-card blockquote { margin: 0; flex: 1; }
.quote-card blockquote p {
  font: 400 23px/1.38 var(--serif); letter-spacing: -0.01em;
}
.quote-card blockquote p::before { content: "\201C"; }
.quote-card blockquote p::after { content: "\201D"; }
.quote-card figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-source { display: flex; align-items: center; gap: 12px; }
.quote-source > span { display: flex; flex-direction: column; line-height: 1.35; }
.quote-source strong { font-size: 15.5px; }
.quote-source span span { font-size: 14px; color: var(--slate-2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--sans); padding: 7px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2); color: var(--slate);
}
.badge svg { width: 14px; height: 14px; }
.badge--confirmed { background: var(--navy); border-color: var(--navy); color: #fff; }
.badge--confirmed svg { color: var(--amber); }

/* countries */
.country-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.country-card {
  position: relative; display: block; aspect-ratio: 3 / 4.4; overflow: hidden;
  border-radius: var(--radius); text-decoration: none; color: #fff; background: var(--navy);
  isolation: isolate;
}
.country-card > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(.96);
  transition: transform .6s var(--ease);
  z-index: -2;
}
.country-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 42, 61, 0) 35%, rgba(15, 42, 61, .55) 62%, rgba(15, 42, 61, .92) 100%);
}
.country-card:hover > img { transform: scale(1.04); }
.country-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.country-name { display: flex; align-items: center; gap: 10px; font: 500 24px/1.1 var(--serif); }
.flag--card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.country-route { font-size: 13.5px; line-height: 1.45; color: #D7E0E7; }
.country-count {
  margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 13.5px; font-weight: 700; color: var(--amber);
}

/* how */
.how { background: var(--sky); }
.how-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.how .section-head { margin-bottom: 0; }
.steps { display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.steps li:last-child { border-bottom: 1px solid var(--line-2); }
.step-num { grid-row: span 2; font: 400 40px/1 var(--serif); color: var(--amber-ink); }
.steps h3 { font: 400 28px/1.1 var(--serif); margin-bottom: 6px; }
.steps p { color: var(--slate); }

/* questions */
.question-list { border-top: 1px solid var(--line-2); }
.question-list a {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) auto 24px; align-items: center; gap: 24px;
  padding: 28px 8px; border-bottom: 1px solid var(--line-2);
  text-decoration: none; transition: background-color .2s var(--ease), padding .2s var(--ease);
}
.question-list a:hover { background: var(--card); padding-inline: 20px; }
.question-list a:hover .arrow { transform: translateX(3px); }
.q-title { font: 400 28px/1.15 var(--serif); letter-spacing: -0.01em; }
.q-ask { color: var(--slate); }
.q-count { font-size: 14px; font-weight: 700; color: var(--amber-ink); white-space: nowrap; }

/* updates */
.updates { background: var(--card); border-top: 1px solid var(--line); }
.updates-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.updates h2 { margin-bottom: 20px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 16px; }
.form-card iframe { display: block; border: 0; min-height: 300px; }
.form-alt { margin-top: 8px; font-size: 14px; color: var(--slate-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9D4DC; padding: 72px 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links h3 { font: 700 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-links a { display: block; text-decoration: none; padding: 4px 0; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: grid; gap: 8px; font-size: 13.5px; color: #93A5B3; }

/* ---------- reveal (minimal) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero-path path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-grid { grid-template-columns: 1fr; max-width: 680px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .who-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card); cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.8px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s var(--ease), background-color .2s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  [aria-expanded="true"] .menu-icon { background: transparent; }
  [aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  [aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; height: 48px; }
  .header-inner { height: 64px; }
  .wordmark { font-size: 19px; }
  .brand svg { width: 32px; height: 32px; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-art { order: -1; max-width: 260px; justify-self: center; margin: -12px 0 4px; }
  .hero-path { display: none; }
  .hero-copy { padding-top: 0; }
  .hero-lead { font-size: 17.5px; }
  .search-field .btn { padding: 0 16px; }
  .facts { gap: 12px 24px; }
  .facts li { flex: 1 1 40%; }

  .who-grid { grid-template-columns: 1fr; }
  .who-photos { max-width: 560px; order: 2; padding: 0 28% 16% 0; }
  .who-photo--tall { aspect-ratio: 4 / 3; object-position: 50% 58%; }
  .who-photo--wide { width: 52%; }
  .updates-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .question-list a { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; }
  .question-list a:hover { padding-inline: 0; background: none; }
  .q-title { grid-column: 1; }
  .q-ask { grid-column: 1; grid-row: 2; font-size: 15.5px; }
  .q-count { grid-column: 1; grid-row: 3; }
  .question-list .arrow { grid-column: 2; grid-row: 1 / span 3; }
  .steps li { grid-template-columns: 56px 1fr; }
}
@media (max-width: 600px) {
  .country-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .country-card:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .country-body { padding: 14px; }
  .country-name { font-size: 20px; }
  .country-route { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .quote-card { padding: 26px 22px 22px; }
  .quote-card blockquote p { font-size: 21px; }
}

/* =========================================================
   Database pages (appended to site.css at build time)
   ========================================================= */
.page-head { background: var(--sky); padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-title {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font: 400 clamp(40px, 5.6vw, 72px)/1.02 var(--serif); letter-spacing: -0.025em; max-width: 20ch;
}
.page-head .lead { margin-top: 18px; }
.flag--title { width: 48px; height: 32px; border-radius: 5px; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--slate-2); margin-bottom: 28px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { text-decoration: none; color: var(--slate); }
.crumbs a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }

/* filters */
.filters { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.search-field--inline { flex: 0 1 340px; padding: 4px 6px 4px 14px; box-shadow: none; }
.search-field--inline input { height: 42px; flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px var(--sans); color: var(--navy); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  font: 600 14.5px var(--sans); color: var(--slate);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .flag { width: 20px; height: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--slate); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--navy); }

.result-count { font-size: 14px; font-weight: 600; color: var(--slate-2); margin-bottom: 16px; }
.uni-list { display: grid; gap: 12px; }
.uni-row[hidden] { display: none; }
.uni-row a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 24px; gap: 32px; align-items: center;
  padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.uni-row a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.uni-row a:hover .arrow { transform: translateX(3px); }
.uni-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.uni-name { display: flex; align-items: center; gap: 12px; font: 500 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.uni-meta { font-size: 14px; color: var(--slate-2); }
.uni-glance { display: grid; gap: 8px; font-size: 15px; color: var(--navy); }
.uni-glance li { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; }
.uni-glance span { color: var(--slate-2); font-size: 13.5px; font-weight: 600; padding-top: 1px; }
.empty-state { padding: 32px 0; max-width: 560px; }
.empty-state h2 { margin-bottom: 14px; }
.empty-state a, .group-footnote a, .prose a, .correction a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--amber); }

/* single university */
.uni-head-meta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14.5px; color: var(--slate); }
.route-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.route-tags li { font-size: 13.5px; font-weight: 600; color: var(--slate); padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); }

.uni-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 5vw, 64px); }
.answer { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line-2); scroll-margin-top: 96px; }
.answer:last-child { border-bottom: 0; margin-bottom: 0; }
.answer-title { font: 400 clamp(28px, 3vw, 36px)/1.15 var(--serif); letter-spacing: -0.015em; margin-bottom: 18px; }
.marks { display: grid; gap: 8px; margin-bottom: 18px; }
.mark { position: relative; padding-left: 26px; font-weight: 700; font-size: 17px; line-height: 1.45; }
.mark::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.mark--barrier::before { background: transparent; border: 2px solid var(--navy); }
.mark--unknown { font-weight: 600; color: var(--slate-2); }
.mark--unknown::before { background: var(--line-2); }
.mark-flag {
  display: inline-block; margin-right: 10px; padding: 3px 8px; border-radius: 6px; vertical-align: 2px;
  font: 700 11.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: var(--navy); color: #fff;
}
.answer-summary { color: var(--slate); font-size: 17.5px; max-width: 64ch; }
.answer-quote { margin: 24px 0 0; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.answer-quote blockquote { margin: 0; }
.answer-quote p { font: 400 21px/1.45 var(--serif); }
.answer-quote p::before { content: "\201C"; }
.answer-quote p::after { content: "\201D"; }
.answer-quote figcaption { margin-top: 12px; font-size: 14px; color: var(--slate-2); }
.answer .text-link { margin-top: 22px; }
.plain-list { display: grid; gap: 10px; }
.plain-list li { position: relative; padding-left: 18px; color: var(--slate); font-size: 15.5px; line-height: 1.55; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.plain-list a { color: var(--navy); overflow-wrap: anywhere; }

.uni-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.aside-card h2 { font: 700 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 14px; }
.glance { display: grid; gap: 14px; margin: 0; }
.glance dt a { font-size: 13.5px; font-weight: 700; color: var(--slate-2); text-decoration: none; }
.glance dt a:hover { color: var(--navy); }
.glance dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.aside-note { margin-top: 14px; font-size: 13.5px; color: var(--slate-2); }
.contact { display: grid; gap: 12px; margin: 0; }
.contact dt { font-size: 13px; font-weight: 700; color: var(--slate-2); }
.contact dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.contact a { color: var(--navy); font-weight: 600; }

.correction { padding: 20px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--slate); font-size: 15.5px; }
.others { margin-top: 48px; }
.others-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.others-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.others-list a {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600;
  transition: box-shadow .2s var(--ease);
}
.others-list a:hover { box-shadow: var(--shadow); }
.others-list .arrow { margin-left: auto; }

/* question pages */
.group { margin-bottom: 48px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.group-head h2 { font-size: clamp(24px, 2.6vw, 32px); max-width: 32ch; }
.group-count { font-size: 14px; font-weight: 700; color: var(--amber-ink); white-space: nowrap; }
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.group-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.group-list a:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.group-list .uni-name { font-size: 19px; }
.group-list a:hover .arrow { transform: translateX(3px); }
.group { margin-bottom: 36px; }
.said { margin-top: 72px; }
.said-title { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 8px; }
.said-item { padding: 36px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 96px; max-width: 820px; }
.said-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.said-item .uni-name { font-size: 26px; }
.said-item .text-link { margin-top: 20px; }
.group-summary { color: var(--slate); font-size: 15px; line-height: 1.55; flex: 1; }
.group-footnote { margin-top: 8px; font-size: 14.5px; color: var(--slate-2); }

/* for universities */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--slate); margin-bottom: 16px; max-width: 62ch; }
.prose .steps { margin: 8px 0 24px; }
.asks { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.asks > h2 { font-size: 26px; margin-bottom: 20px; }
.ask-list { display: grid; gap: 20px; margin-bottom: 24px; }
.ask-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.ask-list .step-num { font-size: 30px; }
.ask-list h3 { margin-bottom: 4px; }
.ask-list p { color: var(--slate); font-size: 15.5px; }
.head-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--amber); }

@media (max-width: 960px) {
  .uni-layout, .prose-grid { grid-template-columns: 1fr; }
  .uni-aside, .asks { position: static; }
  .uni-row a { grid-template-columns: 1fr 24px; gap: 18px; }
  .uni-glance { grid-column: 1; }
  .uni-row .arrow { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .uni-row a { padding: 20px; }
  .uni-glance li { grid-template-columns: 1fr; gap: 0; }
  .uni-name { font-size: 21px; }
  .search-field--inline { flex-basis: 100%; }
  .group-list { grid-template-columns: 1fr; }
  .flag--title { width: 36px; height: 24px; }
  .answer-quote { padding: 18px 20px; }
  .answer-quote p { font-size: 19px; }
}
