:root {
  --ink: #17211d;
  --muted: #617068;
  --paper: #fffdf8;
  --soft: #f4f1e8;
  --line: #d8ddd7;
  --green: #176b52;
  --green-dark: #0f4e3c;
  --coral: #ef654f;
  --coral-text: #b84335;
  --yellow: #f5c84c;
  --teal: #2c8c88;
  --white: #fff;
  --shadow: 0 12px 30px rgba(23, 33, 29, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
.is-hidden { display: none !important; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; transform: translateY(calc(-100% - 16px)); border: 2px solid var(--green-dark); border-radius: 8px; padding: 10px 14px; background: var(--paper); color: var(--green-dark); font-weight: 850; text-decoration: none; box-shadow: 0 4px 16px rgba(23, 33, 29, .2); }
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--yellow); outline-offset: 2px; }

.site-header { position: sticky; z-index: 50; top: 0; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(23, 33, 29, .12); background: var(--paper); }
.site-update-notice { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; border-bottom: 1px solid #c5ddd0; padding: 10px 20px; background: #e9f5ee; color: var(--green-dark); text-align: center; }
.site-update-notice[hidden] { display: none; }
.site-update-notice p { margin: 0; font-size: 14px; font-weight: 750; }
.site-update-notice button { min-height: 44px; border: 1px solid var(--green); border-radius: 999px; padding: 0 16px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.site-update-notice button:hover, .site-update-notice button:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; background: var(--green-dark); }
.site-update-notice .site-update-dismiss { border-color: transparent; background: transparent; color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.site-update-notice .site-update-dismiss:hover, .site-update-notice .site-update-dismiss:focus-visible { background: #d8eadf; }
.brand { display: flex; min-height: 44px; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; cursor: pointer; }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: rotate(3deg) scale(1.05); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; transform: rotate(-3deg); }
.brand-mark img { width: 100%; height: 100%; display: block; }
.main-nav { display: flex; align-self: stretch; }
.nav-button { min-width: 72px; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; font-weight: 800; }
.nav-button:hover, .nav-button.is-active { color: var(--green); border-bottom-color: var(--coral); }

.hero { position: relative; height: clamp(390px, 57vh, 570px); min-height: 390px; overflow: hidden; background: var(--green); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0 auto 0 0; width: 58%; background: rgba(8, 35, 28, .88); }
.hero-content { position: absolute; inset: 0; width: min(1180px, calc(100% - 40px)); margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: white; }
.hero-content .eyebrow { color: var(--yellow); }
.eyebrow, .kicker { margin: 0 0 8px; color: var(--coral-text); font-size: 12px; font-weight: 950; letter-spacing: 0; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.12; letter-spacing: 0; }
.hero-introduction { max-width: 760px; margin: 14px 0 20px; }
.hero-introduction p { margin: 2px 0; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.65; }
.hero-search { display: flex; align-items: center; gap: 9px; min-height: 48px; border: 2px solid var(--ink); padding: 0 18px; background: var(--yellow); cursor: pointer; font-weight: 900; box-shadow: 5px 5px 0 var(--coral); }
.hero-search:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--coral); }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1180px, calc(100% - 40px)); margin: -34px auto 0; position: relative; z-index: 2; border: 2px solid var(--ink); background: var(--white); box-shadow: 7px 7px 0 var(--yellow); }
.stat-item { padding: 17px 20px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.stat-item strong { display: block; margin-top: 2px; font-size: 27px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h1, .section-heading h2, .page-intro h1, .search-stage h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: 0; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.text-link { border: 0; padding: 8px 0; background: transparent; color: var(--green); cursor: pointer; font-weight: 900; }
.timeline-band { margin-top: 0; padding: 64px 0 72px; overflow: hidden; background: var(--green-dark); color: white; }
.timeline-band .kicker { color: var(--yellow); }
.timeline-band .section-note { color: #d6e5de; }
.upcoming-events-section { padding-block: 34px 44px; }
.upcoming-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.upcoming-section-heading > .section-heading { margin: 0; }
.upcoming-section-heading .section-heading h2 { font-size: clamp(24px, 3vw, 34px); }
.calendar-link-section { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.calendar-subscribe-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--green); border-radius: 999px; padding: 0 16px; background: var(--green); color: #fff; font-size: 13px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.calendar-subscribe-button:hover, .calendar-subscribe-button:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; background: var(--green-dark); }
.calendar-platform-note { display: grid; gap: 3px; max-width: 310px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.upcoming-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-flow: row; gap: 10px; margin-right: 0; padding: 2px 2px 12px; overflow: visible; }
.mobile-upcoming-card { display: flex; min-width: 0; min-height: 142px; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid #e5d07e; border-radius: 13px; padding: 11px 12px; background: #fff6d5; color: #28352b; font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; }
.mobile-upcoming-card:nth-child(even) { background: #ffefb7; border-color: #ddc25e; }
.mobile-upcoming-card--activity, .mobile-upcoming-card--activity:nth-child(even) { border-color: #bfd9d5; background: #eaf4f2; }
.mobile-upcoming-card:hover, .mobile-upcoming-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.mobile-upcoming-kind { color: #28766d; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.mobile-upcoming-date { color: var(--green-dark); font-size: 12px; font-weight: 900; }
.mobile-upcoming-card h3 { margin: 1px 0 2px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.mobile-upcoming-location { width: 100%; overflow-wrap: anywhere; color: #645c40; font-size: 12px; line-height: 1.35; }
.mobile-upcoming-location b { margin-right: 4px; color: var(--green-dark); }
.upcoming-key-dates { margin: 18px 0 28px; border: 1px solid var(--line); border-left: 6px solid var(--yellow); padding: 16px 18px; background: #fffaf0; }
.upcoming-key-dates h3 { margin: 0 0 10px; font-size: 18px; }
.upcoming-key-dates ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.upcoming-key-dates li { display: grid; grid-template-columns: minmax(118px, auto) 1fr; gap: 12px; align-items: start; font-size: 13px; }
.upcoming-key-dates time { color: var(--green-dark); font-weight: 850; }
.upcoming-key-dates li p { margin: 3px 0 0; color: var(--muted); }
.upcoming-schedule-image { margin: 0 0 28px; border: 1px solid var(--line); padding: 18px; background: #fff; }
.upcoming-schedule-image h2, .upcoming-schedule-image h3 { margin: 0 0 12px; }
.upcoming-schedule-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #f7f7f7; }
.upcoming-schedule-image p { margin: 10px 0 8px; color: var(--muted); font-size: 13px; }
.upcoming-schedule-image > a:last-child, .upcoming-related-links a { font-weight: 800; color: var(--green-dark); }
.calendar-help-dialog { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 18px 70px #10251e55; }
.calendar-help-dialog::backdrop { background: #10251e88; }
.calendar-help-card { display: grid; gap: 12px; padding: 22px; }
.calendar-help-card h2 { margin: 0; font-size: 20px; }
.calendar-help-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.calendar-help-card label { color: var(--green-dark); font-size: 12px; font-weight: 850; }
.calendar-help-card input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; padding: 10px; color: var(--ink); font-size: 12px; }
.calendar-help-actions { display: flex; justify-content: flex-end; gap: 8px; }
.calendar-help-actions button { min-height: 44px; border: 1px solid var(--green); border-radius: 999px; padding: 0 16px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.calendar-help-actions .calendar-help-close { border-color: var(--line); background: white; color: var(--ink); }
.calendar-copy-status { min-height: 16px; color: var(--green-dark); font-size: 12px; }
.event-timeline { position: relative; width: 100%; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 0; padding: 64px 24px 32px; overflow-x: auto; overflow-y: hidden; cursor: grab; user-select: none; scrollbar-width: auto; scrollbar-color: var(--coral) rgba(255, 255, 255, .16); overscroll-behavior-inline: contain; }
.event-timeline::-webkit-scrollbar { height: 12px; }
.event-timeline::-webkit-scrollbar-track { background: rgba(255, 255, 255, .16); }
.event-timeline::-webkit-scrollbar-thumb { border: 3px solid var(--green-dark); border-radius: 10px; background: var(--coral); }
.event-timeline.is-dragging { cursor: grabbing; user-select: none; }
.timeline-node { position: relative; width: 168px; min-height: 146px; display: grid; grid-template-rows: 24px 54px auto; justify-items: center; border: 0; padding: 0 10px; background: transparent; color: white; cursor: pointer; text-align: center; }
.timeline-node::before { content: ""; position: absolute; z-index: 1; top: 27px; right: 0; left: 0; height: 3px; background: rgba(255, 255, 255, .38); }
.event-timeline > .timeline-node { --timeline-accent: #66c6b4; }
.event-timeline > .timeline-upcoming-node { --timeline-accent: #f4cc5e; }
.timeline-date { color: var(--timeline-accent, #d6e5de); font-size: 11px; font-weight: 800; }
.timeline-dot { position: relative; z-index: 2; display: grid; width: 25px; height: 25px; margin-top: 15px; place-items: center; border: 4px solid var(--timeline-accent, var(--yellow)); border-radius: 50%; background: var(--green-dark); color: var(--timeline-accent, var(--yellow)); font-size: 9px; transition: transform .18s ease, background .18s ease; }
.timeline-name { max-width: 150px; margin-top: 8px; font-size: 12px; font-weight: 850; line-height: 1.45; }
.timeline-upcoming-node { grid-template-rows: 24px 54px auto auto; cursor: pointer; }
.timeline-upcoming-node::before { background: color-mix(in srgb, var(--timeline-accent) 72%, white); }
.timeline-upcoming-node .timeline-dot { background: var(--timeline-accent); color: var(--ink); }
.timeline-upcoming-label { margin-top: 2px; border-radius: 999px; padding: 3px 8px; background: var(--timeline-accent); color: var(--ink); font-size: 9px; font-weight: 900; }
.timeline-upcoming-node .timeline-name { grid-row: 4; margin-top: 5px; }
.timeline-tooltip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% - 17px); width: 190px; display: grid; gap: 3px; transform: translate(-50%, 8px); border: 2px solid var(--ink); padding: 12px; background: var(--yellow); color: var(--ink); box-shadow: 5px 5px 0 var(--coral); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.timeline-tooltip small { color: #7a3c31; font-size: 10px; font-style: normal; font-weight: 900; }
.timeline-tooltip strong { overflow-wrap: anywhere; font-size: 14px; }
.timeline-tooltip em { color: var(--muted); font-size: 10px; font-style: normal; }
.timeline-node:not(.timeline-upcoming-node):hover .timeline-dot, .timeline-node:not(.timeline-upcoming-node):focus-visible .timeline-dot { transform: scale(1.25); background: var(--timeline-accent, var(--coral)); }
.timeline-node:hover .timeline-tooltip, .timeline-node:focus-visible .timeline-tooltip { transform: translate(-50%, 0); opacity: 1; }
.timeline-node:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

.collected-events { padding-top: 76px; padding-bottom: 84px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (min-width: 901px) {
  .timeline-band .page-shell { width: min(1440px, calc(100% - 40px)); }
  .collected-events .event-grid { max-height: 1200px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d9e2dc; border-radius: 14px; padding: 16px; background: #f8faf8; scrollbar-color: var(--green) #e8eee9; scrollbar-width: thin; }
  .collected-events .event-grid::-webkit-scrollbar { width: 10px; }
  .collected-events .event-grid::-webkit-scrollbar-track { border-radius: 999px; background: #e8eee9; }
  .collected-events .event-grid::-webkit-scrollbar-thumb { border: 2px solid #e8eee9; border-radius: 999px; background: var(--green); }
}
.event-card { position: relative; min-height: 226px; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; border: 1px solid #d9e2dc; border-top: 3px solid var(--green); border-radius: 13px; padding: 17px 18px 15px; background: linear-gradient(145deg, #fff 0%, #fffefa 100%); cursor: pointer; text-align: left; overflow: hidden; box-shadow: 0 4px 14px rgba(32,54,43,.055); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.event-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(32,54,43,.11); }
.event-date { color: #bd5d4e; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 850; }
.event-card h3 { margin: 2px 0 5px; color: #263a31; font-size: 17px; line-height: 1.4; }
.event-card-body { align-self: stretch; }
.event-card-topics { display: grid; gap: 4px; margin: 0 0 3px; }
.event-card-honors { display: grid; gap: 5px; margin: 1px 0 2px; padding: 0; list-style: none; }
.event-card-honors li { display: flex; min-width: 0; align-items: center; gap: 8px; color: #314239; font-size: 12px; font-weight: 750; line-height: 1.25; }
.event-card-honors .trophy-medal { width: 23px; height: 23px; flex: 0 0 23px; border-radius: 7px; font-size: 11px; }
.event-honor-recipient { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card-topic { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-card-topic span { color: var(--green); font-weight: 900; }
.event-card-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 750; }
.person-icon, .player-icon, .leaderboard-mic { display: inline-grid; width: 30px; height: 30px; place-items: center; margin-right: 7px; border-radius: 50%; background: var(--yellow); font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 19px; line-height: 1; vertical-align: middle; }
.entity-card h3 .person-icon, .entity-card h3 .player-icon { display: inline-grid; font-size: 19px; }

.leaderboard-band { --rank-bg: #e4f0e9; --rank-border: #bfd6c8; --rank-panel: #fff; padding: 68px 0 82px; background: var(--rank-bg); border-top: 1px solid var(--rank-border); transition: background-color .25s ease, border-color .25s ease; }
.leaderboard-band[data-range="all"] { --rank-bg: #fff2c9; --rank-border: #e2c866; --rank-panel: #fffdf6; }
.section-note { margin: 0; color: var(--muted); font-size: 13px; }
.leaderboard-scroll { display: grid; grid-template-columns: repeat(3, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.leaderboard-panel { border-top: 7px solid var(--green); padding: 22px; background: var(--rank-panel, white); box-shadow: var(--shadow); transition: background-color .25s ease; }
.leaderboard-panel.teal { border-top-color: var(--teal); }
.leaderboard-panel.coral { border-top-color: var(--coral); }
.leaderboard-panel h3 { margin: 0 0 12px; font-size: 20px; }
.olympic-panel { margin-bottom: 18px; }
.mobile-honor-ranking { display: none; }
.mobile-olympic-filters { display: none; }
.olympic-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.olympic-filter { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; cursor: pointer; }
.olympic-filter .trophy-medal { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.olympic-filter.is-active { border-color: var(--green); background: #e5f0e9; color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green); }
.leaderboard-band[data-range="all"] .olympic-filter.is-active { border-color: #a87800; background: #fff0bd; color: #614b08; box-shadow: inset 0 0 0 1px #a87800; }
.olympic-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: var(--green) transparent; }
.olympic-table { width: 100%; min-width: 760px; border-collapse: collapse; background: white; font-size: 13px; }
.olympic-table th, .olympic-table td { height: 46px; border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: center; white-space: nowrap; }
.olympic-table thead th { height: 42px; background: #f5f4ed; color: var(--muted); font-size: 11px; font-weight: 850; }
.olympic-table thead .olympic-group-head th { height: 36px; border-bottom: 1px solid #c9d9ce; background: #e8f1eb; color: var(--green-dark); }
.olympic-table thead .olympic-group-head th[rowspan="2"] { background: #f5f4ed; color: var(--muted); }
.olympic-table thead .olympic-detail-head th { height: 34px; background: #f5f4ed; }
.olympic-table thead th[rowspan="2"] { min-width: 0; }
.olympic-table thead th[rowspan="2"]:nth-last-child(2) { min-width: 176px; white-space: normal; line-height: 1.35; }
.olympic-table .school-column { min-width: 165px; text-align: left; }
.olympic-table tbody .school-column { color: var(--ink); font-size: 13px; font-weight: 850; }
.medal-sort { display: inline-flex; align-items: center; gap: 3px; border: 0; padding: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.medal-sort:hover, .medal-sort:focus-visible { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.medal-cell { min-width: 56px; }
.medal-cell .trophy-medal { display: inline-grid; width: 22px; height: 22px; margin-right: 4px; border-radius: 7px; font-size: 9px; vertical-align: middle; }
.medal-cell strong { font-variant-numeric: tabular-nums; }
.award-symbol-cell { min-width: 88px; }
.award-symbol-group { display: inline-flex; align-items: center; gap: 3px; margin: 0 3px; font-variant-numeric: tabular-nums; }
.award-symbol-group .trophy-medal { display: inline-grid; width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.award-symbol-group strong { font-size: 12px; }
.total-honors-cell { min-width: 176px; background: #fbf7e9; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.total-honors-cell strong { font-size: 15px; }
.medal-sort.is-sort-primary { color: var(--green-dark); font-weight: 950; }
.leaderboard-band[data-range="all"] .medal-sort.is-sort-primary { color: #825f00; }
.rank-position { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 800; }
.olympic-empty { padding: 24px !important; color: var(--muted); text-align: center !important; }
.leaderboard-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 16px; color: var(--muted); font-size: 12px; }
.leaderboard-range-legend { display: flex; align-items: center; gap: 6px; }
.leaderboard-range-legend i { width: 10px; height: 10px; border-radius: 50%; background: #176b52; box-shadow: 0 0 0 3px #c7e1d2; }
.leaderboard-band[data-range="all"] .leaderboard-range-legend i { background: #bb8b12; box-shadow: 0 0 0 3px #f4dfa0; }
.honor-range-toggle { min-height: 40px; border: 1px solid #176b52; border-radius: 999px; padding: 0 16px; background: #176b52; color: white; font-size: 12px; font-weight: 850; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.honor-range-toggle.is-all-years { border-color: #a87800; background: #f4d66e; color: #493900; box-shadow: 0 2px 0 #d6b348; }
.ranking-list { margin: 0; padding: 0; list-style: none; counter-reset: ranking; }
.ranking-list li { counter-increment: ranking; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.ranking-list li::before { content: counter(ranking); display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--soft); font-size: 12px; font-weight: 900; }
.ranking-list li:first-child::before { background: var(--yellow); }
.ranking-list li strong { font-size: 14px; }
.ranking-list li span { color: var(--muted); font-size: 12px; }
.rank-count { color: var(--green) !important; font-weight: 900; }

.page-intro { padding: 64px 0 32px; }
.page-intro > p:last-child { max-width: 600px; color: var(--muted); line-height: 1.7; }
.event-browser { padding-bottom: 36px; }
.event-finder { border: 1px solid var(--line); border-top: 7px solid var(--green); padding: 22px; background: white; box-shadow: var(--shadow); }
.event-finder-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.event-finder-heading h2 { margin: 0; font-size: 22px; }
.event-finder-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.event-finder-heading span { color: var(--muted); font-size: 12px; font-weight: 800; }
.event-filter-controls { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(3, minmax(130px, .8fr)); gap: 10px; margin-top: 18px; }
.event-search-field, .event-year-field, .event-sort-field { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 850; }
.event-search-field input, .event-year-field select, .event-sort-field select { width: 100%; min-height: 50px; border: 2px solid var(--ink); border-radius: 0; padding: 0 12px; background: white; color: var(--ink); font: inherit; }
.event-finder-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 330px; margin-top: 14px; padding-right: 4px; overflow-y: auto; }
.event-result-card { display: grid; gap: 5px; min-height: 112px; border: 1px solid var(--line); padding: 14px; background: var(--paper); cursor: pointer; text-align: left; }
.event-result-card:hover, .event-result-card:focus-visible { border-color: var(--green); background: var(--soft); box-shadow: 3px 3px 0 var(--yellow); }
.event-result-year { color: var(--coral-text); font-size: 11px; font-weight: 900; }
.event-result-card strong { line-height: 1.45; }
.event-result-card small { align-self: end; color: var(--muted); }
.event-finder-empty { grid-column: 1 / -1; padding: 28px; color: var(--muted); text-align: center; }
.overview-page { padding-bottom: 84px; }
.overview-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.overview-stats-frame { border: 1px solid #d5e2da; border-top: 6px solid var(--green); padding: clamp(18px, 3vw, 32px); background: linear-gradient(145deg, #fff 0%, #f9fbf8 100%); box-shadow: 0 12px 32px rgba(16, 57, 43, .08); }
.overview-stats-toolbar { align-items: end; gap: 28px; }
.overview-stats-toolbar h2 { color: var(--ink); font-size: clamp(24px, 3vw, 32px); }
.overview-stats-toolbar p { color: var(--muted); }
.overview-stats-eyebrow { margin: 0 0 6px !important; color: var(--coral-text) !important; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.overview-stats-controls { display: grid; grid-template-columns: minmax(210px, 1fr); gap: 10px; width: min(250px, 100%); }
.overview-stats-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.overview-year-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; border: 1px solid #d8e2db; border-radius: 999px; padding: 0 12px; background: #fff; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 850; transition: background .15s ease, border-color .15s ease; }
.overview-year-toggle:has(input:checked) { border-color: var(--green); background: #edf5f0; }
.overview-year-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); cursor: pointer; }
.overview-year-toggle i, .overview-stats-year-value > i { display: inline-block; width: 18px; height: 3px; border-radius: 9px; background: var(--year-color); }
.overview-stats-years + .overview-stats-meta { margin-top: 14px; }
.overview-stats-meta { margin: 24px 0 10px; color: var(--green-dark); font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; }
.overview-stats-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.overview-stats-card { display: grid; gap: 7px; border: 1px solid #dce7df; border-radius: 12px; padding: 14px 16px; background: #fff; }
.overview-stats-card > span { color: var(--green-dark); font-size: 13px; font-weight: 900; }
.overview-stats-year-values { display: grid; gap: 8px; }
.overview-stats-year-value { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.overview-stats-year-bar { display: block; height: 13px; overflow: hidden; border-radius: 999px; background: #edf2ee; }
.overview-stats-year-bar i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: var(--year-color); }
.overview-stats-year-value strong { color: var(--green-dark); font-size: 18px; }
.overview-stats-year-value strong small { margin-left: 3px; font-size: 11px; }
.overview-stats-chart { min-width: 0; scroll-margin-block: 18px 96px; border: 1px solid #dce7df; border-radius: 14px; padding: 14px 14px 4px; background: #fff; }
.overview-stats-chart:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.overview-stats-svg { display: block; width: 100%; height: auto; overflow: visible; }
.overview-chart-summer { fill: #fff7dd; }
.overview-chart-summer-label { fill: #96752b; font-family: inherit; font-size: 11px; font-weight: 800; }
.overview-chart-tick line { stroke: #e5ede7; stroke-width: 1; }
.overview-chart-tick text, .overview-chart-x-label { fill: #6b7d74; font-family: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.overview-chart-axis { stroke: #bdcec3; stroke-width: 1.5; }
.overview-chart-line { fill: none; stroke: var(--year-color); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.overview-chart-point { fill: #fff; stroke: var(--year-color); stroke-width: 2.5; }
.overview-stats-note, .overview-stats-empty { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.overview-stats-empty { padding: 48px; text-align: center; }
.overview-tab { min-height: 48px; border: 0; padding: 0 18px; background: var(--soft); cursor: pointer; font-weight: 900; }
.overview-tab .overview-tab-count { margin-left: 7px; color: var(--muted); font-size: 12px; }
.overview-tab-label-short { display: none; }
.overview-tab .overview-tab-label-long, .overview-tab .overview-tab-label-short { margin: 0; color: inherit; font-size: inherit; }
.overview-tab.is-active { background: var(--green); color: white; }
.overview-tab.is-active .overview-tab-count { color: #d6e5de; }
.overview-panel { min-height: 480px; }
.overview-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 10px; }
.overview-toolbar h2 { margin: 0; font-size: 25px; }
.overview-toolbar p { margin: 7px 0 0; color: var(--muted); }
.overview-filter { width: min(320px, 100%); display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 850; }
.overview-filter input, .overview-filter select { min-height: 46px; width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 0 12px; background: white; color: var(--ink); font: inherit; }
#overviewTopicFilter { min-height: 50px; border-radius: 0; }
.overview-team-controls { width: min(700px, 100%); display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(132px, .8fr)); gap: 10px; }
.overview-meta { margin: 16px 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.overview-entity-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 12px; }
.overview-entity-group { min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.overview-entity-group.school-group { border-color: #c9dfd4; background: #eff7f2; }
.overview-entity-group.team-group { border-color: #ead99e; background: #fff8e2; }
.overview-entity-group > h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 16px; }
.school-group > h3 { color: var(--green); }
.team-group > h3 { color: #80620f; }
.overview-entity-group > h3 span { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); font-size: 12px; }
.overview-entity-list { display: grid; gap: 7px; }
@media (min-width: 1100px) {
  .overview-entity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.overview-team-card { display: grid; gap: 4px; width: 100%; min-width: 0; min-height: 82px; border: 1px solid rgba(29, 73, 60, .14); border-left: 4px solid var(--green); border-radius: 12px; padding: 10px 11px; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; text-align: left; }
.overview-team-card.team { border-left-color: #d5a92c; }
.overview-team-card:hover, .overview-team-card:focus-visible, .overview-team-card.is-selected { border-color: var(--green); box-shadow: 2px 2px 0 rgba(24, 95, 72, .18); }
.overview-team-card.team:hover, .overview-team-card.team:focus-visible, .overview-team-card.team.is-selected { border-color: #c69a20; box-shadow: 2px 2px 0 rgba(198, 154, 32, .2); }
.overview-team-card strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
.overview-team-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.overview-empty-group { margin: 4px; color: var(--muted); font-size: 13px; }
.overview-topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.overview-topic-card { display: block; width: 100%; border: 1px solid var(--line); border-left: 6px solid var(--yellow); padding: 18px; background: white; color: var(--ink); text-align: left; }
.overview-topic-card:hover, .overview-topic-card:focus-visible { border-color: var(--green); background: var(--soft); box-shadow: 3px 3px 0 var(--yellow); }
.overview-topic-card span { display: block; margin-bottom: 7px; color: var(--coral-text); font-size: 11px; font-weight: 900; }
.overview-topic-card strong { line-height: 1.65; }
.topic-title-link { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-weight: 900; line-height: 1.65; text-align: left; }
.topic-title-link:hover, .topic-title-link:focus-visible { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.overview-topic-card p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.topic-event-link { display: block; margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font: inherit; font-size: 11px; font-weight: 900; text-align: left; }
.topic-explanation { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.topic-explanation summary { color: var(--green); cursor: pointer; font-weight: 800; }
.topic-explanation p { margin: 8px 0 0; white-space: pre-line; }
.topic-explanation .topic-source-note { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.search-topic-list { margin-top: 0; }
.entity-trophy-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.entity-trophy-heading small { color: var(--muted); font-size: 11px; font-weight: 650; }
.entity-trophy-heading small b { color: var(--green-dark); }
.entity-trophy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 24px; }
.player-trophy-list { grid-template-columns: minmax(0, 1fr); }
.entity-trophy-card { display: grid; min-width: 0; gap: 8px; padding: 10px 11px 10px 14px; border: 1px solid #ead89e; border-left: 4px solid #d9b744; border-radius: 13px; background: linear-gradient(110deg, #fff9e8, #fffdf7); box-shadow: 0 3px 10px rgba(91,72,21,.07); }
.entity-trophy-title { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.entity-trophy-title > strong { min-width: 0; overflow-wrap: anywhere; color: #314139; font-size: 12px; line-height: 1.35; }
.entity-trophy-medals { display: flex; flex: 0 0 auto; gap: 4px; }
.trophy-medal { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 950; box-shadow: 0 2px 0 rgba(30,40,34,.1); }
.trophy-medal.gold { background: #f5d25e; color: #584508; }
.trophy-medal.silver { background: #dce4e1; color: #394944; }
.trophy-medal.bronze { background: #dca06f; color: #512d15; }
.trophy-medal.white { border-color: #cbd5d1; background: #fff; color: #53645d; }
.entity-trophy-honors { display: grid; gap: 5px; }
.entity-trophy-honor { display: flex; min-width: 0; align-items: center; gap: 8px; padding-top: 7px; border-top: 1px solid rgba(49,65,57,.12); }
.trophy-honor-badge { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid #cbd5d1; border-radius: 8px; background: #fff; color: #53645d; font-size: 12px; font-weight: 950; }
.entity-trophy-honor.full-course .trophy-honor-badge { border-color: #e3bf3c; background: #f5d25e; color: #584508; }
.entity-trophy-honor.full-course-excellence .trophy-honor-badge { border-color: #cbd5d1; background: #dce4e1; color: #394944; }
.trophy-honor-copy { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; }
.trophy-honor-copy strong { color: #56655e; font-size: 11px; }
.trophy-honor-copy > span { font-size: 12px; font-weight: 800; }
.entity-trophy-count { flex: 0 0 auto; padding: 2px 5px; border-radius: 5px; background: #e7efe9; color: var(--green-dark); font-size: 10px; font-weight: 900; }
.entity-trophy-honor > small { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.entity-event-years { display: grid; gap: 10px; }
.entity-event-year h4 { margin: 0 0 6px; color: var(--coral-text); font-size: 12px; }
.entity-event-list { display: flex; flex-wrap: wrap; align-items: start; gap: 9px; }
.entity-event-list span { padding: 7px 10px; background: var(--soft); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.entity-event-entry { display: grid; min-width: min(220px, 100%); max-width: 340px; align-content: start; gap: 5px; }
.entity-event-roster { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fffdf7; color: var(--muted); font-size: 11px; line-height: 1.6; }
.entity-event-roster > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--green-dark); font-weight: 850; cursor: pointer; list-style: none; }
.entity-event-roster > summary::-webkit-details-marker { display: none; }
.entity-event-roster > summary::after { content: "＋"; color: var(--teal); font-size: 14px; }
.entity-event-roster[open] > summary::after { content: "−"; }
.entity-event-roster > summary span:last-child { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 700; }
.entity-event-roster p { margin: 5px 0; color: var(--muted); font-size: 10px; }
.entity-event-roster > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 5px; margin-top: 4px; overflow-wrap: anywhere; }
.entity-event-roster > div strong { color: var(--coral-text); }
.entity-event-roster > div span { padding: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 500; }
.event-summary { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin: 38px 0 22px; padding-bottom: 20px; border-bottom: 4px solid var(--ink); }
.event-summary h1, .event-summary h2 { margin: 0; max-width: 780px; font-size: clamp(25px, 4vw, 38px); }
.event-summary p { margin: 8px 0 0; color: var(--muted); }
.event-summary-count { display: flex; gap: 8px; }
.count-chip { padding: 8px 10px; background: var(--yellow); font-size: 12px; font-weight: 900; white-space: nowrap; }
.activity-status-chip { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border: 1.5px solid var(--green); border-radius: 999px; padding: 6px 14px; background: #fffdf7; color: var(--green); font-size: 12px; font-weight: 900; white-space: nowrap; }
.activity-status-chip.is-ended { border-color: #8a918d; background: #f1f2ef; color: #59615d; }
.event-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 18px; border-left: 5px solid var(--yellow); padding: 12px 14px; background: var(--soft); color: var(--muted); font-size: 14px; line-height: 1.65; }
.event-metadata span { color: var(--coral-text); font-weight: 900; }
.event-metadata strong { color: var(--ink); }
.event-meta-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; flex: 1 1 100%; }
.event-meta-parties strong { min-width: 0; overflow-wrap: anywhere; }
.event-metadata .event-meta-place { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 0 6px; color: var(--muted); font-size: 13px; }
.event-metadata small { width: 100%; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.event-metadata-note { margin: -6px 0 20px; border-left: 5px solid var(--yellow); padding: 0 14px; background: var(--soft); color: var(--muted); font-size: 14px; line-height: 1.7; }
.event-metadata-note > summary { display: flex; align-items: center; min-height: 44px; color: var(--green); cursor: pointer; font-weight: 800; }
.event-metadata-note > p { margin: 0; padding: 0 0 14px; white-space: pre-line; overflow-wrap: anywhere; }
.event-metadata-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.upcoming-event-status { margin: 18px 0; border-left: 4px solid var(--teal); padding: 12px 16px; background: #e9f2ed; color: var(--muted); line-height: 1.7; }
.event-topics { margin: 0 0 32px; border: 1px solid var(--line); border-left: 7px solid var(--yellow); padding: 20px; background: #fffaf0; }
.event-rosters { margin: 0 0 28px; border: 1px solid var(--line); border-top: 5px solid var(--teal); padding: 16px 18px; background: #f7fbf8; }
.event-rosters > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--green-dark); font-size: 17px; font-weight: 900; cursor: pointer; list-style: none; }
.event-rosters > summary::-webkit-details-marker { display: none; }
.event-rosters > summary::after { content: "＋"; color: var(--teal); font-size: 19px; }
.event-rosters[open] > summary::after { content: "−"; }
.event-rosters > summary span:last-child { margin-left: auto; color: var(--muted); font-size: 12px; }
.event-roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.event-roster-card { min-width: 0; border: 1px solid var(--line); padding: 12px; background: white; }
.event-roster-card h4 { margin: 0 0 8px; color: var(--green-dark); font-size: 14px; line-height: 1.5; }
.roster-source-status { display:inline-block; margin-left:8px; padding:2px 7px; border-radius:999px; background:var(--yellow); color:var(--ink); font-size:11px; font-weight:800; vertical-align:middle; }
.event-roster-card p { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 7px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.event-roster-card p strong { color: var(--coral-text); }
.entity-roster-disclosure { margin: 22px 0; border: 1px solid var(--line); border-top: 5px solid var(--teal); padding: 14px 16px; background: #f7fbf8; }
.entity-roster-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--green-dark); font-weight: 900; cursor: pointer; list-style: none; }
.entity-roster-disclosure > summary::-webkit-details-marker { display: none; }
.entity-roster-disclosure > summary::after { content: "＋"; color: var(--teal); font-size: 18px; }
.entity-roster-disclosure[open] > summary::after { content: "−"; }
.entity-roster-disclosure > summary span:last-child { margin-left: auto; color: var(--muted); font-size: 12px; }
.entity-roster-entry { border-top: 1px solid var(--line); padding-top: 10px; }
.entity-roster-entry h4 { margin: 0; font-size: 14px; }
.entity-roster-entry p { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.entity-roster-entry p strong { color: var(--coral-text); }
.subheading-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.subheading-row .subheading { margin: 0; }
.subheading-row > span { color: var(--muted); font-size: 12px; font-weight: 850; }
.topic-card { display: grid; gap: 5px; margin-top: 14px; border-top: 1px solid #eadfbf; padding-top: 14px; }
.topic-card > span { color: var(--coral-text); font-size: 11px; font-weight: 900; }
.topic-card strong { font-size: 15px; line-height: 1.65; }
.topic-linked-event { margin-top: 16px; border-top: 1px solid #eadfbf; padding-top: 12px; }
.topic-no-explanation { color: var(--muted); font-size: 13px; }
.event-content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 34px; }
.subheading { margin: 0 0 15px; font-size: 20px; }
.match-day { margin-bottom: 26px; }
.match-day-title { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; color: var(--green); font-size: 14px; }
.match-list { border: 1px solid var(--line); background: white; }
.match-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 58px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.match-row:last-child { border-bottom: 0; }
.match-place, .match-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.match-note { grid-column: 2 / -1; overflow-wrap: anywhere; }
.match-note-disclosure > summary { display: flex; align-items: center; min-height: 32px; color: var(--green); cursor: pointer; font-weight: 800; }
.match-note-disclosure > span { display: block; padding: 2px 0 8px; }
.match-note-disclosure a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.match-group-name { display: block; width: max-content; max-width: 100%; margin-top: 4px; border-radius: 999px; padding: 2px 5px; background: #f1f4eb; color: var(--green-dark); font-size: 9px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.match-single-best { display: block; margin-top: 4px; color: var(--green-dark); font-size: 11px; font-weight: 750; }
.match-single-best b { margin-right: 4px; color: var(--coral-text); }
.team-name { font-size: 13px; font-weight: 800; }
.team-name.negative { text-align: right; }
.match-score { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 950; font-size: 18px; }
.match-score .winner-score { color: var(--coral-text); }
.team-name.is-match-winner { color: var(--coral-text); font-weight: 900; }
.match-winner-marker { display: inline-block; margin-inline-start: 5px; border-radius: 999px; padding: 2px 6px; background: #fff1e8; color: var(--coral-text); font-size: 10px; font-weight: 900; line-height: 1.4; white-space: nowrap; }
.score-unreported { color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.unscored-match-winner .team-name-link { color: var(--coral-text); font-weight: 900; }
.unscored-match-winner small { display: block; color: var(--coral-text); font-size: 10px; font-weight: 800; margin-top: 2px; }
.event-honors { align-self: start; border: 1px solid var(--line); border-top: 6px solid var(--coral); padding: 18px; background: white; }
.event-honor { padding: 13px 0; border-bottom: 1px solid var(--line); }
.event-honor:last-child { border-bottom: 0; }
.event-honor span, .event-honor strong { display: block; }
.event-honor span { color: var(--coral-text); font-size: 11px; font-weight: 900; }
.event-honor.mingjing-star-gold, .event-honor.mingjing-star-silver { padding-left: 12px; border-left: 3px solid; }
.event-honor.mingjing-star-gold { border-left-color: #bb8b12; }
.event-honor.mingjing-star-silver { border-left-color: #87939b; }
.event-honor.mingjing-star-gold > span, .event-honor.mingjing-star-silver > span { display: inline-block; border: 1px solid; border-radius: 999px; padding: 3px 9px; line-height: 1.4; }
.event-honor.mingjing-star-gold > span { border-color: #d3ac42; background: #fff0bd; color: #674b08; }
.event-honor.mingjing-star-silver > span { border-color: #b5c0c6; background: #e9eef0; color: #3f515b; }
.event-honor strong { margin-top: 3px; }
.event-honor small { display: block; margin-top: 3px; color: var(--muted); }
.event-honor small.honor-date { color: var(--muted); font-size: 11px; }
.player-affiliations { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.event-honor-section-title { margin: 14px 0 0; color: var(--green-dark); font-size: 13px; }
.event-honor-section-title:first-of-type { margin-top: 4px; }
.event-honor strong .honor-count-badge { display: inline-grid; min-width: 28px; height: 20px; box-sizing: border-box; place-items: center; margin-left: 8px; border-radius: 7px; padding: 0 5px; background: #fff0bd; color: #77600f; font-size: 10px; line-height: 1; vertical-align: middle; }

.search-stage { padding: 64px 0 40px; background: var(--green-dark); color: white; }
.search-stage .kicker { color: var(--yellow); }
.search-box { display: grid; grid-template-columns: 34px 1fr 44px; align-items: center; max-width: 850px; margin-top: 27px; border: 3px solid var(--ink); background: white; box-shadow: 7px 7px 0 var(--coral); color: var(--ink); }
.search-box > span { text-align: center; font-size: 25px; }
.search-box input { width: 100%; min-width: 0; min-height: 58px; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-box:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.search-box button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 25px; }
.search-meta { margin: 18px 0 0; color: #d6e5de; font-size: 13px; }
.search-results { min-height: 420px; padding-top: 40px; padding-bottom: 84px; }
.search-empty { display: grid; min-height: 300px; place-items: center; text-align: center; color: var(--muted); }
.search-empty span { display: block; margin-bottom: 10px; font-size: 46px; }
.result-section { margin-bottom: 40px; }
.result-section h2 { margin-bottom: 15px; font-size: 22px; }
.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entity-card { display: block; width: 100%; border: 1px solid var(--line); border-left: 5px solid var(--teal); padding: 16px; background: white; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
button.entity-card:hover, button.entity-card.is-selected { border-color: var(--green); background: var(--soft); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--yellow); }
.entity-card.player { border-left-color: var(--coral); cursor: pointer; }
.entity-card h3 { margin: 0; font-size: 17px; }
.entity-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.entity-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.entity-detail { scroll-margin-top: 88px; border-top: 7px solid var(--green); padding: 24px; background: white; box-shadow: var(--shadow); }
.entity-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.entity-detail-heading h1, .entity-detail-heading h2 { margin: 0; }
.entity-detail-heading > div:last-child { color: var(--muted); font-size: 13px; }
.entity-detail h3 { margin: 28px 0 12px; }
.entity-records-disclosure { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.entity-records-disclosure > summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--ink); font-weight: 850; cursor: pointer; list-style: none; }
.entity-records-disclosure > summary::-webkit-details-marker { display: none; }
.entity-records-disclosure > summary::after { content: "＋"; margin-left: auto; color: var(--green); }
.entity-records-disclosure[open] > summary::after { content: "−"; }
.entity-records-disclosure > summary span:last-child { color: var(--muted); font-size: 12px; font-weight: 700; }
.entity-records-disclosure .history-list { padding: 0 10px 10px; }
.entity-match { display: grid; grid-template-columns: 105px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); padding: 13px 15px; }
.entity-match strong { font-size: 14px; }
.entity-match p, .entity-honor-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.result-badge { min-width: 32px; padding: 6px 8px; text-align: center; font-size: 12px; font-weight: 900; }
.result-win { background: var(--yellow); }
.result-loss { background: var(--soft); color: var(--muted); }
.result-draw { background: #e8e8e8; }
.entity-honor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.entity-honor-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; border: 1px solid var(--line); padding: 13px 15px; }
.entity-honor-row > span { color: var(--muted); font-size: 12px; }
.history-list { display: grid; gap: 9px; }
.history-item { display: grid; grid-template-columns: 105px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); padding: 13px 15px; background: white; }
.history-date { color: var(--muted); font-size: 12px; }
.history-item strong { font-size: 14px; }
.history-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.history-badge { min-width: 0; padding: 6px 8px; background: var(--soft); font-size: 11px; font-weight: 900; overflow-wrap: anywhere; }

.report-intro { padding-bottom: 42px; }
.report-page { display: grid; gap: 18px; align-content: start; padding-bottom: 90px; }
.report-card { position: relative; border: 1px solid var(--line); border-top: 7px solid var(--green); padding: 26px; background: white; box-shadow: var(--shadow); }
.report-form-card, .report-ai-card, .report-contact-row, .report-note { width: min(100%, 820px); }
.report-icons { display: flex; gap: 10px; }
.report-card .kicker { margin-top: 16px; }
.report-card h2 { margin: 0; font-size: 25px; }
.report-card > p:not(.kicker) { color: var(--muted); line-height: 1.75; }
.report-card ul { margin: 18px 0 24px; padding-left: 20px; color: var(--muted); line-height: 1.9; }
.report-icon { display: grid; width: 48px; height: 48px; place-items: center; background: var(--yellow); font-size: 24px; }
.report-link { display: inline-flex; min-height: 46px; align-items: center; border: 2px solid var(--ink); padding: 0 16px; background: var(--yellow); color: var(--ink); font-weight: 900; text-decoration: none; box-shadow: 4px 4px 0 var(--coral); }
.report-link.is-disabled { border-color: var(--line); background: var(--soft); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.report-note { margin-top: 20px; border-left: 5px solid var(--teal); padding: 18px 20px; background: #e9f2ed; }
.report-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.75; }
.report-ai-card { border-top-color: var(--yellow); }
.report-ai-card > p:not(.kicker) { margin: 8px 0 12px; color: var(--muted); line-height: 1.65; }
.report-ai-card pre { max-height: 260px; overflow: auto; border: 1px solid #d7e1d9; border-radius: 10px; padding: 13px; background: #f8faf7; color: var(--ink); font-family: inherit; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.report-copy-button { min-height: 44px; border: 1px solid var(--green-dark); border-radius: 999px; padding: 0 18px; background: var(--green); color: white; font-weight: 850; cursor: pointer; }
.report-copy-button:hover, .report-copy-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; background: var(--green-dark); }
.report-copy-status { display: inline-block; margin-left: 10px; color: var(--green-dark); font-size: 13px; font-weight: 750; }
.report-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-contact-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #f6f5ef; color: var(--muted); }
.report-contact-card a { display: flex; min-height: 44px; align-items: center; margin-top: 5px; color: var(--green-dark); font-weight: 850; overflow-wrap: anywhere; }
.home-snapshot-status { margin: 0 auto 8px; width: min(100% - 32px, 1180px); color: var(--muted); font-size: 12px; }

.archive-intro { padding-bottom: 22px; }
.archive-page { padding-bottom: 84px; }
.archive-mode-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.archive-mode-button { min-height: 92px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 13px; border: 2px solid var(--line); padding: 15px 18px; background: white; color: var(--ink); cursor: pointer; text-align: left; }
.archive-mode-button > span { grid-row: 1 / 3; font-size: 28px; }
.archive-mode-button strong { align-self: end; font-size: 18px; }
.archive-mode-button small { align-self: start; color: var(--muted); font-size: 12px; }
.archive-mode-button.is-active { border-color: var(--green-dark); background: #e9f5ef; box-shadow: 5px 5px 0 var(--yellow); }
.archive-warning { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-bottom: 24px; border: 2px solid var(--ink); border-left: 8px solid var(--coral); padding: 17px 20px; background: #fff6d9; box-shadow: 5px 5px 0 var(--yellow); }
.archive-warning > span { font-size: 25px; }
.archive-warning strong { line-height: 1.55; }
.archive-warning p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.archive-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 24px; align-items: start; }
.team-archive-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.record-form, .record-summary { min-width: 0; border: 1px solid var(--line); padding: 24px; background: white; box-shadow: var(--shadow); }
.record-form { position: sticky; top: 88px; border-top: 7px solid var(--green); }
.record-summary { border-top: 7px solid var(--teal); }
.record-form-heading, .record-summary-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.record-form-heading h2, .record-summary-heading h2 { margin: 0; font-size: 24px; }
.record-form-heading > span, .record-summary-heading > strong { padding: 7px 10px; background: var(--soft); color: var(--green); font-size: 12px; font-weight: 900; white-space: nowrap; }
.record-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.record-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 850; }
.record-field-wide { grid-column: 1 / -1; }
.record-competition-field { position: relative; }
.record-field input, .record-field select { width: 100%; min-height: 46px; border: 2px solid var(--ink); border-radius: 0; padding: 0 12px; background: white; color: var(--ink); }
.record-field input:disabled { border-color: var(--line); background: var(--soft); color: var(--muted); }
.record-score-input { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; align-items: center; gap: 7px; }
.record-score-input em { color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; }
.record-score-input input:last-child { padding-inline: 8px; text-align: center; }
.team-score-table { margin-top: 18px; border: 2px solid var(--ink); }
.team-side-entry { margin-top: 18px; border: 1px solid var(--line); padding: 14px; background: var(--paper); }
.team-side-entry h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; }
.team-side-entry .team-score-table { margin-top: 10px; }
.team-side-badge { padding: 3px 7px; background: var(--yellow); color: var(--green-dark); font-size: 10px; }
.team-side-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 9px; margin-top: 10px; }
.team-side-extras label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 850; }
.team-side-extras input { width: 100%; min-width: 0; min-height: 40px; border: 2px solid var(--ink); padding: 0 9px; background: white; }
.team-side-extras > strong { min-width: 84px; padding: 11px 9px; background: var(--green-dark); color: white; font-size: 11px; text-align: center; }
.team-score-head, .team-score-row { display: grid; grid-template-columns: 72px repeat(3, minmax(0, 1fr)); align-items: stretch; }
.team-score-head { background: var(--green-dark); color: white; font-size: 12px; font-weight: 900; text-align: center; }
.team-score-head span { padding: 9px 5px; border-left: 1px solid rgba(255,255,255,.25); }
.team-score-head span:first-child { border-left: 0; }
.team-score-head small { color: #d6e5de; font-size: 9px; }
.team-score-row { border-top: 1px solid var(--line); }
.team-score-row strong { display: grid; place-items: center; background: var(--soft); color: var(--green-dark); }
.team-score-row input { width: 100%; min-width: 0; min-height: 48px; border: 0; border-left: 1px solid var(--line); padding: 0 8px; background: white; text-align: center; }
.team-score-row input:focus { position: relative; z-index: 1; outline: 2px solid var(--teal); }
.team-total-fields { margin-top: 15px; }
.record-suggestions { position: absolute; z-index: 10; top: calc(100% + 3px); right: 0; left: 0; max-height: 260px; border: 2px solid var(--ink); background: white; box-shadow: 5px 5px 0 var(--yellow); overflow-y: auto; }
.record-suggestions button { width: 100%; display: block; border: 0; border-bottom: 1px solid var(--line); padding: 11px 12px; background: white; cursor: pointer; font-size: 13px; font-weight: 800; text-align: left; }
.record-suggestions button:last-child { border-bottom: 0; }
.record-suggestions button:hover, .record-suggestions button:focus-visible { background: #e9f5ef; color: var(--green-dark); }
.record-checks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.record-checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 850; cursor: pointer; }
.record-checks input { width: 19px; height: 19px; accent-color: var(--green); }
.record-message { min-height: 21px; margin: 15px 0 3px; color: var(--green); font-size: 12px; font-weight: 800; line-height: 1.55; }
.record-message.is-error { color: #a12b1c; }
.record-actions, .record-data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.record-button, .record-import { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); padding: 0 15px; cursor: pointer; font-weight: 900; }
.record-button-primary { background: var(--yellow); box-shadow: 4px 4px 0 var(--coral); }
.record-button-secondary { background: white; color: var(--green); }
.record-button-danger { border-color: #a12b1c; background: white; color: #a12b1c; }
.record-button-danger:hover { background: #fff0ed; }
.record-button:disabled { border-color: var(--line); background: var(--soft); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.record-import { position: relative; background: var(--green); color: white; overflow: hidden; }
.record-import input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.record-import:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.record-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.team-record-explanation { margin: 16px 0 0; border-left: 5px solid var(--yellow); padding: 12px 14px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.7; }
.team-radar-card { margin-top: 18px; }
.record-stat { min-height: 98px; display: grid; align-content: space-between; border: 1px solid var(--line); padding: 13px; background: var(--soft); }
.record-stat-primary { border-color: var(--green); background: #e9f5ef; }
.record-stat span { color: var(--muted); font-size: 11px; font-weight: 850; }
.record-stat strong { color: var(--green-dark); font-size: 27px; }
.record-stat small { color: var(--muted); font-size: 12px; }
.record-visualizations { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.record-chart { position: relative; min-width: 0; border: 1px solid var(--line); padding: 13px; background: var(--paper); }
.record-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-chart-heading > div { display: grid; gap: 2px; }
.record-chart-heading h3 { margin: 0; font-size: 16px; }
.record-chart-heading span { color: var(--muted); font-size: 10px; font-weight: 800; }
.record-chart-heading button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); background: white; color: var(--green-dark); cursor: pointer; font-size: 18px; line-height: 1; }
.record-chart-heading button:not(:disabled):hover, .record-chart-heading button:not(:disabled):focus-visible { border-color: var(--green); background: #e9f5ef; }
.record-chart-heading button:disabled { border-color: var(--line); background: var(--soft); color: var(--muted); cursor: not-allowed; }
.record-chart-empty { min-height: 135px; display: grid; align-content: center; justify-items: center; color: var(--muted); text-align: center; }
.record-chart-empty strong { color: var(--ink); }
.record-chart-empty p { max-width: 330px; margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.radar-svg { width: min(100%, 260px); display: block; margin: 2px auto 0; overflow: visible; }
.radar-grid polygon { fill: none; stroke: #d8ddd7; stroke-width: 1; }
.radar-grid line { stroke: #c6cec8; stroke-width: 1; }
.radar-grid text { fill: var(--ink); font-size: 11px; font-weight: 800; }
.radar-data { fill: rgba(23, 107, 82, .22); stroke: var(--green); stroke-width: 3; }
.radar-svg circle { fill: var(--coral); stroke: white; stroke-width: 2; }
.progress-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.progress-svg { width: 100%; min-width: 0; display: block; margin-top: 10px; }
.record-chart-dialog { position: fixed; inset: 24px; width: auto; max-width: none; max-height: none; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr); border: 0; padding: 24px; background: white; box-shadow: 0 18px 70px rgba(8, 35, 28, .28); overflow: auto; }
.record-chart-dialog::backdrop { background: rgba(8, 35, 28, .72); }
.record-chart-dialog .record-chart { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border: 0; padding: 0; overflow: visible; }
.record-chart-dialog .radar-svg { width: min(80vh, 680px); }
.record-chart-dialog .progress-svg { min-width: 720px; }
body.chart-expanded { overflow: hidden; }
.progress-grid line { stroke: #d8ddd7; stroke-width: 1; }
.progress-grid text, .progress-dates text { fill: var(--muted); font-size: 10px; }
.progress-series polyline { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.progress-series circle { stroke: white; stroke-width: 2; }
.progress-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 10px; font-weight: 800; }
.progress-legend span { display: inline-flex; align-items: center; gap: 4px; }
.progress-legend i { width: 9px; height: 9px; border-radius: 50%; }
.chart-data { margin-top: 10px; border-top: 1px solid var(--line); }
.chart-data summary { width: fit-content; min-height: 44px; display: flex; align-items: center; padding: 0 4px; color: var(--green-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.chart-data summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.chart-data-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.chart-data table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.chart-data caption { padding: 5px 0; color: var(--muted); font-size: 11px; text-align: left; }
.chart-data th, .chart-data td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.chart-data th { color: var(--green-dark); }
.personal-record-list { display: grid; gap: 10px; margin-top: 24px; }
.ballot-group { border: 2px solid var(--ink); background: white; }
.ballot-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--green-dark); color: white; }
.ballot-group-heading > div { display: grid; gap: 2px; }
.ballot-group-heading span { color: #d6e5de; font-size: 10px; font-weight: 850; }
.ballot-group-heading strong { font-size: 15px; }
.ballot-group-heading small { color: var(--yellow); font-size: 10px; font-weight: 900; }
.ballot-group-list { display: grid; gap: 8px; padding: 9px; }
.personal-record-item { border: 1px solid var(--line); border-left: 6px solid var(--green); padding: 15px; background: var(--paper); }
.personal-record-title { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.personal-record-title > div { display: grid; gap: 3px; }
.personal-record-title span { color: var(--coral-text); font-size: 10px; font-weight: 950; }
.personal-record-title strong { font-size: 15px; }
.personal-record-title small { color: var(--muted); }
.personal-record-controls { display: flex; gap: 4px; }
.personal-record-title button { border: 0; padding: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; }
.personal-record-title button:hover { color: var(--coral-text); }
.personal-record-scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 13px; }
.personal-record-scores span { padding: 8px; background: white; color: var(--muted); font-size: 11px; text-align: center; }
.personal-record-scores b { display: block; margin-top: 2px; color: var(--ink); font-size: 14px; }
.team-match-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--soft); color: var(--muted); font-size: 11px; }
.team-match-result strong { color: var(--ink); font-size: 14px; }
.team-match-result.is-win { background: #dff3e9; }
.team-match-result.is-win strong { color: var(--green-dark); }
.team-match-result.is-loss { background: #fff0ed; }
.team-match-result.is-loss strong { color: #a12b1c; }
.team-ballot-scores { display: grid; gap: 7px; margin-top: 12px; }
.team-ballot-scores > div { display: grid; grid-template-columns: 54px repeat(3, minmax(0, 1fr)); gap: 5px; align-items: center; }
.team-ballot-scores > div > strong { color: var(--green-dark); font-size: 12px; }
.team-ballot-scores span { padding: 6px; background: white; color: var(--muted); font-size: 10px; text-align: center; }
.team-ballot-scores b { display: block; color: var(--ink); font-size: 13px; }
.team-ballot-scores .team-ballot-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 59px; }
.team-ballot-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.team-ballot-side { min-width: 0; border: 1px solid var(--line); padding: 9px; background: white; }
.team-ballot-side > strong { display: block; margin-bottom: 7px; color: var(--green-dark); font-size: 12px; }
.team-ballot-side > div { display: grid; grid-template-columns: 30px repeat(3, minmax(0, 1fr)); gap: 4px; align-items: center; margin-top: 4px; }
.team-ballot-side b { color: var(--ink); font-size: 10px; }
.team-ballot-side span { padding: 4px; background: var(--soft); color: var(--muted); font-size: 9px; text-align: center; }
.team-ballot-side small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.record-empty { min-height: 180px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.record-empty > span { font-size: 32px; }
.record-empty strong { margin-top: 8px; color: var(--ink); }
.record-empty p { margin: 5px 0 0; font-size: 12px; }

footer { border-top: 1px solid var(--line); padding: 27px 0; background: var(--ink); color: white; }
footer .page-shell { display: flex; justify-content: space-between; gap: 18px; }
footer span { color: #b8c1bc; font-size: 12px; }
footer a { margin-left: 12px; color: var(--yellow); font-weight: 800; }
.data-error { min-height: calc(100vh - 130px); display: grid; align-content: center; justify-items: start; padding-block: 70px; }
.data-error > span { font-size: 52px; }
.data-error h1 { margin: 12px 0 6px; font-size: clamp(28px, 5vw, 46px); }
.data-error p { max-width: 650px; color: var(--muted); line-height: 1.75; }
.data-error code { padding: 2px 5px; background: var(--soft); }

.mobile-home, .mobile-rankings-title { display: none; }
.mobile-menu-toggle, .mobile-quick-menu { display: none; }
.member-site-version { margin:4px 4px 0; padding:10px 12px 4px; border-top:1px solid #d8e4dd; color:var(--muted); font-size:13px; line-height:1.5; text-align:center; }
.nav-icon { display: none; }
.detail-page-shell { padding-top: 26px; padding-bottom: 90px; }
.event-back-button { display: inline-flex; min-height: 38px; align-items: center; margin: 0 0 16px; border: 1px solid #d9e6dd; border-radius: 999px; padding: 0 14px; background: #eef5f0; color: var(--green-dark); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.event-back-button:hover { background: #dcece2; }
.inline-entity-link, .entity-event-link { border: 0; padding: 0; background: transparent; color: var(--green-dark); font: inherit; font-weight: inherit; text-align: inherit; text-decoration: underline; text-decoration-color: rgba(23,107,82,.32); text-underline-offset: 2px; cursor: pointer; }
.inline-entity-link:hover, .entity-event-link:hover { color: var(--coral-text); text-decoration-color: currentColor; }
.team-name-link { color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.entity-event-list .entity-event-link { display: inline-flex; align-items: center; min-height: 32px; border-radius: 8px; padding: 6px 10px; background: var(--soft); color: var(--green-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.entity-event-list .entity-event-link:hover { background: #dcece2; }

@media (max-width: 900px) {
  .archive-layout { grid-template-columns: 1fr; }
  .record-form { position: static; }
  .record-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-content-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-finder-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-honor-list { grid-template-columns: 1fr; }
  .entity-trophy-list { grid-template-columns: 1fr; gap: 7px; }
  .entity-trophy-card { min-height: 46px; padding-block: 7px; }
  .entity-trophy-heading { gap: 5px 8px; }
  .match-row { grid-template-columns: 58px minmax(0, 1fr) 62px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .event-roster-grid { grid-template-columns: minmax(0, 1fr); }
  .event-rosters { padding: 12px; }
  /* Keep page movement vertical; horizontal movement belongs to the card rails. */
  html { overflow-x: hidden; scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  body { min-width: 0; overflow-x: clip; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  #homeView, #homeView > * { min-width: 0; }

  /* Mobile home is a separate presentation; desktop content and order stay intact. */
  #homeView:not(.is-hidden) { display: flex; flex-direction: column; gap: 0; }
  #homeView > .upcoming-events-section { order: 2; width: 100%; padding: 20px 14px 22px; }
  .upcoming-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 12px; }
  .upcoming-section-heading .section-heading { margin: 0; }
  .upcoming-section-heading .section-heading h2 { font-size: 21px; }
  .upcoming-section-heading .kicker { margin-bottom: 3px; }
  .calendar-link-section { width: 100%; justify-content: flex-start; gap: 9px; }
  .calendar-subscribe-button { min-height: 44px; padding: 0 12px; font-size: 11px; }
  .calendar-platform-note { max-width: 210px; font-size: 9px; line-height: 1.35; }
  #homeView.is-hidden { display: none; }
  #homeView > .mobile-home { order: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 11px; padding-top: 12px; padding-bottom: 8px; }
  #homeView > .mobile-home > .mobile-home-search { display: none; }
  #homeView > .mobile-home > * { width: 100%; min-width: 0; }
  #homeView > .hero, #homeView > .stats-band,
  #homeView > .timeline-band, #homeView > .collected-events { display: none; }
  #homeView > .leaderboard-band { order: 3; width: 100%; padding: 24px 0 calc(34px + env(safe-area-inset-bottom)); }
  #homeView > .leaderboard-band .section-heading { display: none; }
  .mobile-home-section .section-heading { align-items: baseline; margin-bottom: 10px; }
  .mobile-home-section .section-heading { margin-bottom: 7px; }
  .mobile-home-section .section-heading h1, .mobile-home-section .section-heading h2, .mobile-rankings-title { margin: 0; font-size: 18px; line-height: 1.2; }
  #mobileRecentTitle { max-width: 74%; font-size: 15px !important; line-height: 1.35 !important; }
  #mobileRecentTitle span { color: var(--green); font-variant-numeric: tabular-nums; }
  .mobile-home-hint { color: var(--muted); font-size: 12px; }
  .mobile-results-strip { display: grid; width: 100%; min-width: 0; grid-auto-flow: column; grid-auto-columns: clamp(172px, 54vw, 214px); gap: 10px; margin-right: -12px; padding: 2px 12vw 7px 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--green) transparent; }
  .mobile-results-strip .event-card { position: relative; z-index: 0; min-height: 172px; padding: 8px 10px; overflow: visible; border: 0; border-radius: 13px; background: #176b52; color: #fff; scroll-snap-align: start; }
  .mobile-results-strip .event-card:nth-child(even) { background: #287e62; }
  .mobile-results-strip .event-card::after { display: none; }
  .mobile-results-strip .event-card-time { position: relative; z-index: 0; display: flex; align-items: flex-start; gap: 8px; min-height: 32px; overflow: visible; }
  .mobile-results-strip .event-card-time::before { position: absolute; z-index: 0; top: 26px; right: -22px; left: 2px; height: 2px; background: rgba(226, 243, 233, .66); content: ""; }
  .mobile-results-strip .event-time-point { position: relative; z-index: 1; flex: 0 0 10px; width: 10px; height: 10px; margin-top: 22px; border: 2px solid #d5eedc; border-radius: 50%; background: #f7d971; box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
  .mobile-results-strip .event-date { position: relative; z-index: 1; padding: 0 3px; background: #176b52; color: #e5f2e9; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
  .mobile-results-strip .event-card:nth-child(even) .event-date { background: #287e62; }
  .mobile-results-strip .event-card h3 { display: -webkit-box; margin: 3px 0; overflow: hidden; font-size: 12px; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .mobile-results-strip .event-card-topic { font-size: 11px; -webkit-line-clamp: 1; }
  .mobile-results-strip .event-card-topics { gap: 2px; margin: 0 0 4px; }
  .mobile-results-strip .event-card-topic { color: #e0f0e6; }
  .mobile-results-strip .event-card-topic span { color: #bfe2cc; }
  .mobile-results-strip .event-card-honors { display: grid; gap: 2px; margin: 2px 0 1px; padding: 0; list-style: none; }
  .mobile-results-strip .event-card-honors { gap: 3px; margin: 1px 0 1px; }
  .mobile-results-strip .event-card-honors li { gap: 5px; color: #f5efe0; font-size: 10px; line-height: 1.2; }
  .mobile-results-strip .event-card-honors .trophy-medal { width: 18px; height: 18px; flex-basis: 18px; border-radius: 5px; font-size: 9px; }
  .mobile-results-strip .event-card-honors .trophy-medal.gold { background: #f5d25e; color: #584508; }
  .mobile-results-strip .event-card-honors .trophy-medal.silver { background: #dce4e1; color: #394944; }
  .mobile-results-strip .event-card-honors .trophy-medal.bronze { background: #dca06f; color: #512d15; }
  .mobile-results-strip .event-card-honors .trophy-medal.white { border-color: #dce4e1; background: #fff; color: #53645d; }
  .mobile-results-strip .event-card-honors .event-honor-recipient { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-results-strip .event-card-meta { gap: 9px; color: #e0f0e6; font-size: 11px; }
  .mobile-results-strip .event-card-champion { display: block; max-width: 100%; margin-top: 3px; overflow: hidden; color: #f7efd1; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-results-strip .event-card-champion b { margin-right: 5px; color: #f7d971; }
  .mobile-home-search button { display: grid; grid-template-columns: 30px minmax(0,1fr) 18px; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 8px 12px; border: 1px solid #dfbf4f; border-radius: 15px; background: #f7d971; color: #27351f; text-align: left; cursor: pointer; }
  .mobile-home-search button>span:first-child { font-size: 24px; line-height: 1; }
  .mobile-home-search button>span:nth-child(2) { display: grid; gap: 2px; }
  .mobile-home-search strong { font-size: 14px; }
  .mobile-home-search small { color: #64572b; font-size: 12px; }
  .mobile-home-search button>b { font-size: 18px; }
  #mobileUpcomingEvents.upcoming-events-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(238px, 72vw, 280px); gap: 9px; margin-right: -14px; padding: 2px 16vw 9px 1px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; }
  .mobile-upcoming-card { min-height: 124px; gap: 4px; padding: 10px 11px; border-radius: 12px; }
  .mobile-upcoming-card h3 { font-size: 13px; }
  .mobile-upcoming-location { font-size: 10px; }
  .mobile-rankings-title { display: block; width: min(100% - 24px, 1180px); margin: 0 auto 10px; }
  #homeView > .leaderboard-band .page-shell { width: 100%; }
  #homeView > .leaderboard-band .leaderboard-scroll { width: calc(100% - 24px); margin: 0 auto; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; padding: 0 0 8px; overflow: visible; scroll-snap-type: none; }
  #homeView > .leaderboard-band .leaderboard-controls { width: calc(100% - 24px); margin: 0 auto 10px; font-size: 10px; }
  #homeView > .leaderboard-band .leaderboard-range-legend { gap: 4px; white-space: nowrap; }
  #homeView > .leaderboard-band[data-range="all"] { background: #fff1bf; }
  #homeView > .leaderboard-band .honor-range-toggle { min-height: 44px; flex: 0 0 auto; padding: 0 10px; font-size: 10px; }
  #homeView > .leaderboard-band .leaderboard-panel { min-width: 0; padding: 10px; border-top-width: 4px; border-radius: 13px; box-shadow: 0 3px 12px rgba(23,33,29,.07); }
  #homeView > .leaderboard-band .olympic-panel { margin: 0 12px 12px; padding: 12px; }
  #homeView > .leaderboard-band .olympic-panel h3 { margin-bottom: 9px; font-size: 16px; }
  #homeView > .leaderboard-band .olympic-filters { display: none; }
  #homeView > .leaderboard-band .mobile-olympic-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
  #homeView > .leaderboard-band .olympic-filter { min-width: 0; min-height: 44px; justify-content: center; gap: 4px; padding: 3px 4px; font-size: 10px; white-space: nowrap; }
  #homeView > .leaderboard-band .olympic-filter .trophy-medal { width: 19px; height: 19px; font-size: 9px; }
  #homeView > .leaderboard-band .medal-set { display: inline-flex; align-items: center; gap: 1px; }
  #homeView > .leaderboard-band .medal-set i { display: inline-grid; width: 15px; height: 18px; place-items: center; border-radius: 5px; font-size: 8px; font-style: normal; }
  #homeView > .leaderboard-band .medal-set .gold { background: var(--yellow); }
  #homeView > .leaderboard-band .medal-set .silver { background: #dfe6e3; }
  #homeView > .leaderboard-band .medal-set .bronze { background: #dfa06e; }
  #homeView > .leaderboard-band .medal-set .white { background: #fff; box-shadow: 0 1px 2px #0003; }
  #homeView > .leaderboard-band .olympic-table-wrap { display: none; }
  #homeView > .leaderboard-band .mobile-honor-ranking { display: grid; width: 100%; min-height: 190px; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; overflow: visible; list-style: none; }
  #homeView > .leaderboard-band .mobile-honor-ranking li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--line); }
  #homeView > .leaderboard-band .mobile-honor-ranking li:last-child { border-bottom: 0; }
  #homeView > .leaderboard-band .mobile-honor-rank { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--soft); font-size: 10px; font-weight: 850; }
  #homeView > .leaderboard-band .mobile-honor-ranking li:first-child .mobile-honor-rank { background: var(--yellow); }
  #homeView > .leaderboard-band .mobile-honor-ranking strong { overflow: hidden; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  #homeView > .leaderboard-band .mobile-honor-ranking strong .inline-entity-link { display: inline-flex; min-height: 44px; align-items: center; }
  #homeView > .leaderboard-band .mobile-honor-values { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 3px; color: var(--green-dark); white-space: nowrap; }
  #homeView > .leaderboard-band .mobile-team-awards { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; }
  #homeView > .leaderboard-band .mobile-award-value { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 1px; font-size: 9px; font-weight: 850; white-space: nowrap; }
  #homeView > .leaderboard-band .mobile-award-value .trophy-medal { display: inline-grid; width: 17px; height: 17px; place-items: center; border-radius: 6px; font-size: 8px; font-style: normal; }
  #homeView > .leaderboard-band .mobile-total-value { flex: 0 0 auto; font-size: 11px; font-weight: 900; }
  #homeView > .leaderboard-band .mobile-total-value small { margin-left: 2px; color: var(--muted); font-size: 9px; }
  #homeView > .leaderboard-band .mobile-honor-empty { display: block; min-height: 36px; padding: 10px 0; color: var(--muted); font-size: 12px; text-align: center; }
  #homeView > .leaderboard-band .leaderboard-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #homeView > .leaderboard-band .leaderboard-scroll .leaderboard-panel { padding: 8px 7px; }
  #homeView > .leaderboard-band .leaderboard-panel h3 { min-height: 30px; margin-bottom: 4px; font-size: 11px; line-height: 1.2; }
  #homeView > .leaderboard-band .ranking-list li { grid-template-columns: 17px minmax(0,1fr) auto; gap: 3px; min-height: 31px; }
  #homeView > .leaderboard-band .ranking-list li::before { width: 16px; height: 16px; font-size: 8px; }
  #homeView > .leaderboard-band .ranking-list li strong { overflow: hidden; font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  #homeView > .leaderboard-band .ranking-list li span { font-size: 8px; white-space: nowrap; }
  #homeView > .leaderboard-band .ranking-list li div>span { display: none; }
  #homeView > .leaderboard-band .ranking-list li:nth-child(n + 6) { display: none; }
  .page-shell, .hero-content, .stats-band { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 60px; gap: 6px; padding-inline: 12px; }
  .brand { flex: 0 0 auto; max-width: none; gap: 8px; font-size: 13px; white-space: nowrap; }
  .brand > span:last-child { max-width: none; line-height: 1.1; white-space: nowrap; }
  .brand-mark { flex: 0 0 34px; width: 34px; height: 34px; }
  .mobile-menu-toggle { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(23,33,29,.12); border-radius: 14px; background: #fffdfa; color: var(--ink); box-shadow: 0 3px 10px rgba(23,33,29,.08); font-size: 21px; cursor: pointer; }
  .mobile-menu-toggle[aria-expanded="true"] { background: #e7f1eb; color: var(--green-dark); }
  .mobile-quick-menu:not([hidden]) { position: absolute; z-index: 120; top: calc(100% + 7px); right: 12px; display: grid; width: min(260px, calc(100vw - 24px)); gap: 4px; padding: 8px; border: 1px solid rgba(23,33,29,.12); border-radius: 18px; background: rgba(255,253,248,.98); box-shadow: 0 12px 32px rgba(23,33,29,.2); }
  .mobile-quick-menu button { display: flex; align-items: center; gap: 12px; min-height: 46px; border: 0; border-radius: 12px; padding: 0 12px; background: transparent; color: var(--ink); text-align: left; font: inherit; font-weight: 750; cursor: pointer; }
  .mobile-quick-menu button:hover, .mobile-quick-menu button:focus-visible { outline: 0; background: #e7f1eb; color: var(--green-dark); }
  .mobile-quick-menu button span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: #edf3ee; font-size: 17px; }
  .mobile-quick-menu button span .nav-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; }
  .main-nav { position: fixed; z-index: 100; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 12px; display: flex; height: 66px; gap: 4px; align-items: stretch; min-width: 0; overflow: visible; border: 1px solid rgba(23, 33, 29, .12); border-radius: 999px; padding: 5px; background: var(--paper); box-shadow: 0 8px 28px rgba(23, 33, 29, .2); }
  .nav-button { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; border: 0; border-radius: 999px; padding: 3px 2px; background: transparent; font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
  .nav-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav-button:hover, .nav-button.is-active { border: 0; border-radius: 999px; background: #e7f1eb; color: var(--green-dark); }
  .nav-button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
  .hero { height: 480px; }
  .hero img { object-position: 65% center; }
  .hero-shade { inset: auto 0 0; width: 100%; height: 66%; background: rgba(8, 35, 28, .9); }
  .hero-content { justify-content: flex-end; padding-bottom: 56px; }
  .hero h1 { font-size: 42px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .stat-item { padding: 13px; border-bottom: 1px solid var(--line); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item strong { font-size: 22px; }
  .timeline-band { padding: 50px 0 54px; }
  .event-timeline { display: grid; grid-auto-flow: row; grid-auto-columns: auto; max-height: 440px; min-width: 0; gap: 0; padding: 14px 8px 14px 20px; overflow-x: hidden; overflow-y: auto; cursor: auto; scrollbar-width: thin; overscroll-behavior-block: contain; }
  .event-timeline::-webkit-scrollbar { width: 8px; height: auto; }
  .event-timeline::before { top: 24px; bottom: 26px; left: 31px; width: 3px; height: auto; }
  .timeline-node { width: 100%; min-height: 104px; grid-template-columns: 34px 1fr; grid-template-rows: 26px auto; justify-items: start; padding: 0 0 16px; text-align: left; }
  .timeline-node::before { top: 0; bottom: 0; left: 11px; width: 3px; height: auto; }
  .timeline-date { grid-column: 2; align-self: end; }
  .timeline-dot { grid-column: 1; grid-row: 1 / 3; align-self: start; margin: 14px 0 0; }
  .timeline-name { grid-column: 2; max-width: none; margin-top: 4px; padding-right: 8px; font-size: 13px; }
  .timeline-tooltip { position: static; grid-column: 2; width: min(100%, 270px); margin-top: 8px; transform: none; opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
  .timeline-node:hover .timeline-tooltip, .timeline-node:focus .timeline-tooltip, .timeline-node:focus-visible .timeline-tooltip, .timeline-node.is-revealed .timeline-tooltip { max-height: 120px; transform: none; padding-top: 12px; padding-bottom: 12px; opacity: 1; }
  .collected-events { padding-top: 32px; padding-bottom: 28px; overflow: hidden; }
  .collected-events .section-heading { margin-bottom: 18px; }
  .event-grid { width: 100%; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 8px; padding: 2px 0 8px; overflow: visible; }
  .event-grid .event-card { min-height: 130px; gap: 5px; border-radius: 12px; padding: 10px; }
  .event-grid .event-card-honors { gap: 3px; }
  .event-grid .event-card-honors li { gap: 4px; font-size: 10px; }
  .event-grid .event-card-honors .trophy-medal { width: 19px; height: 19px; flex-basis: 19px; border-radius: 6px; font-size: 9px; }
  .event-grid .event-card h3 { display: -webkit-box; margin: 5px 0; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .event-grid .event-card-topics { display: none; }
  .event-grid .event-card-meta { gap: 6px; flex-wrap: wrap; font-size: 12px; }
  .leaderboard-band { padding-block: 54px; overflow: hidden; }
  .leaderboard-scroll { width: calc(100% - 24px); margin-inline: auto; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 4px 0 14px; overflow: visible; }
  .leaderboard-panel { min-width: 0; scroll-snap-align: none; }
  .olympic-panel { margin-inline: 0; padding: 14px; }
  .entity-grid { grid-template-columns: 1fr; }
  .overview-toolbar { display: grid; align-items: start; }
  .overview-filter { width: 100%; }
  .overview-stats-frame { padding: 14px; }
  .overview-stats-toolbar { gap: 12px; }
  .overview-stats-toolbar h2 { font-size: 22px; }
  .overview-stats-summary { grid-template-columns: 1fr; gap: 8px; }
  .overview-stats-card { padding: 11px 12px; }
  .overview-stats-years { gap: 6px; margin-top: 14px; }
  .overview-year-toggle { min-height: 34px; padding-inline: 10px; }
  .overview-stats-meta { margin: 14px 0 9px; font-size: 12px; }
  .overview-stats-chart { overflow-x: hidden; padding: 10px 8px 3px; }
  .overview-stats-svg { min-width: 0; }
  .overview-entity-columns { gap: 7px; margin-top: 8px; }
  .overview-entity-group { padding: 8px; border-radius: 14px; }
  .overview-entity-group > h3 { margin-bottom: 7px; font-size: 14px; }
  .overview-entity-list { gap: 6px; }
  .overview-team-card { min-height: 76px; padding: 8px; }
  .overview-team-card strong { font-size: 12px; line-height: 1.35; }
  .overview-team-card small { font-size: 10px; line-height: 1.35; }
  .overview-team-controls { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .overview-team-controls > .overview-filter:first-child { grid-column: 1 / -1; }
  .overview-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .overview-topic-list { gap: 8px; margin-top: 14px; }
  .overview-topic-card { border-left-width: 4px; padding: 10px; }
  .overview-topic-card strong { font-size: 13px; line-height: 1.4; }
  .overview-topic-card p { font-size: 12px; line-height: 1.4; }
  .overview-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: hidden; border: 0; padding: 4px; border-radius: 18px; background: #edf3ee; }
  .overview-tab { display: grid; min-width: 0; min-height: 42px; place-items: center; border-radius: 999px; padding-inline: 3px; background: transparent; white-space: nowrap; }
  .overview-tab-label-long { display: none !important; }
  .overview-tab .overview-tab-label-short { display: inline; }
  .overview-tab .overview-tab-count { display: none; }
  .overview-tab.is-active { border-radius: 999px; background: var(--green); box-shadow: 0 3px 9px rgba(15, 78, 60, .2); }
  .overview-filter input, .overview-filter select, .event-search-field input, .event-year-field select { border-radius: 14px; }
  .search-box { overflow: hidden; border: 1px solid rgba(23, 33, 29, .16); border-radius: 16px; box-shadow: 0 5px 16px rgba(8, 35, 28, .2); }
  .search-box button { border-radius: 999px; }
  .report-card, .report-note, .report-contact-card { border-radius: 18px; }
  .report-card { padding: 20px; box-shadow: 0 5px 18px rgba(23, 33, 29, .08); }
  .report-contact-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .report-contact-card { padding: 14px 16px; }
  .report-icon { border-radius: 12px; }
  .report-link { border-radius: 999px; box-shadow: 0 4px 12px rgba(128, 103, 16, .16); }
  .mobile-home-section .section-heading h1, .mobile-home-section .section-heading h2 { letter-spacing: -.02em; }
  .mobile-results-strip .event-card, .mobile-upcoming-card { box-shadow: 0 5px 16px rgba(23, 33, 29, .08); }
  .mobile-home-search button { box-shadow: 0 4px 12px rgba(128, 103, 16, .14); }
  #overviewView .page-intro, .archive-intro { padding: 20px 0 10px; }
  .page-intro > p:last-child { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
  .overview-page { padding-bottom: 36px; }
  .overview-tabs { gap: 3px; margin-bottom: 12px; }
  .overview-tab { min-height: 44px; padding-inline: 2px; font-size: 13px; }
  .event-browser { padding-bottom: 18px; }
  #overviewView.is-event-open > .page-intro, #overviewView.is-event-open .overview-tabs { display: none; }
  #overviewView.is-event-open .overview-page { padding-top: 14px; }
  #overviewEventsPanel.is-event-open .event-finder { display: none; }
  #overviewEventsPanel.is-event-open .event-browser { padding-top: 0; }
  #overviewEventsPanel.is-event-open #eventDetail { padding-top: 0; }
  .event-back-button { min-height: 44px; margin-bottom: 10px; }
  .topic-title-link { display: flex; min-height: 44px; align-items: center; }
  #eventDetail .inline-entity-link,
  #eventDetail .entity-event-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; vertical-align: middle; }
  #overviewEventsPanel.is-event-open .event-summary { display: grid; gap: 9px; margin: 0 0 15px; }
  #overviewEventsPanel.is-event-open .event-summary h2 { font-size: 22px; }
  #overviewEventsPanel.is-event-open .event-content-grid { display: flex; flex-direction: column; gap: 18px; }
  #overviewEventsPanel.is-event-open .event-honors { order: -1; width: 100%; box-sizing: border-box; }
  .detail-page-shell { padding-top: 12px; padding-bottom: 96px; }
  .detail-page-shell .event-back-button,
  .detail-page-shell .topic-event-link,
  .detail-page-shell summary { min-height: 44px; }
  .detail-page-shell .topic-event-link { display: flex; width: 100%; align-items: center; margin-top: 4px; padding-inline: 6px; }
  .detail-page-shell .inline-entity-link,
  .detail-page-shell .entity-event-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; vertical-align: middle; }
  .detail-page-shell .entity-event-list .entity-event-link { min-height: 44px; }
  .event-summary { display: grid; gap: 9px; margin-bottom: 15px; }
  .event-summary h2 { font-size: 22px; }
  .event-content-grid { display: flex; flex-direction: column; gap: 18px; }
  .event-honors { order: -1; width: 100%; box-sizing: border-box; }
  .event-finder { border-radius: 16px; border-top-width: 4px; padding: 12px; box-shadow: 0 3px 12px rgba(23, 33, 29, .06); }
  .event-finder-heading { gap: 8px; }
  .event-finder-heading h2 { font-size: 17px; }
  .event-finder-heading p { display: none; }
  .event-finder-heading span { font-size: 12px; white-space: nowrap; }
  .event-filter-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .event-search-field { grid-column: 1 / -1; }
  .event-search-field, .event-year-field, .event-sort-field { gap: 4px; font-size: 12px; }
  .event-search-field input, .event-year-field select, .event-sort-field select { min-height: 44px; padding-inline: 9px; font-size: 13px; }
  #eventFinderResults { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 0; max-height: none; margin-top: 14px; padding: 0; overflow: visible; }
  #eventFinderResults::before { position: absolute; top: 12px; bottom: 12px; left: 50%; width: 2px; background: linear-gradient(var(--yellow), #d8e7dc 35%, #d8e7dc 65%, var(--coral)); content: ""; }
  #eventFinderResults .event-year-divider { position: relative; z-index: 1; grid-column: 1 / -1; justify-self: center; margin: 3px 0; border: 1px solid #d5e4d9; border-radius: 999px; padding: 5px 12px; background: var(--paper); color: var(--green-dark); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
  #eventFinderResults .event-result-card { position: relative; min-width: 0; min-height: 128px; gap: 5px; border: 1px solid #c9ddd0; border-radius: 12px; padding: 10px; background: #edf5ef; box-shadow: 0 3px 10px rgba(23,33,29,.06); }
  #eventFinderResults .event-result-card[data-timeline-side="left"] { grid-column: 1; margin-right: 12px; border-top: 3px solid var(--green); }
  #eventFinderResults .event-result-card[data-timeline-side="right"] { grid-column: 2; margin-left: 12px; border-color: #c8dfdd; border-top: 3px solid var(--teal); background: #eaf4f2; }
  #eventFinderResults .event-result-card[data-timeline-side="left"]::after, #eventFinderResults .event-result-card[data-timeline-side="right"]::after { position: absolute; top: 18px; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); content: ""; }
  #eventFinderResults .event-result-card[data-timeline-side="left"]::after { right: -20px; }
  #eventFinderResults .event-result-card[data-timeline-side="right"]::after { left: -20px; }
  #eventFinderResults .event-result-card[data-axis-label]::before { position: absolute; z-index: 2; top: 50%; border: 1px solid #d5e4d9; border-radius: 999px; padding: 4px 8px; background: var(--paper); color: var(--green-dark); content: attr(data-axis-label); font-size: 11px; font-weight: 900; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; }
  #eventFinderResults .event-result-card[data-timeline-side="left"][data-axis-label]::before { left: calc(100% + 12px); transform: translate(-50%, -50%); }
  #eventFinderResults .event-result-card[data-timeline-side="right"][data-axis-label]::before { right: calc(100% + 12px); transform: translate(50%, -50%); }
  #eventFinderResults .event-result-year { color: var(--green-dark); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 900; }
  #eventFinderResults .event-result-card strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  #eventFinderResults .event-result-card small { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .overview-toolbar { gap: 10px; margin-bottom: 6px; }
  .overview-toolbar h2 { font-size: 18px; }
  .overview-toolbar p { margin-top: 4px; font-size: 13px; line-height: 1.45; }
  .overview-filter { gap: 4px; font-size: 12px; }
  .overview-filter input, .overview-filter select { min-height: 44px; }
  #overviewTopicFilter { min-height: 44px; border-radius: 14px; }
  .overview-meta { margin: 8px 0; }
  .archive-page { padding-bottom: 44px; }
  .archive-intro h1 { font-size: 26px; }
  .archive-mode-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
  .archive-mode-button { min-height: 68px; grid-template-columns: 22px minmax(0, 1fr); column-gap: 7px; border-radius: 15px; padding: 9px; }
  .archive-mode-button > span { font-size: 19px; }
  .archive-mode-button strong { font-size: 14px; }
  .archive-mode-button small { font-size: 11px; line-height: 1.25; }
  .archive-warning { gap: 8px; margin-bottom: 12px; border-radius: 15px; border-left-width: 5px; padding: 10px; box-shadow: 0 3px 10px rgba(128, 103, 16, .1); }
  .archive-warning > span { font-size: 20px; }
  .archive-warning strong { font-size: 13px; line-height: 1.4; }
  .archive-warning p { margin-top: 3px; font-size: 12px; line-height: 1.4; }
  .archive-mode-button.is-active { box-shadow: 0 4px 13px rgba(15, 78, 60, .12); }
  .record-form, .record-summary { border-radius: 20px; padding: 18px; box-shadow: 0 5px 18px rgba(23, 33, 29, .08); }
  .record-form-heading, .record-summary-heading { gap: 8px; margin-bottom: 12px; }
  .record-form-heading h2, .record-summary-heading h2 { font-size: 18px; }
  .record-form-heading > span, .record-summary-heading > strong { border-radius: 999px; padding: 5px 8px; font-size: 12px; }
  .record-field input, .record-field select, .record-field textarea, .search-field input { border-radius: 12px; }
  .record-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .record-field { gap: 4px; font-size: 12px; }
  .record-field input, .record-field select, .record-field textarea, .search-field input { min-height: 44px; padding-inline: 8px; font-size: 14px; }
  .record-score-input { grid-template-columns: minmax(0, 1fr) auto 54px; gap: 4px; }
  .record-score-input em { font-size: 10px; }
  .record-score-input input:last-child { padding-inline: 3px; font-size: 12px; }
  .record-actions, .record-data-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .record-button, .record-import { width: 100%; min-height: 44px; border-radius: 13px; box-shadow: none; padding-inline: 8px; font-size: 13px; }
  .record-button-primary { border-color: var(--green); background: var(--green); color: #fff; }
  .record-button-secondary, .record-import { border-color: #cbded3; background: #f1f7f3; }
  .record-button-danger { border-radius: 14px; }
  .record-card, .record-form, .record-summary, .entity-card, .event-result-card, .overview-team-card, .overview-topic-card { border-radius: 18px; }
  .personal-record-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-score-head, .team-score-row { grid-template-columns: 52px repeat(3, minmax(0, 1fr)); }
  .team-score-row input { padding-inline: 3px; font-size: 12px; }
  .team-side-entry { margin-top: 12px; padding: 8px; }
  .team-score-head, .team-score-row { grid-template-columns: 42px repeat(3, minmax(0, 1fr)); }
  .team-score-row input { min-height: 44px; }
  .team-side-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-side-extras > strong { grid-column: 1 / -1; }
  .team-match-result { align-items: flex-start; flex-direction: column; }
  .team-ballot-scores > div { grid-template-columns: 38px repeat(3, minmax(0, 1fr)); }
  .team-ballot-scores .team-ballot-extras { grid-template-columns: 1fr 1fr; margin-left: 43px; }
  .team-ballot-comparison { grid-template-columns: 1fr; }
  .record-visualizations { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(86%, 86%); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
  .record-chart { scroll-snap-align: start; }
  .record-chart-dialog { inset: 10px; width: auto; padding: 16px; }
  .section-heading { align-items: flex-start; }
  .section-note { max-width: 150px; text-align: right; }
  .page-intro, .search-stage { padding-top: 42px; }
  .event-summary { grid-template-columns: 1fr; }
  .event-filter-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-search-field { grid-column: 1 / -1; }
  .event-finder-results { max-height: 430px; }
  .event-summary-count { flex-wrap: wrap; }
  .event-metadata { align-items: flex-start; gap: 8px 12px; font-size: 14px; line-height: 1.65; }
  .event-metadata small { width: 100%; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
  .event-metadata-note { margin-bottom: 18px; font-size: 14px; line-height: 1.75; }
  .topic-explanation { font-size: 14px; line-height: 1.75; }
  .topic-explanation p { margin-top: 10px; }
  .match-row { grid-template-columns: 46px minmax(0, 1fr) 52px minmax(0, 1fr); gap: 6px; padding-inline: 8px; }
  .match-place { font-size: 12px; line-height: 1.45; }
  .team-name { font-size: 13px; overflow-wrap: anywhere; }
  .match-note { font-size: 12px; line-height: 1.5; }
  .match-note-disclosure > summary { min-height: 44px; }
  .match-score { gap: 4px; font-size: 16px; }
  .history-item { grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; }
  .history-item .history-date { grid-column: 1; }
  .history-item > div { grid-column: 1; min-width: 0; }
  .history-item .history-badge { grid-column: 1; grid-row: auto; }
  .history-item strong { overflow-wrap: anywhere; line-height: 1.5; }
  .entity-detail-heading { display: grid; align-items: start; }
  .entity-match { grid-template-columns: 1fr auto; }
  .entity-match .history-date { grid-column: 1 / -1; }
  .entity-match .history-date { grid-column: 1 / -1; }
  footer .page-shell { display: grid; }
}

@media (max-width: 640px) and (max-height: 500px) {
  .main-nav { bottom: calc(6px + env(safe-area-inset-bottom)); height: 56px; padding: 4px; }
  .nav-button { gap: 1px; padding: 2px; font-size: 10px; }
  .nav-icon { width: 16px; height: 16px; flex-basis: 16px; }
}

@media (max-width: 360px) {
  .mobile-home-results .section-heading { align-items: center; }
  #mobileRecentTitle { max-width: 100%; font-size: 14px !important; white-space: nowrap; }
  .mobile-home-results .mobile-home-hint { display: none; }
  #eventFinderResults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-tabs { gap: 2px; }
  .overview-tab { min-height: 44px; padding-inline: 1px; font-size: 11px; }
  .record-form-grid { grid-template-columns: 1fr; }
  .record-score-input { grid-template-columns: minmax(0, 1fr) auto 68px; }
  .archive-mode-button { grid-template-columns: 18px minmax(0, 1fr); gap: 5px; padding: 8px; }
  .archive-mode-button small { display: none; }
}
@media (max-width: 380px) {
  #homeView > .leaderboard-band .leaderboard-controls { align-items: flex-start; flex-direction: column; gap: 6px; }
  #homeView > .leaderboard-band .leaderboard-range-legend { white-space: normal; flex-wrap: wrap; }
}
/* On wider screens, overview content follows the page instead of living in a nested card or scroller. */
@media (min-width: 601px) {
  #eventFinderResults { max-height: none; overflow: visible; padding-right: 0; }
}
@media (min-width: 901px) {
  #overviewView, #searchView, #archiveView { background: #f1f4f1; }
  #overviewView > .overview-page { margin-bottom: 52px; border: 0; border-radius: 0; padding: 20px 0 34px; background: transparent; box-shadow: none; }
  #overviewEventsPanel .event-finder { border: 0; padding: 0; background: transparent; box-shadow: none; }
  .overview-page { padding-bottom: 34px; }
  .overview-panel { min-height: 0; }
  .event-finder-results { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; overflow: visible; padding-right: 0; }
  .overview-topic-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-results { min-height: 0; padding-top: 34px; padding-bottom: 60px; }
  .archive-page { padding-bottom: 60px; }
  .archive-layout { gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .record-form, .record-summary { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* App readiness: preserve readable form fields and show offline state. */
.site-offline-notice { border-bottom:1px solid #d7bc61; padding:10px 20px; background:#fff3c8; color:#473b18; text-align:center; font-weight:750; }
.site-offline-notice[hidden] { display:none; }
@media (max-width:640px) { input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size:16px !important; } }


/* Member additions layered onto the public site source. */
.overview-search { margin-top: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.overview-global-search { margin: 0; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 18px rgba(8, 35, 28, .12); }
.overview-global-search input { min-height: 72px; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.overview-search-filters[hidden] { display: none; }
@media (max-width: 760px) {
  .overview-search { margin: 20px 14px 18px; padding: 0; }
  .overview-global-search input { min-height: 68px; }
}
.report-intro { display: none; }
.report-page { padding-top: 24px; }
.report-form-compact { justify-self: start; }
.report-form-compact[hidden] { display: none !important; }
.member-inline-card { display: flex; width: min(100%, 820px); align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; border: 2px solid var(--ink); border-left: 8px solid var(--green); border-radius: 18px; padding: 22px 24px; background: #edf7f2; box-shadow: 6px 6px 0 var(--yellow); }
.member-inline-card.member-session-active { width: 100%; min-height: 0; margin-bottom: 12px; border-width: 1px; border-left-width: 5px; padding: 10px 14px; box-shadow: none; }
.member-inline-card.member-session-active > :first-child { display: none; }
.member-inline-card.member-session-active .member-auth-actions { width: 100%; min-width: 0; justify-content: space-between; }
.member-inline-card.member-session-active .member-account-link { flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; text-align: left; }
.inline-policy-link { margin-left: 8px; color: var(--green); font-weight: 900; }
.mobile-member-button { display: none; }
.member-inline-card .kicker { margin: 0 0 5px; }
.member-inline-card h2 { margin: 0 0 7px; font-size: 23px; }
.member-inline-card p:not(.kicker) { margin: 0; color: var(--muted); line-height: 1.7; }
.member-inline-card .report-link { flex: 0 0 auto; }
.member-auth-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-auth-actions [hidden] { display: none !important; }
.member-auth-actions form { display: block; }
.member-auth-actions form button { min-height: 46px; border: 2px solid var(--ink); padding: 0 15px; background: white; color: var(--ink); font-weight: 900; cursor: pointer; }
.member-account-link { background: var(--green); color: white; box-shadow: 4px 4px 0 var(--yellow); }
.member-auth-actions span.report-link { cursor: default; }
.member-report-embed[hidden] { display: none !important; }
.member-report-embed { width: min(1180px,100%); margin: 0 auto 28px; }
.member-report-embed iframe { display: block; width: 100%; min-height: 900px; border: 0; background: transparent; }
.archive-sync-status { display: block; margin-top: 8px; color: var(--green); font-weight: 800; }
.archive-sync-status[data-tone="error"] { color: #963d31; }
.archive-sync-actions { display: inline-flex; gap: 6px; margin-left: 4px; flex-wrap: wrap; }
.archive-sync-actions button { border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; background: white; color: inherit; font: inherit; cursor: pointer; }
html.member-archive-embed body { min-width: 0; padding: 0 !important; overflow-x: hidden; background: #f1f4f1; }
html.member-archive-embed .skip-link,
html.member-archive-embed .site-header,
html.member-archive-embed .site-update-notice,
html.member-archive-embed .archive-intro,
html.member-archive-embed #archiveView .member-inline-card,
html.member-archive-embed footer,
html.member-archive-embed .main-nav { display: none !important; }
html.member-archive-embed main { min-height: 0; }
html.member-archive-embed main > .view { display: none !important; }
html.member-archive-embed #archiveView { display: block !important; background: #f1f4f1; }
html.member-archive-embed #archiveView .archive-page { width: 100%; max-width: none; margin: 0; padding: 0 0 18px; }
@media (max-width: 640px) {
  .member-inline-card { align-items: stretch; flex-direction: column; gap: 16px; padding: 19px; }
  .member-inline-card .report-link { align-self: flex-start; }
  .member-auth-actions { align-items: flex-start; flex-direction: column; }
  .member-inline-card.member-session-active { align-items: center; flex-direction: row; gap: 8px; padding: 7px 9px; }
  .member-inline-card.member-session-active .member-auth-actions { margin-left: 0; align-items: center; flex-direction: row; flex-wrap: nowrap; }
  .member-inline-card.member-session-active .member-account-link { padding: 7px 9px; font-size: clamp(.72rem,3.25vw,.86rem); }
  .member-inline-card.member-session-active .member-auth-actions form { flex: 0 0 auto; }
  .member-inline-card.member-session-active .member-auth-actions form button { min-height: 38px; padding-inline: 10px; }
}
@media (max-width: 760px) {
  .mobile-member-button { display: flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--green); border-radius: 50%; color: var(--ink); background: #fff8d9; text-decoration: none; box-shadow: 0 3px 10px rgba(23,33,29,.1); }
  .mobile-member-button span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
  .mobile-member-button img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-member-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
  html.member-archive-embed #archiveView .archive-page { padding-bottom: 10px; }
}

/* Home dashboard: recent results, upcoming items, and the shared calendar. */
.home-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 30px; padding-bottom: 30px; }
.home-highlight-panel { display: flex; min-width: 0; flex-direction: column; gap: 15px; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 22px; padding: 22px; background: #fffefa; box-shadow: 0 12px 32px rgba(22, 55, 43, .07); }
.home-upcoming-panel { border-top-color: #d9b840; }
.home-panel-heading { display: flex; min-height: 60px; align-items: flex-start; justify-content: space-between; gap: 12px; }
.home-panel-heading .kicker, .home-action-card .kicker, .home-calendar-heading .kicker { margin: 0 0 5px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .11em; }
.home-panel-heading h1, .home-panel-heading h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.home-panel-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.home-panel-heading .text-link { min-height: 36px; flex: 0 0 auto; padding: 0 4px; border: 0; background: transparent; color: var(--green-dark); font-weight: 750; cursor: pointer; }
.home-calendar-spark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fff3c9; color: #947210; font-size: 20px; }
.home-result-list, .home-upcoming-list { display: grid; min-width: 0; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; }
.home-result-card { display: grid; min-width: 0; min-height: 142px; align-content: start; gap: 7px; border: 1px solid #c9dbd1; border-radius: 15px; padding: 13px; background: #eff6f1; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.home-result-card:hover, .home-result-card:focus-visible, .mobile-upcoming-card:hover, .mobile-upcoming-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(26, 64, 48, .12); }
.home-result-date { color: var(--green-dark); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.home-result-name { display: -webkit-box; min-height: 2.5em; overflow: hidden; font-size: 14px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-result-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; font-size: 11px; }
.home-result-score span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-result-score span:last-child { text-align: right; }
.home-result-score b { border-radius: 7px; padding: 4px 7px; background: #fff; color: var(--green-dark); font-size: 12px; white-space: nowrap; }
.home-result-meta { color: var(--muted); font-size: 10px; }
.home-empty { grid-column: 1 / -1; margin: 0; padding: 18px 12px; color: var(--muted); text-align: center; }
.home-upcoming-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-upcoming-list .mobile-upcoming-card { min-height: 142px; border-radius: 15px; padding: 13px; }
.home-upcoming-list .mobile-upcoming-card:not(.mobile-upcoming-card--activity), .home-upcoming-list .mobile-upcoming-card:not(.mobile-upcoming-card--activity):nth-child(even) { border-color: #e3cf78; background: #fff5cf; }
.home-upcoming-list .mobile-upcoming-card--activity, .home-upcoming-list .mobile-upcoming-card--activity:nth-child(even) { border-color: #d1c1e8; background: #f2ebfb; }
.home-upcoming-list .mobile-upcoming-kind { color: #7653a3; }
.home-upcoming-list .mobile-upcoming-card--activity .mobile-upcoming-date, .home-upcoming-list .mobile-upcoming-card--activity .mobile-upcoming-location b { color: #694494; }
.home-upcoming-list .mobile-upcoming-card h3 { min-height: 2.5em; font-size: 14px; }
.home-upcoming-list .mobile-upcoming-location { color: #655b49; font-size: 11px; }
.home-panel-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 11px; color: var(--muted); font-size: 12px; }
.home-panel-arrow { color: var(--green); font-size: 18px; }
.home-subscribe-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid #ece5d1; padding-top: 14px; }
.calendar-subscribe-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 18px; background: var(--green); color: #fff; font-size: 13px; font-weight: 850; text-decoration: none; }
.home-custom-calendar-link { color: var(--green-dark); font-size: 12px; font-weight: 750; text-decoration: none; }
.calendar-platform-note { margin: -8px 0 0; color: var(--muted); font-size: 11px; }
.home-actions-band { border-block: 1px solid #d8e4dc; padding: 22px 0; background: #f1f6f2; }
.home-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-action-card { display: grid; min-width: 0; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 13px; border: 1px solid #d9e3dc; border-radius: 18px; padding: 18px; background: #fff; }
.home-action-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #e8f2ed; color: var(--green); font-size: 21px; }
.home-action-card h2 { margin: 0; font-size: 18px; }
.home-action-card p:not(.kicker) { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-action-link, .home-community-actions { grid-column: 2; }
.home-action-link { justify-self: start; color: var(--green-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.home-community-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.home-community-actions button { min-height: 38px; border: 1px solid #c9dbd1; border-radius: 999px; padding: 0 14px; background: #f5f9f6; color: var(--green-dark); font-size: 12px; font-weight: 750; cursor: pointer; }
.home-calendar-section { padding-top: 34px; padding-bottom: 40px; }
.home-calendar-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.home-calendar-heading h2 { margin: 0; font-size: 26px; }
.home-calendar-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.home-calendar-legend { display: flex; flex: 0 0 auto; gap: 14px; color: var(--muted); font-size: 12px; }
.home-calendar-legend span { display: flex; align-items: center; gap: 6px; }
.home-calendar-card { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: #fff; box-shadow: 0 12px 32px rgba(22, 55, 43, .07); }
.home-calendar-toolbar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.home-calendar-toolbar button { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--green-dark); font-size: 22px; cursor: pointer; }
.home-calendar-toolbar h3 { min-width: 150px; margin: 0; color: var(--green-dark); font-size: 18px; text-align: center; }
.home-calendar-toolbar .home-calendar-today { min-width: auto; margin-left: 8px; padding: 0 12px; font-size: 12px; font-weight: 800; }
.home-calendar-weekdays, .home-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.home-calendar-weekdays { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: center; }
.home-calendar-day { display: flex; min-width: 0; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.home-calendar-day:hover { background: #f1f6f2; }
.home-calendar-day.is-outside { color: #aab2ac; }
.home-calendar-day.is-today > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e8f2ed; color: var(--green-dark); font-weight: 900; }
.home-calendar-day.is-selected { outline: 2px solid var(--green); outline-offset: -2px; }
.home-calendar-markers { display: flex; min-height: 5px; gap: 3px; }
.calendar-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #d6b231; }
.calendar-dot.activity { background: #8d68bd; }
.home-calendar-agenda { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.home-calendar-agenda-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.home-calendar-agenda-heading h3 { margin: 0; font-size: 16px; }
.home-calendar-agenda-heading span { color: var(--muted); font-size: 12px; }
.home-calendar-agenda-list { display: grid; gap: 7px; }
.home-calendar-agenda-item { display: grid; min-width: 0; grid-template-columns: 52px minmax(0, 1fr) 18px; align-items: center; gap: 10px; border: 1px solid #e6d89e; border-radius: 12px; padding: 10px 12px; background: #fff9df; color: var(--ink); text-align: left; cursor: pointer; }
.home-calendar-agenda-item.is-activity { border-color: #d5c6e9; background: #f6f0fc; }
.calendar-agenda-type { color: #896d14; font-size: 11px; font-weight: 850; }
.is-activity .calendar-agenda-type { color: #7653a3; }
.calendar-agenda-copy { display: grid; min-width: 0; gap: 3px; }
.calendar-agenda-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-agenda-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-calendar-empty { margin: 0; padding: 10px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .home-highlights { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 14px; }
  .home-highlight-panel { gap: 12px; border-radius: 18px; padding: 16px; }
  .home-result-list, .home-upcoming-list { gap: 8px; }
  .home-result-card, .home-upcoming-list .mobile-upcoming-card { min-height: 132px; padding: 11px; }
  .home-actions-band { padding: 14px 0; }
  .home-actions-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-inline: 14px; }
  .home-action-card { border-radius: 16px; padding: 14px; }
  .home-calendar-section { padding: 22px 14px 30px; }
  .home-calendar-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .home-calendar-heading h2 { font-size: 22px; }
  .home-calendar-card { padding: 14px 10px; border-radius: 18px; }
  .home-calendar-toolbar { gap: 5px; }
  .home-calendar-toolbar h3 { min-width: 115px; font-size: 16px; }
  .home-calendar-toolbar button { min-width: 38px; min-height: 38px; }
  .home-calendar-toolbar .home-calendar-today { margin-left: 2px; padding-inline: 8px; }
  .home-calendar-day { min-height: 46px; font-size: 12px; }
  .home-calendar-agenda-item { grid-template-columns: 42px minmax(0, 1fr) 14px; gap: 7px; padding: 9px; }
}
@media (max-width: 420px) {
  .home-result-list, .home-upcoming-list { grid-template-columns: minmax(0, 1fr); }
  .home-result-card, .home-upcoming-list .mobile-upcoming-card { min-height: 112px; }
  .home-calendar-card { padding-inline: 6px; }
  .home-calendar-day { min-height: 42px; }
  .home-calendar-toolbar h3 { min-width: 100px; }
}

/* Compact paired homepage cards: four champions beside the upcoming list. */
.home-result-list, .home-upcoming-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.home-result-card { min-height: 70px; gap: 3px; border-radius: 12px; padding: 9px 11px; }
.home-result-name { min-height: 0; font-size: 13px; line-height: 1.25; }
.home-result-champion { display: flex; min-width: 0; align-items: baseline; gap: 5px; overflow: hidden; color: var(--green-dark); font-size: 12px; font-weight: 750; line-height: 1.2; }
.home-result-champion b { flex: 0 0 auto; color: #987716; font-size: 10px; }
.home-upcoming-list .mobile-upcoming-card { display: grid; min-height: 58px; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; border-radius: 12px; padding: 8px 10px; }
.home-upcoming-list .mobile-upcoming-kind { display: none; }
.home-upcoming-list .mobile-upcoming-date { grid-column: 1; grid-row: 1; font-size: 10px; }
.home-upcoming-list .mobile-upcoming-card h3 { grid-column: 1 / -1; grid-row: 2; min-height: 0; margin: 0; font-size: 13px; line-height: 1.25; }
.home-upcoming-list .mobile-upcoming-location { grid-column: 2; grid-row: 1; max-width: 135px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .home-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 10px; }
  .home-highlight-panel { gap: 8px; border-radius: 15px; padding: 10px; }
  .home-panel-heading { min-height: 0; gap: 4px; }
  .home-panel-heading .kicker, .home-panel-heading p:last-child, .home-panel-heading .text-link, .home-calendar-spark { display: none; }
  .home-panel-heading h1, .home-panel-heading h2 { font-size: 15px; line-height: 1.2; }
  .home-result-list, .home-upcoming-list { gap: 6px; }
  .home-result-card { min-height: 66px; padding: 7px; }
  .home-result-date { font-size: 9px; }
  .home-result-name { font-size: 12px; }
  .home-result-champion { font-size: 11px; }
  .home-upcoming-list .mobile-upcoming-card { min-height: 48px; gap: 3px; padding: 7px; }
  .home-upcoming-list .mobile-upcoming-card h3 { font-size: 11px; }
  .home-upcoming-list .mobile-upcoming-date { font-size: 9px; }
  .home-upcoming-list .mobile-upcoming-location { display: none; }
  .home-panel-footer { padding-top: 7px; font-size: 9px; }
  .home-subscribe-row { gap: 6px; padding-top: 7px; }
  .calendar-subscribe-button { min-height: 32px; padding-inline: 9px; font-size: 10px; }
  .home-custom-calendar-link { font-size: 9px; }
  .calendar-platform-note { margin: -2px 0 0; font-size: 9px; }
}
@media (max-width: 340px) {
  .home-highlights { gap: 6px; padding-inline: 7px; }
  .home-highlight-panel { padding: 8px; }
  .home-result-card { padding: 6px; }
  .home-result-name { display: block; min-height: 0; overflow: visible; font-size: 10px; line-height: 1.2; -webkit-box-orient: initial; -webkit-line-clamp: unset; }
}

.growth-intro { padding-bottom: 14px; }
.growth-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 18px; }
.growth-hub-card { display: flex; min-height: 250px; flex-direction: column; align-items: flex-start; gap: 15px; padding: 24px; border: 1px solid #d9e2dc; border-radius: 22px; background: linear-gradient(145deg, #fff, #f1f7f3); box-shadow: 0 10px 28px rgba(24, 55, 43, .06); }
.growth-hub-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #e6f1eb; font-size: 1.5rem; }
.growth-hub-card h2 { margin: 0 0 6px; color: #164f40; }
.growth-hub-card p:last-child { margin: 0; color: #68746e; }
.growth-hub-link, .growth-signin-note a { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 14px; border-radius: 999px; background: #176b52; color: #fff; font-weight: 750; text-decoration: none; }
.growth-signin-note { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; padding: 14px 18px; border: 1px solid #e7ddbb; border-radius: 16px; background: #fff9e9; }
.growth-signin-note p { margin: 0; color: #5f625a; }
.growth-signin-note a { margin: 0 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) {
  .overview-search { margin: 0 14px 20px; padding: 17px; border-radius: 18px; }
  .overview-search-filters { gap: 6px; }
  .overview-search-filters label { padding: 7px 10px; font-size: .9rem; }
  .growth-hub { grid-template-columns: 1fr; gap: 12px; padding-inline: 14px; }
  .growth-hub-card { min-height: 0; display: grid; grid-template-columns: 48px 1fr; gap: 8px 13px; padding: 17px; border-radius: 18px; }
  .growth-hub-icon { grid-row: span 2; }
  .growth-hub-card > div { min-width: 0; }
  .growth-hub-link { grid-column: 2; margin: 2px 0 0; justify-self: start; }
  .growth-signin-note { align-items: flex-start; flex-wrap: wrap; margin: 0 14px 30px; }
  .growth-signin-note a { margin: 0 0 0 30px; }
}
