/* Out on Campus — dark editorial redesign, matched to the research-property landing.
   Single committed dark theme. Inter variable only. Palette validated (dataviz). */
@font-face {
  font-family: 'Inter';
  src: url('InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0F0B12;
  --bg-2: #15101A;
  --bg-3: #1C1622;
  --ink: #F6F5F2;
  --ink-2: #CFC9D4;
  --ink-3: #9A93A2;
  --ink-4: #6E6677;
  --rule: #2A2333;
  --rule-2: #221B2B;
  --pink: #E7407C;
  --coral: #EF805E;
  --grad: linear-gradient(100deg, var(--pink), var(--coral));
  --flag: #DE9B4A;         /* status text — always with † + words */
  --flag-line: #C87A22;
  --good: #4FBE8C;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }  /* aurora fields may bleed past the hero edges */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.65 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: #fff; }
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(231,64,124,.55); text-underline-offset: 3px; }
a:hover { color: var(--pink); text-decoration-color: var(--pink); }

/* ---------- masthead ---------- */
.masthead {
  max-width: 1080px; margin: 0 auto; padding: 92px 24px 24px; position: relative;
}
/* aurora: two soft brand-colored fields drifting slowly behind the hero */
.masthead::before, .masthead::after {
  content: ""; position: absolute; pointer-events: none; will-change: transform;
  border-radius: 50%;
}
.masthead::before {
  width: 820px; height: 520px; left: -8%; top: -150px;
  background: radial-gradient(closest-side, rgba(231,64,124,.48), transparent 72%);
  animation: aurora-a 11s ease-in-out infinite alternate;
}
.masthead::after {
  width: 700px; height: 460px; right: -6%; top: -70px;
  background: radial-gradient(closest-side, rgba(239,128,94,.36), transparent 72%);
  animation: aurora-b 15s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate(0, 0) scale(1); opacity: .75; }
  50%  { transform: translate(230px, 100px) scale(1.3); opacity: 1; }
  to   { transform: translate(60px, -70px) scale(.85); opacity: .8; }
}
@keyframes aurora-b {
  from { transform: translate(0, 0) scale(1.08); opacity: 1; }
  50%  { transform: translate(-250px, 80px) scale(.82); opacity: .7; }
  to   { transform: translate(-70px, 130px) scale(1.28); opacity: .95; }
}
.kicker {
  position: relative; font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 26px;
}
h1 {
  position: relative; margin: 0; font-size: clamp(58px, 11vw, 132px);
  font-weight: 900; letter-spacing: -.04em; line-height: .94; color: var(--ink);
}
/* "Campus" carries a travelling pink-coral wave. background-position animation on
   clipped text is the classic cross-browser-safe technique (no filters involved),
   and the gradient is colorful at every phase. */
.h1-grad {
  background: linear-gradient(100deg, var(--pink) 0%, var(--coral) 30%, var(--pink) 55%, var(--coral) 80%, var(--pink) 100%);
  background-size: 280% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 4.5s ease-in-out infinite alternate;
}
@keyframes sheen {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
/* one-time entrance for the title block */
.kicker, h1, .subtitle, .pride-rule, .standfirst { animation-name: rise; animation-duration: .7s; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-fill-mode: backwards; }
h1 { animation-delay: .08s; }
.kicker { animation-delay: 0s; }
.subtitle { animation-delay: .16s; }
.pride-rule { animation-delay: .24s; }
.standfirst { animation-delay: .32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.subtitle {
  position: relative; font-size: clamp(17px, 2.4vw, 23px); font-weight: 300;
  color: var(--ink-2); letter-spacing: .01em; margin: 14px 0 26px;
}
.pride-rule { display: flex; height: 3px; max-width: 280px; }
.pride-rule span { flex: 1; }
.pride-rule span:nth-child(1){background:#E23B3B}.pride-rule span:nth-child(2){background:#EF805E}
.pride-rule span:nth-child(3){background:#E9C46A}.pride-rule span:nth-child(4){background:#4FBE8C}
.pride-rule span:nth-child(5){background:#5B9BD5}.pride-rule span:nth-child(6){background:#B07FD6}
.standfirst {
  position: relative; max-width: 660px; margin: 30px 0 0;
  font-size: clamp(18px, 2.3vw, 21px); font-weight: 350; line-height: 1.6; color: var(--ink-2);
}
.standfirst strong { color: var(--ink); font-weight: 700; }

/* ---------- sticky nav ---------- */
.toc {
  position: sticky; top: 0; z-index: 30;
  background: rgba(15,11,18,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  margin-top: 48px; padding: 13px 16px;
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.toc a { text-decoration: none; color: var(--ink-3); transition: color .15s; }
.toc a:hover { color: var(--ink); }

/* ---------- sections ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px 90px; }
section { margin-top: 110px; position: relative; }
h2 {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.06; margin: 0 0 10px; padding-top: 26px;
}
h2::before {
  content: attr(data-n); display: block; font-size: 13px; font-weight: 700;
  letter-spacing: .3em; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
section > h2 { border-top: 1px solid var(--rule); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 10px; }
.section-note { color: var(--ink-3); max-width: 700px; margin: 8px 0 30px; font-size: 15.5px; }
.prose { max-width: 720px; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose.small { font-size: 14px; color: var(--ink-3); }

/* ---------- findings ---------- */
.findings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 34px 40px; margin: 40px 0 34px;
}
.finding { border-top: 1px solid var(--rule); padding-top: 20px; }
.fig {
  font-size: clamp(46px, 6vw, 68px); line-height: 1; font-weight: 850; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cap { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; max-width: 240px; }

/* ---------- feature lists ---------- */
.feature-list { list-style: none; counter-reset: fl; margin: 0; padding: 0; max-width: 880px; }
.feature-list li {
  counter-increment: fl; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px;
  align-items: baseline; padding: 17px 10px; border-bottom: 1px solid var(--rule-2);
  transition: background .15s;
}
.feature-list li:hover { background: var(--bg-2); }
.feature-list li::before {
  content: counter(fl, decimal-leading-zero);
  font-size: 22px; font-weight: 200; color: var(--ink-4); font-variant-numeric: tabular-nums;
}
.feature-list .nm { font-size: 18.5px; font-weight: 650; letter-spacing: -.01em; }
.feature-list .nm .loc { font-size: 13px; font-weight: 400; color: var(--ink-4); margin-left: 10px; white-space: nowrap; }
.feature-list .why { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.feature-list .sc {
  font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feature-list.worst .sc { background: none; color: var(--ink-4); }
.feature-list.worst .why { color: var(--flag); }

/* ---------- table controls ---------- */
.controls {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 14px; margin: 26px 0 14px;
}
.controls input[type=search], .controls select {
  font: 500 14px var(--font); color: var(--ink); background: var(--bg-3);
  border: 1px solid var(--rule); border-radius: 3px; padding: 9px 12px;
  transition: border-color .15s;
}
.controls input[type=search]:focus, .controls select:focus { outline: none; border-color: var(--pink); }
.controls input[type=search] { min-width: 240px; }
.controls input::placeholder { color: var(--ink-4); }
.chk { display: flex; gap: 7px; align-items: center; color: var(--ink-3); user-select: none; }
.chk input { accent-color: var(--pink); }
.count { margin-left: auto; color: var(--ink-4); font-variant-numeric: tabular-nums; font-size: 13px; }

/* ---------- league table ---------- */
.table-wrap { border: 1px solid var(--rule); border-radius: 4px; }
table#league { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 900px; }
#league thead th {
  position: sticky; top: var(--toc-h, 45px); z-index: 5; background: var(--bg-2);
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 11px 12px; border-bottom: 1px solid var(--rule);
}
#league th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
#league th.sortable:hover { color: var(--pink); }
#league th[aria-sort="ascending"]::after { content: " ▲"; font-size: 8px; color: var(--pink); }
#league th[aria-sort="descending"]::after { content: " ▼"; font-size: 8px; color: var(--pink); }
#league td { padding: 10px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: baseline; }
#league tbody tr { cursor: pointer; scroll-margin-top: 140px; transition: background .12s; }
#league tbody tr:hover td { background: var(--bg-2); }
#league td:nth-child(2) { font-weight: 550; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { color: var(--ink-2); }
td.score { font-weight: 800; font-size: 15px; color: var(--ink); }
.okmark { color: var(--ink-4); font-weight: 400; }
.bar-col { width: 116px; }
.bar { height: 7px; background: #241D2E; border-radius: 2px; position: relative; min-width: 92px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--grad); border-radius: 2px; }
.flagmark { white-space: nowrap; }
.pill {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--flag); border: 1px solid var(--flag-line); border-radius: 3px;
  padding: 2px 8px; margin: 1px 0; background: rgba(200,122,34,.08);
}

/* ---------- detail rows ---------- */
tr.detail td { background: var(--bg-2); cursor: default; padding: 22px 18px 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; max-width: 1000px; }
.detail-grid h4 {
  margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-4);
  border-bottom: 1px solid var(--rule); padding-bottom: 7px;
}
.detail-grid ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.detail-grid .yes::before { content: "✓ "; color: var(--good); font-weight: 800; }
.detail-grid .no { color: var(--ink-4); }
.detail-grid .no::before { content: "— "; }
.detail-grid .flagline { color: var(--flag); }
.detail-grid .flagline::before { content: "† "; font-weight: 800; }
.detail-grid a { color: var(--pink); }
.wl-reason { font-size: 13px; color: var(--ink-3); font-style: italic; margin-top: 10px; }
.cov-note { font-size: 12px; color: var(--ink-4); font-style: italic; margin: 10px 0 0; border-top: 1px dotted var(--rule); padding-top: 8px; }

/* ---------- methodology ---------- */
.method-table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 18px 0 10px; }
.method-table th, .method-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: top; color: var(--ink-2); }
.method-table thead th { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--rule); }
.method-table tr.pillar td {
  font-weight: 750; color: var(--ink); background: var(--bg-2); font-size: 13px; letter-spacing: .02em;
}
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 9px; }
.sources li { margin-bottom: 7px; font-size: 14.5px; }
.cite {
  border-left: 2px solid; border-image: var(--grad) 1; padding: 12px 18px;
  background: var(--bg-2); font-size: 15px; color: var(--ink-2);
}
.callout {
  border: 1px solid var(--rule); border-left: 2px solid; border-image: var(--grad) 1;
  background: var(--bg-2); padding: 16px 20px; border-radius: 3px; font-size: 16px;
}
.callout a { color: var(--pink); font-weight: 600; }
#about .small { font-size: 14px; color: var(--ink-3); }

/* ---------- downloads / footer ---------- */
.dl {
  display: inline-block; font-size: 15px; font-weight: 650; color: var(--ink);
  border: 1px solid var(--ink-3); padding: 11px 20px; margin: 6px 12px 6px 0;
  text-decoration: none; border-radius: 3px; transition: border-color .15s, background .15s;
}
.dl:hover { border-color: var(--pink); background: rgba(231,64,124,.1); color: var(--ink); }
.table-foot { font-size: 12.5px; color: var(--ink-4); max-width: 760px; }
footer {
  border-top: 1px solid var(--rule); margin-top: 60px; padding: 30px 24px 70px;
  text-align: center; font-size: 13px; color: var(--ink-3);
}
footer .pride-rule { margin: 0 auto 22px; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Reduced-motion users still get a living page — but via color and opacity only.
   Spatial motion (drifting aurora, rising entrances, sliding reveals) is replaced
   with static-position pulses and fades; the hue-breathe is pure color, so it stays. */
@keyframes aurora-pulse { from { opacity: .22; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .6s ease; }
  .masthead::before { animation: aurora-pulse 7s ease-in-out infinite alternate; }
  .masthead::after { animation: aurora-pulse 11s ease-in-out infinite alternate-reverse; }
  .kicker, h1, .subtitle, .pride-rule, .standfirst { animation-name: fade; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .table-wrap { overflow-x: auto; }
  #league thead th { position: static; }
  .method-table { display: block; overflow-x: auto; }
  section { margin-top: 80px; }
  .masthead { padding-top: 64px; }
}
