@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';
@import 'markdown.css';
@import url("https://use.typekit.net/ftb4vmz.css");

:root {
    --colorCircuiterBrandBlue: #005d85;
    --colorCircuiterBrandGreen: #00b595;
    --stack-horizontal-gap: 12px;
    --stack-vertical-gap: 12px;
}

body {
    font-family: "setimo", var(--fontFamilyBase);
    font-size: var(--fontSizeBase300);
    line-height: var(--lineHeightBase300);
    margin: 0;
    height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "hackman", var(--fontFamilyBase);
    font-weight: 600;
    font-style: normal;
    margin-bottom: 0;
}

.category-scheme-tabs {
    width: 100%;
}

.dialog-full-width-content::part(content) {
    width: calc(100% + var(--spacingHorizontalXL) + var(--spacingHorizontalXL));
    margin-inline: calc(-1 * var(--spacingHorizontalXL));
}

.race-location-dialog-body > div:not([slot]) {
    height: 100%;
    min-height: 0;
}

.category-scheme-tabs fluent-tablist {
    box-sizing: border-box;
    padding-inline: var(--spacingHorizontalXL);
}

.category-scheme-name {
    margin: 0 var(--spacingHorizontalXL) var(--spacingVerticalS);
    color: var(--colorNeutralForeground2);
    overflow-wrap: anywhere;
}

.category-scheme-grid-bleed {
    width: 100%;
    overflow-x: auto;
}

.category-scheme-grid-bleed > .fluent-data-grid {
    width: 100%;
    min-width: 270px;
}

.category-scheme-grid-bleed .fluent-data-grid td:not([col-select=true]) {
    height: auto !important;
    min-height: 32px;
    align-self: stretch;
    padding: var(--spacingVerticalS) var(--spacingHorizontalS);
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.category-scheme-grid-bleed th[cell-type=columnheader] {
    font-size: var(--fontSizeBase200);
}

.category-scheme-grid-bleed th:first-child > div,
.category-scheme-grid-bleed td:first-child {
    padding-inline-start: var(--spacingHorizontalL);
}

.category-scheme-grid-bleed th:last-child > div,
.category-scheme-grid-bleed td:last-child {
    padding-inline-end: var(--spacingHorizontalL);
}

.circuit-tabs fluent-tablist {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    background: color-mix(in srgb, var(--colorNeutralBackground1) 96%, transparent);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    box-shadow: 0 1px 3px color-mix(in srgb, black 8%, transparent);
    justify-content: center;
    padding-inline: max(10px, calc((100% - 1360px) / 2 + 10px));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.circuit-tabs fluent-tablist::-webkit-scrollbar {
    display: none;
}

.circuit-tabs fluent-tab {
    min-height: 48px;
    flex: 0 0 auto;
    color: var(--colorNeutralForeground2);
    font-weight: var(--fontWeightSemibold);
    transition: color 120ms ease, background-color 120ms ease;
}

.circuit-tabs fluent-tab:hover {
    color: var(--colorNeutralForeground1Hover);
    background-color: var(--colorSubtleBackgroundHover);
}

.circuit-tabs fluent-tab:focus-visible {
    outline: none;
    box-shadow: inset 0 2px 0 var(--colorBrandStroke1);
    background-color: var(--colorSubtleBackgroundHover);
}

.circuit-tabs fluent-tab[aria-selected="true"] {
    color: var(--colorBrandForeground1);
}

.circuit-tabs fluent-tablist::after {
    height: 3px;
    border-radius: 3px 3px 0 0;
    background-color: var(--colorCircuiterBrandGreen);
}

.circuit-hero {
    min-height: 188px;
    box-sizing: border-box;
    color: white;
    background-image:
        linear-gradient(90deg, rgb(0 35 52 / 92%) 0%, rgb(0 55 77 / 78%) 46%, rgb(0 38 56 / 34%) 100%),
        linear-gradient(0deg, rgb(0 0 0 / 38%) 0%, transparent 65%),
        url('/images/running-horizontal-banner.jpg');
    background-position: center 44%;
    background-size: cover;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.circuit-hero__content {
    min-height: 188px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-sizing: border-box;
    padding-block: 28px;
}

.circuit-hero__logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    box-sizing: border-box;
    object-fit: contain;
    border: 2px solid rgb(255 255 255 / 78%);
    border-radius: 50%;
    padding: 5px;
    background-color: white;
    box-shadow: 0 8px 22px rgb(0 0 0 / 24%);
}

.circuit-hero__heading {
    min-width: 0;
    max-width: 1040px;
}

.circuit-hero__eyebrow {
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    color: rgb(255 255 255 / 82%);
    font-size: var(--fontSizeBase300);
    font-weight: var(--fontWeightSemibold);
    line-height: var(--lineHeightBase300);
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.circuit-hero__eyebrow--link {
    text-decoration: none;
}

.circuit-hero__eyebrow--link:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.circuit-hero__title {
    margin: 4px 0 0;
    color: white;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.08;
    text-wrap: balance;
    text-shadow: 0 2px 10px rgb(0 0 0 / 28%);
}

.circuit-hero__title-link {
    color: inherit;
    text-decoration: none;
}

.circuit-hero__title-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

@media (max-width: 640px) {
    .circuit-hero,
    .circuit-hero__content {
        min-height: 148px;
    }

    .circuit-hero {
        background-position: 58% center;
    }

    .circuit-hero__content {
        gap: 14px;
        padding-block: 20px;
    }

    .circuit-hero__logo {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        padding: 4px;
    }

    .circuit-hero__eyebrow {
        font-size: var(--fontSizeBase200);
        line-height: var(--lineHeightBase200);
    }

    .circuit-hero__title {
        margin-top: 3px;
        font-size: clamp(1.35rem, 7vw, 1.6rem);
        line-height: 1.12;
    }

    .circuit-tabs fluent-tablist {
        justify-content: flex-start;
        padding-inline: 6px;
    }

    .circuit-tabs fluent-tab {
        min-width: max-content;
    }
}

.top-bar {
    color: white;
    background: var(--colorCircuiterBrandBlue) !important;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    box-shadow: 0 1px 4px rgb(0 0 0 / 18%);
}

.top-bar__content {
    width: 100%;
    max-width: 1360px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-inline: auto;
}

.top-bar__brand {
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2px;
    border-radius: var(--borderRadiusCircular);
    text-decoration: none;
    transition: background-color 120ms ease;
}

.top-bar__brand:hover {
    background-color: rgb(255 255 255 / 12%);
}

.top-bar__brand:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.top-bar__logo {
    width: 36px;
    height: 36px;
    display: block;
}

.top-bar__actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.top-bar__form {
    display: flex;
    margin: 0;
}

.top-bar__icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    color: white;
    border-radius: var(--borderRadiusMedium);
}

.top-bar__user-button,
.top-bar__account-button {
    width: auto;
    min-width: 0;
    max-width: 320px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 8px;
    color: white;
}

.top-bar__icon-button:hover,
.top-bar__user-button:hover,
.top-bar__account-button:hover {
    color: white;
    background-color: rgb(255 255 255 / 12%);
}

.top-bar__icon-button:focus-visible,
.top-bar__user-button:focus-visible,
.top-bar__account-button:focus-visible {
    outline: 2px solid white;
    outline-offset: -2px;
    box-shadow: none;
}

.top-bar__user-copy {
    min-width: 0;
    line-height: 1.25;
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.top-bar__user-copy > span {
    display: block;
    overflow: hidden;
    max-width: 240px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .top-bar__user-button,
    .top-bar__account-button {
        width: 36px;
        min-width: 36px;
        padding: 2px;
        gap: 0;
    }

    .top-bar__user-copy {
        display: none;
    }
}

.section-header {
    margin: 1.5rem 0 1rem 0;
}

.circuit-tiles {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
    width: 100%;
    align-items: stretch;
}

.page-container-fixed {
    width: 100%;
    max-width: 1360px;
    margin-inline: auto;
    padding-inline: 10px;
    margin: 0 auto;
}

.profile-page {
    min-height: 100%;
}

.profile-page__header {
    background:
        linear-gradient(105deg, color-mix(in srgb, var(--colorCircuiterBrandBlue) 88%, black) 0%, var(--colorCircuiterBrandBlue) 100%);
    border-bottom: 1px solid rgb(255 255 255 / 14%);
    color: white;
}

.profile-page__header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-block: 24px;
}

.profile-page__identity {
    min-width: 0;
}

.profile-page__change-password-button {
    margin-inline-start: auto;
}

.profile-page__eyebrow,
.link-athlete-result__eyebrow {
    display: block;
    color: var(--colorNeutralForeground2);
    font-size: var(--fontSizeBase200);
    font-weight: var(--fontWeightSemibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-page__header .profile-page__eyebrow {
    color: rgb(255 255 255 / 70%);
}

.profile-page__identity h1 {
    margin: 2px 0 0;
    color: white;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    overflow-wrap: anywhere;
}

.profile-page__identity p {
    overflow: hidden;
    margin: 4px 0 0;
    color: rgb(255 255 255 / 78%);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-page__content {
    padding-block: 28px 48px;
}

.profile-athletes-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.profile-athletes-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.profile-athletes-section__header h2,
.profile-empty-state h3 {
    margin: 0;
}

.profile-athletes-section__header p,
.profile-empty-state p {
    margin: 6px 0 0;
    color: var(--colorNeutralForeground2);
}

.profile-empty-state {
    display: grid;
    justify-items: start;
    gap: 16px;
    max-width: 680px;
    padding: 28px;
    border: 1px dashed var(--colorNeutralStroke2);
}

.profile-empty-state fluent-icon {
    color: var(--colorBrandForeground1);
}

.profile-athlete-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.profile-athletes-section > .fluent-stack-vertical,
.profile-athlete-card .fluent-tabs,
.profile-athlete-card .fluent-tab-panel {
    min-width: 0;
}

.profile-athlete-card fluent-tablist {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
}

.profile-data-grid-bleed {
    --profile-data-grid-inline-bleed: calc(var(--spacingHorizontalM) + var(--spacingHorizontalS));

    width: calc(100% + var(--profile-data-grid-inline-bleed) + var(--profile-data-grid-inline-bleed));
    min-width: 0;
    margin-inline: calc(-1 * var(--profile-data-grid-inline-bleed));
}

.profile-data-grid-bleed__scroll {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.profile-data-grid-bleed .fluent-data-grid {
    width: 100%;
    min-width: max-content;
}

.profile-data-grid-bleed th:first-child > div {
    padding-inline-start: calc(var(--profile-data-grid-inline-bleed) - 2px);
}

.profile-data-grid-bleed th:last-child > div {
    padding-inline-end: calc(var(--profile-data-grid-inline-bleed) - 2px);
}

.profile-data-grid-bleed td:first-child {
    padding-inline-start: var(--profile-data-grid-inline-bleed);
}

.profile-data-grid-bleed td:last-child {
    padding-inline-end: var(--profile-data-grid-inline-bleed);
}

.link-athlete-form {
    display: grid;
    gap: 16px;
}

.link-athlete-form__intro {
    margin: 0;
    color: var(--colorNeutralForeground2);
}

.link-athlete-form__search {
    width: 100%;
}

.link-athlete-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--colorPaletteGreenBorder2);
    background: var(--colorPaletteGreenBackground1);
}

.link-athlete-result strong,
.link-athlete-result span:not(.link-athlete-result__eyebrow) {
    display: block;
}

.link-athlete-actions {
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .profile-page__header-content {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding-block: 18px;
    }

    .profile-page__change-password-button {
        grid-column: 1 / -1;
        width: 100%;
        margin-inline-start: 0;
    }

    .profile-athletes-section__header {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-athletes-section__header fluent-button,
    .profile-empty-state fluent-button {
        width: 100%;
    }

    .profile-empty-state {
        padding: 22px;
    }
}

.content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

footer {
    background: var(--colorNeutralBackground4);
    color: var(--colorNeutralForeground1);
    align-items: center;
    padding: 10px;
}

.card-footer-button {
    width: 100%;
    border-radius: 0;
}

h1:focus {
    outline: none;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--colorNeutralForeground2);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.grid-dynamic-headers th {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

th.grid-header-vertical-text div {
    writing-mode: sideways-lr;
    width: auto;
    margin: 0 auto;
}

td.grid-transparent-cell {
    color: transparent;
}

.discarded-result {
    color: red;
}

.extra-tag-points {
    color: var(--colorCircuiterBrandBlue);
}

.markdown-container {
    padding: 0 10px;

    table {

        th {
            font-weight: 600;
            text-align: center;
            position: relative;
            padding: var(--spacingVerticalXS) 1px;
        }

        td {
            padding: 6px 16px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            align-content: center;
        }
    }
}

/* Shared circuit and race-group rankings. Keep the identity column opaque while scrolling. */
.ranking-mobile { display: none; }
.ranking-desktop { width: 100%; min-width: 0; }
.ranking-scroll { width: 100%; overflow-x: auto; isolation: isolate; }
table.ranking-matrix { width: max-content !important; min-width: 100%; }
.ranking-matrix .ranking-fixed-identity {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--colorNeutralBackground1);
    border-inline-end: 1px solid var(--colorNeutralStroke2);
    white-space: normal;
    overflow-wrap: anywhere;
}
.ranking-matrix tr:nth-child(odd) td.ranking-fixed-identity { background: var(--colorNeutralBackground2); }
/* Fluent sets header position/z-index in its scoped stylesheet. */
.ranking-matrix th.ranking-fixed-identity { position: sticky !important; z-index: 4 !important; }
/* Fluent emits an inline height for each cell and centers grid items by default. */
.ranking-matrix td { height: auto !important; min-height: 44px; align-self: stretch; align-content: center; }
.ranking-matrix td.ranking-fixed-identity {
    padding-block: 10px !important;
    line-height: 1.35;
}
.ranking-matrix .ranking-spacer { padding: 0 !important; min-width: 0; }
.ranking-identity { display: flex; align-items: start; gap: 6px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.ranking-medal { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; }
.ranking-medal > svg { width: 100%; height: 100%; }
.ranking-secondary { display: block; white-space: normal; overflow-wrap: anywhere; color: var(--colorNeutralForeground2); }
.ranking-scroll:focus-visible, .ranking-card summary:focus-visible { outline: 2px solid var(--colorBrandForeground1); outline-offset: -2px; }
@media (max-width: 767px) {
    .ranking-desktop { display: none; }
    .ranking-mobile { display: grid; gap: 8px; width: 100%; min-width: 0; padding: 0 10px; box-sizing: border-box; }
    .ranking-card { min-width: 0; border: 1px solid var(--colorNeutralStroke2); border-radius: 8px; background: var(--colorNeutralBackground1); color: var(--colorNeutralForeground1); }
    .ranking-card summary { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr) 1rem; column-gap: 10px; row-gap: 8px; padding: 16px 12px; align-items: center; cursor: pointer; list-style: none; }
    .ranking-card summary::-webkit-details-marker { display: none; }
    .ranking-card-rank, .ranking-card-result { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
    .ranking-card-rank { grid-row: 1 / 3; position: relative; align-self: stretch; align-items: flex-end; justify-content: center; padding-inline-end: 10px; box-sizing: border-box; text-align: end; font-size: 1.5rem; line-height: 1; color: var(--colorNeutralForeground2); font-variant-numeric: tabular-nums; }
    .ranking-card-rank strong { flex: 0 0 auto; white-space: nowrap; }
    .ranking-card-rank::after { content: ""; position: absolute; inset-block: -16px; inset-inline-end: 0; border-inline-end: 1px solid var(--colorNeutralStroke2); }
    .ranking-card .ranking-identity { font-size: 1.125rem; line-height: 1.3; }
    .ranking-card-result { grid-column: 2; align-items: flex-start; text-align: left; }
    .ranking-card-result strong { font-size: 2rem; line-height: 1.15; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
    .ranking-card-toggle { grid-column: 3; grid-row: 1 / 3; justify-self: center; color: var(--colorBrandForeground1); }
    .ranking-card-toggle span { display: block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
    .ranking-card[open] .ranking-card-toggle span { transform: rotate(225deg); }
    .ranking-details { margin: 0; padding: 12px; border-top: 1px solid var(--colorNeutralStroke2); }
    .ranking-details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 6px 0; }
    .ranking-details dt, .ranking-details dd { margin: 0; overflow-wrap: anywhere; white-space: normal; }
    .ranking-details dt { color: var(--colorNeutralForeground2); }
    .ranking-details dd { text-align: end; }
}

.list-empty-state {
    width: 100%;
    max-width: 48rem;
    height: auto;
    padding: 1.5rem;
    box-sizing: border-box;
    text-align: center;
}

.list-empty-state h3 {
    margin: 0 0 0.5rem;
}

.list-empty-state p {
    margin: 0 0 1rem;
    color: var(--colorNeutralForeground2);
}

.list-result-count {
    margin: 0.5rem 0;
    color: var(--colorNeutralForeground2);
}

/* Recovery UI uses native links/buttons so it works even after a circuit failure. */
.recovery-surface {
    box-sizing: border-box;
    background: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    border: 1px solid var(--colorNeutralStroke1);
    border-top: 3px solid var(--colorBrandStroke1);
    border-radius: 12px;
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: var(--shadow16);
}

.recovery-page {
    width: min(100%, 42rem);
    margin: clamp(1rem, 6vh, 4rem) auto;
}

.recovery-surface h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    margin: 1rem 0;
}

.recovery-surface h2 { font-size: 1.25rem; line-height: 1.4; margin: 0; }
.recovery-surface p { margin: 0.75rem 0; }
.recovery-secondary, .recovery-diagnostic { color: var(--colorNeutralForeground2); }
.recovery-diagnostic { font-size: 0.8125rem; padding-top: 1rem; border-top: 1px solid var(--colorNeutralStroke2); }
.recovery-diagnostic code { display: block; margin-top: 0.25rem; overflow-wrap: anywhere; color: inherit; }
.recovery-symbol { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--colorNeutralBackground3); color: var(--colorBrandForeground1); font-size: 1.75rem; font-weight: 600; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.recovery-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.625rem 1rem;
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    background: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    cursor: pointer;
}
.recovery-action:hover { background: var(--colorNeutralBackground1Hover); color: var(--colorNeutralForeground1); text-decoration: none; }
.recovery-action-primary { background: var(--colorBrandBackground); color: var(--colorNeutralForegroundOnBrand); border-color: transparent; }
.recovery-action-primary:hover { background: var(--colorBrandBackgroundHover); color: var(--colorNeutralForegroundOnBrand); }
.recovery-action:focus-visible { outline: 3px solid var(--colorNeutralForeground1); outline-offset: 3px; }
.recovery-banner-content { max-width: 80rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.recovery-banner-content .recovery-actions { margin-top: 0; }
@media (max-width: 480px) {
    .recovery-actions { flex-direction: column; align-items: stretch; width: 100%; }
}
