/* shuleycup.com — "Rafters". One stylesheet; tokens first. */

:root {
  --ink: #121212;
  --concrete: #ECEDEF;
  --white: #FFFFFF;
  --red: #9E1B32;
  --navy: #13294B;
  --charcoal: #2A2A2A;
  --gold: #E3B65A;          /* only on dark grounds, or behind ink text */
  --muted: #4A4A4A;
  --body: #333333;
  --rule: #BDBDBD;
  --on-dark: #E6E6E6;
  --on-dark-muted: #D6D6D6;
  --on-navy: #D2DAE8;
  --footer-text: #BDBDBD;

  --display: 'Saira Condensed', 'Arial Narrow', sans-serif; /* always weight 800 */
  --sans: 'Saira', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-btn: 6px;
  --r-card: 10px;
  --max: 1200px;
  --gutter: 24px;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--concrete);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: var(--r-btn); font-weight: 700; }
.skip-link:focus { top: 8px; }
.placeholder { background: #FFF3C4; color: var(--ink); outline: 1px dashed var(--red); }

/* ---- buttons ---- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-btn); border: 0; cursor: pointer; line-height: 1.2;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--red); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 13px 24px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--white); color: var(--ink); }

/* ---- header ---- */
/* Pinned: the menu and the LIVE button stay in reach on long pages. */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 20; }
/* In-page jumps (#info, #give) land below the pinned bar, not under it. */
[id] { scroll-margin-top: 88px; }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.wordmark { text-decoration: none; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .5px; text-transform: uppercase; display: inline-block; transform: skewX(-10deg); /* leaning forward: fast */ }
.wordmark:hover { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-link { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 4px; display: inline-block; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: var(--r-btn);
}
.live-pill:hover { background: var(--white); color: var(--red); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.live-pill .live-dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-pill .live-dot { animation: none; } }
.menu-toggle {
  display: none; background: transparent; color: var(--white); border: 2px solid var(--on-dark);
  border-radius: var(--r-btn); font: 700 15px var(--sans); padding: 10px 14px; cursor: pointer;
}
.header-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .header-inner { flex-wrap: nowrap; }
  .nav { gap: 10px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 16px; border-top: 1px solid #333;
  }
  .nav-links.open { display: flex; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-link { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid #262626; }
  .live-pill { padding: 10px 14px; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 20px; }
  .live-pill .live-label-long { display: none; }
}

/* ---- live banner ---- */
.live-banner { background: var(--gold); color: var(--ink); }
.live-banner[hidden] { display: none; }
.live-banner .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center; font-weight: 600; text-align: center; }
.live-banner a { color: var(--ink); font-weight: 700; }

/* ---- hero ---- */
.hero { max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter) 40px; text-align: center; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
/* The small "THE" above SHULEY CUP: part of the heading (so it reads "The
   Shuley Cup"), dressed exactly like the eyebrow line above it. */
.h1-the {
  display: block; margin-bottom: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.5;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.hero h1 { margin: 20px 0 0; font-size: clamp(72px, 15vw, 136px); line-height: .92; letter-spacing: .5px; }
.meta-row { margin: 20px auto 0; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; font-size: 18px; font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; }
.btn-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- pinned updates ---- */
.pinned { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 48px; display: grid; gap: 16px; }
.pin-card {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-card);
  padding: 24px 28px; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: start;
}
.pin-label { grid-row: span 3; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--red); text-transform: uppercase; padding-top: 6px; display: flex; align-items: center; gap: 8px; }
.pin-card h2 { margin: 0; font-size: 32px; text-transform: uppercase; }
.pin-card h2 a { color: var(--ink); text-decoration: none; }
.pin-card h2 a:hover { color: var(--red); }
.pin-card p { margin: 0; color: var(--body); font-size: 16px; }
.pin-meta { font-size: 14px; color: var(--muted); }
.pin-meta a { font-weight: 700; }
@media (max-width: 600px) {
  .pin-card { grid-template-columns: 1fr; padding: 20px; }
  .pin-label { grid-row: auto; padding-top: 0; }
}

/* ---- rafters ---- */
.rafters { padding: 24px 0 72px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: 1px; }
.section-head .hint { font-size: 14px; color: var(--muted); }
.rail { margin-top: 16px; height: 6px; background: var(--ink); border-radius: 3px; }
.banner-row {
  overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory;
  scrollbar-color: var(--muted) transparent;
}
.banner-row:focus-visible { outline-offset: 4px; }
.banners { display: flex; gap: 14px; padding: 0 4px; width: max-content; margin: 0; list-style: none; }
.banner-wrap { display: flex; flex-direction: column; align-items: center; scroll-snap-align: start; }
.hanger { width: 2px; height: 18px; background: var(--ink); }
.banner {
  width: 128px; height: 200px; color: var(--white); text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
  display: flex; flex-direction: column; align-items: center; padding: 18px 10px 0; text-align: center;
}
.banner--navy { background: var(--navy); }
.banner--red { background: var(--red); }
.banner--charcoal { background: var(--charcoal); }
a.banner:hover { filter: brightness(1.2); color: var(--white); }
.banner-kicker { font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.banner-year { margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--gold); line-height: 1.15; }
.banner-rule { margin-top: 8px; width: 40px; height: 2px; background: var(--gold); }
.banner-team { margin-top: 10px; font-size: 13px; font-weight: 700; line-height: 1.25; text-transform: uppercase; overflow-wrap: anywhere; }

/* ---- tournament ticket ---- */
.info { background: var(--white); }
.info .wrap { padding-top: 88px; padding-bottom: 88px; }
.section-title { margin: 0; font-size: clamp(40px, 7vw, 60px); }
.ticket {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink); border-radius: var(--r-card); overflow: hidden;
}
.stub { padding: 28px; border-right: 2px dashed var(--rule); min-width: 0; }
.stub:last-child { border-right: 0; }
.stub-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--red); }
.stub-lead { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.stub-body { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--body); }
.stub-body ul { list-style: none; margin: 0; padding: 0; }
.sched-day { display: inline-block; width: 2.6em; font-weight: 700; color: var(--ink); }
.stub--ink { background: var(--ink); color: var(--white); }
.stub--ink .stub-label { color: var(--gold); }
.stub-fee { margin-top: 12px; font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1.1; }
.stub-note { margin-top: 8px; font-size: 15px; color: var(--on-dark-muted); }
@media (max-width: 1000px) {
  .ticket { grid-template-columns: repeat(2, 1fr); }
  .stub:nth-child(2n) { border-right: 0; }
  .stub:nth-child(-n+2) { border-bottom: 2px dashed var(--rule); }
}
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .stub { border-right: 0; border-bottom: 2px dashed var(--rule); }
  .stub:last-child { border-bottom: 0; }
}
/* Two stubs (When, Where): side by side down to phone width, then stacked. */
.ticket--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) {
  .ticket--two .stub:nth-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .ticket--two { grid-template-columns: 1fr; }
  .ticket--two .stub:first-child { border-bottom: 2px dashed var(--rule); }
}
.stub-body .tba { margin: 0; font-weight: 600; color: var(--muted); }

/* This year's fundraising story, under the tournament stubs. */
.fundraising { margin: 48px auto 0; max-width: 860px; text-align: center; }
.fundraising-title { margin: 0 0 12px; font-size: clamp(28px, 5vw, 40px); }
.fundraising .prose { color: var(--body); }
.fundraising .prose h3 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--red); margin: 32px 0 8px; }
.fundraising .btn { margin-top: 12px; }

/* ---- give ---- */
.give { background: var(--navy); color: var(--white); }
.give .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.give-total { flex: 1 1 280px; text-align: center; }
.give-amount { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 18vw, 116px); line-height: 1; color: var(--gold); }
.give-since { margin-top: 10px; font-size: 16px; color: var(--on-navy); }
.give-copy { flex: 999 1 520px; min-width: 0; }
.give-copy h2 { margin: 0; font-size: clamp(34px, 6vw, 50px); text-transform: uppercase; }
.give-copy h2 a { color: inherit; text-decoration-color: var(--gold); }
.give-copy p { margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: var(--on-navy); }
.give-copy .btn { margin-top: 24px; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--footer-text); flex-shrink: 0; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }

/* ---- inner pages ---- */
.page { padding: 56px var(--gutter) 88px; }
.page-col {
  max-width: 760px; margin: 0 auto; background: var(--white); border-radius: var(--r-card);
  padding: 48px clamp(20px, 5vw, 56px);
}
.page-col.wide { max-width: var(--max); }
@media (max-width: 600px) {
  .page { padding: 16px 8px 48px; }
  .page-col { padding: 28px 16px; }
}
.page-col > h1 { margin: 0 0 8px; font-size: clamp(46px, 9vw, 76px); line-height: .95; text-transform: uppercase; overflow-wrap: break-word; }
.page-lede { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 34px; margin: 40px 0 12px; text-transform: uppercase; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--red); }
.prose img { border-radius: var(--r-card); }
.prose blockquote { margin: 24px 0; padding: 4px 20px; border-left: 4px solid var(--red); color: var(--muted); }
.crumb { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.crumb a { text-decoration: none; }

/* people (board, captains) */
.people { display: grid; gap: 28px; margin-top: 32px; }
/* Photo on the left; name and bio stacked on the right. On phones the bio
   drops under both, full width. */
.person {
  display: grid; grid-template-columns: 140px 1fr; grid-template-areas: "photo head" "photo bio";
  grid-template-rows: auto 1fr; column-gap: 24px; align-items: start;
  padding-top: 28px; border-top: 2px dashed var(--rule);
}
.person > img, .person > .no-photo { grid-area: photo; }
.person > div:not(.prose):not(.no-photo) { grid-area: head; }
.person > .prose { grid-area: bio; }
.person:first-child { border-top: 0; padding-top: 0; }
.person img, .person .no-photo { width: 140px; height: 140px; object-fit: cover; border-radius: var(--r-card); background: var(--concrete); }
.no-photo { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 48px; color: var(--muted); }
.person h2, .person h3 { margin: 0; font-size: 32px; text-transform: uppercase; }
.person-role { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--red); text-transform: uppercase; margin-top: 6px; }
.person .prose { margin-top: 10px; font-size: 16px; }
.person .prose p { margin: 0 0 10px; }
@media (max-width: 560px) {
  .person { grid-template-columns: 88px 1fr; grid-template-areas: "photo head" "bio bio"; grid-template-rows: auto; column-gap: 16px; align-items: center; }
  .person img, .person .no-photo { width: 88px; height: 88px; }
  .person > .prose { margin-top: 14px; }
}

/* updates list */
.update-list { list-style: none; margin: 24px 0 0; padding: 0; }
.update-item { padding: 22px 0; border-top: 2px dashed var(--rule); }
.update-item:first-child { border-top: 0; }
.update-item h2 { margin: 4px 0 6px; font-size: 30px; text-transform: uppercase; }
.update-item h2 a { color: var(--ink); text-decoration: none; }
.update-item h2 a:hover { color: var(--red); }
.update-item p { margin: 0; color: var(--body); }
.update-date { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--red); text-transform: uppercase; }
.tag-pin { display: inline-block; margin-left: 8px; background: var(--ink); color: var(--gold); font-size: 11px; letter-spacing: 1px; padding: 2px 8px; border-radius: 4px; vertical-align: 2px; }

/* ---- results ---- */
.year-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-card); overflow: hidden; }
.year-grid a { display: block; height: 100%; background: var(--concrete); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.year-grid a:hover { background: var(--white); }
.year-grid .y { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.year-grid .c { margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 600; }

.year-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.year-nav a { display: inline-block; padding: 6px 10px; border-radius: var(--r-btn); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--concrete); }
.year-nav a:hover { background: var(--ink); color: var(--white); }
.year-nav a[aria-current="page"] { background: var(--red); color: var(--white); }

.champ {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: var(--navy); color: var(--white); border-radius: var(--r-card); padding: 24px; margin: 8px 0 32px;
}
.champ img { width: 260px; border-radius: 6px; }
.champ-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--gold); }
.champ-name { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 54px); line-height: 1; text-transform: uppercase; margin-top: 6px; }
.champ-sub { color: var(--on-navy); margin-top: 8px; }
@media (max-width: 640px) { .champ { grid-template-columns: 1fr; } .champ img { width: 100%; } }

.results h2 { font-size: 36px; margin: 48px 0 14px; text-transform: uppercase; }
.results h2:first-of-type { margin-top: 0; }
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r-card); }
table.stats { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.stats th, .stats td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid #E2E3E6; }
.stats th { background: var(--ink); color: var(--white); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.stats .l { text-align: left; }
.stats tbody tr:last-child td { border-bottom: 0; }
.stats tbody tr:nth-child(even) { background: #F7F7F8; }
.stats td.strong { font-weight: 700; }
.stats td.wrap-ok { white-space: normal; min-width: 160px; }
.place { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--concrete); font-weight: 700; font-size: 13px; }
.place-1 { background: var(--gold); color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.more-toggle { margin-top: 12px; }

.games { display: grid; gap: 12px; }
.game { border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--white); overflow: hidden; }
.game > summary {
  list-style: none; cursor: pointer; padding: 14px 18px; display: grid;
  grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center;
}
.game > summary::-webkit-details-marker { display: none; }
.game > summary:hover { background: var(--concrete); }
.game-when { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.game-when .stage { display: block; color: var(--red); }
.game-score { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; font-weight: 600; }
.game-score .win { font-weight: 800; }
.game-score .n { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; }
.game-open { font-size: 13px; font-weight: 700; color: var(--navy); }
.game-open::after { content: ' +'; }
.game[open] .game-open::after { content: ' –'; }
.box { padding: 4px 18px 20px; border-top: 2px dashed var(--rule); }
.box h3 { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin: 18px 0 8px; }
.box .table-scroll { border-width: 1px; border-radius: 6px; }
.box .stats { font-size: 14px; }
.box .stats th { font-size: 11px; padding: 8px 10px; }
.box .stats td { padding: 8px 10px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; background: var(--concrete); padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
@media (max-width: 640px) {
  .game > summary { grid-template-columns: 1fr auto; }
  .game-when { grid-column: 1 / -1; }
}

.awards-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.award { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 16px 18px; background: var(--white); }
.award-name { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.award-for { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-top: 2px; }
.award-winner { margin-top: 10px; font-weight: 700; font-size: 17px; }
.award-history { margin-top: 16px; }
.award-history h3 { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; margin: 32px 0 4px; }

/* ---- print ---- */
@media print {
  .site-header, .site-footer, .live-banner, .btn-row { display: none; }
  body { background: var(--white); }
}

/* ---- sortable tables (stats) ---- */
.stats th .sort {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
.stats th .sort:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.stats th .sort::after { content: '↕'; opacity: .35; font-size: 11px; }
.stats th[aria-sort="descending"] .sort::after { content: '↓'; opacity: 1; color: var(--gold); }
.stats th[aria-sort="ascending"] .sort::after { content: '↑'; opacity: 1; color: var(--gold); }

/* ---- About submenu (About the Cup, Board, Captains) ---- */
.has-sub { position: relative; }
.sub-toggle { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.sub-toggle.is-current { color: var(--gold); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.sub-menu {
  display: none; position: absolute; right: 0; top: 100%; min-width: 190px; margin: 0; padding: 6px 0; list-style: none;
  background: var(--ink); border: 1px solid #333; border-top: 3px solid var(--red); border-radius: 0 0 var(--r-btn) var(--r-btn); box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}
.sub-menu .nav-link { display: block; padding: 10px 18px; white-space: nowrap; }
.sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
@media (hover: hover) and (min-width: 1101px) {
  .has-sub:hover .sub-menu { display: block; }
}
@media (max-width: 1100px) {
  /* In the phone menu the three links are always shown, indented under "About". */
  .sub-toggle { width: 100%; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid #262626; cursor: default; pointer-events: none; color: var(--on-dark-muted); }
  .caret { display: none; }
  .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; background: none; border-radius: 0; }
  .sub-menu .nav-link { padding: 12px 4px; font-size: 16px; }
}

/* ---- the rink behind the top of the page ---- */
/* Full width, very faint, behind the hero and the pinned update. Two layers:
   skate-scratched ice (photo: Ann Danilina, Unsplash License) underneath,
   and the rink markings (rink.svg) on top. Both files are full strength; the
   opacities are set here. */
.hero-band { position: relative; overflow: hidden; isolation: isolate; }
.hero-band::before,
.hero-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
/* Chosen replacement, waiting on a licence: Adobe Stock 166510116 (a
   scratched centre-ice illustration). Once the licensed file is in
   assets/img, point ::before at it at .1 and hide ::after (its own lines
   replace the drawn ones). Never ship the watermarked preview. */
.hero-band::before {
  background: url('/assets/img/hero-ice.jpg') center / cover no-repeat;
  opacity: .12;
}
.hero-band::after {
  background: url('/assets/img/rink.svg') center / cover no-repeat;
  opacity: .1;
}
@media (max-width: 700px) {
  /* On a phone, show centre ice rather than squeezing the whole rink. */
  .hero-band::after { background-size: auto 100%; opacity: .07; }
}
@media print { .hero-band::before, .hero-band::after { display: none; } }
