@font-face {
    font-family: "Francois One";
    src: url("/assets/fonts/francois-one-regular.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --color-blue: #1d4289;
    --color-blue-dark: #15366f;
    --color-blue-deep: #0d2857;
    --color-blue-soft: #edf3fa;
    --color-gold: #f4c441;
    --color-ink: #10243b;
    --color-muted: #65748a;
    --color-surface: #ffffff;
    --color-canvas: #f3f6fa;
    --color-border: rgba(18, 54, 96, 0.15);
    --shadow-panel: 0 0.75rem 2rem rgba(16, 36, 59, 0.065);
    --shadow-card: 0 0.45rem 1.25rem rgba(16, 36, 59, 0.07);
    --radius-control: 0.55rem;
    --radius-card: 0.95rem;
    --radius-panel: 1.15rem;
    --container: 84rem;
    --font-sans: "Segoe UI", Arial, Helvetica, sans-serif;
    --font-display: "Francois One", Impact, "Arial Narrow", sans-serif;
}

html[data-theme="women"] {
    --color-blue: #284a8d;
    --color-blue-dark: #3e4786;
    --color-blue-deep: #202f67;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none;
}

html {
    min-width: 20rem;
    color: var(--color-ink);
    background: var(--color-canvas);
    font-family: var(--font-sans);
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, var(--color-canvas) 0, #fff 38rem);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-blue);
    text-decoration-thickness: 0.075em;
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--color-blue-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 0.2rem solid var(--color-gold);
    outline-offset: 0.18rem;
}

button,
input {
    font: inherit;
}

h1,
h2,
h3,
p,
dl {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

.container,
.home-shell,
.site-header__inner,
.site-footer__inner {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-control);
    background: var(--color-gold);
    color: var(--color-blue-deep);
    font-weight: 800;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    height: 4.6rem;
    background: linear-gradient(105deg, var(--color-blue), #244f99);
    box-shadow: 0 0.2rem 1.35rem rgba(10, 35, 74, 0.22);
    color: #fff;
}

.site-header__inner {
    position: relative;
    display: grid;
    height: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.site-brand {
    grid-column: 2;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.45rem, 5vw, 3.25rem);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1;
    text-decoration: none;
}

.site-brand:hover {
    color: #fff;
}

.site-context-label {
    grid-column: 3;
    justify-self: end;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 750;
}

.menu-button {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    width: max-content;
    min-height: 2.6rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-button__label {
    font-size: 0.75rem;
    font-weight: 750;
}

.menu-button__icon,
.menu-button__icon::before,
.menu-button__icon::after {
    display: block;
    width: 1.35rem;
    height: 0.13rem;
    border-radius: 0.08rem;
    background: currentColor;
}

.menu-button__icon {
    position: relative;
}

.menu-button__icon::before,
.menu-button__icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.menu-button__icon::before {
    top: -0.4rem;
}

.menu-button__icon::after {
    top: 0.4rem;
}

.primary-navigation {
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    display: flex;
    width: min(22rem, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: var(--color-blue);
    box-shadow: 0 1rem 2.4rem rgba(6, 26, 58, 0.25);
}

.js .primary-navigation {
    display: none;
}

.js .primary-navigation.is-open {
    display: flex;
}

.primary-navigation ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a,
.link-button {
    display: flex;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.primary-navigation a:hover,
.link-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.primary-navigation form {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.home-shell {
    padding-block: 1.1rem 4rem;
}

.notice {
    margin: 1rem auto 0;
}

.day-navigation {
    display: grid;
    min-height: 3.7rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.day-navigation__step {
    display: inline-flex;
    min-height: 2.55rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.7rem;
    border-radius: var(--radius-control);
    color: var(--color-blue-dark);
    font-size: 0.75rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.day-navigation__step:first-child {
    justify-self: start;
}

.day-navigation__step:last-child {
    justify-self: end;
}

.day-navigation__step > span {
    font-size: 1.15rem;
}

.day-navigation__step:hover {
    background: var(--color-blue-soft);
}

.day-navigation__center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.day-navigation__center time {
    text-transform: capitalize;
}

.day-navigation__center a {
    padding-left: 0.55rem;
    border-left: 1px solid var(--color-border);
}

.history-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    background: var(--color-blue-deep);
    box-shadow: 0 1.1rem 2.8rem rgba(29, 66, 137, 0.2);
    color: #fff;
    isolation: isolate;
}

.history-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.12), transparent 15rem),
        linear-gradient(90deg, rgba(7, 29, 66, 0.94), rgba(11, 43, 88, 0.68) 50%, rgba(6, 28, 62, 0.9));
    content: "";
}

.history-hero__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    filter: saturate(0.82) contrast(1.03);
}

.history-hero__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    font-weight: 800;
}

.history-hero__topline p {
    margin: 0;
}

.history-hero__content {
    display: grid;
    min-height: clamp(10rem, 15vw, 13rem);
    place-items: center;
    padding: 1.5rem;
    text-align: center;
}

.history-hero h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.6rem);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 0.9;
    text-transform: capitalize;
    text-shadow: 0 0.14rem 0.65rem rgba(0, 0, 0, 0.18);
}

.history-hero h1 span {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.history-facts {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 24, 55, 0.25);
}

.history-facts div {
    padding: 0.65rem 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.history-facts div:first-child {
    border-left: 0;
}

.history-facts dt {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.history-facts dd {
    margin: 0.15rem 0 0;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 850;
}

.history-facts__form dd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.history-form__result {
    display: grid;
    width: 1.2rem;
    height: 1.2rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    text-decoration: none;
}

.history-form__result--w {
    background: #187a43;
}

.history-form__result--d {
    background: #9b5c00;
}

.history-form__result--l {
    background: #b73840;
}

.history-form__result:hover {
    color: #fff;
    filter: brightness(1.12);
}

.home-section {
    margin-top: 1.5rem;
    padding: clamp(1.1rem, 2.7vw, 1.5rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-panel);
}

.home-section--current {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.1rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.025em;
}

.section-heading > span,
.section-heading > div > p:last-child {
    max-width: 32rem;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.section-heading > a {
    font-size: 0.8rem;
    font-weight: 800;
}

.eyebrow,
.subheading {
    margin-bottom: 0.28rem;
    color: var(--color-blue);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.subheading {
    margin-bottom: 0.7rem;
    color: var(--color-muted);
}

.day-content {
    overflow: hidden;
    padding: 0;
}

.day-tabs {
    overflow-x: auto;
    border-bottom: 1px solid var(--color-border);
    background: #edf2f8;
    scrollbar-width: thin;
}

.day-tabs ul {
    display: flex;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0.45rem;
    gap: 0.25rem;
    list-style: none;
}

.day-tabs li {
    flex: 1 0 auto;
}

.day-tabs a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.day-tabs a:hover {
    background: var(--color-blue-soft);
    color: var(--color-blue);
}

.day-tabs a[aria-selected="true"] {
    border-color: var(--color-border);
    background: #fff;
    box-shadow: 0 0.25rem 0.7rem rgba(16, 36, 59, 0.09);
    color: var(--color-blue);
}

.day-tabs small {
    margin-left: 0.45rem;
    color: inherit;
    font-size: 0.7rem;
    font-weight: 700;
}

.tab-panel {
    padding: 1.35rem;
}

.tab-panel + .tab-panel {
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.tab-panel__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.tab-panel__heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: -0.025em;
}

.tab-panel__heading > span {
    max-width: 32rem;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.js .tab-panel[hidden] {
    display: none;
}

.js .tab-panel + .tab-panel {
    margin-top: 0;
    border-top: 0;
}

.current-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.current-grid > section {
    min-width: 0;
}

.match-feature {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-blue-soft);
    box-shadow: var(--shadow-card);
}

.match-feature > a {
    display: grid;
    min-height: 19rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 0.85fr);
    color: inherit;
    text-decoration: none;
}

.match-feature__media {
    position: relative;
    overflow: hidden;
    background: var(--color-blue-deep);
}

.match-feature__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 50%, rgba(13, 40, 87, 0.28));
    content: "";
}

.match-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.match-feature:hover .match-feature__media img,
.match-feature:focus-within .match-feature__media img {
    transform: scale(1.02);
}

.match-feature__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.5rem;
}

.match-feature__meta,
.match-feature__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.match-feature__contest {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding-block: 1.5rem;
    gap: 1rem;
}

.match-feature__team {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    text-align: center;
}

.match-feature__team img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.match-feature__score {
    display: grid;
    min-width: 5.5rem;
    justify-items: center;
    color: var(--color-blue-deep);
}

.match-feature__score small,
.match-card__score small {
    color: var(--color-muted);
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-feature__score strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
}

.match-feature__footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.match-feature__footer strong {
    color: var(--color-blue);
}

.match-card-grid,
.photo-grid,
.people-grid,
.news-grid,
.database-index,
.editorial-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.match-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.day-content .match-card,
.day-content .photo-card {
    box-shadow: none;
}

.day-content .match-card:hover,
.day-content .match-card:focus-within {
    box-shadow: 0 0.45rem 1.1rem rgba(16, 36, 59, 0.08);
}

.js .match-card-grid--collapsed [data-match-extra] {
    display: none;
}

.match-card {
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover,
.match-card:focus-within {
    box-shadow: 0 0.75rem 1.8rem rgba(16, 36, 59, 0.11);
    transform: translateY(-0.15rem);
}

.match-card > a {
    display: grid;
    height: 100%;
    grid-template-rows: auto 1fr;
    color: inherit;
    text-decoration: none;
}

.match-card__media {
    position: relative;
    height: clamp(8.5rem, 11vw, 10rem);
    overflow: hidden;
    background: #e5ebf2;
}

.current-grid .match-card__media {
    height: clamp(9.5rem, 14vw, 12rem);
}

.match-card__media::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(5, 22, 48, 0.78));
    content: "";
}

.match-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.match-card:hover .match-card__media img,
.match-card:focus-within .match-card__media img {
    transform: scale(1.025);
}

.match-card__image-meta {
    position: absolute;
    z-index: 1;
    right: 0.85rem;
    bottom: 0.7rem;
    left: 0.85rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 750;
    text-shadow: 0 0.1rem 0.35rem rgba(0, 0, 0, 0.5);
}

.match-card__image-meta span {
    text-align: right;
}

.match-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0.95rem 0.95rem 0;
}

.match-card__contest {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 5.6rem;
    gap: 0.65rem;
}

.match-card__team {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 0.4rem;
    color: #526176;
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: center;
}

.match-card__team img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.match-card__team strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.match-card__score {
    display: grid;
    min-width: 4.4rem;
    justify-items: center;
    color: var(--color-ink);
}

.match-card__score strong {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.match-card__score--w {
    color: #187a43;
}

.match-card__score--d {
    color: #a96300;
}

.match-card__score--l {
    color: #b73840;
}

.match-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.8rem;
    margin: 0.85rem -0.95rem 0;
    padding: 0.65rem 0.95rem;
    border-top: 1px solid rgba(18, 54, 96, 0.1);
    gap: 0.75rem;
    background: #f8fafc;
    color: var(--color-muted);
    font-size: 0.68rem;
}

.match-card__footer strong {
    flex: 0 0 auto;
    color: var(--color-blue);
}

.match-card--without-media > a {
    grid-template-rows: 1fr;
}

.match-card--compact > a {
    min-height: 9.75rem;
    grid-template-columns: 10rem minmax(0, 1fr);
    grid-template-rows: 1fr;
}

.match-card--compact .match-card__media {
    height: auto;
    min-height: 100%;
}

.match-card--compact .match-card__image-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
}

.match-card--compact .match-card__image-meta span {
    text-align: left;
}

.match-card--compact .match-card__body {
    padding-top: 0.7rem;
}

.match-card--compact .match-card__contest {
    min-height: 4.6rem;
}

.match-card--compact .match-card__team img {
    width: 2.4rem;
    height: 2.4rem;
}

.match-card--compact .match-card__score strong {
    font-size: 1.75rem;
}

.match-card--compact .match-card__footer {
    min-height: 2.35rem;
    margin-top: 0.45rem;
    padding-block: 0.45rem;
}

.match-card--compact.match-card--without-media > a {
    grid-template-columns: 1fr;
}

.match-grid-toggle {
    display: block;
    min-height: 2.75rem;
    margin: 1.2rem auto 0;
    padding: 0.65rem 1rem;
    border: 1px solid var(--color-blue);
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--color-blue);
    font-weight: 800;
    cursor: pointer;
}

.match-grid-toggle:hover {
    background: var(--color-blue-soft);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.photo-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.photo-card a {
    display: grid;
    color: var(--color-ink);
    text-decoration: none;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.photo-card span {
    padding: 0.8rem;
    font-size: 0.8rem;
    font-weight: 750;
}

.photo-card a:hover span {
    color: var(--color-blue);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.person-entry {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: #fff;
}

.person-entry > span,
.article-teaser__meta {
    color: var(--color-blue);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.person-entry h4 {
    margin: 0.35rem 0;
    font-size: 1rem;
}

.person-entry p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.news-card {
    display: flex;
    min-height: 14rem;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: #fff;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--color-muted);
    font-size: 0.65rem;
}

.news-card__publisher {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
}

.news-card__publisher strong {
    overflow: hidden;
    color: var(--color-blue);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card__avatar {
    position: relative;
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: var(--color-blue-soft);
    color: var(--color-blue);
    font-size: 0.62rem;
    font-weight: 850;
}

.news-card__avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card h3 {
    margin: 0.85rem 0 0.5rem;
    font-size: 1rem;
    line-height: 1.35;
}

.news-card h3 a {
    color: var(--color-ink);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--color-blue);
}

.news-card p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.news-card__link {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.74rem;
    font-weight: 800;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.article-teaser {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.article-teaser__image {
    display: block;
    overflow: hidden;
}

.article-teaser__image img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.article-teaser:hover .article-teaser__image img,
.article-teaser:focus-within .article-teaser__image img {
    transform: scale(1.025);
}

.article-teaser__body {
    padding: 0.95rem 1rem 1rem;
}

.article-teaser h3 {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.article-teaser h3 a {
    color: var(--color-ink);
    text-decoration: none;
}

.article-teaser h3 a:hover {
    color: var(--color-blue);
}

.article-teaser p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.82rem;
    line-height: 1.58;
}

.article-teaser__link {
    display: inline-block;
    margin-top: 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.database-section {
    border-color: transparent;
    background: linear-gradient(145deg, var(--color-blue-deep), var(--color-blue));
    color: #fff;
}

.database-section .section-heading h2,
.database-section .eyebrow {
    color: #fff;
}

.database-section .eyebrow {
    opacity: 0.68;
}

.database-section .section-heading > span {
    color: rgba(255, 255, 255, 0.68);
}

.database-index {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.database-index li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.database-index a {
    display: grid;
    min-height: 8.5rem;
    align-content: center;
    padding: 1rem;
    gap: 0.45rem;
    color: #fff;
    text-decoration: none;
}

.database-index a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.database-index strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
}

.database-index span {
    display: grid;
    gap: 0.2rem;
}

.database-index b {
    color: #fff;
    font-size: 0.86rem;
}

.database-index small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.7rem;
}

.database-index i {
    display: none;
}

.empty-state,
.notice {
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    background: #f8fafc;
    color: var(--color-muted);
}

.button {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-control);
    font-weight: 800;
    text-decoration: none;
}

.button--gold {
    background: var(--color-gold);
    color: var(--color-blue-deep);
}

.button--gold:hover {
    background: #ffcf55;
    color: var(--color-blue-deep);
}

.system-page {
    display: grid;
    min-height: calc(100vh - 13rem);
    place-items: center;
    padding-block: 3rem;
}

.system-card {
    max-width: 40rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-panel);
    background: #fff;
    box-shadow: var(--shadow-panel);
    text-align: center;
}

.system-card h1 {
    color: var(--color-blue-deep);
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.auth-form {
    display: grid;
    margin-top: 1.25rem;
    gap: 1rem;
    text-align: left;
}

.auth-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 750;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
}

.auth-form button {
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: var(--radius-control);
    background: var(--color-blue);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.form-error {
    padding: 0.75rem;
    border-radius: var(--radius-control);
    background: #fde8e7;
    color: #8b1a16;
}

.site-footer {
    padding-block: 2rem;
    background: var(--color-blue-deep);
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
}

.site-footer strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.site-footer p {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
}

@media (max-width: 68rem) {
    .history-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .history-facts div:nth-child(5) {
        border-left: 0;
    }

    .history-facts div:nth-child(n + 5) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .match-card-grid,
    .editorial-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .database-index {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .database-index li:nth-child(4) {
        border-left: 0;
    }

    .database-index li:nth-child(n + 4) {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .match-feature > a {
        grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
    }
}

@media (max-width: 44rem) {
    .container,
    .home-shell,
    .site-header__inner,
    .site-footer__inner {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .site-header {
        height: 3.5rem;
    }

    .site-brand {
        font-size: 2.1rem;
    }

    .site-context-label,
    .menu-button__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .menu-button {
        padding: 0.55rem;
    }

    .primary-navigation {
        width: min(20rem, calc(100vw - 1.25rem));
    }

    .home-shell {
        padding-top: 0.7rem;
    }

    .day-navigation {
        min-height: 3.2rem;
        gap: 0.25rem;
        margin-bottom: 0.6rem;
        padding: 0.3rem;
    }

    .day-navigation__step {
        min-height: 2.3rem;
        padding-inline: 0.55rem;
    }

    .day-navigation__step strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .day-navigation__center {
        padding: 0.4rem 0.55rem;
    }

    .history-hero {
        border-radius: var(--radius-card);
    }

    .history-hero__content {
        min-height: 9.5rem;
    }

    .history-hero h1 {
        font-size: clamp(2.7rem, 15vw, 4.25rem);
    }

    .history-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-facts div:nth-child(3),
    .history-facts div:nth-child(5),
    .history-facts div:nth-child(7) {
        border-left: 0;
    }

    .history-facts div:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .history-facts__form {
        grid-column: 1 / -1;
    }

    .home-section {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--radius-card);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .day-content {
        padding: 0;
    }

    .tab-panel {
        padding: 1rem;
    }

    .tab-panel__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .day-tabs ul {
        min-width: 26rem;
    }

    .match-card-grid,
    .editorial-grid,
    .news-grid,
    .current-grid {
        grid-template-columns: 1fr;
    }

    .match-card:not(.match-card--compact) .match-card__media {
        height: 12rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .people-grid {
        grid-template-columns: 1fr;
    }

    .match-feature > a {
        grid-template-columns: 1fr;
    }

    .match-feature__media {
        min-height: 13rem;
    }

    .match-feature__content {
        padding: 1rem;
    }

    .match-feature__team img {
        width: 3rem;
        height: 3rem;
    }

    .database-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .database-index li:nth-child(odd) {
        border-left: 0;
    }

    .database-index li:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, 0.16);
    }

    .database-index li:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .database-index a {
        min-height: 7.5rem;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 27rem) {
    .history-hero__topline span {
        display: none;
    }

    .history-hero__topline {
        align-items: flex-start;
    }

    .match-feature__contest {
        gap: 0.45rem;
    }

    .match-feature__team {
        font-size: 0.78rem;
    }

    .match-feature__score {
        min-width: 4rem;
    }

    .match-card__contest {
        gap: 0.4rem;
    }

    .match-card__team {
        font-size: 0.68rem;
    }

    .match-card__score {
        min-width: 3.8rem;
    }

    .match-card__score strong {
        font-size: 1.7rem;
    }

    .match-card--compact > a {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .match-card--compact .match-card__media {
        height: 9rem;
        min-height: 0;
    }

    .photo-grid,
    .database-index {
        grid-template-columns: 1fr;
    }

    .database-index li,
    .database-index li:nth-child(even),
    .database-index li:nth-child(odd) {
        border-left: 0;
    }

    .database-index li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .match-feature__media img,
    .match-card,
    .match-card__media img,
    .article-teaser__image img {
        transition: none;
    }
}
