:root {
  color-scheme: light;
  --ink: #231a1b;
  --muted: #645754;
  --paper: #f6f1e8;
  --light: #fcf8f0;
  --white: #fffbf4;
  /* Preserve the 2% darkening; two successive 5% crest blends total 9.75%. */
  --crest-burgundy: #500405;
  --crest-blend: 9.75%;
  --burgundy: color-mix(in srgb, color-mix(in srgb, #4d2232, black 2.98%), var(--crest-burgundy) var(--crest-blend));
  --score-panel: color-mix(in srgb, color-mix(in srgb, #562339, black 2.98%), var(--crest-burgundy) var(--crest-blend));
  --on-burgundy-muted: #f5e8ec;
  --deep: color-mix(in srgb, #28131d, black 1%);
  --line: #b3a99e;
  --gold: #d5b60a;
  --section-bg: #ece2d3;
  --accent: color-mix(in srgb, #74344e, black 1%);
  --focus: color-mix(in srgb, #a64671, black 1%);
  --field-bg: var(--white);
  --field-line: #8d776d;
  --training-line: #c9baaa;
  --badge-bg: #e5d4de;
  --policy-bg: #ebdbe0;
  --chat-message-bg: #eee3e8;
  --chat-user-bg: #e9ebd4;
  --radius: 8px;
  --control-radius: 6px;
  --gutter: clamp(16px, 4vw, 52px);
  --panel-gap: clamp(10px, 1.5vw, 18px);
  --heading-gap: clamp(16px, 2.5vw, 24px);
  --content-gap: clamp(20px, 3.5vw, 48px);
  --panel-shadow: 0 2px 6px #28131d0a;
  --display: Barlow, "Arial Narrow", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

:root:not([data-theme="light"]) {
  color-scheme: dark;
  --ink: #f5f0ed;
  --muted: #cfc4c9;
  --paper: #111014;
  --light: #19161b;
  --burgundy: color-mix(in srgb, color-mix(in srgb, #471b2f, black 2.98%), var(--crest-burgundy) var(--crest-blend));
  --deep: color-mix(in srgb, #190f16, black 1%);
  --line: #211b20;
  --section-bg: #191419;
  --accent: var(--gold);
  --focus: var(--gold);
  --field-bg: color-mix(in srgb, #271620, black 1%);
  --field-line: #82747d;
  --training-line: var(--line);
  --badge-bg: #35232e;
  --policy-bg: #34232e;
  --chat-message-bg: #30222b;
  --chat-user-bg: #3c2a34;
  --panel-shadow: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.hero :focus-visible, .community-section :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.skip { position: fixed; z-index: 5; left: 20px; top: 15px; transform: translateY(-150%); padding: 10px 16px; color: var(--deep); background: var(--gold); font-weight: 700; }
.skip:focus { transform: none; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1260px); margin-inline: auto; }
.section { padding-block: clamp(36px, 5vw, 68px); }
.home-page main > .section { padding-block: clamp(34px, 4.5vw, 60px); }
[id][tabindex="-1"] { scroll-margin-top: 14px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.018em; margin-bottom: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
.home-page h2 { font-size: clamp(30px, 3.5vw, 42px); }
h3 { font-family: var(--display); font-size: clamp(23px, 2.25vw, 28px); font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
p { margin-bottom: 16px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .11em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; padding: 10px 16px; min-height: 48px; border: 1px solid transparent; font-size: .875rem; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; border-radius: var(--control-radius); transition: background-color .18s, color .18s, border-color .18s; }
.button span, .text-link span { font-size: 1.03em; }
.button-dark { color: var(--white); background: var(--deep); border-color: var(--line); }
.button-dark:hover { background: var(--burgundy); }
.button-gold { background: var(--gold); color: var(--deep); }
.button-gold:hover { background: color-mix(in srgb, var(--gold), white 12%); }
.button-outline { border-color: #fff7e49c; color: var(--white); background: transparent; }
.button-outline:hover { color: var(--deep); background: var(--white); border-color: var(--white); }
.actions { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.text-link { display: inline-flex; align-items: baseline; gap: 6px; width: fit-content; font-size: .875rem; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.utility-button { min-height: 44px; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--field-bg); color: var(--ink); font-size: .88rem; font-weight: 700; cursor: pointer; }
.utility-button:hover { border-color: var(--accent); }
.action-status { display: block; width: 100%; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.action-status:empty { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; }

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); background: color-mix(in srgb, var(--paper), var(--burgundy) 6%); }
.masthead-inner { min-height: calc(var(--header-height, 75px) - 1px); display: flex; gap: clamp(10px, 1.5vw, 24px); align-items: center; justify-content: space-between; position: relative; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 23px; line-height: .95; letter-spacing: .025em; }
.wordmark-sub { display: block; margin-top: 4px; font-family: var(--body); font-size: 8px; font-weight: 700; letter-spacing: .16em; text-align: center; }
.club-mark { flex: none; width: 48px; height: 48px; border-radius: 6px; background: var(--deep); }
.site-nav { display: flex; gap: clamp(11px, 1.15vw, 18px); align-items: center; }
.home-header .masthead-inner { flex-wrap: wrap; }
.home-header .site-nav { width: 100%; flex-wrap: wrap; gap: 2px 18px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 9px; font-weight: 600; font-size: .84rem; line-height: 1.4; text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.home-header .mobile-nav-link { display: inline-flex; }
.home-page { --header-height: 75px; --home-action-gap: 8px; scroll-padding-top: var(--header-height); }
.home-header { position: sticky; top: 0; z-index: 3; }
.home-page:not(.has-menu) { scroll-padding-top: 0; }
.home-page:not(.has-menu) .home-header { position: static; }
.home-header .menu-toggle { margin-left: auto; }
.has-menu .home-header .masthead-inner { flex-wrap: nowrap; }
.has-menu .home-header .site-nav { position: absolute; z-index: 4; top: 100%; inset-inline-end: 0; display: grid; width: min(100%, 420px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 9px 15px #28131d25; }
.has-menu .home-header .site-nav a { border-bottom: 1px solid var(--line); }
.has-menu .home-header .site-nav:not([data-open]) { display: none; }
.menu-toggle { min-height: 44px; border: 1px solid var(--line); border-radius: var(--control-radius); background: transparent; color: var(--ink); padding: 4px 11px; font-weight: 700; cursor: pointer; }
.menu-toggle:is(:hover, [aria-expanded="true"]) { background: var(--badge-bg); }
.menu-toggle span { margin-left: 6px; }
.theme-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { background: var(--badge-bg); color: var(--ink); }
.theme-toggle svg { grid-area: 1 / 1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[aria-pressed="false"] .theme-sun,
.theme-toggle[aria-pressed="true"] .theme-moon { visibility: hidden; }
.theme-toggle[aria-pressed="true"] { color: var(--gold); }

:root:not([data-theme="light"]) .masthead {
  background: var(--paper);
  border-bottom-color: var(--line);
}
:root:not([data-theme="light"]) .wordmark-sub,
:root:not([data-theme="light"]) .text-link { color: var(--gold); }
:root:not([data-theme="light"]) .button-dark { color: var(--gold); background: var(--burgundy); }
:root:not([data-theme="light"]) .button-dark:hover { background: var(--score-panel); }

:root.home-page:not([data-theme="light"]) main > .section,
:root.home-page:not([data-theme="light"]) .match-rail { background: var(--paper); }
:root.home-page:not([data-theme="light"]) main > .section:nth-of-type(even) { background: var(--burgundy); }
:root.home-page:not([data-theme="light"]) .site-footer { background: var(--paper); }

.hero { position: relative; isolation: isolate; background: #111014; color: var(--white); }
.hero-photo, .hero-shade { position: absolute; z-index: -1; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 49%; }
.hero-shade { background: linear-gradient(90deg, #111014ed 0%, #111014d9 24%, #11101470 51%, transparent 76%), linear-gradient(0deg, #11101480, transparent 46%); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(300px, 29vw, 427px); padding-block: 42px; }
.hero-copy { width: 100%; }
.hero h1 { max-width: 15ch; font-size: clamp(40px, 5.6vw, 74px); text-shadow: 0 2px 16px #190d1470; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--home-action-gap); margin-top: clamp(20px, 3vw, 32px); }
.hero-actions .button-outline { background: #11101466; }
.hero-actions .button-outline:hover { background: var(--white); }

.match-rail { color: var(--white); border-top: 2px solid var(--line); background: var(--burgundy); }
.match-rail-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--home-action-gap); padding-block: 10px; }
.match-rail :is(a, .chat-launch) { display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--control-radius); font-size: .875rem; font-weight: 600; text-decoration: none; }
.match-rail :is(a, .chat-launch):hover { background: var(--score-panel); }
.match-rail :is(a, .chat-launch):focus-visible { outline-color: var(--gold); outline-offset: -4px; }
.chat-launch { color: var(--gold); background: transparent; text-align: left; cursor: pointer; }
.chilli-icon { display: inline-block; flex: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 13px; line-height: 1; vertical-align: .05em; }
.report-win-icon { margin-left: 6px; font-size: 12px; }
.rail-arrow { flex: none; margin-left: auto; color: var(--gold); }

.headlines { border-radius: var(--radius); margin-top: var(--panel-gap); padding: clamp(18px, 2.25vw, 28px); border: 1px solid var(--line); background: var(--light); }
.headlines h3 { margin: 0; font-size: clamp(24px, 2.5vw, 28px); }
.headlines p { margin: 5px 0 0; color: var(--muted); }
.headlines ul { display: flex; flex-wrap: wrap; gap: 5px 28px; margin: 8px 0 0; padding-left: 1.2em; }
.headlines li a { overflow-wrap: anywhere; }
.section-heading { display: flex; gap: 10px 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: var(--heading-gap); }
.home-page main > .match-section { padding-top: clamp(28px, 4vw, 52px); }
.match-heading { margin-bottom: var(--heading-gap); }
.match-board, .matchday-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: var(--panel-gap); }
.match-board { margin-bottom: var(--panel-gap); }
.match-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin-bottom: var(--panel-gap); }
.match-links a { display: grid; place-items: center; min-height: 44px; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--light); font-size: .88rem; font-weight: 700; text-align: center; text-decoration: none; }
.match-links a:hover { color: var(--accent); border-color: var(--accent); }
.match-card { min-width: 0; padding: clamp(18px, 2.25vw, 28px); border: 1px solid var(--line); background: var(--light); }
.match-section .match-card { border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.matchday-grid { align-items: start; }
.match-card p { color: var(--muted); max-width: 48ch; }
.match-board > .match-card { display: flex; flex-direction: column; padding: clamp(17px, 2.3vw, 28px); overflow-wrap: anywhere; }
.match-board .match-card-label { margin: 0 0 10px; color: var(--accent); font: 700 .73rem/1.25 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.match-card .match-card-primary { margin-bottom: 8px; color: inherit; font: 600 clamp(24px, 2.5vw, 30px)/1.2 var(--display); }
.match-card :is(.result-date, .fixture-date) { margin-bottom: 8px; font-size: .87rem; }
.match-card-actions { gap: 0 18px; }
.match-board .text-link, .match-resources .text-link { min-height: 44px; align-items: center; padding-block: 4px; }
.match-card-copy { flex: 1; }
.result-card { color: var(--white); background: var(--score-panel); border-color: var(--score-panel); border-top-color: var(--gold); }
.result-card:focus-visible { outline-color: var(--gold); outline-offset: -7px; }
.match-board > .result-card { border: 1px solid #111014; background: color-mix(in srgb, var(--score-panel), black 25%); }
:root:not([data-theme="light"]) .match-board > .next-home { background: #151217; }
.result-card :focus-visible { outline-color: var(--gold); }
.match-board .result-card .match-card-label, .result-card .text-link { color: var(--gold); }
.result-card p { color: var(--on-burgundy-muted); margin-bottom: 8px; }
#latest-result-score { font-variant-numeric: tabular-nums; }
.match-resources { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-top: 8px; }
.live-centre-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; margin-bottom: 9px; }
.live-centre-heading h3 { margin: 0; }
.live-centre-heading .text-link { min-height: 44px; align-items: center; }
.live-centre > [data-live-refresh-note] { margin: 2px 0 0; font-size: .82rem; }
.live-centre > .text-link { margin-top: 12px; min-height: 44px; align-items: center; }
.live-feed-grid, .league-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--panel-gap); }
.live-feed-grid { gap: 10px; margin-top: 9px; }
.live-feed-grid > :first-child { grid-column: 1 / -1; border-left: 2px solid var(--gold); }
.live-feed-grid > :nth-child(2):last-child { grid-column: 1 / -1; }
.live-feed { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 12px; overflow-wrap: anywhere; }
.live-feed h4, .league-card h4 { margin: 0 0 7px; font: 600 1.18rem/1.25 var(--display); }
.live-feed > p { margin: 0 0 6px; font-size: .87rem; }
.live-feed > p:empty { margin: 0; }
.live-feed small { color: var(--muted); font-size: .75rem; }
.live-feed-grid .live-feed:not(:has(> .live-matches:not([hidden]))) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.live-feed-grid .live-feed:not(:has(> .live-matches:not([hidden]))) > :is(h4, p) { margin: 0; }
.live-feed-grid .live-feed > [data-live-status]:empty { position: absolute; }
.live-matches { padding: 0; margin: 0 0 8px; list-style: none; }
.live-matches li { padding-block: 8px; border-top: 1px solid var(--line); }
.live-teams { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 0 0 5px; font-weight: 700; }
.live-teams dd { margin: 0; text-align: right; }
.live-matches .live-action { margin: 5px 0; color: var(--accent); font-size: .84rem; font-weight: 700; }
.live-match-status { display: inline-block; margin: 0 0 6px; padding: 1px 7px; background: var(--badge-bg); color: var(--accent); font-size: .74rem; font-weight: 700; }
.live-refresh { min-height: 44px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--field-bg); color: var(--ink); font-size: .83rem; font-weight: 700; cursor: pointer; }
.live-refresh[aria-disabled="true"] { cursor: wait; }
.saturday-results { margin-top: var(--panel-gap); }
.saturday-results small { display: block; }
.saturday-results .text-link { min-height: 44px; align-items: center; }
.saturday-result-days, .saturday-result-list { margin: 0; padding: 0; list-style: none; }
.saturday-result-day h5 { margin: 10px 0 4px; font-size: .85rem; }
.saturday-result { padding-block: 6px; border-top: 1px solid var(--line); }
.saturday-result-outcome { margin: 0 0 4px; }
.weather-status { margin: 12px 0; }
.weather-status:empty { display: none; }
.weather-forecast { margin-top: 10px; }
.weather-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; font-variant-numeric: tabular-nums; }
.weather-table caption { padding-bottom: 5px; text-align: left; color: var(--muted); }
.weather-table th, .weather-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.weather-table thead { background: var(--section-bg); }
.weather-table tbody th { font-weight: 600; }
.weather-data-detail { display: block; color: var(--muted); font-size: .79rem; }
.weather-reading { white-space: nowrap; }
.weather-hourly summary { padding-block: 11px; min-height: 44px; font-size: .9rem; font-weight: 700; cursor: pointer; }
.ground-weather .weather-source { max-width: none; margin: 8px 0 0; font-size: .82rem; }
.weather-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; gap: 5px 8px; }
.weather-actions .text-link { min-height: 44px; align-items: center; }
.weather-radar { margin-top: 12px; background: var(--section-bg); }
.weather-radar iframe { display: block; width: 100%; height: clamp(280px, 46vw, 440px); border: 0; }
.match-reports { margin-top: var(--panel-gap); }
.match-reports .league-grid { align-items: start; }
.report-team { padding: clamp(13px, 2vw, 22px); }
.report-competition, .report-team time { color: var(--muted); font-size: .82rem; }
.report-feature { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.report-feature h5 { margin: 0 0 3px; font: 700 1.2rem/1.2 var(--display); }
.report-team :is(.report-feature, .report-entry) p { max-width: 64ch; margin: 6px 0 0; }
.report-source { align-items: center; min-height: 44px; font-size: .86rem; }
.report-archive { border-top: 1px solid var(--line); }
.report-team summary { min-height: 44px; padding-block: 10px; font-weight: 700; cursor: pointer; }
.report-entry { border-top: 1px solid var(--line); padding-inline: 12px; }
.report-entry summary time { display: block; margin-top: 2px; font-weight: 400; }
.league-tables { margin-top: var(--panel-gap); }
.league-card { overflow-wrap: anywhere; }
.league-table { width: 100%; border-collapse: collapse; font-size: .85rem; text-align: left; }
.league-table caption { text-align: left; color: var(--muted); padding-bottom: 7px; }
.league-table th, .league-table td { padding: 6px; border-bottom: 1px solid var(--line); }
.league-table td, .league-table thead th:not(:nth-child(2)) { text-align: right; font-variant-numeric: tabular-nums; }
.league-table tbody th { font-weight: 600; }
.league-cawood { background: var(--badge-bg); }
.league-cawood th, .league-cawood td { font-weight: 800; color: var(--accent); }
.league-results { margin-block: 12px 7px; }
.league-results summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 700; }
.league-results ul { padding-left: 16px; }
.league-results > ul > li { margin-bottom: 10px; }
.league-results time { font-weight: 700; }
.league-results p { margin: 1px 0 7px; font-size: .86rem; }
.season-fixtures > p { max-width: none; margin-bottom: 0; }
.season-fixtures .league-card { background: var(--paper); box-shadow: none; }
.fixture-subscription { margin-block: 14px; }
.fixture-subscription:last-child { margin-bottom: 0; }
.fixture-subscription summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 700; }
.fixture-subscription details p { margin-bottom: 8px; }
.fixture-subscription label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; }
.fixture-feed-actions { gap: 8px; }
.fixture-feed-actions input { flex: 1 1 220px; }
.season-calendar { margin-bottom: 12px; }
.season-fixture-list { margin: 0; list-style: none; padding: 0; }
.season-fixture-list li { border-top: 1px solid var(--line); padding-block: 9px; }
.season-fixture-list a { font-weight: 700; }

.player-stats { background: var(--section-bg); }
.player-stats .stats-intro { margin: 8px 0 var(--heading-gap); color: var(--muted); }
.stats-team + .stats-team { margin-top: var(--heading-gap); }
.stats-team > h3 { margin-bottom: 0; font-size: clamp(23px, 2.5vw, 28px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--panel-gap); margin-top: var(--panel-gap); }
.stats-card { display: flex; flex-direction: column; padding: clamp(12px, 1.6vw, 20px); border-radius: var(--radius); }
.stats-card h4 { margin: 0 0 8px; font: 600 clamp(21px, 2.1vw, 24px)/1.25 var(--display); }
.stats-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stats-table tbody th { font-weight: 600; overflow-wrap: anywhere; }
.stats-like { margin-top: auto; padding-top: 8px; line-height: 1; }
.stats-table :is(th, td):last-child { text-align: right; }
.stats-table small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.stats-source { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 4px 0 2px; color: var(--muted); font-size: .87rem; }
.stats-source .text-link { min-height: 44px; align-items: center; }

.world-scores { padding-block: clamp(20px, 3vw, 36px); background: var(--section-bg); border-block: 1px solid var(--line); }
.world-scores-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.world-scores h2 { font-size: clamp(26px, 3vw, 34px); }
.world-scores-heading p { margin: 3px 0 0; color: var(--muted); font-size: .87rem; }
.world-scores-heading .text-link { align-items: center; min-height: 44px; }
.world-score-status { margin: 0 0 10px; color: var(--muted); font-size: .84rem; min-height: 1.6em; }
.world-score-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(285px, 88%); gap: 12px; margin: 0; padding: 3px 3px 12px; list-style: none; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
.world-score-list li { min-width: 0; scroll-snap-align: start; }
.world-score-item { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); }
.world-score-card { display: flex; flex: 1; flex-direction: column; gap: 6px; min-height: 112px; text-decoration: none; overflow-wrap: anywhere; }
.world-score-card:hover .world-score-action { text-decoration: underline; }
.world-score-item > .like-control { align-self: flex-start; margin-top: 4px; }
.world-score-card:focus-visible { outline-offset: -4px; }
.world-score-team { font-size: .92rem; font-weight: 600; line-height: 1.4; }
.world-score-detail { color: var(--muted); font-size: .82rem; }
.world-score-action { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; color: var(--accent); font-size: .82rem; font-weight: 700; }
.world-score-paging { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.world-score-paging button:disabled, [data-world-refresh]:disabled { opacity: .5; cursor: default; }

.play-section { background: var(--section-bg); }
.play-grid, .visit-grid, .hire-grid, .community-grid, .volunteers-grid, .touring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--content-gap);
}
.net-photo { margin: 0; overflow: clip; border-radius: var(--radius); border: 1px solid var(--line); border-bottom: 2px solid var(--gold); background: var(--light); }
.net-photo img { width: 100%; height: auto; }
.play-copy > p, .visit-grid p, .hire-grid p { margin: var(--heading-gap) 0; max-width: 50ch; color: var(--muted); }
.training-status { display: inline-block; margin-left: .35em; padding: 2px 7px; background: var(--badge-bg); color: var(--accent); font-size: .78rem; font-weight: 700; }
.first-net { margin: var(--heading-gap) 0 0; }
.first-net div { border-top: 1px solid var(--training-line); padding: 10px 0; }
.first-net div:last-child { border-bottom: 1px solid var(--training-line); }
.first-net dt { font-weight: 700; }
.first-net dd { margin: 1px 0 0; color: var(--muted); font-size: .89rem; }
.first-net a { text-underline-offset: 3px; }
.play-links .text-link { min-height: 44px; align-items: center; }
.play-links { margin-top: 8px; gap: 0 18px; }
.coaching-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--panel-gap); }
.coaching-grid:has(details[open]) { align-items: start; }
.coaching-card { display: flex; flex-direction: column; border-radius: var(--radius); padding: clamp(17px, 2.5vw, 28px); border: 1px solid var(--line); background: var(--light); }
.coaching-card h3 { margin-bottom: 10px; }
.coaching-card ul { list-style: none; padding: 0; margin: 0 0 10px; }
.coaching-card li + li { border-top: 1px solid var(--line); }
.coaching-card li a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 7px; font-weight: 600; line-height: 1.35; text-underline-offset: 3px; }
.coaching-thumb {
  position: relative;
  flex: 0 0 80px;
  height: 45px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--burgundy);
}
.coaching-thumb img { width: 100%; height: 100%; object-fit: cover; }
.coaching-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #28131dd9;
}
.coaching-thumb::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 37px;
  border-block: 5.5px solid transparent;
  border-left: 8px solid var(--white);
}
.coaching-card p { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.coaching-card p strong { display: block; color: var(--ink); }
.coaching-card details { margin-top: auto; padding-top: 10px; }
.coaching-card summary { min-height: 44px; padding-block: 10px; color: var(--accent); font-weight: 700; cursor: pointer; }

.registration-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; margin-bottom: var(--panel-gap); padding: clamp(16px, 2.5vw, 25px); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--light); }
.registration-panel h3 { margin-bottom: 8px; }
.registration-panel p { max-width: 58ch; margin: 0; color: var(--muted); }
.registration-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.membership-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--panel-gap); margin: 0; }
.membership-grid div { border-radius: var(--radius); padding: clamp(16px, 3vw, 30px); border: 1px solid var(--line); border-top: 3px solid var(--burgundy); background: var(--light); }
.membership-grid dt { font-weight: 700; }
.membership-grid dd { margin: 8px 0 0; color: var(--muted); }
.membership-grid strong { margin-right: .12em; color: var(--accent); font: 600 clamp(2rem, 4vw, 3.1rem)/1 var(--display); }
.membership-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--panel-gap); margin-top: var(--heading-gap); padding-top: var(--heading-gap); border-top: 1px solid var(--line); }
.membership-details p { margin-bottom: 0; color: var(--muted); }
.membership-details strong { color: var(--ink); }
.membership-details .text-link { min-height: 44px; align-items: center; }

.community-section { background: var(--section-bg); border-top: 1px solid var(--line); }
.community-grid { gap: 0; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); }
.community-copy { padding: clamp(20px, 3vw, 40px); }
.community-section h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; }
.community-copy > p { max-width: 42ch; margin: 12px 0 20px; color: var(--muted); font-size: .92rem; }
.community-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-left: 1px solid var(--line); }
.community-links { display: grid; grid-auto-rows: 1fr; border-top: 1px solid var(--line); }
.community-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--accent); text-decoration: none; }
.community-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.community-links .arrow-up { flex: none; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--panel-gap); }
.event-card { display: grid; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); box-shadow: var(--panel-shadow); }
.event-card:only-child, .event-card-featured + .event-card:last-child { grid-column: 1 / -1; }
.event-card-featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: clamp(14px, 2.5vw, 28px); background: var(--burgundy); color: var(--white); }
.event-card-featured :focus-visible { outline-color: var(--gold); }
.event-copy { padding: clamp(16px, 2.5vw, 27px); }
.event-copy h3 { margin: 8px 0; }
.event-copy h3:last-child { margin-bottom: 0; }
.event-copy p, .facebook-news p { max-width: 60ch; color: var(--muted); }
.event-copy p { margin-bottom: 6px; }
.event-card-featured p { color: var(--on-burgundy-muted); }
.event-card-featured .text-link { color: var(--gold); }
.event-date { display: inline-block; color: var(--accent); font-size: .84rem; font-weight: 700; }
.event-card-featured .event-date { color: var(--gold); }
.event-copy .text-link, .facebook-news .text-link { min-height: 44px; align-items: center; }
.event-like { margin-top: 4px; }
.event-poster { display: block; width: clamp(62px, 14vw, 135px); padding-block: 12px; }
.event-poster img { width: 100%; height: auto; border-radius: 4px; }
.facebook-news { margin-top: clamp(24px, 4vw, 45px); padding-top: 16px; border-top: 1px solid var(--line); }
.facebook-news .section-heading { align-items: center; margin-bottom: 12px; }
.facebook-news .section-heading h3 { margin: 0; }
.facebook-news:not(:has(.club-news-list)) { margin-top: var(--heading-gap); }
.facebook-news:not(:has(.club-news-list)) .section-heading { margin-bottom: 0; }
.facebook-news:not(:has(.club-news-list)) h3 { font-size: 22px; }
.club-news-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--panel-gap); }
.club-news-card { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-wrap: anywhere; }
.club-news-date { color: var(--muted); font-size: .85rem; }
.club-news-card h4 { margin: 6px 0; font: 600 clamp(23px, 2.5vw, 28px)/1.2 var(--display); }
.club-news-card p { margin-bottom: 8px; }
.support-section { background: var(--section-bg); }
.support-priorities { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, 24%); margin-bottom: var(--heading-gap); overflow: clip; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); }
.support-priorities > div { padding: clamp(17px, 3vw, 28px); }
.support-priorities > img { width: 100%; height: 0; min-height: 100%; object-fit: cover; object-position: 50% 62%; }
.support-priorities ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 25px; margin: 0; padding: 0; list-style: none; }
.support-priorities li { padding-left: 12px; border-left: 2px solid var(--gold); color: var(--muted); }
.support-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.support-card { min-width: 0; padding-block: 12px 6px; border-top: 1px solid var(--training-line); }
.support-card h3 { margin-bottom: 0; font-size: clamp(22px, 2.5vw, 28px); }
.support-card p { margin: 6px 0 0; color: var(--muted); }
.support-card .text-link, .sponsor-enquiry { min-height: 44px; align-items: center; }
.support-actions { display: flex; flex-wrap: wrap; gap: 0 14px; }
.sponsor-donation { max-width: 31ch; text-align: right; }
.sponsor-links { margin-top: 8px; gap: 0 20px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--panel-gap); margin: 0; padding: 0; list-style: none; }
.sponsor-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); background: var(--light); }
.sponsor-like { margin-top: auto; padding-top: 4px; }
.sponsor-card h3 { margin: 0; font-size: clamp(20px, 2.2vw, 24px); overflow-wrap: anywhere; }
.sponsor-card a { display: flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.sponsor-platforms { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 6px; }
.sponsor-platforms a { color: var(--muted); font-size: .78rem; }
.sponsor-logo { width: 180px; height: 90px; margin-bottom: 13px; padding: 7px; object-fit: contain; background: var(--white); }
.ground-address { margin-bottom: 15px; font-style: normal; font-weight: 700; }
.visit-grid .utility-button, .hire-grid .actions .text-link { min-height: 48px; align-items: center; }
.visit-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.visit-links .text-link { min-height: 44px; align-items: center; }
.ground-photo { margin: 0; overflow: clip; border-radius: var(--radius); border: 1px solid var(--line); background: var(--light); }
.ground-photo img { width: 100%; height: auto; }
.ground-photo figcaption { display: flex; gap: 4px 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 8px 14px; color: var(--muted); font-size: .82rem; }
.ground-photo figcaption a { text-underline-offset: 3px; }
.hire-section { background: var(--light); }
.hire-form { display: grid; justify-items: start; gap: 14px; padding: clamp(14px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); }
.hire-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.hire-fields label { display: grid; align-content: start; gap: 5px; font-size: .88rem; font-weight: 700; }
.hire-fields label:first-child, .hire-details { grid-column: 1 / -1; }
.hire-form :is(input, select, textarea), .fixture-feed-actions input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: var(--control-radius); background: var(--field-bg); color: var(--ink); font: inherit; }
.hire-form textarea { resize: vertical; }
.hire-draft { width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.hire-grid .hire-draft p { margin: 0 0 10px; font-size: .88rem; }
.club-history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; gap: clamp(18px, 3vw, 40px); }
.club-history-copy > p { color: var(--muted); margin-bottom: 14px; max-width: 65ch; }
.club-history-copy > p:last-of-type { margin-bottom: 6px; }
.club-history .section-heading .text-link { align-items: center; min-height: 44px; }
.club-history-photos { display: grid; gap: var(--panel-gap); }
.history-sources { border-top: 1px solid var(--line); }
.history-sources summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 700; }
.history-sources ul { margin: 0 0 4px; padding-inline-start: 1.25em; font-size: .88rem; }
.history-sources li + li { margin-top: 5px; }
.history-sources a { text-underline-offset: 3px; }
.newspaper-archive { margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.press-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.press-heading h3 { margin: 0; }
.press-heading p, .press-intro, .press-contribute p { color: var(--muted); font-size: .9rem; }
.press-heading p { margin: 0; }
.press-intro { max-width: 80ch; margin: 10px 0 18px; }
.press-search { display: grid; gap: 6px; max-width: 680px; margin: 0 0 18px; }
.press-search label { font-size: .85rem; font-weight: 700; }
.press-search-controls { display: flex; align-items: stretch; gap: 8px; }
.press-search input { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: var(--control-radius); background: var(--field-bg); color: var(--ink); font: inherit; }
.press-search .utility-button { flex: none; }
.press-heading [data-press-search-status] { overflow-wrap: anywhere; }
.press-year { border-top: 1px solid var(--line); }
.press-year > summary, .press-contribute > summary { min-height: 48px; padding: 12px 4px; cursor: pointer; font-weight: 700; }
.press-year > summary::marker, .press-contribute > summary::marker { color: var(--accent); }
.press-year-count { margin-left: 14px; color: var(--muted); font-size: .84rem; font-weight: 400; }
.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--panel-gap); margin: 0; padding: 4px 0 20px; list-style: none; }
.press-grid > li { min-width: 0; }
.press-card { display: flex; flex-direction: column; height: 100%; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); }
.press-card h4 { margin: 6px 0 8px; font-size: 1.05rem; line-height: 1.4; }
.press-cutting { display: block; margin-bottom: 14px; }
.press-cutting img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.press-meta, .press-date, .press-label { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.press-card :is(.press-meta, .press-date) { margin: 0; }
.press-label { margin: 6px 0 0; font-style: italic; }
.press-summary { margin: 12px 0 8px; color: var(--muted); font-size: .9rem; }
.press-source { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; }
.press-actions { margin-top: auto; gap: 4px 12px; }
.press-actions .press-source { margin-top: 0; }
.press-contribute { border-top: 1px solid var(--line); }
.press-contribute p { max-width: 80ch; margin: 0 0 8px; }
.press-contribute .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.gallery-section { background: var(--section-bg); }
.club-link { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.club-link:hover, .club-link:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
.league-table tbody th .club-link { display: block; min-height: 44px; align-content: center; }
.league-owner { margin-bottom: 8px; font-size: .84rem; }
.like-control { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; max-width: 100%; }
/* The compact pill keeps a full-height, transparent touch target. */
.like-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 44px; padding: 6px 7px; border: 0; border-radius: 6px; background: transparent; color: #cbbec6; font: 600 .7rem/1.25 var(--body); cursor: pointer; white-space: nowrap; }
.like-button::before { content: ""; position: absolute; inset: 9px 0; border: 1px solid #2b2429; border-radius: inherit; background: #0d0b10; }
.like-button > span { position: relative; }
.like-button > .visually-hidden { position: absolute; }
.like-button:hover::before { background: #181219; border-color: #70616a; }
.like-button[aria-pressed="true"] { color: var(--gold); }
.like-button[aria-pressed="true"]::before { background: #1a1117; border-color: color-mix(in srgb, var(--gold), #0d0b10 45%); }
.like-button[aria-disabled="true"] { opacity: .65; cursor: progress; }
.like-heart { font: 12px Arial, sans-serif; }
.like-button [data-like-count] { min-width: 1ch; font-variant-numeric: tabular-nums; }
.like-button--mini { min-width: 44px; padding-inline: 8px; font-size: .65rem; }
.like-button--mini::before { inset: 12px 3px; border-radius: 5px; }
.like-button--mini .like-heart { font-size: 10px; }
.like-feedback { color: var(--muted); font-size: .78rem; }
.result-card .like-feedback, .event-card-featured .like-feedback { color: var(--on-burgundy-muted); }
.like-feedback:empty { display: none; }
.report-actions { margin-block: 4px 8px; gap: 4px 14px; }
.saturday-result > .like-control, .league-results [data-like-item] { margin-block: 4px; }
.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--panel-gap); padding: 0; margin: 0; }
.gallery-grid > li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gallery-grid a { display: block; flex: 1; color: var(--ink); text-decoration: none; overflow: clip; border-radius: var(--radius); background: var(--light); border: 1px solid var(--line); }
.gallery-grid a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: #d2c7b8; }
.gallery-grid a[href$="cawood-stumps.webp"] img { object-position: 50% 62%; }
.gallery-grid a[href$="bat-raised.webp"] img { object-position: 50% 26%; }
.gallery-grid a[href$="boundary-pizza.webp"] img { object-position: 50% 94%; }
.gallery-grid a > span { min-height: 44px; padding: 8px 13px; display: flex; gap: 8px; justify-content: space-between; align-items: center; font-size: .84rem; font-weight: 600; }
.gallery-grid i { color: var(--accent); }
.gallery-viewer { width: min(920px, calc(100% - 24px)); max-height: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--deep); color: var(--white); }
.gallery-viewer::backdrop { background: #190d14d9; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; }
.gallery-toolbar form { flex: none; }
.gallery-toolbar h2 { font-size: clamp(21px, 3.5vw, 30px); overflow-wrap: anywhere; }
.gallery-viewer :focus-visible { outline-color: var(--gold); outline-offset: 2px; }
.gallery-control { min-width: 44px; min-height: 44px; padding: 5px 10px; border: 1px solid #fff7e49c; color: inherit; background: transparent; cursor: pointer; }
.gallery-control:hover { color: var(--deep); background: var(--gold); }
.gallery-stage { height: min(62vh, 650px); height: min(66dvh, 650px, max(86px, calc(100dvh - 190px))); background: #190d14; touch-action: pan-y pinch-zoom; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; }
.gallery-status { padding: 12px; margin: 0; text-align: center; }
.gallery-status:empty { padding: 0; }
.gallery-position { color: var(--gold); font-size: .84rem; }
.gallery-controls { flex-wrap: wrap; }


.volunteers-section { background: var(--section-bg); border-top: 1px solid var(--line); }
.volunteers-grid h2 { max-width: 17ch; }
.volunteers-grid p, .touring-grid p { max-width: 54ch; color: var(--muted); }
.volunteers-grid p { margin-bottom: 6px; }
.volunteers-grid .text-link { min-height: 44px; align-items: center; }
.site-footer { color: var(--white); background: var(--deep); border-top: 1px solid var(--line); padding-block: 33px; }
.footer-grid { display: grid; grid-template-columns: minmax(145px, .65fr) minmax(0, 2fr) minmax(0, 1fr); gap: 20px clamp(18px, 3vw, 40px); align-items: start; }
.site-footer nav { display: flex; gap: 11px 20px; flex-wrap: wrap; }
.site-footer nav a { display: block; align-content: center; min-height: 44px; padding-block: 6px; overflow-wrap: anywhere; font-size: .86rem; font-weight: 600; text-underline-offset: 4px; }
.site-footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.footer-email { grid-column: 1 / -1; }
.site-footer .footer-social { grid-column: 1 / -1; gap: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.site-footer .footer-social a { color: #e8d6df; font-size: .82rem; text-decoration: none; }
.site-footer .footer-social a:hover, .site-footer .footer-social a:focus-visible { text-decoration: underline; }
.footer-share button { cursor: pointer; }
.footer-share { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.footer-share .text-link { min-height: 44px; align-items: center; }
.footer-share .action-status { margin: 0; color: #e8d6df; }
.footer-credit { grid-column: 1 / -1; color: #cbb8c2; font-size: .75rem; line-height: 1.5; }

.club-chat { width: min(440px, calc(100% - 28px)); max-height: calc(100% - 28px); max-height: calc(100dvh - 28px); margin: auto 14px 14px auto; padding: 0; border: 1px solid var(--burgundy); border-radius: var(--radius); color: var(--ink); background: var(--light); box-shadow: 0 10px 45px #28131d55; }
.club-chat::backdrop { background: #28131d66; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; background: var(--deep); color: var(--white); }
.chat-header h2 { font-size: clamp(24px, 5vw, 28px); }
.chat-header :focus-visible { outline-color: var(--gold); }
.chat-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #fff7e49c; border-radius: var(--control-radius); color: inherit; background: transparent; font-size: 24px; cursor: pointer; }
.chat-body { padding: 14px 16px 16px; }
.chat-log { height: clamp(95px, 34dvh, 260px); overflow-y: auto; overscroll-behavior: contain; padding: 9px; border: 1px solid var(--line); }
.chat-log > p { margin: 0; }
.chat-message { margin-top: 10px; padding: 9px 11px; background: var(--chat-message-bg); overflow-wrap: anywhere; }
.chat-message-user { background: var(--chat-user-bg); }
.chat-message strong { display: block; font-size: .78rem; }
.chat-message p { margin: 2px 0 0; }
.chat-message a { display: inline-block; margin: 6px 12px 0 0; font-size: .84rem; font-weight: 700; text-underline-offset: 3px; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chat-prompts button { min-height: 44px; padding: 5px 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .78rem; cursor: pointer; }
.chat-note { margin: 9px 0; color: var(--muted); font-size: .78rem; }
.chat-note label { display: flex; align-items: center; gap: 6px; min-height: 25px; font-weight: 700; }
.chat-note p { margin: 3px 0 0; }
.chat-form label { display: block; font-size: .85rem; font-weight: 700; }
.chat-form > div { display: flex; gap: 6px; }
.chat-form input { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--ink); font: inherit; }
.chat-form button { cursor: pointer; }

.policy-header .site-nav { margin-left: auto; }
.policy-header a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.policy-main { max-width: 850px; }
.policy-main h1 { font-size: clamp(41px, 7vw, 72px); margin-bottom: var(--heading-gap); }
.policy-main h2 { font-size: clamp(27px, 4vw, 42px); margin: clamp(24px, 4vw, 34px) 0 14px; }
.policy-main p, .policy-main li { max-width: 66ch; }
.policy-main ul { padding-inline-start: 1.35em; }
.policy-main > :last-child { margin-bottom: 0; }
.policy-main li + li { margin-top: 9px; }
.policy-main a { text-underline-offset: .18em; overflow-wrap: anywhere; }
.policy-intro { font-size: 1.12rem; }
.policy-alert { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--policy-bg); font-weight: 700; }
.safeguarding-officer { padding: 14px 20px; border: 1px solid var(--line); background: var(--light); }

@media (max-width: 1000px) {
  .match-rail :is(a, .chat-launch) { padding-inline: 13px; gap: 9px; }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1360px) {
  .home-page { --header-height: 69px; }
  .home-header .masthead-inner { padding-block: 9px; }
}

@media (min-width: 761px) {
  .match-rail-inner.has-chat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .match-reports .league-grid:not(:has(.report-archive[open])) { align-items: stretch; }
  .report-team, .report-feature { display: flex; flex-direction: column; }
  .report-feature { flex: 1; align-items: start; }
  .report-feature .report-source { margin-top: auto; }
  .matchday-grid {
    grid-template-areas: "live weather" "fixtures weather";
    grid-template-rows: auto 1fr;
  }
  .matchday-grid > .live-centre { grid-area: live; }
  .matchday-grid > .ground-weather { grid-area: weather; }
  .matchday-grid > .season-fixtures { grid-area: fixtures; }
}

@media (max-width: 760px) {
  .hero-inner { min-height: 0; padding-block: 42px; }
  .hero-shade { background: linear-gradient(90deg, #111014eb 0%, #1110149c 47%, #11101437 100%), linear-gradient(0deg, #11101495, transparent 72%); }
  .hero-photo img { object-position: 68% 50%; }
  .match-rail-inner, .match-rail-inner.has-chat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
  .match-rail :is(a, .chat-launch) {
    justify-content: center;
    gap: 6px;
    padding: 8px;
    line-height: 1.25;
    text-align: center;
  }
  .match-rail .rail-arrow { margin-left: 0; }
  .match-rail-inner:not(.has-chat) > a:last-of-type { grid-column: 1 / -1; }
  .play-grid, .community-grid, .volunteers-grid, .touring-grid,
  .club-history-grid, .press-grid, .matchday-grid, .live-feed-grid, .league-grid, .coaching-grid, .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .community-photo { border-left: 0; border-top: 1px solid var(--line); }
  .club-history-photos { grid-row: 1; }
  .registration-panel { grid-template-columns: minmax(0, 1fr); }
  .registration-actions { justify-self: start; max-width: 100%; }
  .match-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .policy-header .masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 0; padding-top: 9px; }
  .policy-header .wordmark { grid-column: 1 / -1; justify-self: start; }
  .policy-header .site-nav { margin-left: 0; flex-wrap: wrap; gap: 0 13px; }
}

@media (max-width: 640px) {
  .visit-grid, .hire-grid, .support-priorities { grid-template-columns: minmax(0, 1fr); }
  .support-priorities > img { height: clamp(132px, 24vw, 165px); min-height: 0; }
}

@media (max-width: 480px) {
  .hire-fields { grid-template-columns: minmax(0, 1fr); }
  .ground-weather { padding-inline: 13px; }
  .weather-table, .league-table { table-layout: fixed; }
  .league-card { padding-inline: 12px; }
  .league-table thead th:nth-child(2) { width: 50%; }
  .league-table thead th { white-space: nowrap; }
  .weather-hourly .weather-table th:first-child { width: 34%; }
  .weather-hourly .weather-table th:nth-child(2) { width: 28%; }
  .weather-hourly .weather-table th:last-child { width: 18%; }
  .weather-table th, .weather-table td { overflow-wrap: anywhere; }
  .weather-table th, .weather-table td { padding-inline: 5px; }
  .hero-inner { padding-block: 34px; }
  .hero h1 { font-size: clamp(37px, 9.4vw, 46px); }
  .hero-shade { background: linear-gradient(90deg, #111014bb, #11101444 80%), linear-gradient(0deg, #111014f5, #11101486 54%, #11101426); }
  .hero-photo img { object-position: 62% 48%; }
  .button { gap: 8px; padding-inline: 12px; }
  .section-heading { align-items: start; flex-direction: column; }
  .match-board { grid-template-columns: minmax(0, 1fr); }
  .membership-grid, .support-options, .support-priorities ul { grid-template-columns: minmax(0, 1fr); }
  .sponsor-donation { text-align: left; }
  .events-grid, .club-news-list { grid-template-columns: minmax(0, 1fr); }
  .facebook-news .section-heading { align-items: start; }
  .gallery-grid a > span { padding-inline: 9px; }
  .membership-grid div { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; }
  .membership-grid dd { margin: 0; }
}

@media (max-width: 400px) {
  .masthead-inner { gap: 6px; }
  .masthead .wordmark { gap: 7px; font-size: 20px; }
  .masthead .club-mark { width: 38px; height: 38px; }
  .menu-toggle span { display: none; }
  .weather-table, .league-table { font-size: .82rem; }
  .league-table :is(th, td) { padding-inline: 4px; }
  .weather-table th, .weather-table td { padding-inline: 4px; }
}

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

.arrow-up, .arrow-down { display: inline-block; width: .84em; height: .84em; flex: 0 0 .84em; background-color: currentColor; }
.arrow-up { clip-path: polygon(17% 67%, 61% 23%, 29% 23%, 29% 9%, 88% 9%, 88% 68%, 74% 68%, 74% 36%, 30% 80%); }
.arrow-down { clip-path: polygon(43% 9%, 57% 9%, 57% 65%, 79% 43%, 89% 53%, 50% 92%, 11% 53%, 21% 43%, 43% 65%); }
.club-notice { background: var(--gold); color: var(--deep); padding: 15px 0; }
.club-notice p { margin: 0; overflow-wrap: anywhere; }
.club-notice strong { margin-right: 8px; }
.club-notice .notice-details { margin-top: 4px; font-size: .88rem; }
.editor-link { display: block; margin-top: 10px; font-size: .82rem; }
.editor-main { padding-block: 50px; max-width: 820px; }
.editor-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.editor-main h1 { font-size: clamp(40px, 7vw, 66px); margin: 20px 0; }
.editor-main h2 { font-size: 2.2rem; margin-bottom: 10px; }
.editor-nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.editor-nav a { min-height: 36px; align-items: center; }
.editor-success { padding: 10px 14px; background: var(--gold); color: var(--deep); font-weight: 700; }
.editor-main .match-card { margin-block: 18px; }
.editor-main form { display: grid; gap: 9px; }
.editor-main input, .editor-main textarea, .editor-main select { padding: 10px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--ink); font: inherit; width: 100%; }
.editor-main input[type="checkbox"] { width: auto; }
.editor-main label { font-weight: 700; }
.editor-main button { width: fit-content; cursor: pointer; }
.editor-main .clear-form { margin-top: 8px; }
.editor-main .editor-feedback { min-height: 1.4em; margin-block: 0; color: var(--accent); font-weight: 700; }
.editor-photo { width: 190px; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 15px; }
.editor-news-slot { margin-top: 12px; border: 1px solid var(--line); padding: 12px; }
.editor-news-slot summary { cursor: pointer; font-weight: 700; }
.editor-news-slot form { margin-top: 12px; }
