/*
Theme Name: HS Sports Central
Theme URI: https://bamahssports.com/
Author: Russell Frye
Author URI: https://bamahssports.com/
Description: A clean, scoreboard-first theme for Alabama high school sports sites (AHSS). Designed to pair with the AHSS Core plugin.
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hs-sports-central
Tags: one-column, two-columns, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
   Brand palette
     Crimson  #C8102E   primary action, active states, accents
     Navy     #0A2342   text, header, footer, nav
     White    #FFFFFF   surfaces
     Silver   #C0C0C0   borders, muted elements, backgrounds
   ------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --hssc-bg:        #f2f4f6;        /* page background — off-white with silver tint */
  --hssc-surface:   #ffffff;
  --hssc-surface-2: #f8f9fa;

  /* Borders / dividers — derived from silver */
  --hssc-border:    #c8cdd3;        /* slightly darker than #C0C0C0 for contrast */

  /* Text */
  --hssc-text:      #1a1f2e;        /* near-black — good on white */
  --hssc-muted:     #6b7280;

  /* Brand */
  --hssc-navy:      #0A2342;
  --hssc-navy-2:    #0d2d56;        /* slightly lighter for gradients */
  --hssc-red:       #C8102E;
  --hssc-red-2:     #a00d24;        /* darker crimson for gradient bottoms */

  /* Semantic */
  --hssc-link:      #0A2342;
  --hssc-success:   #1f7a3a;
  --hssc-danger:    #C8102E;

  /* Misc */
  --hssc-radius:    10px;
  --hssc-radius-sm: 8px;
  --hssc-shadow:    0 1px 0 rgba(10,35,66,.04), 0 10px 24px rgba(10,35,66,.08);
  --hssc-container: 1200px;
}

/* -------------------------------------------------------------------------
   Base reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
               "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--hssc-text);
  background: var(--hssc-bg);
  line-height: 1.5;
}
a { color: var(--hssc-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
hr  { border: 0; border-top: 1px solid var(--hssc-border); margin: 24px 0; }

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.hssc-container {
  width: min(var(--hssc-container), calc(100% - 32px));
  margin: 0 auto;
}
.hssc-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}
@media (max-width: 960px) {
  .hssc-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.hssc-card {
  background: var(--hssc-surface);
  border: 1px solid var(--hssc-border);
  border-radius: var(--hssc-radius);
  box-shadow: var(--hssc-shadow);
}
.hssc-card__head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hssc-border);
  /* Silver-tinted header gradient */
  background: linear-gradient(180deg, #f4f5f7, #e8eaed);
  border-top-left-radius:  var(--hssc-radius);
  border-top-right-radius: var(--hssc-radius);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--hssc-navy);
}
.hssc-card__body { padding: 16px; }

/* -------------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------------- */
.hssc-topbar {
  /* Navy → slightly deeper navy */
  background: linear-gradient(180deg, var(--hssc-navy), #061729);
  color: #fff;
  font-size: 13px;
}
.hssc-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.hssc-topbar a { color: #fff; opacity: .9; }
.hssc-topbar a:hover { opacity: 1; text-decoration: none; }
.hssc-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.hssc-topbar ul li { margin: 0; }

/* -------------------------------------------------------------------------
   Site header — logo banner
   ------------------------------------------------------------------------- */
.hssc-hero {
  /* Navy background matches all hero image backgrounds exactly */
  background: #061829;
  display: block;
  line-height: 0;
}
.hssc-hero-logo-link {
  display: block;
  line-height: 0;
}
.hssc-hero-logo-img {
  display: block;
  width: 100%;
  height: auto;
  /*
   * Homepage banner (1600×500, 3.2:1): 200px shows the full image.
   * Page banners (1536×1024, 1.5:1): needs more height to show the
   * logo zone. object-position in the HTML targets the right region.
   */
  max-height: 300px;
  object-fit: cover;
  object-position: center 28%;  /* default — overridden per-image in HTML */
}
/* Smaller banner on mobile so it doesn't dominate */
@media (max-width: 768px) {
  .hssc-hero-logo-img { max-height: 180px; }
}
@media (max-width: 480px) {
  .hssc-hero-logo-img { max-height: 130px; }
}
/* Keep old classes inert so nothing breaks if they're referenced */
.hssc-hero__bg    { display: none; }
.hssc-hero__inner { display: none; }
.hssc-brand, .hssc-brand__logo, .hssc-brand__title, .hssc-brand__subtitle { display: none; }

/* -------------------------------------------------------------------------
   Primary nav (sticky)
   ------------------------------------------------------------------------- */
.hssc-navwrap {
  background: var(--hssc-surface);
  border-bottom: 3px solid var(--hssc-red);   /* crimson accent line */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(10,35,66,.10);
}
.hssc-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.hssc-nav::-webkit-scrollbar { display: none; }
.hssc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; }
.hssc-nav ul li { margin: 0; }
.hssc-nav a,
.hssc-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--hssc-navy);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.hssc-nav a:hover,
.hssc-nav > a:hover {
  background: #f2f4f6;
  border-color: var(--hssc-border);
  text-decoration: none;
  color: var(--hssc-navy);
}
/* Active nav item — crimson background */
.hssc-nav .current-menu-item > a,
.hssc-nav a[aria-current="page"] {
  background: linear-gradient(180deg, var(--hssc-red), var(--hssc-red-2));
  color: #fff;
  border-color: rgba(0,0,0,.06);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.hssc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--hssc-border);
  background: linear-gradient(180deg, #ffffff, #eef0f3);
  font-weight: 700;
  font-size: 14px;
  color: var(--hssc-navy);
  cursor: pointer;
  text-decoration: none;
  transition: filter .12s;
}
/* Primary button = crimson */
.hssc-btn--primary {
  background: linear-gradient(180deg, var(--hssc-red), var(--hssc-red-2));
  color: #fff;
  border-color: rgba(0,0,0,.08);
}
.hssc-btn:hover { text-decoration: none; filter: brightness(.96); }

/* -------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------- */
.hssc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--hssc-border);
  border-radius: var(--hssc-radius-sm);
  background: var(--hssc-surface);
  overflow: hidden;
}
.hssc-table th,
.hssc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hssc-border);
  vertical-align: middle;
}
.hssc-table thead th {
  background: linear-gradient(180deg, #f4f5f7, #e8eaed);
  color: var(--hssc-navy);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}
.hssc-table tbody tr:last-child td { border-bottom: 0; }
.hssc-table tbody tr:hover td { background: #f8f9fa; }
.hssc-table .is-right  { text-align: right; }
.hssc-table .is-center { text-align: center; }

.hssc-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px; height: 24px;
  padding: 0 8px; border-radius: 6px;
  font-weight: 900; font-size: 12px; color: #fff;
}
.hssc-result-pill--w { background: linear-gradient(180deg, #2e9b4c, #1f7a3a); }
.hssc-result-pill--l { background: linear-gradient(180deg, var(--hssc-red), var(--hssc-red-2)); }

/* -------------------------------------------------------------------------
   Rating card widget
   ------------------------------------------------------------------------- */
.hssc-rating         { text-align: center; padding: 18px 16px; }
.hssc-rating__badge  { font-weight: 900; color: var(--hssc-navy); letter-spacing: .02em; }
.hssc-rating__value  { font-size: 54px; line-height: 1; font-weight: 900; color: var(--hssc-navy); margin: 8px 0 6px; }
.hssc-rating__sub    { color: var(--hssc-muted); font-weight: 700; }

/* -------------------------------------------------------------------------
   Page content
   ------------------------------------------------------------------------- */
.site-main { padding: 24px 0 48px; }
.hssc-content {
  background: var(--hssc-surface);
  border: 1px solid var(--hssc-border);
  border-radius: var(--hssc-radius);
  box-shadow: var(--hssc-shadow);
  padding: 24px;
}
.hssc-content h1 { margin-top: 0; color: var(--hssc-navy); }

/* -------------------------------------------------------------------------
   Footer — deep navy
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 3px solid var(--hssc-red);   /* crimson accent line at top */
  background: linear-gradient(180deg, var(--hssc-navy), #061729);
  color: #fff;
}
.site-footer .hssc-container {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}
.site-footer a { color: #C0C0C0; }   /* silver links in footer */
.site-footer a:hover { color: #fff; }

/* -------------------------------------------------------------------------
   AHSS Core plugin compatibility
   ------------------------------------------------------------------------- */
.ahss-scoreboard { margin: 0; }
.ahss-scoreboard__list { list-style: none; padding: 0; margin: 0; }
.ahss-scoreboard__item {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hssc-border);
}
.ahss-scoreboard__item:last-child { border-bottom: 0; }
.ahss-scoreboard__meta   { font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--hssc-muted); }
.ahss-scoreboard__teams  { font-weight: 800; color: var(--hssc-navy); }
.ahss-scoreboard__score  { font-weight: 900; color: var(--hssc-navy); }
.ahss-empty { color: var(--hssc-muted); padding: 12px; }

/* Gutenberg */
.wp-block  { max-width: 100%; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; width: 100%; }

/* -------------------------------------------------------------------------
   Homepage — hero
   ------------------------------------------------------------------------- */
.hssc-grid--home { align-items: start; margin-top: 0; }

.hssc-hp-hero {
  /* Crimson bleeds into navy — the Alabama brand gradient */
  background: radial-gradient(1000px 220px at 15% 10%, rgba(200,16,46,.18), rgba(200,16,46,0) 55%),
              linear-gradient(135deg, #061729 0%, var(--hssc-navy) 55%, #8a0b1e 100%);
  color: #fff;
  border-radius: 16px;
  padding: clamp(22px, 4vw, 44px);
  margin: 20px 0 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200,16,46,.25);
}
.hssc-hp-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Crect x='30' y='0' width='1' height='60'/%3E%3Crect x='0' y='30' width='60' height='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hssc-hp-hero-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 20px; flex-wrap: wrap;
}
.hssc-hp-kicker {
  font-size: 11px; font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase; opacity: .75; margin-bottom: 8px;
  color: #C0C0C0;  /* silver kicker */
}
.hssc-hp-title  { font-size: clamp(26px, 4vw, 44px); font-weight: 900; line-height: 1.05; margin: 0 0 8px; }
.hssc-hp-tagline { font-size: 15px; font-weight: 600; opacity: .85; margin: 0 0 16px; color: #C0C0C0; }
.hssc-hp-date {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  font-size: 12px; font-weight: 900; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hssc-hp-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.hssc-hp-stat-n { font-size: 32px; font-weight: 900; line-height: 1; }
.hssc-hp-stat-l { font-size: 10px; font-weight: 800; opacity: .7; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; color: #C0C0C0; }

/* AHSS badge in hero — crimson */
.hssc-hp-badge {
  width: 84px; height: 84px; border-radius: 16px;
  background: rgba(200,16,46,.2);
  border: 1px solid rgba(200,16,46,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; flex-shrink: 0;
  color: #fff;
}

/* Hero buttons */
.hssc-hp-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hssc-hp-hero-btns .hssc-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
/* Primary hero button = white text on crimson */
.hssc-hp-hero-btns .hssc-btn--primary {
  background: var(--hssc-red);
  border-color: var(--hssc-red-2);
  color: #fff;
}
.hssc-hp-hero-btns .hssc-btn--primary:hover { background: var(--hssc-red-2); filter: none; }

/* -------------------------------------------------------------------------
   Sport quick-link pills
   ------------------------------------------------------------------------- */
.hssc-hp-sports { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hssc-hp-sport {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px;
  background: var(--hssc-surface); border: 1px solid var(--hssc-border);
  color: var(--hssc-navy); font-weight: 700; font-size: 13px;
  transition: background .12s, transform .1s; white-space: nowrap;
}
.hssc-hp-sport:hover {
  background: var(--hssc-navy); color: #fff;
  border-color: var(--hssc-navy); text-decoration: none;
  transform: translateY(-1px);
}
.hssc-hp-sport-cnt {
  font-size: 11px; font-weight: 900; padding: 1px 6px;
  border-radius: 999px; background: #ebebeb; color: var(--hssc-muted);
}
.hssc-hp-sport:hover .hssc-hp-sport-cnt { background: rgba(255,255,255,.18); color: #fff; }

/* -------------------------------------------------------------------------
   Section heading row
   ------------------------------------------------------------------------- */
.hssc-hp-sec {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.hssc-hp-sec-title { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--hssc-navy); }
.hssc-hp-sec-link  { font-size: 12px; font-weight: 700; color: var(--hssc-red); }
.hssc-hp-sec-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Today's game cards
   ------------------------------------------------------------------------- */
.hssc-hp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.hssc-hp-game {
  background: var(--hssc-surface); border: 1px solid var(--hssc-border);
  border-radius: 14px; padding: 14px;
  position: relative; overflow: hidden;
  transition: transform .14s, box-shadow .14s;
}
.hssc-hp-game::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--hssc-border);  /* default = silver */
}
/* Live = crimson stripe */
.hssc-hp-game.live { border-color: rgba(200,16,46,.25); background: linear-gradient(180deg,rgba(200,16,46,.04) 0%,#fff 70%); }
.hssc-hp-game.live::before  { background: linear-gradient(90deg, var(--hssc-red), #e84060); }
/* Final = green stripe */
.hssc-hp-game.final::before { background: linear-gradient(90deg, #15803d, #22c55e); }
/* Scheduled = navy stripe */
.hssc-hp-game.sched::before { background: linear-gradient(90deg, var(--hssc-navy), #2a5080); }
.hssc-hp-game:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,35,66,.10); }

.hssc-hp-game-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.hssc-hp-game-sport { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--hssc-muted); }

.hssc-hp-badge-status { font-size: 10px; font-weight: 900; padding: 3px 7px; border-radius: 6px; letter-spacing: .06em; }
.hssc-hp-badge-status.live  { background: rgba(200,16,46,.1); color: var(--hssc-red); }
.hssc-hp-badge-status.final { background: #dcfce7; color: #166534; }
.hssc-hp-badge-status.sched { background: #eef0f3; color: var(--hssc-navy); }

.hssc-hp-teams { display: grid; gap: 6px; }
.hssc-hp-team {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 9px; border-radius: 9px;
  background: #f8f9fa; border: 1px solid #eaecef;
}
.hssc-hp-team.win { background: #f0fdf4; border-color: #bbf7d0; }
.hssc-hp-team-role { font-size: 10px; font-weight: 700; color: var(--hssc-muted); }
.hssc-hp-team-name { font-size: 13px; font-weight: 800; line-height: 1.2; }
.hssc-hp-team-name a { color: var(--hssc-navy); }
.hssc-hp-team-name a:hover { text-decoration: underline; }
.hssc-hp-score { font-size: 22px; font-weight: 900; min-width: 26px; text-align: right; color: var(--hssc-navy); }
.hssc-hp-game-meta { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eaecef; font-size: 11px; font-weight: 700; color: var(--hssc-muted); }

.hssc-hp-empty {
  background: var(--hssc-surface); border: 2px dashed var(--hssc-border);
  border-radius: 14px; padding: 28px; text-align: center;
  margin-bottom: 24px; color: var(--hssc-muted); font-weight: 700;
}

/* -------------------------------------------------------------------------
   Recent results list
   ------------------------------------------------------------------------- */
.hssc-hp-result {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--hssc-border);
}
.hssc-hp-result:last-child { border-bottom: none; }
.hssc-hp-result-sport { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: var(--hssc-muted); min-width: 50px; }
.hssc-hp-result-teams { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.3; }
.hssc-hp-result-score { font-size: 13px; font-weight: 900; white-space: nowrap; color: var(--hssc-navy); }
.hssc-hp-result-date  { font-size: 11px; color: var(--hssc-muted); font-weight: 700; white-space: nowrap; }

/* -------------------------------------------------------------------------
   Power ratings sidebar list
   ------------------------------------------------------------------------- */
.hssc-hp-rating-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hssc-border); }
.hssc-hp-rating-row:last-child { border-bottom: none; }
.hssc-hp-rating-rank { font-size: 16px; font-weight: 900; min-width: 28px; color: var(--hssc-muted); }
.hssc-hp-rating-info { flex: 1; min-width: 0; }
.hssc-hp-rating-name { font-size: 14px; font-weight: 800; }
.hssc-hp-rating-name a { color: var(--hssc-navy); }
.hssc-hp-rating-name a:hover { text-decoration: underline; }
.hssc-hp-rating-sub  { font-size: 11px; color: var(--hssc-muted); font-weight: 700; }
.hssc-hp-rating-val  { font-size: 14px; font-weight: 900; min-width: 42px; text-align: right; color: var(--hssc-navy); }

/* Classification badge — crimson instead of blue */
.hssc-hp-cls {
  display: inline-block; padding: 1px 5px; border-radius: 4px;
  background: rgba(200,16,46,.1); color: var(--hssc-red);
  font-size: 10px; font-weight: 900; margin-left: 4px;
}

/* -------------------------------------------------------------------------
   Quick-links 2×2 grid
   ------------------------------------------------------------------------- */
.hssc-hp-ql-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.hssc-hp-ql {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 16px 10px;
  background: var(--hssc-surface); border: 1px solid var(--hssc-border);
  border-radius: 12px; text-decoration: none;
  color: var(--hssc-navy); font-weight: 800; font-size: 13px; gap: 6px;
  transition: background .12s, transform .1s; text-align: center;
}
.hssc-hp-ql:hover {
  background: var(--hssc-navy); color: #fff;
  text-decoration: none; transform: translateY(-1px);
}
.hssc-hp-ql-icon { font-size: 24px; line-height: 1; }

/* -------------------------------------------------------------------------
   Legacy hero card (kept for back-compat)
   ------------------------------------------------------------------------- */
.hssc-home-hero-card {
  margin: 18px 0 24px; overflow: hidden;
  background: radial-gradient(1000px 220px at 15% 10%, rgba(200,16,46,.18), rgba(200,16,46,0) 45%),
              linear-gradient(135deg, #061729 0%, var(--hssc-navy) 45%, #8a0b1e 100%);
  color: #fff; border-color: rgba(255,255,255,.08);
}
.hssc-home-hero-card__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; }
.hssc-home-kicker   { font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .88; margin-bottom: 8px; color: #C0C0C0; }
.hssc-home-title    { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: .98; letter-spacing: .01em; font-weight: 900; text-transform: uppercase; }
.hssc-home-subtitle { max-width: 720px; margin: 12px 0 0; color: rgba(255,255,255,.86); font-weight: 600; }
.hssc-home-actions  { display: flex; flex-wrap: wrap; gap: 10px; }
.hssc-home-hero-card .hssc-btn { border-color: rgba(255,255,255,.18); }
.hssc-home-hero-card .hssc-btn:not(.hssc-btn--primary) { background: rgba(255,255,255,.1); color: #fff; }

/* -------------------------------------------------------------------------
   News / articles
   ------------------------------------------------------------------------- */
.hssc-news-fallback + .hssc-news-fallback { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hssc-border); }
.hssc-news-fallback__title { font-weight: 900; }
.hssc-news-fallback__meta,
.hssc-muted-copy { color: var(--hssc-muted); font-weight: 600; }
.hssc-mini-list  { margin: 12px 0 0 18px; padding: 0; }
.hssc-mini-list li + li { margin-top: 8px; }
.hssc-quick-links { display: grid; gap: 10px; }
.hssc-quick-links .hssc-btn { width: 100%; justify-content: flex-start; }

/* Featured news plugin integration */
.hssc-card__body .ahss-module--news.hssc-card { border: 0; box-shadow: none; background: transparent; }
.hssc-card__body .ahss-module--news .hssc-card__body { padding: 0; }
.hssc-card__body .hsna-news-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.hssc-card__body .hsna-news-grid__items { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hssc-card__body .hsna-news-grid__items .hssc-card .hssc-card__body,
.hssc-card__body .hsna-news-featured .hssc-card__body { padding: 14px 16px; }
.hssc-card__body .hsna-news__title--featured { display: block; font-size: 30px; line-height: 1.08; font-weight: 900; color: var(--hssc-navy); margin-bottom: 12px; }
.hssc-card__body .hsna-news-grid__items .hsna-news__title { display: block; font-size: 18px; line-height: 1.25; font-weight: 800; color: var(--hssc-navy); }
.hssc-card__body .hsna-news__meta { margin-top: 8px; font-size: 14px; color: var(--hssc-muted); display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .hssc-card__body .hsna-news-grid { grid-template-columns: 1fr; }
  .hssc-card__body .hsna-news__title--featured { font-size: 24px; }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hssc-home-hero-card__inner { flex-direction: column; align-items: flex-start; }
  .hssc-home-actions { width: 100%; }
  .hssc-hp-badge { display: none; }
}
@media (max-width: 600px) {
  .hssc-hp-grid { grid-template-columns: 1fr; }
  .hssc-hp-ql-grid { grid-template-columns: repeat(2,1fr); }
  .hssc-hero .hssc-btn { display: none; }
}

/* =========================================================================
   Plugin shortcode overrides
   — These selectively suppress or restyle elements inside AHSS Core
     shortcodes that duplicate what the theme header already provides,
     or that use off-brand colors.
   ========================================================================= */

/* ── 1. Hide the plugin's own internal hero/banner blocks ────────────────
   The theme header image already identifies the page. Showing a second
   dark gradient "POWER RATINGS" or "SCOREBOARD" banner directly below
   it is redundant and creates a double-header effect.              ── */
.ahss-pr-hero,
.ahss-dir-hero,
.ahss-scoreboard-hero {
  display: none !important;
}

/* ── 2. Remove extra top gap left behind when the hero is hidden ───────── */
.ahss-power-ratings-hub > *:first-child,
.ahss-school-directory  > *:first-child,
.ahss-scoreboard-polish .ahss-scoreboard-shell > *:first-child {
  margin-top: 0;
}

/* ── 3. Classification tabs — replace blue with brand crimson ──────────── */
.ahss-class-tab.is-active,
.ahss-class-tab:hover {
  color: var(--hssc-navy) !important;
  border-bottom-color: var(--hssc-red) !important;
}

/* ── 4. Filter bar controls — match site button style ─────────────────── */
.ahss-pr-filter select,
.ahss-pr-filter input[type="text"],
.ahss-pr-filter input[type="date"] {
  border: 1px solid var(--hssc-border) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: var(--hssc-navy) !important;
}
.ahss-pr-filter button[type="submit"] {
  background: linear-gradient(180deg, var(--hssc-red), var(--hssc-red-2)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* ── 5. Biggest Movers panels — brand colors ───────────────────────────── */
.ahss-mover-head--up   { background: var(--hssc-navy)  !important; }
.ahss-mover-head--down { background: var(--hssc-red-2) !important; }

/* ── 6. School directory filter pills — crimson active state ───────────── */
.ahss-dir-pill.is-active,
.ahss-dir-pill:hover {
  background: var(--hssc-navy) !important;
  border-color: var(--hssc-navy) !important;
  color: #fff !important;
}
.ahss-dir-btn {
  background: var(--hssc-navy) !important;
  color: #fff !important;
  border-color: var(--hssc-navy) !important;
}
.ahss-dir-btn--ghost {
  background: #fff !important;
  color: var(--hssc-navy) !important;
  border-color: var(--hssc-border) !important;
}
.ahss-dir-ql:hover {
  background: var(--hssc-navy) !important;
  color: #fff !important;
}

/* ── 7. School directory A–Z bar — active letter = crimson ────────────── */
.ahss-dir-alpha a.is-active {
  background: var(--hssc-red) !important;
  border-color: var(--hssc-red) !important;
  color: #fff !important;
}

/* ── 8. Scoreboard status badges — keep crimson for live ──────────────── */
.ahss-scoreboard-status.is-live {
  color: var(--hssc-red) !important;
  background: rgba(200,16,46,.08) !important;
  border-color: rgba(200,16,46,.25) !important;
}
/* Live card stripe = crimson */
.ahss-scoreboard-card.live::before {
  background: linear-gradient(90deg, var(--hssc-red), #e84060) !important;
}
/* Active class pill = navy */
.ahss-scoreboard-class-pill.is-active,
.ahss-scoreboard-tab.is-active {
  background: var(--hssc-navy) !important;
  border-color: var(--hssc-navy) !important;
  color: #fff !important;
}
.ahss-scoreboard-btn {
  background: var(--hssc-navy) !important;
  border-color: var(--hssc-navy) !important;
  color: #fff !important;
}
.ahss-scoreboard-btn--ghost {
  background: #fff !important;
  color: var(--hssc-navy) !important;
  border-color: var(--hssc-border) !important;
}

/* ── 9. Page title — hide h1 on pages that have a hero banner image ─────
   The hero image already names the page. The h1 is visually redundant
   and creates awkward double-labelling on Scoreboard / Power Ratings
   / School Directory pages.                                        ── */
.page-template-default .hssc-page-no-title h1.entry-title,
body.page-id-scoreboard .hssc-content h1,
body.page-id-power-ratings .hssc-content h1 { display: none; }

/* ── 10. Tighten page padding — plugin shortcodes have their own padding ── */
.hssc-page-full .hssc-content {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ── 11. Power ratings table header row — navy background ─────────────── */
.ahss-power-ratings-hub .hssc-table thead th,
.ahss-rankings .hssc-table thead th {
  background: linear-gradient(180deg, #0d2d56, var(--hssc-navy)) !important;
  color: #fff !important;
}

/* =========================================================================
   Mobile nav — hamburger + dropdown
   ========================================================================= */

/* Nav container: flex row so hamburger sits right of the links */
.hssc-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Hamburger button — hidden on desktop */
.hssc-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--hssc-border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.hssc-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--hssc-navy);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
/* Animate to X when open */
.hssc-navwrap.is-open .hssc-nav-toggle .hssc-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hssc-navwrap.is-open .hssc-nav-toggle .hssc-nav-toggle__bar:nth-child(2) { opacity: 0; }
.hssc-navwrap.is-open .hssc-nav-toggle .hssc-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  /* Show hamburger */
  .hssc-nav-toggle { display: flex; }

  /* Hide the nav links by default; show when .is-open */
  .hssc-navwrap .hssc-nav,
  .hssc-navwrap ul.hssc-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hssc-surface);
    border-bottom: 3px solid var(--hssc-red);
    box-shadow: 0 8px 24px rgba(10,35,66,.12);
    padding: 8px 0;
    z-index: 200;
    flex-direction: column;
    gap: 0;
  }
  .hssc-navwrap.is-open .hssc-nav,
  .hssc-navwrap.is-open ul.hssc-nav {
    display: flex;
  }

  /* Full-width link rows */
  .hssc-navwrap .hssc-nav a,
  .hssc-navwrap ul.hssc-nav li a {
    display: flex;
    width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--hssc-border);
    padding: 13px 20px;
    font-size: 15px;
  }
  .hssc-navwrap .hssc-nav a:last-child,
  .hssc-navwrap ul.hssc-nav li:last-child a { border-bottom: none; }

  /* Active item — left border instead of background */
  .hssc-navwrap .hssc-nav .current-menu-item > a,
  .hssc-navwrap .hssc-nav a[aria-current="page"] {
    background: rgba(200,16,46,.06);
    color: var(--hssc-red);
    border-left: 3px solid var(--hssc-red);
    border-bottom: 1px solid var(--hssc-border);
    padding-left: 17px;
  }
}

/* =========================================================================
   Topbar search bar
   ========================================================================= */
.hssc-topbar-search {
  flex: 1;
  max-width: 280px;
  margin: 0 12px;
}
/* Override the search shortcode's colors inside the dark topbar */
.hssc-topbar-search .ahss-school-search { max-width: 100%; }
.hssc-topbar-search .ahss-ss-input {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.25) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 7px 36px 7px 12px !important;
  font-size: 13px !important;
}
.hssc-topbar-search .ahss-ss-input::placeholder { color: rgba(255,255,255,.6); }
.hssc-topbar-search .ahss-ss-input:focus {
  border-color: rgba(255,255,255,.6) !important;
  background: rgba(255,255,255,.2) !important;
  outline: none;
}
.hssc-topbar-search .ahss-ss-icon { color: rgba(255,255,255,.7); font-size:15px; }
/* Dropdown always has white background regardless of topbar */
.hssc-topbar-search .ahss-ss-dropdown { background: #fff; color: var(--hssc-text); }

/* Hide topbar search on small screens — search moves to nav area */
@media (max-width: 720px) {
  .hssc-topbar-search { display: none; }
  .hssc-topbar-links  { display: none; }
  .hssc-topbar__inner { justify-content: center; }
}
