/* The college guide (colleges.mjs). The site's own tokens and parts (.section, .guide-intro,
   .guide-prose, .table-scroll, .guide-sources, .guide-cta); the photographs are content, framed
   the way the site frames a real photograph. No label sits over a heading. */

.college-main {
  --college-radius: 8px;
  --college-shade: linear-gradient(to top, rgba(16, 32, 43, 0.92) 0%, rgba(16, 32, 43, 0.45) 45%, rgba(16, 32, 43, 0.05) 100%);
}
.college-intro {
  padding-top: 45px;
  padding-bottom: 28px;
}

/* ---- the two doors ---- */
.college-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 56px;
}
.college-door {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(calc(52vh / var(--zoom)), 380px);
  overflow: hidden;
  border-radius: var(--college-radius);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.college-door-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}
.college-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--college-shade);
  z-index: -1;
}
.college-door:hover .college-door-photo,
.college-door:focus-visible .college-door-photo {
  transform: scale(1.04);
}
.college-door:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.college-door[aria-current="true"] {
  box-shadow: 0 0 0 3px var(--accent);
}
.college-door-body {
  display: grid;
  gap: 8px;
  padding: 32px;
  max-width: 34rem;
}
.college-door-body strong {
  font-size: clamp(34px, calc(4vw / var(--zoom)), 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.college-door-body > span {
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.college-door-go {
  margin-top: 8px;
  font-weight: 600;
  color: var(--white) !important;
}

/* ---- a country ---- */
.college-country {
  padding-top: 24px;
  padding-bottom: 56px;
  scroll-margin-top: 24px;
}
.college-country-head h2 {
  font-size: clamp(32px, calc(3.4vw / var(--zoom)), 44px);
  margin: 4px 0 10px;
}
.college-country-head p {
  max-width: 62ch;
  font-size: 17px;
  color: var(--muted);
}
.college-country-partner {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.college-country-partner .college-ou {
  color: var(--ink);
  font-weight: 600;
}

/* ---- the carousel ---- */
.college-carousel {
  margin: 36px 0 48px;
}
.college-carousel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.college-carousel-head h3 {
  font-size: 24px;
  margin: 0;
}
.college-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.college-carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.college-carousel-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.college-carousel-nav button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.college-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 20px;
  margin: 0;
  padding: 4px 2px 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.college-card {
  scroll-snap-align: start;
}
.college-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--college-radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.college-card a:hover,
.college-card a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 32, 43, 0.14);
}
.college-card-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.college-card-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  align-content: start;
  flex: 1;
}
.college-card-where {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.college-card h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}
.college-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.college-scores strong {
  color: var(--ink);
}
.college-card-first {
  display: grid;
  gap: 2px;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px dotted var(--ink);
  font-size: 14px;
}
.college-card-first span:last-child {
  font-size: 13px;
  color: var(--muted);
}

/* An open scholarship is the news on this page: clay, the site's colour for what to act on. */
.college-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.college-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}

/* ---- the ranking ---- */
.college-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
  margin: 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px dotted var(--ink);
}
.college-filter label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.college-filter :is(input[type="search"], select) {
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 11px;
  min-width: 0;
}
.college-filter input[type="search"] {
  width: min(280px, 100%);
}
.college-filter :is(input, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.college-filter .college-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
}
.college-intro-narrow {
  display: none;
}
/* A phone reads the intro in two lines, the name and the rate side by side at one height, and
   the scholarship switch and the count each on a line under them. */
@media (max-width: 620px) {
  .college-intro-wide {
    display: none;
  }
  .college-intro-narrow {
    display: inline;
  }
  .college-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .college-filter input[type="search"] {
    width: 100%;
  }
  .college-filter :is(input[type="search"], select) {
    height: 44px;
  }
  .college-filter:not(:has(select)) label:first-child {
    grid-column: 1 / -1;
  }
  .college-filter .college-check,
  .college-filter .college-count {
    grid-column: 1 / -1;
    margin: 0;
    padding-bottom: 0;
  }
}
.college-count {
  margin: 0 0 0 auto;
  padding-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.college-table {
  font-size: 16px;
}
.college-table :is(th, td) {
  font-size: 16px;
  vertical-align: top;
}
.college-table td {
  font-variant-numeric: tabular-nums;
}
.college-table tbody tr[data-college] {
  position: relative;
  cursor: pointer;
}
.college-table tbody tr[data-college]:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.college-table th[scope="row"] a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.college-academic {
  display: grid;
  gap: 8px;
  min-width: 150px;
}
.college-academic > span {
  display: grid;
  gap: 1px;
}
.college-academic small,
.college-stat-gpa small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.college-academic b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
}
.college-table th[scope="row"] a {
  color: var(--ink);
  font-weight: 600;
}
.college-rank {
  width: 3.2em;
  color: var(--muted);
}
.college-table tr.has-scholarships {
  background: linear-gradient(to right, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%);
}
.college-table tr.has-scholarships .college-rank {
  box-shadow: inset 3px 0 0 var(--accent);
}
.college-offer {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.college-offer-to {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 500;
}
.college-note {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.college-ranking > .college-note {
  max-width: 88ch;
  margin: 10px 0 16px;
}
/* ---- a university's page ---- */
.college-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(calc(46vh / var(--zoom)), 340px);
  color: var(--white);
  isolation: isolate;
}
.college-banner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.college-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--college-shade);
  z-index: -1;
}
.college-banner-body {
  padding-top: 40px;
  padding-bottom: 36px;
}
.college-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(16, 32, 43, 0.28);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.college-back:hover,
.college-back:focus-visible {
  border-color: var(--white);
  background: rgba(16, 32, 43, 0.56);
}
.college-banner-body p {
  margin: 10px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}
.college-banner-body h1 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: clamp(38px, calc(5vw / var(--zoom)), 68px);
  line-height: 1.02;
}
.college-page {
  padding-top: 0;
}
.college-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0 0 40px;
  border-bottom: 1px dotted var(--ink);
}
.college-stats-us {
  grid-template-columns: minmax(130px, 0.75fr) minmax(320px, 1.7fr) minmax(165px, 0.9fr) minmax(150px, 0.85fr) minmax(150px, 0.85fr);
}
.college-stats > div {
  padding: 22px 20px 22px 0;
}
.college-stats-us > div {
  padding-inline: 20px;
  text-align: center;
}
.college-stats-us > div + div {
  border-left: 1px dotted var(--line);
}
.college-stats dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.college-stats dd {
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.college-stat-open dd {
  color: var(--accent-deep);
}
.college-stat-gpa dd,
.college-stat-toefl dd {
  display: grid;
  gap: 2px;
}
.college-stat-gpa dd > strong,
.college-stat-toefl dd > strong {
  font-size: 30px;
  line-height: 1.1;
}
.college-stat-toefl dd > span {
  display: grid;
  gap: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--muted);
}
.college-stat-toefl dd > span > b {
  font-weight: 600;
  color: var(--ink);
}
.college-stats-us dt,
.college-stat-sat .college-sat-parts {
  justify-content: center;
}
.college-stat-sat dd > strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}
.college-sat-parts {
  display: flex;
  gap: 10px 26px;
  margin-top: 12px;
}
.college-sat-parts > span {
  display: grid;
  gap: 2px;
}
.college-sat-parts small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.college-sat-parts b {
  font-size: 16px;
  font-weight: 600;
}
.college-stat-help {
  position: relative;
  display: inline-flex;
}
.college-stat-help summary {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin: -5px 0 -5px 1px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--voyage-gold);
  background: var(--voyage-gold-soft);
  cursor: pointer;
  list-style: none;
}
.college-stat-help summary .hb-ic {
  width: 17px;
  height: 17px;
}
.college-stat-help summary::-webkit-details-marker { display: none; }
.college-stat-help[open] summary,
.college-stat-help summary:hover {
  border-color: var(--voyage-gold);
  background: var(--white);
}
.college-stat-help > div {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 50%;
  width: min(310px, calc(calc(100vw / var(--zoom)) - 60px));
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 32, 43, 0.16);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  translate: -50% 0;
}
.college-a-level-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 50px;
  margin: -24px 0 48px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--college-radius);
  background: var(--white);
}
.college-section-kicker {
  color: #477b70;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.college-a-level-panel h2 {
  margin: 5px 0 7px;
  font-size: clamp(21px, calc(2.5vw / var(--zoom)), 27px);
  line-height: 1.12;
}
.college-a-level-panel p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}
.college-a-level-panel .college-a-level-estimate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--ink);
}
/* The tip hangs from the line, not the button, so it starts under the text at any width. */
.college-a-level-estimate { position: relative; }
.college-a-level-estimate .college-info { position: static; }
.college-a-level-estimate .college-info::after { left: 0; translate: 0 2px; }
.college-a-level-estimate .college-info:is(:hover, :focus, :focus-visible)::after { translate: 0 0; }
.college-a-level-estimate > span {
  color: var(--muted);
  font-size: 14px;
}
.college-a-level-estimate > b {
  font-size: 22px;
  letter-spacing: .01em;
}
.college-a-level-panel > a {
  flex: none;
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}
.college-scholarship-panel {
  margin: 0 0 48px;
  padding: 30px;
  border-radius: var(--college-radius);
  background: linear-gradient(145deg, var(--sea), #f6faf9);
  border: 1px solid rgba(16, 32, 43, 0.08);
}
.college-scholarship-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 36px;
}
.college-scholarship-panel h2 {
  margin: 4px 0;
  font-size: 32px;
}
.college-scholarship-panel .college-country-partner {
  padding-top: 4px;
}
.college-scholarships {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.college-scholarships a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.college-scholarships a:hover,
.college-scholarships a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 32, 43, 0.1);
}
.college-scholarship-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.college-scholarship-copy,
.college-scholarship-side {
  display: grid;
  gap: 4px;
}
.college-scholarship-title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
}
.college-scholarship-meta {
  font-size: 14px;
  color: var(--muted);
}
.college-scholarship-side {
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.college-chip {
  justify-self: start;
  padding: 2px 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.college-scholarship-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dotted var(--ink);
}
.college-scholarship-empty > span {
  color: var(--accent-deep);
  font-size: 20px;
}
.college-scholarship-empty h3 {
  margin: 0;
}
.college-scholarship-empty h3 {
  font-size: 18px;
}

/* ---- costs, dates and score planning ---- */
.college-planning,
.college-test-plan {
  margin: 52px 0;
}
.college-section-intro {
  max-width: 720px;
}
.college-section-intro h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(29px, calc(3vw / var(--zoom)), 38px);
}
.college-planning > dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}
.college-planning > dl > div {
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--college-radius);
  background: var(--white);
}
.college-planning dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.college-planning dd {
  margin: 9px 0 0;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.college-planning small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.college-cost-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  font-size: 14px;
}
.college-cost-link {
  flex: none;
  color: var(--accent-deep);
  font-weight: 600;
}
.college-info {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--voyage-gold-soft);
  color: var(--voyage-gold);
  cursor: help;
}
.college-info .hb-ic {
  width: 18px;
  height: 18px;
}
.college-info::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 9px);
  left: 50%;
  /* The width is the whole tip, padding included: a pseudo-element is not under `*`. */
  box-sizing: border-box;
  width: min(360px, calc(calc(100vw / var(--zoom)) - 64px));
  padding: 9px 11px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(16, 32, 43, 0.18);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  translate: -50% 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.06s ease, translate 0.06s ease;
}
.college-info:hover,
.college-info:focus,
.college-info:focus-visible {
  border-color: var(--voyage-gold);
  background: var(--white);
  outline: none;
}
.college-info:hover::after,
.college-info:focus::after,
.college-info:focus-visible::after {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}
.college-test-plan {
  padding: 30px;
  border-radius: var(--college-radius);
  background: var(--navy);
  color: var(--white);
}
.college-test-columns {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
.college-test-columns > div {
  padding: 21px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}
.college-test-columns ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.college-test-columns li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}
.college-test-columns li span {
  color: rgba(255, 255, 255, 0.66);
  text-align: right;
}
.college-test-columns a {
  color: var(--white);
  font-size: 13px;
  text-underline-offset: 3px;
}
.college-courses {
  width: 100%;
  margin: 58px 0;
}
.college-courses h2 {
  margin: 0 0 20px;
  font-size: clamp(29px, calc(3vw / var(--zoom)), 38px);
}
.college-courses .college-table {
  width: 100%;
  min-width: 780px;
  table-layout: fixed;
}
.college-courses .college-table th:nth-child(1) { width: 30%; }
.college-courses .college-table th:nth-child(2) { width: 15%; }
.college-courses .college-table th:nth-child(3) { width: 35%; }
.college-courses .college-table th:nth-child(4) { width: 20%; }
/* Course offers include subject requirements and contextual-offer notes, not just short
   grade ranges. Let that prose wrap inside its fixed column instead of painting over the
   competition figure in the next cell. */
.college-courses .college-offer {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* ---- the page's Exam.Harbour destination ---- */
.college-future {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  margin: 65px 0 0;
  padding: clamp(28px, calc(5vw / var(--zoom)), 54px);
  overflow: hidden;
  border-radius: var(--college-radius);
  background: linear-gradient(135deg, #e8f4f2 0%, var(--sea) 58%, color-mix(in srgb, var(--accent) 12%, var(--white)) 100%);
}
.college-future h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(32px, calc(4vw / var(--zoom)), 48px);
  line-height: 1.04;
}
.college-future-copy > p {
  max-width: 62ch;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.college-voyage {
  position: relative;
  align-self: center;
  min-height: 230px;
}
.college-voyage > svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 230px;
  overflow: visible;
}
.college-voyage-wave,
.college-voyage-progress {
  fill: none;
  stroke-linecap: round;
}
.college-voyage-wave {
  stroke: #9fb9c4;
  stroke-width: 2;
  stroke-dasharray: 0.02 0.035;
}
.college-voyage-progress {
  stroke: #477b70;
  stroke-width: 3;
  stroke-dasharray: 1;
  animation: college-voyage-draw 6s ease-in-out infinite;
}
.college-voyage-ship,
.college-voyage-ship-static {
  color: var(--navy);
}
.college-voyage-ship {
  transform-box: fill-box;
}
.college-voyage-ship ellipse,
.college-voyage-ship-static ellipse {
  fill: #365d73;
  opacity: 0.14;
}
.college-voyage-ship-static {
  display: none;
}
.college-voyage-light {
  color: var(--voyage-gold);
}
.college-voyage-label {
  fill: var(--muted);
  font-family: inherit;
  color: var(--muted);
  font-size: 13px;
}
@keyframes college-voyage-draw {
  0%, 8% { stroke-dashoffset: 1; }
  92%, 100% { stroke-dashoffset: 0; }
}
.college-page-sources {
  margin-top: 55px;
  padding-top: 28px;
}
.college-page-sources h2 {
  margin-top: 0;
}
.college-page-sources > p {
  max-width: 76ch;
  color: var(--muted);
}
.college-ou {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.college-ou img {
  height: 28px;
  width: auto;
}

/* ---- the ranking's pages ---- */
.college-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.college-pager button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.college-pager button:hover:not(:disabled) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.college-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---- the tables as CARDS on a phone ----
   A ranking is seven columns wide, and at 390px that is the rank, the name and half an
   acceptance rate - everything that decides anything is off the right-hand edge behind a
   sideways scroll nobody makes. So below 760px each row becomes a card: the rank and the
   name as its head, then one labelled line per remaining column, each naming its own column
   off `data-label` (colleges.mjs). No scroll at any width.
   `display: block` on a table element DROPS its role in every engine - the grid, the row
   and the row header all go with it - so `colleges.mjs` writes the roles out explicitly
   (`role="table"/"rowgroup"/"row"/"columnheader"/"rowheader"/"cell"`). They are redundant
   at full width and are what keeps a screen reader hearing each value's column here, where
   the visible label is CSS `content` and reaches no reader at all. */
/* The US strip's five figures need about 920px in a row; below that, two to a row. */
@media (max-width: 1000px) {
  .college-stats-us {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .college-stats-us > div:nth-child(odd) {
    border-left: 0;
  }
}
@media (max-width: 760px) {
  .college-table,
  .college-table tbody,
  .college-table tr,
  .college-table :is(th, td) { display: block; }
  /* The head is what the cards' own labels replace visually - hidden the way `site.css`'s
     own `.sr-only` hides things, so it stays in the accessibility tree and a screen reader
     still hears each cell's column (the `data-label` text is CSS `content` and reaches no
     reader at all). */
  .college-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-scroll { overflow: visible; padding-bottom: 0; }
  .college-table tr {
    position: relative;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }
  .college-table :is(th, td) {
    padding: 0;
    border-bottom: 0;
  }
  /* THE CARD'S HEAD: the name in the row's own ink, with the rank beside it. */
  .college-table th[scope="row"] {
    font-size: 18px;
    line-height: 1.25;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dotted var(--line);
  }
  .college-rank {
    position: absolute;
    top: 14px;
    right: 16px;
    width: auto;
    font-size: 13px;
  }
  /* Room for the rank sitting in the corner, so a long name does not run under it. */
  .college-table th[scope="row"] a { padding-right: 46px; display: inline-block; }
  /* ONE LINE PER FIELD: the column's name at the start, the value at the end. */
  .college-table td[data-label] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    /* A field whose note wraps onto a second line takes a COLUMN gap only; a 16px row gap
       put that note halfway to the next field. */
    flex-wrap: wrap;
    gap: 0 16px;
    padding: 4px 0;
    font-size: 15px;
  }
  .college-table td[data-label]::before {
    content: attr(data-label);
    flex: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  /* The academic cell and the scholarship badge label THEMSELVES, so neither takes a
     column name: one carries its own small headings, the other is a chip that reads as a
     sentence. The headings become the same label-then-value line as every other field, so
     the card is one list and not a list with a block stuck on the end. */
  .college-academic { display: block; min-width: 0; }
  .college-academic > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
  }
  .college-academic small { flex: none; }
  .college-academic b { font-size: 15px; font-weight: 400; }
  .college-table .college-open:not(:empty) { padding-top: 10px; }
  /* The clay marker that says "this one has scholarships open" moves from the rank cell to
     the card's own inline edge, which is where the product marks a row everywhere else. */
  .college-table tr.has-scholarships { border-left: 3px solid var(--accent); }
  .college-table tr.has-scholarships .college-rank { box-shadow: none; }
  .college-table td[data-label] .college-note {
    flex-basis: 100%;
    margin-top: 2px;
    text-align: end;
    font-size: 13px;
  }
  /* A phone reads one course at a time too, so the fixed 780px track list goes with the
     columns it was for - and so do the per-column widths, which on a block element are no
     longer a track list at all but the element's own width. */
  .college-courses .college-table { min-width: 0; table-layout: auto; }
  .college-courses .college-table th:nth-child(1),
  .college-courses .college-table th:nth-child(2),
  .college-courses .college-table th:nth-child(3),
  .college-courses .college-table th:nth-child(4) { width: auto; }
  .college-doors {
    grid-template-columns: 1fr;
  }
  .college-door {
    min-height: 300px;
  }
  .college-door-body {
    padding: 22px;
  }
  .college-count {
    margin-left: 0;
    width: 100%;
  }
  .college-country-partner {
    white-space: normal;
  }
  .college-a-level-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .college-scholarship-panel {
    padding: 20px;
  }
  .college-scholarship-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .college-scholarships a {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .college-scholarship-side {
    grid-column: 2;
    grid-template-columns: auto 1fr;
    text-align: left;
  }
  .college-test-columns,
  .college-future {
    grid-template-columns: 1fr;
  }
  .college-test-plan {
    padding: 22px;
  }
  .college-voyage,
  .college-voyage > svg {
    min-height: 165px;
  }
  .college-test-columns li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .college-test-columns li span {
    text-align: left;
  }
  .college-info::after {
    right: 0;
    left: auto;
    translate: 0 2px;
  }
  .college-info:hover::after,
  .college-info:focus::after,
  .college-info:focus-visible::after {
    translate: 0 0;
  }
  .college-carousel-head {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .college-stats-us {
    grid-template-columns: 1fr;
  }
  .college-stats-us > div + div {
    border-left: 0;
  }
  .college-stats-us > div:not(:first-child) {
    border-top: 1px dotted var(--line);
  }
  .college-stat-gpa {
    position: relative;
  }
  .college-stat-help {
    position: static;
  }
  .college-stat-help > div {
    top: 54px;
    right: 14px;
    left: 14px;
    width: auto;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .college-door-photo,
  .college-card a {
    transition: none;
  }
  .college-voyage-progress {
    animation: none;
  }
  .college-voyage-progress { stroke-dashoffset: 0; }
  .college-voyage-ship { display: none; }
  .college-voyage-ship-static { display: block; }
}
