:root {
  --navy: #00274c;
  --navy-2: #0a5b92;
  --deep: #00172e;
  --silver: #e7e8e8;
  --columbia: #9bc4e2;
  --columbia-2: #dcebf6;
  --ink: #0d1b2e;
  --muted: #5b6b85;
  --line: #dde4ee;
  --bg: #f4f7fb;
  --card: #ffffff;
  --green: #1d7a46;
  --red: #b3261e;
  --amber: #a15c00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 68, 0.06), 0 4px 14px rgba(11, 31, 68, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%2300274c' stroke-opacity='.03' stroke-width='2'/%3E%3C/svg%3E");
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* Header */
.top {
  background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.top-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.brand-text b { display: block; font-family: "Oswald", Impact, sans-serif; font-size: 20px; letter-spacing: 2px; line-height: 1; text-transform: uppercase; }
.brand-text span { display: block; font-size: 11px; color: var(--columbia); letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; margin-top: 3px; }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav { max-width: 1100px; margin: 0 auto; padding: 0 8px 8px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #dbe7f6; text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; font-size: 14px; font-weight: 600;
}
.nav a.on { background: var(--columbia); color: var(--navy); }
.teambar { background: var(--navy-2); }
.teambar-inner { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 6px; align-items: center; overflow-x: auto; }
.teambar label { color: var(--columbia); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; }
.chip {
  border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; border-radius: 999px; padding: 5px 14px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip.on { background: #fff; color: var(--navy); border-color: #fff; }

main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 80px; }
h1, h2, .display { font-family: "Oswald", Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
h1 { font-size: 30px; margin: 4px 0 14px; line-height: 1.05; }
h2 { font-size: 21px; margin: 26px 0 10px; color: var(--navy); }
h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--columbia); border-radius: 2px; margin-top: 6px; }
h3 { font-size: 16px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid var(--line); }
.card + .card { margin-top: 12px; }
.grid > .card + .card { margin-top: 0; }
.card.tight { padding: 12px 14px; }
.hero {
  position: relative; overflow: hidden; color: #fff; border: 0; padding: 22px 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(155,196,226,.28) 0, rgba(155,196,226,0) 45%),
    linear-gradient(135deg, var(--deep) 0%, var(--navy) 55%, var(--navy-2) 130%);
}
.hero::before {
  content: ""; position: absolute; right: -90px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 3px solid rgba(155,196,226,.18); box-shadow: 0 0 0 60px rgba(155,196,226,.05);
}
.hero::after {
  content: ""; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 150px; height: 150px; opacity: .14;
  background: url(/logo-192.png) center/contain no-repeat;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 34px; }
.big-num { font-family: "Oswald", Impact, sans-serif; font-size: 44px; line-height: 1; font-weight: 700; }
.countdown { display: flex; gap: 10px; margin-top: 12px; }
.countdown div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 6px 10px; text-align: center; min-width: 58px; }
.countdown b { display: block; font-family: "Oswald", Impact, sans-serif; font-size: 24px; }
.countdown span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--columbia); }
.record-tile { background: #fff; border-radius: var(--radius); padding: 14px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.record-tile .big-num { color: var(--navy); }
.record-tile .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }
.hero .muted { color: var(--columbia-2); }
.hero h1 { margin: 0 0 4px; }
.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; color: var(--navy-2); }
.hero .kicker { color: var(--columbia); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--navy); background: var(--navy); color: #fff;
  padding: 9px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; line-height: 1.2;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; padding: 0; font-size: inherit; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--columbia-2); color: var(--navy); white-space: nowrap; }
.badge.home { background: #e3f3e8; color: var(--green); }
.badge.away { background: #fdeee0; color: var(--amber); }
.badge.practice { background: #eef1f6; color: var(--muted); }
.badge.off { background: #f3f3f3; color: #777; }
.badge.tournament { background: #efe7fb; color: #5b2a9a; }
.badge.win { background: #e3f3e8; color: var(--green); }
.badge.loss { background: #fbe9e7; color: var(--red); }
.badge.warn { background: #fff3d6; color: var(--amber); }
.badge.bad { background: #fbe9e7; color: var(--red); }
.badge.good { background: #e3f3e8; color: var(--green); }
.badge.pending { background: #fff3d6; color: var(--amber); }

/* Events */
.ev { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev-date { text-align: center; background: var(--bg); border-radius: 10px; padding: 6px 4px; height: fit-content; }
.ev-date .m { font-size: 11px; text-transform: uppercase; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.ev-date .d { font-size: 22px; font-weight: 800; line-height: 1.1; }
.ev-date .w { font-size: 11px; color: var(--muted); }
.ev-title { font-weight: 700; }
.ev-meta { font-size: 14px; color: var(--muted); }
.ev.past { opacity: 0.65; }
.ev.canceled .ev-title { text-decoration: line-through; }
.ev-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.month-head { font-family: "Oswald", Impact, sans-serif; font-weight: 600; color: var(--navy); margin: 20px 0 2px; font-size: 18px; text-transform: uppercase; letter-spacing: 1.5px; }
.ev-date { background: var(--navy) !important; color: #fff; }
.ev-date .m, .ev-date .w { color: var(--columbia) !important; }
.ev-date .d { font-family: "Oswald", Impact, sans-serif; font-size: 26px !important; }
.ev.practice-row .ev-date { background: #eef2f7 !important; color: var(--ink); }
.ev.practice-row .ev-date .m, .ev.practice-row .ev-date .w { color: var(--muted) !important; }

/* Calendar grid */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.cal .dow { background: var(--navy); color: #fff; font-size: 12px; text-align: center; padding: 6px 0; font-weight: 700; }
.cal .day { min-height: 86px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px; font-size: 12px; }
.cal .day:nth-child(7n + 1) { border-left: 0; }
.cal .day.other { background: #fafbfd; color: #aab4c4; }
.cal .day.today { background: #f0f7fd; }
.cal .num { font-weight: 700; font-size: 12px; }
.cal .pill { display: block; margin-top: 3px; padding: 2px 4px; border-radius: 5px; background: var(--columbia-2); color: var(--navy); font-size: 11px; line-height: 1.25; cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.cal .pill.practice { background: #eef1f6; color: #4b5870; }
.cal .pill.off { background: #f3f3f3; color: #888; }
.cal .pill.tournament { background: #efe7fb; color: #5b2a9a; }
.cal .pill.away { background: #fdeee0; color: #8a4f00; }
.cal .pill.home { background: #e3f3e8; color: #17613a; }
@media (max-width: 640px) {
  .cal .day { min-height: 64px; padding: 2px; }
  .cal .pill { font-size: 10px; padding: 1px 2px; }
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f7fafd; }
.num-cell { text-align: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
input:not([type]), input[type="search"], input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9d3e1; border-radius: 10px; background: #fff; font-size: 16px;
}
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; }

.toggle { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle:first-child { border-top: 0; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c9d3e1; border-radius: 999px; transition: 0.2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(22px); }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 14px; }
.tabs button.on { background: var(--navy); color: #fff; }
.tabs .count { background: var(--red); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

.coach-card .name { font-weight: 800; font-size: 17px; }
.contact-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.notice { padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f2dfae; color: #5d4300; font-size: 14px; }
.notice.info { background: #eef6fd; border-color: #cfe3f5; color: #17406b; }
.notice.ok { background: #e9f6ee; border-color: #c4e6d1; color: #17613a; }
.notice.err { background: #fdeceb; border-color: #f4c7c3; color: #8c1d18; }

.prose p { margin: 0 0 8px; }
.section-card h3 { color: var(--navy); }

.bracket-day { margin-top: 14px; }
.game { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: #fff; }
.game.ours { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); }
.game .teams div { display: flex; justify-content: space-between; gap: 8px; }
.game .teams b { font-weight: 700; }
.game .meta { text-align: right; font-size: 13px; color: var(--muted); min-width: 90px; }

.modal-bg { position: fixed; inset: 0; background: rgba(11, 31, 68, 0.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px; }
@media (min-width: 720px) { .modal-bg { align-items: center; } .modal { border-radius: 18px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.x { background: none; border: 0; font-size: 26px; cursor: pointer; line-height: 1; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-weight: 600; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--red); }

.rec { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rec:first-child { border-top: 0; }
.rec.voided { opacity: 0.55; }
.rec.voided .rec-label { text-decoration: line-through; }
.note { padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; background: #fcfdff; }
.note .who { font-size: 12px; color: var(--muted); }
.history { margin-top: 8px; border-left: 3px solid var(--columbia); padding-left: 10px; font-size: 13px; color: var(--muted); }

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { text-align: center; min-width: 64px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.photo-grid figure { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-grid figcaption { padding: 6px 8px; font-size: 13px; }

footer img { width: 54px; height: 54px; opacity: .8; display: block; margin: 0 auto 8px; }
footer { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }
.att-grid button { min-width: 40px; }
.att-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.att-opts { display: flex; gap: 4px; flex-wrap: wrap; }
.att-opts button { border: 1px solid #c9d3e1; background: #fff; border-radius: 8px; padding: 6px 9px; font-size: 13px; cursor: pointer; }
.att-opts button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.loading { padding: 40px; text-align: center; color: var(--muted); }

.tiles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 2fr; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles .coach-tile { grid-column: 1 / -1; } }
.game .meta { max-width: 46%; }
.hero .btn.light { box-shadow: 0 4px 14px rgba(155,196,226,.35); }

/* Coach quick bar */
.quickbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: linear-gradient(90deg, var(--deep), var(--navy)); padding: 10px 12px; border-radius: var(--radius); margin-bottom: 12px; }
.quickbar .qb-label { color: var(--columbia); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-right: 4px; }
.quickbar.in-dash { background: #fff; border: 1px solid var(--line); }
.quickbar.in-dash .qb-label { color: var(--navy-2); }

/* Quick facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fact { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy-2); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.fact-icon { font-size: 22px; line-height: 1; }
.fact b { font-family: "Oswald", Impact, sans-serif; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; color: var(--navy); }

/* Bracket graphic */
.bk-title { font-family: "Oswald", Impact, sans-serif; text-transform: uppercase; letter-spacing: 1.2px; color: var(--navy); font-size: 15px; margin: 16px 0 8px; }
.bk-scroll { overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.bk { display: flex; gap: 28px; min-width: max-content; }
.bk-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.bk-slot { position: relative; display: flex; align-items: center; flex: 1; }
.bk-col.has-out .bk-slot::after { content: ""; position: absolute; right: -14px; width: 14px; border-right: 2px solid var(--columbia); }
.bk-col.has-out .bk-slot:nth-child(odd)::after { top: 50%; height: calc(50% + 6px); border-top: 2px solid var(--columbia); border-top-right-radius: 6px; }
.bk-col.has-out .bk-slot:nth-child(even)::after { bottom: 50%; height: calc(50% + 6px); border-bottom: 2px solid var(--columbia); border-bottom-right-radius: 6px; }
.bk-col.has-out .bk-slot:only-child::after { height: 0; border-right: 0; top: 50%; }
.bk-col.has-in .bk-slot::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; border-top: 2px solid var(--columbia); }
.bk-game { width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.bk-game.ours { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(0,39,76,.15), var(--shadow); }
.bk-game.editable { cursor: pointer; }
.bk-game.editable:hover { border-color: var(--navy-2); }
.bk-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--muted); background: #f3f6fa; padding: 4px 8px; }
.bk-team { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; font-size: 14px; border-top: 1px solid var(--line); }
.bk-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-team.tbd span { color: #98a3b5; font-style: italic; font-size: 13px; }
.bk-team.us span { font-weight: 800; color: var(--navy); }
.bk-team.won { background: #eef7f1; }
.bk-team.won b { color: var(--green); }
.bk-team.lost { opacity: .6; }
.bk-place { display: flex; flex-wrap: wrap; gap: 12px; }

.hero.has-photo { background: linear-gradient(100deg, rgba(0,23,46,.92) 0%, rgba(0,39,76,.66) 50%, rgba(0,39,76,.15) 100%), var(--hero-img) center 30%/cover no-repeat; }
.hero.has-photo::after { display: none; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--columbia-2); flex: none; }
.coach-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 10px; border: 3px solid var(--columbia-2); }
.coach-photo.ph { background: var(--navy); display: grid; place-items: center; }
.coach-photo.ph img { width: 62px; height: 62px; opacity: .9; }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.photo-strip img { height: 130px; width: auto; border-radius: 10px; display: block; }
footer .donated { margin-bottom: 6px; font-size: 14px; color: var(--navy); }
footer .donated a { color: var(--navy); text-decoration: none; }

/* Donations */
.donate-btn { background: var(--columbia); border-color: var(--columbia); color: var(--deep); }
.donate-card { margin-top: 12px; color: #fff; border: 0; background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy) 60%, var(--deep) 100%); }
.donate-card .small { color: #e3eef8; }
.progress { height: 12px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--columbia), #fff); border-radius: 999px; }
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sponsor { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }

/* Mobile: app-style bottom nav */
.bottomnav { display: none; }
.more-list { display: grid; gap: 6px; }
.more-list a { display: block; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--navy); }
@media (max-width: 720px) {
  .nav { display: none; }
  main { padding-bottom: 96px; }
  footer { padding-bottom: 100px; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(0, 23, 46, .97); backdrop-filter: blur(8px); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(155,196,226,.25);
  }
  .bottomnav a, .bottomnav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; color: #b9cde3; text-decoration: none; font-size: 11px; font-weight: 700;
    background: none; border: 0; padding: 4px 0; cursor: pointer;
  }
  .bottomnav span { font-size: 20px; line-height: 1; }
  .bottomnav a.on { color: #fff; }
  .top-inner { padding: 8px 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text b { font-size: 17px; }
  .hero h1 { font-size: 28px; }
  h1 { font-size: 26px; }
  .btn { min-height: 40px; }
  .btn.small { min-height: 34px; }
  .toast { bottom: 90px; }
  .donate-btn { padding: 6px 10px; }
}

/* ===== Intro ===== */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #0a3a6b 0%, var(--navy) 45%, var(--deep) 100%); transition: opacity .6s ease, transform .6s ease; }
.intro.done { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-court { position: absolute; inset: 0; opacity: .18;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 118px, var(--columbia) 119px 121px, transparent 122px),
    linear-gradient(var(--columbia), var(--columbia)) center / 2px 100% no-repeat,
    radial-gradient(circle at 50% 50%, transparent 0 38vmax, rgba(155,196,226,.6) 38vmax calc(38vmax + 2px), transparent calc(38vmax + 3px));
  animation: courtIn 1.4s ease-out both; }
.intro-inner { position: relative; text-align: center; color: #fff; }
.intro-logo { width: 150px; height: 150px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); animation: logoIn .9s cubic-bezier(.2,1.4,.4,1) .25s both; }
.intro-title { font-family: "Oswald", Impact, sans-serif; text-transform: uppercase; font-size: 44px; letter-spacing: 4px; line-height: 1; margin-top: 14px; display: flex; gap: 14px; justify-content: center; }
.intro-title span { display: inline-block; animation: slideUp .6s ease-out both; }
.intro-title span:first-child { animation-delay: .7s; }
.intro-title span:last-child { animation-delay: .85s; color: var(--columbia); }
.intro-sub { margin-top: 8px; letter-spacing: 6px; text-transform: uppercase; font-size: 12px; font-weight: 800; color: var(--columbia-2); animation: fadeIn .6s ease 1.1s both; }
.intro-ball { position: absolute; left: 50%; top: -40px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb066, #e86f1a 60%, #b44d0b);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
  animation: ballDrop 1.5s cubic-bezier(.3,0,.7,1) both; }
.intro-ball::before, .intro-ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(60,25,0,.55); }
.intro-ball::before { clip-path: inset(0 48% 0 48%); border: 0; background: rgba(60,25,0,.6); }
.intro-ball::after { border-left-color: transparent; border-right-color: transparent; transform: scaleX(.55); }
@keyframes ballDrop {
  0% { transform: translate(-260px, -60vh) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  55% { transform: translate(0, 40px) rotate(540deg); }
  70% { transform: translate(0, -10px) rotate(620deg); }
  85% { transform: translate(0, 40px) rotate(700deg); opacity: 1; }
  100% { transform: translate(0, 40px) rotate(720deg) scale(.4); opacity: 0; }
}
@keyframes logoIn { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes courtIn { from { transform: scale(1.3); opacity: 0; } to { transform: none; opacity: .18; } }

/* ===== Page polish ===== */
main.enter > * { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
main.enter > *:nth-child(2) { animation-delay: .05s; }
main.enter > *:nth-child(3) { animation-delay: .1s; }
main.enter > *:nth-child(4) { animation-delay: .15s; }
main.enter > *:nth-child(5) { animation-delay: .2s; }
main.enter > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.card, .record-tile, .fact, .bk-game, .sponsor { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) {
  .card:hover, .record-tile:hover, .fact:hover, .sponsor:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,39,76,.06), 0 10px 26px rgba(0,39,76,.12); }
  .hero:hover, .donate-card:hover, .modal .card:hover { transform: none; }
}
.hero h1 { background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--columbia) 50%, #fff 60%, #fff 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s ease-in-out 1s infinite; }
@keyframes shine { 0%, 70% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.countdown div { animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.countdown div:nth-child(2) { animation-delay: .08s; }
.countdown div:nth-child(3) { animation-delay: .16s; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.record-tile .big-num { background: linear-gradient(180deg, var(--navy), var(--navy-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.donate-card { position: relative; overflow: hidden; }
.donate-card::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); animation: sweep 4.5s ease-in-out 1.5s infinite; }
@keyframes sweep { 0%, 60% { left: -80px; } 100% { left: 110%; } }
.donate-card > * { position: relative; z-index: 1; }
.progress-bar { animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both .3s; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.bk-team.tbd span { white-space: normal; line-height: 1.2; }
.bk-game { width: 220px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) {
  .brand-text b { font-size: 15px; letter-spacing: 1.2px; white-space: nowrap; }
  .brand-text span { font-size: 9.5px; letter-spacing: 2px; }
  .top-right { gap: 6px; }
}
.bk-team span { padding-right: 2px; }

/* Alerts */
#alerts { position: relative; z-index: 15; }
.alertbar { color: #fff; animation: rise .4s ease both; }
.alertbar.urgent { background: linear-gradient(90deg, #a3161a, #c62828); }
.alertbar.warning { background: linear-gradient(90deg, #b26a00, #d48806); }
.alertbar.info { background: linear-gradient(90deg, var(--navy-2), var(--navy)); }
.alert-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.alert-text { flex: 1; }
.alert-text a { color: #fff; text-decoration: underline; }
.alert-x { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; opacity: .85; }
.alertbar.urgent .alert-ico { animation: pulse 1.4s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.lang-btn { min-width: 38px; }
tr.us-row td { background: #eef5fb; font-weight: 700; }
input[type="color"] { width: 100%; height: 44px; padding: 4px; border: 1px solid #c9d3e1; border-radius: 10px; background: #fff; }
input[type="datetime-local"] { width: 100%; padding: 10px 12px; border: 1px solid #c9d3e1; border-radius: 10px; background: #fff; font-size: 16px; }
.about-site { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--muted); }
.about-site img { width: 44px; height: 44px; opacity: .85; }
.about-site b { color: var(--ink); }
@media (max-width: 720px) { .lang-btn { padding: 6px 8px; } }

/* App card, videos */
.app-card { border-left: 4px solid var(--columbia); margin-top: 12px; }
.kbd { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: #f6f8fb; font-weight: 700; }
.video-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.video-strip .video-card { min-width: 240px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.video-card { position: relative; display: block; padding: 0; border: 0; background: #000; border-radius: 12px; overflow: hidden; cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; opacity: .9; }
.video-card .play { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: 22px; }
.video-card .vt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-weight: 700; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.video-frame { position: relative; padding-top: 56.25%; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }

/* Home: all three teams up front */
.home-hero h1 { font-size: 38px; line-height: 1; margin: 6px 0 10px; }
.home-hero h1 .sub { font-size: 20px; letter-spacing: 3px; color: var(--columbia); -webkit-text-fill-color: var(--columbia); }
.home-hero .gd { background: #c62828; color: #fff; padding: 1px 8px; border-radius: 999px; letter-spacing: 1.5px; animation: pulse 1.6s ease-in-out infinite; display: inline-block; }
.team-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.tc-star { display: inline-block; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; font-weight: 800; cursor: pointer; }
@media (max-width: 860px) {
  .team-cards { grid-template-columns: 1fr; gap: 8px; }
  .tc-actions { display: none; }
  .tc-head { padding: 8px 12px; }
  .tc-name { font-size: 20px; }
  .tc-rec { font-size: 17px; }
  .tc-body { padding: 8px 12px 10px; }
  .tc-title { font-size: 16px; }
  .tc-meta { font-size: 13px; }
  .tc-body::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--muted); }
  .tc-body { position: relative; padding-right: 30px; }
  .tc-star { display: inline-block; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 3px 8px; cursor: pointer; }
}
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.team-card.mine { border: 2px solid var(--navy); box-shadow: 0 0 0 3px rgba(155,196,226,.45), var(--shadow); }
.team-card.gameday { border-color: #c62828; }
.tc-head { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; cursor: pointer; text-align: left; padding: 12px 14px; color: #fff; background: linear-gradient(100deg, var(--deep), var(--navy) 60%, var(--navy-2)); }
.tc-name { font-family: "Oswald", Impact, sans-serif; font-size: 24px; text-transform: uppercase; letter-spacing: 1.5px; flex: 1; }
.tc-mine { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: var(--columbia); color: var(--deep); border-radius: 999px; padding: 3px 8px; }
.tc-rec { font-family: "Oswald", Impact, sans-serif; font-size: 20px; color: var(--columbia); }
.tc-body { display: flex; flex-direction: column; gap: 2px; width: 100%; border: 0; background: none; text-align: left; padding: 12px 14px 4px; cursor: pointer; color: var(--ink); flex: 1; }
.tc-when { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy-2); }
.tc-when.today { color: #c62828; }
.tc-title { font-size: 18px; font-weight: 800; }
.tc-meta { font-size: 14px; color: var(--muted); }
.tc-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 14px 14px; }
.tc-actions .linkbtn { margin-left: auto; }
.teambar label { font-weight: 800; }

/* ---------- Coach dashboard groups ---------- */
.tab-groups { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 8px; padding-bottom: 2px; }
.tab-groups button { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.tab-groups button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-groups .count { background: var(--red); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 6px; }

/* light chips used inside pages */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips .chip, .pe-steps .chip { color: var(--navy); border-color: var(--line); background: #fff; }
.chips .chip.on, .pe-steps .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pe-steps .chip.add { border-style: dashed; }
.chip-group { display: inline-flex; align-items: center; }
.chip-edit { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 6px; font-size: 14px; }
.check-list { max-height: 240px; overflow: auto; padding: 6px 2px; }
.check-list .check { margin-bottom: 6px; }
details { margin: 8px 0; }
details summary { cursor: pointer; padding: 6px 0; }

/* ---------- Plays ---------- */
.court-svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.court-svg .tok { cursor: grab; }
.court-svg .bend { cursor: move; }
.play-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.play-grid .card + .card { margin-top: 0; }
.play-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.play-card.tmpl { cursor: pointer; text-align: left; font: inherit; }
.play-thumb { display: block; border-radius: 10px; overflow: hidden; }
.play-thumb .court-svg { pointer-events: none; }
.pe-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.pe-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pe-court { max-width: 620px; }
.pe-court.card + .card { margin-top: 0; }
.pe-tools { margin-top: 10px; }
.pe-sel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pe-right { position: sticky; top: 130px; }
@media (max-width: 860px) {
  .pe-wrap { grid-template-columns: 1fr; }
  .pe-right { position: static; }
}
.play-viewer .pv-court { max-width: 560px; margin: 0 auto; }
.pv-note { min-height: 22px; margin: 8px 2px; font-weight: 600; color: var(--navy); }
.pv-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pv-controls .pv-step { margin-left: 4px; }
.pv-speed { margin-left: auto; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

/* ---------- Practice ---------- */
.prac-block { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: start; }
.pb-time { font-weight: 800; color: var(--navy); font-size: 14px; display: flex; flex-direction: column; }
.pb-time span { font-weight: 600; color: var(--muted); font-size: 12px; }
.pb-grid { grid-template-columns: 2fr 90px 1.4fr; }
.pb-grid .field { margin-bottom: 6px; }
.pb-move { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) {
  .prac-block { grid-template-columns: 1fr auto; }
  .pb-time { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
  .pb-grid { grid-template-columns: 1fr 80px; }
}
.lib-item { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.run-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.run-title { font-family: "Oswald", Impact, sans-serif; font-size: clamp(30px, 7vw, 54px); text-transform: uppercase; color: var(--navy); margin-top: 18px; line-height: 1.05; }
.run-group { color: var(--muted); font-weight: 600; margin-top: 4px; }
.run-clock { font-family: "Oswald", Impact, sans-serif; font-size: clamp(80px, 26vw, 180px); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 10px; }
.run-clock.warn { color: var(--red); }
.run-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.run-bar span { display: block; height: 100%; background: var(--navy-2); }
.run-next { margin-top: 14px; color: var(--muted); }
.run-wrap .card { text-align: left; margin-top: 10px; }
.btn.big { padding: 14px 26px; font-size: 18px; border-radius: 12px; }
.prac-list { margin: 8px 0 0; padding-left: 20px; }
.prac-list li { margin: 4px 0; }

/* ---------- Rotations ---------- */
.rot-wrap { padding: 8px; }
table.rot { border-collapse: collapse; min-width: 100%; }
table.rot th, table.rot td { text-align: center; padding: 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
table.rot .rot-name { text-align: left; white-space: nowrap; font-weight: 600; }
table.rot .qstart { border-left: 2px solid var(--navy); }
.rot-cell { cursor: pointer; min-width: 34px; height: 36px; color: #fff; user-select: none; }
.rot-cell:hover { background: var(--columbia-2); }
.rot-cell.on { background: var(--navy); }
.rot-goal { width: 54px; padding: 4px; }
.ok-t { color: var(--green); font-weight: 800; }
.warn-t { color: var(--red); font-weight: 800; }
.bad-t { color: var(--red); }

/* ---------- Homework ---------- */
.hw-meter { text-align: center; min-width: 64px; padding: 6px 8px; border-radius: 12px; background: var(--columbia-2); color: var(--navy); }
.hw-meter b { display: block; font-size: 18px; }
.hw-meter span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.hw-meter.full { background: #e3f3e8; color: var(--green); }
.hw-meter.late { background: #fdeceb; color: var(--red); }
.hw-card.done { opacity: 0.75; }
.learn-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.learn-cta .small { flex: 1; min-width: 160px; }

/* ---------- Learn ---------- */
.learn-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 8px; }
.learn-hero h1 { color: #fff; margin-bottom: 6px; }
.learn-hero .kicker { color: var(--columbia); }
.learn-hero p { margin: 0 0 12px; max-width: 640px; }
.learn-progress { height: 8px; background: rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; margin-bottom: 6px; max-width: 420px; }
.learn-progress span { display: block; height: 100%; background: var(--columbia); }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lesson-grid .card + .card { margin-top: 0; }
.lesson-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; border-left: 4px solid var(--columbia); }
.lesson-card.done { border-left-color: var(--green); }
.learn-lesson { max-width: 760px; margin: 0 auto; }
.learn-lesson section h2 { margin-top: 0; font-size: 19px; }
.learn-lesson section p, .learn-lesson section li { font-size: 16px; line-height: 1.55; }
.quiz fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.quiz legend { font-weight: 700; padding: 0 4px; }
.quiz .qa { margin: 6px 0; }
.quiz fieldset.right { border-color: #9fd3b2; background: #f3fbf6; }
.quiz fieldset.wrong { border-color: #f1b9b4; background: #fff6f5; }
.quiz .qa.is-c span { font-weight: 800; color: var(--green); }
.quiz .why { margin-top: 4px; }
.quiz-result { font-size: 18px; margin: 6px 0 10px; }
.quiz-result.good b { color: var(--green); }

/* ---------- Game ---------- */
.game-page { max-width: 560px; margin: 0 auto; }
.game-box { position: relative; margin-top: 10px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #0a1f3d; display: flex; justify-content: center; }
#gameCanvas { display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.game-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 20, 45, .72); padding: 16px; }
.go-card { background: #fff; border-radius: 16px; padding: 20px; text-align: center; max-width: 320px; width: 100%; }
.go-card ul { text-align: left; margin: 10px 0 14px; padding-left: 18px; }
.go-title { font-family: "Oswald", Impact, sans-serif; text-transform: uppercase; font-size: 28px; color: var(--navy); }
.go-score { font-family: "Oswald", Impact, sans-serif; font-size: 72px; line-height: 1; color: var(--navy); }
.small-tabs button { padding: 6px 10px; }
ol.board { list-style: none; margin: 0; padding: 0; }
ol.board li { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
ol.board li.me { background: var(--columbia-2); border-radius: 8px; }
ol.board .rk { width: 26px; text-align: center; font-weight: 800; color: var(--muted); }
ol.board li:nth-child(1) .rk { color: #c59b00; }
ol.board .nm { flex: 1; }

@media print {
  header, .top, .teambar, nav, #bottomnav, footer, #alerts, .no-print { display: none !important; }
  main { padding: 0; }
}
.pv-speed { width: auto !important; }
.lib-item.picked { border-color: var(--green); background: #f3fbf6; }
@media (max-width: 720px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
table.rot td { vertical-align: middle; }
.rot-goal { width: 58px !important; padding: 4px 6px !important; }
.learn-cta { display: grid; grid-template-columns: 1fr auto; }
.learn-cta .small { grid-column: 1 / 2; }
.learn-cta .btn { grid-row: 1 / 3; grid-column: 2; align-self: center; }
@media (max-width: 720px) { .donate-btn { display: none !important; } }
/* grid/flex children must be allowed to shrink so wide content (brackets, tables) scrolls inside its own box */
.grid > *, .form-grid > *, .pe-wrap > *, .card { min-width: 0; }
.tc-star { padding: 7px 12px !important; font-size: 12px !important; }
.team-card:not(.mine) .tc-head { padding-right: 118px; }
table.rot th .small { white-space: nowrap; font-size: 10px; } .rot-cell { min-width: 38px; }
.brand-text span { white-space: nowrap; }
.top-right .btn { white-space: nowrap; }
@media (max-width: 420px) { html[lang="es"] .brand-text span, .brand-text span { font-size: 8.5px; letter-spacing: 1.4px; } }
/* accessibility: contrast + visible keyboard focus */
.teambar label { color: #dcebf6; }
.badge.off { color: #4a4a4a; background: #eeeeee; }
:focus-visible { outline: 3px solid #f5b700; outline-offset: 2px; border-radius: 6px; }
h1:focus, h1:focus-visible { outline: none; }
.chip:focus-visible, .btn:focus-visible { outline: 3px solid #f5b700; outline-offset: 2px; }

/* ---------- Live scores ---------- */
.live-cards { display: grid; gap: 10px; margin-top: 12px; }
.live-card { background: linear-gradient(120deg, #7a0d10, #c62828); color: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.live-card.final { background: linear-gradient(120deg, var(--deep), var(--navy)); }
.lc-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .95; }
.lc-badge { font-weight: 800; letter-spacing: 1.5px; }
.live-card.live .lc-badge { animation: pulse 1.4s ease-in-out infinite; display: inline-block; }
.lc-score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.lc-score div { display: flex; flex-direction: column; }
.lc-score span { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-score b { font-family: "Oswald", Impact, sans-serif; font-size: 44px; line-height: 1; }
.ev-live { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #fdeceb; color: #8c1d18; font-size: 14px; display: inline-block; }
.ev-live.final { background: var(--columbia-2); color: var(--navy); }
.scorer { max-width: 620px; margin: 0 auto; }
.sc-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sc-side { background: var(--navy); color: #fff; border-radius: 16px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.sc-side.them { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.sc-side span { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-side b { font-family: "Oswald", Impact, sans-serif; font-size: clamp(56px, 16vw, 96px); line-height: 1; font-variant-numeric: tabular-nums; }
.sc-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-btns .btn.big { padding: 14px 0; font-size: 20px; }
.sc-side:not(.them) .btn.big { background: #fff; color: var(--navy); border-color: #fff; }
.sc-periods { justify-content: center; margin-top: 12px; }

/* ---------- Coach admin ---------- */
.rank-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rank-row:first-of-type { border-top: 0; }
.rank-row .rk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--columbia-2); color: var(--navy); }
.rank-row.rank-lo .rk { background: #fdeceb; color: var(--red); }
.rank-row .nm { font-weight: 700; flex: 1; min-width: 120px; }
.rank-row b { font-family: "Oswald", Impact, sans-serif; font-size: 20px; color: var(--navy); }
table.sortable .linkbtn.on { font-weight: 800; color: var(--navy); }
tr.muted td { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; background: #f3f6fa; border-radius: 4px; }
.bar span { display: block; width: 100%; background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-radius: 4px; min-height: 2px; }
.level-row { grid-template-columns: 70px 1fr 1fr; align-items: start; }

/* ---------- consent, scoring CTA ---------- */
.photo-ask { background: var(--columbia-2); border-radius: 12px; padding: 12px; margin: 8px 0 12px; }
.photo-ask details summary { margin-top: 6px; }
.photo-ask-card, .score-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; border-left: 4px solid var(--columbia); }
.score-cta { border-left-color: #c62828; }

/* ---------- sponsors ---------- */
.sp-banner { margin-top: 14px; }
.sp-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); animation: rise .4s ease both; }
.sp-kicker { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; width: 100%; }
.sp-logo img { max-height: 54px; max-width: 220px; object-fit: contain; display: block; }
.sp-logo b { font-size: 18px; color: var(--navy); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sp-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; min-height: 96px; text-decoration: none; color: var(--ink); text-align: center; }
.sp-card.gold { border: 2px solid #c59b00; grid-column: span 2; }
.sp-card .sp-logo img { max-height: 60px; max-width: 100%; }

/* ---------- game night ---------- */
.night { max-width: 760px; margin: 0 auto; }
.night-hero { background: linear-gradient(135deg, var(--deep), var(--navy) 60%, var(--navy-2)); color: #fff; border-radius: 18px; padding: 22px; }
.night-hero h1 { color: #fff; margin: 4px 0; font-size: 36px; }
.night-hero .kicker { color: var(--columbia); }
.night-game { margin-top: 12px; }
.night-score { text-align: right; }
.night-score .lc-badge { display: block; font-size: 11px; color: #c62828; }
.night-score.final .lc-badge { color: var(--navy); }
.night-score b { font-family: "Oswald", Impact, sans-serif; font-size: 40px; color: var(--navy); line-height: 1; }
.night-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-top: 12px; }
.night-roster div { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; background: #f3f6fa; border-radius: 8px; }
.night-roster b { font-family: "Oswald", Impact, sans-serif; font-size: 20px; color: var(--navy); min-width: 26px; }
.night-roster em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
.night-cta { display: grid; gap: 8px; margin-top: 14px; }
.night-cta .btn { text-align: center; }
.night-cta .btn.light { background: var(--navy); color: #fff; border-color: var(--navy); }
.senior { display: flex; gap: 14px; align-items: flex-start; }
.sr-num { font-family: "Oswald", Impact, sans-serif; font-size: 44px; color: var(--navy); min-width: 56px; text-align: center; line-height: 1; }
.qr-mini svg { width: 140px; height: 140px; margin-top: 8px; }
.scout-row { grid-template-columns: 60px 1fr 2fr; }
.honor-row { grid-template-columns: 90px 1fr 1.4fr 120px; }
.scout-row .field, .honor-row .field { margin-bottom: 6px; }
.rtp-row { gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .honor-row { grid-template-columns: 1fr 1fr; } .scout-row { grid-template-columns: 50px 1fr; } .scout-row .field:last-child { grid-column: 1 / -1; } .sp-card.gold { grid-column: auto; } }
.nav-more { color: #dbe7f6; background: none; border: 0; padding: 7px 12px; border-radius: 999px; white-space: nowrap; font-size: 14px; font-weight: 600; cursor: pointer; }
.nav-more.on { background: var(--columbia); color: var(--navy); }
/* send the score */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rep-step { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rep-step .btn.big { padding: 10px 0; font-size: 26px; line-height: 1; min-height: 52px; }
.scorer input.rep-num { width: 100%; height: auto; min-width: 0; text-align: center; font-family: "Oswald", Impact, sans-serif; font-size: clamp(40px, 12vw, 64px); font-weight: 700; padding: 4px 0; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--navy); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.rep-num::-webkit-outer-spin-button, .rep-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-side:not(.them) .rep-num { border-color: #fff; }
.live-card.reported { background: linear-gradient(120deg, #3d4a5c, #5b6b80); }
.night-score.reported .lc-badge, .ev-live.reported .lc-badge { color: #8a6d00; }
.ev-live.reported { background: #fff6d6; color: #5c4a00; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.career-link { display: inline-block; margin-top: 6px; font-weight: 600; }
/* ===== scoreboard remote ===== */
.remote { --led: #ff3b30; --amber: #ffb020; --panel: #0d1117; background: radial-gradient(120% 80% at 50% 0%, #1b2330, var(--panel) 70%); color: #e8edf3; border-radius: 22px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06); max-width: 1100px; margin: 0 auto; }
.remote a, .remote .linkbtn { color: #cfe0ff; }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.rm-title { font-family: "Oswald", Impact, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #9fb0c3; font-size: 13px; }
.rm-back { text-decoration: none; font-weight: 600; }
.rm-link { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: #8a97a6; }
.rm-link.on { color: #4ade80; }
.rm-display { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: #050608; border: 3px solid #222a35; border-radius: 16px; padding: 12px 10px; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9); }
.rm-display.off .seg polygon { fill: #241010; }
.rm-team { text-align: center; min-width: 0; }
.rm-name { font-family: "Oswald", Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(12px, 3.2vw, 18px); color: #f2f2f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-digits { display: flex; justify-content: center; gap: 4px; margin: 6px 0; }
.seg { width: clamp(34px, 11vw, 84px); height: auto; }
.seg polygon { fill: #2a0b0b; transition: fill 0.12s; }
.seg polygon.on { fill: var(--led); filter: drop-shadow(0 0 4px rgba(255, 59, 48, 0.85)); }
.rm-mid .seg polygon.on, .amber .seg polygon.on { fill: var(--amber); }
.rm-sub { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa5b1; }
.rm-sub b.amber, .amber { color: var(--amber); text-shadow: 0 0 6px rgba(255, 176, 32, 0.6); font-family: "Oswald", Impact, sans-serif; font-size: 15px; }
.rm-bonus { color: #111; background: var(--amber); border-radius: 4px; padding: 0 5px; font-weight: 800; box-shadow: 0 0 8px rgba(255, 176, 32, 0.7); }
.rm-mid { text-align: center; }
.rm-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #8a97a6; }
.rm-period { font-family: "Oswald", Impact, sans-serif; font-size: clamp(22px, 6vw, 40px); color: var(--amber); text-shadow: 0 0 10px rgba(255, 176, 32, 0.7); min-width: 2.4em; }
.rm-poss { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 4px; color: #3a2a10; font-size: 18px; }
.rm-poss .on { color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 32, 0.9); }
.rm-pads { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "us them" "center center"; gap: 10px; margin-top: 12px; }
.rm-pad.us { grid-area: us; } .rm-pad.them { grid-area: them; } .rm-center { grid-area: center; }
@media (min-width: 820px) { .rm-pads { grid-template-columns: 1fr 0.8fr 1fr; grid-template-areas: "us center them"; } }
.rm-pad, .rm-center { background: linear-gradient(#1a212b, #121820); border: 1px solid #263040; border-radius: 16px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.rm-pad-h { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #9fb0c3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-keys { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.rm-key { -webkit-appearance: none; appearance: none; border: 0; border-radius: 12px; min-height: 48px; padding: 8px 6px; font: 700 15px/1.1 "Oswald", Impact, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #f4f6f8; background: linear-gradient(#3a4556, #273040); box-shadow: 0 4px 0 #0b0f15, 0 6px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15); cursor: pointer; touch-action: manipulation; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.rm-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0f15, 0 2px 4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.rm-key:disabled { opacity: 0.4; }
.rm-key.big { min-height: 66px; font-size: 26px; background: linear-gradient(#d8342b, #a8201a); box-shadow: 0 4px 0 #5c0f0b, 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.rm-pad.them .rm-key.big { background: linear-gradient(#3b6fd6, #2a52a6); box-shadow: 0 4px 0 #142b5c, 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.rm-key.amber { background: linear-gradient(#e09a12, #b07508); color: #161006; box-shadow: 0 4px 0 #4f3404, 0 6px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.rm-key.dim { background: linear-gradient(#2a3340, #1d242e); color: #c4ccd6; }
.rm-final { width: 100%; background: linear-gradient(#f2f2f2, #c9ced6); color: #111; box-shadow: 0 4px 0 #6b7280, 0 6px 10px rgba(0, 0, 0, 0.45); }
.rm-power { min-height: 60px; font-size: 20px; padding: 0 26px; background: linear-gradient(#22c55e, #15803d); box-shadow: 0 4px 0 #0b3d1d, 0 6px 12px rgba(0, 0, 0, 0.5); }
.rm-start { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 16px 8px; }
.rm-start .check { color: #e8edf3; }
.rm-foot { text-align: center; font-size: 12px; color: #9aa5b1; margin-top: 10px; }
.remote :focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
.lc-extra { opacity: 0.85; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .seg polygon { transition: none; } }
.ai-note { background: #eef4ff; color: #0b2a55; border-bottom: 1px solid #cfdcf5; padding: 8px 14px; font-size: 13px; text-align: center; }
.ai-note .linkbtn { font-size: 13px; margin-left: 4px; min-height: 32px; padding: 4px 8px; }
.notif-set { border: 0; padding: 0; margin: 0 0 10px; }
.notif-set legend { margin-bottom: 4px; }
.school-links { margin-top: 14px; }
.act-table td { vertical-align: top; }
.act-blocked td { background: #fff1f0; }
/* messages */
.msg-list { padding: 4px 0; }
.msg-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.msg-row:last-child { border-bottom: 0; }
.msg-row:hover { background: #f5f8fc; }
.msg-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; }
.msg-row.unread .msg-dot { background: #1d6fd8; }
.msg-row.unread b { font-weight: 800; }
.msg-main { display: grid; gap: 2px; min-width: 0; }
.msg-snip { color: #4a5868; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread { display: grid; gap: 10px; margin: 14px 0; }
.msg { max-width: 82%; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.msg.mine { justify-self: end; background: #e8f1ff; border-color: #c9dcf7; border-radius: 14px 14px 4px 14px; }
.msg-meta { font-size: 12px; color: #5b6878; margin-bottom: 4px; }
.msg-body { white-space: normal; overflow-wrap: anywhere; }
/* ===== photos ===== */
:root { --stock-hero: url('/img/dhs-campus.webp'); }
@media (max-width: 720px) { :root { --stock-hero: url('/img/dhs-campus-sm.webp'); } }
.page-banner { position: relative; border-radius: 18px; overflow: hidden; margin: 0 0 16px; padding: 56px 20px 16px; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(180deg, rgba(0, 23, 46, 0) 0%, rgba(0, 23, 46, 0.1) 40%, rgba(0, 23, 46, 0.82) 100%), linear-gradient(90deg, rgba(0, 23, 46, 0.45), rgba(0, 23, 46, 0) 65%), var(--bn-sm) center/cover no-repeat #0b2a4a; box-shadow: 0 8px 24px rgba(0, 23, 46, 0.18); }
@media (min-width: 721px) { .page-banner { min-height: 190px; padding: 80px 28px 20px; background-image: linear-gradient(180deg, rgba(0, 23, 46, 0) 0%, rgba(0, 23, 46, 0.08) 45%, rgba(0, 23, 46, 0.8) 100%), linear-gradient(90deg, rgba(0, 23, 46, 0.55), rgba(0, 23, 46, 0) 60%), var(--bn); background-position: center 35%; } }
.page-banner h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.6); }
.page-banner p, .page-banner .muted, .page-banner .small { color: #e6eef7; }
.page-banner .spread, .page-banner > div { margin: 0; }
.page-banner .btn.ghost { background: rgba(255, 255, 255, 0.92); color: var(--navy); border-color: transparent; }
.page-banner a:not(.btn) { color: #fff; }
.learn-hero.photo, .night-hero.photo { background: linear-gradient(180deg, rgba(0, 23, 46, 0.35), rgba(0, 23, 46, 0.92)), var(--bn-sm) center/cover no-repeat #0b2a4a; color: #fff; }
@media (min-width: 721px) { .learn-hero.photo, .night-hero.photo { background-image: linear-gradient(90deg, rgba(0, 23, 46, 0.92) 0%, rgba(0, 23, 46, 0.6) 50%, rgba(0, 23, 46, 0.05) 100%), var(--bn); } }
.learn-hero.photo h1, .learn-hero.photo p, .learn-hero.photo .small, .learn-hero.photo .kicker { color: #fff; }
.track-head { margin: 22px 0 10px; border-radius: 14px; padding: 40px 16px 12px; color: #fff; background: linear-gradient(180deg, rgba(0, 23, 46, 0), rgba(0, 23, 46, 0.85)), linear-gradient(90deg, rgba(0, 23, 46, 0.5), rgba(0, 23, 46, 0) 70%), var(--bn) center 40%/cover no-repeat #0b2a4a; }
.track-head h2 { color: #fff; margin: 0 0 2px; }
.track-head p { margin: 0; color: #e6eef7; }
.auth-wrap { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .auth-wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.auth-photo { border-radius: 18px; min-height: 160px; display: flex; align-items: flex-end; padding: 18px; color: #fff; background: linear-gradient(180deg, rgba(0, 23, 46, 0.1), rgba(0, 23, 46, 0.9)), var(--auth-img) center/cover no-repeat #0b2a4a; box-shadow: 0 8px 24px rgba(0, 23, 46, 0.18); }
@media (min-width: 860px) { .auth-photo { min-height: 520px; position: sticky; top: 90px; } }
.auth-photo b { display: block; font-family: "Oswald", Impact, sans-serif; font-size: 30px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.auth-photo span { color: #cfe0f2; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.auth-photo .kicker { color: #9bc4e2; }
.auth-form { max-width: 480px; width: 100%; margin: 0 auto; }

/* Knights logo on the photo banners */
.page-banner::after, .auth-photo::after, .learn-hero.photo::after { content: ""; position: absolute; right: 14px; top: 12px; width: 64px; height: 64px; background: url('/logo-96.webp') center/contain no-repeat; opacity: 0.9; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); pointer-events: none; }
.auth-photo, .learn-hero.photo { position: relative; }
@media (min-width: 721px) { .page-banner::after { width: 84px; height: 84px; right: 20px; top: 16px; } }
.page-banner.own { background-position: center 30%; }
.page-banner .spread .row { position: relative; z-index: 1; }
.page-photo-row { display: grid; grid-template-columns: 64px 1fr; gap: 6px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.page-photo-row:first-of-type { border-top: 0; }
.page-photo-row .pp-thumb { width: 64px; height: 42px; border-radius: 8px; background: center/cover no-repeat #0b2a4a; grid-row: span 2; }
.page-photo-row input[type=file] { min-width: 0; max-width: 100%; }
.page-photo-row > :nth-child(n+4) { grid-column: 2; justify-self: start; }
@media (min-width: 721px) { .page-photo-row { grid-template-columns: 64px 140px 1fr auto auto; } .page-photo-row .pp-thumb { grid-row: auto; } .page-photo-row > :nth-child(n+4) { grid-column: auto; } }

/* the campus panorama: keep the KNIGHTS building in view */
.home-hero.has-photo { background-position: center, 72% 40% !important; }
.auth-photo { background-position: center, 30% center; }
