/* Small accessibility and small-screen refinements that apply site-wide. */
:focus-visible { outline: 3px solid #b00812; outline-offset: 3px; }
button:focus-visible, .site-header a:focus-visible, .site-header summary:focus-visible { outline-color: #fff; outline-offset: 4px; }
html { scroll-padding-top: 18px; }
[id] { scroll-margin-top: 18px; }

.header-search { position: relative; }
.search-suggestions {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 30px));
    max-height: min(60vh, 390px);
    padding: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #deddd9;
    border-radius: 9px;
    background: #fff;
    color: #151518;
    box-shadow: 0 16px 42px rgba(0,0,0,.24);
}
.search-suggestions[hidden] { display: none; }
.search-suggestions-heading { padding: 8px 10px 5px; color: #77777d; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.search-suggestions [role="option"] { display: block; min-width: 0; padding: 10px; border-radius: 6px; color: #252529; font-size: 12px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.search-suggestions [role="option"]:hover,
.search-suggestions [role="option"][aria-selected="true"] { background: #f5eeee; color: #a80710; }
.search-suggestions [role="option"]:focus-visible { outline-offset: -2px; }

.season-chart-scroll,
.legacy-standings,
.history-article table {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-color: #a7a4a0 #f2f0ec;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.season-chart-scroll:focus-visible,
.legacy-standings:focus-visible,
.history-article table:focus-visible { outline-offset: 2px; }
.history-article table { display: block; width: 100%; overflow-x: auto; }
.history-article th, .history-article td { overflow-wrap: anywhere; }
.data-methodology, .player-bio, .match-report, .global-search-section { min-width: 0; overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }

.not-found-page {
    max-width: 760px;
    margin: clamp(44px, 9vw, 110px) auto;
    padding: clamp(26px, 6vw, 54px);
    border: 1px solid #e7e5e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(18,18,21,.07);
    text-align: center;
}
.not-found-page .eyebrow { justify-content: center; }
.not-found-page h1 { margin: 13px 0 10px; font: 800 clamp(30px, 6vw, 48px)/1.05 Manrope, sans-serif; letter-spacing: -.05em; }
.not-found-page > p { max-width: 480px; margin: 0 auto; color: #68686e; font-size: 14px; line-height: 1.65; }
.not-found-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.not-found-actions a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid #deddd9; border-radius: 5px; color: #27272b; font-size: 12px; font-weight: 700; }
.not-found-actions a:first-child { border-color: #a80710; background: #a80710; color: #fff; }
.not-found-actions a:hover { border-color: #a80710; }

@media (max-width: 680px) {
    .search-suggestions { top: calc(100% + 6px); max-height: 55vh; }
    .season-chart-scroll, .legacy-standings { max-width: calc(100vw - 30px); }
    .not-found-page { margin: 40px auto; padding: 26px 19px; border-radius: 12px; }
    .not-found-actions { display: grid; grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
    :focus-visible { outline: 3px solid Highlight; }
    .search-suggestions [role="option"][aria-selected="true"] { outline: 2px solid Highlight; }
}
