.results-page .results-hero { margin-bottom: 28px; }
.results-page .results-hero h1 { margin-top: 28px; font-size: clamp(28px, 4vw, 44px); }
.results-hero-description { margin: 16px 0 28px; color: #ffe0e1; font-size: 14px; line-height: 1.6; }
.results-sections { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.results-sections > .results-category-panel:only-child { grid-column: 1 / -1; }
.results-sections .result-panel { margin-bottom: 0; }
.results-secondary-sections { display: grid; gap: 24px; min-width: 0; }
.results-page .result-panel-heading { min-width: 0; }
.results-page .result-panel-heading h2 { overflow-wrap: anywhere; }
.results-count { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 34px; min-height: 34px; padding: 5px 10px; background: #fff1ef; border: 1px solid #f0dedb; border-radius: 10px; color: var(--result-red); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.results-link-list { padding: 0 12px 12px; }
.results-page .results-category-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 16px; border-top: 1px solid #edeef1; border-radius: 0; color: var(--result-ink); text-decoration: none; transition: background .15s, color .15s; }
.results-page .results-category-link:hover { background: #fff7f6; color: var(--result-red); }
.results-link-copy { min-width: 0; }
.results-link-copy strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.results-link-copy > span { display: block; margin-top: 5px; color: var(--result-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.results-link-arrow { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #f5f5f7; color: #777b87; font-size: 18px; }
.results-category-link:hover .results-link-arrow { background: #f9e4e1; color: var(--result-red); }
.results-tables { display: grid; gap: 24px; }
.results-tables .result-panel { margin-bottom: 0; }
.results-distance { flex-shrink: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid #eedbd9; background: #fff8f7; color: var(--result-red); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.results-distance > span { font-size: 11px; font-weight: 600; }
.results-table-scroll { overflow-x: auto; }
.results-table-scroll:focus-visible { outline: 3px solid #df8c8c; outline-offset: -3px; }
.results-table { width: 100%; min-width: 570px; margin: 0; border-collapse: collapse; font-size: 13px; }
.results-table th { padding: 13px 20px; background: #f7f7f9; border-top: 1px solid #edeef1; border-bottom: 1px solid #edeef1; color: #747680; text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.results-table td { padding: 18px 20px; border-bottom: 1px solid #edeef1; vertical-align: middle; }
.results-table tbody tr:last-child td { border-bottom: 0; }
.results-table tbody tr:hover { background: #fffafa; }
.results-table .results-rank-cell { width: 76px; text-align: center; }
.results-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 3px; border-radius: 8px; background: #f2f3f6; color: #575b68; font-weight: 800; font-variant-numeric: tabular-nums; }
.results-runner { display: flex; align-items: center; gap: 12px; }
.results-runner > .flag-icon { flex-shrink: 0; font-size: 15px; }
.results-runner-copy { min-width: 0; }
.results-runner-copy > strong { font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.results-runner-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; color: var(--result-muted); font-size: 11px; }
.results-runner-meta > span { overflow-wrap: anywhere; }
.results-table .results-laps-cell { width: 95px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results-laps-cell > span { color: #8b8e98; }
.results-table .results-time-cell { width: 125px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results-time-cell > strong { color: var(--result-red); font-size: 15px; letter-spacing: -.02em; }
.results-page .results-video-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: #fff1ef; color: var(--result-red); text-decoration: none; font-size: 11px; }
.results-video-link:hover { background: #f9e4e1; }
.results-page .results-empty { margin: 0; padding: 26px; text-align: center; color: var(--result-muted); font-size: 13px; line-height: 1.7; }
@media (max-width: 767px) {
    .results-sections { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .results-secondary-sections { gap: 20px; }
    .results-page .results-hero { margin-bottom: 22px; }
    .results-page .results-hero h1 { margin-top: 24px; }
    .results-hero-description { font-size: 13px; }
    .results-page .result-panel-heading { padding: 20px; }
    .results-link-list { padding: 0 8px 8px; }
    .results-page .results-category-link { padding: 16px 12px; }
    .results-table { min-width: 500px; }
    .results-table th, .results-table td { padding-left: 12px; padding-right: 12px; }
    .results-table .results-rank-cell { width: 54px; }
    .results-table .results-time-cell { width: 105px; }
    .results-table .results-laps-cell { width: 75px; }
    .results-runner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .results-page .results-category-link { transition: none; }
}
.results-category-table .results-time-cell { width: 180px; }
.results-pace { display: block; margin-top: 5px; color: var(--result-muted); font-size: 11px; }
.results-runner-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.results-page .results-detail-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #eedbd9; border-radius: 6px; background: #fff8f7; color: var(--result-red); text-decoration: none; font-size: 10px; font-weight: 800; }
.results-page .results-detail-link:hover { background: #f9e4e1; }
@media (max-width: 767px) {
    .results-category-table { min-width: 0; table-layout: fixed; }
    .results-category-table .results-rank-cell { width: 44px; }
    .results-category-table .results-time-cell { width: 120px; }
    .results-category-table .results-laps-cell { width: 55px; }
    .results-category-table th, .results-category-table td { padding-left: 7px; padding-right: 7px; }
    .results-category-table .results-runner { flex-wrap: wrap; }
    .results-category-table .results-runner-copy { flex: 1 1 70px; }
    .results-category-table .results-runner-copy > strong { font-size: 12px; }
    .results-category-table .results-time-cell > strong { font-size: 13px; }
    .results-category-table .results-runner-actions { gap: 6px; }
}
.results-search { padding: 0 28px 20px; }
.results-search[hidden], .results-search-clear[hidden], #category-results tr[hidden], #general-results tr[hidden] { display: none; }
.results-search label { display: block; margin-bottom: 8px; color: var(--result-ink); font-size: 12px; font-weight: 800; }
.results-search-controls { display: flex; align-items: center; gap: 10px; }
.results-search input { width: 100%; min-width: 0; max-width: 440px; padding: 12px 14px; border: 1px solid #dedfe5; border-radius: 9px; background: #fafafb; color: var(--result-ink); font: inherit; font-size: 14px; }
.results-search input:focus { border-color: var(--result-red); outline: 2px solid #f0d0d0; outline-offset: 2px; background: #fff; }
.results-search-clear { padding: 10px 12px; border: 1px solid #eedbd9; border-radius: 8px; background: #fff8f7; color: var(--result-red); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.results-search-clear:hover { background: #f9e4e1; }
.results-search-clear:focus-visible { outline: 3px solid #df8c8c; outline-offset: 3px; }
.results-search p { margin: 10px 0 0; color: var(--result-muted); font-size: 11px; }
@media (max-width: 767px) {
    .results-search { padding: 0 20px 20px; }
}
.results-distance-groups { display: grid; gap: 18px; padding: 0 20px 20px; }
.results-distance-group { overflow: hidden; border: 1px solid #e6e7eb; border-radius: 12px; }
.results-distance-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #eedbd9; background: #fff5f3; }
.results-page .results-distance-heading h3 { margin: 0; color: var(--result-red); font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.results-distance-heading > span { flex-shrink: 0; color: var(--result-muted); font-size: 11px; }
.results-distance-group .results-link-list { padding-bottom: 0; }
.results-distance-group .results-category-link:first-child { border-top: 0; }
@media (max-width: 767px) {
    .results-distance-groups { padding: 0 12px 12px; gap: 14px; }
    .results-distance-heading { padding: 14px; }
}
.category-filters { padding: 0 20px 20px; }
.category-filters[hidden], .results-distance-group[hidden], .results-category-link[hidden], #category-filter-empty[hidden] { display: none; }
.category-distance-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.category-distance-filters button { padding: 9px 16px; border: 1px solid #e6e7eb; border-radius: 9px; background: #fff; color: #616570; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.category-distance-filters button[aria-pressed="true"] { border-color: var(--result-red); background: var(--result-red); color: #fff; }
.category-distance-filters button:hover { border-color: var(--result-red); }
.category-filters label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.category-filters input { width: 100%; padding: 12px 14px; border: 1px solid #dedfe5; border-radius: 9px; background: #fafafb; color: var(--result-ink); font: inherit; font-size: 14px; }
.category-filter-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.category-filter-actions button { padding: 5px 0; border: 0; background: transparent; color: var(--result-red); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.category-filter-actions button:hover { text-decoration: underline; }
.category-filters p { margin: 12px 0 0; color: var(--result-muted); font-size: 11px; }
.category-filters input:focus-visible, .category-filters button:focus-visible, .results-distance-group summary:focus-visible { outline: 3px solid #df8c8c; outline-offset: 2px; }
.results-distance-group summary { cursor: pointer; list-style: none; }
.results-distance-group summary::-webkit-details-marker { display: none; }
.results-distance-group summary::after { content: '+'; color: var(--result-red); font-size: 22px; line-height: 1; }
.results-distance-group summary > span { margin-left: auto; }
.results-distance-group details[open] summary::after { content: '−'; }
.results-distance-group details:not([open]) summary { border-bottom: 0; }
@media (max-width: 767px) {
    .category-filters { padding: 0 12px 18px; }
}
.results-runner-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.results-runner-name > strong { min-width: 0; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.results-page .results-person-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border: 0; background: transparent; color: var(--result-red); text-decoration: none; }
.results-page .results-person-link:hover { color: #800000; }
@media (max-width: 767px) {
    .results-category-table .results-runner-name > strong { font-size: 12px; }
}
.results-category-table tr[id^="corredor-"] { scroll-margin-top: 100px; }
.results-category-table tbody tr:target > td { background: #fff0ee; border-top: 2px solid var(--result-red); border-bottom: 2px solid var(--result-red); }
.results-category-table tr:target > td:first-child { border-left: 2px solid var(--result-red); }
.results-category-table tr:target > td:last-child { border-right: 2px solid var(--result-red); }
.results-category-table tr:target .results-rank { background: var(--result-red); color: #fff; }
.results-sticky-page .results-sticky-header { position: sticky; top: 0; z-index: 20; }
.results-sticky-page .results-category-table tr[id^="corredor-"] { scroll-margin-top: var(--results-header-height, 360px); }
.results-sticky-marker { position: relative; top: 22px; height: 1px; margin-bottom: -1px; pointer-events: none; }
.results-sticky-page .results-sticky-header.is-stuck { padding: 12px 28px; border-radius: 0 0 14px 14px; box-shadow: 0 8px 22px rgba(130, 0, 0, .18); }
.results-sticky-header.is-stuck .result-hero-top, .results-sticky-header.is-stuck .result-hero-footer { display: none; }
.results-sticky-header.is-stuck .result-event { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.results-sticky-page .results-sticky-header.is-stuck h1 { margin: 0; font-size: 22px; line-height: 1.2; }
.results-sticky-header.is-stuck .result-identity { margin: 7px 0 0; gap: 6px 16px; font-size: 11px; }
.results-sticky-header.is-stuck::before { top: 14px; height: 32px; }
@media (max-width: 767px) {
    .results-sticky-page .results-sticky-header.is-stuck { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 10px 16px; border-radius: 0; }
    .results-sticky-page .results-sticky-header.is-stuck h1 { font-size: 18px; }
    .results-sticky-header.is-stuck .result-event { font-size: 12px; }
    .results-sticky-header.is-stuck .result-identity { margin-top: 5px; font-size: 10px; }
}
.results-sticky-header.is-stuck .result-hero-top { display: flex; float: right; margin: 0 0 6px 16px; }
.results-sticky-header.is-stuck .result-hero-top .result-eyebrow { display: none; }
.results-sticky-header.is-stuck .result-brand { font-size: 12px; }
@media (max-width: 767px) {
    .results-sticky-header.is-stuck .result-hero-top { margin-left: 10px; }
    .results-sticky-header.is-stuck .result-brand { font-size: 11px; }
}
