/* ==========================================================
   Casco Bay Capitals 10U
   Jersey colors: red, navy, white. Barlow Condensed for display,
   Inter for text. Light and dark themes via CSS variables.
   ========================================================== */

@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/BarlowCondensed-700i.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/BarlowCondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/BarlowCondensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/BarlowCondensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-700.woff2') format('woff2'); }

:root {
  --navy: #0f1f3d;
  --navy-2: #172a52;
  --navy-3: #22376b;
  --red: #b52532;
  --red-dark: #941c27;
  --red-soft: #f3aab0;
  --red-tint: #fbeef0;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #17203a;
  --muted: #5e6a86;
  --line: #e0e5ee;
  --line-strong: #c7cfdd;
  --on-dark: #ffffff;
  --on-dark-soft: #b9c5e3;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 31, 61, 0.06), 0 4px 14px rgba(15, 31, 61, 0.07);
  --shadow-lg: 0 10px 30px rgba(15, 31, 61, 0.18);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a1329;
  --card: #111d3d;
  --text: #e9eefb;
  --muted: #9eaccc;
  --line: #22315a;
  --line-strong: #2f4478;
  --red-tint: #3a1a22;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container { flex: 1; }

img, svg { max-width: 100%; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

[data-theme="dark"] a { color: var(--red-soft); }
[data-theme="dark"] a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-weight: 700;
}

strong { font-weight: 600; }

.container { width: min(1140px, 92%); margin: 0 auto; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .eyebrow { color: var(--red-soft); }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: var(--on-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--red);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  position: relative;
}

.brand, [data-theme="dark"] .brand, .brand:hover {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark { width: 38px; height: 44px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-text strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.header-right { display: flex; align-items: center; gap: 0.75rem; }

.main-nav { display: flex; gap: 0.25rem; }

.main-nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-dark-soft);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; border-bottom-color: var(--red); }

.icon-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 4rem 4% 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--navy);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.hero-rink {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 62%;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
}

.hero-crest { width: 230px; flex: none; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3)); }
.hero-crest svg { display: block; width: 100%; height: auto; }

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero .eyebrow { color: rgba(255, 255, 255, 0.75); }

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 0.95;
  margin-bottom: 0.6rem;
}

.hero .motto {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.hero .tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  max-width: 48ch;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  width: 100vw;
  margin: 0 0 1.75rem calc(50% - 50vw);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 2.75rem 4% 2.6rem;
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  aspect-ratio: 2 / 1;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20400%20200%22%3E%3Cg%20fill=%22none%22%20stroke=%22#fff%22%20stroke-width=%221.5%22%3E%3Crect%20x=%224%22%20y=%224%22%20width=%22392%22%20height=%22192%22%20rx=%2240%22/%3E%3Cline%20x1=%22200%22%20y1=%224%22%20x2=%22200%22%20y2=%22196%22/%3E%3Cline%20x1=%22140%22%20y1=%224%22%20x2=%22140%22%20y2=%22196%22/%3E%3Cline%20x1=%22260%22%20y1=%224%22%20x2=%22260%22%20y2=%22196%22/%3E%3Ccircle%20cx=%22200%22%20cy=%22100%22%20r=%2230%22/%3E%3Ccircle%20cx=%2270%22%20cy=%2255%22%20r=%2222%22/%3E%3Ccircle%20cx=%2270%22%20cy=%22145%22%20r=%2222%22/%3E%3Ccircle%20cx=%22330%22%20cy=%2255%22%20r=%2222%22/%3E%3Ccircle%20cx=%22330%22%20cy=%22145%22%20r=%2222%22/%3E%3Cline%20x1=%2230%22%20y1=%224%22%20x2=%2230%22%20y2=%22196%22/%3E%3Cline%20x1=%22370%22%20y1=%224%22%20x2=%22370%22%20y2=%22196%22/%3E%3C/g%3E%3C/svg%3E") no-repeat right center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.page-hero-inner { position: relative; width: min(1140px, 100%); margin: 0 auto; }
.page-hero .eyebrow { color: var(--red-soft); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 0.95; margin-bottom: 0.5rem; }
.page-hero p:not(.eyebrow) { color: var(--on-dark-soft); max-width: 64ch; font-size: 1rem; }
.page-hero a { color: #fff; }

/* ---------- Scoreboard tiles (overlap the hero) ---------- */

.scoreboard {
  position: relative;
  z-index: 2;
  margin-top: -2.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.score-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  border-top: 4px solid var(--line-strong);
  transition: transform 0.15s;
}

.score-tile:first-child { border-top-color: var(--red); }
.score-tile:hover { transform: translateY(-2px); color: var(--text); }

.tile-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.score-tile:first-child .tile-label { color: #ffffff; background: var(--red); align-self: flex-start; padding: 0.05rem 0.5rem; border-radius: 3px; margin-bottom: 0.25rem; }
[data-theme="dark"] .tile-label { color: var(--red-soft); }

.tile-date {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}

[data-theme="dark"] .tile-date { color: #fff; }

.tile-what { font-weight: 600; font-size: 1rem; margin-top: 0.2rem; }
.tile-when { font-size: 0.86rem; color: var(--muted); }

/* ---------- Next-up card (legacy) ---------- */

.next-card {
  position: relative;
  z-index: 2;
  margin-top: -2.75rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 6px solid var(--red);
}

.next-card-date {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy);
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
}

.next-card-date span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 0.2rem;
}

[data-theme="dark"] .next-card-date { color: #fff; }
[data-theme="dark"] .next-card-date span { color: var(--red-soft); }

.next-card-body .eyebrow { margin-bottom: 0.1rem; }
.next-card-body h2 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.next-card-body p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Panels and sections ---------- */

.section-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.section-panel > h2, .panel-title {
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.section-panel > h2::after, .panel-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--red);
}

[data-theme="dark"] .section-panel > h2 { color: #fff; }

.section-panel h3 { font-size: 1.15rem; color: var(--navy); }
[data-theme="dark"] .section-panel h3 { color: #fff; }

.panel {
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.panel.accent { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.panel.accent a { color: var(--red-soft); }
.panel.accent h1, .panel.accent h2 { color: #fff; }
.panel.accent .panel-title::after { background: var(--red); }

.page-title {
  margin: 2.5rem 0 0.35rem;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--navy);
}

[data-theme="dark"] .page-title { color: #fff; }

.page-sub { color: var(--muted); margin-bottom: 1rem; max-width: 70ch; font-size: 1rem; }

.panel-kicker { margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; }
.panel-foot { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.home-grid .section-panel { margin: 0; }

.focus-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.focus-cols h3 { margin-bottom: 0.5rem; }

.tight-list { padding-left: 1.15rem; font-size: 0.95rem; }
.tight-list li { margin-bottom: 0.4rem; }
.tight-list li::marker { color: var(--red); }

.big-list { padding-left: 1.3rem; font-size: 0.97rem; }
.big-list li { margin-bottom: 0.5rem; }
.big-list li::marker { color: var(--red); font-weight: 700; }

.know-list { list-style: none; padding: 0; margin: 0; }

.know-list li {
  padding: 0.8rem 0 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--red);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.know-list li:last-child { margin-bottom: 0; }
.know-list strong { color: var(--text); }

.home-grid.wide-left { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); }

.glance { list-style: none; padding: 0; margin: 0; }

.glance li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.glance li:last-child { border-bottom: none; }

.glance span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

[data-theme="dark"] .glance span { color: var(--red-soft); }

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.coach-card {
  background: var(--bg);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
}

.coach-card .eyebrow { margin-bottom: 0.15rem; }
.coach-card h3 { font-size: 1.5rem; color: var(--navy); }
[data-theme="dark"] .coach-card h3 { color: #fff; }

/* ---------- Coming up list ---------- */

.next-list { list-style: none; margin: 0; padding: 0; }

.next-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.next-item:first-child { padding-top: 0.25rem; }
.next-item:last-child { border-bottom: none; }

.next-date {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}

.next-date span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.2rem;
}

[data-theme="dark"] .next-date { color: #fff; }
[data-theme="dark"] .next-date span { color: var(--red-soft); }

.next-what { font-size: 0.92rem; color: var(--muted); }
.next-what strong { display: block; font-size: 1.02rem; color: var(--text); font-weight: 600; }

.next-when { font-weight: 600; font-size: 0.9rem; text-align: right; white-space: nowrap; }

/* ---------- Priorities band ---------- */

.band {
  width: 100vw;
  margin: 2.5rem 0 0 calc(50% - 50vw);
  background: var(--navy);
  color: #fff;
  padding: 3rem 4%;
  border-top: 3px solid var(--red);
}

.band-inner { width: min(1140px, 100%); margin: 0 auto; }

.band h2 { font-size: 1.7rem; margin-bottom: 1.5rem; }

.priority-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
}

.priority-row li {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  padding-left: 0.9rem;
}

.priority-row span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red-soft);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.band-foot { margin-top: 1.75rem; color: var(--on-dark-soft); font-size: 0.9rem; }
.band-foot a { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  transition: background 0.15s, transform 0.12s;
}

.btn:hover { background: var(--navy-3); color: #fff; transform: translateY(-1px); }

.btn.navy { background: var(--navy); color: #fff; }
.btn.accent { background: var(--red); color: #fff; }
.btn.white, .panel.accent .btn.white { background: #fff; color: var(--navy); }
.btn.white:hover { background: var(--red); color: #ffffff; }
.btn.ghost { background: transparent; border: 2px solid rgba(255, 255, 255, 0.55); color: #fff; padding-top: calc(0.7rem - 2px); padding-bottom: calc(0.7rem - 2px); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.gold, [data-theme="dark"] .btn.gold { background: #ffffff; color: var(--red); }
.btn.gold:hover, [data-theme="dark"] .btn.gold:hover { background: var(--navy); color: #ffffff; }
.btn-inline { margin-top: 1.1rem; }

[data-theme="dark"] .btn, [data-theme="dark"] .btn.navy { background: var(--navy-3); }
[data-theme="dark"] .btn:hover { background: var(--red); }

.btn-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-stack .btn { display: block; }

/* ---------- Cards ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.audience-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.audience-card h2 { color: var(--navy); font-size: 1.45rem; margin-bottom: 0.5rem; }
[data-theme="dark"] .audience-card h2 { color: #fff; }
.audience-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; flex: 1; }

/* ---------- Coaches ---------- */

.coach-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.coach-mini { display: flex; align-items: center; gap: 0.85rem; }

.coach-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  flex: none;
}

.coach-mini strong { display: block; font-weight: 600; }
.coach-mini span { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; }

.roster-table, .plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.roster-table th, .plan-table th {
  text-align: left;
  padding: 0.5rem 0.9rem 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--navy);
}

[data-theme="dark"] .roster-table th, [data-theme="dark"] .plan-table th { border-bottom-color: var(--red-soft); }

.roster-table td, .plan-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.roster-table tr:last-child td, .plan-table tr:last-child td { border-bottom: none; }

.plan-table .time {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
}

[data-theme="dark"] .plan-table .time { color: var(--red-soft); }

.placeholder-banner {
  background: var(--red-tint);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
}

.goalie-note {
  margin-top: 1.1rem;
  background: var(--red-tint);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
}

/* ---------- Collapsibles ---------- */

details.more { margin-top: 1.1rem; }

details.more summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

details.more summary::-webkit-details-marker { display: none; }

details.more summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1;
}

details.more[open] summary::before { content: "-"; }
details.more[open] summary { margin-bottom: 1rem; }
[data-theme="dark"] details.more summary { color: var(--red-soft); }

.week-plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}

.week-plan summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy);
  color: #fff;
}

.week-plan summary::-webkit-details-marker { display: none; }

.week-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  background: var(--red);
  color: #ffffff;
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.week-title { flex: 1; }
.week-title h3 { font-size: 1.25rem; color: #fff; }
.week-title p { font-size: 0.82rem; color: var(--on-dark-soft); }

.week-plan .chev {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 0.3rem;
}

.week-plan[open] .chev { transform: rotate(-135deg); }

.plan-body { padding: 1.5rem; }
.plan-body h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
[data-theme="dark"] .plan-body h3 { color: #fff; }

/* ---------- Drill library ---------- */

.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.filter-panel h2 { color: var(--navy); font-size: 1.3rem; margin-bottom: 0.75rem; }
[data-theme="dark"] .filter-panel h2 { color: #fff; }

.filter-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: flex-end; }

.filter-field { display: flex; flex-direction: column; gap: 0.25rem; }

.filter-field label {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.filter-field select, .filter-field input {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--body);
  background: var(--card);
  color: var(--text);
  min-width: 150px;
}

.filter-reset {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.filter-reset:hover { background: var(--navy-3); }

.drill-count { font-size: 0.88rem; color: var(--muted); margin: 0 0 1rem; }

.drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.drill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drill-card.hidden { display: none; }

.drill-card summary { list-style: none; cursor: pointer; }
.drill-card summary::-webkit-details-marker { display: none; }

.drill-diagram {
  background: #eef2f8;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem;
}

[data-theme="dark"] .drill-diagram { background: #0a1329; }

.drill-diagram svg { display: block; width: 100%; height: auto; }

.drill-summary-body { padding: 1rem 1.25rem; }

.drill-summary-body h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 0.4rem; }
[data-theme="dark"] .drill-summary-body h3 { color: #fff; }

.badge-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }

.badge {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.badge.cat { background: var(--navy); color: #fff; }
.badge.team { background: var(--red); color: #ffffff; }
.badge.level { background: transparent; border-color: var(--line-strong); color: var(--text); }

.drill-meta { display: flex; gap: 0.9rem; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }

.view-drill {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--red);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[data-theme="dark"] .view-drill { color: var(--red-soft); }

.drill-card[open] .view-drill .closed-label, .drill-card:not([open]) .view-drill .open-label { display: none; }

.drill-detail { padding: 0 1.25rem 1.25rem; border-top: 1px dashed var(--line-strong); }

.drill-detail h4 {
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin: 1rem 0 0.35rem;
}

[data-theme="dark"] .drill-detail h4 { color: var(--red-soft); }

.drill-detail ol, .drill-detail ul { padding-left: 1.25rem; font-size: 0.92rem; }
.drill-detail li { margin-bottom: 0.3rem; }

.skill-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; padding-left: 0 !important; list-style: none; }

.skill-tags li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ---------- Skills page diagrams ---------- */

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.diagram-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.diagram-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 0.6rem; }
[data-theme="dark"] .diagram-card h3 { color: #fff; }
.diagram-card p { font-size: 0.92rem; color: var(--muted); }
.diagram-card figure { margin: 0.75rem 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-dark-soft);
  padding: 2.5rem 0 1.75rem;
  margin-top: 0;
  border-top: 3px solid var(--red);
}

.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: #fff; }

.footer-bottom { text-align: center; font-size: 0.85rem; }

.footer-motto {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-disclaimer {
  max-width: 70ch;
  margin: 1rem auto 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(185, 197, 227, 0.75);
}

.site-disclaimer a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 0.5rem 4% 0.75rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--red);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .main-nav a.active { border-bottom-color: rgba(255, 255, 255, 0.08); color: var(--red-soft); }

  .brand-text strong { font-size: 1.2rem; }
}

@media (max-width: 960px) {
  .home-grid.wide-left { grid-template-columns: 1fr; }
  .hero-crest { width: 150px; }
}

@media (max-width: 700px) {
  .hero { padding: 2.75rem 5% 3.75rem; }
  .page-hero { padding: 2rem 5% 1.9rem; }
  .page-hero::before { width: 90%; right: -30%; opacity: 0.05; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-crest { display: none; }
  .hero-rink { width: 120%; right: -30%; opacity: 0.05; }
  .scoreboard { grid-template-columns: 1fr; margin-top: -2rem; }

  .next-card { grid-template-columns: 1fr; gap: 0.9rem; padding: 1.25rem; }
  .next-card-date { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
  .next-card .btn { justify-self: start; }

  .next-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .next-when { text-align: left; white-space: normal; }

  .section-panel { padding: 1.25rem; }
  .band { padding: 2.25rem 5%; }
  .priority-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 400px) {
  .brand-text span { display: none; }
}
