:root {
    --spfl-navy: #101827; --spfl-navy-2: #16243a; --spfl-blue: #0f6fb6; --spfl-blue-dark: #0b5790; --spfl-gold: #ffd166; --spfl-bg: #f4f7fb; --spfl-surface: #ffffff; --spfl-border: #d8e2ee; --spfl-text: #172033; --spfl-muted: #5d6b7c; --spfl-focus: #ffb703; --shadow: 0 16px 40px rgba(16, 24, 39, 0.10); color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; color: var(--spfl-text); background: radial-gradient(circle at top left, #dfeeff 0, rgba(223, 238, 255, 0) 32rem), var(--spfl-bg); }
a { color: var(--spfl-blue-dark); font-weight: 650; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; } a:hover { color: #083a64; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--spfl-focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .75rem 1rem; color: #07111f; background: var(--spfl-gold); border-radius: .5rem; } .skip-link:focus { top: 1rem; }
.spfl-site-header { color: #fff; background: linear-gradient(135deg, var(--spfl-navy), var(--spfl-navy-2)); border-bottom: 5px solid var(--spfl-gold); box-shadow: 0 6px 24px rgba(16,24,39,.18); }
.spfl-header-inner { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.spfl-brand { display: inline-flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; } .spfl-brand:hover { color: #fff; } .spfl-brand strong { display: block; font-size: 1.35rem; letter-spacing: -.02em; } .spfl-brand small { display: block; color: #c8d5e6; font-size: .82rem; font-weight: 500; }
.spfl-brand-mark { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; border-radius: 1rem; color: var(--spfl-navy); background: linear-gradient(135deg, #fff, var(--spfl-gold)); font-weight: 900; letter-spacing: -.08em; }
.spfl-primary-nav, .spfl-secondary-nav, .spfl-site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.spfl-menu-toggle { display: none; align-items: center; gap: .55rem; margin-left: auto; padding: .62rem .85rem; border-color: rgba(255,255,255,.38); color: #fff; background: rgba(255,255,255,.1); }
.spfl-menu-toggle:hover { background: rgba(255,255,255,.18); }
.spfl-menu-toggle-icon, .spfl-menu-toggle-icon::before, .spfl-menu-toggle-icon::after { display: block; width: 1.2rem; height: 2px; border-radius: 999px; background: currentColor; }
.spfl-menu-toggle-icon { position: relative; }
.spfl-menu-toggle-icon::before, .spfl-menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.spfl-menu-toggle-icon::before { top: -.38rem; }
.spfl-menu-toggle-icon::after { top: .38rem; }
.spfl-primary-nav a, .spfl-secondary-nav a { display: inline-flex; padding: .55rem .78rem; border-radius: 999px; text-decoration: none; font-size: .94rem; }
.spfl-primary-nav a { color: #eef6ff; } .spfl-primary-nav a:hover { color: #fff; background: rgba(255,255,255,.13); }
.gaffer-tools { margin-top: 1rem; }
.gaffer-tools-heading { width: min(1180px, calc(100% - 2rem)); margin: 0 auto .55rem; padding: 0 1rem; color: var(--spfl-muted); font-size: .88rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.spfl-secondary-nav { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: .75rem 1rem; border: 1px solid var(--spfl-border); border-radius: 1rem; background: rgba(255,255,255,.88); }
.spfl-secondary-nav a { color: var(--spfl-blue-dark); background: #e7f2fb; } .spfl-secondary-nav a:hover { background: #d2e8f7; }
.spfl-page-shell { width: min(1180px, calc(100% - 2rem)); margin: 2rem auto 3rem; } .spfl-page-shell > h1, .spfl-page-shell > h2 { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; color: #101827; } h1 { font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.04em; } h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin: 1.8rem 0 1rem; } h3 { font-size: 1.18rem; margin: 1.6rem 0 .75rem; }
.lede { max-width: 70ch; color: #314158; font-size: 1.12rem; } .eyebrow { margin: 0 0 .35rem; color: var(--spfl-blue-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; }
.hero-card, .app-card, section[aria-label="Operational counts"], form { border: 1px solid var(--spfl-border); border-radius: 1.25rem; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.hero-card { padding: clamp(1.4rem, 4vw, 3rem); margin-bottom: 1.5rem; overflow: hidden; } .app-card { padding: 1.25rem; } .app-card h2, .app-card h3 { margin-top: 0; }
.spfl-grid, .cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .link-list { padding-left: 1.15rem; } .link-list li + li { margin-top: .35rem; }
ul:not(.link-list):not(.messages) { padding-left: 1.2rem; } li { margin: .25rem 0; } img { max-width: 100%; height: auto; }
.card, .app-card { transition: transform .18s ease, box-shadow .18s ease; } .card:hover, .app-card:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(16,24,39,.14); }
.row { display: grid; gap: 1rem; } .row.g-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .col-md-4 { min-width: 0; } .card { border: 1px solid var(--spfl-border); border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(16,24,39,.08); } .card-body { padding: 1.25rem; } .text-center { text-align: center; } .img-fluid { max-width: 100%; height: auto; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.25rem; } .mt-5 { margin-top: 2rem; } .text-muted { color: var(--spfl-muted); } .small { font-size: .875rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; overflow: hidden; border: 1px solid var(--spfl-border); border-radius: 1rem; background: var(--spfl-surface); box-shadow: 0 10px 28px rgba(16,24,39,.07); } thead { color: #fff; background: var(--spfl-navy); } th, td { padding: .78rem .9rem; border-bottom: 1px solid var(--spfl-border); text-align: left; vertical-align: middle; } th { font-size: .82rem; text-transform: uppercase; letter-spacing: .045em; } tbody tr:nth-child(even) { background: #f8fbff; } tbody tr:hover { background: #edf6ff; } tbody tr:last-child td { border-bottom: 0; } .font-bold, strong { font-weight: 800; } .align-middle { vertical-align: middle; }
form { padding: 1rem; max-width: 44rem; } form p { margin: .8rem 0; } label { display: block; margin: .35rem 0; font-weight: 800; color: #223148; }
input, select, textarea { width: 100%; max-width: 28rem; padding: .68rem .78rem; border: 1px solid #b9c8d8; border-radius: .65rem; background: #fff; color: var(--spfl-text); font: inherit; }
button, .button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; width: auto; margin: .35rem .35rem .35rem 0; padding: .72rem 1rem; border: 1px solid var(--spfl-blue-dark); border-radius: 999px; color: #fff; background: var(--spfl-blue); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; } button:hover, .button:hover, input[type="submit"]:hover { color: #fff; background: var(--spfl-blue-dark); } button[value="hide"] { color: #172033; background: #fff; border-color: #b9c8d8; } .button-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; } .button.primary { background: var(--spfl-navy); border-color: var(--spfl-navy); }
section[aria-label="Operational counts"] { padding: 1rem; margin: 1rem 0 1.5rem; } dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; } dt { color: var(--spfl-muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; } dd { margin: .15rem 0 0; font-size: 1.65rem; font-weight: 900; color: var(--spfl-navy); }
.spfl-messages { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 0; } .message { margin: .5rem 0; padding: .8rem 1rem; border-radius: .75rem; background: #e7f2fb; border: 1px solid #bddcf3; }
.spfl-site-footer { width: min(1180px, calc(100% - 2rem)); margin: 3rem auto 1.5rem; padding-top: 1rem; color: var(--spfl-muted); border-top: 1px solid var(--spfl-border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) { .spfl-header-inner { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; } .spfl-brand { flex: 0 0 100%; justify-content: center; text-align: center; } .js .spfl-menu-toggle { display: inline-flex; } .spfl-menu-toggle { margin: .25rem auto 0; } .spfl-primary-nav { flex-basis: 100%; width: min(100%, 28rem); max-width: 100%; margin-inline: auto; flex-direction: column; align-items: stretch; gap: .55rem; padding-top: .25rem; } .spfl-primary-nav[hidden] { display: none; } .spfl-primary-nav a, .spfl-primary-nav .account-menu summary { justify-content: center; width: 100%; background: rgba(255,255,255,.1); } .account-menu { width: 100%; } .account-menu-links { position: static; width: 100%; margin-top: .45rem; } .spfl-grid, .cards-grid, .row.g-4, dl { grid-template-columns: 1fr; } table { display: block; overflow-x: auto; white-space: nowrap; } .spfl-page-shell { margin-top: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.inline-logout-form { display: inline; margin: 0; }
.inline-logout-form button { background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0.45rem 0.7rem; }
.inline-logout-form button:hover, .inline-logout-form button:focus { text-decoration: underline; }
.narrow-card { max-width: 760px; }
.help-text { color: var(--muted-text); font-size: 0.9rem; margin: 0.25rem 0 0; }
.errorlist { color: #b42318; margin: 0.35rem 0 0; }

.gaffer-email-controls, .gaffer-email-form { max-width: none; width: 100%; margin: 1rem 0 1.5rem; }
.gaffer-email-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .85rem; }
.gaffer-email-controls label { width: 100%; margin: 0; }
.gaffer-email-controls input { width: 9rem; }
.fixture-select-panel { margin: 0 0 1rem; padding: 0; border: 0; }
.fixture-select-panel legend { color: var(--spfl-muted); font-size: .88rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.fixture-date-group { margin: 1rem 0; padding: 1rem; border: 1px solid var(--spfl-border); border-radius: 1rem; background: #f8fbff; }
.fixture-date-group h3 { margin-top: 0; }
.fixture-choice { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; font-weight: 700; }
.fixture-choice input { width: auto; max-width: none; }
.gaffer-email-form textarea { width: 100%; max-width: none; min-height: 20rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.account-menu { position: relative; color: #eef6ff; }
.account-menu summary { display: inline-flex; padding: .55rem .78rem; border-radius: 999px; cursor: pointer; font-size: .94rem; font-weight: 650; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { color: #fff; background: rgba(255,255,255,.13); }
.account-menu-links { position: absolute; right: 0; z-index: 10; min-width: 10rem; margin-top: .35rem; padding: .4rem; border: 1px solid rgba(255,255,255,.18); border-radius: .9rem; background: var(--spfl-navy-2); box-shadow: 0 18px 38px rgba(16,24,39,.24); }
.account-menu-links a { display: block; color: #eef6ff; padding: .55rem .7rem; border-radius: .65rem; }
.fixture-list { display: grid; gap: .75rem; padding-left: 0; list-style: none; }
.fixture-list-item { display: grid; gap: .4rem; padding: .85rem 1rem; border: 1px solid var(--spfl-border); border-radius: .9rem; background: #f8fbff; }
.fixture-list-item time { color: var(--spfl-muted); font-weight: 800; }
.fixture-teams { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem; font-size: 1.05rem; }
.fixture-team { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.fixture-versus { color: var(--spfl-muted); font-weight: 800; text-transform: uppercase; }
.team-crest { width: 1.75rem; height: 1.75rem; object-fit: contain; flex: 0 0 auto; }
.scheduled-rounds-card { width: 100%; margin-bottom: 1.5rem; }
.scheduled-round { margin-top: 1.25rem; }
.scheduled-round h3 { margin-bottom: .65rem; }

.gaffer-message { margin: 1rem 0 0; padding: 1rem; border-left: 5px solid var(--spfl-gold); border-radius: .9rem; background: #f8fbff; }
.gaffer-message h2 { margin: 0 0 .45rem; font-size: 1.35rem; }
.football-icon-list { padding-left: 0; list-style: none; }
.football-icon-list li { position: relative; padding-left: 1.75rem; margin: .55rem 0; }
.football-icon-list li::before { content: "⚽"; position: absolute; left: 0; top: .05rem; font-size: 1rem; line-height: 1.4; }

.copy-link { max-width: 32rem; font-size: .9rem; }
.message.warning { background: #fff8e1; border-color: #f2d27a; }
