/* Techrux: the matchday board. Sofia Sans Condensed + Faustina (SIL OFL 1.1, licences in /assets/fonts/), self-hosted. */
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/sofia-sans-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/sofia-sans-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Faustina"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/faustina-400.woff2") format("woff2"); }
@font-face { font-family: "Faustina"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/faustina-700.woff2") format("woff2"); }
/* metric-matched fallbacks (CLS): Arial/Roboto for the condensed face, Georgia/Noto Serif for Faustina */
@font-face { font-family: "Sofia fallback"; font-weight: 400; src: local("Arial"), local("ArialMT");
  size-adjust: 75.62%; ascent-override: 119.02%; descent-override: 39.67%; line-gap-override: 0%; }
@font-face { font-family: "Sofia fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 79.75%; ascent-override: 112.85%; descent-override: 37.62%; line-gap-override: 0%; }
@font-face { font-family: "Sofia fallback R"; font-weight: 700; src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 79.33%; ascent-override: 113.45%; descent-override: 37.82%; line-gap-override: 0%; }
@font-face { font-family: "Faustina fallback"; font-weight: 400; src: local("Georgia");
  size-adjust: 94.17%; ascent-override: 110.75%; descent-override: 23.04%; line-gap-override: 0%; }
@font-face { font-family: "Faustina fallback"; font-weight: 700; src: local("Georgia Bold"), local("Georgia-Bold");
  size-adjust: 100.09%; ascent-override: 104.21%; descent-override: 21.68%; line-gap-override: 0%; }
@font-face { font-family: "Faustina fallback N"; font-weight: 400; src: local("Noto Serif"), local("NotoSerif");
  size-adjust: 86.33%; ascent-override: 120.81%; descent-override: 25.14%; line-gap-override: 0%; }

:root {
  --paper: #F6F6F3; --ink: #121418; --claret: #5E1428; --claret-deep: #4A0F1F; --on-claret: #E7C9D0;
  --forest: #1D6B3A; --forest-deep: #155530; --muted: #5A6069; --line: #D9D9D3; --row: #FFFFFF;
  --cond: "Sofia Sans Condensed", "Sofia fallback", "Sofia fallback R", "Arial Narrow", Arial, sans-serif;
  --text: "Faustina", "Faustina fallback", "Faustina fallback N", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--text); }
::selection { background: var(--claret); color: #fff; }
a { color: var(--claret); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.skip { position: absolute; left: .75rem; top: -4rem; background: #fff; color: var(--ink); padding: .6rem .9rem;
  font: 700 1rem/1 var(--cond); z-index: 10; }
.skip:focus { top: .75rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the claret band: wordmark and three labels */
.band { background: var(--claret); color: #fff; }
.band-in { max-width: 72rem; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0 1.25rem; min-height: 3.5rem; }
.mark { color: #fff; text-decoration: none; font: 700 1.625rem/1 var(--cond); letter-spacing: .04em; text-transform: uppercase;
  padding: .75rem 0; }
.band-nav { display: flex; gap: 0; font: 700 1.0625rem/1 var(--cond); }
.band-nav a { color: #fff; text-decoration: none; padding: 1.15rem .7rem; }
.band-nav a:hover, .band-nav a[aria-current="page"] { background: var(--claret-deep); }
.band :focus-visible { outline-color: #fff; outline-offset: -3px; }

main { max-width: 72rem; margin: 0 auto; padding: 0 1rem 3rem; }
.trail { font: 400 .9375rem/1.4 var(--cond); color: var(--muted); padding-top: .9rem; }
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.trail li + li::before { content: "/"; margin-right: .3rem; }
.trail a { color: var(--muted); }

h1 { font: 700 clamp(2.125rem, 1.6rem + 2.4vw, 3.375rem)/1.02 var(--cond); letter-spacing: -.005em; margin: 1.25rem 0 .9rem;
  max-width: 24ch; text-wrap: balance; }
h2 { font: 700 clamp(1.5rem, 1.3rem + .8vw, 1.875rem)/1.1 var(--cond); margin: 2.25rem 0 .6rem; text-wrap: balance; }
h3 { font: 700 1.3125rem/1.2 var(--cond); margin: 1.75rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
.content { max-width: 42rem; }
.content > p:first-child { font-size: 1.1875rem; }
.content li { margin-bottom: .35rem; }
.byline { font: 400 1rem/1.4 var(--cond); color: var(--muted); margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .2rem .75rem; }
.byline a { color: var(--ink); font-weight: 700; }

/* tables in articles: condensed, tabular, ruled */
table { border-collapse: collapse; width: 100%; font: 400 1.0625rem/1.35 var(--cond); font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }

/* the fixture board: day bands over hairline-ruled rows, kick-off first in bold tabular figures */
.fixtures { margin: 1.75rem 0 2.25rem; }
.fixtures > h2 { margin-top: 0; }
.fx-note { font: 400 1rem/1.4 var(--cond); color: var(--muted); }
.datestrip { display: flex; gap: .25rem; overflow-x: auto; background: var(--claret); padding: .35rem; margin: 0 0 1rem;
  scrollbar-width: thin; }
.datestrip a { flex: none; color: #fff; text-decoration: none; font: 700 1.0625rem/1 var(--cond); padding: .7rem .85rem; }
.datestrip a:hover { background: var(--claret-deep); }
.datestrip a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.dayband { background: var(--claret); color: #fff; font: 700 1.125rem/1.2 var(--cond); margin: 1.25rem 0 0; padding: .55rem .75rem;
  scroll-margin-top: 1rem; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--row); font-family: var(--cond); }
.row { display: grid; grid-template-columns: 4.75rem 1fr auto; grid-template-areas: "ko match match" "ko comp src" "ko tv src";
  gap: 0 .75rem; padding: .7rem .75rem; border-bottom: 1px solid var(--line); margin: 0; align-items: baseline; }
.ko { grid-area: ko; font: 700 1.25rem/1.15 var(--cond); font-variant-numeric: tabular-nums; }
.match { grid-area: match; font: 700 1.1875rem/1.2 var(--cond); }
.comp { grid-area: comp; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.tv { grid-area: tv; font-size: 1rem; line-height: 1.35; }
.src { grid-area: src; font-size: .9375rem; color: var(--muted); align-self: end; padding: .2rem 0; }
.row-loose { grid-template-columns: 1fr auto; grid-template-areas: "match src" "comp src" "tv src"; }

/* the sales box: its own section, never inside a fixture row */
.offer { margin: 2.5rem 0; padding: 1.25rem 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line);
  max-width: 42rem; }
.offer h2 { margin: -1.25rem -1.25rem 1rem; padding: .6rem 1.25rem; background: var(--claret); color: #fff; }
.offer p:last-child { margin-bottom: 0; }
.offer-act { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; font-family: var(--cond); font-size: 1.0625rem; }
.cta { display: inline-flex; align-items: center; min-height: 2.875rem; padding: .7rem 1.2rem; background: var(--forest);
  color: #fff; text-decoration: none; font: 700 1.125rem/1 var(--cond); border-radius: 3px; }
.cta:hover { background: var(--forest-deep); }
.cta:focus-visible { outline-color: var(--ink); }

.related { font-size: 1rem; margin-top: 2rem; max-width: 42rem; }
.index { display: grid; gap: 0 3rem; border-top: 2px solid var(--ink); margin-top: 2.5rem; }
.index ul { list-style: none; padding: 0; font: 400 1.125rem/1.3 var(--cond); }
.index li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sheet .content { max-width: 42rem; }
.hub-list { list-style: none; padding: 0; font-family: var(--cond); font-size: 1.125rem; }
.hub-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: .55rem 0;
  border-bottom: 1px solid var(--line); }
.hub-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 1.5rem; font-family: var(--cond); }
.disclosure { border: 1px solid var(--line); background: #fff; padding: 1rem; margin: 1.5rem 0; font: 400 1.0625rem/1.45 var(--cond); }
.disclosure p { margin: 0; }
.small { font: 400 .9375rem/1.4 var(--cond); color: var(--muted); }

.base { background: var(--ink); color: #D8DADF; font: 400 1rem/1.5 var(--cond); }
.base-in { max-width: 72rem; margin: 0 auto; padding: 1.75rem 1rem 2.25rem; }
.base nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .9rem; }
.base a { color: #fff; padding: .3rem 0; }
.base p { margin: 0; max-width: 42rem; }
.base :focus-visible { outline-color: #fff; }

@media (min-width: 48rem) {
  .row { grid-template-columns: 5.25rem minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) auto;
    grid-template-areas: "ko match comp tv src"; padding: .8rem .75rem; }
  .row-loose { grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr) minmax(0, 1.2fr) auto; grid-template-areas: "match comp tv src"; }
  .src { align-self: baseline; }
  .index { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .board { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; column-gap: 3rem; align-items: start; }
  .board > h1, .board > .content { grid-column: 1; }
  .board .content { max-width: none; }
  .board .content > :not(.fixtures):not(.offer) { max-width: 42rem; }
  .board > .index { grid-column: 2; grid-row: 1 / span 2; display: block; position: sticky; top: 1rem; margin-top: 1.5rem;
    border-top: 2px solid var(--ink); padding-top: .25rem; }
  .board > .index h2 { font-size: 1.375rem; margin-top: 1rem; }
  .board > .index ul { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.na { font-weight: 400; color: var(--muted); }
.compare { min-width: 60rem; }
.compare tbody tr { background: var(--row); }
.compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: var(--paper); min-width: 8rem; }
.compare tbody td:first-child { background: var(--row); }
.article-cover { margin: 1.5rem 0 2rem; } .article-cover img { display: block; width: 100%; height: auto; }
.article-cover figcaption { font: 400 .875rem/1.4 var(--cond); color: var(--muted); padding-top: .35rem; }
