/* =====================================================================
   /universities/: reference pages on the student page's paper.
   styles.css gives the tokens, buttons, eyebrow and footer; topbar.css the bar.
   Everything here is prefixed u- so it never collides with either.
   ===================================================================== */

/* styles.css pins every <nav> (its old top nav); content navs here sit in the flow */
.u-page main nav{position:static;inset:auto;z-index:auto;padding:0;transition:none}

.u-wrap{max-width:980px;margin:0 auto;padding:128px 24px 56px}
.u-page a{color:var(--green)}
.u-page a:hover{color:#1f5a40}

/* ---------- breadcrumb, header, contents ---------- */
.u-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px 0;
  font-family:'Geist Mono',monospace;font-size:11.5px;letter-spacing:.04em;color:var(--ink-soft)}
.u-crumbs li{display:flex;align-items:center;min-width:0}
.u-crumbs li+li::before{content:"/";margin:0 8px;opacity:.5}
.u-crumbs a{color:var(--ink-soft);text-decoration:none}
.u-crumbs a:hover{color:var(--green);text-decoration:underline}
.u-crumbs [aria-current]{color:var(--green);overflow-wrap:anywhere}

.u-head{margin:28px 0 24px}
.u-head .eyebrow{margin-bottom:14px}
.u-head h1{font-size:clamp(30px,4.6vw,50px);font-weight:600;line-height:1.08;letter-spacing:-0.022em;text-wrap:balance;overflow-wrap:anywhere}
.u-lede{font-size:18px;line-height:1.6;color:var(--ink-soft);max-width:72ch;margin-top:18px}
.u-head > p:not(.eyebrow):not(.u-lede){font-size:16px;line-height:1.65;color:var(--ink-soft);max-width:72ch;margin-top:12px}
.u-head-actions{margin-top:24px}
.u-head-actions .btn{padding:15px 26px;font-size:14.5px;line-height:1.3;text-align:center}

.u-toc ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.u-toc a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;
  border:1px solid var(--green-border);background:rgba(255,247,226,0.5);font-size:13.5px;font-weight:500;text-decoration:none}
.u-toc a:hover{background:rgba(255,247,226,0.95)}

/* ---------- sections: cream cards on the paper ---------- */
.u-sec{margin:20px 0;padding:30px 32px;border-radius:var(--r-lg);background:rgba(255,247,226,0.78);
  border:1px solid var(--green-border);box-shadow:var(--shadow-soft)}
.u-sec h2,.u-group h2,.u-h2{font-size:clamp(22px,2.4vw,28px);font-weight:600;line-height:1.15;letter-spacing:-0.015em;margin-bottom:16px}
.u-h2{margin-top:40px}
.u-sec h3{font-size:16px;font-weight:600;margin:26px 0 10px}
.u-sec h2+h3{margin-top:4px}
.u-sec p{line-height:1.65;max-width:75ch}
.u-sec p+p{margin-top:10px}

/* key facts: label over value, two columns on wide screens */
.u-facts{display:grid;grid-template-columns:1fr 1fr;gap:0 32px}
.u-facts div{padding:12px 0;border-bottom:1px solid var(--green-border);min-width:0}
.u-facts dt{font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:4px}
.u-facts dd{font-size:16px;line-height:1.5;overflow-wrap:anywhere}

/* tables: scroll inside their own box, never the page */
.tw{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -2px}
.u-table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.5}
.u-table th,.u-table td{padding:11px 12px;border-bottom:1px solid var(--green-border);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.u-table th:first-child,.u-table td:first-child{padding-left:0}
.u-table th:last-child,.u-table td:last-child{padding-right:0}
.u-table thead th{font-family:'Geist Mono',monospace;font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);padding-top:0;overflow-wrap:normal}
.u-table tbody th{font-weight:500}
.u-table tr:last-child > *{border-bottom:none}
.u-narrow{max-width:560px}
.u-sum > *{font-weight:600}
.u-req th[scope=row]{white-space:nowrap}
.u-nowrap{white-space:nowrap}
.u-hub td,.u-hub th{padding-top:9px;padding-bottom:9px}
tr.passed > *{opacity:.55}

/* badges and the small print */
.badge{display:inline-block;font-family:'Geist Mono',monospace;font-size:10px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
  padding:3px 8px;border-radius:999px;vertical-align:1px;white-space:nowrap;line-height:1.3}
.badge.prov{background:#ffe2a1;color:#5e4100;margin-left:6px}
.badge.kind{background:rgba(20,61,44,0.08);color:var(--green)}
.badge.past{background:rgba(20,61,44,0.1);color:var(--ink-soft);margin-left:6px}
a.src{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.02em;color:var(--ink-soft);white-space:nowrap;
  text-decoration:underline;text-decoration-color:rgba(74,90,79,0.4);text-underline-offset:3px;margin-left:2px}
a.src:hover{color:var(--green);text-decoration-color:currentColor}
.u-muted{color:var(--ink-soft)}
.u-small{font-size:13px;line-height:1.5;color:var(--ink-soft);margin-top:4px}
.u-note{font-size:13.5px;color:var(--ink-soft);margin-top:12px}
.u-srcs{margin-top:10px;display:flex;flex-wrap:wrap;gap:4px 14px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* lists */
.u-list{list-style:none}
.u-list li{padding:9px 0;border-bottom:1px solid var(--green-border);line-height:1.55;overflow-wrap:anywhere}
.u-list li:last-child{border-bottom:none}
.u-essays{list-style:none;counter-reset:q}
.u-essays li{counter-increment:q;position:relative;padding:16px 0 16px 40px;border-bottom:1px solid var(--green-border)}
.u-essays li:last-child{border-bottom:none}
.u-essays li::before{content:counter(q,decimal-leading-zero);position:absolute;left:0;top:18px;font-family:'Geist Mono',monospace;font-size:12px;color:var(--ink-soft)}
.u-q{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.u-meta{font-family:'Geist Mono',monospace;font-size:11.5px;letter-spacing:.02em;color:var(--ink-soft);margin-top:6px}
.u-cols{columns:2;column-gap:32px;list-style:none;margin-top:12px}
.u-cols li{break-inside:avoid;padding:4px 0;font-size:14.5px;line-height:1.45}
.u-details summary{cursor:pointer;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;
  border:1px solid rgba(20,61,44,0.3);font-size:14px;font-weight:500;margin-top:8px;list-style:none}
.u-details summary::-webkit-details-marker{display:none}
.u-details summary::after{content:"+";margin-left:10px;font-size:16px}
.u-details[open] summary::after{content:"–"}

/* the year, all in */
.u-total{margin-top:24px;padding:22px 24px;border-radius:var(--r-md);background:var(--green);color:var(--cream)}
.u-total-k{font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,247,226,0.66)}
.u-total-v{font-size:clamp(24px,3vw,32px);font-weight:600;letter-spacing:-0.02em;color:var(--gold);margin:6px 0 8px}
.u-total p{font-size:14px;line-height:1.55;color:rgba(255,247,226,0.82)}

/* related universities and onward links */
.u-cards{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.u-card{display:flex;flex-direction:column;gap:4px;height:100%;padding:16px 18px;border-radius:var(--r-sm);border:1px solid var(--green-border);
  background:rgba(255,255,255,0.35);text-decoration:none;transition:background .2s,transform .2s}
.u-card:hover{background:rgba(255,255,255,0.7);transform:translateY(-1px)}
.u-card-n{font-weight:600;line-height:1.3}
.u-card-m,.u-card-d{font-size:13px;color:var(--ink-soft)}
.u-links{list-style:none;margin-top:18px}
.u-links li{padding:6px 0}
.u-links a{font-weight:500}
.u-links a::after{content:" →"}
.u-inline{display:flex;flex-wrap:wrap;gap:6px 18px}
.u-inline a::after{content:""}
.u-sources p{font-size:14.5px}
.u-srclist{margin:14px 0 0 20px;font-size:13px;line-height:1.5;color:var(--ink-soft)}
.u-srclist li{padding:3px 0;overflow-wrap:anywhere}

/* ---------- hubs ---------- */
.u-group{margin:36px 0}
.u-group > p{color:var(--ink-soft);max-width:75ch;margin:-6px 0 12px;line-height:1.6}
.u-count{display:inline-block;font-family:'Geist Mono',monospace;font-size:12px;font-weight:500;padding:2px 9px;border-radius:999px;
  background:rgba(20,61,44,0.08);vertical-align:4px;margin-left:6px;letter-spacing:0}
.u-more{font-size:14px;font-weight:500;margin-left:10px;white-space:nowrap}
.u-index{list-style:none;columns:2;column-gap:40px}
.u-index li{break-inside:avoid;padding:7px 0;border-bottom:1px solid var(--green-border);line-height:1.4}
.u-index a{font-weight:500}
.u-index .u-muted{display:block;font-size:13px;margin-top:2px}
.u-lists{display:flex;flex-wrap:wrap;gap:8px 20px;margin:8px 0 0}
.u-filter{margin:8px 0 4px;max-width:480px}
.u-filter label{display:block;font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:6px}
.u-filter input{width:100%;min-height:48px;padding:0 16px;border-radius:14px;border:1px solid rgba(20,61,44,0.25);background:rgba(255,247,226,0.9);
  font:inherit;font-size:16px;color:var(--green)}
.u-filter input:focus{outline:2px solid var(--green);outline-offset:1px}
.u-months ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 0}
.u-months a{display:inline-flex;min-height:34px;align-items:center;padding:0 12px;border-radius:999px;border:1px solid var(--green-border);
  font-size:13px;text-decoration:none;background:rgba(255,247,226,0.5)}
.u-group .tw{background:rgba(255,247,226,0.6);border:1px solid var(--green-border);border-radius:var(--r-md);padding:6px 18px}

/* ---------- the call to action band ---------- */
.u-cta{background:var(--green);color:var(--cream);padding:80px 24px 88px;text-align:center;margin-top:24px}
.u-cta-in{max-width:720px;margin:0 auto}
.u-cta h2{font-size:clamp(28px,3.6vw,42px);font-weight:600;line-height:1.1;letter-spacing:-0.02em;text-wrap:balance}
.u-cta p{color:rgba(255,247,226,0.8);font-size:17px;line-height:1.6;margin:16px auto 28px;max-width:60ch}
.u-cta .btn{color:var(--green)}
.u-cta .u-cta-note{font-size:13px;margin:14px auto 0;color:rgba(255,247,226,0.6)}

@media (max-width:900px){
  .u-wrap{padding-top:100px}
}
@media (max-width:640px){
  .u-wrap{padding:92px 16px 40px}
  .u-head{margin:20px 0 18px}
  .u-lede{font-size:16.5px}
  .u-sec{padding:22px 18px;border-radius:var(--r-md);margin:14px 0}
  .u-facts{grid-template-columns:1fr}
  .u-cols,.u-index{columns:1}
  .u-table{font-size:14px}
  .u-table th,.u-table td{padding:10px 8px}
  /* tables with a header row stack into labelled lines: no sideways scrolling on a phone */
  .u-table.st,.u-table.st tbody,.u-table.st tr{display:block;width:100%}
  .u-table.st thead{display:none}
  .u-table.st tr{padding:12px 0;border-bottom:1px solid var(--green-border)}
  .u-table.st tr:last-child{border-bottom:none}
  .u-table.st th,.u-table.st td{display:block;border:0;padding:2px 0;white-space:normal}
  .u-table.st > tbody > tr > :first-child{font-weight:600;margin-bottom:4px}
  .u-table.st td:has(> .u-dash:only-child){display:none}
  .u-table.st [data-l]:not([data-l=""])::before{content:attr(data-l);display:inline-block;min-width:96px;margin-right:8px;
    font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);font-weight:400}
  .u-req th[scope=row]{white-space:normal}
  .u-essays li{padding-left:32px}
  .u-group .tw{padding:4px 12px}
  .u-cta{padding:56px 16px 64px}
  .u-head-actions .btn{display:block}
}
