/* ==========================================================================
   Pillager Youth Basketball Association — base styles
   Brand palette taken from the live site: black + gold + maroon.
   Edit the color variables below to fine-tune.
   ========================================================================== */

/* Sporty display font (collegiate varsity). To try another, swap this import
   and the --font-display value below — e.g. "Anton" or "Bebas Neue". */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Graduate&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --black: #0a0908;        /* hero / header / footer background */
  --black-soft: #161311;
  --maroon: #45131a;       /* cards, logo, accents (darker) */
  --maroon-dark: #2a0c10;
  --maroon-light: #5c1d22;
  --gold: #cfa01c;         /* brand gold (deeper, less shiny/neon) */
  --gold-bright: #e1b743;
  --gold-dark: #a87e08;
  --cream: #f7f1d9;        /* warm off-white text on dark */

  /* Dark surfaces + light text (site is a dark theme) */
  --page-bg: #1a0000;       /* dark maroon-black (matches live site) */
  --surface: #230303;       /* cards, tables, panels */
  --surface-2: #2c0707;     /* alt rows / alt sections / inputs */
  --gray-50: #2c0707;       /* alt surface */
  --gray-100: #3d1414;      /* borders on dark */
  --gray-300: #5a2b2b;      /* input borders */
  --glow-gold: 0 0 10px rgba(207, 160, 28, 0.16); /* subtle gold glow */
  --gray-600: #cabaa6;      /* muted warm text (no cool gray) */
  --gray-800: #f6efe2;      /* main warm off-white text */
  --white: #ffffff;         /* true white (hero title, etc.) */

  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 38px rgba(0, 0, 0, 0.55);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --glow: 0 0 8px rgba(207, 160, 28, 0.28);
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Anton", "Oswald", "Arial Narrow", sans-serif;
  --font-accent: "Graduate", "Georgia", serif;
}

* { box-sizing: border-box; }

html { background: var(--page-bg); }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
}
body { background: transparent; }

/* Site-wide video background (behind all content, on every page) */
.site-bg-video {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.site-bg-overlay {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(20, 0, 0, 0.66);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-bright); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Centered card for standalone forms (registration, coach application, login) */
.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(180deg, #2a0404 0%, #1a0101 100%);
  border-radius: 18px;
  padding: 30px 34px;
  box-shadow: var(--shadow), var(--glow-gold), var(--inset-hi);
}
.form-card h2 { margin-top: 0; }
.form-card .form { max-width: 100%; }
.form-card { border: 1px solid var(--gold-dark); }
@media (max-width: 600px) { .form-card { padding: 24px 20px; } }

/* Box every form that sits inside a dashboard panel */
.panel .form, .panel .admin-form {
  background: var(--surface-2);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 10px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--cream);
  /* Depth: gradient + glow + rounded BOTTOM only (flush to top) */
  background:
    linear-gradient(135deg, #350606 0%, #1a0101 45%, #120000 70%, #2c0404 100%);
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 18px 18px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 6px 22px rgba(230, 176, 23, 0.30),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 40px;
  max-width: none;
  margin: 0;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand-text { line-height: 1.15; }
.nav__logo {
  width: 46px; height: 46px;
  background: linear-gradient(145deg, var(--maroon-light) 0%, var(--maroon) 45%, var(--maroon-dark) 100%);
  border: 2px solid var(--gold);
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; color: var(--gold);
  font-size: 0.9rem; letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(230, 176, 23, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 8px rgba(230, 176, 23, 0.55);
}
.nav__brand-text { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

/* Logo image (the PNG already includes the name) */
.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  /* the logo's black background blends into the dark header */
  mix-blend-mode: lighten;
}
.nav__logo-img--drawer { height: 26px; max-width: 180px; }

/* Hamburger button: rounded box with a glowing gold outline */
.nav__menu-btn {
  background: rgba(230, 176, 23, 0.08);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  cursor: pointer;
  width: 44px; height: 40px; padding: 10px 9px;
  display: flex; flex-direction: column; justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(230, 176, 23, 0.55), inset 0 0 7px rgba(230, 176, 23, 0.22);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.nav__menu-btn span {
  display: block; height: 2.5px; width: 100%;
  background: var(--gold); border-radius: 2px;
}
.nav__menu-btn:hover {
  background: rgba(230, 176, 23, 0.16);
  box-shadow: 0 0 20px rgba(230, 176, 23, 0.85), inset 0 0 9px rgba(230, 176, 23, 0.35);
}
.nav__menu-btn:hover span { background: var(--gold-bright); }

/* Primary links pushed to the right */
.nav__primary {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 0 auto; padding: 0;
}
.nav__primary a {
  color: var(--cream);
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 600;
}
.nav__primary a:hover { color: var(--gold); background: rgba(230, 176, 23, 0.10); text-decoration: none; }
.nav__primary a.is-active {
  color: var(--black);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  box-shadow: 0 0 14px rgba(230, 176, 23, 0.55);
}
.nav__menu-btn span { box-shadow: 0 0 6px rgba(230, 176, 23, 0.45); }

/* Slide-out drawer (the full menu) */
.nav__backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 9, 8, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
  z-index: 90;
}
.nav__backdrop.is-open { opacity: 1; visibility: visible; }
.nav__drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 300px; max-width: 86vw;
  background: linear-gradient(160deg, #5e1a1a 0%, #2a0707 55%, #160000 100%);
  border-radius: 0 16px 80px 0;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 100;
  padding: 0;
  overflow-y: auto;
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
}
.nav__close {
  background: none; border: none; color: var(--cream);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.nav__close:hover { color: var(--gold); }
.nav__drawer-links { list-style: none; margin: 0; padding: 8px 0; }
.nav__drawer-links a {
  display: block;
  color: #ffffff;
  padding: 13px 24px;
  font-size: 1.1rem;
  font-family: var(--font);
  font-weight: 500;
}
.nav__drawer-links a:hover { color: var(--gold); text-decoration: none; }
.nav__drawer-links a.is-active { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--gold-bright); text-decoration: none; color: var(--black); box-shadow: var(--glow); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover { background: rgba(230, 176, 23, 0.12); color: var(--gold-bright); }
.btn--ghost {
  background: var(--maroon);
  color: var(--cream);
}
.btn--ghost:hover { background: var(--maroon-light); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 50% 35%, rgba(92, 29, 38, 0.45) 0%, transparent 62%),
    linear-gradient(135deg, #350606 0%, #120000 55%, #2c0404 100%);
  color: var(--cream);
  text-align: center;
  /* Pull up so it tucks beneath the rounded navigation bar */
  margin-top: -26px;
  padding: 96px 20px 72px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  /* Shade taken off the video — only a faint bottom fade for text legibility */
  background: linear-gradient(180deg, rgba(20,0,0,0) 0%, rgba(20,0,0,0) 55%, rgba(20,0,0,0.30) 100%);
}
.hero h1, .hero p, .hero__actions { position: relative; z-index: 2; }

/* Video background for the main content section */
.section--video { position: relative; overflow: hidden; }
.section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.section__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(26,0,0,0.72) 0%, rgba(26,0,0,0.82) 100%); }
.section--video > .container { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.hero p { font-size: 1.2rem; max-width: 660px; margin: 0 auto 28px; color: var(--gold); font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Home page ---------- */
.hero--banner { padding: 104px 20px 92px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.hero--banner h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.home-card {
  background:
    linear-gradient(180deg, #2a0404 0%, #1c0202 60%, #100000 100%) padding-box,
    linear-gradient(150deg, rgba(255, 248, 230, 0.92) 0%, var(--gold) 38%, rgba(230, 176, 23, 0.45) 100%) border-box;
  border: 2px solid transparent;
  border-radius: 18px; padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow), 0 0 20px rgba(230, 176, 23, 0.30);
}
.home-card h3 { color: var(--gold); font-size: 1.4rem; margin: 0 0 16px; }
.home-card p { color: var(--cream); margin: 0 0 12px; line-height: 1.6; }
.home-card__note { color: var(--gray-600); font-style: italic; font-size: 0.9rem; margin-top: 16px; }
.home-card--logo { display: flex; align-items: center; justify-content: center; padding: 22px; }

/* Circular husky badge (images/pyba-badge.jpg). The source file is square
   with an uneven white margin around the artwork — 17px top/left, 26px bottom,
   0 right — so the image is oversized inside a circular, overflow-hidden
   wrapper to push that white out of frame. The long wordmark
   (images/pyba-logo.png) stays the navigation logo. */
.badge-circle {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold); background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(230, 176, 23, 0.35);
}
.badge-circle > img {
  display: block; width: 106%; height: 106%;
  margin: -3% 0 0 -2%;
  object-fit: cover;
}
.badge-circle--xl { max-width: 230px; }
.badge-circle--lg { max-width: 160px; }
.badge-circle--md { max-width: 96px; }
.home-card .btn { margin-top: 10px; }

.build { text-align: center; }
.build .build__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7rem);
  color: var(--gold); margin: 0 0 20px; line-height: 1.02;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.build__sub { color: var(--cream); font-size: clamp(1.1rem, 2.5vw, 1.45rem); max-width: 700px; margin: 0 auto; font-weight: 600; }

.home-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .home-two { grid-template-columns: 1fr; } }
.home-panel {
  background: linear-gradient(180deg, #240303 0%, #150101 100%);
  border: 1px solid var(--gray-100); border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
}
.home-panel > h3, .home-panel__head h3 { color: var(--white); font-size: 1.5rem; margin: 0 0 16px; }
.home-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.home-panel__head h3 { margin: 0; }
.home-panel__link { color: var(--gold); font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.ann h4 {
  color: var(--gold-bright);
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}
.ann p { color: var(--gray-600); margin: 0 0 12px; font-size: 0.95rem; line-height: 1.6; }

.sched-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--gray-100); border-radius: 12px; background: rgba(0, 0, 0, 0.22);
}
.sched-item:last-child { margin-bottom: 0; }
.sched-date { text-align: center; min-width: 46px; color: var(--gold); font-family: var(--font-display); line-height: 1.1; }
.sched-date .m { font-size: 0.72rem; letter-spacing: 1px; }
.sched-date .d { font-size: 1.35rem; }
.sched-main { flex: 1; min-width: 0; }
.sched-main .t { color: var(--cream); font-weight: 700; }
.sched-main .meta { color: var(--gray-600); font-size: 0.85rem; }
.sched-badge { background: var(--surface-2); border: 1px solid var(--gray-300); color: var(--gold); border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.marquee { overflow: hidden; background: linear-gradient(135deg, #350606 0%, #120000 60%, #2c0404 100%); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); padding: 14px 0; margin: 8px 0; }
.marquee__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { color: var(--gold); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 1.5px; text-transform: uppercase; }
.marquee__dot { font-size: 1.05rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.home-cta {
  border: 2px solid rgba(230, 176, 23, 0.6); border-radius: 18px; padding: 42px 36px; text-align: center;
  background: linear-gradient(180deg, #2a0404 0%, #150101 100%); box-shadow: var(--glow-gold); max-width: 840px; margin: 0 auto;
}
.home-cta h2 { color: var(--gold); margin: 0 0 14px; }
.home-cta p { color: var(--cream); max-width: 620px; margin: 0 auto 24px; line-height: 1.6; }
.home-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: rgba(0, 0, 0, 0.18); }
.section--dark { background: var(--black); color: var(--cream); }
.section--dark h2 { color: var(--gold); }
.section--dark .section__intro { color: var(--cream); }
.section h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-top: 0;
}
h3 { font-family: var(--font-accent); font-weight: 400; letter-spacing: 0.3px; }
/* Anton and Graduate each ship a single weight — bold would render as smeared
   faux-bold, so headings using them stay at 400. */
h1, h2, .hero h1, .section h2, .stat .num { font-weight: 400; }
.section__intro, .ann p, .card p { font-family: var(--font-accent); font-weight: 400; }
.section__intro { color: var(--gray-600); max-width: 700px; }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: linear-gradient(180deg, #2a0404 0%, #270202 33%, #170101 66%, #050000 100%);
  border: none;
  border-radius: 18px;
  box-shadow: var(--shadow), var(--glow-gold), var(--inset-hi);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(230, 176, 23, 0.5), var(--inset-hi);
}
.card h3 { margin: 0 0 6px; color: var(--gold); }
.card .meta { color: var(--gray-600); font-size: 0.9rem; }
.card a { color: var(--gold); font-weight: 600; }

/* Maroon feature cards (brand-forward, like the live site) */
.card--maroon {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border: 1px solid var(--gold-dark);
  border-top: 4px solid var(--gold);
  color: var(--cream);
}
.card--maroon h3 { color: var(--gold); }
.card--maroon .meta { color: var(--cream); }
.card--maroon a { color: var(--gold-bright); }

/* ---------- Table (schedule) ---------- */
.table-wrap {
  overflow-x: auto;            /* wide tables scroll sideways instead of overflowing the page */
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(230, 176, 23, 0.12);
  box-shadow: var(--shadow);
}
.table-wrap table.data { box-shadow: none; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  color: var(--gray-800);
}
table.data th, table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
}
table.data th { background: var(--maroon); color: var(--gold); font-weight: 700; }
table.data tr:nth-child(even) td { background: var(--gray-50); }

/* ---------- Forms ---------- */
.form { max-width: 620px; }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--gold); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--surface-2);
  color: var(--gray-800);
}
.form input::placeholder, .form textarea::placeholder { color: var(--gray-600); }
input[type=file] {
  color: var(--gray-800); background: var(--surface-2);
  border: 1px solid var(--gray-300); border-radius: 8px; padding: 9px 12px;
  max-width: 460px; width: 100%; font-family: var(--font);
}
input[type=file]::file-selector-button {
  background: var(--gold); color: var(--black); border: none; border-radius: 8px;
  padding: 8px 14px; font-weight: 700; margin-right: 12px; cursor: pointer; font-family: var(--font);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 176, 23, 0.25);
}
.form .req { color: var(--gold-bright); }
.form__note { font-size: 0.9rem; color: var(--gray-600); }

.alert { padding: 14px 16px; border-radius: 8px; margin: 16px 0; }
.alert--success { background: #e7f6ec; color: #1c6b3a; border: 1px solid #b9e3c6; }
.alert--error { background: #fdeaea; color: #a12525; border: 1px solid #f3c2c2; }
.alert--info { background: #fbf6e0; color: #6b5b00; border: 1px solid #ecd98a; }
.hidden { display: none; }

.loading { color: var(--gray-600); padding: 20px 0; }

/* ---------- Footer ---------- */
.site-footer {
  color: var(--cream);
  padding: 22px 22px 18px;
  margin-top: 28px;
  /* Mirror the header: same gradient + glow, rounded TOP corners */
  background:
    linear-gradient(135deg, #350606 0%, #1a0101 45%, #120000 70%, #2c0404 100%);
  border-top: 3px solid var(--gold);
  border-radius: 18px 18px 0 0;
  box-shadow:
    0 -10px 30px rgba(0, 0, 0, 0.45),
    0 -6px 22px rgba(230, 176, 23, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: none;
}
.site-footer a { color: var(--gold); }
.site-footer h4 { margin: 0 0 2px; color: var(--gold); font-size: 0.95rem; }
.site-footer p { margin: 0; }
.site-footer .muted { color: #c4baa4; font-size: 0.85rem; }
.footer-credit { font-size: 0.8rem; }
@media (max-width: 560px) {
  .site-footer .container { justify-content: flex-start; gap: 6px; }
}

/* ---------- Dashboard ---------- */
.dash-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--gray-100); margin-bottom: 24px; }
.tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 12px 18px; font-size: 1rem; font-weight: 600;
  color: var(--gray-600); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn:hover { color: var(--gold); }
.tab-btn.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stat {
  background: linear-gradient(160deg, var(--maroon-light) 0%, var(--maroon) 45%, var(--maroon-dark) 100%);
  color: var(--cream);
  border-radius: var(--radius); padding: 18px 24px; min-width: 150px;
  border: none;
  box-shadow: var(--shadow), var(--glow-gold), var(--inset-hi);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), 0 0 24px rgba(230, 176, 23, 0.5), var(--inset-hi); }
.stat .num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--gold); }
.stat .label { font-size: 0.9rem; }

/* ---------- Combined dashboard shell (sidebar + sections) ---------- */
/* Dashboard is an app view — give it more width than the marketing pages */
[data-page="dashboard"] .section > .container { max-width: 1600px; }
.dash-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; margin-top: 22px; }
/* Let the content column shrink below its content so wide tables scroll
   inside their wrapper instead of stretching the whole page. */
.dash-main { min-width: 0; }
.dash-side {
  background: linear-gradient(160deg, #420c0c 0%, #260303 55%, #1c0202 100%);
  border: 2px solid rgba(230, 176, 23, 0.55);
  border-radius: 20px; padding: 12px;
  box-shadow: var(--shadow), var(--glow-gold);
  position: sticky; top: 92px;
  overflow: hidden;
}
.dash-side button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; border: none; color: var(--cream);
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 400; font-size: 1.05rem;
  letter-spacing: 0.4px; margin-bottom: 2px;
}
.dash-side button svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.9; }
.dash-side button:hover { color: var(--gold); text-shadow: 0 0 8px rgba(230, 176, 23, 0.5); }
.dash-side button.is-active {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--black); font-weight: 400;
  box-shadow: 0 0 14px rgba(230, 176, 23, 0.5);
}
.dash-side button.is-active svg { opacity: 1; }
.dash-side button .side-badge {
  margin-left: auto; background: #d12d2d; color: #fff; font-size: 0.75rem; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center;
}
.dash-section { display: none; }
.dash-section.is-active { display: block; }
.export-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.roster-card { background: var(--surface-2); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.roster-card h4 { margin: 0 0 8px; color: var(--gold); font-family: var(--font-display); letter-spacing: .3px; }
.roster-list { list-style: none; padding: 0; margin: 0 0 12px; }
.roster-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.roster-list li:last-child { border-bottom: none; }
.ros-x { background: none; border: none; color: #e26a6a; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.ros-x:hover { color: #ff8a8a; }
.roster-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.roster-add select { background: var(--surface); color: var(--gray-800); border: 1px solid var(--gray-300); border-radius: 8px; padding: 9px 11px; font-family: var(--font); min-width: 200px; }
.role-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role-switch label { font-size: 0.8rem; color: var(--cream); font-weight: 600; }
.role-switch select {
  background: #1a0000; color: var(--gold); border: 1px solid var(--gold-dark);
  border-radius: 8px; padding: 6px 10px; font-family: var(--font); font-weight: 700; cursor: pointer;
}
@media (max-width: 860px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .dash-side button { width: auto; margin-bottom: 0; }
}

/* ---------- Dashboard on phones ---------- */
@media (max-width: 600px) {
  [data-page="dashboard"] .section { padding: 22px 0; }
  [data-page="dashboard"] .container { padding: 0 12px; }
  .dash-shell { gap: 14px; margin-top: 14px; }

  /* Tighter, smaller section nav buttons so more fit per row */
  .dash-side { gap: 4px; padding: 8px; }
  .dash-side button { font-size: 0.95rem; padding: 9px 11px; gap: 8px; }
  .dash-side button svg { width: 17px; height: 17px; }

  /* Greeting bar stacks and shrinks */
  .greeting { padding: 16px 18px; gap: 12px; }
  .greeting__avatar { width: 60px; height: 60px; font-size: 1.6rem; }
  .greeting h2 { font-size: 1.45rem; }
  .greeting__right { margin-left: 0; width: 100%; gap: 14px; }
  .greeting__stats { gap: 16px; }
  .greeting__stat .n { font-size: 1.5rem; }

  /* Panels: less padding, smaller headings */
  .panel { padding: 16px 15px; margin-bottom: 16px; }
  .panel h3 { font-size: 1.2rem; }

  /* Stat cards two-up and smaller */
  .stats { gap: 10px; }
  .stat { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 14px 16px; }
  .stat .num { font-size: 1.7rem; }

  /* Slightly tighter table cells */
  table.data th, table.data td { padding: 9px 11px; }
}

/* ---------- Treasurer workspace ---------- */
.greeting {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #3a0808 0%, #240202 55%, #120000 100%);
  border: none;
  border-radius: 18px;
  padding: 22px 26px; color: var(--cream);
  box-shadow: var(--shadow), var(--glow-gold), var(--inset-hi);
}
.greeting__avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--black); border: 3px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0; box-shadow: 0 0 18px rgba(230, 176, 23, 0.5);
}
.greeting h2 { font-family: var(--font-display); margin: 0; color: var(--white); font-size: 1.9rem; }
.role-badge {
  display: inline-block; margin-top: 4px;
  background: var(--gold); color: var(--black);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.4px;
  padding: 3px 12px; border-radius: 20px;
}
/* Right-side cluster of the greeting bar: quick stats + controls */
.greeting__right { margin-left: auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.greeting__stats { display: flex; gap: 22px; }
.greeting__stat { text-align: center; line-height: 1.1; }
.greeting__stat .n { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.greeting__stat .l { font-size: 0.72rem; color: var(--cream); opacity: 0.85; letter-spacing: 0.3px; }

/* Messages icon + unread badge in the greeting bar */
.greeting__msg {
  margin-left: auto; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--gold); text-decoration: none; padding: 6px 10px;
  border-radius: 12px; transition: background 0.18s ease;
}
.greeting__msg:hover { background: rgba(230, 176, 23, 0.12); text-decoration: none; }
.greeting__msg svg { filter: drop-shadow(0 0 6px rgba(230, 176, 23, 0.5)); }
.greeting__msg-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3px; }
.greeting__badge {
  position: absolute; top: -2px; right: 2px;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: #d12d2d; color: #fff;
  border-radius: 11px; border: 2px solid #1a0000;
  font-size: 0.78rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(209, 45, 45, 0.6);
}

.panel {
  background: linear-gradient(180deg, #2a0404 0%, #260202 40%, #150101 100%);
  border: none;
  border-radius: 18px;
  box-shadow: var(--shadow), var(--glow-gold), var(--inset-hi);
  padding: 22px 24px; margin-bottom: 22px;
}
.panel h3 {
  margin: 0 0 4px; color: var(--gold);
  font-size: 1.4rem; display: flex; align-items: center; gap: 8px;
}
.panel .sub { color: var(--gray-600); font-size: 0.92rem; margin: 0 0 16px; }

/* Tasks */
.task-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.task-item:last-child { border-bottom: none; }
.task-item .t-main { flex: 1; min-width: 0; }
.task-item .t-title { font-weight: 700; color: var(--gray-800); }
.task-item .t-meta { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-top: 2px; }
.task-item .t-desc { color: var(--gray-600); font-size: 0.92rem; line-height: 1.5; margin-top: 6px; white-space: pre-wrap; }
.task-item .t-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.task-item .t-due { color: var(--gray-600); font-size: 0.88rem; white-space: nowrap; }
.task-item .task-status {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--gray-300);
  background: var(--surface-2); color: var(--gray-800); font-weight: 600; cursor: pointer;
}
.task-item.done .t-title { text-decoration: line-through; color: var(--gray-600); font-weight: 400; }

/* Coach-application board vote */
.vote-tally { margin: 10px 0; color: var(--gray-800); font-size: 0.9rem; }
.vote-tally .pill { vertical-align: middle; }
.vote-voters { margin-top: 5px; color: var(--gray-600); font-size: 0.82rem; }

/* Status pills */
.pill { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3px; }
.pill--open      { background: #fbf0d0; color: #7a5b00; }
.pill--approved  { background: #e3eefb; color: #1f4f8b; }
.pill--paid      { background: #e1f3e7; color: #1c6b3a; }
.pill--denied    { background: #fae0e0; color: #962323; }
.pill--upcoming  { background: #efeafb; color: #4a3a8c; }
.pill--duesoon   { background: #fbe6cf; color: #8a4b10; }
.pill--overdue   { background: #fad6d6; color: #9a1c1c; }
.pill--filed,
.pill--registered,
.pill--onfile    { background: #e1f3e7; color: #1c6b3a; }

/* Action buttons inline */
.btn-sm { padding: 5px 12px; font-size: 0.82rem; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; }
.btn-approve { background: var(--maroon); color: var(--cream); }
.btn-pay     { background: #1c6b3a; color: #fff; }
.btn-deny    { background: #f1efe8; color: #962323; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Volunteer events */
.vol { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.vol:last-child { border-bottom: none; }
.vol__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vol__name { font-weight: 700; color: var(--gold); }
.vol__slots { font-size: 0.85rem; color: var(--gray-600); }
.vol__signups { margin: 6px 0 8px; font-size: 0.9rem; color: var(--gray-800); }
.vol__bar { height: 8px; background: var(--gray-100); border-radius: 5px; overflow: hidden; margin: 6px 0; }
.vol__bar > span { display: block; height: 100%; background: var(--gold); }

/* Messages */
.msg {
  padding: 14px 16px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(160deg, #2a0606 0%, #1a0202 100%);
  border-left: 3px solid #5a2b2b;
}
.msg--unread { border-left-color: var(--gold); background: linear-gradient(160deg, #3d0d0d 0%, #1d0303 100%); }
.msg__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.msg__subject { font-weight: 700; color: var(--gold); }
.msg__meta { font-size: 0.85rem; color: var(--gray-600); }
.msg__body { margin: 6px 0 0; color: var(--gray-800); }
.msg__audience { display: inline-block; background: var(--maroon); color: var(--cream); font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 12px; margin-left: 6px; }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 6px; }

.disclaimer { font-size: 0.85rem; color: var(--gray-600); font-style: italic; margin-top: 10px; }
.amount { font-variant-numeric: tabular-nums; font-weight: 700; }
.amount--in { color: #1c6b3a; }
.amount--out { color: #962323; }

/* ---------- Responsive ---------- */
/* Scale up the layout, nav, and footer on large screens */
@media (min-width: 1400px) {
  :root { --max-width: 1240px; }
  .nav__logo-img { height: 46px; }
  .nav__primary a { font-size: 1.08rem; padding: 11px 20px; }
  .hero h1 { font-size: 3.9rem; }
  .hero p { font-size: 1.35rem; }
}
@media (min-width: 1800px) {
  :root { --max-width: 1340px; }
  .nav__logo-img { height: 50px; }
  .hero h1 { font-size: 4.3rem; }
  .hero p { font-size: 1.45rem; }
}
@media (min-width: 2300px) {
  :root { --max-width: 1440px; }
}

/* Print: clean black-on-white report of the on-screen section */
@media print {
  .site-header, .site-footer, .dash-side, #demo-banner, .export-bar, details, .btn, form, .greeting__msg { display: none !important; }
  .dash-shell { grid-template-columns: 1fr !important; }
  body { background: #fff !important; color: #000 !important; }
  .panel, .greeting, .stat, .card { box-shadow: none !important; background: #fff !important; color: #000 !important; border: 1px solid #bbb !important; }
  .panel h3, .section h2, .greeting h2, .greeting__stat .n, .stat .num, .vol__name, .msg__subject { color: #000 !important; }
  .greeting__avatar { color: #000 !important; border-color: #000 !important; background: #fff !important; }
  .role-badge { background: #ddd !important; color: #000 !important; }
  table.data th { background: #eee !important; color: #000 !important; }
  table.data td, .task-item .t-title, .t-due, .sub, .section__intro { color: #000 !important; }
  .amount--in { color: #0a6b2e !important; }
  .amount--out { color: #9a1c1c !important; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: 2.1rem; }
  /* On phones the hamburger holds everything; hide the inline primary links. */
  .nav__primary { display: none; }
  .nav__brand-text { font-size: 0.95rem; }

  /* Compact footer on phones — small text, minimal padding, tight stack. */
  .site-footer { padding: 14px 16px; margin-top: 14px; }
  .site-footer .container { gap: 6px; }
  .site-footer h4 { font-size: 0.85rem; margin-bottom: 2px; }
  .site-footer p { margin: 2px 0; }
  .site-footer .muted { font-size: 0.72rem; }
  .site-footer a { font-size: 0.78rem; word-break: break-all; }
  /* Trim the footer on phones: keep org name, copyright, and email only. */
  .footer-tagline, .footer-contact-head { display: none; }
}
@media (max-width: 420px) {
  .nav__brand-text { display: none; }  /* keep just the logo on very small screens */
}

/* ==========================================================================
   SITE BUILD-OUT — shared components for Programs, Sponsors, FAQ, Contact,
   News, and the expanded About page. Same black/gold/maroon system as above.
   ========================================================================== */

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ---------- Long-form text ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--cream); line-height: 1.75; margin: 0 0 18px; }
.prose h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  margin: 32px 0 10px;
}
.prose ul { color: var(--cream); line-height: 1.75; padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--gold-bright); }

/* ---------- Centered section heading ---------- */
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p {
  color: var(--cream);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---------- Division / program cards ---------- */
.div-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}
.div-card {
  background: linear-gradient(180deg, #2a0404 0%, #1a0101 100%);
  border: 1px solid var(--gold-dark);
  border-radius: 16px;
  padding: 0 0 22px;
  overflow: hidden;
  box-shadow: var(--shadow), var(--inset-hi);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.div-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-gold), var(--inset-hi);
}
.div-card__head {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-bottom: 3px solid var(--gold);
  padding: 18px 22px 16px;
}
.div-card__grade {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.1;
}
.div-card__age { color: var(--gold); font-weight: 700; font-size: 0.92rem; }
.div-card__body { padding: 18px 22px 0; flex: 1; }
.div-card__body p { color: var(--cream); margin: 0 0 14px; line-height: 1.6; }
.div-card__facts { list-style: none; padding: 0; margin: 0; }
.div-card__facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
  color: var(--cream);
}
.div-card__facts li:last-child { border-bottom: 0; }
.div-card__facts b { color: var(--gold); font-weight: 700; text-align: right; }
.div-card .btn { margin: 16px 22px 0; }

/* ---------- Sponsor tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  align-items: start;
}
.tier {
  background: linear-gradient(180deg, #2a0404 0%, #1a0101 100%);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow), var(--inset-hi);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg), var(--glow-gold), var(--inset-hi);
  position: relative;
}
.tier__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.tier__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin: 0 0 4px;
}
.tier__price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1.1;
}
.tier__price span { font-size: 1rem; color: var(--gray-600); font-family: var(--font); }
.tier__list { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.tier__list li {
  color: var(--cream);
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 0.94rem;
  line-height: 1.5;
}
.tier__list li::before {
  content: "\1F3C0";
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 0.85rem;
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.16s ease;
}
.faq details[open] { border-color: var(--gold-dark); box-shadow: var(--glow-gold); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 52px 17px 22px;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.04rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { background: var(--surface-2); }
.faq__body { padding: 0 22px 20px; }
.faq__body p { color: var(--cream); margin: 0 0 12px; line-height: 1.7; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body ul { color: var(--cream); line-height: 1.7; padding-left: 20px; margin: 0 0 12px; }

/* ---------- Numbered steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 24px 22px;
  position: relative;
  box-shadow: var(--shadow), var(--inset-hi);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.step h3 { color: var(--gold); margin: 0 0 8px; font-size: 1.15rem; }
.step p { color: var(--cream); margin: 0; line-height: 1.6; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow), var(--inset-hi);
}
.contact-card h3 { color: var(--gold); margin: 0 0 8px; font-size: 1.12rem; }
.contact-card p { color: var(--cream); margin: 0 0 6px; line-height: 1.6; }
.contact-card .muted { font-size: 0.9rem; }

/* ---------- News / announcements ---------- */
.news-list { max-width: 820px; margin: 0 auto; }
.news-item {
  background: var(--surface);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow), var(--inset-hi);
}
.news-item__date {
  color: var(--gray-600);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.news-item h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.4rem;
  margin: 6px 0 12px;
  letter-spacing: 0.5px;
}
.news-item p { color: var(--cream); line-height: 1.7; margin: 0 0 12px; }
.news-item p:last-child { margin-bottom: 0; }

/* ---------- Full-width CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 60%, #120000 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  text-align: center;
  padding: 52px 20px;
}
.cta-band h2 {
  font-family: var(--font-display);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.cta-band p { color: var(--cream); max-width: 620px; margin: 0 auto 24px; line-height: 1.65; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Value / feature grid with icons ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.value {
  background: var(--surface);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow), var(--inset-hi);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--glow-gold), var(--inset-hi); }
.value__icon { font-size: 1.9rem; line-height: 1; margin-bottom: 12px; }
.value h3 { color: var(--gold); margin: 0 0 8px; font-size: 1.12rem; }
.value p { color: var(--cream); margin: 0; line-height: 1.6; font-size: 0.95rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 20px; }
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* ---------- Footer: multi-column ---------- */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 4px; }

/* ---------- Mobile tuning ---------- */
@media (max-width: 600px) {
  .section { padding: 42px 0; }
  .container { padding: 0 18px; }
  .tier { padding: 22px 20px; }
  .div-card__grade { font-size: 1.45rem; }
  .news-item { padding: 20px 20px; }
  .cta-band { padding: 40px 18px; }
}

/* Keep top-bar links on one line so a long label can't break the nav row. */
.nav__primary a { white-space: nowrap; }

/* ==========================================================================
   Board-editable content: the announcements board and the dashboard's inline
   schedule / announcement editing rows.
   ========================================================================== */

/* "Pinned" flag next to an announcement headline on the home page. */
.ann__pin {
  display: inline-block; vertical-align: middle;
  margin-left: 8px; padding: 2px 8px;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); background: rgba(207, 160, 28, 0.10);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* A table row swapped into edit mode in the dashboard. Inputs are sized to the
   cell so a long schedule table doesn't blow out sideways. */
.data tr.is-editing > td { background: var(--surface-2); vertical-align: top; }
.data tr.is-editing input,
.data tr.is-editing select,
.data tr.is-editing textarea {
  width: 100%; min-width: 90px; margin: 0 0 6px;
  padding: 6px 8px; font: inherit; font-size: 0.9rem;
  color: var(--gray-800); background: var(--surface);
  border: 1px solid var(--gray-300); border-radius: 6px;
}
.data tr.is-editing textarea { resize: vertical; }
.data tr.is-editing input:last-child,
.data tr.is-editing select:last-child { margin-bottom: 0; }

/* Registration tryout groups (grade + boys/girls) on the dashboard */
.reg-group-head {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--gold-bright);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  margin: 26px 0 10px;
}
.reg-group-head:first-child { margin-top: 8px; }
.reg-group-head .muted { font-family: var(--font); font-size: 0.9rem; }

/* Newsletter card above the footer on public pages */
.news-cta { padding: 30px 0 46px; }
.news-cta__card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, #2a0404 0%, #1a0101 100%);
  border: 1px solid var(--gold-dark); border-radius: 18px;
  padding: 34px 30px;
  box-shadow: var(--shadow), var(--glow-gold), var(--inset-hi);
}
.news-cta__card h2 { color: var(--gold); margin: 0 0 8px; }
.news-cta__card p { color: var(--gray-600); margin: 0 0 18px; }
.news-cta__form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.news-cta__form input {
  background: var(--surface-2); border: 1px solid var(--gray-300); color: var(--gray-800);
  border-radius: 10px; padding: 12px 14px; min-width: 260px; font-size: 1rem;
}
.news-cta__msg { margin: 10px 0 0; min-height: 1em; }
@media (max-width: 520px) { .news-cta__form input { min-width: 100%; } }

/* Expanded player card inside the registrations table */
.reg-detail td { background: var(--surface-2); }
.reg-card { padding: 8px 6px; line-height: 1.8; }
.reg-card p { margin: 0 0 6px; }
.reg-toggle { color: var(--gold); display: inline-block; width: 14px; }
.reg-row:hover td { background: rgba(230, 176, 23, 0.06); }

/* ---------- Phone layout for the dashboard (app-style) ---------- */
@media (max-width: 700px) {
  /* Greeting: compact card — no giant avatar, stats in one tidy row */
  .greeting { flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 8px; }
  .greeting__avatar { display: none; }
  .greeting h2 { font-size: 1.35rem; }
  .greeting .role-badge { font-size: 0.72rem; }
  .greeting__right { width: 100%; margin-left: 0; }
  .greeting__stats { width: 100%; display: flex; justify-content: space-between; gap: 8px; }
  .greeting__stat { flex: 1; background: rgba(230,176,23,0.06); border: 1px solid var(--gray-100); border-radius: 10px; padding: 8px 4px; }
  .greeting__stat .n { font-size: 1.35rem; }
  .greeting__stat .l { font-size: 0.66rem; }

  /* Sidebar becomes one swipeable row of chips, stuck under the header */
  .dash-side {
    position: sticky; top: 74px; z-index: 40;
    display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 8px; padding: 10px 12px; margin: 0 -4px 14px;
    background: linear-gradient(180deg, #2a0404 0%, #1a0101 100%);
    border: 1px solid var(--gold-dark); border-radius: 14px;
    scrollbar-width: none;
  }
  .dash-side::-webkit-scrollbar { display: none; }
  .dash-side button {
    flex: 0 0 auto; white-space: nowrap;
    font-size: 0.9rem; padding: 9px 14px; border-radius: 999px;
    border: 1px solid var(--gray-100);
  }
  .dash-side button.is-active { border-color: var(--gold); }
  .dash-side button svg { width: 15px; height: 15px; }

  /* Panels and tables breathe better on a small screen */
  .panel { padding: 16px 14px; }
  .panel h3 { font-size: 1.25rem; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data { min-width: 560px; }
  .export-bar { display: flex; flex-wrap: wrap; gap: 8px; }
  .export-bar .btn { flex: 1 1 auto; text-align: center; padding: 10px 12px; font-size: 0.9rem; }
  #push-toggle { float: none !important; display: block; margin-top: 8px; }
}

/* Bottom tab bar — shown only in the installed app */
.app-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, #350606 0%, #1a0101 100%);
  border-top: 2px solid var(--gold);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
}
.app-tabbar__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; cursor: pointer;
  color: var(--cream); font-family: var(--font); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.3px; padding: 4px 0; border-radius: 10px; text-decoration: none;
}
.app-tabbar__btn:hover { text-decoration: none; color: var(--gold); }
.app-tabbar__btn.is-active { color: var(--gold); }
.app-tabbar__icon { font-size: 1.25rem; line-height: 1.2; }
body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
body.has-tabbar .site-footer { margin-bottom: 0; }

/* Dashboard forms use the full panel width — no wasted space on the right */
.panel .form, .panel .admin-form { max-width: 100%; }
.panel .form textarea, .panel .admin-form textarea {
  min-height: 160px;
  font-size: 1.05rem;
  line-height: 1.6;
}
#compose-form textarea { min-height: 220px; }
