/* Live Check — warm editorial identity, inspired by the framing of cloaked.com. */
:root {
  color-scheme: light;
  --background: #f8f6ee;
  --foreground: #20271f;
  --card: #fffef9;
  --muted: #f0eee4;
  --muted-foreground: #697064;
  --primary: #c84820;
  --primary-foreground: #ffffff;
  --accent: #e7ece0;
  --accent-foreground: #31553e;
  --secondary: #eeebe0;
  --border: #e0e1d5;
  --input: #d4d7c9;
  --ring: #456c50;
  --success: #357049;
  --destructive: #b74638;
  --aviso: #96610f;
  --serie-a: #39684d;
  --serie-b: #b95733;
  --serie-c: #91691e;
  --ink: #17281e;
  --radius-sm: 5px;
  --radius-md: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font-sans: 'DM Sans', sans-serif;
  --site-width: 1200px;
  --duration-fast: 160ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(34px, 4.2vw, 60px); }
h2 { font-size: clamp(28px, 3.2vw, 44px); }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, .btn, .button-primary, .button-secondary { cursor: pointer; }
img { max-width: 100%; }
svg { display: block; width: 100%; height: auto; }
::selection { background: #dce7cc; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
.mono, .val, .n { font-variant-numeric: tabular-nums; }
.mut, .sub { color: var(--muted-foreground); }
.sub { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; }
.pos { color: var(--success); }
.neg { color: var(--destructive); }
.warnc { color: var(--aviso); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted-foreground); font: 500 11px/1.5 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; border-radius: 30px; }
.skip-link:focus { top: 10px; }

/* A restrained frame shared by the landing page and the analysis pages. */
.top-note { min-height: 34px; max-width: var(--site-width); margin: auto; padding: 7px 32px; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: #f6f5e9; font-size: 11px; }
.top-note > span { opacity: .75; }
.top-note a { color: #d5debe; }
.top-note a:hover { color: white; }
.top-note a span { margin-left: 5px; }
.site-header { position: sticky; top: 0; z-index: 30; background: #f8f6eef5; border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-content { display: flex; align-items: center; gap: 12px; max-width: var(--site-width); min-height: 64px; margin: auto; padding: 10px 40px; border-inline: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; width: 220px; height: auto; }
.header-content .brand-logo { width: 180px; }
.team-search { position: relative; flex: 0 1 210px; min-width: 0; margin-left: auto; }
.team-search::before { content: ''; position: absolute; width: 10px; height: 10px; left: 15px; top: 13px; border: 1.4px solid #777f70; border-radius: 50%; pointer-events: none; }
.team-search::after { content: ''; position: absolute; width: 5px; height: 1.4px; left: 24px; top: 25px; background: #777f70; transform: rotate(45deg); pointer-events: none; }
.team-search input[type=search] { height: 42px; padding-left: 37px; font-size: 12px; border-radius: 40px; background: transparent; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-button { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border: 1px solid #bec4b4; border-radius: 40px; background: transparent; color: var(--foreground); font-size: 12px; font-weight: 500; }
.header-button:last-child { background: var(--ink); border-color: var(--ink); color: #fffef8; }
.header-button:hover:not(:disabled) { background: #e8eddf; }
.header-button:last-child:hover:not(:disabled) { background: #304d38; }
.header-button:disabled { opacity: .55; cursor: not-allowed; }
.rail { max-width: var(--site-width); margin: auto; border-inline: 1px solid var(--border); }
.rail > * { min-width: 0; }
.section { padding: 40px 32px; border-bottom: 1px solid var(--border); }
.section-heading { max-width: 750px; }
.section-heading h1, .section-heading h2 { margin-top: 10px; }
.section-heading p { max-width: 66ch; margin-top: 12px; color: var(--muted-foreground); line-height: 1.7; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.content { margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 500; }
.text-link span { font-size: 20px; transition: transform var(--duration-fast); }
.text-link:hover span { transform: translate(2px, -2px); }
.text-link:hover { color: var(--primary); }
.button-primary, .button-secondary, .btn, button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 500; transition: background var(--duration-fast), transform var(--duration-fast); white-space: nowrap; }
.button-primary { min-height: 52px; padding: 12px 24px; }
.button-primary > span { font-size: 23px; line-height: 1; }
.button-primary:hover, .btn:hover, button[type=submit]:hover { background: #aa3919; }
.button-secondary, .btn.ghost { background: transparent; border-color: #bcc4b4; color: var(--foreground); }
.button-secondary:hover, .btn.ghost:hover { background: var(--accent); }

/* Editorial opening, with a real fixture over original stadium artwork. */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 570px; border-bottom: 1px solid var(--border); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 40px; border-right: 1px solid var(--border); }
.hero-kicker { gap: 12px; font-size: 10px; letter-spacing: .16em; }
.hero-kicker::before { content: ''; width: 7px; height: 7px; background: var(--primary); }
.hero h1 { margin: 36px 0 0; font-size: clamp(56px, 5.7vw, 76px); line-height: .98; letter-spacing: -.065em; text-wrap: initial; }
.hero-title-intro { display: block; margin-bottom: 12px; font-size: .48em; font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.hero h1 em { display: block; color: #4c6643; font-style: normal; font-weight: 700; }
.hero-description { max-width: 39ch; margin: 26px 0 32px; color: var(--muted-foreground); font-size: 15px; line-height: 1.7; }
.hero-description strong { display: block; margin-bottom: 8px; color: var(--foreground); font-weight: 500; }
.hero-visual { position: relative; margin: 16px; min-height: 530px; overflow: hidden; border-radius: 28px; background: #526244; }
.stadium-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-visual::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0b211e66); pointer-events: none; }
.spotlight-card { position: absolute; z-index: 2; bottom: 26px; left: 26px; right: 26px; padding: 22px 24px; border-radius: 18px; background: #fbfaf2f5; box-shadow: 0 12px 35px #12231422; }
.spotlight-top, .spotlight-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted-foreground); }
.spotlight-top .eyebrow { color: #456043; font-size: 9px; }
.spotlight-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin: 18px 0 0; font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.spotlight-middle { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; text-align: center; }
.spotlight-league { color: var(--muted-foreground); font-size: 10px; font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.spotlight-team { display: flex; flex-direction: column; align-items: center; align-self: start; gap: 10px; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.spotlight-crest { display: block; width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.team-monogram { display: grid; place-items: center; box-sizing: border-box; border: 1px solid rgba(31, 42, 33, .18); border-radius: 30%; background: #e3eadb; color: #24352a; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: -.04em; }
.spotlight-match i { font: 500 13px/1.4 var(--font-sans); color: #69745e; letter-spacing: 0; }
.spotlight-bottom { border-top: 1px solid var(--border); padding-top: 14px; }
.spotlight-bottom b { font-size: 17px; margin-left: 7px; font-weight: 400; }
.spotlight-empty { display: block; font: 700 28px/1.2 var(--font-sans); letter-spacing: -.03em; margin: 16px 0; }
.spotlight-card[hidden], .spotlight-pagination[hidden] { display: none; }
.spotlight-pagination { position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; padding: 0 8px; border-radius: 999px; background: #17281e80; }
.spotlight-bullet { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.spotlight-bullet::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ffffff80; transition: background var(--duration-fast), transform var(--duration-fast); }
.spotlight-bullet:hover::before { background: #fff; }
.spotlight-bullet[aria-pressed="true"]::before { background: #fff; transform: scale(1.35); }
@media (min-width: 581px) {
  .hero-visual.has-pagination .spotlight-card { bottom: 64px; }
}
@media (max-width: 580px) {
  .spotlight-pagination { display: none; }
}

/* Calendar and data tables retain a shared column grid and centred vs. */
.calendar-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.calendar-heading h2 { font-size: clamp(28px, 3.2vw, 44px); }
.calendar-heading p { font-size: 13px; margin-top: 12px; }
.calendar-nav { position: relative; display: flex; align-items: stretch; flex: none; min-height: 42px; border: 1px solid #d5d9ca; border-radius: 999px; background: #fffef866; }
.calendar-nav > a:first-child { border-radius: 999px 0 0 999px; }
.calendar-nav > a:last-child { border-radius: 0 999px 999px 0; }
.calendar-date-picker > summary { height: 100%; cursor: pointer; list-style: none; }
.calendar-date-picker > summary::-webkit-details-marker { display: none; }
.calendar-date-picker > summary:hover, .calendar-date-picker[open] > summary { background: var(--accent); }
.calendar-popover { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: 296px; max-width: calc(100vw - 24px); padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px #17281e26; }
.calendar-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.calendar-popover button { border: 0; border-radius: 5px; background: transparent; color: var(--foreground); }
.calendar-picker-heading button { width: 32px; height: 32px; font-size: 22px; }
.calendar-picker-weekdays, .calendar-picker-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.calendar-picker-weekdays { margin-bottom: 6px; font-size: 10px; color: var(--muted-foreground); }
.calendar-picker-days button { height: 32px; padding: 0; font-size: 12px; }
.calendar-popover button:hover { background: var(--accent); }
.calendar-picker-days [aria-current="date"] { box-shadow: inset 0 0 0 1px #4d6743; }
.calendar-picker-days [aria-pressed="true"] { background: #4d6743; color: #fff; }
.calendar-picker-days [aria-pressed="true"]:hover { background: #3b5433; }
.calendar-popover .calendar-picker-today { width: 100%; margin-top: 12px; padding: 6px; border-top: 1px solid var(--border); border-radius: 0; color: var(--accent-foreground); font-size: 12px; }
.calendar-date-fallback { display: grid; gap: 8px; font-size: 12px; }
.calendar-picker-content[hidden], .calendar-date-fallback[hidden] { display: none; }
@media (max-width: 580px) { .calendar-popover { left: 0; right: auto; } }
.calendar-nav a, .calendar-nav .arrow { width: 38px; flex: none; display: grid; place-items: center; font-size: 21px; color: #596450; }
.calendar-nav a:hover { background: #e9eddf; }
.calendar-nav .arrow { opacity: .3; }
.calendar-nav .middle { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 130px; padding: 2px 4px; }
.calendar-nav .day { font-size: 12px; font-weight: 500; }
.calendar-nav .det { font-size: 10px; color: var(--muted-foreground); }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.calendar-footer > span { font-size: 11px; color: var(--muted-foreground); }
.calendar-section .calendar-card { overflow-anchor: none; }
.calendar-section:has(.calendar-more:not([hidden])) .calendar-card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.calendar-more { display: block; width: 100%; min-height: 40px; padding: 10px 18px; border: 0; border-radius: 0; background: #4d6743; color: #fff; font: 600 12px/1.5 var(--font-sans); text-align: left; cursor: pointer; overflow-anchor: none; }
.calendar-more:hover { background: #3b5433; }
.calendar-more:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
#calendar tr[hidden], #calendar tbody[hidden], .calendar-more[hidden] { display: none; }
.calendar-load-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calendar-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.calendar-strip a { padding: 9px 15px; border: 1px solid var(--border); border-radius: 30px; font-size: 12px; background: #fffef870; }
.calendar-strip a b { margin-left: 6px; font-size: 10px; opacity: .6; }
.calendar-strip a:hover, .calendar-strip .on { background: var(--ink); border-color: var(--ink); color: #fffef9; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.calendar-card { background: #fcfbf5; border-radius: 18px; }
.card-heading { padding: 21px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.card-heading h3 { font-size: 15px; }
.card-heading .meta { font-size: 11px; color: var(--muted-foreground); }
.card-body { padding: 24px; }
.card-body.tight { padding: 0; }
.tw { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { padding: 6px 18px; background: #f2f1e8; border-bottom: 1px solid var(--border); color: #69705f; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: left; white-space: nowrap; }
td { height: 28px; padding: 2px 18px; border-bottom: 1px solid #e7e8de; vertical-align: middle; }
td .tag { padding-block: 1px; }
td b { font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--duration-fast); }
tbody tr:hover { background: #eeefdf80; }
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.n { font-size: 12px; }
td a:hover { color: var(--primary); }
.calendar-table { table-layout: fixed; min-width: 630px; }
.calendar-table th:first-child { width: 11%; }
.calendar-table td:first-child { padding-left: 10px; }
.calendar-section .calendar-table th:first-child, .calendar-section .calendar-table td:first-child { padding-inline: 10px; text-align: center; }
.calendar-table th:nth-child(2) { width: 43%; }
.calendar-table th:nth-child(3) { width: 33%; }
.calendar-table th:last-child { width: 13%; }
.calendar-table-dated { min-width: 760px; }
.calendar-table-dated th:first-child { width: 22%; }
.calendar-table-dated th:nth-child(2) { width: 35%; }
.calendar-table-dated th:nth-child(3) { width: 30%; }
.h2h-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 24px; }
.h2h-layout > * { min-width: 0; }
.h2h-summary { padding: 24px; background: #f1f3e8; }
.h2h-summary-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.h2h-summary-heading h2 { font-size: 22px; letter-spacing: -.03em; }
.h2h-summary-heading > span { padding: 4px 9px; border: 1px solid #d6ddcb; border-radius: 20px; font-size: 10px; color: #59694e; white-space: nowrap; }
.h2h-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 18px; }
.h2h-outcomes > div { display: flex; flex-direction: column; min-width: 0; }
.h2h-outcomes > div:nth-child(2) { text-align: center; }
.h2h-outcomes > div:last-child { text-align: right; }
.h2h-outcomes dt { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.h2h-outcomes dt small { display: block; margin-top: 4px; color: var(--muted-foreground); font-size: 10px; }
.h2h-outcomes dd { order: -1; margin: 0 0 8px; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.h2h-results-bar { display: flex; height: 7px; overflow: hidden; border-radius: 999px; background: #e1e6d7; }
.h2h-results-bar .home-wins { background: #5d855d; }
.h2h-results-bar .draws { background: #d4b466; }
.h2h-results-bar .away-wins { background: #bb7d69; }
.h2h-goal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #d6ddcb; }
.h2h-goal-stats > div { min-width: 0; }
.h2h-goal-stats dt { font-size: 10px; line-height: 1.5; color: var(--muted-foreground); }
.h2h-goal-stats dd { margin: 6px 0 0; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.h2h-table-card { width: min(100%, 380px); margin-left: auto; }
.recent-match-tables { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; gap: 24px; }
.recent-match-tables .h2h-table-card { margin-left: 0; }
.recent-match-tables .card-heading { padding: 12px 16px; }
.season-home-tables .h2h-table-card { width: min(100%, 440px); }
.home-standings-table { table-layout: fixed; min-width: 420px; font-size: 11px; }
.home-standings-table th, .home-standings-table td { padding-inline: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.home-standings-table .home-position, .home-standings-table .away-position { width: 28px; }
.home-standings-table .home-result { width: 36px; }
.home-standings-table .first-goal { width: 70px; }
.home-standings-table td:nth-child(2), .home-standings-table td:nth-child(4) { overflow-wrap: anywhere; }
.home-standings-table .season-position, .home-standings-table .season-first-goal { color: var(--muted-foreground); }
.home-standings-table .season-home-score { padding-block: 0; background: var(--score-background); }
.home-standings-table .season-ranked-row { background-color: rgba(77, 103, 67, var(--rank-shade)); }
.home-standings-table .season-ranked-row:hover { background-image: linear-gradient(#17281e0a, #17281e0a); }
.home-standings-table .season-position-marker td { height: 24px; padding: 0 8px; background: #e6ecde; color: #4d6743; font-size: 10px; font-weight: 600; }
.season-position-marker span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.season-position-marker span::before, .season-position-marker span::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.season-goals-chart { flex: 1 1 280px; min-width: min(100%, 280px); padding: 16px; background: #f1f3e8; }
.season-goals-chart .home { --bar-color: #4d6743; }
.season-goals-chart .away { --bar-color: #bb7d69; }
.season-goals-groups { display: grid; gap: 18px; }
.season-goals-pair { display: grid; gap: 4px; }
.season-goals-bar { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 8px; min-width: 0; }
.season-goals-track { height: 10px; border-radius: 2px; overflow: hidden; background: #e0e5d8; }
.season-goals-bar.is-unavailable .season-goals-track { background: repeating-linear-gradient(135deg, #e0e5d8 0 3px, transparent 3px 6px); }
.season-goals-fill { display: block; width: var(--bar-value); height: 100%; background: var(--bar-color); }
.season-goals-value { font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.season-goals-metric h4 { margin: 0 0 6px; font-size: 11px; font-weight: 500; }
.season-goals-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; font-size: 10px; }
.season-goals-legend > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.season-goals-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--bar-color); }
.season-goals-legend small { font-size: 9px; color: var(--muted-foreground); }
.season-insight-card { --venue-background: #e6edde; }
.season-insight-card.focus-away { --venue-background: #f2e5dc; }
.season-comparison { table-layout: fixed; min-width: 380px; font-size: 11px; }
.season-comparison th:first-child { width: 43%; }
.season-comparison th, .season-comparison td { padding-inline: 10px; }
.season-comparison th:not(:first-child), .season-comparison td:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.season-comparison small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted-foreground); }
.season-comparison .venue-focus { background: var(--venue-background); }
.season-comparison td:last-child { font-weight: 600; }
.season-insight-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 16px 10px; border-top: 1px solid var(--border); }
.season-view-switch { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--border); border-radius: 999px; background: #f2f3e9; }
.season-view-switch button { padding: 5px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); font-size: 10px; white-space: nowrap; }
.season-view-switch button[aria-pressed="true"] { background: #4d6743; color: #fff; }
.season-view-switch button:focus-visible { outline: 2px solid #4d6743; outline-offset: 2px; }
.season-flow { min-width: 0; }
.season-flow th:first-child { width: 58%; }
.season-flow .season-flow-count, .season-flow .season-flow-percent { white-space: nowrap; padding-inline: 6px; }
.season-flow-panel [data-flow-view][hidden] { display: none; }
.season-insight-heading h4 { margin: 0; font-size: 13px; font-weight: 600; }
.season-insight-heading > span { font-size: 10px; color: var(--muted-foreground); }
.season-data-note { padding: 10px 16px 14px; margin: 0; font-size: 10px; line-height: 1.5; color: var(--muted-foreground); }
.season-timing { font-size: 11px; }
.season-timing th, .season-timing td { padding-inline: 16px; }
.season-timing th:not(:first-child), .season-timing td:not(:first-child) { text-align: center; }
.recent-chart { flex: 1 1 260px; min-width: min(100%, 260px); padding: 16px; background: #f1f3e8; }
.recent-chart .home { --bar-color: #4d6743; }
.recent-chart .away { --bar-color: #bb7d69; }
.recent-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; font-size: 10px; }
.recent-chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.recent-chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--bar-color); flex-shrink: 0; }
.recent-chart-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.recent-chart-metric { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px 2px; min-width: 0; }
.recent-chart-metric h4 { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 10px; font-weight: 500; text-align: center; }
.recent-chart-row { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.recent-chart-row.home { align-items: flex-end; }
.recent-chart-row.away { align-items: flex-start; }
.recent-chart-track { display: flex; align-items: flex-end; width: 100%; max-width: 26px; height: 140px; border-radius: 2px 2px 0 0; overflow: hidden; background: #e0e5d8; }
.recent-chart-track > span { display: block; width: 100%; background: var(--bar-color); }
.recent-chart-value { order: -1; width: min(100%, 26px); min-height: 16px; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.h2h-controls { display: flex; border-top: 1px solid var(--border); }
.h2h-toggle { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 9px 12px; border: 0; background: #f2f3e9; color: var(--foreground); font-size: 11px; font-weight: 500; }
.h2h-toggle:not([hidden]) + .h2h-toggle:not([hidden]) { border-left: 1px solid var(--border); }
.h2h-toggle > span { font-size: 18px; line-height: 1; }
.h2h-toggle:hover { background: #dfe4d3; }
.h2h-controls[hidden], .h2h-toggle[hidden], #h2h-results > tr[hidden] { display: none; }
.h2h-load-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h2h-table { table-layout: fixed; min-width: 360px; font-size: 11px; }
.h2h-table th, .h2h-table td { padding-inline: 6px; }
.h2h-table th:first-child { width: 80px; }
.h2h-table th:nth-child(2) { width: 84px; }
.h2h-table td:last-child { position: relative; isolation: isolate; }
.h2h-date { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.h2h-season { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h2h-date, .h2h-season > span, .h2h-score { font-family: var(--font-sans); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
/* This local DM Sans font has no tabular figures, so reserve equal space per digit. */
.h2h-digit { display: inline-block; width: .65em; text-align: center; }
.h2h-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.h2h-match > span { min-width: 0; overflow-wrap: anywhere; }
.h2h-match > span:first-child { text-align: right; }
.h2h-match > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.h2h-score { width: 32px; padding: 2px 0; text-align: center; }
/* Anchor the highlight to the cell so it also fills rows with wrapped names. */
.h2h-score::before { content: ''; position: absolute; inset-block: 0; left: 50%; width: 32px; transform: translateX(-50%); z-index: -1; background: var(--score-background); }
.h2h-score.is-win, .season-home-score.is-win { --score-background: #dceadf; color: #275b39; }
.h2h-score.is-draw, .season-home-score.is-draw { --score-background: #f5e8be; color: #76500c; }
.h2h-score.is-loss, .season-home-score.is-loss { --score-background: #f3ddd8; color: #913b30; }
.calendar-table .calendar-striped { --calendar-row-background: #eeefdf80; background: var(--calendar-row-background); }
.calendar-table .live-entry-flash { animation: calendar-live-entry 1800ms ease-in-out 3; }
@keyframes calendar-live-entry {
  0%, 100% { background-color: var(--calendar-row-background, transparent); }
  45%, 55% { background-color: #dce8d3; }
}
.calendar-table tbody tr:not(.calendar-divider):hover { background: #dfe4d3; }
.calendar-table .tag { border: 0; padding: 1px 0; background: transparent; color: #4d6743; font-size: 11px; }
.calendar-divider td { height: 8px; padding: 0; background: #d9decd; border-top: 1px solid #cbd2bf; border-bottom: 1px solid #cbd2bf; font-size: 0; line-height: 0; }
th.match-column, td.match-column { text-align: center; }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.match-teams > b { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 400; }
.match-teams > b.is-featured { font-weight: 700; }
.match-teams > b:first-child { text-align: right; }
.match-teams > b:last-child { text-align: left; }
.match-teams > span { font: 500 12px/1.4 var(--font-sans); color: #69745e; }
.calendar-table .match-teams { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
.match-teams > .calendar-score { display: grid; grid-template-columns: 1fr 8px 1fr; align-items: center; text-align: center; white-space: nowrap; font-weight: 700; color: var(--foreground); }
.calendar-kickoff { position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.calendar-time { display: inline-block; width: 3.4em; text-align: center; }
.match-live-status { display: inline-flex; align-items: center; min-width: 5.5em; height: 26px; font-size: 10px; line-height: 1.3; text-align: left; color: var(--accent-foreground); }
.calendar-kickoff .match-live-status { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); max-width: 5.5em; white-space: normal; }
.spotlight-top > span:last-child { display: flex; align-items: center; gap: 6px; }
.match-teams > .calendar-score.is-live-score, .spotlight-middle > .is-live-score { background: #a9c990; color: #000; border-radius: 0; }
[data-live-score] > .is-recent-goal { color: #a51d20; }
.calendar-score { min-height: 26px; }
.match-teams > [data-live-score] { display: grid; align-items: center; min-height: 26px; }
.spotlight-middle > [data-live-score] { padding: 3px 7px; }
.calendar-digit { display: inline-block; width: .65em; text-align: center; }
.league-label { display: flex; align-items: center; gap: 9px; font-size: 11px; line-height: 1.5; }
.country-flag { display: block; width: 20px; height: 15px; flex-shrink: 0; object-fit: contain; border-radius: 2px; }

/* Analysis components. */
.grid { display: grid; align-items: start; gap: 24px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g23 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cells { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cell { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 27px 24px; background: #fdfcf6; }
a.cell:hover { background: #eff2e5; }
.cell .val { font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.cell .label { font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }
.m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mauto { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.form { display: inline-flex; gap: 4px; }
.form i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-size: 9px; font-weight: 500; font-style: normal; color: white; }
.form i.W { background: #477651; }
.form i.D { background: #868b7e; }
.form i.L { background: #ad6451; }
.tag { display: inline-flex; white-space: nowrap; padding: 4px 10px; border: 1px solid var(--border); border-radius: 30px; color: var(--muted-foreground); font-size: 11px; }
.tag.danger { background: #f6e9e2; border-color: #edd1c4; color: #a04227; }
.tag.av { background: #f8f0db; border-color: #eaddb7; color: #836019; }
.tag.highlight { background: var(--accent); border-color: #d6dfc8; color: var(--accent-foreground); }
.kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 22px; }
.kv { display: flex; flex-direction: column; gap: 6px; }
.kv .l { color: var(--muted-foreground); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.kv .v { font-size: 18px; font-variant-numeric: tabular-nums; }
.cmp { display: grid; grid-template-columns: 55px minmax(0, 1fr) 55px; align-items: center; gap: 12px; padding: 13px 0; }
.cmp + .cmp { border-top: 1px solid var(--border); }
.cmp .lbl { margin-bottom: 9px; text-align: center; font-size: 12px; color: var(--muted-foreground); }
.cmp .v { font-size: 13px; font-variant-numeric: tabular-nums; }
.cmp .v.e { text-align: right; }
.bars { display: flex; gap: 4px; align-items: center; height: 5px; }
.bars span { display: block; height: 5px; border-radius: 10px; }
.bars .a { background: var(--serie-a); margin-left: auto; }
.bars .b { background: var(--serie-b); }
.filters { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: #f1f0e7; }
.fg { display: flex; flex-direction: column; gap: 8px; flex: 1 1 160px; min-width: 0; }
.fg label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
select, input[type=text], input[type=search], input[type=number], input[type=date] { min-width: 0; width: 100%; height: 44px; padding: 10px 14px; border: 1px solid var(--input); border-radius: 10px; background: #fffef8; color: var(--foreground); font-size: 13px; }
input::placeholder { color: #7b8273; }
select:focus, input:focus { outline: 2px solid #5b805d66; outline-offset: 2px; }
.duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 26px; padding: 28px 30px; background: #edf0e3; }
.duel .eq { display: flex; flex-direction: column; align-items: center; align-self: start; min-width: 0; gap: 14px; text-align: center; }
.duel-crest { display: block; width: 128px; height: 128px; flex-shrink: 0; object-fit: contain; }
.duel-crest.team-monogram { font-size: 2rem; }
.duel .name { min-width: 0; font: 700 28px/1.2 var(--font-sans); letter-spacing: -.03em; overflow-wrap: anywhere; }
.duel-details { display: flex; flex-direction: column; align-items: center; gap: 8px; width: clamp(110px, 22vw, 240px); text-align: center; font-size: 12px; color: var(--muted-foreground); }
.duel .vs { font-size: 26px; font-weight: 700; letter-spacing: .06em; line-height: 1; color: var(--foreground); }
.duel-status { padding: 3px 10px; border-radius: 20px; background: #dce5d4; color: #4d6743; font-size: 10px; font-weight: 600; }
.duel-date { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin-top: 4px; font-weight: 600; color: var(--foreground); }
.duel-country { display: flex; align-items: center; justify-content: center; gap: 6px; }
.duel-season { font-size: 11px; }
.duel-competition { font-weight: 600; color: #4d6743; }
.duel-competition:hover { text-decoration: underline; }
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.item + .item { border-top: 1px solid var(--border); }
.item:hover { background: #f0f2e6; }
.item .t { font-size: 14px; }
.item .m { font-size: 11px; white-space: nowrap; color: var(--muted-foreground); }
.empty { padding: 40px 24px; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.notice { padding: 20px 24px; background: #f3ebd9; border: 1px solid #e1d6b8; border-radius: 15px; font-size: 13px; line-height: 1.8; }

/* Dark editorial interlude is part of the fixed identity, not a second theme. */
.editorial-section { --foreground: #f6f6e8; --muted-foreground: #b8c4b1; --border: #3b4d3b; background: var(--ink); color: var(--foreground); }
.editorial-section .eyebrow { color: #aebba0; }
.editorial-section .text-link:hover { color: #c1cea6; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.news-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--border); }
.news-card:hover h3 { color: #c1cea6; }
.news-source { display: flex; width: 100%; justify-content: space-between; gap: 15px; color: var(--muted-foreground); font-size: 10px; }
.news-source > span { font-size: 17px; line-height: 1; }
.news-card h3 { margin: 19px 0 23px; font-size: 22px; font-weight: 600; line-height: 1.35; }
.news-date { margin-top: auto; font-size: 10px; color: var(--muted-foreground); }
.squad-watch { align-self: start; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: #203324; }
.squad-watch h3 { margin-top: 14px; font: 700 28px/1.2 var(--font-sans); letter-spacing: -.03em; }
.squad-watch > p { margin: 12px 0 26px; font-size: 12px; color: var(--muted-foreground); }
.squad-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid #41523e; font-size: 13px; }
.squad-row:hover { color: #c1cea6; }
.squad-row small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted-foreground); }
.absence-count { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #344b38; color: #eef2e6; font-size: 11px; }
.squad-watch > .text-link { display: flex; justify-content: space-between; margin-top: 26px; font-size: 11px; }
.site-footer { background: #12231a; color: #e4e9d7; }
.footer-content { max-width: var(--site-width); margin: auto; padding: 36px 32px 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-top .brand-logo { width: 240px; }
.footer-top p { font: 600 24px/1.35 var(--font-sans); letter-spacing: -.025em; color: #d4ddc5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 30px; margin: 38px 0; font-size: 12px; }
.footer-nav a:hover { color: #d6b099; }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-top: 24px; border-top: 1px solid #344635; font-size: 10px; color: #a0b199; }
.footer-bottom p { max-width: 72ch; }
.footer-bottom > a { white-space: nowrap; }

/* Narrow layouts keep every control reachable and contain wide data tables. */
@media (max-width: 1160px) {
  .season-goals-chart { flex-basis: 100%; }
  .recent-chart { flex-basis: 100%; }
}
@media (max-width: 1080px) {
  .header-content { padding-inline: 28px; }
  .hero-copy { padding: 32px 24px; }
  .hero h1 { font-size: clamp(52px, 6.3vw, 68px); }
  .hero-visual { min-height: 500px; }
  .section { padding: 28px 24px; }
  .spotlight-card { left: 18px; right: 18px; bottom: 18px; padding: 20px; }
  .spotlight-match { font-size: 19px; }
  .g23 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .h2h-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; padding: 40px 32px 28px; }
  .hero h1 { font-size: clamp(56px, 10vw, 76px); }
  .hero-description { max-width: 48ch; }
  .hero-visual { margin: 0 24px 24px; min-height: 440px; }
  .stadium-image { object-position: 50% 47%; }
  .spotlight-card { left: 24px; right: 24px; bottom: 24px; }
  .spotlight-match { font-size: 24px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 38px; }
  .g2, .g23 { grid-template-columns: 1fr; }
  .m3, .m4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-top { align-items: flex-start; }
  .detail-page .section:first-child h1 { font-size: clamp(34px, 5.5vw, 48px); }
}
@media (max-width: 580px) {
  .h2h-summary { padding: 18px; }
  .h2h-summary-heading h2 { font-size: 20px; }
  .h2h-outcomes { gap: 10px; margin-top: 20px; }
  .h2h-outcomes dd { font-size: 30px; }
  .h2h-goal-stats { gap: 10px; }
  html { scroll-padding-top: 120px; }
  .top-note { justify-content: space-between; padding: 8px 18px; gap: 10px; font-size: 9px; }
  .header-content { padding: 10px 18px; min-height: auto; gap: 8px 10px; flex-wrap: wrap; }
  .header-content .brand-logo { width: 140px; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-button { height: 36px; padding: 0 13px; font-size: 10px; }
  .team-search { order: 3; flex: 1 1 100%; margin-left: 0; }
  .team-search input[type=search] { height: 38px; }
  .team-search::before { top: 11px; }
  .team-search::after { top: 23px; }
  .hero-copy { padding: 32px 24px 24px; }
  .hero h1 { margin-top: 30px; font-size: clamp(44px, 11.5vw, 64px); }
  .hero-description { margin: 24px 0 28px; font-size: 14px; }
  .button-primary { padding: 12px 20px; font-size: 12px; min-height: 48px; }
  .hero-visual { min-height: 370px; margin: 0 16px 20px; border-radius: 22px; }
  .spotlight-card { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
  .spotlight-match { font-size: clamp(14px, 4vw, 18px); gap: 10px; }
  .spotlight-middle { width: 64px; }
  .spotlight-league { font-size: 9px; }
  .spotlight-top, .spotlight-bottom { font-size: 9px; }
  .section { padding: 24px 16px; }
  .section-heading h2, .calendar-heading h2 { font-size: 30px; }
  .section-heading p { font-size: 13px; }
  .calendar-nav { min-height: 42px; }
  .calendar-nav .middle { min-width: 125px; }
  .calendar-footer { gap: 12px; }
  .calendar-footer > span { font-size: 10px; }
  .calendar-footer .text-link { font-size: 11px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card h3 { font-size: 23px; max-width: 30ch; }
  .footer-content { padding: 28px 16px 20px; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 26px; }
  .footer-nav { gap: 17px 24px; }
  .m2, .m3, .m4, .mauto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { padding: 22px 17px; }
  .cell .val { font-size: 26px; }
  .card-heading, .card-body { padding: 18px; }
  .card-body.tight { padding: 0; }
  .duel { gap: 8px; padding: 20px 12px; }
  .duel .eq { gap: 6px; }
  .duel-details { gap: 6px; font-size: 11px; }
  .duel .vs { font-size: 22px; }
  .duel-crest { width: 56px; height: 56px; }
  .duel .name { font-size: clamp(13px, 3.6vw, 18px); }
  .item { flex-wrap: wrap; padding: 18px; gap: 10px; }
  .filters { padding: 17px; }
}
@media (max-width: 360px) {
  .header-content .brand-logo { width: 108px; }
  .header-button { padding-inline: 10px; }
  .spotlight-match { gap: 8px; }
  .spotlight-middle { width: 52px; }
  .spotlight-bottom { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
