/* Browser League
   Off-white page, navy bands, amber points.
   Oswald for headings and numbers, Source Sans 3 for text. */

:root {
    --page: #f4f5f7;
    --card: #ffffff;
    --navy: #14213d;
    --navy-2: #1c2d52;
    --ink: #1f2430;
    --text: #3a4256;
    --mute: #6f778a;
    --rule: #d9dde5;
    --amber: #fca311;
    --amber-2: #e08f05;
    --green: #2e8b57;
    --red: #c9432b;
    --head: 'Oswald', 'Arial Narrow', sans-serif;
    --body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { background: var(--page); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
main { min-height: 60vh; }
a { color: var(--navy); }
a:hover { color: var(--amber-2); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink); line-height: 1.08; text-transform: none; }
h1 { font-size: 3.2rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 14px; z-index: 2000; }
.skip:focus { left: 8px; }

.btn { display: inline-block; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 500; font-size: 1.02rem; letter-spacing: 0.01em; padding: 11px 22px; border-radius: 3px; border: 2px solid var(--navy); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* Bar */
.bar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 60; border-bottom: 3px solid var(--amber); }
.bar-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { font-family: var(--head); font-weight: 700; font-size: 1rem; background: var(--amber); color: var(--navy); padding: 4px 7px; border-radius: 3px; line-height: 1; }
.brand-name { font-family: var(--head); font-weight: 500; font-size: 1.25rem; letter-spacing: 0.01em; }
.nav { display: flex; gap: 22px; }
.nav a { font-family: var(--head); font-weight: 500; font-size: 1rem; color: rgba(255, 255, 255, 0.85); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.here { color: #fff; border-color: var(--amber); }
.navbtn { display: none; font-family: var(--head); background: transparent; border: 2px solid rgba(255, 255, 255, 0.7); color: #fff; padding: 5px 12px; border-radius: 3px; cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--navy) url('/assets/img/hero-bg.webp') 70% 30% / cover no-repeat; color: #d9dfec; padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.season { font-family: var(--head); color: var(--amber); font-size: 1.05rem; margin-bottom: 12px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-lead { font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-credit { margin: 28px 0 0; text-align: right; font-size: 0.75rem; color: rgba(217, 223, 236, 0.5); padding: 0 24px; }

.podium { list-style: none; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; }
.podium a { display: block; position: relative; text-decoration: none; color: #fff; border-radius: 4px; overflow: hidden; background: var(--navy-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.podium img { width: 100%; height: auto; object-fit: cover; }
.p1 img { aspect-ratio: 4 / 5.5; }
.p2 img, .p3 img { aspect-ratio: 4 / 4.8; }
.place { position: absolute; top: 0; left: 0; background: var(--amber); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 1.4rem; line-height: 1; padding: 8px 12px; border-radius: 0 0 4px 0; }
.p1 .place { font-size: 1.8rem; padding: 10px 14px; }
.podium-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(180deg, rgba(20, 33, 61, 0), rgba(20, 33, 61, 0.92)); display: flex; flex-direction: column; }
.podium-cap b { font-family: var(--head); font-weight: 500; font-size: 1.05rem; }
.podium-cap em { font-style: normal; color: var(--amber); font-family: var(--head); font-size: 0.95rem; }
.podium a:hover img { opacity: 0.88; }

/* Section heads */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head p { margin: 0; color: var(--mute); max-width: 560px; }

/* Standings */
.standings { padding: 56px 0 40px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; }
.league { width: 100%; border-collapse: collapse; min-width: 820px; }
.league th, .league td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.league thead th { font-family: var(--head); font-weight: 500; font-size: 0.9rem; color: #fff; background: var(--navy); border-bottom: 3px solid var(--amber); }
.league thead .pos { color: #fff; font-size: 0.9rem; font-weight: 500; }
.league tbody tr:last-child td { border-bottom: 0; }
.league tbody tr:hover td { background: #fbfbfc; }
.league .pos { width: 52px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.league tbody tr:first-child .pos { color: var(--amber-2); }
.league td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.league td a:hover { color: var(--amber-2); text-decoration: underline; }
.league .num { text-align: right; font-variant-numeric: tabular-nums; }
.league .pts { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); background: #fff7e6; }
.league thead .pts { background: var(--navy-2); color: var(--amber); }
.league .mv { font-size: 0.9rem; color: var(--mute); }
.league .mv.up { color: var(--green); font-weight: 600; }
.league .mv.down { color: var(--red); font-weight: 600; }
.league .mv.new { color: var(--navy); font-weight: 600; }
.table-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--mute); }

/* Reports */
.reports { padding: 30px 0 20px; }
.report { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 34px; scroll-margin-top: 84px; overflow: hidden; }
.report-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--rule); }
.report-pos { font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: #fff; background: var(--navy); width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 3px; line-height: 1; }
.report-head h2 { font-size: 2rem; margin-bottom: 2px; }
.report-meta { margin: 0; color: var(--mute); font-size: 0.95rem; }
.report-pts { font-family: var(--head); font-weight: 700; font-size: 2.2rem; color: var(--amber-2); line-height: 1; }
.report-pts::after { content: " pts"; font-size: 0.9rem; color: var(--mute); font-weight: 500; }
.report-img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.report-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr); gap: 40px; padding: 28px; }
.report-text p:last-child { margin-bottom: 0; }
.report-side { background: var(--page); border-radius: 4px; padding: 20px 22px; align-self: start; }
.report-side h3 { margin-bottom: 10px; }
.report-side ul { list-style: none; margin-bottom: 18px; }
.report-side li { font-size: 0.93rem; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.report-side li:last-child { border-bottom: 0; }
.report-side b { font-family: var(--head); font-weight: 500; color: var(--ink); margin-right: 6px; }
.report-side .btn { display: block; text-align: center; }
.credit { margin: 12px 0 0; font-size: 0.78rem; color: var(--mute); }

/* Promo */
.promo { padding: 40px 0 70px; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-grid > div { background: var(--navy); color: #d9dfec; padding: 30px 32px; border-radius: 4px; border-top: 4px solid var(--amber); }
.promo-grid h2 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.promo-grid p { margin-bottom: 14px; }
.promo-grid p:last-child { margin-bottom: 0; }
.promo-grid a:not(.btn) { color: var(--amber); }
.promo .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.promo .btn-ghost:hover { background: var(--amber); color: var(--navy); border-color: var(--amber); }

/* Inner pages */
.band { background: var(--navy) url('/assets/img/band.webp') right center / cover no-repeat; color: #d9dfec; padding: 52px 0 36px; border-bottom: 3px solid var(--amber); }
.band h1 { color: #fff; font-size: 2.6rem; margin-bottom: 6px; }
.band p { margin: 0; font-family: var(--head); font-size: 0.95rem; color: rgba(217, 223, 236, 0.7); }
.page { padding: 44px 0 80px; }
.page h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.page h2:first-child { margin-top: 0; }
.page ul, .page ol { padding-left: 22px; margin-bottom: 1.1em; }
.page li { margin-bottom: 6px; }
.page strong { color: var(--ink); }
.callout { background: var(--card); border-left: 4px solid var(--amber); border-radius: 0 4px 4px 0; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.mail { font-family: var(--head); font-size: 1.1rem; }

.weights { width: 100%; border-collapse: collapse; margin: 14px 0 24px; background: var(--card); border: 1px solid var(--rule); font-size: 0.95rem; }
.weights th, .weights td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.weights th { font-family: var(--head); font-weight: 500; color: #fff; background: var(--navy); }
.weights td:first-child { font-family: var(--head); color: var(--ink); white-space: nowrap; }
.weights td:nth-child(2) { font-family: var(--head); font-weight: 700; color: var(--amber-2); }

.faq-item { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 22px; margin-bottom: 12px; }
.faq-item h2 { font-size: 1.2rem; margin: 0 0 6px; }
.faq-item p:last-child { margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.form { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 26px; }
.form-row { margin-bottom: 14px; }
.form label { display: block; font-family: var(--head); font-size: 0.95rem; color: var(--ink); margin-bottom: 5px; }
.form input, .form textarea { width: 100%; background: var(--page); border: 1px solid var(--rule); border-radius: 3px; color: var(--ink); font-family: var(--body); font-size: 1rem; padding: 10px 12px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.3); }
.form textarea { min-height: 140px; resize: vertical; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 3px; font-size: 0.95rem; color: var(--ink); }
.form-msg.ok { display: block; background: #fff7e6; border: 1px solid var(--amber); }
.form-msg.err { display: block; background: #fbe9e5; border: 1px solid var(--red); }

.help { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 30px; }
.help li { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px; }
.help b { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.help p { margin: 0 0 8px; font-size: 0.95rem; }

/* Footer */
.foot { background: var(--navy); color: #b9c2d6; padding: 48px 0 26px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 28px; }
.brand-foot { margin-bottom: 12px; }
.foot-cols p { font-size: 0.95rem; max-width: 360px; margin: 0; }
.foot-h { font-family: var(--head); color: #fff; margin-bottom: 8px !important; }
.foot-cols a:not(.brand) { display: block; color: #b9c2d6; text-decoration: none; font-size: 0.95rem; margin-bottom: 7px; }
.foot-cols a:not(.brand):hover { color: var(--amber); }
.foot-fine { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 20px; }
.foot-fine p { font-size: 0.82rem; color: #8f9ab3; line-height: 1.6; margin-bottom: 8px; }
.foot-fine a { color: #d9dfec; }

/* Responsive */
@media (max-width: 1000px) {
    h1 { font-size: 2.7rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .podium { max-width: 620px; }
    .report-body { grid-template-columns: 1fr; gap: 24px; }
    .promo-grid { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
    .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--navy); padding: 6px 24px 14px; border-bottom: 3px solid var(--amber); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
    .navbtn { display: inline-block; }
    .brand-name { font-size: 1.05rem; }
    h1, .band h1 { font-size: 2.1rem; }
    h2, .report-head h2 { font-size: 1.6rem; }
    .hero { padding: 40px 0 30px; }
    .podium { gap: 8px; }
    .podium-cap b { font-size: 0.9rem; }
    .place { font-size: 1.1rem; padding: 6px 9px; }
    .p1 .place { font-size: 1.3rem; padding: 7px 10px; }
    .report-head { grid-template-columns: auto 1fr; padding: 16px 18px; gap: 14px; }
    .report-pts { grid-column: 1 / -1; }
    .report-pos { width: 48px; height: 48px; font-size: 1.8rem; }
    .report-img { aspect-ratio: 16 / 9; }
    .report-body { padding: 18px; }
    .help { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: 1fr; gap: 24px; }
}
