/* Savage Fastpitch. Phone first. Club colors: black, silver/chrome, white.
   Team colors (--accent main, --accent-2 second, set by the coach) are only used on that team's page and card. */

:root {
  --black: #000000;
  --charcoal: #1b1a1b;
  --charcoal-2: #242324;
  --line: #333234;
  --chrome: #aeb1b5;
  --chrome-light: #e6e8ea;
  --steel: #696b6e;
  --white: #ffffff;
  --accent: var(--chrome);
  --accent-2: var(--chrome);
  --head: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chrome-light); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--chrome-light); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--chrome-light); color: var(--black); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Headline type: heavy condensed italic, all caps. Never used to imitate the logo. */
.h-page, .h-team, .h-section, .h-age, .btn, .event-date .day, .team-card-name, .team-card-age, .next-when, .roster .num, .eyebrow {
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.h-page, .h-team {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  line-height: 0.95;
  background: linear-gradient(180deg, var(--white) 30%, var(--chrome) 75%, var(--chrome-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-section { margin: 0 0 16px; font-size: 1.9rem; line-height: 1; color: var(--white); }
.h-section::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 10px; background: var(--chrome); }
.lede { margin: 10px 0 0; color: var(--chrome-light); font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; mix-blend-mode: screen; }
/* Public pages: just the SAVAGE letters from the logo, without its outline frame, so the full logo isn't shown twice on
   the home page (Jason, Oct 22). (public/logo-s.webp, the S alone, was tried first and kept in case he wants it back.) */
.brand-word img { height: 30px; }

.nav-desktop { display: none; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--steel); border-radius: 8px;
  font-weight: 600; color: var(--chrome-light);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 16px;
  display: grid;
}
.nav-mobile nav a {
  display: flex; align-items: center; min-height: 52px;
  padding: 0 4px; border-bottom: 1px solid var(--line);
  color: var(--white); text-decoration: none;
  font: italic 800 1.5rem/1 var(--head); text-transform: uppercase;
}
.nav-mobile nav a:last-child { border-bottom: 0; }
.nav-mobile nav a[aria-current] { color: var(--chrome); }
/* Phone menu group: "Join Savage" as a small heading, its two links indented under it. */
.nav-mobile .nav-group { padding: 14px 4px 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chrome); }
.nav-mobile nav a.nav-sub { padding-left: 18px; font-size: 1.3rem; }

/* Full menu from 1100px (8 links + Contact need the room); narrower screens get the Menu button. */
@media (min-width: 1100px) {
  .nav-mobile { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 4px; }
  .nav-desktop a:not(.btn) {
    display: flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
    color: var(--chrome-light); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border-bottom: 2px solid transparent;
  }
  .nav-desktop a:not(.btn):hover { color: var(--white); }
  .nav-desktop a[aria-current] { color: var(--white); border-bottom-color: var(--chrome); }
  .nav-desktop .btn { margin-left: 12px; }
  /* "Join Savage": not a link; hover, tap/click or keyboard focus opens its two links (gallery.js handles tap). */
  .nav-drop { position: relative; }
  .nav-drop-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: none; border: 0;
    border-bottom: 2px solid transparent; color: var(--chrome-light); font: 600 0.95rem var(--body); white-space: nowrap; cursor: default; }
  .nav-drop:hover .nav-drop-btn, .nav-drop.open .nav-drop-btn { color: var(--white); }
  .nav-drop.is-current .nav-drop-btn { color: var(--white); border-bottom-color: var(--chrome); }
  .nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 210px; padding: 6px;
    background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6); }
  /* keyboard focus (focus-visible, so a mouse click on the button can still close it) */
  .nav-drop:hover .nav-drop-menu, .nav-drop:has(:focus-visible) .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: grid; }
  .nav-desktop .nav-drop-menu a:not(.btn) { min-height: 44px; padding: 0 12px; border-bottom: 0; border-radius: 6px; }
  .nav-desktop .nav-drop-menu a:not(.btn):hover { background: var(--charcoal-2); }
  .nav-desktop .nav-drop-menu a[aria-current] { border-bottom: 0; background: var(--charcoal-2); }
  .header-row { min-height: 80px; }
  .brand img { height: 62px; }
  .brand-word img { height: 36px; }
}
/* PC: the header spans the window, logo top left and menu at the right (Jason, Oct 22). */
@media (min-width: 1240px) { .site-header .header-row { max-width: none; padding: 0 32px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 8px; border: 2px solid transparent;
  font-size: 1.3rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-small { min-height: 44px; padding: 0 16px; font-size: 1.1rem; }
.btn-primary { background: var(--chrome-light); color: var(--black); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-outline { border-color: var(--chrome); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-accent { background: var(--accent); color: var(--black); }
.btn-accent:hover { filter: brightness(1.1); color: var(--black); }
.btn .ext { font-style: normal; font-family: var(--body); font-weight: 700; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row .btn { flex: 1 1 160px; }
@media (min-width: 640px) { .btn-row .btn { flex: 0 0 auto; } }

/* ---------- home hero: stadium-light glow + brushed metal (hero only) ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 60% at 8% -10%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(55% 60% at 92% -10%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(70% 50% at 50% 115%, rgba(174, 177, 181, 0.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    var(--black);
}
/* Just the logo (Teams and Tryouts are in the menu), so the band stays short. */
.hero-inner { position: relative; padding: 24px var(--gutter); text-align: center; }
.hero-logo { width: min(100%, 520px); margin: 0 auto; mix-blend-mode: screen; }
@media (min-width: 640px) { .hero-inner { padding: 32px var(--gutter); } }

/* ---------- sections ---------- */
.section { padding: 40px 0; }
.section-alt { background: var(--charcoal); border-block: 1px solid var(--line); }
.link-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; }
.link-more::after { content: '→'; margin-left: 8px; }

/* events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start;
  padding: 14px; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius);
}
.section:not(.section-alt) .event { background: var(--charcoal); }
.event-date {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0; border-radius: 8px; background: var(--chrome-light); color: var(--black);
  line-height: 1;
}
.event-date .dow, .event-date .mon { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.event-date .day { font-size: 2rem; margin: 2px 0; }
.event-body p { margin: 0; }
.event-team { font-size: 0.8rem; font-weight: 600; color: var(--chrome); text-transform: uppercase; letter-spacing: 0.04em; }
.event-title { font-weight: 700; font-size: 1.05rem; }
.event-meta { color: var(--chrome-light); }
.event-map { display: inline-block; margin-top: 4px; color: var(--chrome); font-size: 0.92rem; }
@media (min-width: 760px) { .events { grid-template-columns: repeat(2, 1fr); } }

/* news */
.news { display: grid; gap: 12px; }
.news-item { padding: 16px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); }
.news-item h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.news-item p { margin: 0; color: var(--chrome-light); }
.news-date { font-size: 0.85rem; color: var(--chrome) !important; }

/* sponsors */
.sponsor-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sponsor-strip li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--charcoal); }

/* join band */
/* "Play for <team>" on team pages: a card in the page, not a band that looks like the footer. */
.join-section { padding-bottom: 56px; }
.join-card { padding: 24px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); }
.join-card p { margin: 0 0 20px; color: var(--chrome-light); }
.join-inner { padding-top: 40px; padding-bottom: 44px; }
.join-inner p { margin: 0 0 20px; color: var(--chrome-light); }

/* ---------- page heads ---------- */
.page-head { padding: 36px 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 50% -40%, rgba(255, 255, 255, 0.10), transparent 70%), var(--black); }
.proto-note { display: inline-block; margin: 14px 0 0; padding: 8px 12px; border: 1px dashed var(--steel); border-radius: 8px; color: var(--chrome); }
.age-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.age-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--steel); border-radius: 999px; text-decoration: none; color: var(--white); font-weight: 600;
}
.age-jump a:hover { border-color: var(--chrome-light); }

/* ---------- teams hub ---------- */
.age-group { padding: 28px 0 8px; }
.h-age { margin: 0 0 12px; font-size: 2.2rem; line-height: 1; color: var(--chrome); }
.team-cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .team-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { #teams .team-cards { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--charcoal); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--white);
  transition: background-color .15s, border-color .15s;
}
/* Team color stripe across the top: main color, then the second color. */
.team-card::before { content: ''; flex: none; height: 4px; background: linear-gradient(90deg, var(--accent) 0 64%, var(--accent-2) 64%); }
.team-card:hover { background: var(--charcoal-2); color: var(--white); border-color: var(--chrome); }
.team-card-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.team-card-body { display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.team-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-card-top::after { content: '→'; margin-left: auto; color: var(--chrome); font-weight: 700; }
.team-card-age { font-size: 1.15rem; color: var(--accent); }
/* Team logo beside the name (background removed). */
/* The row fills the card body, so the logo sits in the middle of it while the text stays at the top. */
.team-card-body.has-mark { grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-content: stretch; }
.team-card-mark { align-self: center; width: 104px; height: 72px; object-fit: contain; object-position: center; }
.team-card-text { align-self: start; display: grid; align-content: start; gap: 6px; min-width: 0; }
.has-mark .team-card-name { font-size: 1.5rem; }
.tag-open {
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--chrome-light);
  font-size: 0.75rem; font-weight: 600; color: var(--chrome-light); text-transform: uppercase; letter-spacing: 0.04em;
}
.team-card-name { font-size: 1.75rem; line-height: 1; }
.team-card-meta { color: var(--chrome-light); font-size: 0.95rem; }
.team-card-next { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--white); }
.team-card-next .label { margin-right: 8px; color: var(--chrome); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- team page ---------- */
.team-hero {
  position: relative;
  padding: 27px 0 32px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 100% -20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 80% at 0% 110%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%),
    var(--black);
}
.team-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--accent) 0 64%, var(--accent-2) 64%); }
/* GameChanger games on the team page */
.h-sub { margin: 20px 0 10px; font: 600 0.78rem/1.2 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--chrome); }
.h-section + .h-sub { margin-top: 0; }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .games { grid-template-columns: repeat(2, 1fr); } }
.game {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when res" "opp res"; align-items: center; gap: 2px 12px;
  padding: 12px 14px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius);
}
.game-when { grid-area: when; font-size: 0.85rem; font-weight: 600; color: var(--chrome); }
.game-opp { grid-area: opp; font-weight: 700; overflow-wrap: anywhere; }
.game-res { grid-area: res; font: italic 800 1.4rem/1 var(--head); white-space: nowrap; }
.res-w { color: #3ddc6b; }
.res-l { color: #ff7b7b; }
.res-t { color: var(--chrome-light); }
/* Team colors through the rest of the team page. */
.team-page .h-section::after { background: var(--accent); }
.team-page .event-date { background: var(--accent); }
.team-page .follow-link:hover { border-color: var(--accent-2); }
.team-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 6px 0 14px; border-radius: 12px; border: 1px solid var(--line); }
.team-logo { width: 100%; max-width: 480px; aspect-ratio: 16 / 9; object-fit: cover; margin: 6px 0 14px; border-radius: 12px; border: 1px solid var(--line); }
.next-game {
  margin-top: 16px; padding: 14px 16px;
  background: var(--charcoal); border: 1px solid var(--line); border-left: 4px solid var(--accent-2); border-radius: 8px;
}
.next-game p { margin: 0; }
.next-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chrome); }
.next-when { margin-top: 2px !important; font-size: 1.6rem; line-height: 1.05; }
.next-title { font-weight: 700; font-size: 1.05rem; }
.next-where { color: var(--chrome-light); }
.crumb { display: inline-flex; align-items: center; min-height: 44px; color: var(--chrome); font-weight: 600; font-size: 0.95rem; }
.crumb::before { content: '←'; margin-right: 8px; }
.eyebrow { margin: 6px 0 6px; color: var(--accent); font-size: 1.25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 0; }
.facts div { padding: 12px 14px; background: var(--charcoal); border: 1px solid var(--line); border-radius: 8px; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chrome); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; }
.facts dd a { display: inline-block; padding: 11px 0; margin: -11px 0; } /* 44px tap area, same layout */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.roster { width: 100%; border-collapse: collapse; background: var(--charcoal); }
.roster th, .roster td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roster tbody tr:last-child > * { border-bottom: 0; }
.roster thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chrome); font-weight: 600; background: var(--black); }
.roster tbody th { font-weight: 600; }
.roster td.num { width: 1%; font-size: 1.5rem; line-height: 1; color: var(--accent); text-align: right; }
.roster thead .num { text-align: right; }
.roster tbody tr:hover { background: var(--charcoal-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; text-align: center; }
.footer-logo { width: 180px; margin: 0 auto; mix-blend-mode: screen; }
.footer-line { margin: 14px 0 10px; color: var(--chrome-light); font-weight: 500; font-size: 0.85rem; }
.footer-line span { white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--chrome); }
.fine { margin: 12px 0 0; color: var(--chrome); font-size: 0.85rem; }

/* ---------- coach editor (/edit) ---------- */
.ed-main { padding-top: 20px; padding-bottom: 60px; max-width: 720px; }
.ed-main .h-page { font-size: clamp(2.2rem, 9vw, 3.2rem); margin-top: 4px; }
.ed-main .lede a { color: var(--chrome-light); }
.ed-who { display: flex; align-items: center; gap: 10px; color: var(--chrome-light); font-weight: 600; font-size: 0.92rem; }
.ed-who form { margin: 0; }
.ed-linkbtn { min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--steel); border-radius: 8px; color: var(--white); font: inherit; cursor: pointer; }
.ed-note { padding: 12px 14px; border: 1px dashed var(--steel); border-radius: 8px; color: var(--chrome-light); }
/* Admin "view as a coach" */
.ed-viewing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; padding: 12px 14px;
  background: #3a2f00; border: 1px solid #f2b705; border-radius: 8px; color: var(--white); }
.ed-viewas summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.ed-flash { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: #12301c; border: 1px solid #2f7a48; color: #d6f5e0; font-weight: 600; }
.ed-flash-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: #3a1414; border: 1px solid #a33; }
.ed-muted { color: var(--chrome); font-size: 0.92rem; }
.ed-wide { width: 100%; margin-top: 20px; }

.ed-list { display: grid; gap: 10px; margin-top: 18px; }
.ed-row { margin: 0; }
.ed-rowbtn, .ed-rowlink {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  min-height: 60px; padding: 12px 16px; text-align: left; cursor: pointer;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--white); font: inherit; text-decoration: none;
}
.ed-rowbtn:hover, .ed-rowlink:hover { border-color: var(--chrome); color: var(--white); }
.ed-rowbtn span, .ed-rowlink span { color: var(--chrome); font-size: 0.9rem; }

.ed-card { margin-top: 16px; padding: 16px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); }
.ed-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ed-cardhead h2 { margin: 0; font: italic 800 1.5rem/1 var(--head); text-transform: uppercase; }
.ed-count { color: var(--chrome); font-size: 1.1rem; }
.ed-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.ed-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chrome); font-weight: 600; }
.ed-facts dd { margin: 2px 0 0; font-weight: 600; }
/* Step-by-step help boxes in the editor (e.g. getting the GameChanger widget code) */
.ed-howto-title { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--white); }
.ed-howto { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 8px; color: var(--chrome-light); line-height: 1.5; }
.ed-howto strong { color: var(--white); }
.ed-howto a { color: var(--white); }
/* Post editor: photos/GIFs on the post now (with Remove), and previews of new ones */
.ed-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ed-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #000; }
.ed-media-item { display: grid; gap: 4px; cursor: pointer; font-size: 0.85rem; color: var(--chrome-light); }
.ed-media-item span { display: flex; align-items: center; gap: 6px; min-height: 32px; }
.ed-media-item input { width: 18px; height: 18px; accent-color: #ff6b6b; }
.ed-thumb { width: 100%; max-width: 480px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.ed-items { list-style: none; margin: 0; padding: 0; }
.ed-items li + li { border-top: 1px solid var(--line); }
.ed-items a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; color: var(--white); text-decoration: none; }
.ed-items a::after { content: '›'; color: var(--chrome); font-size: 1.4rem; margin-left: 4px; }
.ed-items a span:first-child { flex: 1; font-weight: 600; }

.ed-form { display: grid; gap: 16px; margin-top: 18px; }
.ed-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed-field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.ed-label { font-weight: 600; color: var(--chrome-light); }
.ed-label em { font-style: normal; font-weight: 400; color: var(--chrome); font-size: 0.85rem; }
.ed-field input:not([type=radio]):not([type=range]), .ed-field select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: #0d0d0d; color: var(--white); border: 1px solid var(--steel); border-radius: 8px;
  font: 400 16px/1.3 var(--body); /* 16px stops phones zooming in on focus */
  color-scheme: dark;
}
.ed-field input:focus, .ed-field select:focus { outline: 3px solid var(--chrome-light); outline-offset: 1px; border-color: var(--chrome-light); }
.ed-field input[type=range] { width: 100%; min-height: 44px; accent-color: var(--chrome-light); }
.ed-hint { color: var(--chrome); font-size: 0.88rem; }
.ed-error { color: #ff9b9b; font-weight: 600; font-size: 0.92rem; }
.has-error input { border-color: #ff6b6b; }
.ed-radios label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ed-radios input { width: 20px; height: 20px; accent-color: var(--chrome-light); }
/* Team colors picker */
.ed-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; }
.ed-swatch { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.ed-swatch input[type=radio] { width: 20px; height: 20px; flex: none; accent-color: var(--chrome-light); }
.ed-chip { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--steel); }
.ed-chip-silver { background: var(--chrome); }
.ed-chip-none { border-style: dashed; }
.ed-field .ed-swatch input[type=color] { width: 48px; min-height: 36px; height: 36px; padding: 2px; flex: none; cursor: pointer; }
.ed-preview { max-width: 360px; margin-top: 6px; }
.ed-preview .team-card-top::after { content: none; }
.ed-preview-row { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.ed-preview-num { font: italic 800 2.2rem/1 var(--head); color: var(--accent); }
.ed-colors-now { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.ed-colornow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ed-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ed-actions .btn { flex: 1 1 140px; }

.btn-danger { background: #b3261e; color: var(--white); }
.btn-danger:hover { background: #d0342b; color: var(--white); }
.ed-danger { margin-top: 28px; padding: 14px 16px; border: 1px solid #5a2323; border-radius: var(--radius); }
.ed-danger summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #ffb4b4; font-weight: 600; }
.ed-danger p { color: var(--chrome-light); }

.ed-log { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ed-log li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); }
.ed-log li.is-undone .ed-logtext strong { text-decoration: line-through; color: var(--chrome); }
.ed-logtext { display: grid; gap: 2px; }
.ed-tag { padding: 3px 8px; border: 1px solid var(--steel); border-radius: 999px; font-size: 0.78rem; color: var(--chrome); white-space: nowrap; }
.ed-undo summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--steel); border-radius: 8px; font-weight: 600; }
.ed-undo form { margin-top: 8px; }

/* team socials ("Follow the team") */
.follow { margin-top: 22px; }
.follow-label { display: block; margin-bottom: 8px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chrome); }
.follow-links { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--steel); border-radius: 999px; background: var(--charcoal);
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.follow-link span { color: var(--chrome); font-size: 0.85rem; }
.follow-link:hover { border-color: var(--accent); color: var(--white); }

/* preview password page (/enter) */
.gate { min-height: 100vh; display: grid; place-content: center; gap: 28px; padding: 32px var(--gutter); max-width: 460px; margin: 0 auto;
  background: radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 70%); }
.gate-logo { width: 100%; mix-blend-mode: screen; }
.gate-form { display: grid; gap: 14px; }
.gate-form .ed-field input { width: 100%; min-height: 48px; padding: 10px 12px; background: #0d0d0d; color: var(--white);
  border: 1px solid var(--steel); border-radius: 8px; font: 400 16px/1.3 var(--body); }

/* public forms (Tryouts, Contact) and the editor inbox */
.form-wrap { max-width: 720px; padding-top: 24px; padding-bottom: 56px; }
.form-wrap .h-section { margin-top: 12px; font-size: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ed-field textarea {
  width: 100%; min-height: 120px; padding: 10px 12px; resize: vertical;
  background: #0d0d0d; color: var(--white); border: 1px solid var(--steel); border-radius: 8px;
  font: 400 16px/1.45 var(--body); color-scheme: dark;
}
.ed-field textarea:focus { outline: 3px solid var(--chrome-light); outline-offset: 1px; border-color: var(--chrome-light); }
.has-error select, .has-error textarea { border-color: #ff6b6b; }
.ed-inboxlink { color: var(--white); text-decoration: none; flex: 1; }
.ed-log li.is-done .ed-inboxlink strong { color: var(--chrome); }
.ed-tag-new { border-color: var(--chrome-light); color: var(--white); font-weight: 700; }
.ed-facts-1 { grid-template-columns: 1fr; }
.ed-message { white-space: pre-wrap; margin: 4px 0 0; padding: 12px; background: #0d0d0d; border-radius: 8px; border: 1px solid var(--line); }

/* About page */
.about { max-width: 720px; padding-top: 28px; padding-bottom: 56px; }
.about p { margin: 0 0 18px; font-size: 1.15rem; line-height: 1.65; color: var(--chrome-light); }
.about p:first-child { color: var(--white); font-size: 1.25rem; }
.about-sign { margin-top: 28px !important; font: italic 800 2.4rem/1 var(--head) !important; text-transform: uppercase;
  background: linear-gradient(180deg, var(--white) 30%, var(--chrome) 80%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* Schedule page */
.schedule { padding-top: 12px; padding-bottom: 56px; }
.schedule .month { padding-top: 24px; }
.age-jump a[aria-current] { background: var(--chrome-light); color: var(--black); border-color: var(--chrome-light); }

/* Coaches & Staff */
.staff { padding-top: 24px; padding-bottom: 56px; display: grid; gap: 32px; }
.coaches { display: grid; gap: 14px; }
@media (min-width: 760px) { .coaches { grid-template-columns: repeat(2, 1fr); } }
.coach { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 90px; }
.coach:target { border-color: var(--chrome-light); }
.coach-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--steel); background: #0d0d0d; }
.coach-initials { display: grid; place-items: center; font: italic 800 2rem/1 var(--head); color: var(--chrome); }
.coach-name { margin: 2px 0 4px; font: italic 800 1.6rem/1 var(--head); text-transform: uppercase; }
.coach-role { margin: 0; color: var(--chrome-light); font-size: 0.95rem; }
.coach-role a { color: var(--white); }
.coach-bio { margin: 10px 0 0; color: var(--chrome-light); white-space: pre-line; }

/* editor: head coach card and round headshots */
.ed-thumb-round { width: 160px; max-width: 160px; aspect-ratio: 1 / 1; border-radius: 50%; }
.ed-coach { display: flex; gap: 14px; align-items: flex-start; }
.ed-headshot { flex: none; width: 72px !important; height: 72px; }
.ed-noshot { display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--steel); color: var(--chrome); font-size: 0.72rem; text-align: center; }
.ed-coachname { margin: 0 0 4px; font-weight: 700; }
.ed-coach .ed-muted { margin: 0 0 6px; white-space: pre-line; }
.ed-textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--chrome-light); font-weight: 600; }

/* sponsors: logos on white tiles (home strip + Sponsors page) */
.sponsor-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.sponsor-tile { display: grid; place-items: center; width: 220px; aspect-ratio: 4 / 3; padding: 12px; background: #fff; border-radius: var(--radius); color: var(--black); text-decoration: none; font-weight: 700; text-align: center; }
.sponsor-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Parent info: the Player/Parent Agreement as cards, two across on wider screens, in the agreement's order. */
.agreement-page { padding-top: 28px; padding-bottom: 56px; }
.agreement { display: grid; gap: 14px; }
@media (min-width: 760px) {
  .agreement { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .agree-card:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd last card spans the row, no empty half */
}
.agree-card { padding: 18px 20px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); }
.agree-title { margin: 0 0 10px; font: italic 800 1.5rem/1.1 var(--head); text-transform: uppercase; color: var(--white); }
.agree-card p { margin: 0 0 10px; color: var(--chrome-light); line-height: 1.55; }
.agree-card p:last-child { margin-bottom: 0; }
.agree-list, .agree-steps { margin: 0 0 12px; padding-left: 22px; color: var(--chrome-light); line-height: 1.6; }
.agree-steps strong, .agree-list strong { color: var(--white); }
.agree-more { margin: 24px 0 0; color: var(--chrome-light); }
/* Coach sign-in (before Cloudflare's code pages) */
.coach-login { padding-top: 28px; padding-bottom: 56px; }
.login-steps { margin: 0 0 24px; padding-left: 22px; display: grid; gap: 12px; color: var(--chrome-light); line-height: 1.55; font-size: 1.05rem; }
.login-steps strong { color: var(--white); }
.login-help { margin: 20px 0 0; color: var(--chrome-light); }
/* Pages laid out down the middle (Sponsors, Jason Oct 22): centered text, headings' underline centered too. */
.center-page { text-align: center; }
.center-page .h-section::after { margin-left: auto; margin-right: auto; }
.sponsors-page { padding-top: 28px; padding-bottom: 56px; display: grid; gap: 36px; justify-items: center; }
/* Sponsor logos in centered rows, so one sponsor sits in the middle rather than at the left. */
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.sponsor-grid figure { margin: 0; width: 260px; max-width: 100%; }
.sponsor-grid .sponsor-tile { width: 100%; }
.sponsor-grid figcaption { margin-top: 8px; color: var(--chrome-light); font-weight: 600; }
.sponsors-page .join-inner { padding: 0; }
.sponsors-page .join-inner p { color: var(--chrome-light); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* Recruiting */
.recruiting { padding-bottom: 56px; }
.recruiting .roster th[scope=row] { font-weight: 600; }
.rec-num { font: italic 800 1.1rem/1 var(--head); color: var(--chrome); margin-right: 4px; }
.recruiting .roster td a { color: var(--chrome-light); }

/* college commitments wall (Recruiting) */
.commits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.commit { padding: 16px; background: var(--charcoal); border: 1px solid var(--line); border-top: 3px solid var(--chrome-light); border-radius: var(--radius); }
.commit p { margin: 0; }
.commit-name { font: italic 800 1.5rem/1.05 var(--head); text-transform: uppercase; }
.commit-school { margin-top: 6px !important; font-weight: 600; color: var(--white); }
.commit-year { margin-top: 2px !important; color: var(--chrome); font-size: 0.9rem; }

/* team page: For families */
.families { display: grid; gap: 10px; margin: 0; }
@media (min-width: 760px) { .families { grid-template-columns: repeat(2, 1fr); } .families .wide { grid-column: 1 / -1; } }
.families div { padding: 12px 14px; background: var(--charcoal); border: 1px solid var(--line); border-radius: 8px; }
.families dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chrome); font-weight: 600; }
.families dd { margin: 4px 0 0; white-space: pre-line; }
.families-more { margin: 14px 0 0; color: var(--chrome-light); }

/* "Latest from the teams" feed: home side panel, team page, News page */
.home-split { display: grid; gap: 40px; }
@media (min-width: 1240px) {
  /* PC: the teams keep the page's left edge, 3 across, and the side panel sits at the right side of the window,
     lined up with the header's right edge. */
  .wrap.home-split {
    max-width: none; padding-left: max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter))); padding-right: 32px;
    grid-template-columns: minmax(0, calc(1120px - 2 * var(--gutter))) minmax(300px, 1fr); gap: 48px; align-items: start;
  }
  .home-side { justify-self: end; width: clamp(300px, 19vw, 380px); }
}
.feed { display: grid; gap: 12px; }
@media (min-width: 760px) { .feed-grid { grid-template-columns: repeat(2, 1fr); } }
/* News page: one centered column of posts, like a social feed. */
.wrap-narrow { max-width: 800px; }
.news-page { padding-top: 24px; padding-bottom: 56px; }
.post { padding: 14px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 90px; }
.post:target { border-color: var(--chrome-light); }
.post-meta { margin: 0 0 8px; font-size: 0.82rem; font-weight: 600; color: var(--chrome); }
.post-meta a { color: var(--chrome-light); }
.post-title { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.post-title a { color: var(--white); text-decoration: none; }
.post-body { margin: 0; color: var(--chrome-light); white-space: pre-line; }
.post-more, .post-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: 14px; font-weight: 600; color: var(--chrome-light); }
.post-body a { color: var(--white); overflow-wrap: anywhere; }
/* Post photos/GIFs: one shows whole; 2 side by side; 3 = one wide over two; 4 = 2x2; 5+ = 3 across (6 tiles max). */
.post-gallery { display: grid; gap: 4px; margin-top: 12px; border-radius: 8px; overflow: hidden; }
.pg-item { position: relative; display: block; background: #000; }
.pg-item img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.pg-1 .pg-item img { aspect-ratio: auto; height: auto; max-height: 640px; object-fit: contain; }
.pg-2 { grid-template-columns: 1fr 1fr; }
.pg-3 { grid-template-columns: 1fr 1fr; }
.pg-3 .pg-item:first-child { grid-column: 1 / -1; }
.pg-3 .pg-item:first-child img { aspect-ratio: 16 / 9; }
.pg-4 { grid-template-columns: 1fr 1fr; }
.pg-many { grid-template-columns: repeat(3, 1fr); }
.pg-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; font: italic 800 2rem/1 var(--head); }
/* YouTube: thumbnail + play button until tapped, then the player (16:9). */
.post-video { margin-top: 12px; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.post-video .yt { position: relative; display: block; height: 100%; }
.post-video img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px; background: rgba(0, 0, 0, 0.75); }
.yt-play::after { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.post-video .yt:hover .yt-play { background: #f00; }
.post-video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Full-screen photo viewer (gallery.js) */
.pv { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.94); }
.pv::backdrop { background: rgba(0, 0, 0, 0.94); }
.pv-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.pv-btn:hover { background: rgba(255, 255, 255, 0.28); }
.pv-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pv-next { right: 12px; top: 50%; transform: translateY(-50%); }
.pv-close { right: 12px; top: 12px; }
.pv-single .pv-prev, .pv-single .pv-next { display: none; }
.pv-count { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; color: var(--chrome-light); font-weight: 600; }
/* Home main column: News (newest 3 posts; one post fills the row, so nothing sits off to one side), then the teams. */
.home-main { display: grid; gap: 40px; min-width: 0; align-content: start; }
.home-news { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
/* Home side column: stacked panels (News, Next up, College commitments, Join Savage, Follow the teams).
   On PC it sits at the right of the window; narrower, it goes under the teams, two panels across on tablets. */
/* minmax(0, 1fr): panels stay the column's width, whatever is inside them. */
.home-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.side-panel { min-width: 0; }
@media (min-width: 640px) and (max-width: 1239px) { .home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.side-panel { padding: 18px 20px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); }
.side-panel .h-section { margin: 0 0 12px; font-size: 1.4rem; }
.side-panel .h-section::after { width: 36px; margin-top: 8px; }
.side-panel .link-more { margin-top: 4px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-kicker { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--chrome); }
.side-title { display: block; font-weight: 700; color: var(--white); }
a.side-title { text-decoration: none; }
a.side-title:hover { text-decoration: underline; }
.side-meta { display: block; font-size: 0.88rem; color: var(--chrome-light); }
.side-join p { margin: 0 0 10px; color: var(--chrome-light); font-size: 0.95rem; }
.side-join .btn { width: 100%; margin-bottom: 14px; }
.side-join .btn:last-child { margin-bottom: 0; }
/* Follow the teams: one row per team, its links as small round icons. */
.side-follow li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
/* Team names here are small, so plain bold text, not the slanted all-caps heading font (Jason, Oct 22). */
.side-follow .side-team { font: 600 0.98rem/1.25 var(--body); color: var(--white); text-decoration: none; }
.side-follow .side-team:hover { color: var(--chrome-light); }
.social-icons { display: flex; flex: none; gap: 6px; }
.social { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; text-decoration: none;
  font: 800 0.8rem/1 var(--body); color: #fff; background: #3a3a3c; border: 1px solid rgba(255,255,255,.12); }
.social:hover { filter: brightness(1.15); color: #fff; }
.social-facebook { background: #1877f2; font-size: 1.15rem; font-family: Arial, sans-serif; }
.social-youtube { background: #ff0000; font-size: 0.7rem; }
.social-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.social-tiktok, .social-x { background: #000; }
.social-gamechanger { background: #00205b; font-size: 0.72rem; }
@media (pointer: coarse) { .social { width: 40px; height: 40px; } }
/* Sponsors panel: each logo on a white tile the width of the panel. */
.side-sponsor-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 4px; }
.side-sponsor-list .sponsor-tile { width: 100%; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.side-sponsor-list .sponsor-tile img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
