:root {
  --primary: #0f2847;
  --primary-dark: #0a1d36;
  --accent: #d4af37;
  --accent-text: #8a6d1b;
  --band-bg: #e9dcb0;
  --band-text: #0f2847;
  --soft-bg: #faf7ef;
  --welcome-accent: #d4af37;
  --hero-button-bg: #d4af37;
  --hero-button-text: #0b0d12;
  --hero: radial-gradient(circle at 80% 30%, rgba(212,175,55,.35), transparent 55%), linear-gradient(120deg, #0a1628 0%, #0f2847 60%, #1d3a63 100%);
  --photo: linear-gradient(135deg, #0f2847 0%, #1d3a63 55%, #d4af37 140%);
  --logo-h: 84px;
  --logo-h-mobile: 62px;
  --text: #1a1d23;
  --muted: #5b6270;
  --line: #e3e6eb;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
code { font-size: .875em; background: #f1f2f4; padding: .1em .35em; border-radius: 4px; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

/* Brand header */
.site-header { background: var(--primary); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 92px; }
.brand img { height: var(--logo-h); width: auto; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: rgba(255,255,255,.12); }
.menu nav { position: absolute; top: 52px; left: 0; z-index: 5; min-width: 240px; background: var(--primary-dark); padding: .5rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.menu a { display: block; padding: .75rem 1rem; color: #fff; text-decoration: none; font-weight: 600; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a { display: block; padding: .6rem .9rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .9375rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.socials { display: flex; gap: .9rem; }
.social { width: 22px; height: 22px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; }
.search { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.22); }

/* Sport bar */
.sport-bar { background: var(--band-bg); color: var(--band-text); }
.sport-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.sport-name { font-family: var(--serif); font-size: 1.625rem; text-transform: uppercase; color: var(--band-text); text-decoration: none; }
.sport-nav ul { display: flex; gap: 2rem; }
.sport-nav a { color: #1a1d23; text-decoration: none; font-weight: 700; font-size: .9375rem; }
.sport-nav a[aria-current="page"], .sport-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.sport-menu { display: none; position: relative; }
.sport-menu summary { cursor: pointer; font-weight: 700; list-style: none; padding: .5rem 0; }
.sport-menu summary::-webkit-details-marker { display: none; }
.sport-menu nav { position: absolute; right: 0; top: 40px; z-index: 5; background: #fff; min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,.2); padding: .5rem; }
.sport-menu a { display: block; padding: .6rem .8rem; color: #1a1d23; text-decoration: none; font-weight: 600; }

/* Titles */
.content { padding-top: 2rem; padding-bottom: 3rem; }
.page-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; border-left: 4px solid var(--primary); padding-left: 1.25rem; margin-bottom: 1.5rem; }
.page-title h1 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3.4vw, 2.25rem); margin: 0; }
.presented { font-size: .8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.presented strong { color: var(--text); }
.section-title { display: flex; align-items: center; gap: .75rem; font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(1.375rem, 2.6vw, 1.75rem); color: var(--primary); }
.section-title .mark { flex: none; width: 9px; height: 1.1em; background: var(--accent); transform: skewX(-18deg); box-shadow: 6px 0 0 var(--primary); margin-right: .35rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.see-all { font-weight: 700; font-size: .875rem; text-decoration: none; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.section-intro { color: var(--muted); margin-top: -.25rem; }
.small-print { font-size: .875rem; color: var(--muted); }

/* Hero */
.hero { background: var(--hero); color: #fff; }
.hero-inner { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(2.25rem, 6vw, 4rem); margin-bottom: .5rem; }
.hero-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; margin: 0 0 .5rem; color: var(--welcome-accent); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { display: inline-block; padding: .75rem 1.3rem; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; border-radius: 8px; }
.hero .button { background: var(--hero-button-bg); color: var(--hero-button-text); }
.button-ghost, .hero .button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }

/* Widget sections */
.widget-section { margin: 0 0 3rem; }

/* Schedule */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.tool { padding: .8rem 1.2rem; border-radius: 8px; background: #eceef1; font-weight: 700; font-size: .875rem; color: var(--primary); }
.tool-primary { background: var(--primary); color: #fff; }
.select { padding: .8rem 2.5rem .8rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; font-size: .9375rem; position: relative; }
.select::after { content: "⌄"; position: absolute; right: 1rem; top: .55rem; color: var(--muted); }
.record { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.record div { text-align: center; padding: 1.25rem .5rem; border-right: 1px solid var(--line); }
.record div:last-child { border-right: 0; }
.record dt { font-size: .875rem; color: var(--muted); font-weight: 600; }
.record dd { margin: .25rem 0 0; font-size: 1.75rem; font-weight: 700; color: var(--primary); }

/* Columns */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; }
.two-col-even { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-top: 3rem; padding-bottom: 3rem; }
.side-col { display: grid; gap: 1.5rem; align-content: start; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; }
.panel-title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: 1.375rem; color: var(--primary);
  padding-bottom: .6rem; border-bottom: 3px solid var(--primary); display: inline-block; }
.videos { display: grid; gap: 1.1rem; margin-top: .5rem; }
.videos li { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: start; }
.videos a { font-weight: 600; text-decoration: none; display: block; }
.thumb { width: 64px; height: 64px; border-radius: 6px; background: var(--photo); }
.meta { display: block; font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
.side-ad { min-height: 250px; border-radius: 4px; background: linear-gradient(160deg, var(--primary-dark), var(--primary)); color: #fff;
  display: grid; place-content: center; text-align: center; gap: .25rem; padding: 1rem; }
.side-ad span { font-size: 1.5rem; font-weight: 800; }
.steps { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .4rem; }

/* Headlines */
.headlines { margin-bottom: 3rem; }
.headline-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.5rem 1.25rem; }
.story-lead { grid-row: span 2; }
.photo { background: var(--photo); border-radius: 8px; aspect-ratio: 16 / 9; }
.photo-lead { display: grid; place-items: center; }
.photo-lead img { width: 28%; height: auto; opacity: .9; }
.photo-2 { background-position: right center; }
.story h3 { margin: .75rem 0 .25rem; font-size: 1.125rem; }
.story-lead h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.story .meta { margin: 0; }

/* Soft band, quick links */
.soft-band { background: var(--soft-bg); }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 1.5rem; }
.quick-links a { text-decoration: none; font-weight: 600; }
.quick-links a::before { content: "☆ "; color: var(--accent-text); }

/* Welcome band */
.welcome-band { background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--primary); color: #fff; text-align: center; padding: 4.5rem 0; }
.welcome-band h2 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5.5vw, 3.75rem); }
.welcome-band .accent { color: var(--welcome-accent); }
.welcome-band p { max-width: 60ch; margin: 0 auto 1.5rem; font-size: 1.125rem; }
.welcome-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.welcome-links a { background: var(--band-bg); color: var(--band-text); padding: .8rem 1.4rem; border-radius: 4px; font-weight: 700; text-decoration: none; }

/* Partners and footer */
.partners { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.partners-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.partner { font-weight: 800; color: #8a9099; letter-spacing: .02em; }
.site-footer { background: var(--primary-dark); color: #dfe3ea; padding: 2.5rem 0; font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2rem; align-items: start; }
.footer-brand img { height: 64px; width: auto; margin-bottom: .75rem; }
.footer-brand p { margin: 0; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-note { margin: 0; color: #b9c0cc; }

/* Test pages */
.test-page { padding-top: 2rem; padding-bottom: 3rem; }
.test-case { border: 1px dashed #c5cad3; border-radius: 6px; padding: 1rem; margin-bottom: 1.25rem; }
.test-case h2 { font-size: 1.125rem; }
.test-case p { margin: .25rem 0; }
.refused-frame { border: 2px dashed #c0392b; padding: .5rem; margin-top: 1rem; }

/* Tablet */
@media (max-width: 1024px) {
  .socials { display: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .side-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Phone */
@media (max-width: 768px) {
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .header-inner { min-height: 72px; gap: .75rem; }
  .brand img { height: var(--logo-h-mobile); }
  .main-nav { display: none; }
  .sport-nav { display: none; }
  .sport-menu { display: block; }
  .sport-name { font-size: 1.125rem; }
  .search { width: 44px; height: 44px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .record { grid-template-columns: repeat(2, 1fr); }
  .record div:nth-child(2) { border-right: 0; }
  .record div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .headline-grid { grid-template-columns: minmax(0, 1fr); }
  .story-lead { grid-row: auto; }
  .two-col-even { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
  .hero-inner { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .welcome-band { padding: 3rem 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 769px) {
  .menu { display: none; }
}
