/* CollegeSend public site. One sheet for every server-rendered page. The
   shell (tokens, topbar, brand, nav, buttons, menus, avatar) MIRRORS
   src/styles/index.css so the research pages and the app read as one product:
   change a value in one, change it in the other. The theme comes from the
   same localStorage key as the app (gmc_theme: light | dark | system, default
   light), applied as <html data-theme> by the pre-paint script in layout.js.
   No JS is needed to read a page; site.js and research.js only add to it. */
:root {
  color-scheme: light;
  --bg: #f6f7f9; --surface: #fff; --surface-2: #f1f2f6; --surface-3: #e9eaf0; --border: #e4e5ec; --border-strong: #d2d4de;
  --text: #14151a; --text-2: #43454f; --muted: #6d707c;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef0ff; --accent-border: #d6d9ff; --on-accent: #fff;
  --green: #067a55; --green-soft: #e6f7f0; --amber: #a25a06; --amber-soft: #fdf3e3; --red: #c8342c; --red-soft: #fdedeb;
  --water: #e6ecf5; --land: #fbfbfd;
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 21, 26, .05);
  --shadow: 0 1px 3px rgba(20, 21, 26, .06), 0 8px 24px -14px rgba(20, 21, 26, .18);
  --shadow-lg: 0 2px 6px rgba(20, 21, 26, .07), 0 18px 44px -18px rgba(20, 21, 26, .28);
  --topbar-h: 58px; --page-max: 1440px; --ease: cubic-bezier(.2, .7, .3, 1);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0e0f13; --surface: #16171d; --surface-2: #1d1f26; --surface-3: #262932; --border: #282a33; --border-strong: #383b47;
  --text: #f0f1f5; --text-2: #c3c6d0; --muted: #8f93a1;
  --accent: #7c7bf5; --accent-hover: #8f8ef7; --accent-soft: #1e1f3d; --accent-border: #34346a; --on-accent: #0e0f13;
  --green: #43c99a; --green-soft: #10281f; --amber: #e0a55c; --amber-soft: #2a2013; --red: #f0736b; --red-soft: #2c1615;
  --water: #101420; --land: #1b1d25;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 8px 24px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 44px -18px rgba(0, 0, 0, .8);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.2; font-weight: 640; letter-spacing: -.018em; margin: 0 0 6px; }
h2 { font-size: 16px; font-weight: 640; letter-spacing: -.018em; margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 640; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .nowrap { white-space: nowrap; }
.lede { color: var(--text-2); font-size: 15px; max-width: 860px; margin-bottom: 14px; }
.prose { max-width: 860px; font-size: 14.5px; }

/* Header / footer */
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.top-in { max-width: var(--page-max); margin: 0 auto; padding: 0 28px; min-height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; font-weight: 660; font-size: 14.5px; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-hover)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -.02em; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 550; font-size: 13.5px; transition: background .12s var(--ease), color .12s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 620; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* The research toolbar under a member's topbar: Programs · Rankings · Guides · search. */
.research-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.research-bar .bar-in { max-width: var(--page-max); margin: 0 auto; padding: 6px 28px; display: flex; align-items: center; gap: 14px; min-height: 42px; }
.research-bar .nav a { padding: 5px 10px; font-size: 13px; }
.research-bar .back { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.research-bar .search { margin-left: auto; }
.search { flex: 1 1 220px; max-width: 380px; display: flex; position: relative; }
.search input { width: 100%; padding: 7px 52px 7px 32px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d707c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: 11px center; cursor: text; }
.search input:hover { border-color: var(--accent-border); background-color: var(--surface); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; background-color: var(--surface); }
.search input::-webkit-search-cancel-button { display: none; }
.search.big { max-width: 640px; margin: 0 0 14px; } .search.big input { font-size: 15px; padding: 11px 14px 11px 38px; background-position: 13px center; background-size: 18px; }

@media (max-width: 720px) {
  .search input { padding-right: 12px; }
}
.cta { margin-left: auto; display: inline-flex; align-items: center; background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent) !important; padding: 7px 14px; border-radius: var(--r-sm); font-weight: 580; font-size: 13.5px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
main { max-width: var(--page-max); margin: 0 auto; padding: 24px 28px 64px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--muted); } .crumbs span { color: var(--border-strong); }
footer { border-top: 1px solid var(--border); margin-top: 20px; }
.foot-in { max-width: var(--page-max); margin: 0 auto; padding: 24px 28px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; font-size: 13px; color: var(--muted); }
.foot-in .sports { columns: 2; column-gap: 20px; }
.foot-in .sports a { break-inside: avoid; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; } }
.foot-in h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.foot-in a { display: block; color: var(--text-2); padding: 2px 0; }
.foot-note { max-width: var(--page-max); margin: 0 auto; padding: 0 28px 24px; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Layout primitives */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.card.tight { padding: 0; overflow: hidden; } .card.tight h2 { padding: 14px 18px 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 14px; }
.grid > .card { margin-bottom: 0; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.hero-id { color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 580; cursor: pointer; white-space: nowrap; transition: background .12s var(--ease), border-color .12s var(--ease), transform .06s var(--ease); }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.stat .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .v.accent { color: var(--accent); } .stat .v.green { color: var(--green); } .stat .v.amber { color: var(--amber); } .stat .v.red { color: var(--red); }
.stat .l { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.stat .h { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Facts list */
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.facts li:first-child { border-top: 0; } .facts .k { color: var(--muted); } .facts .v { text-align: right; font-weight: 580; font-variant-numeric: tabular-nums; }
.facts .v .small { font-weight: 450; color: var(--muted); }
sup.src { font-size: 10px; color: var(--muted); font-weight: 500; margin-left: 2px; cursor: help; }

/* Ranked bar chart */
.rankbars { list-style: none; margin: 0; padding: 0; }
.rankbars li { display: grid; grid-template-columns: 28px minmax(200px, 1fr) 1.4fr 110px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.rankbars li:first-child { border-top: 0; }
.rankbars .r { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rankbars li:nth-child(-n+3) .r { color: var(--accent); }
.rankbars .who { display: flex; flex-direction: column; min-width: 0; }
.rankbars .who a { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rankbars .who .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rankbars .bar { height: 14px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.rankbars .bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #7c7bf5); }
.rankbars li:nth-child(1) .bar span { background: linear-gradient(90deg, #d97706, #f59e0b); }
.rankbars .v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 720px) { .rankbars li { grid-template-columns: 24px 1fr 76px; } .rankbars .bar { grid-column: 2 / 4; height: 8px; } }

/* Member cards on the program page: coaches, emails sent, notes (form rules mirror the app) */
.rs-coach-form label, .rs-coach-form .field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.rs-coach-form input:not([type=checkbox]), .rs-coach-form textarea, .rs-notes-inline { width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; }
.rs-coach-form input:focus, .rs-coach-form textarea:focus, .rs-notes-inline:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rs-coach-form textarea, .rs-notes-inline { resize: vertical; min-height: 100px; line-height: 1.6; }
.rs-coach-form .field { margin-bottom: 12px; } .rs-coach-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rs-coach-form .field-error { color: var(--red); font-size: 12px; margin-top: 5px; }
.rs-coach-form { padding: 12px 14px; margin: 10px 0; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.rs-coach-form .alert.error { background: var(--red-soft); color: var(--red); padding: 8px 10px; border-radius: var(--r-sm); margin-bottom: 10px; font-size: 13px; }
.rs-coaches-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.rs-coach { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.rs-coach:first-of-type { border-top: 0; }
.rs-coach-main { flex: 1; min-width: 0; }
.rs-coach-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.rs-coach-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.order-controls { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; margin-top: 2px; }
.order-controls button { width: 22px; height: 18px; padding: 0; line-height: 1; font-size: 11px; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); border-radius: var(--r-sm); }
.order-controls button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.order-controls button:disabled { opacity: .4; cursor: default; }
.btn.danger { color: var(--red); border-color: var(--red-soft); background: var(--red-soft); }
.btn.danger:hover { border-color: var(--red); background: var(--red-soft); }
.badge.blue { background: var(--accent-soft); color: var(--accent); }
.rs-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rs-card-head h2 { margin: 0; }
.rs-sends { display: flex; flex-direction: column; }
.rs-send { display: block; padding: 9px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.rs-send:first-child { border-top: 0; } .rs-send:hover { text-decoration: none; background: var(--surface-2); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--r-sm); }
.rs-send-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }

/* Rank chips and tiles */
.rankchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rankchip { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 6px 10px 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.rankchip:hover { border-color: var(--accent-border); text-decoration: none; }
.rankchip b { grid-row: span 2; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.rankchip.gold b { color: var(--amber); } .rankchip.gold { background: var(--amber-soft); border-color: transparent; }
.rankchip.top { background: var(--accent-soft); border-color: transparent; }
.rankchip .t { font-size: 13px; font-weight: 600; line-height: 1.2; }
.rankchip .s { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.ranktiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ranktile { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: var(--text); text-decoration: none; }
.ranktile:hover { border-color: var(--accent-border); text-decoration: none; }
.ranktile .big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.ranktile.gold .big { color: var(--amber); }
.ranktile .t { display: block; font-weight: 650; margin-top: 6px; font-size: 14px; line-height: 1.25; }
.ranktile .s { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.ranktile .v { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; color: var(--text-2); }

/* Sports index */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sport-card { margin-bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sport-card h3 { margin: 0; font-size: 15px; } .sport-card h3 a { color: var(--text); } .sport-card h3 a:hover { color: var(--accent); }
.sport-card-n { font-size: 12.5px; color: var(--muted); margin-top: -4px; } .sport-card-n b { color: var(--text); font-weight: 650; }
.sport-card .stack { height: 10px; } .sport-card .stack .s { font-size: 0; } .sport-card .legend { font-size: 11.5px; margin-top: 4px; }
.sport-card-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.sport-card-facts b { color: var(--text); font-weight: 650; }
.sport-card .chips { margin-top: auto; }
.sport-card .chip { padding: 3px 9px; font-size: 12px; }

/* Guides index */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-bottom: 18px; }
.guide-card { margin-bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.guide-card h3 { margin: 0; font-size: 15px; } .guide-card h3 a { color: var(--text); } .guide-card h3 a:hover { color: var(--accent); }
.guide-card .facts li { font-size: 13px; padding: 5px 0; }
.guide-card .chips { margin-top: auto; } .guide-card .chip { padding: 3px 9px; font-size: 12px; }

/* About-the-school panels and research tiles (mirror the app's .fpanel/.research-tile) */
.facts { margin-bottom: 14px; }
.facts-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 4px 0 10px; }
.facts-head h2 { margin: 0; }
.facts-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.fpanel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.fpanel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fpanel-head h3 { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fpanel-lead { display: flex; flex-direction: column; gap: 1px; }
.fpanel-lead .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fpanel-lead .l { font-size: 12.5px; color: var(--text-2); }
.fact-sub { font-size: 12px; font-weight: 650; color: var(--muted); margin-top: 2px; }
.frows { margin: 0; }
.frows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--border); font-size: 13px; }
.frows div:first-child { border-top: 0; }
.frows dt { color: var(--muted); flex: none; }
.frows dd { margin: 0; text-align: right; font-weight: 560; font-variant-numeric: tabular-nums; }
.frows dd .small { font-weight: 480; }
.fbars { display: flex; flex-direction: column; gap: 5px; }
.fbar { display: grid; grid-template-columns: 138px 1fr 78px; align-items: center; gap: 8px; font-size: 12.5px; }
.fbars.compact .fbar { grid-template-columns: 96px 1fr 84px; }
.fbar .k { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbar .t, .fgauge .t { display: block; position: relative; height: 9px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.fgauge .t { overflow: visible; height: 10px; }
.fbar .f, .fgauge .f { display: block; height: 100%; border-radius: var(--r-full); background: var(--accent); }
.fbar .f.green, .fgauge .f.green { background: var(--green); } .fbar .f.amber, .fgauge .f.amber { background: var(--amber); }
.fbar .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fgauge { display: flex; flex-direction: column; gap: 4px; }
.fgauge-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.fgauge-head .k { color: var(--text-2); } .fgauge-head .n { font-weight: 650; font-variant-numeric: tabular-nums; }
.fgauge .m { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--text); opacity: .6; }
.frange { display: flex; flex-direction: column; gap: 4px; }
.frange .t { display: block; position: relative; height: 18px; border-radius: 6px; background: var(--surface-3); }
.frange .band { position: absolute; top: 3px; height: 12px; border-radius: 6px; background: var(--accent); opacity: .45; }
.fsplit .t { display: flex; height: 9px; border-radius: var(--r-full); overflow: hidden; }
.fsplit .a { background: var(--accent); } .fsplit .b { background: var(--surface-3); }
.fsplit i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin: 0 2px 0 4px; }
.fsplit i.a { background: var(--accent); } .fsplit i.b { background: var(--surface-3); border: 1px solid var(--border-strong); }
.fsplit .small { margin-top: 4px; }
.research-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.research-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); color: var(--text); text-decoration: none; transition: border-color .12s var(--ease), background .12s var(--ease); }
.research-tile:hover { border-color: var(--accent-border); background: var(--accent-soft); text-decoration: none; }
.research-tile .t { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.research-tile .v { font-size: 15px; font-weight: 650; }
.research-tile .h { font-size: 12px; color: var(--muted); }

/* Ranking hub */
.rank-cats { columns: 3; column-gap: 14px; margin-bottom: 4px; }
.rank-cats .card { break-inside: avoid; display: inline-block; width: 100%; }
@media (max-width: 1100px) { .rank-cats { columns: 2; } } @media (max-width: 720px) { .rank-cats { columns: 1; } }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; margin-bottom: 18px; }
.feat { display: block; margin-bottom: 0; padding: 14px 16px; color: var(--text); text-decoration: none; }
.feat:hover { border-color: var(--accent-border); text-decoration: none; }
.feat h3 { margin: 2px 0 8px; font-size: 15px; }
.feat-top { list-style: none; margin: 0; padding: 0; }
.feat-top li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--border); font-size: 13px; }
.feat-top li:first-child { border-top: 0; }
.feat-top .r { font-weight: 700; color: var(--muted); font-size: 12px; } .feat-top li:first-child .r { color: var(--amber); }
.feat-top .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.feat-top .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.feat-more { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rank-list li:first-child { border-top: 0; }
.rank-list li a { font-weight: 600; }
.rank-list .lead { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .lead::before { content: '#1 '; font-weight: 700; color: var(--amber); }
.rank-list .lead b { color: var(--text-2); font-weight: 550; }

/* Stacked share bar */
.stack { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.stack .s { display: grid; place-items: center; font-size: 11.5px; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; }
.stack + .legend { margin-top: 8px; }
.legend i.t0, .stack .t0 { background: #4f46e5; } .legend i.t1, .stack .t1 { background: #0d9488; } .legend i.t2, .stack .t2 { background: #d97706; }
.legend i.t3, .stack .t3 { background: #db2777; } .legend i.t4, .stack .t4 { background: #0284c7; } .legend i.t5, .stack .t5 { background: #65a30d; }
.legend i.t6, .stack .t6 { background: #7c3aed; } .legend i.t7, .stack .t7 { background: #9ca3af; } .legend i.t8, .stack .t8 { background: #475569; }
.legend b { font-weight: 650; color: var(--text); margin-left: 2px; }

/* Percentile bars, ladders, sparklines */
.pbar { display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.pbar .t { display: block; background: var(--surface-3); border-radius: 999px; height: 9px; overflow: hidden; position: relative; }
.pbar .f { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.pbar .f.green { background: var(--green); } .pbar .f.amber { background: var(--amber); } .pbar .f.red { background: var(--red); }
.pbar .m { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--text); opacity: .5; }
.pbar .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pbar .k { color: var(--text-2); }
.ladder { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 8px 10px; font-size: 13.5px; }
.ladder .rail { position: relative; height: 22px; background: var(--surface-3); border-radius: 6px; }
.ladder .band { position: absolute; top: 4px; height: 14px; background: var(--accent); opacity: .45; border-radius: 6px; }
.ladder .tick { position: absolute; top: 2px; width: 2px; height: 18px; background: var(--accent); }
.ladder .note { grid-column: 1 / -1; min-height: 0; }
.ladder .note:empty { display: none; }
.ladder .you { position: absolute; top: 0; width: 3px; height: 22px; background: var(--amber); border-radius: 2px; }
.spark { vertical-align: middle; }
.dist { width: 100%; height: 64px; display: block; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.tbl th.num { text-align: right; } .tbl th[data-sort] { cursor: pointer; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tr:hover td { background: var(--surface-2); }
.tbl .rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 40px; }
.tbl .me td { background: var(--accent-soft); }
.tbl-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); } .badge.amber { background: var(--amber-soft); color: var(--amber); } .badge.red { background: var(--red-soft); color: var(--red); } .badge.grey { background: var(--surface-3); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* A row of chips used as page navigation (under a hero) breathes before the next block. */
main > .chips { margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text); }
.chip:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip .c { color: var(--muted); font-size: 12px; }

/* Sub-nav on school pages */
.for-athletes { margin: -4px 0 12px; font-size: 13px; color: var(--muted); max-width: 900px; }
.for-athletes b { color: var(--accent); font-weight: 700; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.subnav a { padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-weight: 560; font-size: 13.5px; }
.subnav a.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }

/* Gate / CTA panels */
.gate { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--r-lg); padding: 14px 16px; font-size: 14.5px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; }
.gate .btn { flex: none; }
.callout { border-left: 3px solid var(--accent); padding: 4px 12px; margin: 10px 0; color: var(--text-2); font-size: 14px; }
.source { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.map { width: 100%; max-width: 960px; height: auto; display: block; margin: 0 auto; border-radius: var(--r); background: var(--water); border: 1px solid var(--border); }
.map + .legend { justify-content: center; }
.map .land { fill: var(--land); stroke: var(--border-strong); stroke-width: 1; }
.map circle { r: 3.6; fill: var(--accent); fill-opacity: .75; stroke: var(--surface); stroke-width: .8; }
.map circle.d2 { fill: #0d9488; }
.map circle.d3 { fill: #d97706; }
.map circle.me { r: 7; fill: var(--amber); fill-opacity: 1; stroke: var(--text); stroke-width: 1.5; }
.map a:hover circle { fill-opacity: 1; r: 5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs { text-align: center; font-weight: 700; color: var(--muted); }
.diff-up { color: var(--green); font-weight: 650; } .diff-down { color: var(--red); font-weight: 650; }
.toc { position: sticky; top: calc(var(--topbar-h) + 6px); }
ol.steps { padding-left: 20px; } ol.steps li { margin-bottom: 6px; }
.kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
@media (max-width: 720px) {
  h1 { font-size: 20px; } main { padding: 16px 16px 56px; } .card { padding: 14px; }
  .top-in { flex-wrap: wrap; padding: 10px 16px; gap: 10px 14px; } .top-in .nav { order: 3; width: 100%; } .topbar-actions .user-menu-name { display: none; }
  .research-bar .bar-in { padding: 6px 16px; flex-wrap: wrap; } .research-bar .search { margin-left: 0; width: 100%; max-width: none; }
  .foot-in, .foot-note { padding-left: 16px; padding-right: 16px; }
  .pbar { grid-template-columns: 110px 1fr 48px; } .ladder { grid-template-columns: 90px 1fr 70px; } .two { grid-template-columns: 1fr; }
  .cta { margin-left: 0; }
  /* Tables scroll sideways rather than wrapping every word of a school name. */
  .tbl th, .tbl td { white-space: nowrap; } .tbl td .small { white-space: normal; max-width: 200px; }
}

/* ---------------------------------------------------------------- Research mode (signed-in members; research.js) */
/* Sport and account pills, exactly as the app's topbar draws them. */
.sport-switcher-trigger { display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 12px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 560; cursor: pointer; white-space: nowrap; transition: background .12s var(--ease), border-color .12s var(--ease); }
.sport-switcher-trigger:hover { background: var(--surface-2); }
.sport-switcher-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.user-menu-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 4px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 560; cursor: pointer; transition: background .12s var(--ease), border-color .12s var(--ease); }
.user-menu-trigger:hover { background: var(--surface-2); }
.user-menu-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-caret { color: var(--muted); font-size: 10px; }
.avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: var(--r-full); display: grid; place-items: center; font-size: 11.5px; font-weight: 680; letter-spacing: -.02em; color: #fff; background: var(--accent); border: 2px solid var(--surface); text-transform: uppercase; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.user-menu-head { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 12.5px; overflow-wrap: anywhere; }
.user-menu-head strong { font-size: 13.5px; font-weight: 620; }
.board-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; width: 100%; }
.board-strip .rs-note { font-size: 13px; color: var(--muted); }
.rs-save .caret { margin-left: 6px; opacity: .7; font-size: 11px; }
.rs-save.on { background: var(--green); border-color: var(--green); color: #fff; }
.rs-status { padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; }
.rs-label { font-size: 12px; color: var(--muted); margin-left: 4px; }
.rs-prio { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; }
.rs-prio .p { padding: 6px 10px; border: 0; background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; border-left: 1px solid var(--border); }
.rs-prio .p:first-child { border-left: 0; }
.rs-prio .p.on { background: var(--accent); color: #fff; }
.rs-notes-btn.has { border-color: var(--amber); color: var(--amber); }
/* Rows */
.tbl .save { width: 34px; text-align: center; padding-left: 4px; padding-right: 4px; }
.save-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--accent); font: 700 15px/1 inherit; cursor: pointer; }
.save-btn:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.save-btn.on { background: var(--green-soft); color: var(--green); border-color: transparent; }
.rs-on .tbl tr.on-list td { background: var(--green-soft); }
.rs-on .rankbars li.on-list { background: var(--green-soft); border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.rs-mark { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--text-2); vertical-align: middle; white-space: nowrap; }
.rs-mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.rs-mark.st-contacted i, .rs-mark.st-in_conversation i { background: var(--accent); }
.rs-mark.st-visit_scheduled i, .rs-mark.st-offer i { background: var(--amber); }
.rs-mark.st-committed i { background: var(--green); }
.rs-mark.st-closed i { background: var(--red); }
.rs-status.st-committed { color: var(--green); } .rs-status.st-offer, .rs-status.st-visit_scheduled { color: var(--amber); }
.rs-yours .chip.on b { color: var(--accent); margin-right: 2px; }
/* Menu (mirrors the app's .menu-popover) */
.rs-menu { position: absolute; z-index: 120; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 5px; }
.rs-menu-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-menu-empty { font-size: 13px; color: var(--muted); padding: 6px 10px; }
.rs-menu-item { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; align-items: center; width: 100%; padding: 8px 11px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.rs-menu-item:hover, .rs-menu-item:focus { background: var(--accent-soft); outline: none; }
.rs-menu-item .tick { color: var(--green); font-weight: 700; }
.rs-menu-item.some .tick { color: var(--muted); }
.rs-menu-item .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-menu-item .meta { font-size: 12px; color: var(--muted); }
.rs-menu-item.busy { opacity: .5; pointer-events: none; }
.rs-menu-new { display: flex; gap: 6px; padding: 6px 6px 4px; border-top: 1px solid var(--border); margin-top: 4px; }
.rs-menu-new input { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; }
.rs-menu-new button { padding: 7px 10px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rs-menu-foot { display: block; padding: 8px 10px 4px; font-size: 12.5px; color: var(--muted); }
/* Toast */
.rs-toast { position: fixed; z-index: 130; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); max-width: calc(100vw - 32px); }
.rs-toast button { border: 0; background: none; color: var(--amber); font: inherit; font-weight: 700; cursor: pointer; }
/* Drawer */
.rs-drawer { position: fixed; z-index: 110; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .18s ease-out; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.rs-drawer.open { transform: none; }
.rs-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; border-bottom: 1px solid var(--border); }
.rs-drawer-title { font-size: 17px; margin: 2px 0 0; }
.rs-close { border: 0; background: var(--surface-2); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; font-size: 20px; line-height: 1; cursor: pointer; }
.rs-notes { flex: 1; resize: none; border: 0; outline: 0; padding: 16px 18px; font: inherit; font-size: 14.5px; line-height: 1.55; background: var(--surface); color: var(--text); }
.rs-drawer-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 18px 12px; border-top: 1px solid var(--border); }
body.rs-drawer-open main { padding-right: 396px; }
/* Clips */
.rs-clippable { position: relative; }
.rs-clip { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: var(--surface-2); font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; }
.rs-clippable:hover .rs-clip, .rs-clip:focus { opacity: 1; }
.rs-clip.done { background: var(--green-soft); }
.facts li.rs-clippable { padding-right: 28px; }
@media (max-width: 720px) {
  body.rs-drawer-open main { padding-right: 20px; }
  .rs-clip { opacity: .6; }
}
