/* =====================================================================
   BLaxFive 2026 Design System
   Shared styles for the redesigned front page and any pages migrated
   to match it. Ported from GLaxfive_2026.css / index-upscale-cards.php —
   same component set, only the :root token values below changed.

   *** CURRENTLY SET TO A BLUE PREVIEW PALETTE — NOT YET CONFIRMED ***
   This is an exploratory swap requested to see what a blue theme would
   look like, since red wasn't landing. These blue values are a
   reasonable placeholder, not a confirmed brand palette (unlike the red
   values, which came from an actual brand sheet) — replace with real
   hex values once a direction is picked. The red-to-token mapping this
   replaced is kept below for reference in case you want to revert:
     --cobalt      was #C62839 (brand primary red)
     --cobalt-deep was #8C1F28
     --coral       was #F15A63 (brand soft/light red)
     --ink-bg      was #3D0F13 (derived dark maroon-black)
     --ink         was #201013 (derived dark warm text)
   ===================================================================== */

   :root{
    --paper:#FFFFFF;
    --paper-soft:#F5F8FC;
    --ink-bg:#0E2A4D;
    --ink:#132339;
    --cobalt:#1D6FD1;
    --cobalt-deep:#123F82;
    --teal:#0E9AA5;
    --coral:#4FA8F0;
    --gold:#C9A227;
    --line:#E3E8F0;
    --slate:#5B6B80;
    --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;}
  .logo img{height:40px; width:auto; display:block;}
  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(32,16,19,.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); flex-shrink:0;}

  /* ---------- TICKER ---------- */
  .ticker-bar{background:var(--cobalt-deep); 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:#EAC9CC; white-space:nowrap;}

  main{padding:36px 0 60px;}
  main p{margin-bottom:14px;}
  main p:last-child{margin-bottom:0;}

  .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(32,16,19,.06); border:1px solid var(--line);}
  .hero-media{background:linear-gradient(135deg,var(--coral) 0%, var(--cobalt) 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;}
  .hero-body .story-continue{margin-top:14px;}

  /* ---------- 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(198,40,57,.12);}
  .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;}
  .g-pending .tv-flag{color:var(--cobalt); margin-left:4px;}
  .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:#FDECEC; border:1px solid #F6C6C6; color:var(--cobalt-deep); 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(32,16,19,.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-media .tag.tag-faint{background:rgba(255,255,255,.4); color:var(--slate); font-weight:500; top:auto; bottom:10px; left:auto; right:10px;}
  .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,#E6B6BA,#C62839); background-size:cover; background-position:center;}
  .gallery-card .cap{position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top, rgba(32,16,19,.85), transparent);
    color:#fff; padding:16px; font-weight:700; font-size:14px;}

  /* ---------- DATE / WEEK 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);}

  /* ---------- INFO STRIP (First Posted / Updated / Views chips on
     story_cards.php) ---------- */
  .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);}

  /* ---------- 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. */
  img[style*="float"]{margin-top:4px; margin-bottom:12px;}
  img[style*="float: left"], img[style*="float:left"]{margin-right:14px;}
  img[style*="float: right"], img[style*="float:right"]{margin-left:14px;}
  /* Some older articles use the HTML align="left"/"right" attribute
     instead of an inline style="float:...". Same spacing treatment. */
  img[align="left"]{margin:4px 14px 12px 0;}
  img[align="right"]{margin:4px 0 12px 14px;}
  .story-body h1, .story-body h2, .story-body h3{font-family:'Fraunces',serif; font-weight:600; color:var(--ink); margin:24px 0 12px;}
  /* Legacy CMS classes — the old story.php had a <style> block defining
     these directly (float baked into the class itself, no inline style
     needed), and articles still use class="imgleft"/"imgright" on some
     images rather than an inline style="float:...". These got dropped
     along with the rest of that old <style> block during the rebuild,
     which is why some floated images had no spacing at all. */
  .story-body .imgleft{float:left; margin:4px 14px 12px 0; max-width:100%; height:auto; border-radius:10px;}
  .story-body .imgright{float:right; margin:4px 0 12px 14px; max-width:100%; height:auto; border-radius:10px;}
  .story-body .imgsize{margin:4px 14px 12px 0; width:100%; max-width:650px; height:auto; border-radius:10px;}
  .story-body .img-center{display:block; margin:12px auto; height:auto; border-radius:10px;}

  /* ---------- INLINE LINK ROW (e.g. "More Stories in the Archive") ---------- */
  .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);}

  /* ---------- NEWS SEARCH BOX (news_cards.php) ---------- */
  .news-search{display:flex; gap:10px; max-width:420px; margin:0 0 32px;}
  .news-search input{flex:1; background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:10px 18px; font-size:14px; color:var(--ink);}
  .news-search input::placeholder{color:var(--slate);}
  .news-search button{font-size:13px; font-weight:700; color:#fff; background:var(--cobalt); border:none; border-radius:20px; padding:0 22px; cursor:pointer;}
  .news-search button:hover{background:var(--cobalt-deep);}

  /* ---------- PANEL (generic content card w/ header bar) ---------- */
  .panel{display:block; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:24px; box-shadow:0 4px 24px rgba(0,0,0,.05); transition:.15s;}
  a.panel:hover{box-shadow:0 8px 28px rgba(0,0,0,.1); transform:translateY(-2px);}
  .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;}

  /* ---------- GAMES BY DATE GRID (games_by_date_cards.php) ---------- */
  .gbd-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px;}
  .gbd-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:0 4px 24px rgba(0,0,0,.05);}
  .gbd-card-head{background:var(--ink-bg); padding:12px 16px; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:13px; color:#fff;}
  .gbd-card-body{padding:6px 16px;}
  .gbd-matchup{font-size:12.5px; color:var(--ink); padding:8px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:10px;}
  .gbd-matchup:last-child{border-bottom:none;}
  .gbd-matchup:hover span:first-child{color:var(--cobalt);}
  .gbd-matchup .score{font-family:'JetBrains Mono',monospace; font-weight:700; color:var(--cobalt); flex-shrink:0;}

  /* ---------- 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);}
  .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); box-shadow:inset 3px 0 0 var(--cobalt);}
  .data-table a{color:var(--ink); font-weight:600;}
  .data-table a:hover{color:var(--cobalt);}
  .data-table .month-divider td{background:var(--ink-bg); font-family:'Fraunces',serif; font-size:21px; font-weight:700; color:#fff; text-align:center; padding:16px 18px; border-left:4px solid var(--gold);}
  .data-table .award-divider td{background:var(--paper-soft); font-family:'Fraunces',serif; font-size:14px; font-weight:600; color:var(--ink); text-align:left; padding:10px 18px; border-left:4px solid var(--cobalt);}
  .data-table tr.sub-header th{background:var(--paper-soft); text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--slate); font-weight:700; padding:10px 18px; border-bottom:1px solid var(--line);}
  .data-table tr.sub-header th.text-center{text-align:center;}
  .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);}

  /* ---------- TEAM PICKER (games_by_team_cards.php) ---------- */
  .team-picker{display:flex; justify-content:center; max-width:420px; margin:0 auto 32px;}
  .team-picker select{width:100%; background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:10px 18px; font-size:14px; color:var(--ink); cursor:pointer; text-align:center; text-align-last:center;}
  .team-picker.team-picker-prominent{flex-direction:column; align-items:center; gap:10px; max-width:460px; background:var(--paper); border:2px solid var(--cobalt); border-radius:var(--radius); padding:22px 24px; box-shadow:0 4px 24px rgba(0,0,0,.06);}
  .team-picker-prominent label{font-family:'Fraunces',serif; font-size:16px; font-weight:600; color:var(--ink);}
  .team-picker-prominent select{font-size:16px; padding:13px 18px; border:1px solid var(--cobalt); color:var(--cobalt);}
  .team-picker-prominent select:hover{background:var(--paper-soft);}

  /* ---------- VIEW TABS (year picker on archive_cards.php) ---------- */
  .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);}

  /* ---------- QUICK ACTIONS (month picker on archive_cards.php) ---------- */
  .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 a.active{background:var(--cobalt); color:#fff; 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;}

  /* ---------- INTRO / FEATURE BLOCK (single full-width text feature) ---------- */
  .intro-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:24px 28px 18px; margin-bottom:36px; box-shadow:0 4px 24px rgba(0,0,0,.06);}
  .intro-card .eyebrow{margin-bottom:6px;}
  .intro-card h1{font-family:'Fraunces',serif; font-size:28px; font-weight:700; line-height:1.15; color:var(--ink); margin-bottom:14px;}
  .intro-body{color:var(--slate); font-size:15px; line-height:1.7;}
  .intro-body p{margin-bottom:14px;}
  .intro-body p:last-child{margin-bottom:0;}

  /* ---------- STAT STRIP (quick at-a-glance counts) ---------- */
  .stat-strip{display:flex; gap:12px; flex-wrap:wrap; align-items:center; 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;}
  a.stat-chip{transition:.15s;}
  a.stat-chip:hover{background:var(--cobalt);}

  /* ---------- 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);}

  /* ---------- RECORD PILL ---------- */
  .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,154,165,.14); color:var(--teal);}
  .record-pill.losing{background:rgba(241,90,99,.14); 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%;}

  /* ---------- MUTED TABLE (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);}

  /* ---------- COACH CARDS (coaching_roster_cards.php) ---------- */
  .coach-grid{display:grid; grid-template-columns:repeat(5, 1fr); gap:16px;}
  .coach-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; text-align:center; box-shadow:0 4px 24px rgba(0,0,0,.05);}
  .coach-card .team-name{background:var(--ink-bg); color:#fff; font-family:'Fraunces',serif; font-weight:600; font-size:14px; padding:10px 14px;}
  .coach-card .photo{width:150px; height:150px; object-fit:cover; object-position:top; border-radius:10px; display:block; margin:16px auto 0; background:var(--paper-soft);}
  .coach-card .body{padding:16px;}
  .coach-card .coach-name{font-family:'Fraunces',serif; font-size:17px; font-weight:600; color:var(--ink); margin-bottom:8px;}
  .coach-card .meta{font-size:12px; color:var(--slate); line-height:1.6; margin-bottom:14px;}
  .coach-card .btn{display:inline-block; font-size:12px; font-weight:700; color:#fff; background:var(--cobalt); border-radius:20px; padding:8px 18px;}
  .coach-card .btn:hover{background:var(--cobalt-deep);}

  /* ---------- PLAYER MASTHEAD ---------- */
  .player-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(0,0,0,.06); flex-wrap:wrap; margin-bottom:24px;}
  .player-masthead .photo{width:180px; height:180px; border-radius:12px; object-fit:cover; object-position:top; background:var(--paper-soft); flex-shrink:0;}
  .player-masthead .name{font-family:'Fraunces',serif; font-size:28px; font-weight:700; color:var(--ink); line-height:1.1;}
  .player-masthead .name .jersey{font-family:'JetBrains Mono',monospace; font-size:15px; font-weight:700; color:var(--slate); margin-left:10px;}

  /* ---------- SIMPLE LINK LIST (Team Links panel, etc.) ---------- */
  .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;}

  /* ---------- INLINE CALL-TO-ACTION LINK (e.g. "click here" prompts) ---------- */
  .cta-link{font-weight:700; color:var(--cobalt); text-decoration:underline;}
  .cta-link:hover{color:var(--cobalt-deep);}

  /* ---------- 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(0,0,0,.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-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;}

  /* ---------- ALPHABET JUMP NAV (players_college_list_cards.php) ---------- */
  .alpha-jump{display:flex; flex-wrap:wrap; gap:4px; justify-content:center; margin:16px 0 24px;}
  .alpha-jump a{font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:700; color:var(--slate); background:var(--paper); border:1px solid var(--line); border-radius:6px; width:26px; height:26px; display:flex; align-items:center; justify-content:center;}
  .alpha-jump a:hover{color:#fff; background:var(--cobalt); border-color:var(--cobalt);}
  .letter-marker{display:flex; align-items:center; gap:10px; margin:28px 0 4px;}
  .letter-marker .letter{font-family:'Fraunces',serif; font-size:22px; font-weight:700; color:#fff; background:var(--cobalt); width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .letter-marker .top-link{font-size:11px; font-weight:700; color:var(--slate); margin-left:auto;}

  /* ---------- TWO-COLUMN CARD GRID (leaders, awards home, etc.) ---------- */
  .leaders-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}

  /* ---------- FOOTER ---------- */
  #footer{background:#0E2A4D; color:#C7D6EA; 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:#DCE7F6; 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:#B7CBE6;}
  #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:#9BB2D1; line-height:1.6; max-width:760px; margin:0 auto 10px;}
  #footer address{font-style:normal;}
  #footer address a{color:#CBDCF2; font-weight:600;}
  #footer address a:hover{color:#fff;}

  /* ---------- RESPONSIVE ---------- */
  @media (max-width:1000px){
    .navbar{position:relative;}
    nav.links{display:none;}
    .menu-btn{display:block;}
    nav.links.open{
      display:flex; flex-direction:column; gap:2px;
      position:absolute; top:100%; left:0; right:0;
      background:var(--paper); border:1px solid var(--line); border-top:none;
      box-shadow:0 12px 28px rgba(32,16,19,.12); padding:10px; z-index:60;
    }
    nav.links.open > .nav-item > a{padding:12px 14px;}
    nav.links.open > .nav-item > .mega{
      display:none; position:static; box-shadow:none; border:none;
      border-radius:0; padding:4px 0 4px 14px; min-width:0;
    }
    nav.links.open > .nav-item.open > .mega{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;}
    .coach-grid{grid-template-columns:repeat(4,1fr);}
  }
  @media (max-width:640px){
    .games-grid{grid-template-columns:1fr;}
    .story-grid{grid-template-columns:1fr;}
    .coach-grid{grid-template-columns:1fr 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:20px;}
    /* Fixed-width search input + 3 social icons + hamburger don't all fit
       next to the logo at this width — the input was pushing the
       hamburger off-screen (nav-search has no wrap/shrink). Drop the
       input here; search is still reachable from within the mobile menu
       panel itself if one exists there, or from a dedicated search page. */
    .navbar{padding:14px 16px;}
    .nav-search{gap:12px;}
    input.search-pill{display:none;}
  }