:root {
  --sky: #63c8f4;
  --sky-bright: #83d9fb;
  --sky-dark: #078dcf;
  --sky-soft: #e8f8ff;
  --cyan: #54eff8;
  --ink: #061d3d;
  --navy: #051f4a;
  --navy-2: #082e63;
  --paper: #f5fbfe;
  --white: #fff;
  --muted: #5f7285;
  --line: #cfe1ea;
  --opponent: #c92737;
  --opponent-soft: rgba(201, 39, 55, .16);
  --win: #078561;
  --draw: #a86f00;
  --loss: #c52f46;
  --shadow: 0 18px 48px rgba(4, 31, 70, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 18%, rgba(99, 200, 244, .2), transparent 25rem),
    linear-gradient(180deg, #eefaff 0, var(--paper) 55rem);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

.masthead {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background:
    radial-gradient(circle at 80% 0, rgba(255,255,255,.35), transparent 28rem),
    linear-gradient(135deg, #7dd6fa 0%, var(--sky) 55%, #48b7ec 100%);
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(45deg, var(--navy) 25%, transparent 25%, transparent 75%, var(--navy) 75%),
    linear-gradient(45deg, var(--navy) 25%, transparent 25%, transparent 75%, var(--navy) 75%);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  pointer-events: none;
}
.masthead__inner {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  min-height: 132px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 0;
}
.brand {
  width: min(660px, 70vw);
  display: block;
  color: var(--navy);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(255,255,255,.18));
}
.private-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(5,31,74,.18);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255,255,255,.75);
  box-shadow: 0 8px 24px rgba(4,31,70,.09);
  font-size: .75rem;
  font-weight: 800;
}
.private-pill span {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 0 4px rgba(7,133,97,.12);
}

.last-ribbon {
  color: var(--white);
  background: linear-gradient(90deg, var(--navy), #07336d 62%, var(--navy));
  box-shadow: 0 7px 20px rgba(5,31,74,.18);
}
.last-ribbon > div {
  width: min(1220px, calc(100% - 40px));
  min-height: 54px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
}
.last-ribbon i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 18px rgba(99,200,244,.65);
}
.last-ribbon strong {
  color: var(--sky);
  font-size: 1rem;
  letter-spacing: .3em;
}
.last-ribbon span {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.36);
}
.last-ribbon b {
  font-size: 1.15rem;
  letter-spacing: .035em;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px max(20px, calc((100% - 1220px) / 2)) 34px;
  color: var(--navy);
  background:
    radial-gradient(circle at 88% 13%, var(--opponent-soft), transparent 24rem),
    linear-gradient(130deg, #76d2f8 0%, var(--sky) 58%, #4db8ec 100%);
}
.hero::before {
  content: "LAST";
  position: absolute;
  right: -28px;
  bottom: -54px;
  color: rgba(255,255,255,.17);
  font: 800 18rem/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.05em;
  pointer-events: none;
}
.hero__grid, .record, .controls { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 50px;
  align-items: end;
}
.hero__copy { max-width: 800px; }
.eyebrow {
  margin: 0 0 11px;
  color: var(--navy);
  font-size: .75rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
}
h1, h2 { font-family: "Barlow Condensed", Impact, sans-serif; }
h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.25rem, 6.5vw, 5.75rem);
  line-height: .88;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
h1 span { color: var(--white); font-weight: 600; text-shadow: 0 2px 0 rgba(5,31,74,.45); }
h1 em {
  display: block;
  color: var(--white);
  font-style: normal;
  text-wrap: balance;
  -webkit-text-stroke: 1px rgba(5,31,74,.72);
  text-shadow: 0 3px 0 rgba(5,31,74,.65);
}
.standfirst {
  max-width: 720px;
  margin: 22px 0 0;
  color: #0a3962;
  font-size: .9375rem;
  line-height: 1.65;
  font-weight: 600;
}
.hero-checks {
  width: 224px;
  height: 14px;
  margin-top: 25px;
  background:
    linear-gradient(90deg, var(--white) 50%, var(--navy) 50%) 0 0 / 28px 14px;
  box-shadow: 0 3px 0 rgba(5,31,74,.12);
}

.opponent-panel {
  position: relative;
  padding: 19px;
  border: 1px solid rgba(5,31,74,.14);
  border-top: 5px solid var(--opponent);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 55px rgba(4,31,70,.16);
  backdrop-filter: blur(10px);
}
.opponent-panel > label {
  display: block;
  margin-bottom: 10px;
  color: #426078;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.opponent-select-wrap {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: stretch;
}
.opponent-monogram {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 8px;
  color: white;
  background: var(--opponent);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  font: 800 1.35rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: .02em;
}
.opponent-select-wrap select {
  min-width: 0;
  width: 100%;
  border: 1px solid #a8c8d8;
  border-radius: 8px;
  color: var(--navy);
  background: #f6fcff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23051f4a' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat right 12px center/18px;
  appearance: none;
  padding: 0 42px 0 15px;
  font-weight: 800;
  font-size: .9375rem;
}
.opponent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 0;
  color: #50697d;
  font-size: .75rem;
  line-height: 1.4;
}
.opponent-status i {
  width: 19px;
  height: 19px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #795900;
  background: #ffe4a3;
  font-style: normal;
  font-size: .6875rem;
  font-weight: 800;
}
.opponent-status[data-status="exactDates"] i { color: #087957; background: #d9f3e9; }
.opponent-index {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid #dbe9f0;
  color: #688094;
  font-size: .6875rem;
}
.opponent-index strong { color: var(--navy); }
.opponent-index span { padding: 0 4px; color: #8da3b3; }

.record {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr) 1.35fr;
  border: 1px solid rgba(84,239,248,.24);
  border-radius: 14px 14px 0 0;
  color: var(--white);
  background:
    linear-gradient(rgba(84,239,248,.035) 1px, transparent 1px) 0 0 / 100% 10px,
    #020b15;
  box-shadow: 0 20px 45px rgba(4,31,70,.22);
}
.record article {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 9px;
  padding: 16px 24px;
  border-left: 1px solid rgba(84,239,248,.16);
}
.record article:first-child { border-left: 0; }
.record strong {
  color: var(--cyan);
  font: 800 2rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: .04em;
  text-shadow: 0 0 13px rgba(84,239,248,.15);
}
.record small {
  grid-column: 2;
  color: #a8bfcc;
  font-size: .8125rem;
  margin-top: 4px;
}
.record__label {
  grid-column: 1 / -1;
  color: var(--sky);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.record__lead strong { grid-row: 2 / 4; font-size: 2.85rem; }
.record__lead small { align-self: end; grid-column: 2; }
.record .record__goals strong, .record .record__goals small { grid-column: 1 / -1; }
.dot { width: 8px; height: 8px; align-self: center; border-radius: 50%; }
.dot--win { background: var(--win); }
.dot--draw { background: #f7b521; }
.dot--loss { background: var(--loss); }

.controls {
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(5,31,74,.09);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow);
}
.search-field {
  min-width: 255px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef8fc;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
}
.search-field:focus-within { border-color: var(--sky-dark); box-shadow: 0 0 0 3px rgba(99,200,244,.23); }
.search-field svg { width: 18px; fill: none; stroke: #58758a; stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: .875rem; min-height: 46px; }
.segmented { display: flex; padding: 4px; background: #e7f4fa; border-radius: 8px; }
.segmented button { border: 0; padding: 0 15px; color: #587083; background: transparent; border-radius: 6px; font-size: .875rem; font-weight: 700; }
.segmented button.is-active { color: var(--white); background: var(--navy); box-shadow: 0 3px 9px rgba(5,31,74,.22); }
.select-wrap { position: relative; display: flex; }
.select-wrap select {
  appearance: none;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%235f7285' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat right 10px center/18px;
  padding: 0 36px 0 13px;
  font-size: .875rem;
  font-weight: 600;
}
.select-wrap--compact select { min-width: 135px; }
.icon-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #536c7f;
  background: var(--white);
  padding: 0 13px;
  font-size: .875rem;
  font-weight: 700;
}
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-button[aria-pressed="true"] { color: var(--white); border-color: #d72d39; background: #d72d39; }

.archive { width: min(1060px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 76px; }
.scope-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding: 15px 17px;
  border: 1px solid #b8dcec;
  border-left: 5px solid var(--sky-dark);
  border-radius: 10px;
  color: #49677d;
  background: #e8f8ff;
  font-size: .8125rem;
  line-height: 1.5;
}
.scope-notice strong { color: var(--navy); }
.scope-notice button {
  border: 0;
  color: var(--sky-dark);
  background: transparent;
  padding: 5px;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.archive__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.archive h2 { margin: 0; color: var(--navy); font-size: 2.65rem; line-height: 1; text-transform: uppercase; }
.archive .eyebrow { color: var(--sky-dark); }
.sort-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: #49677d;
  background: transparent;
  padding: 8px 0;
  font-size: .875rem;
  font-weight: 700;
}
.sort-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sort-button[data-direction="desc"] svg { transform: scaleY(-1); }
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 18px 0 22px;
  padding: 15px 16px;
  border: 1px solid #d5e8f1;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: .75rem;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend button, footer button {
  margin-left: auto;
  padding: 0;
  border: 0;
  color: var(--sky-dark);
  background: transparent;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.verified-mark, .archive-mark, .conflict-mark, .video-mark, .unknown-mark, .scope-mark, .owner-mark {
  width: 19px;
  height: 19px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: .6875rem;
  font-weight: 800;
}
.verified-mark { color: #087e5a; background: #d9f3e9; }
.owner-mark { color: #6f42c1; background: #eee6ff; }
.owner-source { color: #6f42c1; text-decoration: none; }
.archive-mark { color: #775700; background: #ffe7aa; }
.conflict-mark { color: #94362c; background: #ffe0da; }
.video-mark { color: #fff; background: #e32636; }
.unknown-mark { color: #667787; background: #e9eef2; }
.scope-mark { color: #075f8d; background: #d3effb; }

.fixture-list { display: grid; gap: 10px; }
.fixture-card {
  display: grid;
  grid-template-columns: 94px minmax(250px, 1fr) 88px 175px;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 15px 18px;
  border: 1px solid #d8e8ef;
  border-left: 5px solid var(--result-colour, var(--line));
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 18px rgba(5,31,74,.045);
  transition: transform .16s ease, box-shadow .16s ease;
}
.fixture-card:hover { transform: translateY(-1px); box-shadow: 0 11px 28px rgba(5,31,74,.1); }
.fixture-card[data-result="W"] { --result-colour: var(--win); }
.fixture-card[data-result="D"] { --result-colour: var(--draw); }
.fixture-card[data-result="L"] { --result-colour: var(--loss); }
.fixture-date time { display: block; color: var(--navy); font: 800 1.125rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.fixture-date span { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.fixture-match { min-width: 0; }
.fixture-teams { display: flex; align-items: center; gap: 9px; color: var(--navy); font: 700 1.125rem/1.2 "Barlow Condensed", sans-serif; }
.fixture-teams span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-chip { flex: 0 0 auto; padding: 4px 6px; color: var(--navy); background: #dff4fc; border-radius: 4px; font: 700 .6875rem/1 Inter, sans-serif; text-transform: uppercase; }
.fixture-meta { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.fixture-meta i { width: 17px; height: 17px; font-size: .625rem; }
.fixture-source { display: inline-block; margin: 7px 0 0 25px; color: var(--sky-dark); font-size: .875rem; font-weight: 700; text-underline-offset: 2px; }
.score { justify-self: center; min-width: 72px; text-align: center; }
.score strong { display: block; color: var(--navy); font: 800 1.8rem/1 "Barlow Condensed", sans-serif; }
.score span { display: inline-block; margin-top: 5px; color: var(--result-colour); font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footage { justify-self: stretch; }
.footage-link, .no-footage {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.footage-link { color: var(--white); background: #d92735; box-shadow: 0 6px 14px rgba(217,39,53,.18); }
.footage-link:hover { background: #bf1c2a; }
.footage-link svg { width: 16px; fill: currentColor; }
.no-footage { justify-content: flex-start; color: #82909c; background: transparent; font-weight: 600; letter-spacing: 0; line-height: 1.35; text-transform: none; }

.load-more {
  width: 100%;
  margin-top: 18px;
  min-height: 50px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  background: transparent;
  font-size: .875rem;
  font-weight: 800;
}
.load-more:hover { color: var(--white); background: var(--navy); }
.empty-state { text-align: center; padding: 55px 20px; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 10px; }
.empty-state button { border: 0; color: var(--sky-dark); background: transparent; font-weight: 700; text-decoration: underline; }

footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px max(20px, calc((100% - 1060px) / 2)) 30px;
  color: #afc9d8;
  background: var(--navy);
  font-size: .75rem;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background:
    linear-gradient(90deg, var(--white) 50%, var(--sky) 50%) 0 0 / 24px 12px;
}
footer strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font: 800 1rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
footer p { margin: 0; }
footer button { margin-left: 0; color: var(--sky); }

dialog {
  width: min(680px, calc(100% - 30px));
  max-height: min(760px, calc(100vh - 30px));
  overflow: auto;
  border: 0;
  border-top: 8px solid var(--sky);
  border-radius: 14px;
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
dialog::backdrop { background: rgba(1,12,22,.72); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 22px; color: var(--navy); font-size: 2.25rem; text-transform: uppercase; }
.dialog-close { position: absolute; top: 15px; right: 18px; border: 0; color: var(--muted); background: transparent; font-size: 1.6rem; }
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note-grid > div { display: flex; align-items: flex-start; gap: 11px; padding: 13px; background: #eef8fc; border-radius: 8px; }
.note-grid p { margin: 0; color: #536575; font-size: .875rem; line-height: 1.55; }
.note-grid strong { color: var(--ink); }
.current-source { margin-top: 18px; padding: 16px; border-left: 4px solid var(--opponent); background: #eef8fc; }
.current-source > span { display: block; color: var(--muted); font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.current-source > strong { display: block; margin-top: 4px; font: 800 1.35rem/1.2 "Barlow Condensed", sans-serif; }
.current-source p { margin: 6px 0 10px; color: #536575; font-size: .875rem; line-height: 1.5; }
.current-source a, .source-links a { color: var(--sky-dark); font-size: .875rem; font-weight: 700; }
.source-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .masthead__inner { min-height: 112px; }
  .brand { width: min(560px, 66vw); }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .opponent-panel { max-width: 520px; }
  h1 em { display: inline; }
  .controls { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .segmented, .select-wrap, .select-wrap select { flex: 1; }
  .record article { padding: 15px; }
  .fixture-card { grid-template-columns: 82px 1fr 74px; }
  .footage { grid-column: 2 / 4; }
  .footage-link, .no-footage { width: fit-content; min-height: 34px; padding: 0 12px; }
}

@media (max-width: 640px) {
  .masthead__inner {
    width: min(100% - 28px, 1220px);
    min-height: 92px;
    align-items: center;
    gap: 12px;
  }
  .brand { width: min(275px, 66vw); }
  .private-pill { min-height: 32px; padding: 0 10px; font-size: 0; }
  .private-pill::after { content: "Private"; font-size: .6875rem; }
  .last-ribbon > div { width: calc(100% - 28px); min-height: 46px; gap: 11px; }
  .last-ribbon b { font-size: .95rem; }
  .hero { padding: 20px 14px; }
  .hero::before { font-size: 10rem; bottom: -25px; }
  h1 { font-size: 3rem; }
  h1 em { display: block; }
  .standfirst { font-size: .8125rem; }
  .hero-checks { width: 168px; }
  .opponent-panel { padding: 14px; }
  .opponent-select-wrap { grid-template-columns: 46px 1fr; }
  .opponent-monogram { min-height: 50px; }
  .record { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
  .record article { min-height: 75px; padding: 12px 8px; text-align: center; display: block; }
  .record article:nth-child(2) { border-left: 0; }
  .record article:first-child {
    grid-column: 1 / -1;
    min-height: 64px;
    border-bottom: 1px solid rgba(84,239,248,.16);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
  }
  .record__label { margin: 0; }
  .record__lead strong { font-size: 1.9rem; }
  .record small { display: block; margin-top: 5px; }
  .record__lead small { display: inline; }
  .record .record__goals { grid-column: auto; }
  .record strong { font-size: 1.7rem; }
  .record .record__goals strong { font-size: 1.3rem; }
  .dot { display: none; }
  .controls { padding: 9px; }
  .segmented { flex-basis: 100%; min-height: 44px; }
  .select-wrap, .select-wrap select { min-width: 0; width: 100%; min-height: 44px; }
  .select-wrap { flex-basis: calc(50% - 5px); }
  .icon-button { min-height: 42px; }
  .archive { width: calc(100% - 28px); padding: 40px 0 50px; }
  .scope-notice { grid-template-columns: 1fr auto; }
  .scope-notice span { grid-column: 1 / -1; grid-row: 2; }
  .archive h2 { font-size: 2.15rem; }
  .legend { gap: 9px 13px; padding: 13px; }
  .legend button { width: 100%; margin-left: 0; text-align: left; }
  .fixture-card { grid-template-columns: 70px minmax(0, 1fr) 56px; gap: 10px; min-height: 90px; padding: 13px 10px; }
  .fixture-date time { font-size: 1rem; }
  .fixture-teams { font-size: 1rem; }
  .score strong { font-size: 1.55rem; }
  .fixture-meta span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .fixture-source { margin-left: 25px; }
  .note-grid { grid-template-columns: 1fr; }
  footer { display: block; line-height: 1.5; }
  footer button { margin-top: 12px; }
}

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


/* Match the Stats Centre masthead */
.masthead__inner {
  min-height: 88px;
  padding: 8px 0;
}
.brand { width: min(500px, 62vw); }
.masthead .masthead-title {
  flex: 0 1 auto;
  margin: 0;
  color: var(--navy);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead .masthead-title em {
  color: white;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(5,31,74,.72);
  text-shadow: 0 2px 0 rgba(5,31,74,.55);
}
@media (max-width: 640px) {
  .masthead__inner {
    width: min(100% - 28px, 1220px);
    min-height: 72px;
    padding: 6px 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand { width: 70vw; }
  .masthead .masthead-title {
    width: 100%;
    padding-bottom: 8px;
    font-size: 1.45rem;
    text-align: left;
    white-space: normal;
  }
}
