/* College Fit Plan portal. Brand: "the calm scout" (Decisions row 38). */
:root {
  --navy: #0F2A4A;
  --green: #1F7A4D;
  --gold: #C8962E;
  --gold-text: #8A6416;
  --chalk: #F7F5F0;
  --ink: #1B2333;
  --muted: #4A5468;
  --line: #DCE2EC;
  --field: #B8C2D3;
  --card: #FFFFFF;
  --soft-green: #EEF5F0;
  --error: #8A3A1E;
  --target-bg: #DDEBDD; --target-fg: #23592A;
  --strong-bg: #DDE8F7; --strong-fg: #17407F;
  --reach-bg: #FBEBD3; --reach-fg: #7A4A0B;
  --lower-bg: #ECEEF2; --lower-fg: #4A5468;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--body); font-size: 16px; color: var(--ink); background: var(--chalk); line-height: 1.5; }
a { color: var(--navy); }
a:hover { color: var(--green); }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.club-line { font-size: 12px; color: var(--muted); }
.club-line:empty { display: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy); }
.who { display: flex; gap: 14px; align-items: center; }
.who .link { padding: 12px 4px; }

main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 10px; color: var(--navy); }
h2 { font-size: 20px; line-height: 1.3; margin: 22px 0 10px; color: var(--navy); }
.card h2 { margin-top: 0; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 14px 0; }
.narrow { max-width: 440px; margin: 28px auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.msg { min-height: 1.4em; font-size: 14px; margin: 6px 0 0; }
.msg:not(:empty) { color: var(--error); }
.hint { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }
.fresh { font-size: 14px; font-weight: 600; color: var(--green); }

/* Forms and buttons */
form { display: grid; gap: 14px; margin: 14px 0; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
input { font: inherit; font-size: 16px; padding: 11px 13px; min-height: 48px; border: 1.5px solid var(--field); border-radius: 10px; background: var(--card); color: var(--ink); }
input:focus { outline: 3px solid rgba(31, 122, 77, 0.35); outline-offset: 1px; border-color: var(--green); }
.code-input { font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--navy); }
label.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; }
button { font: inherit; cursor: pointer; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--navy); color: #fff; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 48px; font-weight: 600; font-size: 16px; }
.primary:hover { background: #17385F; }
.primary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary { background: var(--card); color: var(--navy); border: 2px solid var(--navy); border-radius: 12px; padding: 10px 16px; min-height: 48px; font-weight: 600; }
.wide { width: 100%; }
.link { background: none; border: 0; color: var(--navy); padding: 8px 0; text-align: left; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.link.center { text-align: center; }
button:disabled { opacity: 0.45; cursor: default; }

/* Sign-up hero */
.hero-band { background: var(--navy); color: var(--chalk); border-radius: 14px 14px 0 0; padding: 20px; }
.hero-band h1 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.hero-band p { color: #C9D3E3; margin: 0; font-size: 15px; }
.card.flush-top { margin-top: 0; border-radius: 0 0 14px 14px; border-top: 0; }
.trust { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink); background: var(--soft-green); border-radius: 10px; padding: 10px 12px; margin: 0; }
.trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* States */
.state-icon { width: 40px; height: 40px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.state-icon.green { stroke: var(--green); }
.state-icon.gold { stroke: var(--gold-text); }
.status { max-width: 440px; margin: 40px auto; }
.skeleton { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.skeleton i { display: block; grid-column: span 2; height: 14px; border-radius: 8px; background: #E6E2D9; animation: pulse 1.4s ease-in-out infinite; }
.skeleton i.block { height: 76px; border-radius: 12px; }
.skeleton i.half { grid-column: span 1; height: 60px; }
@keyframes pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .skeleton i { animation: none; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; color: var(--navy); }
.stat span { font-size: 14px; color: var(--muted); }
.stat.lead { background: var(--navy); border-color: var(--navy); }
.stat.lead b { color: #E2B85C; font-size: 48px; }
.stat.lead span { color: #F7F5F0; }
.stat.good b { color: var(--green); }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.program { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.program-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.program-head strong { font-size: 17px; }
.program .why { font-size: 15px; }
.program .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; border-radius: 99px; padding: 3px 10px; font-weight: 600; white-space: nowrap; font-size: 13px; }
.target { background: var(--target-bg); color: var(--target-fg); }
.strongfit { background: var(--strong-bg); color: var(--strong-fg); }
.reach { background: var(--reach-bg); color: var(--reach-fg); }
.lower { background: var(--lower-bg); color: var(--lower-fg); }

/* Download bar: sticky at the bottom on every screen */
.action-bar { position: sticky; bottom: 0; margin: 20px -16px -48px; padding: 12px 16px 18px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 42, 74, 0.08); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.action-bar .primary { flex: 1 1 260px; max-width: 420px; font-size: 17px; }
.action-bar span { color: var(--muted); flex: 1 1 220px; }
.action-bar .msg { flex-basis: 100%; margin: 0; }

/* Staff list */
.row-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; }
.row-head h1 { margin-bottom: 2px; }
.search { flex: 0 1 320px; font-weight: 400; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.toolbar.bar { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.msg.ok:not(:empty) { color: var(--green); }
.table-box { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 11px 14px; border-bottom: 1px solid #EEF0F4; vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid .strong { font-weight: 600; }
.grid .pick { width: 40px; }
.grid .ok { color: var(--target-fg); font-weight: 600; }
.grid .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.05em; }
.clickable { cursor: pointer; }
.clickable:hover, .clickable:focus { background: var(--chalk); outline: none; }
.pill { border-radius: 99px; padding: 3px 10px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.pill.signed { background: var(--target-bg); color: var(--target-fg); }
.pill.released { background: var(--strong-bg); color: var(--strong-fg); }
.pill.notyet { background: var(--lower-bg); color: var(--lower-fg); }
#codes-box .table-box { margin-top: 6px; }

.foot { max-width: 1100px; margin: 0 auto; padding: 8px 16px 32px; font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  h1 { font-size: 24px; }
  .programs { grid-template-columns: 1fr; }
  .stats.player-stats { grid-template-columns: 1fr 1fr; }
  .stats.player-stats .lead { grid-column: span 2; flex-direction: row; align-items: center; gap: 14px; }
  .search { flex-basis: 100%; }
  .top { padding: 10px 14px; }
}

/* Club logo in header */
/* Club-first header when the club has a logo */
.club-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex: none; }
.wordmark .mini { display: none; }
.brand.co .mark { display: none; }
.brand.co .club-line { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy); }
.brand.co .wordmark { font-family: inherit; font-weight: 500; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.brand.co .wordmark .mini { display: block; width: 14px; height: 14px; }
@media (max-width: 600px) {
  .top { flex-wrap: wrap; row-gap: 0; padding: 10px 16px; }
  .who { width: 100%; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; }
  .tabs a { padding: 10px 0; }
}
.tabs { display: flex; gap: 16px; }
.tabs a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 12px 0; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }

/* Club profile */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.logo-preview { width: 72px; height: 72px; border-radius: 14px; border: 1.5px dashed var(--field); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; background: var(--chalk); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
fieldset.colleges { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; display: grid; gap: 10px; }
fieldset.colleges legend { font-weight: 600; padding: 0 6px; }
.college-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; max-height: 360px; overflow-y: auto; }
.college-list h3 { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 8px 0 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.college-list label { display: flex; gap: 8px; align-items: center; font-weight: 400; min-height: 36px; }

/* Plus */
.plus-badge { display: inline-block; background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; padding: 1px 8px; vertical-align: middle; }
.plus-panel { border: 1.5px solid var(--gold); }
.plus-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.plus-panel ul { margin: 6px 0 8px; padding-left: 20px; }
.plus-panel li { margin: 4px 0; }
.connection { align-self: flex-start; display: inline-block; background: var(--soft-green); color: var(--green); font-weight: 600; font-size: 12px; border-radius: 99px; padding: 2px 9px; }
