:root {
  --navy: #102a43;
  --navy-2: #173f5f;
  --ink: #17212b;
  --muted: #66717d;
  --paper: #f5f1e8;
  --cream: #fffaf0;
  --white: #ffffff;
  --coral: #ef5b4c;
  --red: #d64045;
  --gold: #e0a832;
  --green: #2d8b73;
  --blue: #3478b8;
  --line: rgba(16, 42, 67, 0.16);
  --shadow: 0 24px 70px rgba(16, 42, 67, 0.14);
  --radius: 26px;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-notice {
  padding: 8px 20px;
  color: #fff;
  background: var(--coral);
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.02em;
}

.site-notice span {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  color: var(--coral);
  background: white;
  border-radius: 99px;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  background: rgba(255, 250, 240, 0.93);
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  position: relative;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-cta {
  padding: 10px 18px;
  color: white;
  background: var(--navy);
  border-radius: 99px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: 180ms ease;
}

.hero {
  position: relative;
  min-height: calc(100vh - 109px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy);
}

.hero-image,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("assets/hero-campus.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 31, 51, 0.93) 0%, rgba(8, 31, 51, 0.76) 38%, rgba(8, 31, 51, 0.16) 74%),
    linear-gradient(0deg, rgba(8, 31, 51, 0.45), transparent 55%);
}

.hero-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 80px 0 105px;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: #f7d988;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "STSong", "SimSun", Georgia, serif;
  font-size: clamp(62px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.hero h1 span {
  position: relative;
  color: #ffcf5c;
  white-space: nowrap;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 10px;
  background: var(--coral);
  transform: rotate(-2deg);
  z-index: -1;
}

.hero-lead {
  max-width: 630px;
  margin: 28px 0 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--navy);
  background: #ffcf5c;
  box-shadow: 0 12px 30px rgba(224, 168, 50, 0.25);
}

.button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.hero-tags li::before {
  content: "✦";
  margin-right: 7px;
  color: #ffcf5c;
}

.hero-stamp {
  position: absolute;
  z-index: 2;
  right: clamp(30px, 6vw, 90px);
  bottom: 50px;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: rotate(8deg);
  backdrop-filter: blur(6px);
}

.hero-stamp::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.hero-stamp strong {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.hero-stamp span {
  font-size: 11px;
  letter-spacing: 0.2em;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 26px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 99px;
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 3px;
  height: 7px;
  margin: 7px auto;
  background: white;
  border-radius: 99px;
  animation: scrollDot 1.7s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

.quick-facts {
  position: relative;
  z-index: 5;
  width: var(--shell);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -32px auto 0;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.quick-facts article {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.quick-facts article:last-child {
  border-right: 0;
}

.fact-index {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.quick-facts strong,
.quick-facts small {
  display: block;
}

.quick-facts strong {
  color: var(--navy);
  font-size: 18px;
}

.quick-facts small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  column-gap: 60px;
  margin-bottom: 56px;
}

.section-heading .kicker {
  grid-column: 1 / -1;
  color: var(--coral);
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: "STSong", "SimSun", Georgia, serif;
  font-size: clamp(43px, 5.7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-heading.compact {
  display: block;
}

.section-heading.light h2,
.section-heading.light {
  color: white;
}

.section-heading.light > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.manifesto-card {
  position: relative;
  padding: clamp(32px, 5vw, 62px);
  color: white;
  background:
    linear-gradient(145deg, rgba(23, 63, 95, 0.98), rgba(16, 42, 67, 0.96)),
    var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.manifesto-card::after {
  content: "UIBE";
  position: absolute;
  right: -30px;
  bottom: -45px;
  color: rgba(255, 255, 255, 0.04);
  font-family: Georgia, serif;
  font-size: 130px;
  font-weight: 900;
}

.card-label,
.score-tip > span,
.campus-copy .kicker {
  color: #ffcf5c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.manifesto-card blockquote {
  margin: 38px 0 25px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(25px, 3.2vw, 39px);
  line-height: 1.4;
}

.manifesto-card p {
  color: rgba(255, 255, 255, 0.68);
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 18px;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stats-grid article {
  min-height: 185px;
  padding: 30px;
  background: var(--cream);
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 22px;
}

.stats-grid strong {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.stats-grid span {
  margin-left: 5px;
  color: var(--navy);
  font-weight: 800;
}

.stats-grid p {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 72px;
}

.timeline div {
  position: relative;
}

.timeline time {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 800;
}

.timeline span {
  position: relative;
  display: block;
  height: 2px;
  margin: 17px 0 20px;
  background: rgba(16, 42, 67, 0.18);
}

.timeline span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 3px solid var(--coral);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline p {
  max-width: 160px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.disciplines-section {
  padding-top: 30px;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.discipline-card {
  position: relative;
  min-height: 325px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--cream);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.discipline-card:hover {
  transform: translateY(-7px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}

.discipline-card::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -35px;
  width: 120px;
  height: 120px;
  border: 24px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
}

.discipline-card > span {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.discipline-card h3 {
  margin: 75px 0 18px;
  color: var(--navy);
  font-size: 25px;
}

.discipline-card p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.discipline-card strong {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.accent-red { color: var(--coral); }
.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }
.accent-gold { color: var(--gold); }

.campus-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 610px;
  color: white;
  background: var(--navy);
}

.campus-photo {
  position: relative;
  min-height: 510px;
  overflow: hidden;
}

.campus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campus-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(16, 42, 67, 0.8));
}

.campus-photo small {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 20px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 5px;
  font-size: 10px;
}

.campus-copy {
  align-self: center;
  max-width: 540px;
  padding: 70px clamp(35px, 7vw, 100px) 70px 50px;
}

.campus-copy h2 {
  margin: 15px 0 25px;
  font-family: "STSong", "SimSun", Georgia, serif;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.06;
}

.campus-copy > p {
  color: rgba(255, 255, 255, 0.68);
}

.campus-notes {
  display: grid;
  gap: 9px;
  margin: 30px 0;
}

.campus-notes span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.campus-notes b {
  display: inline-block;
  min-width: 60px;
  color: #ffcf5c;
  font-family: Georgia, serif;
  font-size: 18px;
}

.button-dark {
  color: var(--navy);
  background: white;
}

.majors-section {
  padding-bottom: 100px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 35px;
  padding: 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(16, 42, 67, 0.07);
}

.filter-bar label,
.score-controls label {
  display: grid;
  gap: 7px;
}

.filter-bar label span,
.score-controls label span {
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: 10px;
}

.result-count {
  min-width: 100px;
  padding-bottom: 11px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.major-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  background: var(--cream);
  border: 1px solid rgba(16, 42, 67, 0.09);
  border-radius: 21px;
  overflow: hidden;
}

.major-card::after {
  content: attr(data-letter);
  position: absolute;
  right: -6px;
  bottom: -43px;
  color: rgba(16, 42, 67, 0.035);
  font-family: Georgia, serif;
  font-size: 130px;
  font-weight: 900;
}

.major-academy {
  position: relative;
  z-index: 1;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.major-card h3 {
  position: relative;
  z-index: 1;
  margin: 20px 0 12px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.45;
}

.major-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.major-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.major-meta span {
  padding: 4px 9px;
  color: var(--navy);
  background: rgba(16, 42, 67, 0.07);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.major-meta .subject {
  color: #8f3d34;
  background: rgba(239, 91, 76, 0.12);
}

.empty-state {
  padding: 55px 25px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(16, 42, 67, 0.25);
  border-radius: 18px;
}

.empty-state strong {
  color: var(--navy);
  font-size: 20px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.data-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.data-note span,
.data-note a {
  color: var(--navy);
  font-weight: 800;
}

.scores-section {
  padding: 120px max(20px, calc((100vw - 1180px) / 2));
  color: white;
  background:
    radial-gradient(circle at 88% 6%, rgba(52, 120, 184, 0.34), transparent 28%),
    var(--navy);
}

.scores-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: end;
}

.score-tip {
  max-width: 330px;
  margin: 0 0 56px auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
}

.score-tip strong {
  display: block;
  margin: 12px 0 7px;
  font-family: "STSong", "SimSun", Georgia, serif;
  font-size: 27px;
}

.score-tip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.score-console {
  padding: clamp(22px, 4vw, 45px);
  color: var(--ink);
  background: var(--cream);
  border-radius: 30px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.22);
}

.score-controls {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 1fr;
  gap: 14px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.score-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.metric-card {
  padding: 22px;
  background: white;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 18px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 9px 0 2px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 35px;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
  font-size: 11px;
}

.metric-card.highlight {
  color: white;
  background: var(--coral);
}

.metric-card.highlight span,
.metric-card.highlight strong,
.metric-card.highlight small {
  color: white;
}

.score-visuals {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr;
  gap: 16px;
}

.chart-card,
.rank-card {
  min-height: 330px;
  padding: 27px;
  background: white;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 20px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-heading h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 20px;
}

.chart-legend {
  color: var(--muted);
  font-size: 11px;
}

.chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  background: var(--coral);
  border-radius: 50%;
}

.chart-wrap {
  height: 230px;
  margin-top: 18px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rank-card {
  display: flex;
  flex-direction: column;
  color: white;
  background: var(--navy-2);
}

.rank-card > span {
  color: #ffcf5c;
  font-size: 11px;
  font-weight: 800;
}

.rank-card h3 {
  margin: 28px 0 16px;
  font-family: "STSong", "SimSun", Georgia, serif;
  font-size: 31px;
  line-height: 1.25;
}

.rank-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.rank-card a {
  margin-top: auto;
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.score-empty {
  margin-top: 30px;
}

.history-block {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.history-block .card-heading a {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.table-scroll {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
}

th,
td {
  padding: 14px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  white-space: nowrap;
}

th {
  color: var(--navy);
  background: #f0eee7;
  font-size: 11px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fff9ed;
}

.dark-note span,
.dark-note a {
  color: var(--navy);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  min-height: 315px;
  padding: 28px;
  background: var(--cream);
  border-top: 5px solid var(--coral);
  border-radius: 0 0 20px 20px;
}

.guide-steps > li:nth-child(2) { border-color: var(--gold); }
.guide-steps > li:nth-child(3) { border-color: var(--green); }
.guide-steps > li:nth-child(4) { border-color: var(--blue); }

.guide-steps > li > span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 800;
}

.guide-steps h3 {
  margin: 75px 0 15px;
  color: var(--navy);
  font-size: 19px;
}

.guide-steps p {
  color: var(--muted);
  font-size: 13px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 70px;
  margin-top: 110px;
}

.faq-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: "STSong", "SimSun", Georgia, serif;
  font-size: 52px;
}

.faq-heading .kicker {
  color: var(--coral);
}

.faq-heading p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 45px 22px 0;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 5px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -4px 45px 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-strip {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr;
  align-items: center;
  gap: 30px;
  padding: 45px max(20px, calc((100vw - 1180px) / 2));
  color: white;
  background: var(--coral);
}

.contact-strip span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
}

.contact-strip a:not(.button),
.contact-strip strong {
  color: white;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.button-light {
  color: var(--coral);
  background: white;
}

.button-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.65);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 50px;
  padding: 65px max(20px, calc((100vw - 1180px) / 2));
  color: white;
  background: #0b2033;
}

.footer-brand {
  display: flex;
  gap: 17px;
}

.footer-brand strong {
  font-size: 19px;
}

.footer-brand p,
.footer-meta p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 18px;
}

.source-links strong {
  flex-basis: 100%;
  margin-bottom: 6px;
}

.source-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  text-decoration: none;
}

.source-links a:hover {
  color: white;
}

.footer-meta {
  text-align: right;
}

.back-to-top {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 32px, 820px);
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 109px;
    right: 0;
    left: 0;
    height: calc(100vh - 109px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    color: white;
    background: rgba(16, 42, 67, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: 180ms ease;
  }

  .primary-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    color: white;
    font-size: 20px;
  }

  .primary-nav .nav-cta {
    color: var(--navy);
    background: white;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 31, 51, 0.91), rgba(8, 31, 51, 0.48));
  }

  .hero-stamp {
    display: none;
  }

  .quick-facts {
    grid-template-columns: 1fr 1fr;
  }

  .quick-facts article:nth-child(2) {
    border-right: 0;
  }

  .quick-facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-bottom: 22px;
  }

  .about-layout,
  .campus-feature,
  .scores-intro,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .discipline-grid,
  .guide-steps {
    grid-template-columns: 1fr 1fr;
  }

  .major-grid {
    grid-template-columns: 1fr 1fr;
  }

  .campus-photo::after {
    background: linear-gradient(0deg, rgba(16, 42, 67, 0.8), transparent 30%);
  }

  .campus-copy {
    max-width: none;
    padding: 65px max(32px, calc((100vw - 820px) / 2));
  }

  .score-tip {
    max-width: none;
    margin: -25px 0 55px;
  }

  .score-controls,
  .score-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .score-visuals {
    grid-template-columns: 1fr;
  }

  .rank-card {
    min-height: 260px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-left: 8px;
    border-left: 2px solid rgba(16, 42, 67, 0.15);
  }

  .timeline div {
    padding-left: 28px;
  }

  .timeline span {
    position: absolute;
    top: 3px;
    left: -7px;
    width: 12px;
    background: transparent;
  }

  .timeline p {
    max-width: none;
  }

  .contact-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
    --radius: 20px;
  }

  .site-notice {
    min-height: 31px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .site-notice span {
    display: none;
  }

  .site-header {
    height: 68px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
    font-size: 11px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .primary-nav {
    top: 99px;
    height: calc(100vh - 99px);
  }

  .hero {
    min-height: 700px;
  }

  .hero-image {
    background-position: 60% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 31, 51, 0.92), rgba(8, 31, 51, 0.36)),
      linear-gradient(0deg, rgba(8, 31, 51, 0.75), transparent 60%);
  }

  .hero-content {
    padding: 85px 0 100px;
  }

  .eyebrow {
    max-width: 290px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(53px, 18vw, 72px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-tags {
    gap: 8px 13px;
    font-size: 11px;
  }

  .scroll-cue {
    display: none;
  }

  .quick-facts {
    grid-template-columns: 1fr;
    margin-top: -18px;
  }

  .quick-facts article {
    min-height: 86px;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-facts article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 85px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: 43px;
  }

  .section-heading > p:last-child {
    font-size: 14px;
  }

  .stats-grid,
  .discipline-grid,
  .major-grid,
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .stats-grid article {
    min-height: 145px;
  }

  .discipline-card {
    min-height: 255px;
  }

  .discipline-card h3 {
    margin-top: 45px;
  }

  .campus-feature {
    min-height: auto;
  }

  .campus-photo {
    min-height: 320px;
  }

  .campus-copy {
    padding: 52px 24px 62px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .result-count {
    padding: 0;
    text-align: left;
  }

  .major-card {
    min-height: 225px;
  }

  .data-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .data-note p {
    margin: 0;
  }

  .scores-section {
    padding-block: 85px;
  }

  .score-console {
    border-radius: 22px;
  }

  .score-controls,
  .score-metrics {
    grid-template-columns: 1fr;
  }

  .score-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    padding: 17px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .chart-card,
  .rank-card {
    padding: 20px;
  }

  .chart-wrap {
    height: 190px;
  }

  .guide-steps li {
    min-height: 245px;
  }

  .guide-steps h3 {
    margin-top: 45px;
  }

  .faq-layout {
    gap: 25px;
    margin-top: 80px;
  }

  .contact-strip {
    padding-block: 38px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    padding-block: 50px;
  }
}
