/* ==========================================================================
   Hockey Belgaum — front-end theme
   Palette and geometry come from the pitch: turf greens, chalk lines,
   the shooting-circle arc, and a marigold accent for anything live or urgent.
   ========================================================================== */

:root {
    /* ---- Brand palette, sampled from the official crest -------------------
       navy  #02214D  crown-less field, disc, sticks, wordmark
       gold  #C8911C  crown, cartouche, flourishes, ball
       Change these and the whole site follows.                             */
    --navy: #02214D;
    --navy-deep: #011738;
    --navy-ink: #000C22;
    --navy-soft: #0B3468;

    --gold: #C8911C;
    --gold-light: #E0AE33;
    --gold-deep: #94690F;

    /* Functional colours, desaturated to sit beside the navy and gold */
    --crimson: #B3241C;
    --green: #1B7A47;

    --chalk: #F2F4F8;
    --paper: #FFFFFF;
    --slate: #5A6478;

    /* Semantic names used throughout the stylesheet */
    --pitch: var(--navy-deep);
    --pitch-deep: var(--navy-ink);
    --turf: var(--navy);
    --turf-light: var(--navy-soft);
    --marigold: var(--gold);
    --clay: var(--crimson);
    --line: rgba(2, 33, 77, .13);
    --line-strong: rgba(2, 33, 77, .30);

    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

    --gutter: clamp(1.15rem, 4vw, 3.5rem);
    --radius: 3px;
}

/* --- base ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0225rem;
    line-height: 1.65;
    color: var(--pitch);
    background: var(--chalk);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.005em;
    line-height: 1.04;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); text-transform: uppercase; }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.85rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.05rem; }

a { color: var(--turf); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--pitch); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 3px solid var(--marigold);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--marigold);
    color: var(--pitch);
    padding: .75rem 1.25rem;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- layout shell -------------------------------------------------------- */

.shell {
    width: min(1240px, 100%);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.band--dark { background: var(--pitch); color: var(--chalk); }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--paper { background: var(--paper); }

/* Chalk hairline that separates bands, echoing the 23-metre line */
.band + .band:not(.band--dark) { border-top: 1px solid var(--line); }

/* --- section headers ----------------------------------------------------- */

.eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--turf);
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .65rem;
}
.eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-strong);
}
.band--dark .eyebrow { color: var(--marigold); }
.band--dark .eyebrow::after { background: rgba(237, 241, 236, .22); }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }

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

.btn-hb,
.btn-hb-ghost {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .7rem 1.55rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, color .16s ease;
}
.btn-hb {
    background: var(--marigold);
    color: var(--pitch);
}
.btn-hb:hover { background: var(--gold-light); color: var(--pitch); transform: translateY(-2px); }

.btn-hb-ghost {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}
.btn-hb-ghost:hover { background: currentColor; color: var(--pitch); transform: translateY(-2px); }
.band--dark .btn-hb-ghost:hover { color: var(--pitch); }

.link-more {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid var(--marigold);
    padding-bottom: 2px;
    white-space: nowrap;
}

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

.topbar {
    background: var(--pitch-deep);
    color: rgba(237, 241, 236, .74);
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .06em;
}
.topbar .shell {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding-block: .5rem;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--marigold); }
.topbar__social { display: flex; gap: 1rem; }

.masthead {
    background: var(--pitch);
    color: var(--chalk);
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 3px solid var(--marigold);
}
.masthead .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .7rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    color: inherit;
}
.brand img {
    width: 56px; height: 56px;
    object-fit: contain;
    /* The crest is navy-on-white, so it needs a light chip to sit on
       the navy masthead - otherwise the sticks and disc disappear. */
    background: var(--paper);
    border-radius: 8px;
    padding: 4px;
}
.brand__mark {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--marigold);
    color: var(--pitch);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.brand__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.55rem;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: .01em;
}
.brand__sub {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(237, 241, 236, .62);
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.06rem;
    letter-spacing: .045em;
    text-transform: uppercase;
    color: var(--chalk);
    text-decoration: none;
    padding: .55rem .8rem;
    border-radius: var(--radius);
    white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--marigold); }
.nav a.is-active { box-shadow: inset 0 -3px 0 var(--marigold); }

.nav__group { position: relative; }
.nav__drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--paper);
    border-top: 3px solid var(--marigold);
    box-shadow: 0 18px 40px rgba(6, 26, 23, .22);
    padding: .35rem 0;
    display: none;
}
.nav__group:hover .nav__drop,
.nav__group:focus-within .nav__drop { display: block; }
.nav__drop a {
    display: block;
    color: var(--pitch);
    font-size: 1rem;
    padding: .5rem 1.1rem;
    border-radius: 0;
}
.nav__drop a:hover { background: var(--chalk); color: var(--turf); }

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(237, 241, 236, .3);
    color: var(--chalk);
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1rem;
    padding: .45rem .9rem;
    border-radius: var(--radius);
}

/* --- hero: the signature element ---------------------------------------- */

.hero {
    position: relative;
    background: var(--pitch);
    color: var(--chalk);
    overflow: hidden;
    isolation: isolate;
}
.hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .38;
    z-index: -2;
}
.hero::after {
    /* the shooting circle: a chalk arc bleeding off the right edge */
    content: "";
    position: absolute;
    right: -22vw;
    top: 50%;
    transform: translateY(-50%);
    width: 62vw;
    height: 62vw;
    max-width: 780px;
    max-height: 780px;
    border: 2px solid rgba(237, 241, 236, .16);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.hero::before {
    /* the 23-metre line */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22%;
    height: 1px;
    background: rgba(237, 241, 236, .12);
    z-index: -1;
}
.hero__inner {
    padding-block: clamp(4rem, 12vw, 8.5rem);
    max-width: 47rem;
}
.hero h1 {
    margin-bottom: 1rem;
    letter-spacing: -.015em;
}
.hero h1 em {
    font-style: normal;
    color: var(--marigold);
}
.hero__sub {
    font-size: clamp(1.05rem, 1.9vw, 1.28rem);
    color: rgba(237, 241, 236, .84);
    max-width: 36rem;
    margin-bottom: 1.9rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__dots {
    display: flex;
    gap: .5rem;
    margin-top: 2.5rem;
}
.hero__dots button {
    width: 34px; height: 4px;
    border: 0;
    padding: 0;
    background: rgba(237, 241, 236, .28);
    cursor: pointer;
}
.hero__dots button[aria-selected="true"] { background: var(--marigold); }

.hero-slide { display: none; }
.hero-slide.is-active { display: block; }

/* --- scoreboard strip ---------------------------------------------------- */

.scorestrip {
    background: var(--pitch-deep);
    color: var(--chalk);
    border-top: 1px solid rgba(237, 241, 236, .1);
}
.scorestrip__rail {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.score {
    flex: 0 0 auto;
    min-width: 260px;
    padding: 1.05rem 1.5rem;
    border-right: 1px solid rgba(237, 241, 236, .12);
}
.score__meta {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(237, 241, 236, .55);
    margin-bottom: .45rem;
    display: flex;
    gap: .6rem;
    align-items: center;
}
.score__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}
.score__goals {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--marigold);
}
.score--live .score__meta { color: var(--clay); }
.tag-live {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--clay);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

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

.grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}
.grid--two { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(6, 26, 23, .1); }
.card__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--turf), var(--pitch));
    position: relative;
    overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.25rem 1.35rem 1.45rem; flex: 1; display: flex; flex-direction: column; }
.card__meta {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: .55rem;
}
.card h3 { margin-bottom: .5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--turf); }
.card p { color: var(--slate); font-size: .96rem; margin-bottom: 1rem; }
.card__foot { margin-top: auto; }

/* Corner flag: the small category marker on media */
.flag {
    position: absolute;
    top: 0; left: 0;
    background: var(--marigold);
    color: var(--pitch);
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .32rem .7rem;
}

/* --- featured story ------------------------------------------------------ */

.feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}
.feature__media { min-height: 320px; background: linear-gradient(135deg, var(--turf), var(--pitch)); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(1.5rem, 3vw, 2.6rem); align-self: center; }
.feature__body h3 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }

/* --- fixture list -------------------------------------------------------- */

.fixtures { border-top: 1px solid var(--line); }
.fixture {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.05rem .5rem;
    border-bottom: 1px solid var(--line);
}
.fixture__when {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .08em;
    color: var(--slate);
    text-transform: uppercase;
}
.fixture__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.fixture__teams > :last-child { text-align: right; }
.fixture__score {
    font-family: var(--mono);
    font-weight: 600;
    background: var(--pitch);
    color: var(--marigold);
    padding: .2rem .75rem;
    border-radius: var(--radius);
    text-align: center;
    min-width: 68px;
}
.fixture__stage {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
}
.band--dark .fixture, .band--dark .fixtures { border-color: rgba(237, 241, 236, .14); }
.band--dark .fixture__when, .band--dark .fixture__stage { color: rgba(237, 241, 236, .6); }
.band--dark .fixture__score { background: var(--marigold); color: var(--pitch); }

/* --- event rows ---------------------------------------------------------- */

.event-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}
.datechip {
    background: var(--pitch);
    color: var(--chalk);
    text-align: center;
    padding: .55rem .35rem;
    border-radius: var(--radius);
    border-bottom: 3px solid var(--marigold);
}
.datechip__day {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}
.datechip__mon {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--marigold);
}
.event-row h3 { margin-bottom: .25rem; font-size: 1.3rem; }
.event-row h3 a { color: inherit; text-decoration: none; }
.event-row h3 a:hover { color: var(--turf); }
.event-row__meta {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--slate);
}
.band--dark .event-row { border-color: rgba(237, 241, 236, .14); }
.band--dark .event-row__meta { color: rgba(237, 241, 236, .62); }
.band--dark .datechip { background: var(--turf); }

/* --- pill filters -------------------------------------------------------- */

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pill {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .45rem .95rem;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    text-decoration: none;
    color: var(--pitch);
    background: transparent;
}
.pill:hover { border-color: var(--turf); color: var(--turf); }
.pill.is-active { background: var(--pitch); border-color: var(--pitch); color: var(--marigold); }

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

.pagehead {
    background: var(--pitch);
    color: var(--chalk);
    position: relative;
    overflow: hidden;
}
.pagehead::after {
    content: "";
    position: absolute;
    right: -12vw; top: -40%;
    width: 46vw; height: 46vw;
    max-width: 520px; max-height: 520px;
    border: 2px solid rgba(237, 241, 236, .12);
    border-radius: 50%;
}
.pagehead__media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.pagehead .shell { position: relative; padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.pagehead h1 { margin-bottom: .35rem; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.crumbs {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(237, 241, 236, .62);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--marigold); }

/* --- prose --------------------------------------------------------------- */

.prose { max-width: 68ch; font-size: 1.06rem; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: 1.15rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose blockquote {
    margin: 1.75rem 0;
    padding: .35rem 0 .35rem 1.4rem;
    border-left: 3px solid var(--marigold);
    font-size: 1.15rem;
    color: var(--slate);
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--chalk); font-family: var(--display); text-transform: uppercase; }

/* --- people -------------------------------------------------------------- */

.person { text-align: center; }
.person__photo {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--turf);
    margin: 0 auto 1rem;
    max-width: 180px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .5);
    font-family: var(--display);
    font-size: 2.4rem;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { margin-bottom: .1rem; font-size: 1.2rem; }
.person__role {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--turf);
}

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

.squad { width: 100%; border-collapse: collapse; }
.squad th {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--slate);
    text-align: left;
    padding: .6rem .75rem;
    border-bottom: 2px solid var(--line-strong);
}
.squad td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); }
.squad__no {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--turf);
    width: 60px;
}
.squad__name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; }
.squad__cap {
    font-family: var(--mono);
    font-size: .62rem;
    background: var(--marigold);
    color: var(--pitch);
    padding: .1rem .35rem;
    letter-spacing: .1em;
    margin-left: .5rem;
    vertical-align: middle;
}

/* --- gallery ------------------------------------------------------------- */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: .65rem;
}
.tile {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--turf);
    display: block;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover img { transform: scale(1.05); }

/* --- downloads ----------------------------------------------------------- */

.doc {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.doc__icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--pitch);
    color: var(--marigold);
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
}
.doc h4 { margin: 0 0 .1rem; font-size: 1.1rem; }
.doc p { margin: 0; font-size: .9rem; color: var(--slate); }

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

.field { margin-bottom: 1.15rem; }
.field label,
.form-group > label {
    display: block;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: .4rem;
}
.form-control,
.form-select,
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    width: 100%;
    font-family: var(--body);
    font-size: 1rem;
    padding: .72rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--pitch);
}
.form-control:focus, textarea:focus, select:focus {
    border-color: var(--turf);
    box-shadow: 0 0 0 3px rgba(18, 105, 91, .16);
    outline: none;
}
textarea { min-height: 150px; resize: vertical; }
.help-block, .invalid-feedback { font-size: .85rem; color: var(--clay); display: block; margin-top: .3rem; }
.has-error .form-control { border-color: var(--clay); }

.notice {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--turf);
    background: rgba(18, 105, 91, .08);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.notice--warn { border-color: var(--marigold); background: rgba(242, 160, 7, .12); }

/* --- sponsors ------------------------------------------------------------ */

.sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}
.sponsors img {
    max-height: 56px;
    width: auto;
    filter: grayscale(1);
    opacity: .68;
    transition: filter .2s ease, opacity .2s ease;
}
.sponsors a:hover img { filter: none; opacity: 1; }

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

.footer {
    background: var(--pitch-deep);
    color: rgba(237, 241, 236, .72);
    padding-block: clamp(2.75rem, 6vw, 4rem) 0;
    font-size: .95rem;
}
.footer h4 {
    color: #fff;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
.footer a { color: rgba(237, 241, 236, .72); text-decoration: none; }
.footer a:hover { color: var(--marigold); }
.footer__cols {
    display: grid;
    gap: 2.25rem;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .45rem; }
.footer__bar {
    margin-top: 2.75rem;
    border-top: 1px solid rgba(237, 241, 236, .14);
    padding-block: 1.15rem;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .06em;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
}

/* --- pagination ---------------------------------------------------------- */

.pagination { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 2.5rem 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: block;
    font-family: var(--mono);
    font-size: .85rem;
    padding: .5rem .85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--pitch);
}
.pagination .active a, .pagination .active span { background: var(--pitch); color: var(--marigold); border-color: var(--pitch); }

/* --- empty states -------------------------------------------------------- */

.empty {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}
.empty h3 { color: var(--pitch); }
.empty p { color: var(--slate); max-width: 40ch; margin-inline: auto; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
    .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--pitch);
        border-bottom: 3px solid var(--marigold);
        padding: .5rem 0 1rem;
        max-height: 75vh;
        overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .masthead .shell { position: relative; flex-wrap: wrap; }
    .nav a { padding: .8rem var(--gutter); border-radius: 0; }
    .nav a.is-active { box-shadow: inset 4px 0 0 var(--marigold); }
    .nav__drop {
        position: static;
        display: block;
        box-shadow: none;
        background: rgba(0, 0, 0, .22);
        border-top: 0;
        min-width: 0;
    }
    .nav__drop a { color: rgba(237, 241, 236, .82); padding-left: calc(var(--gutter) + 1rem); }
    .nav__drop a:hover { background: transparent; color: var(--marigold); }

    .feature { grid-template-columns: 1fr; }
    .feature__media { min-height: 220px; }
}

@media (max-width: 680px) {
    .fixture { grid-template-columns: 1fr; gap: .6rem; }
    .fixture__teams { font-size: 1.05rem; }
    .event-row { grid-template-columns: 72px 1fr; }
    .event-row > :last-child { grid-column: 1 / -1; }
    .footer__cols { grid-template-columns: 1fr; }
    .topbar .shell { justify-content: center; text-align: center; }
    .hero::after { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .masthead, .topbar, .footer, .nav-toggle, .scorestrip { display: none; }
    body { background: #fff; }
}
