/* Runner home and public promo.
   The visual weight goes on personal progress rather than on rank: there is a
   celebration treatment for beating your own time and no styling at all for a
   slower week. Deliberately no podium colours anywhere. */

.cr-celebrate {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    color: #0d3b2c;
    background: linear-gradient(135deg, #d6f5e6 0%, #fdf3cf 100%);
    border: 1px solid rgba(31, 122, 90, 0.3);
}

.cr-celebrate-star {
    font-size: 2.75rem;
    line-height: 1;
    color: #e8a300;
    animation: cr-pop 620ms ease-out;
}

.cr-streak-star {
    display: inline-block;
    margin-left: 0.15em;
    font-size: 0.85em;
    line-height: 1;
    vertical-align: 0.08em;
    animation: cr-pop 620ms ease-out;
}

.cr-streak-star--bronze {
    color: #cd7f32;
}

.cr-streak-star--silver {
    color: #9aa0a6;
}

.cr-streak-star--gold {
    color: #e8a300;
}

.cr-grid-streak {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
    text-align: center;
}

.cr-grid-streak .cr-streak-star {
    font-size: 1rem;
    margin-left: 0.1em;
    vertical-align: 0.05em;
}

.cr-grid-distance {
    text-align: center;
}

@keyframes cr-pop {
    0% { transform: scale(0.4) rotate(-25deg); opacity: 0; }
    60% { transform: scale(1.25) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cr-celebrate-star,
    .cr-streak-star { animation: none; }
}

.cr-graph {
    width: 100%;
    height: auto;
    display: block;
}

.cr-graph-axis {
    stroke: #6c757d;
    stroke-width: 1;
}

.cr-graph-grid {
    stroke: rgba(18, 38, 58, 0.08);
    stroke-width: 1;
}

.cr-graph-y-label,
.cr-graph-x-label {
    fill: #6c757d;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.cr-graph-line {
    fill: none;
    stroke: #1f7a5a;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.cr-graph-dot {
    fill: #fff;
    stroke: #1f7a5a;
    stroke-width: 2.5;
}

.cr-time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.cr-better {
    color: #12503a;
    font-weight: 600;
}

.cr-sparkline-col {
    width: 7.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
}

.cr-sparkline {
    display: block;
    width: 6.75rem;
    height: 2.25rem;
}

.cr-sparkline-trend {
    fill: none;
    stroke: #8fd4b0;
    stroke-width: 4;
    stroke-linecap: round;
}

.cr-sparkline-line {
    fill: none;
    stroke: #1f7a5a;
    stroke-width: 1.75;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.cr-sparkline-dot {
    fill: #fff;
    stroke: #1f7a5a;
    stroke-width: 1.5;
}

.cr-grid-results th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.cr-grid-results th a.cr-grid-sort {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.cr-grid-results th a.cr-grid-sort:hover,
.cr-grid-results th a.cr-grid-sort:focus-visible {
    color: #212529;
    text-decoration: underline;
}

.cr-grid-results th a.cr-grid-sort.is-active {
    color: #12503a;
}

.cr-privacy-row {
    font-size: 0.875rem;
}

.cr-privacy-badge {
    font-weight: 500;
}

.cr-privacy-badge--private {
    background-color: #6c757d;
    color: #fff;
}

.cr-privacy-badge--public {
    background-color: var(--cr-accent);
    color: #fff;
}

.cr-runner-header .cr-runner-id {
    font-size: 1.75rem;
    line-height: 1.2;
}

.cr-runner-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
}

.cr-runner-header-start {
    justify-self: start;
    min-width: 0;
}

.cr-runner-header-center {
    justify-self: center;
    text-align: center;
}

.cr-runner-header-end {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cr-runner-header--below-family-banner .cr-runner-header-end {
    padding-top: 0.1875rem;
}

.cr-runner-header-identity {
    min-width: 0;
}

.cr-runner-header-who {
    flex: 1 1 auto;
    min-width: 0;
}

.cr-runner-header-qr {
    line-height: 0;
}

.cr-runner-header-qr svg {
    display: block;
    height: 6.5rem;
    width: auto;
}

@media (max-width: 991.98px) {
    .cr-runner-header {
        grid-template-columns: 1fr;
    }

    .cr-runner-header-center {
        justify-self: center;
    }

    .cr-runner-header-end {
        justify-self: center;
    }
}

@media (max-width: 575.98px) {
    .cr-runner-header-qr svg {
        height: 5rem;
    }

    .cr-runner-header .cr-runner-id {
        font-size: 1.35rem;
    }
}

.cr-runner-id-value {
    font-family: var(--bs-font-monospace);
    font-weight: 700;
}

.cr-profile-runner-id {
    font-family: var(--bs-font-monospace);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
}

.cr-next-run-heading {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.cr-next-run-detail {
    font-size: 1.15rem;
    line-height: 1.4;
}

.cr-empty-state-copy {
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.cr-awards-columns {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
}

.cr-awards-columns summary {
    cursor: pointer;
    font-weight: 600;
}

.cr-awards-column-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0.85rem 0.35rem 0;
    font-size: 0.875rem;
}

.cr-awards-picks {
    display: none;
}

#crAwardsColumnsPanel[open] ~ .cr-awards-scroll .cr-awards-picks {
    display: table-row;
}

.cr-awards-picks th {
    background: #f4faf7;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
}

.cr-awards-pick {
    display: flex;
    justify-content: center;
    margin: 0;
}

.cr-awards-pick input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.cr-awards-scroll {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
}

.cr-awards-table {
    min-width: 104rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.tooltip.cr-awards-tip {
    --bs-tooltip-max-width: 24rem;
}

.tooltip.cr-awards-tip .tooltip-inner {
    text-align: left;
}

.cr-awards-table thead tr.cr-awards-head th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.cr-awards-filters th {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    background: #fff;
}

.cr-awards-filter {
    min-width: 5.5rem;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8125rem;
}

.cr-awards-table th:first-child,
.cr-awards-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 #dee2e6;
}

.cr-awards-table thead th:first-child {
    z-index: 4;
}

.cr-awards-table .cr-grid-sort {
    color: inherit;
    text-decoration: none;
}

.cr-awards-table .cr-grid-sort:hover,
.cr-awards-table .cr-grid-sort:focus-visible,
.cr-awards-table .cr-grid-sort.is-active {
    color: #12503a;
}

.cr-awards-runner {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(31, 122, 90, 0.45);
    text-underline-offset: 0.15em;
}

.cr-awards-runner:hover,
.cr-awards-runner:focus-visible {
    color: #12503a;
    text-decoration-color: #12503a;
}

.cr-award-open {
    display: inline-block;
    max-width: 11rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(31, 122, 90, 0.45);
    text-underline-offset: 0.15em;
    cursor: pointer;
    vertical-align: middle;
}

.cr-award-open:hover,
.cr-award-open:focus-visible {
    color: #12503a;
    text-decoration-color: #12503a;
}

.cr-award-open:focus-visible {
    outline: 2px solid #1f7a5a;
    outline-offset: 2px;
}

.cr-award-open--chart {
    max-width: none;
    text-decoration: none;
}

.cr-awards-legend dt {
    margin-top: 0.85rem;
    font-weight: 600;
}

.cr-awards-legend dd {
    margin-bottom: 0;
    max-width: 46rem;
}
