/* Maryland basketball pages, built on the site's /styles.css tokens
   (--bg-card, --text-primary, --border ...) and matched to
   maryland-gamecenter.html. Everything is scoped under .terps. */

.terps {
  --terps-red: #E03A3E;
  --t-cond: 'Barlow Condensed', sans-serif;
  padding-top: 24px;
  padding-bottom: 80px;
  font-variant-numeric: tabular-nums;
}
.terps a { color: var(--text-primary); text-decoration: none; }
.terps a:hover { color: var(--terps-red); }
.terps a:focus-visible, .terps summary:focus-visible { outline: 2px solid var(--terps-red); outline-offset: 2px; }
:where(.terps) nav { display: block; gap: normal; align-items: normal; }   /* undo the site's header-only nav rules */
:where(.terps) header { position: static; border: 0; background: none; backdrop-filter: none; z-index: auto; }  /* the site's header rule is for the masthead */
:where(.terps) nav a { display: inline; min-height: 0; padding: 0; font-size: inherit; letter-spacing: inherit; text-transform: none; font-weight: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Headings: same treatment as the Maryland hub */
.terps h1 { font-family: var(--t-cond); font-size: 40px; font-weight: 900; text-transform: uppercase; color: var(--text-primary); line-height: 1.05; margin-bottom: 4px; }
.terps h2 {
  font-family: var(--t-cond); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-primary); border-bottom: 2px solid var(--terps-red); padding-bottom: 8px; margin: 36px 0 16px;
}
.terps h3 { font-family: var(--t-cond); font-size: 18px; font-weight: 900; text-transform: uppercase; color: var(--text-primary); display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; }
.terps .t-eyebrow { color: var(--terps-red); margin-bottom: 8px; }
.terps .t-eyebrow::before { background: var(--terps-red); }
.t-head { margin-bottom: 20px; }
.t-dek { font-size: 15px; color: var(--text-secondary); line-height: 1.6; max-width: 72ch; }
.t-crumbs a { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.t-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-family: var(--t-cond); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.t-crumbs a { color: var(--text-muted); }
.t-crumbs li + li::before { content: '/'; margin-right: 6px; }
.t-section { margin-top: 8px; }
.t-empty { font-family: var(--t-cond); font-size: 14px; color: var(--text-muted); padding: 20px; background: var(--bg-card); }
.t-updated { margin-top: 40px; font-family: var(--t-cond); font-size: 11px; color: var(--text-muted); }
.t-rank { font-size: 0.75em; color: var(--text-muted); margin-right: 4px; font-weight: 700; }
.t-logo-ph { display: inline-block; border-radius: 50%; background: var(--bg-card2); }

/* Tables: same as .stats-table / .sched-table */
.terps table { width: 100%; border-collapse: collapse; font-family: var(--t-cond); }
.terps th, .terps td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.terps thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.terps tbody td { font-size: 15px; color: var(--text-secondary); }
.terps tbody th, .terps tfoot th, .terps thead th:first-child { text-align: left; }
.terps tbody th { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.terps tfoot th, .terps tfoot td { font-size: 15px; font-weight: 700; color: var(--text-primary); border-top: 1px solid var(--border-med); }
.terps abbr[title] { text-decoration: none; }
.t-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.t-scroll th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }

/* Section nav */
.t-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.t-subnav a {
  display: inline-block;
  font-family: var(--t-cond); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); border: 1px solid var(--border-med); padding: 7px 14px;
}
.t-subnav a[aria-current="page"], .t-subnav a:hover { background: var(--terps-red); border-color: var(--terps-red); color: #fff; }
.t-subnav .t-subnav-alt { margin-left: auto; border-color: transparent; color: var(--text-muted); }

/* Scoreboard: mirrors .scoreboard on maryland-gamecenter.html */
.t-board {
  background: var(--bg-card); border-left: 4px solid var(--terps-red); padding: 24px; margin-bottom: 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; min-height: 128px;
}
.t-team { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.t-team[data-side="home"] { direction: rtl; }
.t-team[data-side="home"] > * { direction: ltr; }
.t-team img { width: 56px; height: 56px; object-fit: contain; }
.t-team-id { display: flex; flex-direction: column; }
.t-team[data-side="home"] .t-team-id { text-align: right; }
.t-team-name { font-family: var(--t-cond); font-size: 22px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.t-team-rec { font-family: var(--t-cond); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 4px; }
.t-score { font-family: var(--t-cond); font-size: 52px; font-weight: 900; color: var(--text-primary); line-height: 1; min-width: 2ch; text-align: center; }
.t-board[data-state="post"] .t-team.is-winner .t-score { color: var(--terps-red); }
.t-board[data-state="post"] .t-team:not(.is-winner) .t-score, .t-board[data-state="post"] .t-team:not(.is-winner) .t-team-name { color: var(--text-secondary); }
.t-status { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 120px; }
.t-status-main { font-family: var(--t-cond); font-size: 22px; font-weight: 900; color: var(--text-primary); }
.t-status-sub { font-family: var(--t-cond); font-size: 13px; color: var(--text-muted); }
.t-live { display: inline-flex; align-items: center; font-family: var(--t-cond); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terps-red); }
.t-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--terps-red); margin-right: 6px; animation: t-pulse 1.5s infinite; }
@keyframes t-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .t-live::before { animation: none; } }
@media (max-width: 600px) {
  .t-board { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .t-status { order: -1; flex-direction: row; justify-content: flex-start; min-width: 0; gap: 10px; }
  .t-team, .t-team[data-side="home"] { direction: ltr; }
  .t-team[data-side="home"] .t-team-id { text-align: left; }
  .t-team img { width: 40px; height: 40px; }
  .t-score { font-size: 40px; }
}

/* GameCenter body */
.t-line { max-width: 520px; }
.t-line .t-tot { font-weight: 700; color: var(--text-primary); }
.g-kicker { font-family: var(--t-cond); font-size: 13px; color: var(--text-muted); }
.g-summary p { font-size: 16px; line-height: var(--lh-body, 1.7); color: var(--text-secondary); max-width: 72ch; margin: 16px 0; }
.g-articles { list-style: none; margin: 0 0 16px; }
.g-articles a { font-family: var(--t-cond); font-size: 17px; font-weight: 700; display: block; padding: 10px 14px; background: var(--bg-card); border-left: 3px solid var(--terps-red); margin-bottom: 6px; }
.g-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 20px; overflow-x: auto; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.g-jump a { display: inline-block; font-family: var(--t-cond); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.g-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 24px; margin-bottom: 16px; }
.g-info dt { font-family: var(--t-cond); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.g-info dd { font-family: var(--t-cond); font-size: 16px; font-weight: 700; color: var(--text-primary); }

.t-teamstats { max-width: 520px; }
.t-teamstats tbody th { text-align: center !important; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.t-teamstats td { font-weight: 700; color: var(--text-primary) !important; }
.t-teamstats td:first-child { text-align: left; }
.t-teamstats thead th:last-child { text-align: right !important; }

.t-box h3 img { width: 24px; height: 24px; }
.t-pl { margin-right: 6px; }
.t-pl a { font-weight: 700; }
.t-pl-meta { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.t-sub th { font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted) !important; padding-top: 14px; }
.t-dnp td { text-align: left; font-size: 13px !important; color: var(--text-muted); font-style: italic; }

/* Play-by-play: mirrors .play-item */
.t-plays-key { font-family: var(--t-cond); font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.t-plays { list-style: none; }
.t-plays li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-family: var(--t-cond); font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.t-plays li b { font-size: 11px; letter-spacing: 0.08em; color: var(--terps-red); }
.t-plays li.is-scoring { color: var(--text-primary); }
.t-plays li.is-scoring .t-run { color: var(--terps-red); font-weight: 700; }
.t-clock, .t-run { color: var(--text-muted); }
.t-period { border-bottom: 1px solid var(--border); }
.t-period summary { cursor: pointer; padding: 12px 0; font-family: var(--t-cond); font-size: 15px; font-weight: 900; text-transform: uppercase; color: var(--text-primary); }
.t-period summary span { font-size: 12px; font-weight: 500; text-transform: none; color: var(--text-muted); margin-left: 8px; }

/* Schedule: mirrors .sched-table on the Maryland hub */
.s-legend { font-family: var(--t-cond); font-size: 12px; color: var(--text-muted); }
.s-month h2 { margin-top: 28px; }
.s-table { table-layout: fixed; }
.s-table th:nth-child(1) { width: 120px; } .s-table th:nth-child(3) { width: 150px; } .s-table th:nth-child(4) { width: 90px; }
.s-table thead tr { border-bottom: 2px solid var(--terps-red); }
.s-table td, .s-table th { text-align: left; white-space: normal; }
.s-table tr.is-home td:first-child { box-shadow: inset 3px 0 0 var(--terps-red); padding-left: 10px; }
.s-date { font-size: 13px !important; color: var(--text-muted) !important; white-space: nowrap !important; }
.s-opp-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s-opp img { width: 26px; height: 26px; object-fit: contain; }
.s-opp a { font-weight: 700; font-size: 16px; }
.s-loc { color: var(--text-muted); width: 22px; font-size: 13px; }
.s-tags { flex-basis: 100%; padding-left: 64px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terps-red); }
.s-result { white-space: nowrap !important; font-weight: 700; color: var(--text-primary) !important; }
.s-res { margin-right: 4px; }
.s-w { color: #4caf50; }
.s-l { color: #e05252; }
.s-ot, .s-det { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.s-tv { font-size: 13px !important; color: var(--text-muted) !important; }
@media (max-width: 560px) {
  .s-table { table-layout: auto; }
  .s-table thead { display: none; }
  .s-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--border); }
  .s-table tr.is-home { box-shadow: inset 3px 0 0 var(--terps-red); }
  .s-table tr.is-home td:first-child { box-shadow: none; padding-left: 0; }
  .s-table td { border: 0; padding: 2px 0; }
  .s-date { grid-column: 1; }
  .s-tv { grid-column: 2; grid-row: 1; text-align: right !important; }
  .s-opp { grid-column: 1; }
  .s-result { grid-column: 2; grid-row: 2; text-align: right !important; }
  .s-tags { padding-left: 0; }
}

/* Roster, stats, players */
.r-table td, .r-table th { text-align: left; }
.r-num { font-size: 20px !important; font-weight: 900; color: var(--text-primary) !important; width: 52px; }
.r-name { display: flex; align-items: center; gap: 10px; }
.r-name img { width: 40px; height: 29px; object-fit: cover; background: var(--bg-card2); }
.r-ppg { text-align: right !important; font-weight: 700; color: var(--text-primary) !important; }
.r-coaches { font-family: var(--t-cond); font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.st-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.st-lead { display: grid; background: var(--bg-card); border-left: 3px solid var(--terps-red); padding: 14px 16px; }
.st-lead-v { font-family: var(--t-cond); font-size: 40px; font-weight: 900; line-height: 1; color: var(--text-primary); }
.st-lead-l { font-family: var(--t-cond); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 4px 0; }
.st-lead a { font-family: var(--t-cond); font-size: 16px; font-weight: 700; }
.st-table .st-key { font-weight: 700; color: var(--text-primary); }
.pl-shot { width: 200px; height: auto; margin-bottom: 14px; background: var(--bg-card2); }

/* Hub */
.h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.h-prog h2 { margin-top: 0; }
.h-rec { font-family: var(--t-cond); font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.h-games { display: grid; gap: 8px; }
.h-game { display: grid; padding: 14px 16px; background: var(--bg-card); border-left: 3px solid var(--terps-red); }
.h-game-label { font-family: var(--t-cond); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terps-red); margin-bottom: 4px; }
.h-game-opp { font-family: var(--t-cond); font-size: 20px; font-weight: 900; text-transform: uppercase; color: var(--text-primary); }
.h-game-meta { font-family: var(--t-cond); font-size: 14px; color: var(--text-secondary); }
.h-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.h-links a { font-family: var(--t-cond); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terps-red); border: 1px solid var(--terps-red); padding: 6px 14px; }
.h-links a:hover { background: var(--terps-red); color: var(--bg-card); }
.h-about p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 72ch; margin-bottom: 12px; }
.h-about strong { color: var(--text-primary); }
