/* =========================================================
   Castletown Hockey Club — stylesheet v2
   Dense, sport-desk layout. Palette sampled from the club crest.
   ========================================================= */
:root {
  --red: #E2071A;
  --red-dark: #A80512;
  --black: #0D0D0D;
  --black-soft: #1C1C1C;
  --white: #FFFFFF;
  --offwhite: #F3F3F1;
  --ink: #171717;
  --line: rgba(13, 13, 13, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Inter', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1280px;
  --gap: clamp(1rem, 2.2vw, 1.75rem);
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.1rem, 3.5vw, 2rem); }
.text-red { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  line-height: 0.94;
  color: var(--black);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
p.lede { font-size: 1.05rem; }

.eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 0.7em; font-weight: 700;
}
.eyebrow::before { content: ""; width: 1.4em; height: 2px; background: var(--red); display: inline-block; }
.eyebrow.on-dark { color: var(--white); }
.eyebrow.on-dark::before { background: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--black); color: var(--white); font-family: var(--body); font-weight: 600; font-size: 0.9rem; padding: 0.8em 1.4em; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.85em 1.35em; border: 2px solid transparent;
  border-radius: 2px; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost-dark { border-color: var(--line-light); color: var(--white); }
.btn-ghost-dark:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.btn-ghost-light { border-color: var(--black); color: var(--black); }
.btn-ghost-light:hover { border-color: var(--red); color: var(--red); }

/* =========================================================
   Masthead
   ========================================================= */
.masthead { background: var(--black); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 60; }
.masthead-row { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.7rem clamp(1.1rem, 3.5vw, 2rem); gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .badge-wrap { background: #fff; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex: none; }
.brand .badge-wrap img { height: 26px; width: auto; }
.brand-word { color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
.brand-word b { color: var(--red); }

.tabs { display: flex; gap: clamp(0.9rem, 1.8vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.tabs a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c9c9c9;
  text-decoration: none; padding-bottom: 4px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs a:hover, .tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.masthead-right { display: flex; align-items: center; gap: 0.9rem; }
.masthead-right a { color: #c9c9c9; }
.masthead-right a:hover { color: var(--red); }
.masthead-right svg { width: 17px; height: 17px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-light); color: var(--white); width: 38px; height: 34px; border-radius: 2px; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; margin: auto; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .tabs {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--black);
    flex-direction: column; align-items: flex-start; padding: 0.5rem clamp(1.1rem, 3.5vw, 2rem) 1.2rem;
    display: none; border-bottom: 3px solid var(--red); gap: 0.6rem;
  }
  .tabs.open { display: flex; }
  .tabs a { padding: 0.3em 0; }
}

/* ---------- Announce banner ---------- */
.announce { background: var(--red); color: var(--white); text-align: center; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.03em; padding: 0.55rem 1rem; }
.announce a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.announce strong { text-transform: uppercase; }

/* =========================================================
   Ticker
   ========================================================= */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-head { max-width: var(--max); margin: 0 auto; padding: 8px clamp(1.1rem, 3.5vw, 2rem) 0; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.3rem; }
.ticker-head .t { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #666; font-weight: 700; }
.ticker-head .t2 { font-family: var(--mono); font-size: 9px; color: #707070; }
.ticker-row { max-width: var(--max); margin: 0 auto; display: flex; overflow-x: auto; padding: 0 clamp(1.1rem, 3.5vw, 2rem); scrollbar-width: thin; }
.chip { flex: 1 0 148px; min-width: 148px; padding: 8px 14px; border-right: 1px solid var(--line); }
.chip:last-child { border-right: none; }
.chip .comp { font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 5px; font-weight: 700; }
.chip .team-name { font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; margin-bottom: 6px; }
.chip .status { font-family: var(--mono); font-size: 9px; color: #707070; line-height: 1.7; }
.chip .status .date { color: #666; display: block; }
.chip .status .time { color: #707070; display: block; font-weight: 700; }
.chip .status .opp { color: #707070; display: block; }
.chip .team { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 1px 0; }
.chip .team .side { display: flex; align-items: center; gap: 5px; }
.badge { width: 15px; height: 15px; border-radius: 50%; background: var(--black); color: #fff; font-size: 7px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.badge.alt { background: var(--red); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: clamp(1.4rem,2.6vw,1.8rem) clamp(1.1rem, 3.5vw, 2rem) clamp(1.6rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
@media (min-width: 760px) {
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .hero-text { max-width: 62%; }
  .hero-ctas { margin-top: 0; flex: none; }
}
.hero h1 { color: var(--white); max-width: 15ch; font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 0.3em; }
.hero .lede { max-width: 52ch; color: rgba(255,255,255,0.82); font-size: 0.95rem; margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.rampart-arc { display: none; }
.rampart-arc { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; z-index: 1; }

.page-hero { background: var(--black); color: var(--white); padding: clamp(2.2rem, 5vw, 3rem) 0 clamp(1.6rem, 3.5vw, 2.2rem); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 56ch; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .diagonal { position: absolute; top: 0; right: -10%; width: 60%; height: 100%; background: var(--red); transform: skewX(-12deg); opacity: 0.9; z-index: 1; }

/* =========================================================
   Layout / sections
   ========================================================= */
section { padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.section-alt { background: var(--offwhite); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.main-side { display: grid; grid-template-columns: 1fr 320px; gap: 1.75rem; align-items: start; }
@media (max-width: 980px) { .main-side { grid-template-columns: 1fr; } }

.stat { border-left: 3px solid var(--red); padding-left: 1rem; }
.stat b { display: block; font-family: var(--mono); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--red); line-height: 1; }
.stat span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); opacity: 0.75; }
.section-dark .stat span { color: var(--white); opacity: 0.85; }

/* ---------- Dense card (news / explore / team) ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 1.3rem; }
.section-dark .card { background: var(--black-soft); border-color: var(--line-light); color: var(--white); }
.card h3 { margin-bottom: 0.35em; }
.card .tag { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); display: inline-block; margin-bottom: 0.6em; font-weight: 700; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; gap: 0; } }
.news-card { text-decoration: none; color: inherit; display: block; }
.news-card .thumb { aspect-ratio: 16/10; margin-bottom: 0.7rem; position: relative; overflow: hidden; width: 100%; object-fit: cover; background: var(--offwhite); }
.news-card .thumb .tri { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 44px 44px 0; border-color: transparent var(--red) transparent transparent; opacity: 0.9; }
.news-card h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 0.96rem; line-height: 1.18; margin: 0.3rem 0 0.35rem; }
.news-card .timestamp { font-family: var(--mono); font-size: 0.68rem; color: #707070; text-transform: uppercase; letter-spacing: 0.03em; }
/* Mobile: compact horizontal row (thumbnail left, text right) instead of a
   full-width stacked image — avoids the long-scroll problem on small screens. */
@media (max-width: 600px) {
  .news-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    column-gap: 0.85rem;
    align-items: start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .news-grid a.news-card:first-child { padding-top: 0; }
  .news-card .thumb {
    grid-column: 1; grid-row: 1 / span 3;
    width: 88px; aspect-ratio: 1 / 1; margin-bottom: 0;
  }
  .news-card .thumb .tri { display: none; }
  .news-card .eyebrow { grid-column: 2; margin: 0 !important; }
  .news-card h4 { grid-column: 2; margin: 0.2rem 0; font-size: 0.86rem; line-height: 1.2; }
  .news-card .timestamp { grid-column: 2; }
}
.thumb.mixed { background: var(--red); }
.thumb.mens { background: var(--black); }
.thumb.ladies { background: #5c0a12; }
.thumb.junior { background: #666; }
.thumb-crest { display: flex; align-items: center; justify-content: center; }
.thumb-crest .crest-badge { background: var(--white); border-radius: 999px; width: 42%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 12%; }
.thumb-crest .crest-badge img { width: 100%; height: auto; }
.thumb-crest-a { background: var(--red); }
.thumb-crest-b { background: var(--black); }

/* ---------- Placeholder thumb suite (no photo/graphic yet) ----------
   A family of plain black+red diagonal blocks, all clearly related but
   no two identical, so several can sit side by side (e.g. a card grid)
   without repeating. Pick any .thumb-block-N for a card that needs a
   thumb and doesn't have a real photo. Prefer a real photo first, then
   one of these — not a custom illustration (that's what looked cheap). */
.thumb-block { background: var(--black); position: relative; overflow: hidden; aspect-ratio: 16/10; width: 100%; }
.news-card .thumb.thumb-block { background: var(--black); }
.thumb-block::after { content: ""; position: absolute; inset: 0; background: var(--red); }
.thumb-block-1::after { clip-path: polygon(0% 100%, 42% 100%, 85% 0%, 57% 0%); }
.thumb-block-2::after { clip-path: polygon(100% 100%, 58% 100%, 15% 0%, 43% 0%); }
.thumb-block-3::after { clip-path: polygon(0% 62%, 100% 18%, 100% 42%, 0% 86%); }
.thumb-block-4::after { clip-path: polygon(100% 0%, 100% 48%, 62% 0%); }
.thumb-block-5::after { clip-path: polygon(0% 100%, 38% 100%, 0% 52%); }
.thumb-block-6::after { clip-path: polygon(0% 0%, 32% 0%, 100% 100%, 68% 100%); }
.thumb-block-7::after { clip-path: polygon(100% 100%, 100% 55%, 45% 100%); }
.thumb-block-8::after { clip-path: polygon(0% 0%, 100% 0%, 100% 22%, 0% 42%); }

a.team-card { border-top: 3px solid var(--red); transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; display: block; color: inherit; }
a.team-card.tbc { border-top-color: var(--line); opacity: 0.82; }
a.team-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(13,13,13,0.1); }
.team-card .meta { font-family: var(--mono); font-size: 0.68rem; color: var(--ink); opacity: 0.6; margin-top: 0.5em; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Schedule / fixtures / history tables ---------- */
table.schedule, table.fixtures, table.mini {
  width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.84rem;
}
table.schedule th, table.schedule td,
table.fixtures th, table.fixtures td { text-align: left; padding: 0.7em 0.85em; border-bottom: 1px solid var(--line); }
table.schedule th, table.fixtures th { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; color: var(--red); }
.section-dark table.schedule th, .section-dark table.schedule td,
.section-dark table.fixtures th, .section-dark table.fixtures td { border-color: var(--line-light); }
.section-dark table.schedule th { color: var(--white); }
table.fixtures td.tbc { color: rgba(23,23,23,0.4); font-style: italic; }
table.fixtures td.champ { color: var(--red); font-weight: 800; }
table.fixtures td.champ::after { content: " \2605"; font-size: 0.8em; }
.fixtures-note { font-family: var(--mono); font-size: 0.74rem; color: rgba(23,23,23,0.55); margin-top: 0.7rem; }
.hist-note { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red); font-weight: 700; }
table.history td a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
table.history td a:hover { color: var(--red-dark); }

/* ---------- Timeline ---------- */
.timeline { display: flex; gap: 0; border-radius: 2px; overflow: hidden; margin: 1.3rem 0; }
.timeline > div { flex: 1; padding: 1.2rem 1.1rem; }
.timeline .mixed { background: var(--red); color: var(--white); }
.timeline .senior { background: var(--black); color: var(--white); }
.timeline .label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.timeline .months { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; }
@media (max-width: 620px) { .timeline { flex-direction: column; } }

/* ---------- Chronicle (news archive) ---------- */
.chronicle { border-left: 2px solid var(--line); margin-left: 0.4rem; }
.chronicle-entry { position: relative; padding: 0 0 2.1rem 1.8rem; }
.chronicle-entry::before { content: ""; position: absolute; left: -6px; top: 0.3em; width: 11px; height: 11px; background: var(--red); border-radius: 50%; border: 2px solid var(--white); }
.chronicle-date { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 0.3em; }
.chronicle-photo { width: 100%; max-width: 480px; height: auto; border: 1px solid var(--line); margin: 0.7rem 0; display: block; }
.training-photo { width: 100%; max-width: 480px; margin: 1.2rem auto 0; border: 1px solid var(--line); display: block; }

/* ---------- Award cards (gold accent — reserved for awards/honours content) ---------- */
.award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
@media (max-width: 900px) { .award-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .award-grid { grid-template-columns: repeat(2, 1fr); } }
.award-card {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid #C9A227;
  padding: 0.85rem 0.7rem; text-align: center;
}
.award-card .medal { width: 20px; height: 20px; margin: 0 auto 0.4rem; color: #C9A227; }
.award-card .cat { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: #A6841E; display: block; margin-bottom: 0.3em; }
.award-card .winner { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 0.92rem; line-height: 1.08; color: var(--black); }
.award-card .winner .and { display: block; font-family: var(--mono); font-size: 0.6rem; color: #A6841E; text-transform: none; font-weight: 400; margin: 0.15em 0; }

.award-spotlight { background: var(--black); padding: clamp(1.1rem,2.2vw,1.6rem); }
.award-spotlight-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); }
.award-spotlight-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .award-spotlight-grid, .award-spotlight-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .award-spotlight-grid, .award-spotlight-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.award-spotlight-card { background: var(--black); padding: 0.95rem 0.7rem; text-align: center; }
.award-spotlight-card .medal { width: 22px; height: 22px; margin: 0 auto 0.4rem; color: #E6C34A; }
.award-spotlight-card .cat { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: #E6C34A; display: block; margin-bottom: 0.35em; }
.award-spotlight-card .winner { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.02rem; line-height: 1.08; color: var(--white); }

/* Year tab switcher, reuses the tab-pill look already established elsewhere */
.year-tabs { display: flex; gap: 0.5rem; margin: 0.4rem 0 1.6rem; }
.year-tabs .tab-pill { font-size: 0.72rem; padding: 0.45em 1rem; }

.notice { border: 1px dashed var(--line); padding: 1.1rem 1.3rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; background: var(--offwhite); }
.notice.on-dark { border-color: var(--line-light); background: var(--black-soft); color: rgba(255,255,255,0.85); }
.quick-facts { background: var(--white); border: 1px solid var(--line); padding: 1.4rem 1.6rem; max-width: 460px; }
.quick-facts h3 { margin: 0 0 0.9rem; font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 1.15rem; }
.quick-facts .rows { display: grid; gap: 0.5rem; margin-bottom: 1.1rem; }
.quick-facts .rows div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.85rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.45rem; }
.quick-facts .rows span:first-child { font-weight: 700; }
.quick-facts .rows span:last-child { color: #707070; }
.quick-facts p { margin: 0 0 1.1rem; color: #555; font-size: 0.85rem; }
.predicted-lineup { list-style: none; margin: 1rem 0 0; padding: 0; border: 1px solid var(--line); background: var(--white); }
.predicted-lineup li { padding: 0.7em 1.1em; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.85rem; }
.predicted-lineup li:last-child { border-bottom: none; }
.predicted-lineup li.us { background: var(--offwhite); position: relative; }
.predicted-lineup li.us strong { color: var(--red); }
.predicted-lineup li.us::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.3rem; background: var(--offwhite); border: 1px solid var(--line); }
.contact-card svg { width: 24px; height: 24px; flex: none; color: var(--red); }
.contact-card h3 { margin-bottom: 0.25em; }

/* ---------- Sponsor strip ---------- */
.sponsor-strip { background: var(--offwhite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 0; text-align: center; }
.sponsor-strip .eyebrow { justify-content: center; }
.sponsor-strip .name { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: 0.02em; }
.sponsor-strip .name a, .sponsor-widget .name a { color: inherit; text-decoration: none; }
.sponsor-strip .name a:hover, .sponsor-widget .name a:hover { color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-ghost-dark:hover { color: var(--white); border-color: var(--white); }
.cta-band .eyebrow { color: var(--white); }
.cta-band .eyebrow::before { background: var(--white); }

/* ---------- Team page hero meta ---------- */
.team-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.team-hero .meta-row { display: flex; gap: 1.3rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 0.5rem; }
.team-hero .meta-row b { color: var(--white); }
.status-pill { display: inline-block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.28em 0.75em; border: 1px solid var(--line-light); border-radius: 999px; color: var(--white); }
.status-pill.tbc { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.75); }
.team-jump { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; max-width: 360px; }
.team-jump label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); opacity: 0.6; white-space: nowrap; }
.team-jump select {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--red);
  padding: 0.6em 2.2em 0.6em 0.9em; border-radius: 2px; flex: 1; min-width: 180px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2071A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7em center; background-size: 14px;
  cursor: pointer;
}
.team-jump select:hover { border-color: var(--red); }
.team-jump select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-slot {
  aspect-ratio: 4 / 3; border: 1px dashed var(--line); background: var(--offwhite); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem; text-align: center; color: rgba(23,23,23,0.45); overflow: hidden;
}
.photo-slot svg { width: 26px; height: 26px; opacity: 0.5; }
.photo-slot span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.03em; line-height: 1.4; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot.filled { border-style: solid; padding: 0; }

/* ---------- Team list (cleaner alternative to card grid) ---------- */
.team-list { border: 1px solid var(--line); background: var(--white); }
.team-list a, .team-list .row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.2rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent; transition: background .12s ease, border-color .12s ease;
}
.team-list a:last-child, .team-list .row:last-child { border-bottom: none; }
.team-list a:hover { background: var(--offwhite); border-left-color: var(--red); }
.team-list .name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.01em; flex: none; width: 11rem; }
.team-list .note { font-family: var(--body); font-size: 0.85rem; color: #555; flex: 1; }
.team-list .arrow { font-family: var(--mono); font-size: 0.75rem; color: var(--red); flex: none; }
.team-list .tbc-pill { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: #707070; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.25em 0.75em; }
.team-list .name-pill { font-family: var(--display); font-weight: 700; font-size: 0.82rem; color: var(--red); flex: none; border: 1px solid var(--red); border-radius: 999px; padding: 0.25em 0.9em; background: rgba(200,20,20,0.05); text-align: right; }
.team-list .name-list { font-family: var(--body); font-weight: 600; font-size: 0.8rem; color: var(--red); flex: none; text-align: right; max-width: 280px; line-height: 1.5; }
.team-list .price { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--red); flex: none; }
@media (max-width: 700px) {
  .team-list a, .team-list .row { flex-wrap: wrap; }
  .team-list .name { width: auto; }
  .team-list .note { flex-basis: 100%; }
  .team-list .name-pill, .team-list .name-list { flex-basis: 100%; text-align: left; max-width: none; }
}

/* ---------- Full league tables page ---------- */
.table-filter { margin-top: 1.5rem; }
.table-filter .year-tabs { margin: 0 0 1.1rem; }
.table-filter .year-tabs .tab-pill { font-size: 0.76rem; padding: 0.5em 1.1em; }
.league-groups { display: flex; flex-direction: column; gap: 0.7rem; }
.league-group { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.league-group-label { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 0.78rem; color: var(--red); min-width: 4.2rem; }
.league-group-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.league-group-pills .tab-pill.sub { font-size: 0.62rem; padding: 0.32em 0.7em; }

.table-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.year-group { margin-top: 1.8rem; }
.year-group:first-of-type { margin-top: 1.5rem; }
.year-group + .year-group { padding-top: 2.25rem; border-top: 1px solid var(--line); }
.year-heading { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; letter-spacing: 0.01em; margin: 0; padding-left: 0.9rem; border-left: 4px solid var(--red); }
.year-heading-sub { font-family: var(--mono); font-weight: 400; text-transform: none; font-size: 0.85rem; letter-spacing: 0; color: #707070; }
@media (max-width: 800px) { .table-card-grid { grid-template-columns: 1fr; } }
.table-card { background: var(--white); border: 1px solid var(--line); scroll-margin-top: 100px; }
.table-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.table-card-head .btn { padding: 0.5em 0.9em; font-size: 0.65rem; }
.table-card table.wide { padding: 0 1.2rem 1rem; }
.table-card table.wide th, .table-card table.wide td { padding: 0.55em 1.2em; }
.table-card table.wide td { font-size: 0.85rem; }
:target.table-card, .table-card:target { border-color: var(--red); border-width: 2px; }

/* =========================================================
   Sidebar widgets
   ========================================================= */
.widget { background: #fff; border: 1px solid var(--line); margin-bottom: 1.1rem; }
.widget-head { background: var(--black); color: #fff; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.6rem 0.85rem; display: flex; justify-content: space-between; align-items: center; }
.widget-head .scroll-hint { font-family: var(--mono); font-size: 0.58rem; color: #707070; text-transform: none; letter-spacing: 0; }
.widget-body { padding: 0.7rem 0.85rem; }
.tab-row { display: flex; gap: 0.4rem; padding: 0.7rem 0.85rem 0; flex-wrap: wrap; }
.tab-pill { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.32em 0.65em; border: 1px solid var(--line); border-radius: 999px; color: #707070; cursor: pointer; background: none; display: inline-block; text-decoration: none; }
.tab-pill:hover { border-color: var(--red); color: var(--red); }
.tab-pill.active { background: var(--black); color: #fff; border-color: var(--black); }
.tab-pill.active:hover { color: #fff; }
.tab-pill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
table.mini th { font-family: var(--mono); font-size: 0.58rem; text-transform: uppercase; color: #707070; text-align: left; padding: 0.25em 0.15em; border-bottom: 1px solid var(--line); }
table.mini td { padding: 0.4em 0.15em; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.78rem; }
table.mini th.num, table.mini td.num { text-align: center; }
table.mini td.num { font-family: var(--mono); color: #555; }
table.mini tr.us td { color: var(--red); font-weight: 800; }
table.mini tr.us td.pos { position: relative; }
table.mini tr.us td.pos::before { content: ""; position: absolute; left: -0.85rem; top: 0; bottom: 0; width: 3px; background: var(--red); }
.mini-note { font-family: var(--mono); font-size: 0.58rem; color: #aaa; padding: 0.55rem 0.85rem 0.75rem; text-transform: uppercase; }
.mini-note .updated { display: block; }
.mini-note a { display: block; margin-top: 0.35rem; color: var(--red); text-decoration: none; }
.mini-note a:hover { text-decoration: underline; }

.next-up { background: var(--black); color: #fff; }
.next-up .widget-body { padding: 0.95rem 0.85rem; }
.next-up .comp { font-family: var(--mono); font-size: 0.62rem; color: var(--red); letter-spacing: 0.06em; text-transform: uppercase; }
.next-up .match { font-family: var(--display); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin: 0.4rem 0; line-height: 1.15; }
.next-up .meta { font-family: var(--mono); font-size: 0.68rem; color: #ccc; }
.next-up .meta a { color: #fff; text-decoration: underline; }

.sponsor-widget { text-align: center; padding: 1rem 0.85rem; }
.sponsor-widget .eyebrow { margin: 0 0 0.35rem; }
.sponsor-widget .name { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; }

.side-cta { background: var(--offwhite); border: 1px solid var(--line); padding: 1.1rem; text-align: center; }
.side-cta p { font-size: 0.82rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--black); color: rgba(255,255,255,0.82); padding: clamp(2rem, 5vw, 2.8rem) 0 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); padding-bottom: 1.6rem; border-bottom: 1px solid var(--line-light); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--red); font-size: 0.78rem; letter-spacing: 0.08em; font-family: var(--display); text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul.two-col { column-count: 2; column-gap: 1.5rem; max-width: 340px; }
.footer-grid li { margin-bottom: 0.35em; break-inside: avoid; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.82); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--red); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.logo-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--white); border-radius: 999px; padding: 0.5rem 0.55rem; }
.logo-badge img { height: 30px; width: auto; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-light); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.82); transition: border-color .15s ease, color .15s ease; }
.footer-social a:hover { border-color: var(--red); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; opacity: 0.65; }
