/* Shared club palette, drawn from the supplied PBC artwork. */
:root {
    --sky: #07517f;
    --sky-dark: #063c5e;
    --fields: #31752e;
    --fields-dark: #285f26;
    --wheat: #ffd400;
    --ink: #111b20;
    --muted: #52616a;
    --paper: #f6f8f7;
    --line: #dbe3df;
    --content-width: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
    margin: 0;
    min-width: 20rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 750; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: 2rem; }
:focus-visible { outline: 3px solid var(--fields); outline-offset: 5px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--wheat); }
.container { width: min(calc(100% - 2.5rem), var(--content-width)); margin-inline: auto; }
.skip-link {
    position: absolute;
    top: .75rem;
    left: 1rem;
    z-index: 10;
    padding: .7rem 1rem;
    transform: translateY(-180%);
    background: var(--wheat);
    color: var(--ink);
    font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--sky-dark); color: white; }
.header-inner { padding-top: 1.25rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.brand img { width: 2.75rem; height: 3.3rem; }
.brand-subtitle { display: block; margin-top: .2rem; font-size: .95rem; font-weight: 400; letter-spacing: .015em; }
.main-nav { display: grid; grid-template-columns: repeat(4, auto); gap: .4rem; margin-top: 1.25rem; border-top: 1px solid #ffffff30; }
.main-nav a { padding: 1rem 0 .8rem; border-bottom: 3px solid transparent; text-align: center; text-decoration: none; font-size: .875rem; font-weight: 600; }
.main-nav a:hover { color: var(--wheat); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--wheat); }
.site-header .brand { opacity: .9; }
.home-panorama { position: relative; background: #0179e8; }
.home-panorama img { width: 100%; height: auto; }
.home-panorama h1 { margin: 0; padding: 1.5rem 1.25rem; color: white; text-align: center; font-size: clamp(1.75rem, 3.4vw, 3.25rem); }
.home-panorama h1 span { display: block; margin-bottom: .4rem; font-size: .55em; font-weight: 400; letter-spacing: normal; }
.home-welcome-details { padding-block: 2rem; }
.home-welcome-details p { margin: 0; font-size: 1.125rem; }
.club-night-title { margin: 0 0 .75rem; font-size: 1.5rem; letter-spacing: normal; }
.club-night-row { display: flex; align-items: baseline; gap: .65rem; }
.club-night-row i { flex: 0 0 1.1em; text-align: center; }
.eyebrow { margin-bottom: 1.25rem; font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .8rem 1.5rem; border: 2px solid transparent; border-radius: .25rem; text-decoration: none; font-weight: 700; line-height: 1.4; transition: background-color .15s ease; }
.button-blue { background: var(--sky); color: white; }
.button-blue:hover { background: var(--sky-dark); }
.section-space { padding-block: 3.5rem; }
.site-footer {
    padding-block: 2rem;
    border-top: 20px solid var(--sky);
    background: linear-gradient(var(--wheat), var(--wheat)) top / 100% 4px no-repeat, var(--fields-dark);
    color: white;
}
.footer-inner { display: flex; flex-direction: column; gap: .5rem; }
.footer-brand { font-weight: 700; text-decoration: none; }
.footer-contact { min-width: 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-top: .5rem; font-size: .875rem; }
.footer-links a { max-width: 100%; overflow-wrap: anywhere; text-decoration: none; }
.footer-links a:hover { color: var(--wheat); }
.footer-inner p { margin: 0; color: white; font-size: .875rem; }
.footer-club-details { color: white; font-size: 1rem; line-height: 1.45; }
.footer-club-details p { margin-bottom: .65rem; font-size: inherit; }
.footer-club-details address { font-style: normal; }
.footer-club-details .club-night-title { color: white; }
.placeholder-content { max-width: 48rem; margin-inline: auto; }
.coming-soon-label { display: inline-block; margin-bottom: 1.5rem; padding: .3rem .75rem; border-radius: .2rem; background: #e3eddf; color: #285e25; font-size: .875rem; font-weight: 700; }
.placeholder-content p { color: var(--muted); }
.placeholder-content .button { margin-top: 1rem; }

.league-intro { max-width: 48rem; margin-bottom: 1.5rem; }
.league-intro h1 { margin-bottom: 1rem; }
.league-intro p { margin-bottom: 0; color: var(--muted); font-size: 1.125rem; }
.league-intro a { color: var(--sky); }
.league-guide { margin-bottom: 2rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.league-guide summary { cursor: pointer; color: var(--sky); font-size: 1.125rem; font-weight: 500; line-height: 1.5; }
.league-guide[open] summary { margin-bottom: 1rem; }
.league-info-icon { margin-inline: .25rem; font-size: .65em; }
.league-guide dl { display: grid; gap: .35rem; max-width: 60rem; margin: 0; }
.league-guide dt { font-weight: 700; }
.league-guide dd { margin: 0 0 1rem; color: var(--muted); }
.league-guide dd:last-child { margin-bottom: 0; }
.league-standings-heading { margin-bottom: 2rem; }
.league-standings-heading h2 { margin-bottom: .75rem; font-size: 2rem; }
.league-standings-heading p { margin-bottom: 0; color: var(--muted); }
.league-competition + .league-competition { margin-top: 3rem; }
.league-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.league-section-heading h3 { margin: 0; font-size: 1.75rem; }
.league-section-heading a { color: var(--sky); font-size: .875rem; }
.league-table-scroll { overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .25rem; background: white; }
.league-table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.league-table caption { padding: .85rem 1rem; background: var(--sky); color: white; text-align: left; font-weight: 700; }
.league-table th, .league-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.league-table thead th { background: var(--sky-dark); color: white; font-weight: 600; }
.league-table tbody th { text-align: left; font-weight: inherit; }
.league-table tr:nth-child(even) { background: var(--paper); }
.league-table tbody tr:last-child > * { border-bottom: 0; }
.league-table tr.pocklington-row { background: #e3eddf; color: var(--fields-dark); font-weight: 700; }
.league-table .pocklington-row > :first-child { box-shadow: inset 4px 0 var(--fields); }
.league-updated, .league-scroll-hint { color: var(--muted); font-size: .875rem; }
.league-notice { padding: 1rem 1.25rem; border-left: 4px solid var(--wheat); background: white; }
.league-scroll-hint { margin-top: 2rem; margin-bottom: 0; }

@media (width < 1200px) {
    .league-table .league-mobile-hidden { display: none; }
    .league-table { min-width: 0; font-size: .875rem; }
    .league-table th, .league-table td { padding: .65rem .4rem; }
    .league-table th, .league-table td:first-child, .league-table td:nth-child(2) { white-space: normal; }
}

@media (min-width: 48rem) {
    .home-panorama h1 { position: absolute; inset: 0 0 auto; padding: clamp(1rem, 2.5vw, 3rem) 2rem 1.5rem; background: linear-gradient(#063c5e99, transparent); text-shadow: 0 2px 6px #063c5e; }
    .league-guide dl { grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem 2rem; }
    .league-guide dd { margin-bottom: 0; }
    .container { width: min(calc(100% - 4rem), var(--content-width)); }
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; }
    .main-nav { display: flex; gap: 1.5rem; margin: 0; border: 0; }
    .main-nav a { padding: .75rem 0; font-size: 1rem; }
    .section-space { padding-block: 4.5rem; }
    .footer-inner { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
    .footer-contact { margin-left: auto; }
}

/* Margin helpers: 0, .25rem, .5rem, 1rem, 1.5rem and 3rem.
   m2 is an alias for m-2; s/e use logical start/end directions. */
.m-0, .m0 { margin: 0 !important; }
.m-1, .m1 { margin: .25rem !important; }
.m-2, .m2 { margin: .5rem !important; }
.m-3, .m3 { margin: 1rem !important; }
.m-4, .m4 { margin: 1.5rem !important; }
.m-5, .m5 { margin: 3rem !important; }
.m-auto { margin: auto !important; }

.mx-0 { margin-inline: 0 !important; }
.mx-1 { margin-inline: .25rem !important; }
.mx-2 { margin-inline: .5rem !important; }
.mx-3 { margin-inline: 1rem !important; }
.mx-4 { margin-inline: 1.5rem !important; }
.mx-5 { margin-inline: 3rem !important; }
.mx-auto { margin-inline: auto !important; }

.my-0 { margin-block: 0 !important; }
.my-1 { margin-block: .25rem !important; }
.my-2 { margin-block: .5rem !important; }
.my-3 { margin-block: 1rem !important; }
.my-4 { margin-block: 1.5rem !important; }
.my-5 { margin-block: 3rem !important; }
.my-auto { margin-block: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0 { margin-inline-start: 0 !important; }
.ms-1 { margin-inline-start: .25rem !important; }
.ms-2 { margin-inline-start: .5rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.ms-4 { margin-inline-start: 1.5rem !important; }
.ms-5 { margin-inline-start: 3rem !important; }
.ms-auto { margin-inline-start: auto !important; }

.me-0 { margin-inline-end: 0 !important; }
.me-1 { margin-inline-end: .25rem !important; }
.me-2 { margin-inline-end: .5rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.me-4 { margin-inline-end: 1.5rem !important; }
.me-5 { margin-inline-end: 3rem !important; }
.me-auto { margin-inline-end: auto !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
