/* Out on Campus — editorial/print design. System fonts only, no external assets. */
:root {
  --paper: #faf7f2;
  --paper-2: #f1ece3;
  --ink: #1c1a17;
  --ink-2: #57514a;
  --ink-3: #8a8279;
  --rule: #d9d2c7;
  --accent: #722d8a;        /* score bars: single-hue magnitude (validated) */
  --accent-soft: #e5d7ec;
  --flag: #9b3a2a;          /* status: serious — always with † symbol + text */
  --flag-bg: #f6e8e6;
  --good: #2f6b4f;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17150f;
    --paper-2: #201d15;
    --ink: #ece7de;
    --ink-2: #b3aca1;
    --ink-3: #7d766c;
    --rule: #3a362c;
    --accent: #a06cc9;
    --accent-soft: #3a2a47;
    --flag: #d0716a;
    --flag-bg: #3a2422;
    --good: #6fae8f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--serif);
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.masthead { max-width: 880px; margin: 0 auto; padding: 56px 20px 8px; text-align: center; }
.kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px;
}
h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1.02; margin: 0; font-weight: 700; letter-spacing: -.015em; }
.subtitle { font-style: italic; font-size: clamp(19px, 3vw, 25px); color: var(--ink-2); margin: 10px 0 22px; }
.pride-rule { display: flex; height: 5px; max-width: 340px; margin: 0 auto; }
.pride-rule span { flex: 1; }
.pride-rule span:nth-child(1){background:#c0392b}.pride-rule span:nth-child(2){background:#cf7a29}
.pride-rule span:nth-child(3){background:#c2a51f}.pride-rule span:nth-child(4){background:#2f6b4f}
.pride-rule span:nth-child(5){background:#2e5e8a}.pride-rule span:nth-child(6){background:#6a4a8c}
.standfirst { max-width: 660px; margin: 26px auto 0; font-size: 19px; text-align: left; }

.toc {
  position: sticky; top: 0; z-index: 30; background: var(--paper);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-top: 36px; padding: 10px 12px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px 80px; }
section { margin-top: 72px; }
h2 {
  font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 6px;
  padding-top: 18px; border-top: 3px solid var(--ink);
}
h3 { font-size: 20px; margin: 34px 0 8px; }
.section-note { color: var(--ink-2); max-width: 720px; margin: 6px 0 22px; }
.prose { max-width: 760px; }
.prose.small { font-size: 14px; color: var(--ink-2); }

.findings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border: 1px solid var(--rule); margin: 22px 0; }
.finding { padding: 22px 20px 18px; border-right: 1px solid var(--rule); }
.finding:last-child { border-right: 0; }
@media (max-width: 720px){ .finding { border-right: 0; border-bottom: 1px solid var(--rule);} .finding:last-child{border-bottom:0} }
.fig { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.cap { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }

.feature-list { list-style: none; counter-reset: fl; margin: 0; padding: 0; max-width: 860px; }
.feature-list li {
  counter-increment: fl; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px;
  align-items: baseline; padding: 13px 6px; border-bottom: 1px solid var(--rule);
}
.feature-list li::before {
  content: counter(fl, decimal-leading-zero);
  font-family: var(--sans); font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.feature-list .nm { font-size: 18px; }
.feature-list .nm .loc { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-left: 8px; white-space: nowrap; }
.feature-list .why { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.feature-list .sc { font-family: var(--sans); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.feature-list.worst .why { color: var(--flag); }

.controls {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-family: var(--sans); font-size: 14px; margin: 18px 0 10px;
}
.controls input[type=search], .controls select {
  font: 14px var(--sans); color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px;
}
.controls input[type=search] { min-width: 230px; }
.chk { display: flex; gap: 6px; align-items: center; color: var(--ink-2); }
.count { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table#league { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 14px; min-width: 900px; }
#league thead th {
  position: sticky; top: var(--toc-h, 41px); background: var(--paper-2); text-align: left;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  padding: 9px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap;
}
#league th.sortable { cursor: pointer; user-select: none; }
#league th.sortable:hover { color: var(--accent); }
#league th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; }
#league th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
#league td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
#league tbody tr { cursor: pointer; scroll-margin-top: 140px; }
#league tbody tr:hover td { background: var(--paper-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.score { font-weight: 700; }
.bar-col { width: 110px; }
.bar { height: 8px; background: var(--accent-soft); border-radius: 2px; position: relative; min-width: 90px; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 2px; }
.flagmark { color: var(--flag); font-weight: 600; white-space: nowrap; }
.okmark { color: var(--ink-3); }

tr.detail td { background: var(--paper-2); cursor: default; padding: 18px 16px 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1000px; }
.detail-grid h4 {
  margin: 0 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule); padding-bottom: 5px;
}
.detail-grid ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.8; }
.detail-grid .yes::before { content: "✓ "; color: var(--good); font-weight: 700; }
.detail-grid .no::before { content: "— "; color: var(--ink-3); }
.detail-grid .flagline { color: var(--flag); }
.detail-grid .flagline::before { content: "† "; font-weight: 700; }
.detail-grid a { color: var(--accent); }
.wl-reason { font-size: 13px; color: var(--ink-2); font-style: italic; margin-top: 8px; }

.method-table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 14px; margin: 16px 0 8px; }
.method-table th, .method-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.method-table thead th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.method-table tr.pillar td { font-weight: 700; background: var(--paper-2); font-size: 13px; letter-spacing: .04em; }
.sources li { margin-bottom: 6px; }
.cite { border-left: 3px solid var(--accent); padding: 8px 14px; background: var(--paper-2); font-size: 15px; }

.dl {
  display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--ink); padding: 10px 18px; margin: 4px 10px 4px 0;
  text-decoration: none; border-radius: 3px;
}
.dl:hover { background: var(--ink); color: var(--paper); }

.table-foot { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); max-width: 760px; }

footer { border-top: 1px solid var(--rule); margin-top: 40px; padding: 26px 20px 60px; text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
footer .pride-rule { margin-bottom: 20px; }
