/* Archive match details; only .wm-match / .wm-match-media opt in. */
.wm-theme .wm-match { margin-bottom: 1.25rem; }
.wm-theme .wm-match__header {
    padding: 1rem;
    border: 1px solid var(--wm-line);
    border-top: 4px solid var(--wm-red);
    border-radius: var(--wm-radius-sm);
    background: var(--wm-surface-2);
    text-align: center;
}
.wm-theme .wm-match__competition { margin: 0 0 .35rem; font-weight: 700; }
.wm-theme .wm-match__date,
.wm-theme .wm-match__attendance { color: var(--wm-text-muted); font-size: var(--wm-step--1); }
.wm-theme .wm-match__scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin: .75rem 0;
}
.wm-theme .wm-match__team { display: grid; justify-items: center; align-content: start; gap: .65rem; min-width: 0; }
.wm-theme .wm-match__badge { display: grid; place-items: center; width: 60px; height: 64px; }
.wm-theme .wm-match__badge picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.wm-theme .wm-match__badge img { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.wm-theme .wm-match__team a { font-family: var(--wm-font-display); font-weight: 800; font-size: var(--wm-step-1); line-height: 1.2; overflow-wrap: anywhere; }
.wm-theme .wm-match__score { font-family: var(--wm-font-display); font-weight: 900; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.1; white-space: nowrap; }
.wm-theme .wm-match__score--pending { font-size: var(--wm-step-0); white-space: normal; max-width: 10rem; }
.wm-theme .wm-match__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.wm-theme .wm-match__body:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.wm-theme .wm-match__body:not(:has(> section, > div)) { display: none; }
.wm-theme .wm-match__details { padding: 1rem 1.25rem; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); background: var(--wm-surface-2); }
.wm-theme .wm-match__details > section + section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--wm-line); }
.wm-theme .wm-match__details h2,
.wm-theme .wm-match__info h2,
.wm-theme .wm-match-media h2 { margin: 0 0 .75rem; padding: 0; font-size: var(--wm-step-1); text-transform: none; }
.wm-theme .wm-match h2::after,
.wm-theme .wm-match-media h2::after { display: none; }
.wm-theme .wm-match__goals { line-height: 1.6; overflow-wrap: anywhere; font-size: var(--wm-step--1); }
.wm-theme .wm-match__facts { margin: 0; font-size: var(--wm-step--1); line-height: 1.6; }
.wm-theme .wm-match__facts :is(dt, dd) { display: block; list-style: none; }
.wm-theme .wm-match__facts dt { margin-top: .75rem; font-weight: 700; }
.wm-theme .wm-match__facts dt:first-child { margin-top: 0; }
.wm-theme .wm-match__facts dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
.wm-theme .wm-match__info { padding: 1rem 1.25rem; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); overflow-wrap: anywhere; }
.wm-theme .wm-match__info-content { max-width: var(--wm-measure); }
.wm-theme .wm-match__info-content p { margin-bottom: .75rem; font-size: var(--wm-step--1); line-height: 1.65; }
.wm-theme .wm-match__info-content > :last-child { margin-bottom: 0; }
.wm-theme .wm-match__links { margin-top: 1rem; }
.wm-theme .entry-content a.wm-match__comparison {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: .8rem 1.25rem;
    border: 2px solid var(--wm-red);
    border-radius: var(--wm-radius-sm);
    background: var(--wm-red);
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}
.wm-theme .entry-content a.wm-match__comparison:hover { background: var(--wm-red-deep); border-color: var(--wm-red-deep); color: #fff; }
.wm-theme .wm-match :is(a, button):focus-visible,
.wm-theme .wm-match-media a:focus-visible { outline: 3px solid var(--wm-red-ink); outline-offset: 4px; }
.wm-theme .entry-content ul.wm-match-media__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: none; margin: 0; padding: 0; list-style: none; }
.wm-theme .entry-content .wm-match-media__list > li { margin: 0; padding: .75rem 1rem; border: 1px solid var(--wm-line); border-radius: var(--wm-radius-sm); }
.wm-theme .entry-content .wm-match-media__list > li::before { content: none; }
.wm-theme .wm-match-media__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: .3rem; color: var(--wm-text-muted); font-size: var(--wm-step--1); }
.wm-theme .wm-match-media__list a { display: inline-block; font-size: var(--wm-step--1); line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 47.99em) {
    .wm-theme .wm-match__body,
    .wm-theme .entry-content ul.wm-match-media__list { grid-template-columns: minmax(0, 1fr); }
    .wm-theme .wm-match__badge { width: 48px; height: 52px; }
    .wm-theme .wm-match__team a { font-size: var(--wm-step-0); }
    .wm-theme .wm-match__scoreboard { gap: .5rem; }
}
