/* =====================================================================
   GLaxFive 2026 Design System
   Shared styles for the redesigned front page and any pages migrated
   to match it. Extracted from index_cards.php.
   ===================================================================== */

   :root{
    --paper:#FFFFFF;
    --paper-soft:#F5F7FC;
    --ink-bg:#14382F;
    --ink:#16223F;
    --cobalt:#2F5FD1;
    --cobalt-deep:#1F3E8C;
    --teal:#0EA5A0;
    --coral:#FF5D3B;
    --gold:#D6A424;
    --line:#E7EBF3;
    --slate:#66738C;
    --radius:14px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{background:var(--paper-soft); font-family:'Inter',sans-serif; color:var(--ink); -webkit-font-smoothing:antialiased;}
  a{color:inherit; text-decoration:none;}
  .serif{font-family:'Fraunces',serif;}
  .mono{font-family:'JetBrains Mono',monospace;}
  .wrap{max-width:1240px; margin:0 auto; padding:0 24px;}
  .wrap-narrow{max-width:820px;}
  
  /* ---------- NAV ---------- */
  header{background:var(--paper); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;}
  .navbar{display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:1240px; margin:0 auto;}
  .logo{display:flex; align-items:center; gap:10px;}
  nav.links{display:flex; flex-wrap:wrap; gap:6px; font-size:14px; font-weight:600;}
  nav.links > .nav-item{position:relative;}
  nav.links > .nav-item > a{display:block; padding:10px 14px; border-radius:8px; color:var(--ink);}
  nav.links > .nav-item:hover > a{background:var(--paper-soft); color:var(--cobalt);}
  .mega{
    display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--line);
    border-radius:10px; box-shadow:0 12px 28px rgba(22,34,63,.12); padding:10px; min-width:200px; z-index:60;
  }
  .nav-item:hover .mega{display:block;}
  .mega a{display:block; padding:8px 12px; border-radius:6px; font-size:13.5px; font-weight:500; color:var(--slate);}
  .mega a:hover{background:var(--paper-soft); color:var(--cobalt);}
  .nav-search{display:flex; align-items:center; gap:10px;}
  .search-pill{background:var(--paper-soft); border:1px solid var(--line); border-radius:20px; padding:8px 16px; font-size:13px; color:var(--slate);}
  input.search-pill{width:200px; color:var(--ink);}
  input.search-pill::placeholder{color:var(--slate);}
  .menu-btn{display:none; background:none; border:none; font-size:22px; cursor:pointer; color:var(--ink);}
  
  /* ---------- TICKER ---------- */
  .ticker-bar{background:var(--ink-bg); color:#fff; padding:9px 0;}
  .ticker-inner{max-width:1240px; margin:0 auto; padding:0 24px; display:flex; align-items:center; gap:14px; font-size:13px;}
  .ticker-tag{background:var(--coral); font-family:'Fraunces',serif; font-weight:700; font-size:11px; padding:3px 10px; border-radius:5px; flex-shrink:0;}
  .ticker-inner ul{list-style:none; display:flex; gap:36px; overflow:hidden;}
  .ticker-inner li{color:#C9D3EA; white-space:nowrap;}
  
  main{padding:36px 0 60px;}
  
  .section-head{display:flex; align-items:baseline; justify-content:space-between; margin:44px 0 18px;}
  .section-head:first-child{margin-top:0;}
  .section-head h2{font-family:'Fraunces',serif; font-size:24px; font-weight:600; color:var(--ink);}
  .section-head a{font-size:13px; font-weight:700; color:var(--cobalt);}
  .eyebrow{font-size:11.5px; font-weight:700; color:var(--coral); text-transform:uppercase; letter-spacing:.1em; margin-bottom:8px;}
  
  /* ---------- HERO / FEATURED ---------- */
  .hero{display:grid; grid-template-columns:1.15fr 1fr; gap:0; background:var(--paper); border-radius:var(--radius);
    overflow:hidden; box-shadow:0 4px 24px rgba(22,34,63,.06); border:1px solid var(--line);}
  .hero-media{background:linear-gradient(135deg,var(--cobalt) 0%, var(--cobalt-deep) 60%, var(--ink-bg) 100%);
    min-height:340px; position:relative; display:flex; align-items:flex-end; padding:26px;}
  .hero-media .champ{background:var(--gold); color:#3A2900; font-family:'Fraunces',serif; font-weight:700; font-size:12px; padding:7px 14px; border-radius:6px;}
  .hero-body{padding:36px; display:flex; flex-direction:column; justify-content:center;}
  .hero-body h1{font-family:'Fraunces',serif; font-size:34px; font-weight:700; line-height:1.12; color:var(--ink); margin-bottom:14px;}
  .hero-body p{color:var(--slate); font-size:15px; line-height:1.6; margin-bottom:16px;}
  .hero-meta{font-size:12px; color:var(--slate); display:flex; gap:12px; align-items:center;}
  .hero-meta .live{color:var(--coral); font-weight:700;}
  
  /* ---------- GAMES TODAY (card grid) ---------- */
  .games-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
  .game-card{background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px; transition:.15s; display:block;}
  .game-card:hover{border-color:var(--cobalt); box-shadow:0 8px 20px rgba(47,95,209,.1);}
  .game-card .status-row{display:flex; justify-content:space-between; font-size:10.5px; color:var(--slate); text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px;}
  .game-card .status-row .unofficial{color:var(--gold);}
  .g-team{display:flex; align-items:center; gap:8px; padding:4px 0;}
  .g-team .logo{width:26px; height:26px; border-radius:50%; background:var(--paper-soft); flex-shrink:0; overflow:hidden;}
  .g-team .logo img{width:100%; height:100%; object-fit:cover; border-radius:50%;}
  .g-team .name{font-size:13px; flex:1;}
  .g-team.win .name{font-weight:800; color:var(--ink);}
  .g-team.lose .name{color:var(--slate);}
  .g-team .pts{font-family:'JetBrains Mono',monospace; font-weight:700; font-size:14px;}
  .g-team.win .pts{color:var(--cobalt);}
  .g-team.lose .pts{color:var(--slate);}
  .g-pending{font-size:13px; color:var(--ink); padding:6px 0;}
  .g-pending .when{display:block; font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--teal); margin-top:4px; font-weight:700;}
  .score-legend{grid-column:1/-1; text-align:center; font-size:11px; color:var(--slate); margin-top:4px;}
  .announce-banner{grid-column:1/-1; background:#FFF1EC; border:1px solid #FFD3C2; color:var(--coral); border-radius:10px; padding:12px 16px; font-size:13px; margin-bottom:6px;}
  
  /* ---------- ADVERTISING ROW (all ad slots, single row) ---------- */
  .ad-row{display:flex; gap:16px; margin:36px 0; flex-wrap:wrap;}
  .ad-slot{flex:1 1 260px; min-width:0; background:var(--paper); border:1px dashed var(--line); border-radius:10px;
    padding:16px; text-align:center; font-size:11px; color:var(--slate); min-height:90px;
    display:flex; align-items:center; justify-content:center; overflow:hidden;}
  .ad-slot img, .ad-slot iframe, .ad-slot ins, .ad-slot > *{max-width:100%;}
  
  /* ---------- STORY GRID ---------- */
  .story-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
  .story-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:.15s;}
  .story-card:hover{transform:translateY(-3px); box-shadow:0 12px 26px rgba(22,34,63,.1);}
  .story-media{height:150px; background:linear-gradient(135deg,var(--teal),var(--cobalt)); background-size:cover; background-position:center; position:relative;}
  .story-media .tag{position:absolute; top:10px; left:10px; background:#fff; color:var(--ink); font-size:10px; font-weight:700; padding:5px 10px; border-radius:6px;}
  .story-text{padding:18px; flex:1; display:flex; flex-direction:column; justify-content:flex-start; align-items:stretch;}
  .story-meta{font-size:10.5px; color:var(--slate); font-family:'JetBrains Mono',monospace; margin-bottom:8px;}
  .story-text h3{font-family:'Fraunces',serif; font-size:17px; font-weight:600; line-height:1.3; margin-bottom:8px; color:var(--ink);}
  .story-text p{font-size:13px; color:var(--slate); line-height:1.55; margin-bottom:14px;}
  .story-text .story-continue{margin-top:auto;}
  .story-continue{font-size:12px; font-weight:700; color:var(--cobalt);}
  
  /* ---------- TRENDING STRIP ---------- */
  .trend-row{display:flex; gap:12px; overflow-x:auto; padding-bottom:4px;}
  .trend-chip{flex:0 0 auto; background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:12px 16px; min-width:220px;}
  .trend-chip .rank{font-family:'Fraunces',serif; font-weight:700; color:var(--teal); font-size:13px; margin-bottom:4px;}
  .trend-chip a{font-size:13px; font-weight:600; color:var(--ink); line-height:1.35; display:block;}
  
  /* ---------- GALLERY STRIP ---------- */
  .gallery-strip{display:grid; grid-template-columns:repeat(2,1fr); gap:16px;}
  .gallery-card{position:relative; border-radius:12px; overflow:hidden; height:190px; background:linear-gradient(135deg,#B9D3F5,#6D93E0); background-size:cover; background-position:center;}
  .gallery-card .cap{position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top, rgba(22,34,63,.85), transparent);
    color:#fff; padding:16px; font-weight:700; font-size:14px;}
  
  /* ---------- DATE STRIP ---------- */
  .date-strip{display:flex; gap:10px; overflow-x:auto; padding-bottom:4px;}
  .date-pill{flex:0 0 auto; background:var(--ink-bg); color:#fff; font-family:'JetBrains Mono',monospace; font-size:12px;
    font-weight:700; padding:10px 16px; border-radius:8px;}
  .date-pill:hover{background:var(--cobalt);}
  
  /* ---------- FOOTER ---------- */
  #footer{background:var(--ink-bg); color:#B7C1DB; margin-top:20px;}
  #footer .container{max-width:1240px; margin:0 auto; padding:0 24px;}
  
  #footer .footer-menu{border-bottom:1px solid rgba(255,255,255,.12);}
  #footer .footer-menu ul{list-style:none; display:flex; flex-wrap:wrap; gap:4px; padding:14px 0;}
  #footer .footer-menu li a{display:block; padding:8px 14px; font-size:13px; font-weight:600; color:#DCE3F5; border-radius:8px;}
  #footer .footer-menu li a:hover{background:rgba(255,255,255,.08); color:#fff;}
  #footer .footer-menu li.active a{color:#fff;}
  
  #footer .footer-widgets{padding:36px 0;}
  #footer .row{display:flex; flex-wrap:wrap; gap:24px;}
  #footer .col-md-4{flex:1 1 260px;}
  #footer .col-md-2{flex:1 1 160px;}
  #footer .widget h2{font-family:'Fraunces',serif; font-size:15px; font-weight:600; color:#fff; margin-bottom:14px;}
  #footer .widget ul{list-style:none;}
  #footer .widget li{margin-bottom:9px;}
  #footer .widget a{font-size:13px; color:#B7C1DB;}
  #footer .widget a:hover{color:#fff;}
  
  #footer .footer-bottom{background:rgba(0,0,0,.18); padding:24px 0;}
  #footer .footer-bottom-content{text-align:center;}
  #footer .footer-logo{margin-bottom:14px;}
  #footer .footer-logo img{height:34px;}
  #footer .footer-bottom-content p{font-size:12px; color:#9AA6C2; line-height:1.6; max-width:760px; margin:0 auto 10px;}
  #footer address{font-style:normal;}
  #footer address a{color:#C9D3EA; font-weight:600;}
  #footer address a:hover{color:#fff;}
  
  /* ---------- INTRO / FEATURE BLOCK (single full-width text feature) ---------- */
  .intro-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:32px; box-shadow:0 4px 24px rgba(22,34,63,.06); display:grid; grid-template-columns:1fr 220px; grid-template-rows:auto auto 1fr; column-gap:24px;}
  .intro-card .eyebrow{grid-column:1; grid-row:1;}
  .intro-card h1{grid-column:1; grid-row:2; font-family:'Fraunces',serif; font-size:28px; font-weight:700; line-height:1.15; color:var(--ink); margin-bottom:14px;}
  .intro-body{grid-column:1; grid-row:3; color:var(--slate); font-size:15px; line-height:1.7;}
  .intro-body p{margin-bottom:14px;}
  .intro-media{grid-column:2; grid-row:1 / 4; border-radius:12px; overflow:hidden;}
  .intro-media img{width:100%; height:100%; object-fit:cover; display:block;}
  
  /* ---------- VIEW TABS (Alphabetic / By Class / By League, etc.) ---------- */
  .view-tabs{display:flex; gap:8px; flex-wrap:wrap;}
  .view-tabs a{font-size:13px; font-weight:700; color:var(--slate); background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:8px 16px; display:inline-block;}
  .view-tabs a:hover{color:var(--cobalt); border-color:var(--cobalt);}
  .view-tabs a.active{background:var(--ink-bg); color:#fff; border-color:var(--ink-bg);}
  
  /* ---------- INLINE LINK ROW (e.g. Coaching Roster) ---------- */
  .link-row{text-align:center; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:24px 0;}
  .link-row a{font-size:13px; font-weight:700; color:var(--cobalt);}
  
  /* ---------- DATA TABLE (teams, stats, rosters, leaders, etc.) ---------- */
  .table-wrap{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:24px;}
  .data-table{width:100%; border-collapse:collapse;}
  .data-table thead th{background:var(--ink-bg); text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:#C9D3EA; font-weight:700; padding:12px 18px; border-bottom:1px solid var(--line);}
  .table-subhead{border-left:4px solid var(--cobalt);}
  .data-table tbody tr:hover{box-shadow:inset 3px 0 0 var(--cobalt);}
  .data-table thead th.text-center{text-align:center;}
  .data-table tbody td{padding:12px 18px; font-size:13.5px; color:var(--ink); border-bottom:1px solid var(--line);}
  .data-table tbody td.text-center{text-align:center;}
  .data-table tbody tr:last-child td{border-bottom:none;}
  .data-table tbody tr:hover{background:var(--paper-soft);}
  .data-table tbody tr.totals-row td{background:var(--ink-bg); color:#fff; border-bottom:none;}
  .data-table tbody tr.totals-row:hover{background:none;}
  .data-table a{color:var(--ink); font-weight:600;}
  .data-table a:hover{color:var(--cobalt);}
  .table-subhead{font-family:'Fraunces',serif; font-size:16px; font-weight:600; color:var(--ink); padding:14px 18px; background:var(--paper-soft); border-bottom:1px solid var(--line);}
  .record-pill{display:inline-block; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:12px; padding:3px 10px; border-radius:20px; background:var(--paper-soft); color:var(--ink);}
  .record-pill.winning{background:rgba(14,165,160,.12); color:var(--teal);}
  .record-pill.losing{background:rgba(255,93,59,.12); color:var(--coral);}
  .record-pill.even{background:var(--paper-soft); color:var(--slate);}
  
  /* ---------- TABLE TEAM LOGO ---------- */
  .team-cell{display:flex; align-items:center; gap:9px;}
  .team-cell .logo{width:24px; height:24px; border-radius:50%; background:var(--paper-soft); flex-shrink:0; overflow:hidden;}
  .team-cell .logo img{width:100%; height:100%; object-fit:cover; border-radius:50%;}
  
  /* ---------- BADGES (class / league color coding) ---------- */
  .badge{display:inline-block; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:11px; padding:3px 10px; border-radius:6px; color:#fff;}
  .badge.b-cobalt{background:var(--cobalt);}
  .badge.b-teal{background:var(--teal);}
  .badge.b-coral{background:var(--coral);}
  .badge.b-gold{background:#B8871B;}
  .badge-outline{display:inline-block; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:11px; padding:3px 10px; border-radius:20px; background:var(--paper-soft); border:1px solid var(--line); color:var(--ink);}
  
  /* ---------- STAT STRIP (quick at-a-glance counts) ---------- */
  .stat-strip{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px;}
  .stat-chip{background:var(--ink-bg); color:#fff; border-radius:10px; padding:12px 18px; display:flex; align-items:baseline; gap:9px;}
  .stat-chip .num{font-family:'Fraunces',serif; font-size:22px; font-weight:700; color:var(--gold);}
  .stat-chip .label{font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:#B7C1DB;}
  /* ---------- MUTED TABLE (e.g. teams no longer playing, archived records) ---------- */
  .table-wrap.muted{border-style:dashed; background:var(--paper-soft); box-shadow:none;}
  .table-wrap.muted .table-subhead{background:transparent; color:var(--slate); border-left-color:var(--slate);}
  .table-wrap.muted .data-table thead th{background:transparent; color:var(--slate);}
  .table-wrap.muted .data-table tbody td{color:var(--slate);}
  .table-wrap.muted .data-table tbody tr:hover{background:var(--paper); box-shadow:none;}
  .table-wrap.muted .data-table a{color:var(--slate); font-weight:700;}
  .table-wrap.muted .data-table a:hover{color:var(--cobalt);}
  
  /* ---------- TEAM MASTHEAD ---------- */
  .team-masthead{display:flex; align-items:center; gap:24px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:28px; box-shadow:0 4px 24px rgba(22,34,63,.06); flex-wrap:wrap; margin-bottom:24px;}
  .masthead-logo{width:88px; height:88px; border-radius:16px; overflow:hidden; background:var(--paper-soft); flex-shrink:0; display:flex; align-items:center; justify-content:center;}
  .masthead-logo img{width:100%; height:100%; object-fit:contain;}
  .masthead-body{flex:1; min-width:220px;}
  .masthead-body h1{font-family:'Fraunces',serif; font-size:30px; font-weight:700; color:var(--ink); line-height:1.1;}
  .masthead-body h1 .mascot{font-family:'Inter',sans-serif; font-size:15px; font-weight:500; color:var(--slate); font-style:italic; margin-left:10px;}
  .masthead-badges{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px;}
  .masthead-ad{margin-left:auto; flex-shrink:0; max-width:200px; text-align:center;}
  .masthead-ad-label{font-size:9px; text-transform:uppercase; letter-spacing:.05em; color:var(--slate); margin-top:5px;}
  .masthead-ad img{max-width:200px; max-height:80px; width:auto; height:auto; display:block; margin:0 auto; border-radius:8px;}
  
  /* ---------- INFO STRIP (students, field, records, etc.) ---------- */
  .info-strip{display:flex; flex-wrap:wrap; gap:12px; margin:20px 0;}
  .info-chip{background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:10px 16px; min-width:140px; flex:1 1 140px;}
  .info-chip .label{font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--slate); font-weight:700; margin-bottom:3px;}
  .info-chip .value{font-size:14px; font-weight:700; color:var(--ink);}
  .info-chip .value a{color:var(--cobalt);}
  
  /* ---------- QUICK ACTIONS ---------- */
  .quick-actions{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:0 0 28px;}
  .quick-actions a{font-size:13px; font-weight:700; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:8px 16px; display:inline-block;}
  .quick-actions a:hover{color:#fff; background:var(--cobalt); border-color:var(--cobalt);}
  .quick-actions select{font-size:13px; font-weight:600; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:8px 14px;}
  
  /* ---------- MATCHUP CARD (Game Today / Next Game) — reuses .status-row / .g-team at larger scale ---------- */
  .matchup-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin:18px 0; box-shadow:0 4px 24px rgba(22,34,63,.06);}
  .matchup-card .status-row{justify-content:center; gap:10px; margin-bottom:8px;}
  .matchup-card .g-team{max-width:420px; margin:0 auto; padding:3px 0;}
  .matchup-card .g-team .logo{width:40px; height:40px;}
  .matchup-card .g-team .name{font-size:16px;}
  .matchup-card .g-team .pts{font-size:22px;}
  .matchup-links{text-align:center; margin-top:10px; display:flex; justify-content:center; gap:16px;}
  .matchup-links a{font-size:12px; font-weight:700; color:var(--cobalt);}
  .matchup-note{text-align:center; font-size:12px; color:var(--slate); margin-top:8px;}
  .matchup-details{display:flex; justify-content:center; gap:18px; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px solid var(--line);}
  .matchup-details .detail{font-size:12px; color:var(--slate); text-align:center; padding-left:18px; border-left:1px solid var(--line);}
  .matchup-details .detail:first-child{padding-left:0; border-left:none;}
  .matchup-details .detail .dlabel{display:block; font-size:10px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; color:var(--slate); margin-bottom:2px;}
  .matchup-details .detail .dvalue{color:var(--ink); font-weight:600;}
  .matchup-details .detail .dvalue a{color:var(--cobalt);}
  
  /* ---------- PAGE BANNER (full-width hero header w/ background photo) ---------- */
  .page-banner{position:relative; background-size:cover; background-position:center; border-radius:var(--radius); overflow:hidden; padding:64px 24px; text-align:center; margin-bottom:32px;}
  .page-banner::before{content:''; position:absolute; inset:0; background:linear-gradient(to bottom, rgba(20,56,47,.15), rgba(20,56,47,.28));}
  .page-banner-content{position:relative; z-index:1;}
  .page-banner h1{font-family:'Fraunces',serif; font-size:36px; font-weight:700; color:#fff; margin-bottom:8px;}
  .page-banner p{font-size:15px; font-weight:600; color:#fff;}
  
  /* ---------- PANEL (generic content card w/ header bar) ---------- */
  .panel{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:24px; box-shadow:0 4px 24px rgba(22,34,63,.05);}
  .panel-head{background:var(--ink-bg); color:#fff; font-family:'Fraunces',serif; font-size:15px; font-weight:600; padding:14px 20px;}
  .panel-head .sub{display:block; font-family:'Inter',sans-serif; font-size:11px; font-weight:500; color:#B7C1DB; margin-top:2px;}
  .panel-body{padding:18px 20px;}
  .panel-body img{max-width:100%; height:auto; border-radius:6px;}
  .panel-body p{font-size:13.5px; color:var(--slate); line-height:1.6; margin-bottom:10px;}
  .panel-body p:last-child{margin-bottom:0;}
  
  /* ---------- PLAYER LINE (key players list items) ---------- */
  .player-line{padding:12px 0; border-bottom:1px solid var(--line);}
  .player-line:last-child{border-bottom:none;}
  .player-line .pname{font-size:14px; font-weight:700; color:var(--ink);}
  .player-line .pname a{color:var(--ink);}
  .player-line .pname a:hover{color:var(--cobalt);}
  .player-line .pmeta{font-size:12px; color:var(--slate); font-weight:600; margin-left:6px;}
  .player-line .pawards{font-size:12.5px; color:var(--slate); margin-top:3px;}
  
  /* ---------- SIMPLE LINK / DETAIL LISTS (sidebar panels) ---------- */
  .link-list{list-style:none;}
  .link-list li{padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; color:var(--slate);}
  .link-list li:last-child{border-bottom:none;}
  .link-list a{color:var(--cobalt); font-weight:600;}
  .detail-list dt{font-size:10.5px; text-transform:uppercase; color:var(--slate); font-weight:700; margin-top:12px;}
  .detail-list dt:first-child{margin-top:0;}
  .detail-list dd{font-size:14px; color:var(--ink); font-weight:600; margin:2px 0 0 0;}
  .award-entry{font-size:13px; color:var(--slate); padding:5px 0 5px 14px; border-left:2px solid var(--line); margin-bottom:2px;}
  .award-count{font-size:13px; font-weight:700; color:var(--ink); margin-bottom:6px; display:block;}
  .champ-badge-row{display:block; overflow:auto;}
  .champ-badge{float:right; width:96px; height:96px; object-fit:contain; border-radius:8px; margin:0 0 8px 14px;}
  
  /* ---------- TEAM PAGE TWO-COLUMN LAYOUT ---------- */
  .team-layout{display:grid; grid-template-columns:2fr 1fr; gap:24px; align-items:start;}
  .team-layout .side-col{position:sticky; top:20px;}
  
  /* ---------- SCHEDULE TABLE MONTH DIVIDER ---------- */
  .data-table .month-divider td{background:var(--paper-soft); font-family:'Fraunces',serif; font-weight:600; color:var(--ink); text-align:center; border-left:4px solid var(--cobalt);}
  
  /* ---------- SERIES HISTORY COMPARISON ---------- */
  .series-compare{display:grid; grid-template-columns:1fr 1fr; gap:16px; text-align:center; padding:4px 0 16px;}
  .series-compare .side-name{font-size:12px; font-weight:700; color:var(--slate); text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px;}
  .series-compare .wins{font-family:'Fraunces',serif; font-size:34px; font-weight:700; color:var(--ink);}
  .series-last{font-size:12px; color:var(--slate); border-top:1px solid var(--line); padding-top:14px; margin-top:4px;}
  .series-last .side{margin-bottom:8px;}
  .series-last a{color:inherit;}
  .series-link{text-align:right; margin-top:12px;}
  .series-link a{font-size:12px; font-weight:700; color:var(--cobalt);}
  
  /* ---------- COMPACT SIDEBAR RESULTS LIST ---------- */
  .mini-results{list-style:none;}
  .mini-results li{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 0; border-bottom:1px solid var(--line); font-size:12px;}
  .mini-results li:last-child{border-bottom:none;}
  .mini-results .mr-date{color:var(--slate); font-family:'JetBrains Mono',monospace; font-size:10.5px; width:42px; flex-shrink:0;}
  .mini-results .mr-matchup{flex:1; color:var(--ink);}
  .mini-results .mr-matchup a{color:inherit;}
  .mini-results .mr-win{color:var(--teal); font-weight:700; margin-left:4px;}
  .mini-results .mr-loss{color:var(--coral); font-weight:700; margin-left:4px;}
  
  /* ---------- QUARTER BOX SCORE ---------- */
  .quarter-table .team-cell .record{display:block; font-size:11px; color:var(--slate); font-weight:400; margin-top:1px;}
  .box-meta{text-align:center; font-size:12px; color:var(--slate); margin:-4px 0 14px;}
  
  /* ---------- PHOTO CARDS (game detail gallery preview) ---------- */
  .photo-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
  .photo-cards a{display:block; border-radius:12px; overflow:hidden; aspect-ratio:4/3; background:var(--paper-soft);}
  .photo-cards img{width:100%; height:100%; object-fit:cover; display:block; transition:.2s;}
  .photo-cards a:hover img{transform:scale(1.05);}
  
  /* ---------- HAL CREDIT (shared include, scoped override) ---------- */
  .hal-credit table{width:auto;}
  .hal-credit img{width:70px; height:auto;}
  .hal-credit .haldate{font-size:12px; color:var(--slate);}
  .hal-credit .hal_says{font-size:13px; line-height:1.6; color:var(--slate);}
  
  /* ---------- LEADERS GRID (symmetric two-column card layout) ---------- */
  .leaders-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  
  /* ---------- STORY BODY (raw CMS article HTML on story_cards.php) ---------- */
  .story-body{font-size:15px; line-height:1.7; color:var(--ink);}
  .story-body p{margin:0 0 12px;}
  .story-body ul, .story-body ol{margin:0 0 18px; padding-left:22px;}
  .story-body li{margin-bottom:6px;}
  .story-body img{max-width:100%; height:auto; border-radius:10px; margin:6px 0;}
  /* Story content comes from the CMS with inline style="float:left/right"
     baked into individual stories, with no consistent margin of their own
     (text ends up hugging the image). Inline styles only win on the
     specific properties they set -- float here, not margin -- so these
     attribute-selector rules can still add consistent spacing around every
     floated image site-wide without editing any story content. Matches
     both "float:left" and "float: left" spacing variants. */
  .story-body img[style*="float"]{margin-top:4px; margin-bottom:12px;}
  .story-body img[style*="left"]{margin-right:14px;}
  .story-body img[style*="right"]{margin-left:14px;}
  .story-body h1, .story-body h2, .story-body h3{font-family:'Fraunces',serif; font-weight:600; color:var(--ink); margin:24px 0 12px;}
  
  /* ---------- GALLERY PHOTOS (raw CMS photo_list HTML on gallery_cards.php) ---------- */
  .gallery-photos{display:flex; flex-wrap:wrap; justify-content:center; gap:16px; list-style:none; padding:0; margin:16px 0;}
  .gallery-photos-img{max-width:600px; width:100%; height:auto; border-radius:10px; display:block; box-shadow:0 4px 24px rgba(22,34,63,.06);}
  
  /* ---------- BRACKET IMAGES (tournament ladder images) ---------- */
  .bracket-stack{display:flex; flex-direction:column; align-items:center; gap:20px; margin:20px 0; width:100%; max-width:100%; overflow-x:hidden;}
  .bracket-stack .bracket-divider{border:0; border-top:1px solid var(--line); margin:0; width:100%; max-width:700px;}
  .bracket-img{max-width:100%; width:auto; height:auto; display:block; margin:0 auto; border-radius:8px; box-shadow:0 4px 24px rgba(22,34,63,.06);}
  /* Belt-and-suspenders: the bracket <img> HTML comes from the database via
     a str_replace() that only swaps in .bracket-img when it finds one exact
     old width/height substring. Any stored image with different attributes
     silently keeps its own raw HTML width/height with no class applied --
     this rule forces every img inside the stack to be responsive regardless,
     since a CSS width/height on the element always outranks the HTML
     attribute, no matter which class (if any) ended up on the tag. */
  .bracket-stack img{max-width:100%; width:auto; height:auto;}
  
  /* ---------- RESPONSIVE ---------- */
  @media (max-width:1000px){
    nav.links{display:none;}
    .menu-btn{display:block;}
    .hero{grid-template-columns:1fr;}
    .games-grid{grid-template-columns:repeat(2,1fr);}
    .story-grid{grid-template-columns:1fr 1fr;}
    .gallery-strip{grid-template-columns:1fr;}
    .team-layout{grid-template-columns:1fr;}
    .team-layout .side-col{position:static;}
  }
  @media (max-width:640px){
    .games-grid{grid-template-columns:1fr;}
    .story-grid{grid-template-columns:1fr;}
    .leaders-grid{grid-template-columns:1fr;}
    .hero-body h1{font-size:26px;}
    .ad-slot{flex-basis:100%;}
    #footer .footer-menu ul{justify-content:center; text-align:center;}
    #footer .row{flex-direction:column; gap:28px;}
    .intro-card{padding:22px; grid-template-columns:1fr; grid-template-rows:auto auto auto auto;}
    .intro-media{grid-column:1; grid-row:1; height:200px; margin-bottom:16px;}
    .intro-card .eyebrow{grid-row:2;}
    .intro-card h1{grid-row:3;}
    .intro-body{grid-row:4;}
    .data-table:not(.schedule-table) thead{display:none;}
    .data-table:not(.schedule-table), .data-table:not(.schedule-table) tbody, .data-table:not(.schedule-table) tr, .data-table:not(.schedule-table) td{display:block; width:100%;}
    .data-table:not(.schedule-table) tr{padding:12px 18px; border-bottom:1px solid var(--line);}
    .data-table:not(.schedule-table) td{padding:2px 0; border-bottom:none;}
    .data-table:not(.schedule-table) td::before{content:attr(data-label); display:inline-block; min-width:80px; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--slate); font-weight:700;}
    .schedule-table td{padding:8px 6px; font-size:12px;}
    .schedule-table .team-cell{gap:5px;}
    .schedule-table .team-cell .logo{width:18px; height:18px;}
    .team-masthead{flex-direction:column; text-align:center;}
    .masthead-badges{justify-content:center;}
    .masthead-ad{margin:12px auto 0;}
    .masthead-ad-label{text-align:center;}
    .photo-cards{grid-template-columns:1fr;}
  }