/* ==========================================================================
   Olympiacos Soccer Club Chicago — prototype stylesheet
   Red and white from the club crest; everything else neutral so the
   photography carries the colour.
   ========================================================================== */

:root {
  --red:      #C8102E;
  --red-dark: #96091F;
  --red-tint: #FBECEE;
  --red-edge: #E8A5AE;

  --ink:    #15150F;
  --ink-2:  #2A2A22;
  --muted:  #53534A;
  --muted-2:#6C6C62;
  --faint:  #97978C;

  --ground:  #FFFFFF;
  --ground-2:#FBFBF9;
  --panel:   #F2F2EE;
  --line:    #DEDED8;
  --line-2:  #BDBDB4;

  --sans: "Barlow", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --wrap: 1280px;
  --gutter: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* An inline display value beats the hidden attribute, and several result
   panels carry display:flex — so make hidden win. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-dark); }
a:hover { color: #6E0617; }
h1, h2, h3, h4 { margin: 0; }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }

/* ------------------------------------------------------------- type scale */

.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin: 0 0 10px;
}

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 10px;
}

.display {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
  overflow-wrap: break-word;
}

.sec {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 30px;
  margin: 0;
  overflow-wrap: break-word;
}

.lede { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.lede.tight { font-size: 13.5px; }
.lede strong { color: var(--ink-2); }

/* ------------------------------------------------------------------ media */

.photo {
  width: 100%;
  display: block;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--line);
}
.photo.plain { border: none; }

.avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--panel);
  filter: grayscale(100%) contrast(1.04);
}
.card:hover .avatar { filter: none; }

.contain {
  width: 100%;
  display: block;
  object-fit: contain;
  background: var(--ground);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: var(--red);
  color: #FFFFFF;
  border: 1.5px solid var(--red);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #FFF; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #FFF; }
.btn.light { background: #FFF; color: var(--ink); border-color: #FFF; }
.btn.light:hover { background: var(--panel); border-color: var(--panel); color: var(--ink); }
.btn.sm { min-height: 38px; padding: 8px 16px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }

/* ---------------------------------------------------------------- cards */

.card {
  border: 1px solid var(--line);
  background: var(--ground);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.card.pad-0 { padding: 0; overflow: hidden; }
.card.pad-0 > :not(img):not(picture) { padding-inline: 20px; }
.card.pad-0 > :last-child { padding-bottom: 20px; }
.card.accent { border-left: 4px solid var(--red); }
.card.strong { border-color: var(--ink); }
.card.flat { background: var(--ground-2); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--ink); }

/* -------------------------------------------------------- members strip */

.strip { background: var(--ink); color: #E9E9E3; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-block: 10px; }
.strip a { font-family: var(--mono); font-size: 11px; color: #E9E9E3; text-decoration: none; }
.strip a:hover { color: #FFF; text-decoration: underline; }
.strip .label { font-family: var(--mono); font-size: 11px; color: var(--red-edge); letter-spacing: 0.1em; }
.strip .spacer { flex: 1 1 0; }
/* OttoSport login, far right of the top bar (shown on phones too) */
.strip a.strip-login { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px; border-radius: 999px;
  background: var(--red); color: #FFF; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.strip a.strip-login:hover { background: var(--red-dark); color: #FFF; text-decoration: none; }
.strip a.strip-login svg { width: 13px; height: 13px; }
/* Language menu, next to Login (shown on phones too) */
.lang-menu { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 10px; cursor: pointer;
  background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #E9E9E3;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: #FFF; color: #FFF; }
.lang-btn svg { width: 13px; height: 13px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 400; min-width: 170px; padding: 6px;
  display: flex; flex-direction: column; background: #FFF; border: 1px solid #DEDED8; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.lang-list[hidden] { display: none; }
.strip .lang-list a { display: block; padding: 10px 12px; color: #15150F; font-family: var(--sans); font-size: 14px;
  text-transform: none; letter-spacing: 0; }
.strip .lang-list a:hover { background: #F2F2EE; color: #15150F; text-decoration: none; }
.strip .lang-list a[aria-current] { color: #C8102E; font-weight: 700; }
.strip .lang-list a[aria-current]::after { content: " ✓"; }
.sheet-langs { display: flex; gap: 8px; margin-top: 9px; }
.sheet .sheet-langs a { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line); text-decoration: none;
  color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; }
.sheet .sheet-langs a[aria-current] { border-color: var(--red); color: var(--red); font-weight: 700; }

/* --------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 50; }
.site-header .wrap { display: flex; gap: 26px; align-items: center; padding-block: 14px; }

.crest { flex: 0 0 auto; display: block; width: 54px; height: 54px; }
.crest img { width: 100%; height: 100%; object-fit: contain; display: block; }

.mainnav { display: flex; gap: 26px; align-items: center; flex: 1; }
.mainnav > button {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 4px 0;
  min-height: 44px;
  cursor: pointer;
}
.mainnav > button:hover { border-bottom-color: var(--line-2); }
.mainnav > button[aria-expanded="true"], .mainnav > button.current { border-bottom-color: var(--red); }

.burger {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--ink);
  background: var(--ground);
  cursor: pointer;
  flex-direction: column;
  gap: 4px; align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }

/* Club name beside the crest, as on the phone mockup. */
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: .92; margin-left: -14px; }
.wordmark b { font-family: var(--cond); font-weight: 700; font-size: 25px; text-transform: uppercase; letter-spacing: .01em; color: var(--red); }
.wordmark b + b { color: var(--ink); }
.wordmark small { font-family: var(--sans); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-top: 5px; }
@media (min-width: 1001px) and (max-width: 1220px) { .wordmark { display: none; } }
@media (max-width: 1000px) {
  .wordmark { margin-right: auto; margin-left: 0; }
  .burger { border: none; gap: 6px; }
  .burger span { width: 30px; height: 3.5px; border-radius: 2px; background: var(--red); }
}
@media (max-width: 380px) { .wordmark b { font-size: 21px; } .wordmark small { font-size: 8px; } }

/* ------------------------------------------------------------ mega menu */

.mega {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--ground-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(21, 21, 15, 0.10);
}
.mega.open { display: block; }
.mega .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding-block: 28px; align-items: start; }   /* headings line up across columns */
.mega h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 7px 0; min-height: 34px; }
.mega li a:hover { color: var(--red-dark); text-decoration: underline; }
.mega li a small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* --------------------------------------------------------- mobile sheet */

.sheet { display: none; position: fixed; inset: 0; background: rgba(21,21,15,.5); z-index: 90; }
.sheet.open { display: block; }
.sheet-inner { background: var(--ground); max-width: 430px; margin-left: auto; height: 100%; overflow-y: auto; padding: 16px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.acc-trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  min-height: 56px; border: none; border-bottom: 1px solid var(--line); background: none;
  font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: left;
}
.acc-trigger .sign { font-family: var(--mono); color: var(--faint); font-size: 18px; }
.acc-panel { display: none; padding: 4px 0 14px 14px; border-bottom: 1px solid var(--line); }
.acc-panel.open { display: block; }
.acc-panel a { display: block; font-size: 15px; color: var(--muted); text-decoration: none; padding: 9px 0; min-height: 40px; }

/* ----------------------------------------------------------------- forms */

label.field {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], select, textarea {
  min-height: 46px; width: 100%;
  border: 1px solid var(--line-2);
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--ground);
  color: var(--ink);
}
textarea { min-height: 110px; font-family: var(--sans); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, details:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

.pill {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 9px 16px;
  border: 1px solid var(--line-2);
  background: var(--ground);
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ink-2); cursor: pointer;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.pill .sub { color: var(--faint); margin-left: 6px; }
.pill[aria-pressed="true"] .sub { color: #B9B9AE; }

/* ----------------------------------------------------------------- table */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 500; background: var(--panel);
}
.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
/* Fee table: training count per season as a red badge */
table:has([data-fees]) { min-width: 760px; }   /* scroll sideways on phones instead of crushing columns */
.fee-train { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fee-train span { white-space: nowrap; }
.fee-train b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 3px; border-radius: 10px; background: var(--red); color: #FFF; font: 700 11.5px/1 var(--sans); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { font-family: var(--mono); }

/* ---------------------------------------------------------------- badges */

.badge {
  font-family: var(--mono); font-size: 10px; padding: 4px 9px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); white-space: nowrap; display: inline-block;
}
.badge.open { background: var(--red-tint); color: var(--red-dark); border-color: var(--red-edge); }
.badge.ink { background: var(--ink); color: #FFF; border-color: var(--ink); }

/* -------------------------------------------------------------- sections */

section { border-bottom: 1px solid var(--line); }
section.alt { background: var(--ground-2); }
section.dark { background: var(--ink); color: #E9E9E3; border-color: #32322A; }
section.dark .lede { color: #B5B5AA; }
section.dark .sec, section.dark .display { color: #FFF; }
section.dark .kicker { color: var(--red-edge); }
section.dark .card { background: #1F1F18; border-color: #35352C; color: #E9E9E3; }
section.dark .card .lede { color: #AFAFA4; }
/* tick lists and outline buttons were dark-on-dark in dark sections */
section.dark ul.ticks li { color: #D4D4CC; }
section.dark .btn.ghost { color: #E9E9E3; border-color: #8A8A80; }
section.dark .btn.ghost:hover { background: #E9E9E3; border-color: #E9E9E3; color: var(--ink); }
section.red { background: var(--red); color: #FFF; border: none; }
section .wrap { padding-block: 46px; }
section.slim .wrap { padding-block: 26px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }

.cols { display: flex; flex-wrap: wrap; gap: 40px; }
.col-main { flex: 999 1 480px; min-width: 0; }
.col-side { flex: 1 1 300px; min-width: 0; }
aside.col-side { max-width: 380px; }

.rule { border-top: 1px solid var(--line); margin-block: 26px; }

/* ------------------------------------------------------------ page banner */

.banner { position: relative; background: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line); }
.banner img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .42; }
.banner .wrap { position: relative; padding-block: 56px; }
.banner .display { color: #FFF; }
.banner .lede { color: #CFCFC6; }
.banner .kicker { color: var(--red-edge); }

/* ------------------------------------------------------------- breadcrumb */

.crumb { border-bottom: 1px solid var(--line); background: var(--ground); }
.crumb .wrap { padding-block: 13px; }
.crumb p { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin: 0; }
.crumb a { color: var(--muted-2); text-decoration: none; }
.crumb a:hover { color: var(--red-dark); text-decoration: underline; }
.crumb .sep { color: var(--line-2); margin-inline: 4px; }

/* ----------------------------------------------------------------- lists */

.feed > div { border-top: 1px solid var(--line); padding: 16px 0; display: flex; gap: 18px; }
.feed > div:last-child { border-bottom: 1px solid var(--line); }
.feed time { font-family: var(--mono); font-size: 11px; color: var(--muted-2); flex: 0 0 86px; padding-top: 2px; }

details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--mono); color: var(--faint); }
details.faq[open] summary::after { content: '–'; }
details.faq .body { padding: 0 0 16px; }

ul.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
ul.ticks li { font-size: 13.5px; line-height: 1.5; color: var(--muted); padding-left: 20px; position: relative; }
ul.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; background: var(--red); }

/* -------------------------------------------------------------- stat row */

.stat { display: flex; flex-direction: column; gap: 5px; }
.stat .n { font-family: var(--mono); font-size: 34px; font-weight: 500; line-height: 1; }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #E9E9E3; border: none; }
.site-footer .wrap { padding-block: 46px; }
.site-footer h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: #8E8E84; margin: 0 0 12px; font-weight: 500; }
.site-footer a { color: #D6D6CE; text-decoration: none; display: block; padding: 5px 0; font-size: 13.5px; }
.site-footer a:hover { color: #FFF; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #35352C; padding-block: 18px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer .legal p { font-family: var(--mono); font-size: 11px; color: #8E8E84; margin: 0; }

/* ========================================================= SORTABLE TABLES */

th.sortable {
  cursor: pointer;
  user-select: none;
  padding-right: 28px;
  position: relative;
  white-space: nowrap;
}
th.sortable:hover { background: #E7E7E1; color: var(--ink); }

/* Two stacked triangles: both faint when unsorted, the active one solid. */
th.sortable::before, th.sortable::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: .3;
}
th.sortable::before {
  top: 50%; margin-top: -8px;
  border-bottom: 5px solid currentColor;
}
th.sortable::after {
  top: 50%; margin-top: 3px;
  border-top: 5px solid currentColor;
}
th.sortable.sorted { background: var(--ink); color: #FFF; }
th.sortable.asc::before  { opacity: 1; }
th.sortable.asc::after   { opacity: .25; }
th.sortable.desc::before { opacity: .25; }
th.sortable.desc::after  { opacity: 1; }

tbody tr.hit-major td { background: var(--red-tint); }
tbody tr:hover td { background: #FAFAF7; }
tbody tr.hit-major:hover td { background: #F8E2E5; }
/* Legends Academy titles: gold, like the Legends page */
tbody tr.hit-legends td { background: #FBF5E6; }
tbody tr.hit-legends td:first-child { box-shadow: inset 4px 0 0 #D4A12E; }
tbody tr.hit-legends:hover td { background: #F6EBCD; }
tbody tr.hit-legends .h-team { color: #8A6A12; font-weight: 700; }
.badge.legends { background: #D4A12E; color: #2B2105; border-color: #D4A12E; }

.table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.table-tools .grow { flex: 1 1 260px; max-width: 420px; }
.table-status { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); margin: 0; }
.sort-hint { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin: 10px 0 0; }

/* ===================================================================== TABS */

.tabs { display: block; }
.tab-list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--ink); }
.tab-btn {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--muted);
  padding: 13px 20px;
  min-height: 46px;
  cursor: pointer;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--ink); background: var(--panel); }
.tab-btn[aria-selected="true"] {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}
[data-tab-panel] { padding: 24px 0 0; }
.tab-acc { display: none; }

/* vertical variant, as on the live downloads page */
.tabs-vertical { display: flex; gap: 0; align-items: stretch; }
.tabs-vertical .tab-list {
  flex-direction: column;
  flex: 0 0 260px;
  border-bottom: none;
  border-right: 2px solid var(--ink);
}
.tabs-vertical .tab-btn {
  text-align: left;
  font-size: 15px;
  margin-bottom: 0;
  margin-right: -2px;
  border-bottom: 1px solid var(--line);
  border-right: none;
}
.tabs-vertical [data-tab-panel] { flex: 1; padding: 0 0 0 28px; min-width: 0; }

.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); background: var(--ground);
  padding: 13px 16px; min-height: 52px;
  text-decoration: none; color: var(--ink); font-size: 13.5px;
}
.doc-row:hover { border-color: var(--ink); background: var(--ground-2); color: var(--red-dark); }

/* ================================================================ LIGHTBOX */

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 10, 8, .93);
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lb-figure { margin: 0; max-width: 88vw; max-height: 86vh; display: flex; flex-direction: column; gap: 12px; }
.lb-figure img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; margin: 0 auto; }
.lb-figure figcaption { color: #D9D9D1; font-size: 13.5px; text-align: center; max-width: 70ch; margin: 0 auto; }
.lightbox button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  color: #FFF;
  width: 50px; height: 50px;
  font-size: 26px; line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lb-close { position: absolute; top: 20px; right: 20px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #9E9E95; font-size: 11.5px; margin: 0; }
.lb-trigger { cursor: zoom-in; }
.lb-trigger:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ================================================================== SLIDER */

[data-slider] { position: relative; }
[data-slide] { display: block; }
[data-slide][hidden] { display: none !important; }
/* Arrows sit over the photo's edges; small dots below it. */
.slider-nav { display: flex; justify-content: center; margin-top: 12px; height: 20px; }
.sl-stage { position: relative; }
.sl-prev, .sl-next {
  position: absolute; top: calc(50% - 18px); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font: 700 24px/34px var(--sans); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: background .15s, color .15s;
}
.sl-prev { left: 10px; }
.sl-next { right: 10px; }
.sl-prev:hover, .sl-next:hover { background: var(--red); color: #FFF; }
.sl-dots { display: flex; gap: 2px; align-items: center; }
.sl-dot { width: 20px; height: 20px; padding: 0; border: none; background: none; cursor: pointer; display: grid; place-items: center; }
.sl-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #B9B9B0; transition: background .15s, transform .15s; }
.sl-dot:hover::before { background: #8E8E84; }
.sl-dot.on::before { background: var(--red); transform: scale(1.25); }
section.dark .sl-dot::before { background: #5A5A50; }
section.dark .sl-dot.on::before { background: var(--red); }
.sl-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; background: var(--line-2); border: none; cursor: pointer; }
.sl-dot.on { background: var(--red); }
.sl-dot:hover { background: var(--muted); }

/* ================================================================== SEARCH */

.search-panel { position: fixed; inset: 0; z-index: 110; background: rgba(21,21,15,.55); }
.search-panel[hidden] { display: none !important; }
.search-inner {
  background: var(--ground);
  max-width: 640px;
  margin: 8vh auto 0;
  padding: 26px;
  max-height: 80vh;
  overflow-y: auto;
}
.search-head { display: flex; justify-content: space-between; align-items: flex-start; }
.search-close { border: none; background: none; font-size: 26px; cursor: pointer; min-width: 44px; min-height: 44px; line-height: 1; }
.search-count { font-size: 11px; color: var(--muted-2); margin: 10px 0 0; }
.search-results { margin-top: 10px; }
.search-results a {
  display: block; padding: 13px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.search-results a:hover { color: var(--red-dark); }
.search-results a strong { display: block; font-size: 15.5px; font-weight: 600; }
.search-results a span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.search-results .snip { display: block; font-style: normal; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 3px 0 4px; }
.search-results mark { background: #FBE3E6; color: var(--ink); padding: 0 2px; border-radius: 2px; }

/* ============================================================ FORM ERRORS */

.field-error { font-family: var(--mono); font-size: 11.5px; color: var(--red-dark); margin: 6px 0 0; }
.field-error[hidden] { display: none !important; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--red); border-width: 2px; }
.form-note { font-size: 13px; padding: 12px 14px; margin: 0; }
.form-note.ok  { background: var(--panel); border-left: 3px solid var(--ink); }
.form-note.bad { background: var(--red-tint); border-left: 3px solid var(--red); color: var(--red-dark); }
.form-note[hidden] { display: none !important; }

/* ============================================================ COOKIE BAR */

/* While the cookie bar is up it owns the bottom of the screen, so the
   floating buttons move above it rather than sitting underneath. */
body.has-cookie-bar .to-top { bottom: 188px; }

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--ink); color: #E9E9E3;
  padding: 16px 20px;
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: center;
}
.cookie-bar .lede { color: #BFBFB4; max-width: 62ch; flex: 1 1 400px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .btn.ghost { color: #E9E9E3; border-color: #606056; }
.cookie-bar .btn.ghost:hover { background: #E9E9E3; color: var(--ink); }

/* ============================================================ BACK TO TOP */

.to-top {
  position: fixed; right: 18px; bottom: 74px; z-index: 94;
  width: 46px; height: 46px;
  background: var(--ground); border: 1px solid var(--line-2);
  color: var(--ink); font-size: 18px; cursor: pointer;
}
.to-top:hover { background: var(--ink); color: #FFF; border-color: var(--ink); }
.to-top[hidden] { display: none !important; }

/* =========================================================== SCROLLSPY */

[data-scrollspy] a.current { color: var(--red-dark); font-weight: 600; border-left: 2px solid var(--red); margin-left: -15px; padding-left: 13px; }

/* ----------------------------------------------------------------- phone */

@media (max-width: 1000px) {
  :root { --gutter: 20px; }
  .mainnav, .mega { display: none !important; }
  .burger { display: flex; }
  .site-header .wrap { justify-content: space-between; gap: 12px; }
  .grid-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cols { gap: 28px; }
  section .wrap { padding-block: 32px; }
  aside.col-side { max-width: none; }

  /* The members strip would wrap to three rows and push the page down.
     The menu sheet carries the same links, so keep only the phone number. */
  .strip .wrap { flex-wrap: nowrap; justify-content: space-between; }
  .strip a:not([href^="tel:"]):not([data-search-open]):not(.strip-login):not([data-lang-link]) { display: none; }
  .strip .label { display: none; }   /* its links are hidden here, so the label would point at nothing */
  .strip .wrap { justify-content: flex-end; gap: 14px; }
  @media (max-width: 360px) { .strip .wrap { gap: 7px; padding-inline: 12px; } .strip a.strip-login { padding-inline: 9px; } .lang-btn svg { display: none; } }
  /* the theme icon stays in the strip on phones too, kept compact next to the language button */
  .strip .theme-toggle { flex: none; }
  /* to make room for it, search shows as a magnifier icon (the word stays for screen readers) */
  .strip a[data-search-open] { flex: none; position: relative; width: 22px; height: 22px; font-size: 0; color: transparent; overflow: hidden; }
  .strip a[data-search-open]::before { content: ""; position: absolute; inset: 3px; background: #E9E9E3;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat; }
  .strip a[data-search-open]:hover::before { background: #FFF; }
  .lang-btn { padding: 4px 8px; gap: 5px; }
  .strip .spacer { display: none; }   /* only needed on desktop; here it squeezed the phone number onto two lines */
  .strip a { white-space: nowrap; }

  /* Tabs collapse to an accordion, as the live site's tabs do. */
  .tab-list { display: none; }
  .tab-acc {
    display: flex; width: 100%;
    align-items: center; justify-content: space-between;
    min-height: 54px; padding: 13px 0;
    border: none; border-bottom: 1px solid var(--line); background: none;
    font-family: var(--sans); font-size: 16px; font-weight: 600;
    color: var(--ink); cursor: pointer; text-align: left;
  }
  .tab-acc .sign { font-family: var(--mono); color: var(--faint); font-size: 19px; }
  .tabs-vertical { display: block; }
  .tabs-vertical [data-tab-panel], [data-tab-panel] { padding: 14px 0 20px; }
  .tabs-vertical [data-tab-panel] { padding-left: 0; }

  .table-tools { flex-direction: column; align-items: stretch; }
  .table-tools .grow { flex: none; max-width: none; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions .btn { flex: 1; }
  .to-top { bottom: 70px; right: 14px; }
  .lb-close { top: 10px; right: 10px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox button { width: 42px; height: 42px; font-size: 22px; }
}

@media (max-width: 640px) {
  .grid-6, .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3.one-up, .grid-4.one-up { grid-template-columns: 1fr; }
  .banner .wrap { padding-block: 34px; }
  .feed > div { flex-direction: column; gap: 6px; }
  .feed time { flex: none; }
  .site-footer .wrap { gap: 26px; }

  /* Headings carry long words like "Olympiacos" — cap them so nothing
     pushes the page sideways on a phone. */
  .display { font-size: clamp(28px, 9vw, 40px) !important; }
  .sec { font-size: clamp(19px, 6vw, 26px) !important; }

  /* A card grid of substantial cards reads better one-up than squeezed
     two-up: the team cards, the people cards and the stat tiles. */
  [data-team-results], [data-coaches], [data-staff], [data-coaches-short],
  [data-pros], [data-docs], [data-drills], [data-facilities], [data-news-featured] {
    grid-template-columns: 1fr !important;
  }

  /* Badges may wrap rather than force the card wider. */
  .badge { white-space: normal; }

  /* Long addresses and emails break instead of overflowing. */
  .sec, .lede, td, th { overflow-wrap: anywhere; }
}

@media print {
  .sheet, .mega, .strip, .burger { display: none !important; }
  section { break-inside: avoid; }
}

/* -------------------------------------------- one-click task buttons
   Big, plain buttons for the things families come to do; each goes
   straight to the destination (registration and schedules on OttoSport, the store).      */

.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.action {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  min-height: 96px; padding: 16px 18px;
  border: 2px solid var(--ink); background: var(--ground); color: var(--ink); text-decoration: none;
}
.action b { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.05; }
.action b::after { content: ' →'; }
.action span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.action:hover { background: var(--ink); color: #FFF; }
.action:hover span { color: #CFCFC6; }
.action.hot { background: var(--red); border-color: var(--red); color: #FFF; }
.action.hot span { color: #FBD9DE; }
.action.hot:hover { background: var(--red-dark); border-color: var(--red-dark); }
@media (max-width: 640px) {
  .actions { grid-template-columns: 1fr 1fr; gap: 9px; }
  .action { min-height: 84px; padding: 12px 13px; }
  .action b { font-size: 18px; }
  .action span { font-size: 12px; }
}

/* ------------------------------------------------- pages carried over from
   the old site (pages/, news/): long-form text in one readable column     */

.prose { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0; }
.prose * + h2, .prose * + h3, .prose * + h4 { margin-top: 34px; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; color: var(--ink);
}
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose h4, .prose h5, .prose h6 { font-size: 19px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); background: var(--panel); }
.prose img[data-lightbox] { cursor: zoom-in; }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 16px; color: var(--muted); }
.prose hr { border: none; border-top: 1px solid var(--line); }
.prose table { font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.prose details.faq .body > * + * { margin-top: 12px; }
.prose .btn { margin-right: 8px; }
.prose .video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }

/* news archive and site map */
.year-head { font-family: var(--cond); font-weight: 700; font-size: 34px; margin: 40px 0 16px; }
.year-head:first-child { margin-top: 0; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--ground); }
.post-card:hover { border-color: var(--ink); }
.post-card img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--panel); }
.post-card .pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.post-card time { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.post-card b { font-size: 16px; line-height: 1.3; }
.post-card span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.link-list { columns: 3 220px; column-gap: 32px; padding: 0; list-style: none; margin: 0; }
.link-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.link-list a { text-decoration: none; }

/* ------------------------------------------------------------ home page
   Layout from the phone mockup: photo hero, achievement counters,
   value strip, and photo program cards.                                */

@media (max-width: 560px) { .site-header .wrap > .btn { display: none; } }

.hero {
  position: relative; overflow: hidden; color: #FFF; border: none;
  background-color: #111; background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.75) 38%, rgba(10,10,10,.15) 70%, rgba(10,10,10,0) 100%);
}
.hero .wrap { position: relative; padding-block: 56px 60px; }
.hero-copy { max-width: 560px; }
.hero .kicker { color: #FFB7C0; }
.hero h1 {
  font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 70px; line-height: .9; letter-spacing: -.005em; margin: 10px 0 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero h1::after { content: ''; display: block; width: 110px; height: 6px; background: var(--red); margin: 22px 0 20px; }
.hero p.lede { color: #F1F1EC; font-size: 19px; margin: 0 0 26px; }
.hero-btns { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.hero-btns .btn { justify-content: space-between; border-radius: 6px; font-size: 21px; min-height: 56px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.hero-btns .btn::after { content: '›'; font-size: 30px; line-height: 0; margin-left: 14px; }
.hero-btns .btn.outline { justify-content: center; background: rgba(0,0,0,.25); border: 2px solid #FFF; color: #FFF; box-shadow: none; }
.hero-btns .btn.outline::after { content: none; }
.hero-btns .btn.outline:hover { background: #FFF; color: var(--ink); }

/* achievement counters */
.wins { background: #0B0B0B; border: none; }
.wins .wrap { padding-block: 26px; }
.wins-box { background: #191919; border-radius: 22px; padding: 34px 40px 40px; }
.wins-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.wins-head .kicker { color: #E5323F; font-family: var(--sans); font-weight: 700; letter-spacing: .32em; margin: 0 0 6px; }
.wins-head h2 { font-family: var(--sans); font-weight: 700; font-size: 34px; letter-spacing: -.02em; color: #F6F2EA; margin: 0; }
.wins-head button {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: #C8202F; color: #FFF; border: 1px solid #E5323F; border-radius: 6px;
  font: 600 16px var(--sans); padding: 10px 18px; cursor: pointer;
}
.wins-head button:hover { background: #A51824; }
.wins-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.win {
  background: #2A2724; border: 1.5px solid #C8323E; padding: 30px 26px;
  opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease;
}
.win.in { opacity: 1; transform: none; }
.win .n { display: block; font: 700 66px/1 var(--sans); color: #F6F2EA; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.win i { display: block; width: 40px; height: 3px; background: #E5323F; margin: 22px 0 18px; }
.win b { display: block; font: 700 18px/1.3 var(--sans); color: #F6F2EA; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .03em; }
.win span { display: block; font-size: 15px; line-height: 1.6; color: #BDB7AE; }
.wins-more { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.wins-more a { color: #F6F2EA; font: 600 15px var(--sans); }

/* value strip */
.values { background: #FFF; }
.values .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 24px; }
.values a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--ink); padding: 4px 10px; }
.values a + a { border-left: 1px solid var(--line-2); }
.values svg { width: 46px; height: 46px; color: var(--red); }
.values b { font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.2; }
.values a:hover b { color: var(--red); }

/* program cards */
.programs { background: #F6F6F4; }
.programs .wrap { padding-block: 50px; }
.rule-kicker { display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .18em; color: var(--red); text-transform: uppercase; margin: 0; }
.rule-kicker::before, .rule-kicker::after { content: ''; width: 64px; height: 2px; background: var(--red); }
.programs h2 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; text-align: center; font-size: 40px; line-height: 1.08; margin: 12px 0 30px; letter-spacing: -.01em; }
.prog-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.prog {
  display: grid; grid-template-columns: 43% 1fr; min-height: 210px; overflow: hidden;
  background: linear-gradient(90deg, #FFF, #F1F1EF); border: 1px solid #DCDCD8; border-radius: 16px;
  text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.prog:hover { box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.prog img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.prog > div { padding: 18px 20px 18px 6px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.prog .pill { background: var(--red); color: #FFF; font: 700 15px var(--sans); padding: 4px 12px; border-radius: 8px; }
.prog h3 { font: 800 27px/1.1 var(--sans); letter-spacing: -.02em; margin: 8px 0 6px; }
.prog p { font-size: 15px; line-height: 1.4; margin: 0 0 12px; color: var(--ink-2); }
.prog .go { background: var(--red); color: #FFF; font: 700 17px var(--sans); padding: 8px 18px; border-radius: 6px; }
.prog .go::after { content: ' →'; }
.prog:hover .go { background: var(--red-dark); }
.age-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.age-row p { margin: 0; font-weight: 600; }
.age-row form { display: flex; gap: 8px; }
.age-row input { width: 160px; }
.age-row [data-age-result] { flex-basis: 100%; max-width: 640px; border: 1px solid var(--ink); background: #FFF; padding: 16px; display: flex; flex-direction: column; }
.age-row [data-age-result][hidden] { display: none; }
/* ------------------------------------------------------- mockup look
   Carries the home page mockup's style to every page: bold sans
   headings, red kickers, rounded cards with soft shadows, photo banners
   with a dark fade, and phone layouts that scroll sideways instead of
   stacking a dozen full-width cards.                                   */

.kicker { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--red); }
.sec { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
.display { font-weight: 800; font-style: italic; }
.btn { border-radius: 6px; }
.photo { border-radius: 12px; border: none; }
.card { border: 1px solid #E4E4E0; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
a.card:hover { border-color: #D0D0CA; box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.card.pad-0 > .photo, .card.pad-0 > img { border-radius: 0; }
.card.accent { border-left: 1px solid #E4E4E0; border-top: 4px solid var(--red); }
.card.strong { border: 2px solid var(--red); }
.stat .n { font-family: var(--sans); font-weight: 800; font-size: 44px; color: var(--ink); }
section.dark .stat .n { color: #FFF; }
.stat .stat-note { margin: 0; font-size: 14px; line-height: 1.5; opacity: .7; }
.win .win-note { margin-top: 8px; font-style: italic; }
.action { border-radius: 12px; border-width: 1.5px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
section.alt { background: #F6F6F4; }

/* inner-page banner: same dark fade as the home hero */
.banner img { opacity: 1; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.65) 50%, rgba(10,10,10,.25) 100%); }
.banner .wrap { z-index: 1; }
.banner .display::after { content: ''; display: block; width: 90px; height: 5px; background: var(--red); margin-top: 16px; }
.banner .lede { color: #F1F1EC; }
.banner .kicker { color: #FFB7C0; }

/* carried-over pages: paragraphs need air (".prose p" was zeroing it) */
article.prose > * + * { margin-top: 16px; }
article.prose h2, article.prose h3, article.prose h4 { margin-top: 30px; font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
article.prose img { border-radius: 12px; }
article.prose li + li { margin-top: 6px; }
article.prose li > p { margin: 0; }
section.red .display { font-style: italic; }
/* Old-site tables used only to box text (one cell per row) read as plain
   text; real tables with several columns keep their grid.               */
article.prose table:not(:has(td + td, th + th)),
article.prose table:not(:has(td + td, th + th)) :is(tbody, thead, tr, td, th) {
  display: block; width: auto !important; border: none; padding: 0; background: none; font-family: inherit; font-size: inherit;
}
article.prose table:not(:has(td + td, th + th)) tr + tr { margin-top: 16px; }
article.prose table:not(:has(td + td, th + th)) td > * + * { margin-top: 12px; }
@media (max-width: 640px) {
  article.prose table { display: block; overflow-x: auto; }
  section.red .display { font-size: 24px !important; }
}

/* filter buttons (teams page and others): rounded chips */
button.pill { border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 14px; padding: 8px 14px; border-color: #D6D6D0; background: #FFF; }
button.pill .sub { font-family: var(--sans); font-weight: 600; }
button.pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #FFF; }
button.pill[aria-pressed="true"] .sub { color: #FBD9DE; }

/* phone menu: bigger, bolder rows */
.sheet .acc-trigger, .sheet summary { font-family: var(--sans); font-weight: 800; font-size: 19px; }
.sheet .btn { border-radius: 8px; }

/* home: small link chips under the task buttons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips a { padding: 9px 14px; border: 1px solid #DCDCD8; border-radius: 999px; background: #FFF; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.chips a:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 640px) {
  /* The members strip: just search and the phone number. */
  .strip .label { display: none; }
  .strip .wrap { justify-content: flex-end; padding-block: 7px; }

  /* Breadcrumbs repeat what the logo and banner already say. */
  .crumb { display: none; }

  .banner .wrap { padding-block: 30px 34px; }
  .banner .display { font-size: clamp(32px, 10vw, 42px) !important; line-height: .95; }
  .banner .lede { font-size: 15px; }

  section .wrap { padding-block: 28px; }
  .sec { font-size: clamp(21px, 6.4vw, 26px) !important; }
  .lede { font-size: 15px; }
  .card { padding: 18px; border-radius: 12px; }
  .card.pad-0 { padding: 0; }
  .stat .n { font-size: 36px; }

  /* Rows of cards scroll sideways, a swipe instead of a long stack. */
  [data-news-featured], [data-coaches-short], [data-facilities], [data-pros] {
    display: grid !important; grid-auto-flow: column; grid-template-columns: none !important;
    grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  [data-news-featured] > *, [data-coaches-short] > *, [data-facilities] > *, [data-pros] > * { scroll-snap-align: start; }
  [data-news-featured]::-webkit-scrollbar, [data-coaches-short]::-webkit-scrollbar,
  [data-facilities]::-webkit-scrollbar, [data-pros]::-webkit-scrollbar { display: none; }

  .chips a { font-size: 13px; padding: 8px 12px; }

  /* League logos: a tight three-across row, not six tall boxes. */
  [data-leagues] { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 8px !important; }
  [data-leagues] .card { padding: 10px 6px; box-shadow: none; }
  [data-leagues] img { max-height: 44px; }
}

/* Site-wide pop-in (widgets.js initPop adds .pop, then .in on screen). */
.pop { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.9,.3,1.12); }
.pop.in { opacity: 1; transform: none; }
@media print { .pop { opacity: 1 !important; transform: none !important; } }

.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1000px) {
  .hero h1 { font-size: 60px; }
  .wins-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .prog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { background-position: 68% center; }
  .hero::before { background: linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.6) 55%, rgba(10,10,10,.2) 100%); }
  .hero .wrap { padding-block: 40px 44px; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px) !important; }
  .hero h1::after { width: 80px; height: 5px; margin: 16px 0 14px; }
  .hero p.lede { font-size: 16px; margin-bottom: 20px; }
  .hero-btns { max-width: 300px; }
  .hero-btns .btn { font-size: 19px; min-height: 50px; }
  .wins .wrap { padding-block: 16px; }
  .wins-box { padding: 26px 20px 28px; border-radius: 18px; }
  .wins-head .kicker { font-size: 10px; letter-spacing: .26em; }
  .wins-head h2 { font-size: 24px !important; }
  .wins-head button { font-size: 14px; padding: 8px 12px; }
  .wins-grid { gap: 12px; }
  .win { padding: 20px 14px; }
  .win .n { font-size: 46px; }
  .win i { width: 30px; margin: 14px 0 12px; }
  .win b { font-size: 15.5px; }
  .win span { font-size: 13px; line-height: 1.5; }
  .values .wrap { padding-block: 16px; }
  .values a { padding: 2px 4px; }
  .values svg { width: 36px; height: 36px; }
  .values b { font-size: 12.5px; }
  .programs .wrap { padding-block: 32px; }
  .rule-kicker { font-size: 13px; }
  .rule-kicker::before, .rule-kicker::after { width: 40px; }
  .programs h2 { font-size: 26px !important; margin-bottom: 20px; }
  .prog { grid-template-columns: 40% 1fr; min-height: 180px; }
  .prog > div { padding: 14px 14px 14px 4px; }
  .prog .pill { font-size: 13px; }
  .prog h3 { font-size: 21px; }
  .prog p { font-size: 13px; }
  .prog .go { font-size: 15px; padding: 7px 14px; }
}

/* ------------------------------------------------ social / email icons
   Made by initSocial (widgets.js) from plain "Email", "Facebook"… links. */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
a.social-ico, .site-footer a.social-ico {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; background: var(--red); color: #FFF; text-decoration: none;
  transition: background .15s, transform .15s;
}
a.social-ico svg { width: 20px; height: 20px; }
a.social-ico:hover, a.social-ico:focus-visible { background: var(--red-dark); color: #FFF; transform: translateY(-2px); text-decoration: none; }
.site-footer .socials { margin-top: 18px; }
.site-footer a.social-ico { background: #2A2724; color: #FFF; }
.site-footer a.social-ico:hover { background: var(--red); }
/* Top strip: small icons after the phone number (computers only) */
.strip .socials { margin: 0; gap: 6px; }
.strip a.social-ico { width: 26px; height: 26px; background: transparent; color: #E9E9E3; }
.strip a.social-ico svg { width: 15px; height: 15px; }
.strip a.social-ico:hover { background: var(--red); transform: none; }
.strip-social { flex: none; }@media (max-width: 1240px) { .strip-social { display: none; } }
/* laptop widths: drop the "Current families" label too, so the top bar stays on one line */
@media (min-width: 1001px) and (max-width: 1240px) { .strip .label { display: none; } }

/* Phone menu */
.sheet-follow { margin: 22px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.sheet .socials { margin-top: 10px; }

/* "Follow us" band above the footer */
.follow { background: #191919; color: #FFF; padding: 56px 0; border: none; }
.follow .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 36px; align-items: center; }
.follow h2 { font-weight: 800; font-size: 36px; line-height: 1.05; margin: 6px 0 12px; color: #FFF; }
.follow p { color: #C9C9C0; margin: 0; }
.follow .kicker { color: #FF5A6E; }
.follow-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
a.follow-card {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: #2A2724; border: 1px solid #3A3632; border-radius: 14px;
  color: #FFF; text-decoration: none; transition: border-color .15s, transform .15s;
}
a.follow-card:hover { border-color: var(--red); transform: translateY(-2px); }
.follow-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); }
.follow-ico svg { width: 22px; height: 22px; }
.follow-card b { display: block; font-size: 16px; }
.follow-card small { display: block; font-size: 12.5px; color: #C9C9C0; overflow-wrap: anywhere; }
.follow-card em { display: block; font-style: normal; font-size: 12.5px; color: #FF8A98; margin-top: 2px; }
@media (max-width: 1240px) { .follow .wrap { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 760px) { .follow-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .follow { padding: 40px 0; }
  .follow h2 { font-size: 28px; }
}
/* Youth Academy is the flagship card: full width across the top */
.prog.wide { grid-column: 1 / -1; grid-template-columns: 36% 1fr 340px; min-height: 280px; position: relative; }
/* the photo fills its column without stretching the card to the photo's own height */
.prog.wide img { position: absolute; top: 0; left: 0; width: 36%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }   /* later fade: keeps the second player's face clear */
.prog.wide > div { grid-column: 2; padding: 26px 24px 26px 10px; }
.prog-facts { grid-column: 3; list-style: none; margin: 0; padding: 22px 22px 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.prog-facts li { background: #FFF; border: 1px solid #E4E4DF; border-top: 3px solid var(--red); border-radius: 10px; padding: 12px 12px 11px; font-size: 12.5px; line-height: 1.3; color: var(--muted); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.prog-facts b { display: block; white-space: nowrap; font: 800 15px/1.15 var(--sans); color: var(--ink); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 3px; }
@media (max-width: 1100px) {
  .prog.wide { grid-template-columns: 38% 1fr; }
  .prog.wide img { width: 38%; }
  .prog-facts { display: none; }
}
.prog.wide h3 { font-size: 34px; }
.prog.wide p { max-width: 520px; font-size: 16px; }
.age-row input[type="date"] { width: 190px; min-height: 46px; font: 500 16px var(--sans); }
@media (max-width: 640px) {
  .prog.wide { grid-template-columns: 1fr; grid-template-rows: 190px auto; }
  .prog.wide img { position: static; width: 100%; height: 190px; }
  .prog.wide > div { grid-column: 1; }
  .prog.wide img { -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent); }
  .prog.wide > div { padding: 4px 18px 18px; }
  .prog.wide h3 { font-size: 26px; }
  .prog.wide p { font-size: 14px; }
  .age-row form { width: 100%; }
  .age-row input[type="date"] { flex: 1; width: auto; }
}
/* ↗ after links that open in a new tab (markExternalLinks in widgets.js) */
a .ext { display: inline-block; margin-left: .2em; font-size: .85em; line-height: 1; text-decoration: none; }
/* ============================================ RULE: button labels in capitals
   Every button on the site reads in capitals, whatever the HTML says:
   standard buttons (.btn), the "Learn More" on program cards, filter pills,
   the red tags on cards ("Extra training", "Ages 7 – 19"), badges,
   quick-link chips, Replay, any form submit, and every menu item (top bar,
   main menu, drop-down panels, phone menu). The small grey notes under menu
   items stay in normal case. Tabs and links inside text stay as written.
   A new button only needs class="btn". */
.btn, .prog .go, .pill, .badge, .chips a, [data-replay],
button[type="submit"], input[type="submit"], input[type="button"],
.strip a, .mainnav button, .mega h4, .mega a, .sheet .acc-trigger, .sheet a {
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mega a small { text-transform: none; letter-spacing: normal; }
.sheet a[href^="mailto:"]:not(.btn):not(.social-ico) { text-transform: none; }
/* ------------------------------------------------ 404: the referee page */
/* Gravity Forms from apps. (wireGforms in app.js): the live form sits in a club card */
.form-slot.live {
  background: var(--ground); border: 1px solid var(--line); border-top: 4px solid var(--red);
  padding: 18px 20px 8px; box-shadow: 0 10px 28px rgba(21,21,15,.07);
}
[data-gform].live { scroll-margin-top: 90px; }
/* the frame starts at 620px, then sizes itself to the form */
[data-gform] iframe { display: block; width: 100%; min-width: 100%; min-height: 200px; height: 620px; border: 0; }
@media (max-width: 600px) { .form-slot.live { padding: 12px 10px 4px; } }

.oops { background: #191919; color: #FFF; padding: 48px 0; border: none; }
.oops .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.oops-art { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.oops h1 { font: 800 italic 54px/1 var(--cond); text-transform: uppercase; margin: 8px 0 16px; color: #FFF; }
.oops h1::after { content: ''; display: block; width: 64px; height: 5px; background: var(--red); margin-top: 16px; }
.oops .kicker { color: #FF5A6E; }
.oops .lede { color: #D4D4CC; }
.oops-btns { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.oops-card-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: oops-wave 1.6s ease-in-out infinite; }
@keyframes oops-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .oops-card-arm { animation: none; } }
@media (max-width: 900px) {
  .oops .wrap { grid-template-columns: 1fr; gap: 26px; }
  .oops h1 { font-size: 40px; }
}
/* ------------------------------------------------ Age Season Matrix chart
   Drawn by wireAgeMatrix (app.js); styled after the club's printed chart. */
/* Top: intro left, calculator right. Below: the 14 age cards, full width. */
.age-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .age-top { grid-template-columns: 1fr; gap: 20px; } }
.age-grid-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.age-grid-head .mono { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.age-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.age-tile {
  background: #FFF; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 10px;
  padding: 12px 8px 11px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.age-tile b { display: block; font: 800 26px/1 var(--cond); color: var(--ink); }
.age-tile span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.age-tile.hit { background: var(--red); border-color: var(--red); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(190,30,45,.35); }
.age-tile.hit b, .age-tile.hit span { color: #FFF; }
@media (max-width: 900px) { .age-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .age-tile { padding: 10px 4px; } .age-tile b { font-size: 21px; } .age-tile span { font-size: 10.5px; } }
@media (max-width: 640px) { .age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .age-tile { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 10px 14px; } .age-tile span { margin: 0; text-align: right; font-size: 11.5px; } }
/* Tryout window (April–July): two seasons side by side */
.matrix-tabs { display: flex; gap: 6px; background: #EFEFEC; border-radius: 999px; padding: 4px; margin: -6px 0 18px; }
.matrix-tabs button { flex: 1; border: none; background: transparent; border-radius: 999px; padding: 9px 10px; font: 700 13.5px var(--sans); color: #444; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.matrix-tabs button[aria-selected="true"] { background: #D0101F; color: #FFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.age-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.age-season { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #FFF; }
.age-season.next { border: 2px solid var(--red); }
.age-u { font: 800 40px/1 var(--sans); margin: 6px 0 6px; }
.age-season.next .age-u { color: var(--red); }
@media (max-width: 640px) { .age-two { grid-template-columns: 1fr; } .matrix-tabs button { font-size: 11.5px; padding: 8px 6px; } }
/* League and sponsor logo cards (link to their own sites) */
a.logo-card { align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.logo-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
a.logo-card img { max-height: 54px; max-width: 100%; object-fit: contain; }
a.logo-card .mono { font-size: 10px; color: var(--muted-2); text-align: center; }
a.logo-card { position: relative; }
a.logo-card .ext { position: absolute; top: 10px; right: 12px; color: var(--muted-2); }
a.logo-card:hover .ext { color: var(--red); }
.grid-6[data-leagues] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sponsor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
a.logo-card.sponsor { min-height: 150px; }
a.logo-card.sponsor img { max-height: 80px; }
@media (max-width: 640px) {
  .grid-6[data-leagues] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sponsor-grid { grid-template-columns: 1fr; }
  a.logo-card.sponsor { min-height: 110px; }
  a.logo-card.sponsor img { max-height: 60px; }
}
/* Venue cards (Fields & directions) */
.card.venue { border-top: 4px solid var(--red); gap: 10px; transition: transform .15s, box-shadow .15s; }
.card.venue:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.venue-top { display: flex; align-items: center; justify-content: space-between; }
.venue-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #FFF; }
.venue-ico svg { width: 24px; height: 24px; }
.venue-kind { font: 700 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); background: #FBE7EA; padding: 5px 11px; border-radius: 999px; }
.venue-name { font: 800 21px/1.15 var(--sans); margin: 4px 0 0; }
.venue-addr { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; font-size: 14.5px; color: var(--ink); margin: 0; }
.venue-addr svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--red); }
.venue-btns { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 6px; }
/* ---------------------------------------------- sidebar beside text pages
   Added by wireSidebar (app.js). Stays in view while reading on a computer;
   sits under the text on a phone. */
.wrap.with-side { display: grid; grid-template-columns: minmax(0, 780px) minmax(0, 340px); gap: 48px; justify-content: space-between; align-items: start; }
.side { position: sticky; top: calc(var(--hdr, 0px) + 24px); transition: top .25s ease; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #FFF; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; padding: 20px; box-shadow: 0 6px 22px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s; }
.side-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.10); }
.side-title { font: 800 22px/1.15 var(--sans); margin: 0; }
.side-text { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.side-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-facts li { display: flex; gap: 12px; align-items: flex-start; }
.side-facts b { display: block; font-size: 15px; line-height: 1.3; }
.side-facts small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.side-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #FBE7EA; color: var(--red); }
.side-ico svg { width: 18px; height: 18px; }
.side-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.side-card .socials { margin: 4px 0 0; }
.side-help { border-top-color: var(--ink); }
.side-line { font-weight: 700; font-size: 15px; color: var(--red-dark); text-decoration: none; overflow-wrap: anywhere; }
.side-line:hover { text-decoration: underline; }
/* Phones and tablets: no sidebar — the page's own sign-up banners and the
   footer already carry the buttons and contact details */
@media (max-width: 1000px) {
  .wrap.with-side { grid-template-columns: 1fr; }
  .side { display: none; }
}
/* Session cards (Tiny Legends sessions): same look as the venue cards */
.session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
article.prose .session-grid p { margin: 0; }
article.prose .session-card a.btn { text-decoration: none; margin-right: 0; }
.session-note { font-size: 13.5px; color: var(--red-dark); font-weight: 600; }
.session-card.ended { opacity: .6; }
.session-card .ended-label { background: #E4E4E0; border-color: #E4E4E0; color: var(--muted); cursor: default; }.session-card .venue-name small { font: 600 13px var(--sans); color: var(--muted); margin-left: 6px; }
.session-card.current { border-color: var(--red); box-shadow: 0 10px 28px rgba(200,16,46,.14); }
.session-card.current .venue-kind { background: var(--red); color: #FFF; }
.session-card.upcoming { opacity: .85; }
.session-card.upcoming .venue-kind, .session-card.ended .venue-kind { background: #EFEFEC; color: var(--muted); }
.session-card.upcoming .venue-ico, .session-card.ended .venue-ico { background: #B9B9B2; }
/* Tiny Legends topics: each one is a card (icon, title, hint, red +/−) */
.info-sections { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.info-sections details.faq { border: 1px solid var(--line); border-radius: 14px; background: #FFF; box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.info-sections details.faq:last-of-type { border-bottom: 1px solid var(--line); }
.info-sections details.faq:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.09); border-color: #D9B3BA; }
.info-sections details.faq[open] { border-color: var(--red); box-shadow: 0 10px 28px rgba(200,16,46,.12); }
.info-sections details.faq summary { align-items: center; justify-content: flex-start; gap: 14px; padding: 14px 16px; }
.info-sections .sum-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FBE7EA; color: var(--red); transition: background .15s, color .15s; }
.info-sections .sum-ico svg { width: 22px; height: 22px; }
.info-sections details.faq[open] .sum-ico { background: var(--red); color: #FFF; }
.info-sections .sum-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.info-sections .sum-text b { font: 800 17px/1.2 var(--sans); color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.info-sections .sum-text small { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.info-sections details.faq summary::after { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font: 700 18px/1 var(--sans); content: '+'; }
.info-sections details.faq[open] summary::after { content: '−'; background: var(--red); color: #FFF; }
.info-sections details.faq .body { padding: 0 18px 18px 74px; }
@media (max-width: 640px) {
  .info-sections details.faq summary { padding: 12px; gap: 11px; }
  .info-sections .sum-ico { width: 38px; height: 38px; }
  .info-sections details.faq .body { padding: 0 14px 16px; }
}

/* ------------------------------------------------------------ news page list
   Cards from pages/news.html, dressed up by initNewsFilter (widgets.js). */
.news-list { padding-top: 34px; }
.news-list [hidden] { display: none !important; }

.news-tools { position: sticky; top: var(--hdr, 0px); transition: top .25s ease; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 0; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.nt-years { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 520px; }
.nt-years button { font: 700 14px var(--cond); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-2);
  background: var(--ground); color: var(--ink); border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.nt-years button:hover { border-color: var(--red); color: var(--red); }
.nt-years button.on { background: var(--red); border-color: var(--red); color: #fff; }
.nt-find { flex: 0 1 300px; }
.nt-find input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 15px var(--sans, inherit);
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2353534A' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 14px 50% no-repeat; }
.nt-find input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.nt-count { flex-basis: 100%; margin: 0; font: 500 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
.nt-count:empty { display: none; }

.news-list .year-head { display: flex; align-items: baseline; gap: 14px; font-size: 44px; line-height: 1; margin: 46px 0 18px; scroll-margin-top: 90px; }
.news-list .year-head::after { content: ""; flex: 1; height: 2px; background: var(--line); align-self: center; }
.news-list .year-head span { color: var(--ink); }
.news-list .year-head small { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); order: 3; }
.news-list .year-head:first-of-type { margin-top: 0; }

/* Each story: small picture on the left, date, title, summary and a Read Story button on the right */
.news-list .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-list .post-card { position: relative; flex-direction: row; align-items: stretch; border: 1px solid #E4E4E0; border-radius: 14px; overflow: hidden; background: var(--ground);
  box-shadow: 0 1px 2px rgba(21,21,15,.05), 0 4px 14px rgba(21,21,15,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.news-list .post-card:hover { transform: translateY(-3px); border-color: #D9B3BA; box-shadow: 0 2px 4px rgba(21,21,15,.07), 0 12px 28px rgba(21,21,15,.12); }
.news-list .post-card img { flex: none; width: 180px; height: auto; min-height: 170px; align-self: stretch; transition: transform .45s ease;
  /* the photo fills the card but never sets its height, so a tall photo
     can't make one card taller than the rest */
  contain: size; }
.news-list .post-card:hover img { transform: scale(1.04); }
.news-list .pc-date { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--red); color: #fff; border-radius: 8px;
  width: 42px; padding: 5px 0 6px; text-align: center; font: 700 10px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 3px 10px rgba(150,9,31,.35); }
.news-list .pc-date b { display: block; font-size: 18px; letter-spacing: 0; margin-bottom: 1px; }
.news-list .post-card .pc-body { min-width: 0; padding: 16px 18px 16px; gap: 6px; flex: 1; position: relative; background: var(--ground); }
.news-list .post-card time { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.news-list .post-card b { font: 700 19px/1.15 var(--cond); letter-spacing: .01em; }
.news-list .post-card .pc-body > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.5; }
.news-list .pc-go { align-self: flex-start; margin-top: auto; padding: 6px 13px; border: 1.5px solid var(--red); border-radius: 999px;
  font: 700 12.5px/1 var(--cond); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--red); transition: background .15s, color .15s; }
.news-list .post-card .pc-body > span + .pc-go, .news-list .post-card .pc-body > b + .pc-go { margin-top: 6px; }
.news-list .pc-go::after { content: " →"; }
.news-list .post-card:hover .pc-go { background: var(--red); color: #fff; }

/* a card left alone on a year's last row fills it (widgets.js, pairUp) */
.news-list .post-card.wide { grid-column: 1 / -1; }

/* newest story: full width, a bit bigger picture */
.news-list:not(.filtered) .post-card.feature { grid-column: 1 / -1; }
.news-list:not(.filtered) .post-card.feature img { width: 300px; min-height: 220px; }
.news-list:not(.filtered) .post-card.feature .pc-body { padding: 24px 28px; justify-content: center; gap: 9px; }
.news-list:not(.filtered) .post-card.feature .pc-body::before { content: "Latest"; align-self: flex-start; font: 700 11px var(--cond); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); border: 1.5px solid var(--red); border-radius: 999px; padding: 3px 10px; }
html[lang="es"] .news-list:not(.filtered) .post-card.feature .pc-body::before { content: "Lo \00faltimo"; }
html[lang="el"] .news-list:not(.filtered) .post-card.feature .pc-body::before { content: "\03A4\03B5\03BB\03B5\03C5\03C4\03B1\03AF\03B1 \03BD\03AD\03B1"; }
/* Greek pages: Barlow and IBM Plex Mono have no Greek letters, so Greek text falls back to Fira (loaded on el/ pages only) */
html[lang="el"] {
  --sans: "Barlow", "Fira Sans", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Condensed", "Fira Sans Condensed", "Barlow", "Fira Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Fira Mono", ui-monospace, SFMono-Regular, monospace;
}
.news-list:not(.filtered) .post-card.feature b { font-size: 28px; line-height: 1.05; }

@media (max-width: 900px) {
  .news-list .grid-3 { grid-template-columns: 1fr; }
  .news-list:not(.filtered) .post-card.feature img { width: 200px; min-height: 180px; }
  .news-list:not(.filtered) .post-card.feature .pc-body { padding: 16px 18px; }
  .news-list:not(.filtered) .post-card.feature b { font-size: 22px; }
}
@media (max-width: 520px) {
  .news-list .post-card img, .news-list:not(.filtered) .post-card.feature img { width: 112px; min-height: 140px; }
  .news-list .post-card .pc-body, .news-list:not(.filtered) .post-card.feature .pc-body { padding: 12px 13px 13px; gap: 5px; }
  .news-list .post-card b, .news-list:not(.filtered) .post-card.feature b { font-size: 17px; }
  .news-list .post-card .pc-body > span { -webkit-line-clamp: 2; font-size: 13.5px; }
  .news-list .pc-date { top: 7px; left: 7px; width: 36px; }
  .news-list .pc-date b { font-size: 15px; }
}
@media (max-width: 640px) {
  .news-tools { position: static; margin-inline: -16px; padding: 10px 16px; }   /* too tall to pin on a phone */
  .nt-years { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-basis: 100%; }
  .nt-years::-webkit-scrollbar { display: none; }
  .nt-find { flex-basis: 100%; }
  .news-list .year-head { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-list .post-card, .news-list .post-card img { transition: none; }
  .news-list .post-card:hover, .news-list .post-card:hover img { transform: none; }
}
/* ------------------------------------------------ coach & staff profiles
   Built by wireProfile() (app.js) from pages/profile-*.html.            */
.pf-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, #3A0A13 0%, rgba(58,10,19,0) 55%), linear-gradient(160deg, #1B1B16 0%, #0E0E0B 100%); }
.pf-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(200,16,46,.07) 46px 92px); }
.pf-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); }
.pf-hero-in { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 52px; align-items: center; padding-block: 52px 60px; }
.pf-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #2A2A22;
  box-shadow: 0 0 0 4px #fff, 14px 14px 0 4px var(--red), 0 30px 60px rgba(0,0,0,.45); transform: rotate(-2deg); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.pf-photo img.pf-crest { object-fit: contain; padding: 22%; }
.pf-kicker { margin: 0 0 10px; font: 500 12.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #FFB7C0; }
.pf-name { margin: 0; font: italic 800 clamp(48px, 7vw, 84px)/.9 var(--cond); text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
.pf-name span { display: block; color: var(--red); -webkit-text-stroke: 0; }
.pf-role { display: inline-block; margin: 18px 0 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font: 600 15px/1.35 var(--sans); color: #F1F1EC; }
.pf-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pf-stat { min-width: 132px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: 1px; }
.pf-stat b { font: 800 34px/1 var(--cond); color: #fff; }
.pf-stat span { font: 600 13px/1.3 var(--sans); color: #E4E4DC; }
.pf-stat small { font: 500 11px/1.3 var(--mono); color: #A9A99F; letter-spacing: .05em; text-transform: uppercase; margin-top: 3px; }
.pf-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.pf-teams-label { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #A9A99F; margin-right: 4px; }
.pf-teams a { padding: 6px 12px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font: 700 13px/1.2 var(--sans); transition: background .15s; }
.pf-teams a:hover { background: var(--red-dark); }
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pf-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  color: #fff; text-decoration: none; font: 600 14px/1 var(--sans); transition: background .15s, border-color .15s; }
.pf-link svg { width: 17px; height: 17px; flex: none; }
.pf-link .ext { display: none; }
.pf-link:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.pf-link.mail { background: #fff; color: var(--ink); border-color: #fff; }
.pf-link.mail:hover { background: #F1F1EC; }

.prose.pf-body { font-size: 16.5px; }
.prose.pf-body > p:first-child:not(.pf-empty)::first-letter { float: left; font: 800 64px/.8 var(--cond); color: var(--red); margin: 6px 10px 0 0; }
.prose.pf-body > p > strong:only-child { font: 700 19px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.pf-quote { position: relative; margin: 34px 0 0 !important; padding: 28px 30px 26px 30px; border-radius: 18px; background: var(--red); color: #fff; overflow: hidden; }
.pf-quote::before { content: '\201C'; position: absolute; right: 18px; top: -28px; font: 800 180px/1 var(--cond); color: rgba(255,255,255,.16); }
.pf-quote figcaption { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #FFD3D9; margin-bottom: 10px; }
.pf-quote blockquote { position: relative; margin: 0; padding: 0; border: 0; color: #fff; font: 600 20px/1.45 var(--sans); }
.pf-block { margin-top: 44px !important; }
.pf-h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px !important; font: 800 28px/1 var(--cond) !important; text-transform: uppercase; color: var(--ink); }
.pf-h::before { content: ''; width: 6px; height: 26px; border-radius: 3px; background: var(--red); }
.pf-h span { padding: 4px 10px; border-radius: 999px; background: var(--red-tint); color: var(--red); font: 700 14px/1 var(--mono); }
.pf-titles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-title { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.pf-title:hover { border-color: var(--red); transform: translateY(-2px); }
.pf-t-year { flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 19px var(--cond);
  box-shadow: inset 0 -4px 0 var(--red); }
.pf-t-what { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-t-what b { font: 700 15px/1.25 var(--sans); color: var(--ink); }
.pf-t-what small { font: 500 11.5px/1.3 var(--mono); color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.pf-more { margin-top: 10px; }
.pf-more summary { cursor: pointer; font-weight: 700; color: var(--red); padding: 6px 0 10px; }
.pf-note { margin: 12px 0 0 !important; font-size: 14px; }
/* one panel; each section is a row: heading left, list right */
.pf-creds { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 16px; background: var(--ground-2); overflow: hidden; }
.pf-cred { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding: 22px 24px; margin: 0 !important; }
.pf-cred + .pf-cred { border-top: 1px solid var(--line); }
.pf-cred-h { display: flex; align-items: center; gap: 10px; margin: 0 !important; align-self: start; font: 800 20px/1.1 var(--cond); text-transform: uppercase; color: var(--ink); }
.pf-cred-h svg { width: 30px; height: 30px; flex: none; padding: 5px; border-radius: 50%; background: var(--red); color: #fff; }
.pf-cred-h small { margin-left: auto; font: 700 12px var(--mono); color: var(--muted-2); }
.prose .pf-list, .prose .pf-list ul { list-style: none; padding: 0; margin: 0; }
.prose .pf-list > li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.prose .pf-list > li + li { margin-top: 9px; }
.prose .pf-list > li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.prose .pf-list ul { margin-top: 6px; padding-left: 2px; border-left: 2px solid var(--line); }
.prose .pf-list ul li { padding-left: 12px; font-size: 14px; color: var(--muted); }
.prose .pf-list ul li + li { margin-top: 4px; }
.pf-empty { color: var(--muted); font-style: italic; }
@media (max-width: 1000px) {
  .pf-hero-in { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  .pf-titles { grid-template-columns: 1fr; }
  .pf-cred { grid-template-columns: 1fr; gap: 12px; padding: 18px 18px; }
}
@media (max-width: 640px) {
  .pf-hero-in { grid-template-columns: 1fr; gap: 30px; padding-block: 34px 44px; }
  .pf-photo { width: min(230px, 64vw); }
  .pf-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .pf-stat { min-width: 0; padding: 10px 10px; }
  .pf-stat b { font-size: 28px; }
  .pf-stat span { font-size: 12px; }
  .pf-stat small { font-size: 10px; }
  .pf-quote { padding: 24px 20px; }
  .pf-quote blockquote { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) { .pf-title, a.pf-title:hover { transition: none; transform: none; } }
/* ------------------------------------------- home: parent club + anthem */
.parent-club { position: relative; overflow: hidden; color: #fff; border: 0;
  background: radial-gradient(90% 140% at 100% 50%, #3A0A13 0%, rgba(58,10,19,0) 60%), linear-gradient(160deg, #1B1B16 0%, #0E0E0B 100%); }
.parent-club::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(200,16,46,.07) 46px 92px); }
.pc-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; padding-block: 56px; }
.pc-text .kicker { color: #FFB7C0; }
.pc-text h2 { margin: 6px 0 12px; font: italic 800 clamp(34px, 4.6vw, 52px)/.95 var(--cond); text-transform: uppercase; color: #fff; }
.pc-text p { margin: 0 0 22px; max-width: 560px; color: #D9D9D0; font-size: 16.5px; line-height: 1.6; }
.anthem { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.anthem-play { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(200,16,46,.25); transition: transform .15s, background .15s; }
.anthem-play:hover { background: var(--red-dark); transform: scale(1.05); }
.anthem-play svg { width: 28px; height: 28px; }
.anthem-play .i-pause, .anthem.playing .anthem-play .i-play { display: none; }
.anthem.playing .anthem-play .i-pause { display: block; }
.anthem.playing .anthem-play { animation: anthem-pulse 1.6s ease-in-out infinite; }
@keyframes anthem-pulse { 50% { box-shadow: 0 0 0 12px rgba(200,16,46,.12); } }
.anthem-body { flex: 1; min-width: 0; }
.anthem-body p { margin: 0; }
.anthem-k { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #FFB7C0; }
.anthem-t { font: 800 22px/1.15 var(--cond); text-transform: uppercase; color: #fff; margin: 2px 0 10px !important; }
.anthem-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); cursor: pointer; overflow: hidden; }
.anthem-bar span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 3px; }
.anthem-time { display: flex; justify-content: space-between; margin-top: 6px !important; font: 500 11.5px var(--mono); color: #A9A99F; }
@media (max-width: 900px) { .pc-in { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; } }
@media (prefers-reduced-motion: reduce) { .anthem.playing .anthem-play { animation: none; } .anthem-play { transition: none; } }
/* ------------------------------------- honours & college tables on phones
   Each row becomes a small card: year badge on the left, details beside it.
   (Filtering hides rows with the hidden attribute, so keep that working.) */
@media (max-width: 640px) {
  #honours-table, #honours-table tbody, #college-table, #college-table tbody { display: block; }
  #honours-table thead, #college-table thead { display: none; }
  .table-wrap:has(#honours-table), .table-wrap:has(#college-table) { border: 0; overflow: visible; }
  #honours-table tr, #college-table tr { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px;
    align-items: start; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  #honours-table tr[hidden], #college-table tr[hidden] { display: none; }
  #honours-table td, #college-table td { padding: 0; border: 0; font-size: 13px; }
  #honours-table td:not(.h-year), #college-table td:not(.c-year) { background: transparent !important; }
  #honours-table td.h-year, #college-table td.c-year { background: var(--ink) !important; }
  #honours-table tr.hit-major { background: var(--red-tint); border-color: var(--red-edge); }
  #honours-table tr.hit-legends { background: #FBF5E6; border-color: #E7D6A3; border-left: 4px solid #D4A12E; }
  #honours-table tr.hit-legends td:first-child { box-shadow: none; }
  .h-year, .c-year { grid-row: 1 / span 3; grid-column: 1; align-self: stretch; display: grid; place-items: center; border-radius: 9px;
    background: var(--ink); color: #fff; font: 700 15px var(--mono) !important; min-height: 52px; }
  .h-comp, .c-player { grid-column: 2 / 4; grid-row: 1; font-size: 15px !important; line-height: 1.3; color: var(--ink); }
  .h-team { grid-column: 2; grid-row: 2; color: var(--muted); }
  .h-where { grid-column: 3; grid-row: 2; text-align: right; color: var(--muted-2); font-size: 12px !important; }
  .h-coach { grid-column: 2; grid-row: 3; color: var(--muted); }
  .h-rep { grid-column: 3; grid-row: 3; text-align: right; font-weight: 700; }
  .h-place { display: none; }
  .c-school { grid-column: 2; grid-row: 2; color: var(--muted); }
  .c-state { grid-column: 3; grid-row: 2; text-align: right; color: var(--muted-2); font-size: 12px !important; }
  .c-rep { grid-column: 2 / 4; grid-row: 3; font-weight: 700; }
  .h-rep.none, .c-rep.none { visibility: hidden; }
  .sort-hint { display: none; }
}
/* ------------------------------------------------- smart sticky header
   wireStickyHeader() (app.js) adds .is-stuck once the page has scrolled past
   the header, and .is-shown while you are scrolling back up.            */
.site-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s; }
.site-header.is-stuck.is-shown { transform: none; visibility: visible; box-shadow: 0 6px 20px rgba(21,21,15,.10);
  transition: transform .25s ease, visibility 0s; }
.site-header.is-stuck.no-anim { transition: none; }
.site-header.is-stuck .wrap { padding-block: 7px; }
.site-header.is-stuck .crest { width: 42px; height: 42px; }
.site-header.is-stuck .wordmark b { font-size: 20px; }
.site-header.is-stuck .wordmark small { display: none; }
.site-header.is-stuck .burger { width: 44px; height: 44px; }
.site-header.is-stuck .mega { max-height: calc(100vh - 60px); overflow-y: auto; }
html { scroll-padding-top: 72px; }   /* jumps to #sections clear the slim header */
@media (prefers-reduced-motion: reduce) {
  .site-header.is-stuck, .site-header.is-stuck.is-shown, .side, .news-tools { transition: none; }
}
@media print { .site-header.is-stuck { position: static; transform: none; visibility: visible; } }
/* a second group under a mega-menu column (Teams > Tiny Legends) */
.mega h4.mega-more { margin-top: 22px; }

/* Teams page: Elite / Premier tag in each academy card's title */
.lvl-elite, .lvl-premier { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 4px 10px 3px; border-radius: 999px; font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lvl-elite { background: var(--red); color: #fff; }
.lvl-premier { background: var(--ink); color: #fff; }

/* News story photo sliders (initArticleGalleries, widgets.js): a fixed
   3:2 frame so portrait and landscape photos don't make the page jump. */
.art-slider { margin: 26px 0; max-width: 820px; outline: none; }
.art-slider .sl-stage { aspect-ratio: 3 / 2; background: #15140f; border-radius: 12px; overflow: hidden; }
article.prose .art-slider img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
.art-slider:focus-visible .sl-stage { box-shadow: 0 0 0 3px var(--red); }
.sl-count { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 640px) {
  .art-slider .sl-stage { aspect-ratio: 4 / 3; border-radius: 10px; }
  .art-slider .sl-prev, .art-slider .sl-next { width: 32px; height: 32px; font-size: 21px; line-height: 30px; }
}
.sl-cap { margin: 10px 0 0; text-align: center; font: 700 15px/1.3 var(--cond); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

/* Tiny Legends banner: Leo the lion stands at the right with a speech bubble */
.banner .mascot { position: absolute; top: 12px; bottom: 0; right: var(--gutter); display: flex; align-items: center; gap: 4px; pointer-events: none; }
.banner img.mascot-lion { position: static; inset: auto; width: auto; height: 100%; object-fit: contain; opacity: 1; align-self: flex-end; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.banner .mascot-bubble { position: relative; margin: 0 14px 0 0; background: #FFF; color: #15150F; border-radius: 18px; padding: 12px 16px; max-width: 220px; font: 800 17px/1.25 var(--sans, system-ui), system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.banner .mascot-bubble::after { content: ''; position: absolute; right: -14px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 14px solid #FFF; border-right: 0; }
@media (max-width: 760px) {
  .banner .mascot { top: auto; height: 120px; right: 8px; }
  .banner .wrap:has(.mascot) { padding-bottom: 72px; }
  .banner .mascot-bubble { align-self: flex-end; margin: 0 10px 12px 0; padding: 8px 11px; max-width: 150px; font-size: 13px; border-radius: 14px; }
  .banner .mascot-bubble::after { top: auto; bottom: 10px; margin-top: 0; right: -11px; border-width: 7px; border-left-width: 11px; border-right-width: 0; }
}
