:root {
	--bg: #EFF1EE;
	--surface: #FFFFFF;
	--ink: #1B2430;
	--accent: #2E5C55;
	--accent-dark: #204540;
	--support: #8C3B2E;
	--muted: #5F6764;
	--hairline: #D8DAD3;
	--font-display: "Roboto Slab", Georgia, serif;
	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--xs: 4px;
	--sm: 8px;
	--md: 16px;
	--lg: 32px;
	--xl: 64px;
	--radius: 0;
	--container: 1200px;
	--gutter: 16px;
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body) { margin: 0; }
:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl) { margin: 0; }
:where(ul, ol) { padding: 0; }
:where(img, svg, video, iframe) { max-width: 100%; height: auto; display: block; }
:where(button, input) { font: inherit; color: inherit; }

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num, time { font-family: var(--font-mono); font-weight: 500; font-feature-settings: "tnum"; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: var(--sm) var(--md); z-index: 100; }
.skip-link:focus { left: var(--md); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Masthead */
.masthead { background: var(--bg); border-bottom: 1px solid var(--ink); }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--md); min-height: 64px; flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--ink); }
.wordmark--small { font-size: 22px; }
.masthead__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--ink); cursor: pointer; }
.masthead__toggle-bars, .masthead__toggle-bars::before, .masthead__toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.masthead__toggle-bars::before { position: absolute; top: -6px; }
.masthead__toggle-bars::after { position: absolute; top: 6px; }
.nav { display: none; width: 100%; padding: 0 0 var(--md); }
.nav.is-open { display: block; }
.nav__list { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; font-weight: 500; }
.nav__list .current-menu-item > a, .nav__list a:hover { color: var(--accent); }
.nav__search { margin-top: var(--md); }
.nav__search input, .searchform input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--ink); background: var(--surface); border-radius: 0; }
@media (min-width: 1024px) {
	.masthead__toggle { display: none; }
	.masthead__bar { flex-wrap: nowrap; min-height: 76px; }
	.nav { display: flex; align-items: center; gap: var(--md); width: auto; padding: 0; }
	.nav__list { flex-direction: row; border: 0; gap: 18px; }
	.nav__list a { border: 0; padding: 6px 0; font-size: 12px; white-space: nowrap; }
	.nav__search { margin: 0; }
	.nav__search input { width: 130px; height: 36px; font-size: 14px; }
}
@media (min-width: 1200px) {
	.nav__list { gap: 24px; }
	.nav__list a { font-size: 13px; }
	.nav__search input { width: 170px; }
}
.wordmark { white-space: nowrap; }

/* Club shortcuts */
.clubs { border-top: 1px solid var(--hairline); }
.clubs__inner { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; font-size: 14px; }
.clubs__inner::-webkit-scrollbar { display: none; }
.clubs__label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; align-self: center; }
.clubs a { color: var(--ink); text-decoration: none; }
.clubs a:hover { color: var(--accent); text-decoration: underline; }

/* Score strip */
.strip { border-top: 1px solid var(--hairline); background: var(--surface); }
.strip__inner { display: flex; align-items: center; gap: var(--md); }
.strip__list { list-style: none; display: flex; gap: 26px; overflow-x: auto; white-space: nowrap; padding: 10px 0; flex: 1; scrollbar-width: none; }
.strip__list::-webkit-scrollbar { display: none; }
.strip__item { display: inline-flex; gap: 8px; align-items: baseline; font-size: 13px; }
.strip__state { font-family: var(--font-mono); font-size: 12px; color: var(--support); }
.strip__state--live { color: var(--accent); font-weight: 600; text-transform: uppercase; }
.strip__comp { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.strip__more { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; display: none; }
@media (min-width: 768px) { .strip__more { display: inline; } }

/* Layout */
.site-main { padding: var(--lg) 0 var(--xl); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lg); }
@media (min-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
	.layout--article { grid-template-columns: minmax(0, 720px) 340px; justify-content: space-between; }
	.sticky { position: sticky; top: var(--md); }
}
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; padding-bottom: 8px; border-bottom: 1px solid var(--ink); margin-bottom: var(--md); }
.section-title a { color: var(--ink); text-decoration: none; }
.section-title a:hover { color: var(--accent); }
.dateline { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-variant: small-caps; color: var(--support); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; margin-bottom: 10px; }
a.dateline:hover { color: var(--ink); }
.meta { font-size: 13px; color: var(--muted); }
.meta time { font-size: 12px; }

/* Lead story (the one ink-navy panel) */
.lead { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ink); color: var(--bg); margin-bottom: var(--lg); }
.lead__media img, .lead__media .thumb-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead__body { padding: 24px var(--gutter) 28px; }
.lead .dateline { color: var(--bg); }
.lead__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4.2vw, 42px); line-height: 1.1; letter-spacing: -0.01em; }
.lead__title a { color: var(--bg); text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead__dek { margin-top: 12px; color: #C9CFD6; font-size: 17px; max-width: 60ch; }
.lead .meta { color: #AEB6BE; margin-top: 14px; }
@media (min-width: 768px) {
	.lead__body { padding: 32px 36px 36px; }
}

/* River rows */
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 0 var(--lg); margin-bottom: var(--lg); border-bottom: 1px solid var(--hairline); }
.row:first-of-type { padding-top: 0; }
.row__media img, .row__media .thumb-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.row .dateline { margin-bottom: 6px; font-size: 11px; }
.row__title { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.2; }
.row__title a { color: var(--ink); text-decoration: none; }
.row__title a:hover { color: var(--accent); }
.row__dek { display: none; color: #3D4651; font-size: 15px; margin-top: 6px; }
.row .meta { margin-top: 6px; }
@media (min-width: 640px) {
	.row { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: var(--md) 0; margin-bottom: 0; }
	.row:first-of-type { padding-top: 0; }
	.row__media img, .row__media .thumb-placeholder { aspect-ratio: 3 / 2; }
	.row__title { font-size: 21px; }
	.row__dek { display: block; }
}
.thumb-placeholder { display: block; background: repeating-linear-gradient(135deg, #DCE0DA 0 12px, #D3D8D1 12px 24px); }

/* Homepage Latest grid: full width under the lead and match centre */
.lead--home { margin-bottom: 0; }
.latest { margin-top: var(--xl); }
.latest__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 0 var(--lg); margin-bottom: var(--lg); border-bottom: 1px solid var(--hairline); }
.card:last-child { margin-bottom: 0; }
.card__media img, .card__media .thumb-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .dateline { margin-bottom: 6px; font-size: 11px; }
.card__title { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.2; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card .meta { margin-top: 6px; }
@media (min-width: 640px) {
	.latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 36px; }
	.card { gap: 12px; padding: 0; margin-bottom: 0; border-bottom: 0; align-content: start; }
	.card__media img, .card__media .thumb-placeholder { aspect-ratio: 16 / 9; }
	.card__body { border-top: 1px solid var(--ink); padding-top: 10px; }
	.card__title { font-size: 19px; }
}
@media (min-width: 1024px) { .latest__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1200px) { .latest__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card__title { font-size: 18px; } }

/* Buttons */
.button { display: inline-block; background: var(--accent); color: var(--bg); border: 1px solid var(--accent); padding: 11px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 0; cursor: pointer; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--bg); }
.button--quiet { background: transparent; color: var(--accent); margin-top: var(--lg); }
.button--quiet:hover { background: var(--accent); color: var(--bg); }

/* Match centre */
.mc { background: var(--surface); border-top: 3px solid var(--ink); padding: var(--md); }
.mc .section-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.mc__comps, .mc__views { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.mc__comps::-webkit-scrollbar, .mc__views::-webkit-scrollbar { display: none; }
.mc__comp { padding-right: 12px; }
.mc__comp, .mc__view { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; cursor: pointer; font-size: 13px; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.mc__comp { font-weight: 500; }
.mc__view { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.mc__comp[aria-selected="true"], .mc__view[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.mc__comp:first-child, .mc__view:first-child { padding-left: 0; }
.mc__empty { font-size: 14px; color: var(--muted); padding: 12px 0; }
.mc .button { display: block; text-align: center; margin-top: var(--md); }
.ftable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ftable th, .ftable td { padding: 7px 4px; text-align: right; border-bottom: 1px solid var(--hairline); font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
.ftable thead th { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.ftable .ftable__team { text-align: left; font-family: var(--font-body); font-weight: 500; font-size: 14px; width: 100%; }
.ftable .ftable__pos { text-align: left; color: var(--muted); width: 26px; }
.ftable .ftable__pts { color: var(--ink); font-weight: 600; }
.ftable tbody tr:nth-child(4) td, .ftable tbody tr:nth-child(4) th { border-bottom-color: var(--ink); }
.fixtures { list-style: none; }
.fixtures__row { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "when when when" "home score away"; gap: 2px 8px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.fixtures__when { grid-area: when; font-size: 11px; color: var(--muted); }
.fixtures__home { grid-area: home; text-align: right; }
.fixtures__away { grid-area: away; }
.fixtures__score { grid-area: score; min-width: 44px; text-align: center; }
.fixtures__live { color: var(--accent); font-weight: 600; text-transform: uppercase; }

/* Competition desks */
.desks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lg); margin-top: var(--xl); padding-top: var(--lg); border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .desks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
@media (min-width: 1200px) { .desks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.desk__list { list-style: none; }
.desk__list li { padding: 12px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.desk__list a { font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.25; color: var(--ink); text-decoration: none; }
.desk__list a:hover { color: var(--accent); }
.desk__list time { font-size: 12px; color: var(--muted); }

/* Page heads */
.page-head { margin-bottom: var(--lg); }
.page-head__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: var(--md); }
.page-head__intro { max-width: 65ch; color: #3D4651; }
.page-head .searchform { margin-top: var(--md); }
.searchform { display: flex; gap: 8px; max-width: 520px; }

/* Article */
.article__head { margin-bottom: var(--lg); }
.article__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -0.01em; }
.article__dek { font-size: 20px; line-height: 1.45; color: #3D4651; margin-top: 14px; max-width: 62ch; }
.article__head .meta { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.article__media { margin: 0 0 var(--lg); }
.article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__media figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.prose { font-size: 18px; line-height: 1.7; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; margin-top: 1.8em; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border: 0; border-left: 3px solid var(--accent); padding: 0 0 0 var(--md); font-family: var(--font-display); font-size: 21px; line-height: 1.4; }
.prose img { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--hairline); padding: 8px 6px; text-align: left; }
.prose figure { margin: 1.5em 0; }
.prose figcaption, .prose .wp-caption-text { font-size: 13px; color: var(--muted); padding-top: 6px; }
.prose .wp-caption { max-width: 100%; }
.article__foot { margin-top: var(--lg); padding-top: var(--md); border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: var(--md); justify-content: space-between; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.tags__label, .share__label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; align-self: center; }
.share { display: flex; gap: 14px; font-size: 14px; }

/* Related reading */
.related { margin-top: var(--xl); }
.related__list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.related__item a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.25; align-items: center; }
.related__item a:hover { color: var(--accent); }
.related__item img, .related__item .thumb-placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 768px) { .related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }

/* Pagination */
.pagination { margin-top: var(--lg); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; font-family: var(--font-mono); }
.page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; border: 1px solid var(--hairline); text-align: center; text-decoration: none; color: var(--ink); background: var(--surface); }
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* Match centre page */
.jump { display: flex; gap: 22px; flex-wrap: wrap; margin-top: var(--md); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.comp { padding: var(--lg) 0; border-top: 1px solid var(--ink); scroll-margin-top: var(--md); }
.comp__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; margin-bottom: var(--md); }
.comp__md { font-size: 14px; color: var(--muted); margin-left: 10px; }
.comp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lg); }
.comp__table { overflow-x: auto; background: var(--surface); padding: var(--md); }
.comp__matches .section-title + .fixtures { margin-bottom: var(--lg); }
@media (min-width: 1024px) { .comp__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } }

/* Comments */
.comments { margin-top: var(--xl); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--ink); padding: 10px; background: var(--surface); border-radius: 0; }
.comment-form .submit { background: var(--accent); color: var(--bg); border: 0; padding: 11px 18px; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }

/* Footer */
.footer { background: var(--ink); color: #C9CFD6; padding: var(--xl) 0 var(--lg); }
.footer__inner { display: grid; gap: var(--lg); }
.footer .wordmark { color: var(--bg); }
.footer__brand p { margin-top: 10px; font-size: 15px; }
.footer__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__list a { color: var(--bg); text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__list a:hover { text-decoration: underline; }
.footer__legal { font-size: 13px; color: #AEB6BE; border-top: 1px solid #36404D; padding-top: var(--md); }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1fr auto; } .footer__legal { grid-column: 1 / -1; } }

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