:root {
  --bg: #07101f;
  --surface: rgba(16, 24, 42, 0.76);
  --surface-strong: #121b2d;
  --ink: #eef4ff;
  --muted: #b1bfd8;
  --line: rgba(176, 196, 255, 0.14);
  --teal: #2f6df6;
  --teal-dark: #63e6da;
  --orange: #8fefff;
  --sand: #e8eefc;
  --shadow: 0 26px 80px rgba(3, 8, 20, 0.34);
  --shadow-strong: 0 42px 140px rgba(6, 12, 28, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --card-accent: rgba(47, 109, 246, 0.14);
  --card-accent-strong: #2f6df6;
  --card-accent-soft: rgba(47, 109, 246, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body.detail-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(47, 109, 246, 0.18), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(127, 216, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #060d1b 0%, #0a1324 42%, #0d1830 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(173, 192, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 192, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black 30%, transparent 100%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.hero,
.section,
.filters-panel,
.degree-card,
.profile-card,
.intro-card,
.stat-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 18%, rgba(123, 205, 255, 0.24), transparent 22%),
    radial-gradient(circle at 16% 100%, rgba(74, 115, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #070d1b 0%, #0d1730 32%, #132753 68%, #1f4cae 132%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -150px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 216, 255, 0.38), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -130px -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 127, 255, 0.26), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7fd8ff;
}

.hero h1,
.section h2,
.degree-card h3,
.profile-card h3,
.intro-card h2 {
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 10.5ch;
  color: #f9fbff;
  text-wrap: balance;
}

.hero-text,
.section-text,
.intro-card p,
.degree-comment,
.profile-reading,
.profile-category,
.degree-university,
.facts-grid dd,
.meta-note,
.meta-uni,
.results-head p {
  color: var(--muted);
}

.hero .eyebrow,
.hero .hero-text,
.hero .stat-label {
  color: rgba(239, 244, 248, 0.78);
}

.quicklook-meta,
.detail-metric small,
.degree-detail-card .detail-support,
.degree-detail-uni-list em {
  color: var(--muted);
}

.hero-text {
  max-width: 56ch;
  font-size: 1.04rem;
  line-height: 1.68;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #eef5ff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 239, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eef5ff;
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.hero-copy,
.hero-panel,
.section,
.degree-card,
.profile-card {
  animation: riseFade 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-panel {
  animation-delay: 120ms;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(18, 33, 39, 0.14);
}

.button-primary {
  background: linear-gradient(135deg, #4c8bff, #2f6df6 58%, #1d4fd7);
  color: white;
  box-shadow: 0 18px 40px rgba(47, 109, 246, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f7ff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button-tertiary {
  background: rgba(18, 28, 50, 0.88);
  border-color: rgba(173, 192, 255, 0.14);
  color: #f1f6ff;
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.1);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.stat-card.accent {
  background: linear-gradient(135deg, rgba(56, 127, 255, 0.96), rgba(38, 88, 212, 0.84));
  color: white;
}

.stat-card.accent .stat-label {
  color: rgba(255, 255, 255, 0.76);
}

.section {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(15, 23, 40, 0.88), rgba(11, 18, 33, 0.8));
  border: 1px solid rgba(173, 192, 255, 0.12);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-text {
  max-width: 48ch;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chip {
  border: 1px solid rgba(173, 192, 255, 0.12);
  background: rgba(18, 27, 46, 0.88);
  color: #eef4ff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  background: linear-gradient(135deg, #4c8bff, #2f6df6 62%, #1f57df);
  border-color: #2f6df6;
  color: white;
}

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

.shortcut-intro h3 {
  margin: 0 0 6px;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.35rem;
}

.shortcut-intro p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.profiles-divider {
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(90deg, transparent, rgba(19, 32, 52, 0.12), transparent);
}

.shortcut-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.shortcut-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 109, 246, 0.18);
  background: rgba(18, 27, 46, 0.96);
}

.profile-card,
.degree-card {
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.96), rgba(11, 19, 36, 0.94));
  border: 1px solid rgba(173, 192, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  position: relative;
  overflow: hidden;
}

.profile-card:hover,
.degree-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(127, 216, 255, 0.24);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.degree-card {
  cursor: pointer;
  animation-delay: var(--card-delay, 0ms);
}

.degree-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--card-accent), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), color-mix(in srgb, var(--card-accent-soft) 80%, rgba(255,255,255,0)));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.degree-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-accent-strong), var(--orange));
  opacity: 1;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--card-accent-strong) 35%, transparent);
}

.degree-card:hover::before,
.degree-card:focus-visible::before {
  opacity: 1;
}

.degree-card:focus-visible {
  outline: none;
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--card-accent-strong) 16%, white),
    0 34px 70px rgba(0, 0, 0, 0.36);
}

.degree-card[data-tone="tech"] {
  --card-accent: rgba(47, 109, 246, 0.14);
  --card-accent-strong: #2f6df6;
  --card-accent-soft: rgba(47, 109, 246, 0.06);
}

.degree-card[data-tone="health"] {
  --card-accent: rgba(24, 170, 145, 0.14);
  --card-accent-strong: #169a84;
  --card-accent-soft: rgba(24, 170, 145, 0.07);
}

.degree-card[data-tone="business"] {
  --card-accent: rgba(67, 100, 220, 0.14);
  --card-accent-strong: #4364dc;
  --card-accent-soft: rgba(67, 100, 220, 0.06);
}

.degree-card[data-tone="creative"] {
  --card-accent: rgba(112, 91, 234, 0.14);
  --card-accent-strong: #6b58df;
  --card-accent-soft: rgba(112, 91, 234, 0.07);
}

.degree-card[data-tone="media"] {
  --card-accent: rgba(47, 139, 214, 0.14);
  --card-accent-strong: #2f84d6;
  --card-accent-soft: rgba(47, 139, 214, 0.07);
}

.degree-card[data-tone="policy"] {
  --card-accent: rgba(56, 123, 181, 0.14);
  --card-accent-strong: #2f739c;
  --card-accent-soft: rgba(56, 123, 181, 0.07);
}

.degree-card[data-tone="science"] {
  --card-accent: rgba(26, 153, 133, 0.14);
  --card-accent-strong: #178d7a;
  --card-accent-soft: rgba(26, 153, 133, 0.07);
}

.degree-card[data-tone="education"] {
  --card-accent: rgba(86, 124, 228, 0.14);
  --card-accent-strong: #4e74d8;
  --card-accent-soft: rgba(86, 124, 228, 0.07);
}

.degree-card[data-tone="sport"] {
  --card-accent: rgba(36, 136, 184, 0.14);
  --card-accent-strong: #227fa4;
  --card-accent-soft: rgba(36, 136, 184, 0.07);
}

.degree-card[data-tone="humanities"] {
  --card-accent: rgba(92, 111, 156, 0.14);
  --card-accent-strong: #5a6b98;
  --card-accent-soft: rgba(92, 111, 156, 0.07);
}

.profile-top,
.degree-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-card h3,
.degree-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.meta-row,
.meta-pills,
.toggle-row,
.results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-row {
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.92rem;
}

.filters-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(16, 25, 45, 0.94), rgba(10, 18, 34, 0.9));
  border: 1px solid rgba(173, 192, 255, 0.12);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-box,
.filters-grid label,
.toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-box span,
.filters-grid span,
.toggle span {
  font-size: 0.9rem;
  font-weight: 800;
}

.filters-helper {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

input[type="search"],
select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(173, 192, 255, 0.14);
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(12, 21, 39, 0.98), rgba(14, 24, 44, 0.94));
  color: #eef4ff;
  font: inherit;
  color-scheme: dark;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(180deg, rgba(12, 21, 39, 0.98), rgba(14, 24, 44, 0.94)),
    linear-gradient(45deg, transparent 50%, rgba(238, 244, 255, 0.78) 50%),
    linear-gradient(135deg, rgba(238, 244, 255, 0.78) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position:
    0 0,
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size:
    100% 100%,
    6px 6px,
    6px 6px;
  padding-right: 40px;
}

select option,
select optgroup {
  background: #101a2f;
  color: #eef4ff;
}

input[type="search"]:focus,
select:focus {
  outline: none;
  border-color: rgba(127, 216, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.16);
}

.toggle-row {
  margin-top: 16px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(173, 192, 255, 0.12);
  background: rgba(18, 27, 46, 0.88);
  color: #eef4ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.active-filter-chip span {
  color: var(--teal-dark);
  font-size: 1rem;
  line-height: 1;
}

.toggle {
  flex-direction: row;
  align-items: center;
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.92), rgba(13, 21, 39, 0.88));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(173, 192, 255, 0.12);
}

.results-head {
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 14px;
}

.results-copy {
  display: grid;
  gap: 4px;
}

.results-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.degree-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.degree-area {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-accent-strong);
}

.degree-university {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.degree-family {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent-strong) 20%, rgba(12, 18, 34, 0.96));
  border: 1px solid color-mix(in srgb, var(--card-accent-strong) 38%, rgba(173, 192, 255, 0.12));
  color: #f3f7ff;
  font-size: 0.83rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.degree-tip {
  margin: 14px 0 10px;
  padding: 16px 17px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--card-accent), rgba(255, 255, 255, 0.44));
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
}

.degree-description {
  margin: 0;
  min-height: 66px;
  line-height: 1.62;
  color: var(--muted);
}

.degree-quicklook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}

.quicklook-card {
  padding: 16px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 31, 56, 0.92), rgba(13, 22, 41, 0.9));
  border: 1px solid rgba(173, 192, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.degree-card:hover .quicklook-card,
.degree-card:focus-visible .quicklook-card {
  transform: translateY(-1px);
  border-color: var(--card-accent);
  background: linear-gradient(180deg, rgba(23, 36, 64, 0.96), rgba(16, 27, 48, 0.94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.quicklook-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.quicklook-card strong {
  display: block;
  line-height: 1.35;
  font-size: 0.98rem;
}

.degree-open-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 33, 39, 0.08);
}

.degree-open-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.degree-open-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--card-accent-soft);
  color: var(--card-accent-strong);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.degree-card:hover .degree-open-arrow,
.degree-card:focus-visible .degree-open-arrow {
  transform: translate(3px, -3px) scale(1.04);
  background: var(--card-accent);
}

.degree-details {
  margin-top: 10px;
  border-top: 1px solid rgba(19, 32, 52, 0.08);
  padding-top: 14px;
}

.degree-detail {
  margin-top: 22px;
}

.degree-page {
  margin-top: 0;
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  padding: 32px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 18%, rgba(47, 109, 246, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(2, 6, 16, 0.7), rgba(4, 9, 20, 0.9));
  opacity: 0;
  visibility: hidden;
  transform: translateY(56px) scale(0.975);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0ms linear 420ms;
  perspective: 1800px;
}

.degree-page.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0ms linear 0ms;
}

.degree-page.is-closing {
  opacity: 0;
  visibility: visible;
  transform: translateY(34px) scale(0.985);
}

.degree-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(47, 109, 246, 0.22), transparent 22%),
    radial-gradient(circle at 10% 80%, rgba(127, 216, 255, 0.14), transparent 24%),
    radial-gradient(circle at 50% 18%, rgba(115, 163, 255, 0.1), transparent 16%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.degree-page::after {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.degree-page > * {
  position: relative;
  z-index: 1;
}

.degree-page.is-visible::before,
.degree-page.is-visible::after {
  opacity: 1;
}

.degree-page-head {
  width: min(1240px, 100%);
  margin: 0 auto 18px;
}

.degree-detail-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(47, 109, 246, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(14, 22, 40, 0.96), rgba(9, 16, 31, 0.94));
  border: 1px solid rgba(173, 192, 255, 0.12);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0.42;
  transform:
    translate3d(var(--detail-origin-x, 0), var(--detail-origin-y, 30px), 0)
    scale(var(--detail-origin-scale-x, 0.96), var(--detail-origin-scale-y, 0.96))
    rotateX(10deg)
    rotateY(var(--detail-origin-rotate, 0deg));
  transform-origin: center center;
  transition:
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 520ms ease,
    filter 520ms ease;
  will-change: transform, opacity;
  filter: saturate(0.9) brightness(0.9);
}

.degree-page.is-visible .degree-detail-shell {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1, 1) rotateX(0deg) rotateY(0deg);
  filter: saturate(1) brightness(1);
}

.degree-page.is-closing .degree-detail-shell {
  opacity: 0.22;
  transform: translate3d(0, 30px, 0) scale(0.978) rotateX(4deg) rotateY(0deg);
  filter: saturate(0.88) brightness(0.88);
}

.degree-page.is-visible .degree-page-head,
.degree-page.is-visible .degree-detail-highlight,
.degree-page.is-visible .detail-metric,
.degree-page.is-visible .degree-detail-card,
.degree-page.is-visible .degree-related {
  animation: detailLift 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.degree-page.is-visible .degree-detail-highlight {
  animation-delay: 70ms;
}

.degree-page.is-visible .detail-metric:nth-child(1) {
  animation-delay: 90ms;
}

.degree-page.is-visible .detail-metric:nth-child(2) {
  animation-delay: 120ms;
}

.degree-page.is-visible .detail-metric:nth-child(3) {
  animation-delay: 150ms;
}

.degree-page.is-visible .detail-metric:nth-child(4) {
  animation-delay: 180ms;
}

.degree-page.is-visible .degree-detail-card:nth-child(1) {
  animation-delay: 110ms;
}

.degree-page.is-visible .degree-detail-card:nth-child(2) {
  animation-delay: 140ms;
}

.degree-page.is-visible .degree-detail-card:nth-child(3) {
  animation-delay: 170ms;
}

.degree-page.is-visible .degree-detail-card:nth-child(4) {
  animation-delay: 200ms;
}

.degree-page.is-visible .degree-detail-card:nth-child(5) {
  animation-delay: 230ms;
}

.degree-page.is-visible .degree-detail-card:nth-child(6) {
  animation-delay: 260ms;
}

.degree-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.degree-detail-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.degree-detail-head h3 {
  margin: 0;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.degree-detail-lead {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.degree-detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 22px;
}

.degree-detail-highlight,
.detail-metric,
.degree-detail-card {
  border-radius: var(--radius-lg);
  background: rgba(18, 29, 52, 0.88);
  border: 1px solid rgba(173, 192, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.degree-detail-highlight {
  padding: 18px;
}

.degree-detail-highlight span,
.detail-metric span,
.degree-detail-card h4,
.degree-related h4 {
  display: block;
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.degree-detail-highlight p,
.degree-detail-card p {
  margin: 0;
  line-height: 1.65;
}

.degree-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-metric {
  padding: 16px;
}

.detail-metric strong {
  display: block;
  line-height: 1.35;
}

.degree-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.degree-detail-card {
  padding: 18px;
}

.degree-detail-card h4 {
  margin-bottom: 10px;
}

.degree-detail-uni-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.degree-detail-uni-list li {
  display: grid;
  grid-template-columns: minmax(56px, auto) 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(47, 109, 246, 0.12);
}

.degree-detail-uni-list a,
.related-chip,
.degree-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.degree-detail-uni-list a,
.degree-link {
  text-decoration: none;
}

.degree-detail-uni-list span,
.degree-detail-notes {
  color: var(--muted);
  line-height: 1.45;
}

.degree-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.degree-related {
  margin-top: 18px;
}

.degree-related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-chip {
  border: 1px solid rgba(47, 109, 246, 0.18);
  background: rgba(18, 27, 46, 0.88);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.degree-sections {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.degree-section {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(19, 29, 52, 0.8);
  border: 1px solid rgba(173, 192, 255, 0.1);
}

.degree-section h4 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.degree-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.facts-grid dt {
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts-grid dd {
  margin: 0;
  line-height: 1.45;
}

.uni-details {
  margin-top: 16px;
  padding-top: 2px;
}

.degree-details-summary,
.uni-summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--teal-dark);
  list-style: none;
}

.degree-details-summary {
  margin-bottom: 12px;
}

.uni-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.uni-list li {
  display: grid;
  grid-template-columns: minmax(56px, auto) 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(47, 109, 246, 0.1);
}

.uni-list a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.uni-list span {
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(17, 26, 46, 0.86);
  border: 1px dashed rgba(127, 216, 255, 0.26);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.empty-state p {
  margin: 0;
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes detailLift {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  72% {
    opacity: 1;
    transform: translateY(-6px) scale(1.012);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .hero,
  .profile-grid,
  .degree-grid {
    grid-template-columns: 1fr;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .degree-detail-hero,
  .degree-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .hero,
  .section {
    padding: 20px;
  }

  .degree-page {
    padding: 16px;
  }

  .filters-grid,
  .facts-grid,
  .degree-quicklook {
    grid-template-columns: 1fr;
  }

  .section-head,
  .results-head,
  .degree-detail-head,
  .degree-detail-footer,
  .meta-row {
    flex-direction: column;
    align-items: start;
  }

  .hero h1 {
    max-width: 100%;
  }

  .degree-detail-metrics {
    grid-template-columns: 1fr;
  }
}
.quicklook-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.detail-metric small {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.degree-detail-card .detail-support {
  margin-top: 10px;
}

.degree-detail-uni-list em {
  font-style: normal;
  font-size: 0.8rem;
}

html[data-theme="light"] body {
  color: #172033;
  background:
    radial-gradient(circle at 8% 8%, rgba(47, 109, 246, 0.1), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(99, 230, 218, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

html[data-theme="light"] body::before {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.03) 1px, transparent 1px);
}

html[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 239, 255, 0.18), transparent 22%),
    radial-gradient(circle at 16% 100%, rgba(76, 139, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #edf4ff 38%, #dce9ff 68%, #c7ddff 132%);
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 34px 90px rgba(23, 32, 51, 0.12);
}

html[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(99, 230, 218, 0.2), transparent 62%);
}

html[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(76, 139, 255, 0.18), transparent 66%);
}

html[data-theme="light"] .hero h1 {
  color: #13203a;
}

html[data-theme="light"] .hero .eyebrow,
html[data-theme="light"] .hero .hero-text,
html[data-theme="light"] .hero .stat-label {
  color: rgba(19, 32, 58, 0.72);
}

html[data-theme="light"] .hero-highlights span,
html[data-theme="light"] .theme-toggle {
  border-color: rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: #16314a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(47, 109, 246, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .button-secondary {
  background: rgba(255, 255, 255, 0.74);
  color: #16314a;
  border-color: rgba(23, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .button-tertiary {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(23, 32, 51, 0.08);
  color: #172033;
}

html[data-theme="light"] .stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(240, 246, 255, 0.68));
  border: 1px solid rgba(23, 32, 51, 0.06);
  color: #172033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 38px rgba(23, 32, 51, 0.08);
}

html[data-theme="light"] .stat-card.accent {
  color: white;
}

html[data-theme="light"] .section,
html[data-theme="light"] .filters-panel,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .degree-card,
html[data-theme="light"] .degree-detail-shell {
  color: #172033;
}

html[data-theme="light"] .section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.8));
  border: 1px solid rgba(23, 32, 51, 0.06);
  box-shadow: 0 24px 64px rgba(23, 32, 51, 0.08);
}

html[data-theme="light"] .chip,
html[data-theme="light"] .active-filter-chip,
html[data-theme="light"] .toggle,
html[data-theme="light"] .related-chip {
  background: rgba(255, 255, 255, 0.84);
  color: #172033;
  border-color: rgba(23, 32, 51, 0.08);
}

html[data-theme="light"] .filters-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.94));
  border: 1px solid rgba(23, 32, 51, 0.06);
  box-shadow: 0 20px 48px rgba(23, 32, 51, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] input[type="search"],
html[data-theme="light"] select {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 255, 0.97));
  border-color: rgba(23, 32, 51, 0.12);
  color: #172033;
}

html[data-theme="light"] select {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 255, 0.97)),
    linear-gradient(45deg, transparent 50%, rgba(23, 32, 51, 0.68) 50%),
    linear-gradient(135deg, rgba(23, 32, 51, 0.68) 50%, transparent 50%);
}

html[data-theme="light"] select option,
html[data-theme="light"] select optgroup {
  background: #ffffff;
  color: #172033;
}

html[data-theme="light"] .profile-card,
html[data-theme="light"] .degree-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.92));
  border: 1px solid rgba(23, 32, 51, 0.06);
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .profile-card:hover,
html[data-theme="light"] .degree-card:hover,
html[data-theme="light"] .degree-card:focus-visible {
  box-shadow: 0 28px 62px rgba(23, 32, 51, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .quicklook-card,
html[data-theme="light"] .degree-detail-highlight,
html[data-theme="light"] .detail-metric,
html[data-theme="light"] .degree-detail-card,
html[data-theme="light"] .degree-section {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.05);
}

html[data-theme="light"] .degree-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(47, 109, 246, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(240, 245, 252, 0.78), rgba(236, 242, 249, 0.9));
}

html[data-theme="light"] .degree-page::after {
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

html[data-theme="light"] .degree-detail-shell {
  background:
    radial-gradient(circle at top right, rgba(47, 109, 246, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.95));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 32px 84px rgba(23, 32, 51, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .degree-detail-uni-list li,
html[data-theme="light"] .uni-list li {
  background: rgba(47, 109, 246, 0.08);
}

html[data-theme="light"] .empty-state {
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(47, 109, 246, 0.22);
}
