/* Light is the default; dark follows the system unless the visitor picks a theme (html[data-theme]). */
:root {
  color-scheme: light;
  --background: #ffffff;
  --ink: #171a1d;
  --muted: #5d6269;
  --rule: #d7dadd;
  --rule-strong: #9aa0a8;
  --accent: #214dc5;
  --accent-fill: #214dc5;
  --accent-hover: #173b9d;
  --on-accent: #ffffff;
  --soft: #f4f6fc;
  --surface: #f6f7f9;
  --danger: #9b2c2c;
  --scrollbar: #bac0cc;
  --backdrop: #171a1d66;
  --shadow: 0 20px 80px #17191d33;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --background: #111316;
    --ink: #e8eaed;
    --muted: #a0a6ae;
    --rule: #2e3238;
    --rule-strong: #5a6069;
    --accent: #8ea8ff;
    --accent-fill: #3a5fd0;
    --accent-hover: #4b6edb;
    --on-accent: #ffffff;
    --soft: #192036;
    --surface: #181b1f;
    --danger: #c04646;
    --scrollbar: #3d424a;
    --backdrop: #000000a6;
    --shadow: 0 24px 80px #00000080;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #111316;
  --ink: #e8eaed;
  --muted: #a0a6ae;
  --rule: #2e3238;
  --rule-strong: #5a6069;
  --accent: #8ea8ff;
  --accent-fill: #3a5fd0;
  --accent-hover: #4b6edb;
  --on-accent: #ffffff;
  --soft: #192036;
  --surface: #181b1f;
  --danger: #c04646;
  --scrollbar: #3d424a;
  --backdrop: #000000a6;
  --shadow: 0 24px 80px #00000080;
}
body {
  background: var(--background);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1,
h2,
h3,
h4 {
  line-height: 1.4;
}
h1 {
  font-family: YantuDisplay, 'PingFang SC', sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
}
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
input,
select,
textarea {
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--background);
  caret-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
select {
  appearance: none;
  padding: 10px 34px 10px 12px;
  min-height: 44px;
  max-width: 100%;
  cursor: pointer;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 50% / 5px 5px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--muted) 50%) calc(100% - 12px) 50% / 5px 5px no-repeat,
    var(--background);
}
select:hover,
input:hover,
textarea:hover {
  border-color: var(--rule-strong);
}
textarea {
  resize: vertical;
  min-height: 88px;
  padding: 13px 15px;
  line-height: 1.7;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
main:focus,
#page-title:focus {
  outline: none;
}
::selection {
  background: var(--accent-fill);
  color: var(--on-accent);
}
* {
  scrollbar-color: var(--scrollbar) var(--background);
  scrollbar-width: thin;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
/* One disclosure mark for every details element except the phone filter toggle. */
details:not(.filter-panel) > summary::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.16s;
}
details[open]:not(.filter-panel) > summary::before {
  transform: rotate(45deg);
}
summary:hover {
  color: var(--accent);
}
small {
  font-size: 12px;
}
.sr-only,
.row-fact dt,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--background);
  padding: 12px 18px;
  z-index: 100;
}
section[id] {
  scroll-margin-top: 24px;
}
[hidden] {
  display: none !important;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 19px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    background 0.16s,
    color 0.16s;
}
.button.primary {
  background: var(--accent-fill);
  color: var(--on-accent);
}
.button.primary:hover {
  background: var(--accent-hover);
}
.button.secondary {
  border-color: var(--rule);
  background: var(--background);
}
.button.secondary:hover {
  background: var(--surface);
  border-color: var(--rule-strong);
}
.button.danger {
  background: var(--danger);
  color: var(--on-accent);
}
.text-button,
.inline-link,
.text-link {
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.text-button {
  padding: 4px 0;
  text-decoration: none;
}
.text-button:hover,
.inline-link:hover,
.text-link:hover {
  color: var(--accent);
}
.inline-link {
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
}
.inline-link svg {
  width: 19px;
}
.text-link {
  text-underline-offset: 5px;
}
.icon-button {
  width: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  background: var(--soft);
  color: var(--accent);
}
button[aria-pressed='true'] {
  color: var(--accent);
}
.button[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--soft);
}
.site-header {
  max-width: 1440px;
  margin: auto;
  min-height: 96px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.brand {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.brand > span {
  color: var(--accent);
}
.brand small {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 500;
  margin-left: 14px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: auto;
}
.primary-nav > a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--muted);
}
.primary-nav > a[aria-current] {
  color: var(--ink);
}
.primary-nav > a:hover {
  color: var(--accent);
}
.count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-compare {
  display: flex;
  gap: 7px;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  min-height: 44px;
}
.header-compare b {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.header-compare.active {
  color: var(--accent);
}
.menu-toggle {
  display: none;
}
.page-shell {
  max-width: 1440px;
  padding: 0 48px;
  margin: auto;
}
main {
  min-height: 55vh;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 48px 0 34px;
}
.page-heading h1 {
  font-size: 48px;
  line-height: 1.25;
}
.page-heading p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
  max-width: 72ch;
}
.heading-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: 28px;
}
.section-heading p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.8;
}
.section-heading > .inline-link {
  flex-shrink: 0;
}
.section-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10%;
  padding: 64px 0 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 64px;
  line-height: 1.28;
  letter-spacing: -0.04em;
}
.hero-copy > .inline-link {
  margin-top: 22px;
  color: var(--accent);
}
.hero-search {
  min-width: 0;
}
.hero-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.search-mode {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 22px;
}
.search-mode button {
  font-size: 16px;
  min-height: 49px;
  color: var(--muted);
}
.search-mode button[aria-pressed='true'] {
  color: var(--ink);
}
.hero-search .button {
  min-width: 104px;
  align-self: stretch;
}
.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  font-size: 14px;
  line-height: 2.2;
  margin-top: 18px;
}
.hero-topics a {
  font-size: 14px;
}
.region-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--ink);
}
.region-paths > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  padding: 26px 30px;
  border-right: 1px solid var(--rule);
}
.region-paths > a:first-child {
  padding-left: 0;
}
.region-paths > a:last-child {
  border: 0;
  padding-right: 0;
}
.region-paths h2 {
  font-size: 28px;
  font-weight: 600;
}
.region-paths svg {
  width: 24px;
  height: 24px;
}
.region-paths a:hover {
  color: var(--accent);
}
.home-section {
  padding-top: 66px;
}
.home-section .compact .programme-row:last-child {
  border-bottom: 1px solid var(--rule);
}
.search-field {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
  min-height: 56px;
  padding: 8px 17px;
  border: 1px solid var(--ink);
  background: var(--background);
}
.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 4px 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.8;
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.search-field input:focus-visible {
  outline: 0;
}
.search-field svg {
  width: 22px;
  height: 22px;
}
.search-line {
  display: flex;
  gap: 12px;
}
.search-line > .search-field {
  flex: 1;
}
.search-line > .button {
  min-width: 104px;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0 17px;
}
.filter-row label,
.advanced-filters > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.filter-row select {
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}
.more-filters {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
.more-filters > summary {
  font-size: 14px;
}
.more-filters > summary > span {
  margin-left: 14px;
  color: var(--muted);
  font-size: 12px;
}
.advanced-filters {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr;
  gap: 24px;
  align-items: end;
  padding: 20px 0 16px;
}
.advanced-filters select,
.advanced-filters input[type='number'] {
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.advanced-filters input[type='number'] {
  padding: 10px 12px;
  min-height: 44px;
}
.budget-fields {
  display: flex;
  gap: 8px;
}
.budget-fields select {
  flex: 0 0 96px;
}
.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  gap: 9px !important;
  align-items: center !important;
  font-size: 14px !important;
  line-height: 1.7;
  min-height: 44px;
  color: var(--ink) !important;
}
.filter-explainer {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 90ch;
  margin-bottom: 16px;
}
.more-filters > .button {
  margin-bottom: 8px;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.active-filters:has(a) {
  padding: 15px 0;
}
.active-filters > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.active-filters svg {
  width: 14px;
  height: 14px;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}
.results-toolbar p {
  font-size: 15px;
}
.results-toolbar strong {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.results-toolbar p > span {
  color: var(--muted);
  font-size: 14px;
  margin-left: 8px;
}
.results-toolbar > div {
  display: flex;
  gap: 24px;
  align-items: center;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.sort-control select {
  min-height: 40px;
  padding-block: 6px;
  font-size: 14px;
  color: var(--ink);
}
.region-tabs {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding: 15px 0;
}
.region-tabs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.region-tabs a[aria-current] {
  color: var(--ink);
  text-decoration: underline 2px;
  text-underline-offset: 9px;
}
.table-labels,
.programme-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(120px, 0.9fr) minmax(180px, 1.25fr) minmax(160px, 1.1fr) 108px;
  gap: 28px;
}
.table-labels {
  padding: 14px 0;
  border-block: 1px solid var(--ink);
  font-size: 12px;
  color: var(--muted);
}
.programme-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.programme-name {
  min-width: 0;
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 6px;
}
.row-meta > * + *::before {
  content: '·';
  margin-right: 8px;
}
.row-meta a {
  text-decoration: none;
}
.row-meta a:hover {
  text-decoration: underline;
  color: var(--accent);
}
.programme-name h2 {
  font-size: 20px;
  font-weight: 600;
}
.programme-name h2 > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-height: 36px;
}
.programme-name h2 > a:hover {
  color: var(--accent);
}
.programme-name h2 svg {
  width: 19px;
  height: 19px;
}
.english-name {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.row-fact {
  padding-top: 0;
  min-width: 0;
}
.fact dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.fact dd {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.row-actions .text-button {
  font-size: 14px;
  white-space: nowrap;
  gap: 7px;
  min-height: 36px;
}
.row-actions svg {
  width: 16px;
  height: 16px;
}
.filter-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.school-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 55px;
}
.school-entry {
  padding: 28px 0 22px;
  border-top: 1px solid var(--ink);
  min-width: 0;
}
.school-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.school-entry h2 {
  font-size: 28px;
  font-weight: 600;
}
.school-entry h2 > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  min-height: 42px;
}
.school-entry h2 > a:hover {
  color: var(--accent);
}
.school-entry > .english-name {
  min-height: 46px;
  margin-top: 10px;
}
.school-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 20px;
}
.school-bottom > a {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  text-decoration: none;
}
.school-bottom > a:hover {
  color: var(--accent);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 28px 0 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs > a {
  text-decoration: none;
}
.breadcrumbs > a:hover {
  text-decoration: underline;
}
.breadcrumbs > [aria-current] {
  max-width: 440px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding: 25px 0 28px;
}
.profile-heading > div:first-child {
  min-width: 0;
}
.profile-context {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
.profile-context > a {
  text-decoration: none;
}
.profile-context > a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.profile-heading h1 {
  font-size: 42px;
  line-height: 1.4;
  max-width: 850px;
  letter-spacing: -0.025em;
}
.profile-english {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
  max-width: 75ch;
  overflow-wrap: anywhere;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: 300px;
}
.profile-actions .button {
  font-size: 14px;
  padding-inline: 14px;
}
.detail-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
}
.detail-return > a {
  font-size: 14px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}
.detail-return + .breadcrumbs {
  padding-top: 8px;
}
.profile-facts {
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.15fr;
  gap: 48px;
  padding: 28px 0 33px;
}
.profile-facts .fact dd {
  font-size: 15px;
}
.profile-facts .fact dt {
  font-size: 14px;
}
.page-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1px;
}
.page-tabs > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.page-tabs > a[aria-current] {
  color: var(--ink);
}
.primary-nav > a,
.page-tabs > a,
.search-mode > button {
  position: relative;
}
.primary-nav > a[aria-current]::after,
.page-tabs > a[aria-current]::after,
.search-mode > button[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--ink);
  pointer-events: none;
  transform-origin: left;
  transform: translateX(var(--nav-x, 0px)) scaleX(var(--nav-scale, 1));
}
.page-tabs > a[aria-current]::after {
  bottom: -2px;
}
.page-tabs > a:hover {
  color: var(--accent);
}
.motion-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: clip;
  pointer-events: none;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 72px;
  padding-top: 34px;
  align-items: start;
}
.detail-content {
  min-width: 0;
}
.detail-aside {
  position: sticky;
  top: 26px;
}
.detail-aside > section {
  border-top: 1px solid var(--ink);
  padding: 23px 0 26px;
}
.detail-aside h2 {
  font-size: 18px;
  font-weight: 600;
}
.detail-aside p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 10px;
}
.detail-aside .button {
  margin-top: 16px;
}
.detail-aside > .official-action {
  border: 0;
  padding-top: 0;
}
.official-action .button {
  margin-top: 0;
}
.detail-aside .inline-link {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.related-project {
  display: block;
  position: relative;
  padding: 17px 30px 17px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.related-project strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  line-height: 1.7;
}
.related-project span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.related-project svg {
  position: absolute;
  right: 0;
  top: 23px;
  width: 17px;
}
.section-intro {
  padding: 0 0 24px;
}
.section-intro h2,
.programme-overview > h2,
.content-columns h2,
.reading-content h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
}
.section-intro > p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
  max-width: 75ch;
}
.information-rows {
  margin-top: 24px;
}
h2.sr-only + .information-rows,
.section-intro > h2.sr-only + p {
  margin-top: 0;
}
.information-rows > div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 24px;
  padding: 19px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.9;
}
.information-rows dt {
  color: var(--muted);
  font-size: 14px;
}
.information-rows dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.information-rows dd > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}
.information-rows dd > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 16px 4px 0;
  font-size: 14px;
}
.information-rows dd > .source-link {
  display: flex;
  margin-top: 10px;
}
.claim-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.claim-section > h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}
.claim-section.policy-reference {
  display: block;
}
.policy-reference > summary {
  font-size: 14px;
}
.fact .year-mark.undated {
  display: block;
  margin-left: 0;
  line-height: 1.6;
}
.claim-lead {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.claim-note {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.claim-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 8px;
}
.claim-meta:empty {
  display: none;
}
.programme-overview + .claim-section,
.programme-overview + .year-summary {
  margin-top: 20px;
}
.claim-text {
  font-size: 15px;
  line-height: 1.95;
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-width: 75ch;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-top: 13px;
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-height: 32px;
}
.source-link svg {
  width: 15px;
  height: 15px;
}
.source-links > span {
  font-size: 14px;
  color: var(--muted);
}
.long-source {
  margin-top: 10px;
}
.long-source summary {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.long-source .claim-text {
  padding: 14px 0;
}
.missing-copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.next-reading {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  margin-top: 26px;
}
.next-reading h3 {
  font-size: 20px;
}
.next-reading > div {
  display: flex;
  gap: 32px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.next-reading a {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.field-source-list > section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding: 23px 0;
}
.field-source-list h3 {
  font-size: 18px;
}
.field-source-list p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.field-source-list > section > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: flex-start;
}
.school-heading {
  padding-top: 23px;
}
.tab-content {
  padding-top: 34px;
}
.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 72px;
  align-items: start;
}
.aside-note {
  padding: 24px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.85;
}
.aside-note h3 {
  font-size: 20px;
}
.aside-note p {
  margin-top: 12px;
  color: var(--muted);
}
.aside-note .inline-link {
  margin-top: 13px;
}
.school-references {
  max-width: 850px;
  margin-top: 40px;
}
.school-references > h2 {
  font-size: 28px;
}
.reference-item {
  padding: 25px 0;
  border-top: 1px solid var(--rule);
  margin-top: 20px;
}
.reference-item h3 {
  font-size: 20px;
  font-weight: 600;
}
.reference-item > p {
  font-size: 15px;
  line-height: 1.9;
  max-width: 75ch;
  margin-top: 12px;
}
.source-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
  font-size: 14px;
  color: var(--muted);
}
.source-directory {
  margin: 27px 0;
}
.source-directory > div {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.source-directory strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.source-directory a {
  word-break: break-all;
}
.local-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.local-note > a {
  margin-left: 12px;
}
.status-filters {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.status-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}
.status-filters a[aria-current] {
  color: var(--ink);
  text-decoration: underline 2px;
  text-underline-offset: 9px;
}
.saved-item {
  padding: 28px 0 30px;
  border-top: 1px solid var(--ink);
}
.saved-summary {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.saved-summary > div:first-child {
  max-width: 750px;
  min-width: 0;
}
.school-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.school-link:hover {
  text-decoration: underline;
}
.saved-summary h2 {
  font-size: 24px;
  margin-top: 10px;
}
.saved-summary h2 > a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}
.saved-summary h2 > a:hover {
  color: var(--accent);
}
.saved-summary > div > p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.saved-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 160px;
}
.saved-controls > label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.saved-controls select {
  font-size: 14px;
  color: var(--ink);
  min-width: 123px;
}
.saved-controls .text-button {
  font-size: 14px;
}
.note-label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.saved-item textarea {
  display: block;
  width: 100%;
  max-width: 1000px;
  font-size: 14px;
}
.compare-tray {
  position: fixed;
  z-index: 25;
  inset: auto 0 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  padding: 10px max(48px, calc((100% - 1344px) / 2));
  background: var(--background);
  border-top: 1px solid var(--ink);
}
body:has(.compare-tray) .site-footer {
  padding-bottom: 110px;
}
.compare-tray > div {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 14px;
}
.compare-tray strong {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.compare-tray > .text-button {
  font-size: 14px;
}
.compare-tray > .button {
  min-height: 42px;
  font-size: 14px;
}
.comparison-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 17px 0;
  border-block: 1px solid var(--rule);
}
.comparison-tools > p {
  white-space: nowrap;
  font-size: 14px;
}
.comparison-tools > p > span {
  color: var(--muted);
}
.comparison-tools > div {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.comparison-tools .text-button {
  font-size: 14px;
}
.table-hint {
  display: none;
  font-size: 12px;
  color: var(--muted);
  margin: 22px 0 14px;
}
.comparison-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
}
.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  min-width: 940px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  padding: 22px 24px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--background);
}
.comparison-table th:first-child {
  width: 150px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  font-weight: 500;
}
.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}
.comparison-table thead th {
  min-width: 260px;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--ink);
}
.comparison-table thead th:first-child {
  z-index: 2;
}
.comparison-table thead h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin: 12px 0;
}
.comparison-table h2 > a {
  text-decoration: none;
}
.compare-school {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.comparison-table thead p {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.comparison-table thead th {
  height: 1px;
}
.compare-head {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.compare-head > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
}
.comparison-table .text-button {
  font-weight: 400;
  font-size: 14px;
}
.comparison-table .claim-text {
  font-size: 14px;
  line-height: 1.85;
  margin-top: 8px;
}
.comparison-table td > .claim-text:first-child {
  margin-top: 0;
}
.comparison-table .source-link {
  margin-top: 12px;
}
.comparison-table .long-source {
  font-weight: 400;
}
.comparison-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 21px;
}
.reading-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 75px;
  align-items: start;
}
.reading-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: sticky;
  top: 28px;
  padding-top: 10px;
}
.reading-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}
.reading-nav > a:hover {
  color: var(--accent);
}
.reading-content {
  max-width: 880px;
  min-width: 0;
}
.reading-content > section {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.reading-content > section:first-child {
  padding-top: 10px;
  border: 0;
}
.reading-content p {
  font-size: 15px;
  line-height: 1.95;
  margin-top: 16px;
  max-width: 75ch;
}
.reading-content .inline-link,
.reading-content > .button {
  margin-top: 20px;
}
.meaning-list {
  margin-top: 27px;
}
.meaning-list > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.85;
}
.meaning-list dt {
  font-weight: 600;
}
.meaning-list dd {
  color: var(--muted);
}
.coverage-scroll {
  overflow-x: auto;
  margin: 25px 0;
}
.coverage-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}
.coverage-table th,
.coverage-table td {
  text-align: left;
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.coverage-table thead th {
  font-weight: 500;
  color: var(--muted);
  border-block: 1px solid var(--ink);
}
.coverage-table tbody th {
  font-weight: 500;
}
.coverage-table th:first-child {
  padding-left: 0;
}
.update-intro {
  margin: 30px 0 36px;
  padding: 21px 25px;
  background: var(--surface);
  line-height: 1.85;
}
.update-intro strong {
  font-size: 15px;
  font-weight: 600;
}
.update-intro p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.update-batch {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 60px;
  margin: 36px 0;
}
.update-batch > h2 {
  font-size: 24px;
  font-weight: 500;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.update-item {
  border-top: 1px solid var(--rule);
  padding: 24px 0 30px;
}
.update-item:first-child {
  border-color: var(--ink);
}
.update-item > p,
.update-item > span {
  font-size: 12px;
  color: var(--muted);
}
.update-item h3 {
  font-size: 20px;
  margin: 12px 0 8px;
}
.update-item h3 > a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.update-item details {
  margin-top: 15px;
  font-size: 14px;
}
.change-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  background: var(--surface);
  padding: 22px;
}
.change-text h4 {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.change-text p {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.guide-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.guide-paths > section {
  border-top: 1px solid var(--ink);
  padding: 28px 0;
}
.guide-paths h2 {
  font-size: 28px;
}
.guide-paths p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin-top: 17px;
  max-width: 60ch;
}
.guide-paths .button {
  margin-top: 24px;
}
.guide-paths ol {
  font-size: 15px;
  line-height: 2.2;
  margin: 24px 0 0;
  padding-left: 24px;
}
.guide-next {
  padding: 32px 36px;
  background: var(--soft);
  margin: 25px 0 44px;
}
.guide-next h2 {
  font-size: 28px;
}
.guide-next p {
  font-size: 16px;
  line-height: 1.9;
  margin-top: 14px;
  max-width: 78ch;
}
.guide-next .inline-link {
  margin-top: 13px;
  color: var(--accent);
}
.faq {
  max-width: 900px;
}
.faq > h2 {
  font-size: 28px;
  margin-bottom: 23px;
}
.faq details {
  border-top: 1px solid var(--rule);
  padding: 12px 0;
}
.faq summary {
  font-size: 16px;
  font-weight: 600;
}
.faq p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  padding: 8px 0 16px;
  max-width: 75ch;
}
.faq a {
  font-size: 14px;
}
.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.reset-section .button {
  margin-top: 22px;
}
.reset-section > p {
  max-width: 65ch;
}
.not-found {
  padding: 30px 0 100px;
}
.empty-state {
  padding: 64px 28px;
  background: var(--surface);
  text-align: center;
  margin: 16px 0 28px;
}
.empty-state h2 {
  font-size: 28px;
  line-height: 1.6;
}
.empty-state p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 63ch;
  margin: 15px auto 25px;
}
.empty-state h2 + .empty-actions {
  margin-top: 24px;
}
.empty-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.not-found .empty-actions {
  justify-content: flex-start;
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 80px;
  border-top: 1px solid var(--ink);
  padding: 44px 0 120px;
  margin-top: 80px;
}
.site-footer .brand {
  font-size: 32px;
}
.site-footer > div > p {
  font-size: 15px;
  margin-top: 16px;
}
.site-footer > nav {
  display: flex;
  justify-content: flex-end;
  gap: 90px;
}
.site-footer nav > div {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 120px;
  font-size: 14px;
}
.site-footer nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.site-footer nav a:hover {
  color: var(--accent);
}
.footer-note {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  max-width: 95ch;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
dialog {
  max-width: calc(100% - 32px);
  width: 620px;
  max-height: 85vh;
  border: 0;
  padding: 30px;
  background: var(--background);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: var(--backdrop);
}
dialog h2 {
  font-size: 24px;
}
dialog > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
}
.dialog-actions > span {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}
#compare-picker {
  padding: 25px 28px;
}
#compare-picker > .search-field {
  margin-top: 23px;
  min-height: 48px;
}
.picker-list {
  margin-top: 18px;
  max-height: 44vh;
  overflow-y: auto;
  padding: 0 4px;
}
.picker-item {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}
.picker-item > span {
  min-width: 0;
}
.picker-item strong {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  display: block;
}
.picker-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
}
.picker-item:has(input:disabled) {
  opacity: 0.5;
}
.picker-item:has(input:checked) {
  color: var(--accent);
}
#picker-empty {
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 105px;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--background);
  font-size: 14px;
  line-height: 1.7;
  padding: 13px 20px;
  max-width: min(90vw, 620px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading,
.load-error {
  max-width: 800px;
  margin: 12vh auto;
  padding: 28px;
}
.loading h1,
.load-error h1 {
  font-size: 36px;
}
.loading p,
.load-error p {
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.9;
}
.load-error button {
  margin-top: 24px;
}
.skeleton {
  height: 30px;
  background: var(--surface);
  margin-top: 22px;
  width: 100%;
}
.skeleton:nth-of-type(2) {
  width: 70%;
}
.detail-aside > section > .button + .inline-link {
  display: flex;
  width: fit-content;
  margin-top: 12px;
}
.tab-scroll-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.year-mark {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 20px;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  white-space: nowrap;
  vertical-align: 1px;
}
.year-mark.undated {
  padding: 0;
  border: 0;
  color: var(--muted);
}
.claim-meta > .year-mark,
.field-source-list p > .year-mark {
  margin-left: 0;
}
.fact-excerpt {
  display: block;
  font-size: 14px;
}
.fact-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.fact-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-underline-offset: 4px;
}
.fact-link svg {
  width: 14px;
  height: 14px;
}
.course-scroll {
  overflow-x: auto;
  margin: 14px 0 4px;
}
.course-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 14px;
}
.course-table th,
.course-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--rule);
}
.course-table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--ink);
}
.course-table td:first-child,
.course-table td:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fact-missing {
  color: var(--muted);
}
.filter-row.with-host {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.filter-panel > summary {
  display: none;
}
.filter-panel:not([open]) > summary,
.filter-panel > summary:focus-visible {
  display: flex;
}
.filter-panel > summary {
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.filter-panel > summary::-webkit-details-marker {
  display: none;
}
.filter-panel > summary > span {
  min-width: 20px;
  line-height: 20px;
  padding: 0 5px;
  text-align: center;
  font-size: 12px;
  color: var(--on-accent);
  background: var(--accent-fill);
}
.results-divider {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  color: var(--muted);
}
.rank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
}
.rank-chip {
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rank-chip > span {
  color: var(--muted);
  margin-right: 6px;
}
.school-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.school-facts dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.compact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.compact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.compact-list a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.compact-list a:hover {
  color: var(--accent);
}
.compact-list svg,
.more-link svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.compact-list span {
  font-size: 12px;
  color: var(--muted);
}
.school-group {
  margin-top: 56px;
}
.school-group > h2 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
}
.empty-state.compact {
  margin-top: 24px;
  padding: 28px;
  text-align: left;
}
.empty-state.compact p {
  margin: 0 0 16px;
}
.more-official {
  margin-top: 24px;
  font-size: 14px;
}
.saved-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.compare-value {
  margin-bottom: 8px;
  font-weight: 600;
}
.picker-list h3 {
  margin: 16px 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.picker-note {
  padding: 16px 0;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 1200px) {
  .site-header {
    gap: 22px;
    padding-inline: 32px;
  }
  .page-shell {
    padding-inline: 32px;
  }
  .primary-nav {
    gap: 20px;
  }
  .header-tools {
    gap: 16px;
  }
  .brand small {
    display: none;
  }
  .landing-hero {
    gap: 7%;
    grid-template-columns: 1.1fr 1fr;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .table-labels,
  .programme-row {
    grid-template-columns: minmax(220px, 1.8fr) minmax(110px, 0.9fr) minmax(150px, 1.2fr) minmax(140px, 1fr) 108px;
    gap: 22px;
  }
  .programme-name h2 {
    font-size: 20px;
  }
  .row-actions {
    padding-left: 0;
  }
  .detail-layout,
  .content-columns {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 44px;
  }
  .profile-heading h1 {
    font-size: 36px;
  }
  .profile-actions {
    max-width: 240px;
  }
  .profile-facts {
    gap: 30px;
  }
  .advanced-filters {
    grid-template-columns: 1.2fr 1fr;
    gap: 18px 30px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
  .reading-layout {
    gap: 45px;
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .site-footer > nav {
    gap: 55px;
  }
  .guide-paths {
    gap: 40px;
  }
}
@media (max-width: 920px) {
  .site-header {
    min-height: 86px;
    gap: 20px;
  }
  .primary-nav {
    gap: 18px;
  }
  .primary-nav > a {
    font-size: 14px;
  }
  .header-tools {
    gap: 12px;
  }
  .header-compare > span {
    display: none;
  }
  .landing-hero {
    padding-top: 45px;
    gap: 40px;
  }
  .hero-copy h1 {
    font-size: 46px;
  }
  .region-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .region-paths h2 {
    font-size: 24px;
  }
  .region-paths > a {
    padding: 24px 22px;
  }
  .region-paths > a:nth-child(odd) {
    padding-left: 0;
  }
  .region-paths > a:nth-child(even) {
    border-right: 0;
    padding-right: 0;
  }
  .region-paths > a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
  .filter-row.with-host {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .compact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .school-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-hint {
    display: block;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .heading-actions {
    flex-direction: column;
    gap: 9px;
  }
  .table-labels {
    display: none;
  }
  .programme-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    border-top: 1px solid var(--ink);
    border-bottom: 0;
  }
  .programme-name {
    grid-column: 1/-1;
  }
  .programme-row > .row-fact:last-of-type {
    grid-column: 1/-1;
  }
  .programme-name h2 {
    font-size: 24px;
  }
  .row-fact dt {
    display: block;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 9px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .row-fact {
    padding-top: 0;
  }
  .row-actions {
    grid-column: 1/-1;
    flex-direction: row;
    gap: 24px;
    border-top: 1px solid var(--rule);
    padding-top: 8px;
  }
  .row-meta {
    justify-content: flex-start;
  }
  .programme-row .english-name {
    max-width: 75ch;
  }
  .home-section .compact .programme-row:last-child {
    border-bottom: 0;
  }
  .school-list {
    gap: 0 32px;
  }
  .school-entry h2 {
    font-size: 24px;
  }
  .school-topline {
    display: block;
  }
  .school-topline > span + span {
    display: block;
    margin-top: 4px;
  }
  .school-entry > .english-name {
    min-height: 48px;
  }
  .detail-layout,
  .content-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .detail-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 35px;
  }
  .profile-heading {
    display: block;
  }
  .profile-actions {
    margin-top: 20px;
    max-width: none;
    justify-content: flex-start;
  }
  .profile-heading h1 {
    max-width: none;
    font-size: 36px;
  }
  .profile-facts {
    gap: 20px;
  }
  .profile-facts .fact dd {
    font-size: 14px;
  }
  .page-tabs {
    gap: 27px;
  }
  .page-tabs > a {
    font-size: 14px;
  }
  .content-columns .aside-note {
    max-width: 560px;
  }
  .results-toolbar p > span {
    display: block;
    margin: 3px 0 0;
  }
  .reading-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .reading-nav {
    position: static;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 15px;
  }
  .reading-content {
    max-width: none;
  }
  .guide-paths h2 {
    font-size: 24px;
  }
  .guide-paths p {
    font-size: 15px;
  }
  .update-batch {
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 30px;
  }
  .comparison-tools {
    align-items: flex-start;
  }
  .comparison-tools > div {
    gap: 4px 20px;
    justify-content: flex-end;
  }
  .comparison-tools .checkbox-label {
    width: 100%;
    justify-content: flex-end;
  }
  .saved-controls {
    min-width: 150px;
  }
}
@media (max-width: 680px) {
  .site-header {
    padding-inline: 20px;
    min-height: 77px;
    gap: 16px;
  }
  .brand {
    font-size: 28px;
  }
  .header-tools {
    margin-left: auto;
    gap: 12px;
  }
  .header-compare {
    gap: 5px;
  }
  .header-compare svg {
    width: 18px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
  }
  .primary-nav {
    display: none;
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    margin: 0;
    padding: 15px 20px 20px;
    border-bottom: 1px solid var(--ink);
  }
  .primary-nav.open {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 25px;
  }
  .primary-nav > a {
    font-size: 15px;
    min-height: 44px;
  }
  .primary-nav > a[aria-current] {
    text-underline-offset: 7px;
  }
  .page-shell {
    padding-inline: 20px;
  }
  .landing-hero {
    display: block;
    padding: 34px 0 30px;
  }
  .hero-copy h1 {
    font-size: 46px;
    line-height: 1.28;
  }
  .hero-copy > .inline-link {
    margin-top: 16px;
  }
  .hero-search {
    margin-top: 32px;
  }
  .search-mode {
    margin-bottom: 20px;
  }
  .hero-topics {
    margin-top: 15px;
  }
  .region-paths {
    grid-template-columns: 1fr;
  }
  .region-paths > a,
  .region-paths > a:first-child,
  .region-paths > a:last-child {
    padding: 19px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .region-paths > a:last-child {
    border-bottom: 0;
  }
  .region-paths h2 {
    font-size: 24px;
  }
  .region-paths svg {
    width: 23px;
  }
  .home-section {
    padding-top: 40px;
  }
  .section-heading {
    display: block;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 28px;
    line-height: 1.5;
  }
  .section-heading p {
    font-size: 14px;
    line-height: 1.85;
    margin-top: 10px;
  }
  .section-heading > .inline-link {
    margin-top: 13px;
    font-size: 14px;
  }
  .page-heading {
    display: block;
    padding: 33px 0 26px;
  }
  .page-heading h1 {
    font-size: 35px;
    line-height: 1.4;
  }
  .page-heading p {
    font-size: 15px;
    line-height: 1.9;
    margin-top: 12px;
  }
  .heading-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .heading-actions .button {
    font-size: 14px;
  }
  .search-line {
    gap: 9px;
  }
  .search-field {
    padding: 7px 12px;
    min-height: 51px;
    gap: 10px;
  }
  .search-field input {
    font-size: 16px;
  }
  .search-field svg {
    width: 20px;
    height: 20px;
  }
  .search-line > .button {
    min-width: 64px;
    padding-inline: 13px;
    font-size: 14px;
  }
  .search-line > .button svg {
    display: none;
  }
  .filter-row,
  .filter-row.with-host {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-top: 20px;
  }
  .compact-list,
  .saved-facts {
    grid-template-columns: 1fr;
  }
  .filter-panel > summary {
    display: flex;
  }
  .saved-facts {
    gap: 10px;
  }
  .filter-row label {
    font-size: 12px;
    gap: 4px;
  }
  .filter-row select {
    font-size: 14px;
  }
  .more-filters > summary {
    font-size: 14px;
  }
  .more-filters > summary > span {
    font-size: 12px;
    margin-left: 8px;
  }
  .advanced-filters {
    display: block;
    padding-top: 15px;
  }
  .advanced-filters > label {
    margin-bottom: 18px;
    font-size: 12px;
  }
  .advanced-filters .checkbox-label {
    font-size: 14px !important;
    margin-bottom: 9px;
  }
  .filter-explainer {
    font-size: 14px;
  }
  .active-filters {
    gap: 4px 15px;
  }
  .active-filters > a {
    font-size: 12px;
  }
  .results-toolbar {
    gap: 18px;
    padding: 20px 0;
    align-items: flex-start;
  }
  .results-toolbar > div {
    gap: 12px;
  }
  .results-toolbar strong {
    font-size: 16px;
  }
  .results-toolbar p {
    font-size: 14px;
  }
  .results-toolbar p > span {
    font-size: 12px;
    line-height: 1.7;
  }
  .results-toolbar .text-link {
    font-size: 12px;
    min-height: 38px;
    white-space: nowrap;
  }
  .sort-control {
    font-size: 0;
    gap: 0;
  }
  .sort-control select {
    font-size: 14px;
    padding-right: 16px;
    max-width: 97px;
  }
  .programme-row {
    gap: 20px 24px;
    padding: 23px 0;
  }
  .row-meta {
    font-size: 12px;
    gap: 11px;
  }
  .programme-name h2 {
    font-size: 20px;
    line-height: 1.5;
  }
  .programme-name h2 > a {
    gap: 12px;
  }
  .english-name {
    font-size: 14px;
    line-height: 1.7;
  }
  .row-kind {
    font-size: 12px;
    margin-top: 9px;
  }
  .fact dt {
    font-size: 12px;
  }
  .fact dd {
    font-size: 14px;
    line-height: 1.85;
  }
  .row-actions {
    gap: 25px;
    padding-top: 7px;
  }
  .row-actions .text-button {
    font-size: 14px;
    min-height: 44px;
  }
  .school-list {
    display: block;
  }
  .school-entry {
    padding: 24px 0;
  }
  .school-topline {
    display: flex;
    gap: 10px;
    font-size: 12px;
  }
  .school-topline > span + span {
    margin: 0;
    text-align: right;
  }
  .school-entry h2 {
    font-size: 24px;
  }
  .school-entry > .english-name {
    min-height: 0;
    font-size: 14px;
  }
  .school-bottom {
    margin-top: 18px;
    padding-top: 9px;
  }
  .school-bottom > a {
    font-size: 14px;
  }
  .region-tabs {
    gap: 20px;
    font-size: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 0;
  }
  .region-tabs a {
    font-size: 14px;
    white-space: nowrap;
    min-height: 39px;
  }
  .breadcrumbs {
    font-size: 12px;
    gap: 8px;
    padding-top: 23px;
  }
  .breadcrumbs > [aria-current] {
    max-width: 210px;
  }
  .profile-heading {
    padding-top: 22px;
    padding-bottom: 23px;
  }
  .profile-heading h1 {
    font-size: 32px;
    line-height: 1.5;
  }
  .profile-context {
    font-size: 14px;
    gap: 9px;
    margin-top: 12px;
  }
  .profile-english {
    font-size: 15px;
    line-height: 1.85;
  }
  .profile-actions {
    gap: 10px;
    margin-top: 20px;
  }
  .profile-actions .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 14px;
  }
  .detail-return {
    padding-top: 14px;
    gap: 14px;
  }
  .detail-return > a {
    font-size: 14px;
  }
  .detail-return > .text-button {
    font-size: 12px;
    gap: 6px;
  }
  .detail-return svg {
    width: 17px;
    height: 17px;
  }
  .profile-facts {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
    padding: 24px 0;
  }
  .profile-facts > .fact:last-child {
    grid-column: 1/-1;
    border-top: 1px solid var(--rule);
    padding-top: 18px;
  }
  .school-facts > .fact:last-child {
    grid-column: auto;
    border: 0;
    padding-top: 0;
  }
  .profile-facts .fact dt {
    font-size: 12px;
  }
  .profile-facts .fact dd {
    font-size: 14px;
  }
  .page-tabs {
    gap: 24px;
  }
  .page-tabs > a {
    min-height: 54px;
    font-size: 14px;
  }
  .detail-layout {
    padding-top: 27px;
    gap: 30px;
  }
  .detail-aside {
    display: block;
  }
  .detail-aside > section {
    padding: 24px 0;
  }
  .detail-aside h2 {
    font-size: 20px;
  }
  .detail-aside .button {
    margin-right: 15px;
  }
  .section-intro h2,
  .programme-overview > h2,
  .content-columns h2,
  .reading-content h2 {
    font-size: 24px;
  }
  .section-intro > p {
    font-size: 14px;
    line-height: 1.9;
  }
  .section-intro {
    padding-bottom: 20px;
  }
  .information-rows {
    margin-top: 20px;
  }
  .information-rows > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 17px 0;
    font-size: 14px;
  }
  .information-rows dt {
    font-size: 14px;
  }
  .information-rows dd > span {
    font-size: 14px;
    line-height: 1.9;
  }
  .information-rows dd > a {
    font-size: 14px;
  }
  .claim-section {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
  .claim-text {
    font-size: 14px;
    line-height: 1.95;
  }
  .source-link {
    font-size: 14px;
    min-height: 37px;
  }
  .next-reading h3 {
    font-size: 20px;
  }
  .next-reading > div {
    gap: 24px;
  }
  .field-source-list > section {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 17px;
  }
  .field-source-list h3 {
    font-size: 16px;
  }
  .field-source-list p {
    font-size: 12px;
  }
  .field-source-list > section > div:last-child {
    display: block;
  }
  .field-source-list .source-link {
    display: flex;
    font-size: 14px;
  }
  .tab-content {
    padding-top: 25px;
  }
  .school-references > h2 {
    font-size: 24px;
  }
  .reference-item h3 {
    font-size: 18px;
    line-height: 1.6;
  }
  .reference-item > p {
    font-size: 14px;
  }
  .source-meta {
    font-size: 14px;
    gap: 8px;
  }
  .reading-content > .reference-item {
    margin-top: 23px;
  }
  .local-note {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 20px;
  }
  .local-note > a {
    margin-left: 0;
    display: inline-flex;
    margin-top: 4px;
  }
  .status-filters {
    gap: 18px;
  }
  .status-filters a {
    font-size: 14px;
    min-height: 35px;
  }
  .saved-summary {
    display: block;
    margin-bottom: 20px;
  }
  .saved-summary h2 {
    font-size: 24px;
  }
  .saved-summary h2 > a {
    gap: 12px;
  }
  .saved-controls {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 20px;
    margin-top: 18px;
  }
  .saved-controls > label {
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }
  .saved-controls select {
    min-width: 180px;
  }
  .saved-controls .text-button {
    font-size: 14px;
  }
  .saved-item {
    padding-top: 23px;
  }
  .note-label {
    font-size: 14px;
  }
  .saved-item textarea {
    font-size: 14px;
  }
  .comparison-tools {
    display: block;
    padding: 16px 0;
  }
  .comparison-tools > div {
    justify-content: flex-start;
    gap: 0 22px;
    margin-top: 10px;
  }
  .comparison-tools .checkbox-label {
    justify-content: flex-start;
    width: 100%;
    font-size: 14px !important;
  }
  .comparison-tools > p {
    font-size: 14px;
  }
  .table-hint {
    font-size: 12px;
    line-height: 1.8;
  }
  .comparison-table {
    min-width: 850px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 18px 20px;
  }
  .comparison-table th:first-child {
    width: 96px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }
  .comparison-scroll {
    scroll-snap-type: x mandatory;
    scroll-padding-left: 96px;
  }
  .comparison-table thead th:not(:first-child) {
    scroll-snap-align: start;
  }
  .comparison-table thead h2 {
    font-size: 20px;
  }
  .comparison-table .claim-text {
    font-size: 14px;
  }
  .comparison-bottom {
    display: block;
  }
  .comparison-bottom > a {
    font-size: 14px;
    margin: 5px 0;
  }
  .compare-tray {
    gap: 15px;
    padding: 8px 20px;
    justify-content: space-between;
  }
  .compare-tray > div {
    font-size: 12px;
    gap: 6px;
  }
  .compare-tray strong {
    font-size: 18px;
  }
  .compare-tray > .button {
    padding: 9px 12px;
    font-size: 12px;
    gap: 7px;
  }
  .compare-tray > .text-button {
    font-size: 12px;
  }
  .compare-tray svg {
    width: 17px;
  }
  .reading-nav {
    gap: 9px 20px;
  }
  .reading-nav > a {
    font-size: 14px;
    min-height: 34px;
  }
  .reading-layout {
    gap: 18px;
  }
  .reading-content p {
    font-size: 14px;
    line-height: 1.95;
  }
  .reading-content > section {
    padding: 27px 0;
  }
  .meaning-list > div {
    display: block;
    padding: 18px 0;
    font-size: 14px;
  }
  .meaning-list dt {
    margin-bottom: 7px;
  }
  .coverage-table {
    font-size: 14px;
    min-width: 560px;
  }
  .coverage-table th,
  .coverage-table td {
    padding: 15px 12px;
  }
  .update-intro {
    padding: 20px;
    margin-top: 25px;
  }
  .update-intro strong {
    font-size: 14px;
  }
  .update-intro p {
    font-size: 14px;
  }
  .update-batch {
    display: block;
    margin-top: 28px;
  }
  .update-batch > h2 {
    font-size: 24px;
    padding: 18px 0;
  }
  .update-item {
    padding: 21px 0;
  }
  .update-item h3 {
    font-size: 20px;
    line-height: 1.6;
  }
  .update-item > p,
  .update-item > span {
    font-size: 12px;
  }
  .change-text {
    display: block;
    padding: 20px;
  }
  .change-text > div + div {
    margin-top: 24px;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
  }
  .guide-paths {
    display: block;
  }
  .guide-paths h2 {
    font-size: 28px;
  }
  .guide-paths p {
    font-size: 15px;
  }
  .guide-paths .button {
    margin-top: 20px;
    font-size: 14px;
  }
  .guide-paths ol {
    font-size: 14px;
    padding-left: 20px;
  }
  .guide-next {
    padding: 26px 23px;
    margin-top: 20px;
  }
  .guide-next h2 {
    font-size: 24px;
  }
  .guide-next p {
    font-size: 15px;
  }
  .faq > h2 {
    font-size: 28px;
  }
  .faq summary {
    font-size: 15px;
  }
  .faq p {
    font-size: 14px;
  }
  .empty-state {
    padding: 38px 22px;
  }
  .empty-state h2 {
    font-size: 24px;
  }
  .empty-state p {
    font-size: 14px;
  }
  .empty-actions {
    gap: 11px;
  }
  .empty-actions > .button {
    font-size: 14px;
  }
  .site-footer {
    display: block;
    padding-top: 32px;
    margin-top: 52px;
  }
  .site-footer > nav {
    justify-content: flex-start;
    gap: 55px;
    margin-top: 32px;
  }
  .site-footer nav > div {
    min-width: 110px;
    gap: 8px;
  }
  .site-footer nav a {
    font-size: 14px;
    min-height: 32px;
  }
  .footer-note {
    margin-top: 30px;
    font-size: 12px;
    line-height: 1.9;
  }
  .site-footer > div > p {
    font-size: 14px;
  }
  .toast {
    bottom: 91px;
    font-size: 14px;
    padding: 12px 17px;
    max-width: calc(100% - 32px);
    width: max-content;
  }
  dialog,
  #compare-picker {
    padding: 22px;
    max-height: 88vh;
    width: calc(100% - 28px);
    max-width: none;
  }
  dialog h2 {
    font-size: 24px;
  }
  .dialog-actions {
    gap: 9px;
    flex-wrap: wrap;
  }
  .dialog-actions > .button {
    font-size: 14px;
    padding-inline: 14px;
  }
  .dialog-actions > span {
    font-size: 12px;
  }
  .picker-list {
    max-height: 46vh;
  }
  .picker-item {
    gap: 12px;
    padding-block: 16px;
  }
  .picker-item strong {
    font-size: 14px;
  }
  .picker-item small {
    font-size: 12px;
  }
  .loading,
  .load-error {
    margin-top: 10vh;
    padding: 24px;
  }
  .loading h1,
  .load-error h1 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 14px;
}
.pagination p {
  margin: 0;
  white-space: nowrap;
}
.pagination p > span {
  color: var(--muted);
  margin-left: 12px;
}
.pagination-controls,
.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-controls a,
.pagination-controls span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.pagination-controls a:hover {
  background: var(--surface);
}
.pagination-controls [aria-current] {
  background: var(--ink);
  color: var(--background);
}
.pagination-controls [aria-disabled] {
  color: var(--muted);
  opacity: 0.65;
}
.pagination-controls .page-position {
  display: none;
}
#programme-results {
  scroll-margin-top: 24px;
}
@media (max-width: 680px) {
  .pagination {
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
  }
  .pagination > p {
    width: 100%;
    font-size: 12px;
  }
  .pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
  .pagination .page-numbers {
    display: none;
  }
  .pagination-controls .page-position {
    display: inline-flex;
  }
  .pagination-controls > a,
  .pagination-controls > span {
    padding-inline: 12px;
  }
}

.entity-rankings {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}
.entity-rankings summary {
  cursor: pointer;
  padding: 8px 0;
}
.entity-rankings section {
  border-top: 1px solid var(--rule);
  padding: 12px 0;
}
.entity-rankings h4 {
  margin: 8px 0;
}
.entity-rank-row {
  margin: 10px 0;
}
.fact-missing + .source-link {
  margin-left: 10px;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.subject-card {
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--rule);
}
.subject-card > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  color: var(--ink);
  text-decoration: none;
}
.subject-card > a:hover strong {
  color: var(--accent);
}
.subject-card strong {
  font-size: 18px;
  font-weight: 600;
}
.subject-card > a > span {
  grid-row: 2;
  font-size: 12px;
  color: var(--muted);
}
.subject-card svg {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  width: 18px;
  height: 18px;
}
.subject-topics,
.subject-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.subject-topics a,
.subject-links a {
  padding: 0 8px;
  font-size: 12px;
  line-height: 24px;
  color: var(--accent);
  background: var(--soft);
  text-decoration: none;
}
.subject-links a span {
  margin-left: 6px;
  color: var(--muted);
}
.school-intro {
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
}
.school-intro .attribution {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.page-loading {
  display: grid;
  gap: 16px;
  padding: 48px 0;
}
@media (max-width: 1200px) {
  .subject-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subject-card {
    padding-right: 12px;
  }
}
.theme-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 22px;
  font-size: 14px;
}
.theme-switch button {
  min-height: 36px;
  color: var(--muted);
}
.theme-switch button:hover {
  color: var(--accent);
}
.theme-switch button[aria-pressed='true'] {
  color: var(--ink);
  text-decoration: underline 2px;
  text-underline-offset: 7px;
}
h1.plain-display {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.update-item > p {
  font-size: 12px;
  color: var(--muted);
}
.update-fields {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.update-fields li {
  border-top: 1px solid var(--rule);
}
.update-fields summary {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.update-fields summary > span {
  font-size: 12px;
  color: var(--muted);
}
.update-fields .change-text {
  margin-bottom: 8px;
}
