/* Ranking controls and dense, grouped standings. */
.ranking-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.segmented { display: flex; align-items: stretch; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.segmented a, .group-chips a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 40px; padding: 6px 12px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.segmented a + a { border-left: 1px solid var(--line); }
.segmented a[aria-current] { background: var(--ink); color: var(--surface); }
.segmented .icon, .gender-icon .icon { width: 16px; height: 16px; }
.discipline-mark { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--muted); border-radius: 2px; }
.mark-boulder { background: var(--boulder); }
.mark-lead, .mark-top_rope { background: var(--lead); }
.mark-speed { background: var(--speed); }
.group-chips { display: flex; align-items: stretch; gap: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.ranking-filters .group-chips { width: 100%; border-top: 1px solid var(--line); padding-top: 3px; }
.group-chips a { padding-inline: 10px; color: var(--muted); }
.group-chips [aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--accent); }
.ranking-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block: 18px 12px; }
.ranking-caption h2 { margin: 0 0 2px; }
.ranking-caption p { margin: 0; }
.compare-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; }
.compare-toolbar button { font-size: 13px; }
.rank-group { margin-block: 10px 20px; }
.rank-group-title { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--surface); }
.rank-group-title h3 { margin: 0; }
.rank-group-title > span:last-child { margin-left: auto; }
.ranking-wrap { border-top: 0; border-radius: 0 0 8px 8px; overflow: visible; }
.ranking-table { table-layout: auto; }
.ranking-table th { position: sticky; top: var(--bar-height); z-index: 2; height: 32px; }
.ranking-table td { padding: 0 8px; height: 36px; }
.ranking-table tbody tr:hover { background: var(--surface-2); }
.ranking-table .select-cell { width: 32px; padding: 0; }
.rank-select { display: grid; place-items: center; width: 32px; height: 36px; cursor: pointer; }
.rank-select input { width: 14px; height: 14px; }
.ranking-table .place-cell { width: 60px; white-space: nowrap; font-weight: 600; }
.movement { color: var(--muted); font-size: 12px; font-weight: 400; }
.place-cell .movement { display: block; }
.rank-details summary { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 14px; line-height: 1.2; }
.rank-details summary::-webkit-details-marker { display: none; }
.rank-expand { font-size: 13px; color: var(--muted); }
.rank-details[open] .rank-expand { transform: rotate(180deg); }
.counted-starts { font-size: 12px; padding-bottom: 5px; }
.counted-starts a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; border-top: 1px solid var(--line); }
.counted-starts b { white-space: nowrap; }
.ranking-table .club-cell { max-width: 170px; color: var(--muted); }
.mobile-club { display: none; }
.dots-cell, .gap-cell { text-align: center; }
.dots-cell abbr { text-decoration: none; }
.start-dots { display: inline-flex; align-items: center; gap: 3px; }
.start-dots i { width: 6px; height: 6px; border: 1px solid var(--muted); border-radius: 50%; }
.start-dots .counted { background: var(--ink); border-color: var(--ink); }
.points-cell { font-size: 16px; font-weight: 700; }
.sparkline { width: 64px; height: 24px; display: block; }
@media (max-width: 799px) {
  .ranking-table .desktop-col { display: none; }
  .ranking-table { table-layout: fixed; }
  .ranking-table .select-cell { width: 40px; }
  .ranking-table .place-cell { width: 42px; }
  .ranking-table .number { width: 52px; }
  .ranking-table .dots-cell { width: 40px; }
  .ranking-table th, .ranking-table td { padding-inline: 4px; }
  .ranking-table td { height: 40px; }
  .ranking-table th:last-of-type, .ranking-table .points-cell { padding-right: 8px; }
  .rank-select, .rank-details summary { min-height: 40px; }
  .rank-select { width: 100%; }
  .rank-details summary > span:first-child { min-width: 0; }
  .mobile-club { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.25; color: var(--muted); font-weight: 400; }
  .ranking-filters { gap: 4px; padding: 8px; }
  .ranking-filters .segmented a { font-size: 12px; padding-inline: 8px; }
  .compare-toolbar { flex-direction: column; align-items: end; }
  .ranking-caption { align-items: flex-start; }
}
/* Comparison controls stay out of the standings until requested. */
.ranking-control-row, .ranking-tools { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ranking-control-row { justify-content: space-between; width: 100%; }
.discipline-short { display: none; }
.ranking-table .place-cell, .ranking-table .sparkline-cell { text-align: center; }
.ranking-table .sparkline { margin-inline: auto; }
.js [data-compare-form]:not(.compare-mode) .select-cell { display: none; }
.ranking-tools > button { font-size: 12px; padding-inline: 9px; }
.ranking-tools .icon-button, .ranking-info > summary { background: transparent; border: 0; }
.ranking-info > summary { display: grid; place-items: center; width: 40px; min-height: 40px; }
.ranking-info .ranking-explanation { position: absolute; z-index: 4; right: -75px; top: 100%; width: min(300px, 85vw); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.ranking-info .ranking-explanation p { position: static; width: auto; border: 0; padding: 0; margin: 0 0 6px; }
.compare-toolbar { justify-content: flex-end; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.js .compare-toolbar { position: fixed; z-index: 7; bottom: calc(60px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 580px); box-shadow: 0 4px 24px rgb(0 0 0 / 15%); flex-direction: row; align-items: center; justify-content: space-between; }
.has-compare-action .app-shell { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
@media (min-width: 880px) { .js .compare-toolbar { bottom: 16px; } }
@media (max-width: 799px) {
  .ranking-caption { margin-block: 10px 6px; align-items: center; }
  .ranking-caption h2 { font-size: 17px; }
  .ranking-caption p { font-size: 11px; }
  .ranking-tools { gap: 0; flex: none; }
  .ranking-caption > div:first-child { min-width: 0; }
  .ranking-tools .icon-button, .ranking-info > summary { width: 32px; min-width: 40px; }
  .discipline-control { min-width: 0; }
  .ranking-filters .discipline-control a { padding-inline: 10px; min-width: 40px; gap: 4px; }
  .discipline-label, .ranking-gender a > span { display: none; }
  .discipline-short { display: inline; text-decoration: none; }
  .ranking-gender { flex: none; }
  .ranking-gender a { min-width: 40px; }
  .ranking-filters .group-chips a { min-height: 36px; }
  .ranking-table .place-cell { width: 44px; }
  .rank-details summary { padding-block: 5px; }
  .rank-details summary strong { display: inline; overflow-wrap: anywhere; }
  .compare-toolbar button { padding-inline: 10px; }
  .compare-toolbar [data-compare-status] { max-width: 120px; }
}

/* Profile details fit a narrow screen without losing the report action. */
.athlete-heading { position: relative; }
.athlete-title .identity-info { position: static; }
.athlete-title .identity-info p { top: 48px; right: 12px; width: min(280px, calc(100% - 24px)); }
.athlete-title > h1 { min-width: 0; overflow-wrap: anywhere; }
.athlete-title > .identity-info { flex: none; }
.athlete-title .identity-info > summary, .chart-age-control .identity-info > summary { display: grid; place-items: center; min-width: 40px; min-height: 40px; }
.profile-results .report-icon.icon-button { display: inline-grid; width: 40px; height: 40px; padding: 0; background: transparent; border: 0; color: var(--muted); }
.profile-results .report-icon:hover, .profile-results .report-icon:focus-visible { color: var(--accent-text); background: var(--surface-2); }
.profile-results .result-source-column { text-align: center; width: 48px; }
.profile-results th.number, .profile-results td.number { text-align: center; }
.chart-age-control { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.chart-age-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid var(--line); border-radius: 18px; padding: 4px 9px; font-size: 11px; color: var(--muted); cursor: pointer; }
.chart-age-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chart-age-toggle > span { width: 24px; height: 14px; border-radius: 10px; background: var(--line); padding: 3px; flex: none; }
.chart-age-toggle > span::after { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.chart-age-toggle:has(:checked) { color: var(--ink); }
.chart-age-toggle :checked + span { background: var(--accent-text); }
.chart-age-toggle :checked + span::after { margin-left: 10px; }
.chart-age-toggle:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chart-age-control .identity-info p { right: -4px; }
@media (max-width: 699px) {
  .profile-main .career-table { min-width: 0; table-layout: fixed; }
  .profile-main .career-table thead tr, .profile-main .career-table tbody tr { display: grid; grid-template-columns: 50px 40px minmax(0,1fr) 67px; }
  .profile-main .career-table :is(th,td) { padding: 8px 5px; text-align: center; min-width: 0; }
  .profile-main .career-table .career-rank-heading { display: none; }
  .profile-main .career-table .career-rank-cell { grid-column: 1 / -1; padding: 0 8px 8px; }
  .profile-main .career-ranks { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px 12px; }
  .profile-main .career-ranks a { font-size: 11px; }
  .profile-main .career-table .compact-medals { gap: 5px; font-size: 11px; }
  .profile-main .profile-results .result-source-column { display: table-cell; width: 40px; padding: 4px 0; }
  .profile-main .profile-results .result-source-link { display: none; }
  .profile-main .profile-results th:nth-child(4), .profile-main .profile-results .result-ranking-points { width: 66px; }
  .profile-main .profile-results .group-points { white-space: normal; }
  .profile-main .profile-results .group-points > span:first-child { font-size: 10px; }
  .profile-main .profile-results .result-event { font-size: 12px; overflow-wrap: anywhere; }
  .profile-main .profile-results time { font-size: 10px; }
  .profile-main .profile-results .result-source summary { font-size: 10px; }
}

/* Events, statistics and administration */
.detail-heading { margin: 18px 0 12px; }
.detail-heading h1 { margin: 0; font-size: 24px; line-height: 1.18; overflow-wrap: anywhere; }
.detail-heading p,.data-note { margin: 5px 0 10px; color: var(--muted); font-size: 13px; }
.protocol-links,.review-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.protocol-links { color: var(--muted); }
.protocol-links > a,.review-nav a { display: inline-flex; align-items: center; min-height: 40px; }
.event-groups { margin: 10px 0 18px; }
.category-sheet { margin: 18px 0 26px; scroll-margin-top: 65px; min-width: 0; }
.category-sheet .section-heading h2,.category-sheet .gender-icon { display: inline-flex; align-items: center; gap: 5px; }
.podium-line { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; }
.podium-line > div { display: flex; align-items: center; gap: 7px; padding: 7px 10px; min-height: 43px; font-size: 13px; }
.podium-line > div + div { border-inline-start: 1px solid var(--line); }
.podium-line > div > span { overflow-wrap: anywhere; }
.podium-line .cup { width: 18px; height: 18px; flex-shrink: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.25; background: var(--surface); }
.data-table th,.data-table td { text-align: left; padding: 7px 10px; overflow-wrap: anywhere; }
.data-table thead th,.club-people tbody th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 12px; }
.data-table tbody td { border-top: 1px solid var(--line); }
.data-table .num { text-align: center; white-space: nowrap; }
.data-table .ordinal { font-weight: 600; }
.data-table a,.podium-line a,.review-nav a { color: var(--ink); text-decoration: none; }
.data-table a:hover,.podium-line a:hover,.review-nav a:hover { color: var(--accent-text); text-decoration: underline; }
.data-table small { display: block; color: var(--muted); font-size: 12px; }
.data-table small a,.event-club a,.protocol-source { color: var(--muted); }
.data-table .narrow-col,.data-table .event-club-mobile { display: none; }
.protocol-source { display: inline-grid; place-items: center; width: 40px; min-height: 40px; vertical-align: middle; }
.event-results :is(th, td):first-child, .club-layout td[data-label], .club-layout th:first-child:has(+ th:not(.num)) { text-align: center; }
.event-results td:has(.protocol-source) small { display: inline; margin-inline: 3px; }
.event-results .count-dot { color: var(--accent-text); margin-inline-start: 3px; font-size: 9px; vertical-align: middle; }
.compact-detail { color: var(--muted); font-size: 13px; }
.compact-detail > summary { cursor: pointer; min-height: 40px; align-content: center; }
.compact-detail p { margin: 0 0 8px; }
.compact-detail ul { padding-left: 17px; margin: 0 0 8px; }
.stat-tables,.club-layout,.review-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; align-items: start; }
.stat-tables > section,.club-layout > section,.review-columns > section { min-width: 0; }
.stats-window { max-height: 339px; overflow: auto; }
.stats-window thead th { position: sticky; top: 0; z-index: 1; }
.participation-panel { margin-top: 18px; }
.participation-bars { list-style: none; margin: 0; padding: 0; max-height: 250px; overflow-y: auto; }
.participation-bars li { display: grid; grid-template-columns: minmax(0,2fr) minmax(45px,1fr) 32px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.participation-bars a { display: flex; align-items: baseline; gap: 6px; color: var(--ink); text-decoration: none; }
.participation-bars a:hover { text-decoration: underline; color: var(--accent-text); }
.participation-bars time { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.participation-track { height: 5px; background: var(--surface-2); }
.participation-track > span { display: block; height: 100%; background: var(--muted); }
.participation-bars strong { text-align: right; }
.review-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.review-nav a { border-bottom: 2px solid transparent; }
.review-nav a[aria-current] { font-weight: 600; border-color: var(--accent); }
.review-case { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 5px; }
.review-case > summary { position: relative; display: grid; align-content: center; gap: 3px; min-height: 40px; padding: 8px 30px 8px 12px; list-style: none; cursor: pointer; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.review-case > summary::-webkit-details-marker { display: none; }
.review-case > summary::after { content: '+'; position: absolute; right: 12px; top: 10px; color: var(--muted); font-size: 16px; }
.review-case[open] > summary::after { content: '−'; }
.review-case small { color: var(--muted); font-size: 12px; font-weight: 400; }
.review-body { border-top: 1px solid var(--line); padding: 10px 12px; }
.club-history { margin: 0; }
.club-history > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.club-history dt,.club-history dd { margin: 0; font-size: 13px; }
.club-history dd { white-space: nowrap; color: var(--muted); }
.review-inputs { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 9px; }
.review-inputs label { display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: 12px; }
.review-inputs select,.review-inputs input { min-width: 0; max-width: 100%; width: 100%; min-height: 40px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-actions button { min-height: 40px; padding: 5px 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.review-actions button:hover { border-color: var(--accent-text); }
.review-table { table-layout: fixed; }
@media (max-width: 719px) {
  .stat-tables,.club-layout,.review-columns { grid-template-columns: minmax(0,1fr); }
  .detail-heading h1 { font-size: 20px; }
  .podium-line > div { gap: 4px; padding: 6px; font-size: 12px; }
  .podium-line .cup { width: 16px; height: 16px; }
  .data-table th,.data-table td { padding: 7px 6px; }
  .data-table .wide-col,.data-table .event-club { display: none; }
  .data-table .narrow-col,.data-table .event-club-mobile { display: block; }
  .stats-window { max-height: 295px; }
  .event-results { table-layout: fixed; }
  .event-results th:first-child { width: 43px; white-space: nowrap; }
  .event-results th:last-child { width: 54px; }
  .participation-bars li { grid-template-columns: minmax(0,1fr) 64px 25px; gap: 6px; }
}

/* Competition calendar: dates stay local, unknown days stay unknown. */
.calendar-filters { padding: 10px; }
.calendar-regions { flex-wrap: wrap; width: fit-content; }
.calendar-options,.calendar-toggles,.calendar-caption,.calendar-row-heading,.calendar-meta,.calendar-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.calendar-options { justify-content: space-between; margin-top: 8px; }
.calendar-options .group-chips { margin: 0; }
.calendar-options .group-chips a { display: inline-flex; align-items: center; gap: 5px; }
.calendar-toggles a { display: inline-flex; align-items: center; min-height: 40px; gap: 6px; color: var(--muted); text-decoration: none; font-size: 12px; }
.calendar-toggles i { display: block; position: relative; width: 27px; height: 16px; border-radius: 12px; background: var(--line); }
.calendar-toggles i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); }
.calendar-toggles [aria-checked=true] { color: var(--ink); }
.calendar-toggles [aria-checked=true] i { background: var(--accent-text); }
.calendar-toggles [aria-checked=true] i::after { left: 14px; }
.calendar-caption { justify-content: space-between; margin: 14px 0 8px; }
.calendar-caption p { margin: 0; }
.calendar-month { margin: 0 0 20px; }
.calendar-month > h2 { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 11px 0 9px; margin: 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.calendar-month > h2 span { font-weight: 400; color: var(--muted); }
.calendar-events { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }
.calendar-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 12px; padding: 14px; align-items: center; }
.calendar-row + .calendar-row { border-top: 1px solid var(--line); }
.calendar-date { display: grid; text-align: center; gap: 2px; align-content: center; min-width: 44px; }
.calendar-date > span { font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.04em; }
.calendar-date small { display: block; color: var(--muted); font-size: 11px; line-height: 1.25; }
.calendar-row-heading { gap: 7px; margin-bottom: 5px; font-size: 11px; color: var(--muted); }
.calendar-country { white-space: nowrap; }
.calendar-level { display: inline-block; padding: 2px 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; font-size: 10px; line-height: 1.2; color: var(--muted); }
.calendar-row h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.3; }
.calendar-row h3 a { text-decoration: none; }
.calendar-row h3 a:hover { text-decoration: underline; }
.calendar-meta { gap: 8px; font-size: 12px; color: var(--muted); }
.calendar-disciplines { display: inline-flex; align-items: center; gap: 5px; }
.calendar-disciplines > span { display: inline-flex; }
.calendar-status { color: var(--accent-text); }
.calendar-cancelled h3 a { text-decoration: line-through; color: var(--muted); }
.calendar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 12px; }
.calendar-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.calendar-links a:hover { text-decoration: underline; }
.calendar-detail { padding: 16px; margin-bottom: 12px; }
.calendar-detail-actions { justify-content: space-between; margin-bottom: 12px; }
.calendar-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; margin: 0; }
.calendar-fields > div { padding: 11px 0; border-top: 1px solid var(--line); }
.calendar-fields dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.calendar-fields dd { margin: 0; overflow-wrap: anywhere; }
.calendar-field-discipline { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.calendar-source-list { padding: 0; list-style: none; margin: 0; }
.calendar-source-list li { border-top: 1px solid var(--line); padding: 10px 0; overflow-wrap: anywhere; }
.calendar-source-list a { font-size: 13px; }
.upcoming-strip { margin-bottom: 14px; padding: 10px 12px; }
.upcoming-strip .section-heading { margin-bottom: 3px; }
.upcoming-strip h2 { font-size: 15px; }
.upcoming-strip .section-heading > a { font-size: 12px; }
.upcoming-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.upcoming-event { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.upcoming-event > div:nth-child(2) { min-width: 0; }
.upcoming-event strong { display: block; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.upcoming-event .calendar-date > span { font-size: 15px; }
.upcoming-event .calendar-disciplines { margin-left: auto; }
.calendar-admin-form { padding: 16px; margin-bottom: 22px; }
.calendar-admin-form .review-inputs { grid-template-columns: repeat(3,minmax(0,1fr)); }
.calendar-form-wide { grid-column: span 2; }
.calendar-review-list { margin-bottom: 22px; }
.calendar-review { padding: 12px; }
.calendar-review .review-actions label { max-width: 100%; min-width: 0; }
.calendar-review select { width: 100%; }
.calendar-admin-table td:last-child { min-width: 145px; }
.calendar-admin-table td form { margin-top: 5px; }
.calendar-admin-table td button { font-size: 12px; }
@media (min-width: 880px) and (max-width: 1099px) {
  .bottom-nav a { padding-inline: 7px; }
  .bar-inner { gap: 7px; }
  .brand { margin-right: 0; font-size: 14px; }
}
@media (max-width: 719px) {
  .calendar-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .calendar-regions a { padding-inline: 8px; font-size: 12px; }
  .calendar-options { gap: 0; }
  .calendar-options .group-chips { gap: 2px; flex-wrap: wrap; }
  .calendar-options .group-chips a { font-size: 11px; padding-inline: 7px; }
  .calendar-row { grid-template-columns: 49px minmax(0,1fr); padding: 12px 9px; gap: 0 10px; }
  .calendar-row h3 { font-size: 14px; }
  .calendar-row > .calendar-links { grid-column: 2; }
  .calendar-date > span { font-size: 20px; }
  .calendar-fields { grid-template-columns: minmax(0,1fr); }
  .calendar-detail { padding: 12px; }
  .upcoming-list { grid-template-columns: minmax(0,1fr); gap: 0; }
  .upcoming-event { padding-block: 7px; }
  .upcoming-event + .upcoming-event { border-top: 1px solid var(--line); }
  .calendar-admin-form .review-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calendar-form-wide { grid-column: 1 / -1; }
}
@media (max-width: 349px) {
  .bottom-nav a { font-size: 10px; }
}
.calendar-corroboration { display: block; margin-top: 6px; color: var(--muted); }
.calendar-date > .calendar-month-date { font-size: 12px; letter-spacing: -.035em; }
@media (max-width: 719px) {
  .calendar-date > .calendar-month-date { font-size: 10px; }
}

/* Verified national titles share one crown across public pages. */
.champion-crown { width: 1.1em; height: 1.1em; color: #C9A227; display: inline-block; vertical-align: -.14em; flex-shrink: 0; }
.champions-link { margin: 1rem 0; font-size: .9rem; }
.champion-disciplines { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.champion-discipline { padding: 1.1rem; min-width: 0; }
.champion-discipline h3, .champion-discipline h4 { display: flex; align-items: center; gap: .5rem; }
.champion-discipline h4 { margin: 1.4rem 0 .5rem; }
.champion-list { list-style: none; padding: 0; margin: 0; }
.champion-list li { display: flex; flex-direction: column; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); gap: .25rem; }
.champion-list li:last-child { border-bottom: 0; }
.champion-group { font-size: .8rem; font-weight: 700; }
.champion-event { margin-top: .2rem; font-size: .8rem; }
.champion-list small { font-size: .76rem; color: var(--muted); }
.champion-history { margin-top: 2rem; scroll-margin-top: 5rem; }
.champion-history-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin: 1rem 0; }
.champion-history-filters label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; }
.champion-history-filters select { min-height: 2.5rem; max-width: 100%; }
.champion-history-table td { min-width: 9rem; vertical-align: top; }
.champion-history-table th:first-child { position: sticky; left: 0; min-width: 4.5rem; white-space: nowrap; background: var(--surface); }
.champion-history-table small { display: block; }
.athlete-championships { font-size: .85rem; line-height: 1.8; max-width: 70ch; }
@media (max-width: 700px) { .champion-disciplines { grid-template-columns: 1fr; } .champion-history-filters { align-items: stretch; } }
