/* alpha11 — unified duv.Pro 2.44-inspired theme. Loaded last on every page. */
:root{
  --bg:#080c0d;--panel:#111718;--panel2:#182022;--line:#334044;
  --text:#f5f8f7;--muted:#a9b5b1;--blue:#2C67C5;--blue2:#2C77C5;
  --green:#2C67C5;--cyan:#6be1e8;--red:#ff7c86;--amber:#ffd166;
  --shadow:0 18px 48px rgba(0,0,0,.26);--radius:14px;
}
html{color-scheme:dark;background:var(--bg)}
body{margin:0!important;padding:0 0 60px!important;background:var(--bg)!important;color:var(--text)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;font-size:14px}
a{color:#8fbaff;text-decoration:none}a:hover{color:#b8d0ff;text-decoration:none}

/* Exact same top banner on every page. */
.duvnav{position:sticky;top:0;z-index:100000;width:100%;height:100px;min-height:100px;padding:0 18px;background:#000;border-bottom:1px solid #1b2427;display:flex;align-items:center;gap:14px;box-shadow:0 8px 28px rgba(0,0,0,.34);color:#d9dfdd}
.duvnav-main{display:flex;align-items:center;min-width:0;gap:10px;flex:1 1 auto;height:100%}
.duvnav-brand{display:inline-flex;align-items:center;justify-content:center;height:90px;width:292px;flex:0 0 292px;border-radius:8px;overflow:hidden;background:#000}
.duvnav-brand img{display:block;width:100%;height:100%;object-fit:contain}
.duvnav-links{display:flex;align-items:center;gap:2px;min-width:0;height:100%;white-space:nowrap;overflow:auto;scrollbar-width:none}.duvnav-links::-webkit-scrollbar{display:none}
.duvnav-links>a{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 12px;border-radius:8px;color:#aeb9b5;font-weight:700;font-size:13px;transition:background .18s ease,color .18s ease,transform .18s ease}
.duvnav-links>a:hover{background:#18211f;color:#fff;transform:translateY(-1px)}
.duvnav-links>a.active{background:#fff;color:#111718}
.duvnav-links>a.duvnav-admin{color:#C6FF3D}.duvnav-links>a.duvnav-admin:hover{background:#20291d;color:#C6FF3D}.duvnav-links>a.duvnav-admin.active{background:#C6FF3D;color:#111718}
.duvnav-version{margin-left:auto;color:#73847f;font:700 10px Consolas,"SFMono-Regular",monospace;white-space:nowrap}

/* Shared page geometry and panel language. */
.page{max-width:1280px!important;margin:0 auto!important;padding:22px 18px 40px!important}
.page-head{margin-bottom:16px}.page-head h1{display:block!important;color:#f7faf9!important;font-size:27px!important}.page-head p{color:var(--muted)!important}
.panel,.hero,.empty,.table-card,.stat,.aside-box,.score-hero,.runner-card,.network-node,
.card,.races-card,.bib,.bib-event,.index-hero,.stats-card,.network-card,.runner-network-card,.runner-duvindex-card,.search-card,.graph-card,.homonym-card{
  background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow)!important;
}
.panel,.hero{background-image:none!important}.table-card{overflow:hidden}.stat,.meta,.metric-hero-item,.record-card,.aside-box,.detail-list>div,.affinity-list>a,.edition-list>a,.runner-card,.network-node{background:#0e1416!important;border-color:#2b373a!important}

/* Common controls. */
input,textarea,select,.scope-input{background:#0e1315!important;color:#eef4f1!important;border:1px solid #303b3e!important;border-radius:9px!important;box-shadow:none!important}
input:focus,textarea:focus,select:focus,.scope-input:focus{border-color:#2C77C5!important;outline:none!important;box-shadow:0 0 0 3px rgba(44,119,197,.15)!important}
button,.button,.btn{border-radius:9px!important}
button[type=submit],.button:not(.secondary),.btn.primary,.btn:not(.secondary):not(.danger){background:#2C67C5!important;color:#fff!important;border-color:#2C67C5!important;font-weight:800!important}
button[type=submit]:hover,.button:not(.secondary):hover,.btn.primary:hover,.btn:not(.secondary):not(.danger):hover{background:#2C77C5!important;border-color:#2C77C5!important;filter:none!important}
.button.secondary,.btn.secondary{background:#182022!important;color:#eef4f1!important;border-color:#334044!important}.button.secondary:hover,.btn.secondary:hover{background:#202a2d!important}

/* Tables. */
table{color:var(--text)!important;background:transparent!important;border-color:var(--line)!important}thead,thead tr,th{background:#0e1416!important;color:#aab7b2!important;border-color:var(--line)!important}td,tr{border-color:#202a2d!important}tbody tr:hover{background:rgba(44,103,197,.08)!important}.race-link,.races-table a,.row-link{color:#f1f7f4!important}.race-link:hover,.races-table a:hover,.row-link:hover{color:#8fbaff!important}
.subtle,.muted,.hint,.small,.help,.site-footer{color:var(--muted)!important}.country{color:#b9c8c3!important}.status.ok{color:#68e0b7!important}.status.future{color:#8fbaff!important}

/* Runner 2.44 content must obey the global dark theme even though its source CSS also contains light defaults. */
.wrap,.network-wrap{max-width:1200px!important;margin:0 auto!important}.bib::before{background:linear-gradient(90deg,#2C67C5,#6be1e8)!important}.bib-name{color:#f6f9f8!important}.bib-number{color:#8fbaff!important}.bib-tag{background:transparent!important;color:#c9d4d0!important;border-color:#2a3935!important}
.index-hero{background:#111718!important;background-image:none!important}.index-value{background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;color:#9fc4ff!important}.index-label{color:#c7d2ce!important}
.runner-tab{background:#111719!important;color:#aeb8b4!important;border:1px solid #283337!important}.runner-tab:hover{background:#17231f!important;color:#fff!important}.runner-tab.is-active,.runner-tab.active,.runner-tab[aria-selected="true"]{background:#2C67C5!important;color:#fff!important;border-color:#2C67C5!important}
.stat-line,.runner-affinity-row{border-color:#273234!important}.records tr:hover,.runner-affinity-row:hover{background:#172022!important}.races-head{border-color:#2a3538!important}.year-pill{background:#071214!important;color:#6be1e8!important}.runner-index-big{color:#9fc4ff!important}.runner-index-note,.runner-index-sub{color:#a9b5b1!important}
.km-year-bar{background:linear-gradient(180deg,#e9fff8 0%,#70e9c4 44%,#00b985 100%)!important}.race-type-donut{border-color:#22302f!important}

/* Network/H2H/Scope share the same panel vocabulary. */
.network-svg-wrap,.graph-svg-wrap{background:#0b1012!important;border-color:#293638!important}.network-runner-row{background:#101617!important;border-color:#22302f!important}.network-runner-row:hover{background:#172022!important}.duvaff-badge{background:#2C67C5!important}.scope-format-picker{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.scope-format-option{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #334044;border-radius:8px;background:#0e1416;color:#cbd5d1;font-size:11px;font-weight:700;text-transform:none;letter-spacing:0}.scope-format-option input{width:auto!important;margin:0;accent-color:#2C67C5}.scope-format-actions{display:flex;gap:7px;margin-top:8px}.scope-format-actions button{padding:7px 10px;font-size:10px}.scope-sort{appearance:none;border:0!important;background:transparent!important;color:inherit!important;padding:0!important;font:inherit!important;text-transform:inherit!important;letter-spacing:inherit!important;cursor:pointer;display:inline-flex;align-items:center;gap:5px}.scope-sort:hover{color:#fff!important}.scope-sort::after{content:'↕';opacity:.35;font-size:9px}.scope-sort.is-asc::after{content:'↑';opacity:1;color:#8fbaff}.scope-sort.is-desc::after{content:'↓';opacity:1;color:#8fbaff}.scope-table td[data-sort=""]{color:#667773}

/* Admin uses the exact same shell. */
.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:12px 14px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.admin-toolbar-left strong{display:block;font-size:16px}.admin-toolbar-left span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.admin-toolbar .top-actions{margin-left:auto}
.metric{background:var(--panel)!important;border-color:var(--line)!important}.job-stats>div,.inspect-item,.mini-log,.chip{background:#0e1416!important;border-color:#293638!important}.progress{background:#080d0f!important;border-color:#253034!important}.progress>div{background:linear-gradient(90deg,#2C67C5,#6be1e8)!important}.badge{background:#151d1f!important;border-color:#334044!important}.worker-pill.on{color:#68e0b7!important}.toast{background:#182022!important;border-color:#334044!important}

@media(max-width:900px){.duvnav{height:auto;min-height:82px;padding:4px 10px}.duvnav-main{gap:6px}.duvnav-brand{height:70px;width:210px;flex-basis:210px}.duvnav-version{display:none}.duvnav-links>a{padding:0 10px;font-size:12px}.page{padding:16px 11px 30px!important}}
@media(max-width:620px){.duvnav{align-items:flex-start}.duvnav-main{flex-direction:column;align-items:flex-start;width:100%}.duvnav-brand{height:58px;width:180px;flex-basis:58px}.duvnav-links{width:100%;height:42px}.admin-toolbar{align-items:flex-start;flex-direction:column}.admin-toolbar .top-actions{margin-left:0;flex-wrap:wrap}}

/* alpha13 — SVG country flags everywhere country codes were previously printed. */
.event-name-with-flag{display:inline-flex;align-items:center;gap:7px;min-width:0}.event-name-with-flag>span{min-width:0}.race-flag,.country-flag,.runner-list-flag{display:inline-block;width:auto!important;height:14px!important;max-width:23px!important;object-fit:cover;border-radius:2px;vertical-align:-2px;flex:none;margin:0!important;filter:none!important}.country-code-fallback{font-size:.82em;color:#9fafaa}.country-flag-cell{display:inline-flex;align-items:center;justify-content:center;min-width:24px}.runner-name-meta{display:inline-flex;align-items:center;gap:7px}.runner-country-inline{display:inline-flex;align-items:center;gap:6px;color:#a9b5b1}
/* Give the athlete history visibly more room than DuVPro 2.44 default. */
.runner-tab-panel[data-panel="stats"] .grid-2{grid-template-columns:minmax(250px,.62fr) minmax(0,1.38fr)!important;gap:16px!important}
@media(max-width:860px){.runner-tab-panel[data-panel="stats"] .grid-2{grid-template-columns:1fr!important}}


/* Alpha47A6: cross-document transitions disabled. */

/* SVG country picker used by Results. */
.flag-select{position:relative;width:100%}
.flag-select-trigger{width:100%;height:39px;padding:0 10px!important;background:#0e1315!important;border:1px solid #303b3e!important;color:#eef4f1!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;font-weight:500!important;text-align:left!important}
.flag-select-trigger .flag-select-caret{margin-left:auto;color:#82938e}
.flag-select-menu{display:none;position:absolute;z-index:3000;left:0;right:0;top:calc(100% + 5px);max-height:310px;overflow:auto;padding:5px;background:#0b1113;border:1px solid #334044;border-radius:9px;box-shadow:0 16px 38px rgba(0,0,0,.42)}
.flag-select.is-open .flag-select-menu{display:block}
.flag-select-menu button{width:100%;justify-content:flex-start!important;gap:8px!important;background:transparent!important;border:0!important;color:#e8efec!important;padding:8px 9px!important;font-weight:500!important}
.flag-select-menu button:hover{background:#172022!important}
.flag-select-menu img,.flag-select-trigger img{width:21px!important;height:14px!important;object-fit:cover!important;margin:0!important}

/* alpha16 — remove occasional bright left fringe on local SVG flags */
.race-flag,.runner-list-flag,.country-flag{clip-path:inset(0 0 0 1px)!important;object-fit:cover!important;background:transparent!important;border:0!important;box-shadow:none!important}
.ranking-filters{display:grid;grid-template-columns:minmax(190px,1.4fr) repeat(3,minmax(130px,.7fr)) auto;gap:10px;align-items:end;margin-bottom:14px}.ranking-filters label{display:grid;gap:5px}.ranking-filters select{height:40px}.ranking-table td{padding:8px 10px!important}.ranking-table .perf{font-weight:700;color:#fff!important}.page-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:12px}@media(max-width:800px){.ranking-filters{grid-template-columns:1fr 1fr}.page-title-row{align-items:flex-start;flex-direction:column}}


/* alpha17 — Results / Calendar structured geographic + format filters */
.event-filters{grid-template-columns:2.1fr .72fr 1fr .85fr 1fr 1fr!important}
.calendar-event-filters{grid-template-columns:2.1fr .75fr 1fr 1fr 1fr!important}
.distance-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.geo-select-menu{max-height:420px!important}
.geo-section-label{padding:7px 9px 4px;color:#768985;font-size:9px;font-weight:800;letter-spacing:.55px;text-transform:uppercase}
.geo-separator{height:1px;background:#263335;margin:5px 3px}
.geo-choice.geo-continent,.geo-choice.geo-world{font-weight:500!important}
.geo-symbol{display:inline-flex;width:21px;justify-content:center;color:#8fa6a0;font-size:13px}
.geo-more-toggle{border-top:1px solid #263335!important;margin-top:4px!important}
.geo-more-caret{margin-left:auto;color:#82938e}
.geo-more{border-top:1px solid #263335;padding-top:3px;margin-top:2px}
.geo-more[hidden]{display:none!important}
.geo-more .geo-choice{padding-left:18px!important}
.flag-select-menu button[aria-current="true"]{background:#172022!important;color:#fff!important}
@media(max-width:1180px){
  .event-filters,.calendar-event-filters{grid-template-columns:repeat(3,minmax(150px,1fr))!important}
}
@media(max-width:760px){
  .event-filters,.calendar-event-filters{grid-template-columns:1fr 1fr!important}
}
@media(max-width:500px){
  .event-filters,.calendar-event-filters{grid-template-columns:1fr!important}
}

/* alpha19 — progressive search UX, shared loader and plain search surfaces */
.duv-global-loader{position:fixed;z-index:100500;left:50%;top:116px;transform:translate(-50%,-5px);display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #334044;border-radius:999px;background:rgba(10,15,16,.94);box-shadow:0 12px 34px rgba(0,0,0,.42);color:#dce8e4;font-size:11px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s ease}.duv-global-loader[hidden]{display:none!important}.duv-global-loader.is-visible{opacity:1;transform:translate(-50%,0)}.duv-global-loader img{width:24px!important;height:24px!important;display:block}.inline-load{width:22px!important;height:22px!important;vertical-align:middle;margin-left:7px}.inline-load[hidden]{display:none!important}.server-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:90px;color:#a9b5b1;font-size:12px}.server-loading img{width:32px;height:32px}
.search-surface{margin:0 0 18px;padding:0;background:transparent;border:0;box-shadow:none}.search-surface form{margin:0}.search-help{margin-top:8px;color:#859792;font-size:10.5px}.search-error{margin:10px 0 0;padding:9px 11px;border-left:3px solid #ff7c86;background:rgba(255,124,134,.06);color:#ffc0c6;font-size:11px}.runner-search-plain{margin:8px 0 18px}.runner-search-plain .field-label{display:block;margin-bottom:7px}
.runner-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 16px}.runner-choice{width:100%;display:grid!important;grid-template-columns:minmax(160px,1.15fr) minmax(300px,2fr) auto;gap:12px;align-items:center;text-align:left!important;padding:10px 12px!important;border:1px solid #2d393c!important;border-radius:10px!important;background:#0e1416!important;color:#eef5f2!important;font-weight:500!important;transition:background .16s ease,border-color .16s ease,transform .16s ease}.runner-choice:hover,.runner-choice:focus{background:#172022!important;border-color:#506064!important;transform:translateY(-1px)}.runner-choice.is-selected{border-color:#2C67C5!important;background:#142033!important}.runner-choice-name{font-weight:750;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.runner-choice-meta{display:flex;align-items:center;gap:13px;min-width:0;color:#b4c0bc;font-size:10.5px;white-space:nowrap}.runner-choice-meta b{color:#788b86;text-transform:uppercase;font-size:8px;letter-spacing:.35px;margin-right:3px}.runner-choice-country{display:inline-flex;align-items:center;gap:6px}.runner-choice-id{font:700 10px Consolas,monospace;color:#7f918c}.homonym-group{margin:12px 0 18px}.homonym-group h3{margin:0 0 5px;font-size:13px}.homonym-group .hint{margin-bottom:7px}.homonym-group.is-resolved{opacity:.55}.homonym-group.is-resolved .runner-choice:not(.is-selected){display:none!important}.selection-ready{display:none;margin-top:8px;color:#68e0b7;font-size:11px;font-weight:700}.selection-ready.is-visible{display:block}
@media(max-width:900px){.runner-choice-grid{grid-template-columns:1fr}.runner-choice{grid-template-columns:1fr auto}.runner-choice-meta{grid-column:1/-1;grid-row:2;flex-wrap:wrap;white-space:normal}.duv-global-loader{top:96px}}
@media(max-width:620px){.duv-global-loader{top:116px}.runner-choice{grid-template-columns:1fr}.runner-choice-id{grid-row:1;grid-column:2}.runner-choice-meta{grid-column:1/-1}}
.network-input-card.search-surface{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin-bottom:18px!important}
.network-input-card.search-surface textarea{margin-top:6px}

/* alpha20 — loading, dropdowns, list type icons and sticky headers */
.duv-global-loader{
  position:fixed!important;z-index:100500!important;left:50%!important;top:50%!important;
  width:50px!important;height:50px!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;gap:0!important;
  transform:translate(-50%,-50%) scale(.94)!important;opacity:0!important;pointer-events:none!important;
  transition:opacity .22s ease,transform .22s ease!important;
}
.duv-global-loader[hidden]{display:none!important}
.duv-global-loader.is-visible{opacity:1!important;transform:translate(-50%,-50%) scale(1)!important}
.duv-global-loader img,.server-loading img,.inline-load{
  width:50px!important;height:50px!important;display:block!important;color:#fff!important;
  filter:brightness(0) invert(1)!important;object-fit:contain!important;
}
.server-loading{min-height:110px!important;opacity:1;transition:opacity .22s ease;animation:duv-load-fade-in .22s ease both}
.server-loading.is-leaving{animation:none!important;opacity:0!important}
@keyframes duv-load-fade-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
.inline-load{opacity:0;transform:scale(.94);transition:opacity .2s ease,transform .2s ease;vertical-align:middle;margin-left:8px!important}
.inline-load.is-visible{opacity:1;transform:scale(1)}
.inline-load[hidden]{display:none!important}

/* Before site.js upgrades native selects, give them the exact same geometry as the
   custom control. This avoids the brief square->pill layout flash on Results/Calendar. */
select:not(.dropdown__native){
  min-height:42px!important;height:42px!important;padding:12px 42px 12px 18px!important;
  background:#141414!important;color:#fff!important;border:1px solid rgba(84,242,239,.5)!important;
  border-radius:999px!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
  font-size:13px!important;font-weight:500!important;line-height:1.2!important;
  appearance:none!important;-webkit-appearance:none!important;
}

/* New shared dropdown visual language. Native selects remain in the form but are visually hidden. */
.dropdown,.flag-select{
  position:relative;width:100%;height:fit-content;user-select:none;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
}
.dropdown__native{
  position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;padding:0!important;border:0!important;
}
.dropdown__trigger,.flag-select-trigger{
  width:100%!important;min-height:42px!important;background:#141414!important;color:#fff!important;
  border:1px solid rgba(84,242,239,.5)!important;border-radius:999px!important;padding:12px 18px!important;
  font-size:13px!important;line-height:1.2!important;font-family:inherit!important;font-weight:500!important;
  display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;
  cursor:pointer!important;text-align:left!important;transition:border-color .25s ease,box-shadow .25s ease,border-radius .25s ease,background .2s ease!important;
}
.dropdown__trigger:hover,.flag-select-trigger:hover{
  border-color:rgba(84,242,239,.9)!important;box-shadow:0 0 16px rgba(84,242,239,.35)!important;background:#171717!important;
}
.dropdown.is-open .dropdown__trigger,.flag-select.is-open .flag-select-trigger{
  border-radius:22px 22px 0 0!important;border-color:rgba(84,242,239,.9)!important;border-bottom-color:transparent!important;
  box-shadow:0 0 20px rgba(84,242,239,.4)!important;
}
.dropdown__value{
  flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
  font-size:13px!important;font-weight:500!important;line-height:1.2!important;
  text-transform:none!important;letter-spacing:normal!important;color:#fff!important;
}
.dropdown__arrow,.flag-select-caret{
  width:10px!important;height:10px!important;border-right:2px solid #54f2ef!important;border-bottom:2px solid #54f2ef!important;
  transform:rotate(45deg)!important;transition:transform .3s ease!important;margin:-4px 2px 0 auto!important;flex:0 0 auto!important;
  color:transparent!important;font-size:0!important;
}
.dropdown.is-open .dropdown__arrow,.flag-select.is-open .flag-select-caret{transform:rotate(-135deg)!important;margin-top:4px!important}
.dropdown__menu,.flag-select-menu{
  display:block!important;position:absolute!important;top:calc(100% - 1px)!important;left:0!important;right:0!important;margin:0!important;
  background:#0a0a0a!important;border:1px solid rgba(84,242,239,.5)!important;border-top:none!important;border-radius:0 0 22px 22px!important;
  max-height:0!important;overflow:hidden!important;opacity:0!important;visibility:hidden!important;
  transition:max-height .35s ease,opacity .25s ease,visibility 0s linear .35s!important;z-index:6000!important;
  box-shadow:0 10px 30px rgba(84,242,239,.15)!important;padding:0!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
}
.dropdown.is-open .dropdown__menu,.flag-select.is-open .flag-select-menu{
  max-height:340px!important;opacity:1!important;visibility:visible!important;overflow-y:auto!important;transition-delay:0s!important;
}
.dropdown__menu::-webkit-scrollbar,.flag-select-menu::-webkit-scrollbar{width:6px}
.dropdown__menu::-webkit-scrollbar-track,.flag-select-menu::-webkit-scrollbar-track{background:#111}
.dropdown__menu::-webkit-scrollbar-thumb,.flag-select-menu::-webkit-scrollbar-thumb{background:rgba(84,242,239,.6);border-radius:3px}
.dropdown__item,.flag-select-menu .geo-choice,.flag-select-menu .geo-more-toggle{
  width:100%!important;padding:12px 18px!important;font-size:13px!important;line-height:1.2!important;color:#ddd!important;cursor:pointer!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
  transition:background .2s ease,color .2s ease,padding-left .2s ease!important;border:0!important;border-bottom:1px solid #1a1a1a!important;
  border-radius:0!important;background:transparent!important;font-family:inherit!important;font-weight:500!important;text-align:left!important;
}
.dropdown__item:last-child,.flag-select-menu>*:last-child{border-bottom-left-radius:20px!important;border-bottom-right-radius:20px!important}
.dropdown__item:hover,.flag-select-menu .geo-choice:hover,.flag-select-menu .geo-more-toggle:hover{
  background:#54f2ef!important;color:#000!important;padding-left:24px!important;
}
.dropdown__item.is-selected,.flag-select-menu .geo-choice.is-selected{
  background:rgba(84,242,239,.12)!important;color:#54f2ef!important;font-weight:600!important;
}
.dropdown__item.is-disabled{opacity:.42;cursor:default!important}.dropdown__item.is-disabled:hover{background:transparent!important;color:#ddd!important;padding-left:18px!important}
.dropdown__separator,.geo-separator{height:1px!important;background:rgba(84,242,239,.2)!important;margin:6px 12px!important;border:0!important}
.dropdown__header,.geo-section-label{
  font-size:10px!important;text-transform:uppercase!important;letter-spacing:1.5px!important;color:rgba(84,242,239,.7)!important;
  padding:10px 18px 4px!important;font-family:inherit!important;font-weight:600!important;
}
.flag-select-trigger>span:not(.flag-select-caret){
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
  font-size:13px!important;font-weight:500!important;line-height:1.2!important;
  text-transform:none!important;letter-spacing:normal!important;color:#fff!important;
}
.flag-select-menu img,.flag-select-trigger img{width:auto!important;height:16px!important;max-width:25px!important;object-fit:cover!important;margin:0!important;clip-path:none!important}
.geo-select-menu{width:min(410px,88vw)!important;min-width:330px!important;right:auto!important;max-height:0!important}
.geo-select.is-open .geo-select-menu{max-height:430px!important}
.geo-more{border-top:1px solid rgba(84,242,239,.16)!important;margin:0!important;padding:0!important}
.geo-more .geo-choice{padding-left:28px!important}.geo-more .geo-choice:hover{padding-left:34px!important}
.geo-more-caret{margin-left:auto!important}
@media(max-width:520px){.geo-select-menu{min-width:100%!important;width:min(360px,92vw)!important}.dropdown__trigger,.flag-select-trigger{padding:11px 15px!important}}

.event-type-label{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.race-type-icon{width:18px!important;height:18px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important;flex:none}
.event-list-status{display:inline!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;font-weight:650!important;font-size:11px!important;white-space:nowrap!important;transition:color .18s ease!important}
.status-ok{color:#68e0b7!important}.status-future{color:#8fbaff!important}.status-warn{color:#ffd166!important}.status-bad{color:#ff9a9a!important}.status-muted{color:#91a0b2!important}
.event-list-status:hover{color:#fff!important}

/* Keep headers visible in scrollable tables. */
.table-scroll thead th{position:sticky!important;top:0!important;z-index:40!important;background:#0e1416!important;box-shadow:0 1px 0 #334044!important}
.runner-history-card .races-table thead th,.runner-index-table .races-table thead th,.runner-network-card .races-table thead th{
  position:sticky!important;top:100px!important;z-index:80!important;background:#0e1416!important;box-shadow:0 1px 0 #334044!important;
}
@media(max-width:900px){.runner-history-card .races-table thead th,.runner-index-table .races-table thead th,.runner-network-card .races-table thead th{top:82px!important}}

/* alpha20 — Runner refinements */
.bib .bib-name{transition:color .24s ease!important;cursor:default!important}
.bib .bib-name:hover{color:#8fbaff!important}
.bib-country-tag{display:inline-flex!important;align-items:center!important;gap:8px!important}
.bib-country-tag .runner-gender-svg{width:22px!important;height:22px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important;margin:0!important}
.bib-country-tag .country-flag{width:auto!important;height:20px!important;max-width:31px!important;object-fit:cover!important;margin:0!important;clip-path:none!important}
.index-details-link{display:block!important;width:max-content!important;margin:3px 0 0!important;font-size:8.5px!important;line-height:1.15!important;letter-spacing:.02em!important;text-transform:none!important;color:#8fbaff!important}

.info-dot .bubble,
.index-stat:first-child .info-dot .bubble,
.index-stat:nth-child(2) .info-dot .bubble,
.info-dot .bubble.country-bubble{
  display:block!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
  position:absolute!important;bottom:calc(100% + 8px)!important;top:auto!important;left:50%!important;transform:translate(-50%,5px)!important;
  width:260px!important;background:rgba(10,10,15,.55)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:10px!important;padding:12px 14px!important;
  font-size:.78rem!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;line-height:1.45!important;text-align:left!important;
  box-shadow:0 8px 24px rgba(0,0,0,.5)!important;z-index:100!important;cursor:auto!important;
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s!important;
}
.info-dot:hover .bubble,.info-dot:focus .bubble,.info-dot:focus-within .bubble{
  visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translate(-50%,0)!important;transition-delay:0s!important;
}
.index-stat:first-child .info-dot .bubble::after,.index-stat:nth-child(2) .info-dot .bubble::after{display:none!important}
.info-dot .country-bubble{width:220px!important}
@media(max-width:620px){.info-dot .bubble,.index-stat:first-child .info-dot .bubble,.index-stat:nth-child(2) .info-dot .bubble{width:min(260px,78vw)!important;left:50%!important;transform:translate(-50%,5px)!important}.info-dot:hover .bubble,.info-dot:focus .bubble,.info-dot:focus-within .bubble{transform:translate(-50%,0)!important}}

.km-year-bars{height:138px!important;width:100%!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:visible!important}
.km-year-track{position:relative;width:100%;height:110px;display:flex;align-items:flex-end;justify-content:center;overflow:visible}
.km-year-bar{position:relative!important;height:var(--bar-height)!important;width:60%!important;min-width:18px!important;border-radius:4px 4px 0 0!important;transition:filter .2s ease,transform .2s ease!important;transform-origin:bottom center}
.km-year-bar::after{content:"";position:absolute;inset:0;border-left:1px solid rgba(84,242,239,.55);border-right:1px solid rgba(84,242,239,.55);border-top:1px solid rgba(84,242,239,.68);border-bottom:0;border-radius:4px 4px 0 0;box-shadow:-4px 0 10px rgba(84,242,239,.25),4px 0 10px rgba(84,242,239,.25),0 -4px 12px rgba(84,242,239,.34);opacity:0;transition:opacity .2s ease;pointer-events:none}
.km-year-value{position:absolute!important;left:50%!important;bottom:calc(var(--bar-height) + 5px)!important;transform:translateX(-50%)!important;margin:0!important;line-height:1!important;z-index:2}
.km-year-tooltip{position:absolute;left:50%;bottom:calc(var(--bar-height) + 28px);transform:translate(-50%,5px);padding:6px 8px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(8,12,13,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-size:10px;font-weight:650;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;z-index:8}
.km-year-track:hover .km-year-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0);transition-delay:0s}
.km-year-track:hover .km-year-bar{filter:brightness(1.08)!important}
.km-year-track:hover .km-year-bar::after{opacity:1}

.donut-highlight{transition:transform .24s cubic-bezier(.2,.72,.25,1),filter .2s ease,opacity .18s ease!important}
.donut-center strong:empty,.donut-center span:empty{display:none!important}

.runner-history-card .races-table th:nth-child(1),.runner-history-card .races-table th:nth-child(2),
.runner-history-card .races-table td:nth-child(1),.runner-history-card .races-table td:nth-child(2){text-align:center!important}
.runner-history-card .races-table th:nth-child(4),.runner-history-card .races-table th:nth-child(5),
.runner-history-card .races-table td:nth-child(4),.runner-history-card .races-table td:nth-child(5){text-align:right!important}
@media(min-width:769px){
  .runner-history-card .history-race-cell,.runner-history-card .perf,.runner-history-card .medal{font-size:14px!important}
  .runner-history-card .history-race-cell a,.runner-history-card .perf a,.runner-history-card .medal a{font-size:14px!important}
}


/* alpha20 — final dropdown/table polish */
.dropdown--country{min-width:260px!important}
.dropdown--country .dropdown__menu{width:min(390px,88vw)!important;right:auto!important;min-width:300px!important}
.ranking-table thead th{position:sticky!important;top:100px!important;z-index:80!important;background:#0e1416!important;box-shadow:0 1px 0 #334044!important}
.table-wrap{overflow:auto!important}
.table-wrap thead th{position:sticky!important;top:0!important;z-index:55!important;background:#111824!important;box-shadow:0 1px 0 #334044!important}
@media(max-width:900px){.ranking-table thead th{top:82px!important}}

/* alpha28 — ensure Runner information bubbles remain above the dark index band */
.index-hero,.index-stat,.index-label,.info-dot{overflow:visible!important}
.index-stat:has(.info-dot:hover),.index-stat:has(.info-dot:focus),.index-stat:has(.info-dot:focus-within){position:relative!important;z-index:220!important}
.info-dot .bubble,.index-stat:first-child .info-dot .bubble,.index-stat:nth-child(2) .info-dot .bubble{z-index:300!important}
.runner-history-card .races-table th:last-child,.runner-history-card .races-table td.rk{text-align:center!important}

/* Alpha29: country/continent option labels use the exact same text metrics as the closed flag-select value. */
.flag-select-menu .geo-choice,
.flag-select-menu .geo-choice>span:not(.geo-symbol),
.flag-select-menu .geo-more-toggle{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
  font-size:13px!important;font-weight:500!important;line-height:1.2!important;
  text-transform:none!important;letter-spacing:normal!important;
}

/* alpha38 — DUV 2.44-style filter panels + stable rounded scroll areas */
.event-filters .field,.calendar-event-filters .field{gap:10px!important}
.event-filters .field>span:first-child,.calendar-event-filters .field>span:first-child{display:block!important;margin-bottom:1px!important}
.filter-popover{position:relative!important;min-width:0!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important}
.filter-popover>summary{list-style:none!important;min-height:42px!important;height:42px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;padding:0 16px!important;border:1px solid rgba(84,242,239,.5)!important;border-radius:999px!important;background:#141414!important;color:#fff!important;cursor:pointer!important;font:500 13px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important}
.filter-popover>summary::-webkit-details-marker{display:none!important}.filter-popover>summary::marker{content:""}
.filter-popover>summary:hover,.filter-popover[open]>summary{border-color:rgba(84,242,239,.9)!important;background:#181818!important;box-shadow:0 0 0 2px rgba(84,242,239,.08)!important}
.filter-current{min-width:0!important;display:inline-flex!important;align-items:center!important;gap:8px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:500 13px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;text-transform:none!important;letter-spacing:normal!important;color:#fff!important}
.filter-caret{width:10px!important;height:10px!important;flex:0 0 auto!important;border-right:2px solid #54f2ef!important;border-bottom:2px solid #54f2ef!important;transform:rotate(45deg)!important;transition:transform .3s ease!important;margin:-4px 2px 0 auto!important;color:transparent!important;font-size:0!important}.filter-popover[open] .filter-caret{transform:rotate(-135deg)!important;margin-top:4px!important}
.filter-panel{position:absolute!important;top:calc(100% + 7px)!important;left:0!important;z-index:9000!important;display:grid!important;grid-template-columns:repeat(4,minmax(118px,1fr))!important;gap:5px!important;width:min(590px,88vw)!important;max-height:430px!important;box-sizing:border-box!important;padding:10px 10px 10px 10px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;background:#111!important;border:1px solid rgba(84,242,239,.36)!important;border-radius:14px!important;background-clip:padding-box!important;box-shadow:0 18px 42px rgba(0,0,0,.58)!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important}
.filter-popover.date .filter-panel{width:min(520px,88vw)!important;grid-template-columns:repeat(4,minmax(96px,1fr))!important}
.filter-choice{min-height:35px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#f2f7f6!important;padding:8px 10px!important;display:flex!important;align-items:center!important;gap:8px!important;text-align:left!important;cursor:pointer!important;font:500 13px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.filter-choice:hover,.filter-choice.active{background:rgba(84,242,239,.11)!important;color:#fff!important}.filter-choice.active{box-shadow:inset 0 0 0 1px rgba(84,242,239,.35)!important}
.filter-choice img.country-panel-flag,.filter-current img.country-panel-flag{height:16px!important;width:auto!important;max-width:25px!important;object-fit:cover!important;flex:none!important}
.country-break,.date-separator{grid-column:1/-1!important;height:1px!important;background:rgba(84,242,239,.16)!important;margin:3px 2px!important}.country-separator{grid-column:1/-1!important;height:1px!important;background:rgba(255,255,255,.12)!important;margin:4px 2px!important}
.filter-panel::-webkit-scrollbar,.dropdown__menu::-webkit-scrollbar,.flag-select-menu::-webkit-scrollbar{width:7px!important}
.filter-panel::-webkit-scrollbar-track,.dropdown__menu::-webkit-scrollbar-track,.flag-select-menu::-webkit-scrollbar-track{background:transparent!important;margin-block:10px!important;border-radius:999px!important}
.filter-panel::-webkit-scrollbar-thumb,.dropdown__menu::-webkit-scrollbar-thumb,.flag-select-menu::-webkit-scrollbar-thumb{background:rgba(84,242,239,.58)!important;border-radius:999px!important;border:2px solid transparent!important;background-clip:padding-box!important}
.dropdown__menu,.flag-select-menu{overflow-x:hidden!important;scrollbar-gutter:stable!important;background-clip:padding-box!important}
@media(max-width:720px){.filter-panel,.filter-popover.date .filter-panel{position:fixed!important;left:5vw!important;right:5vw!important;top:145px!important;width:auto!important;max-height:62vh!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.filter-choice{min-width:0!important}}

/* alpha39 — Results/Calendar filter panels */
.event-filters .field>span:first-child,.calendar-event-filters .field>span:first-child{margin-bottom:5px!important}
.filter-panel{clip-path:inset(0 round 13px)!important;padding-right:14px!important;scrollbar-gutter:stable!important}
.filter-popover.country .filter-panel{grid-template-columns:repeat(4,minmax(118px,1fr))!important}
.filter-popover.country .country-all,.filter-popover.country .country-continent{grid-column:1/-1!important;justify-content:center!important;text-align:center!important}
.filter-popover.country .country-priority,.filter-popover.country .country-rest{justify-content:flex-start!important;text-align:left!important;color:#f2f7f6!important;font:500 13px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important}
.filter-popover.country .country-more-toggle,.filter-popover.result-year .year-older-toggle{grid-column:1/-1!important;min-height:35px!important;border:0!important;border-top:1px solid rgba(255,255,255,.08)!important;background:transparent!important;color:#9ec5ff!important;padding:8px 10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;font:600 12px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;cursor:pointer!important}
.filter-popover.country .country-more-toggle>span:last-child,.filter-popover.result-year .year-older-toggle>span:last-child{font-size:18px!important;line-height:1!important;transition:transform .16s ease!important}
.filter-popover.country .country-more-toggle.is-open>span:last-child,.filter-popover.result-year .year-older-toggle.is-open>span:last-child{transform:rotate(90deg)!important}
.country-more-section,.year-older-section{display:grid!important;grid-template-columns:repeat(4,minmax(118px,1fr))!important;gap:5px!important;grid-column:1/-1!important}
.country-more-section[hidden],.year-older-section[hidden]{display:none!important}
.filter-popover.result-year .filter-panel{width:min(520px,88vw)!important;grid-template-columns:1fr!important}
.filter-popover.result-year .year-all{justify-content:center!important;text-align:center!important}
.result-year-panel .year-grid,.result-year-panel .year-older-section{display:grid!important;grid-template-columns:repeat(4,minmax(84px,1fr))!important;gap:5px!important}
.result-year-panel .year-older-separator{height:1px;background:rgba(255,255,255,.08);grid-column:1/-1;margin:2px 0}
.result-year-panel .year-choice{justify-content:center!important;text-align:center!important}
.filter-choice.is-disabled,.filter-choice:disabled{color:#4f5a58!important;background:transparent!important;cursor:default!important;box-shadow:none!important;opacity:.65!important}
.filter-choice.is-disabled:hover,.filter-choice:disabled:hover{background:transparent!important;color:#4f5a58!important}
.filter-popover.date .filter-panel{align-items:center!important}
.filter-popover.date .date-year-choice,.filter-popover.date .date-month-choice{justify-content:center!important;text-align:center!important}
@media(max-width:720px){.country-more-section,.year-older-section,.result-year-panel .year-grid,.result-year-panel .year-older-section{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* alpha40 — Results / Calendar filter rhythm after removing distance range */
.event-filters .field>span:first-child,
.calendar-event-filters .field>span:first-child{
  display:block!important;
  margin-bottom:8px!important;
}

/* alpha41D — Results / Calendar filter layout fixes */
.filter-popover.country .country-continent-grid{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
}
.filter-popover.country .country-continent{
  grid-column:auto!important;
  justify-content:center!important;
  text-align:center!important;
  min-width:0!important;
}
/* Keep old years genuinely collapsed until the Older button is used. This rule
   intentionally comes after the generic year-grid display rule. */
.result-year-panel .year-older-section[hidden]{display:none!important}

/* Native Status / Format / Type controls are upgraded by site.js. On Results and
   Calendar their option list floats below the trigger with the same visual breathing
   room as the custom Year/Country popovers. */
.event-filters .duv-select-dropdown .dropdown__menu,
.calendar-event-filters .duv-select-dropdown .dropdown__menu{
  top:calc(100% + 7px)!important;
  border:1px solid rgba(84,242,239,.5)!important;
  border-radius:14px!important;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
.event-filters .dropdown.is-open .dropdown__trigger,
.calendar-event-filters .dropdown.is-open .dropdown__trigger{
  border-radius:999px!important;
  border-bottom-color:rgba(84,242,239,.9)!important;
}
.event-filters .duv-select-dropdown .dropdown__item:last-child,
.calendar-event-filters .duv-select-dropdown .dropdown__item:last-child{
  border-bottom-left-radius:10px!important;
  border-bottom-right-radius:10px!important;
}
@media(max-width:720px){
  .filter-popover.country .country-continent-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* alpha41G — shared left/right navigation SVGs */
.nav-arrow-icon{width:18px!important;height:18px!important;display:block!important;flex:0 0 18px!important;filter:brightness(0) invert(1)!important;opacity:.88!important}
.pager-nav-link{display:inline-flex!important;align-items:center!important;gap:6px!important}
.pager-nav-link:hover .nav-arrow-icon,.runner-affinity-page:hover .nav-arrow-icon{opacity:1!important}

/* Alpha42A — closed Results/Calendar summaries match shared dropdown typography. */
.filter-popover>summary .filter-current,.filter-popover>summary .filter-current>span{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;font-size:13px!important;font-weight:500!important;line-height:1.2!important;color:#fff!important;text-transform:none!important;letter-spacing:normal!important}

/* Alpha44 — borderless shared cards/panels requested by design pass. */
.panel, .hero, .empty, .table-card, .stat, .aside-box, .score-hero, .runner-card, .network-node, .card, .races-card, .bib, .bib-event, .index-hero, .stats-card, .network-card, .runner-network-card, .runner-duvindex-card, .search-card, .graph-card, .homonym-card {
  border:0px solid #33404400 !important;
}

/* Results / Calendar: visually separate month groups without turning them into cards. */
.event-month-separator td{
  height:9px!important;
  padding:8px 10px 5px!important;
  border-top:1px solid rgba(255,255,255,.13)!important;
  border-bottom:0!important;
  background:transparent!important;
  color:#71807c!important;
  font-size:9px!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  letter-spacing:.45px!important;
}
.event-month-separator span{opacity:.8}

/* Alpha45A — calculation/search progress bars (Affinities / Network / Scope) */
.calc-progress-box{margin:10px 0 4px;padding:10px 12px;border-radius:9px;background:rgba(9,16,17,.72);border:1px solid rgba(107,225,232,.16)}
.calc-progress-box[hidden]{display:none!important}.calc-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:11px;color:#9fb2ad}.calc-progress-head strong{color:#dce9e5;font-variant-numeric:tabular-nums;font-size:10px;min-width:38px;text-align:right}.calc-progress-track{height:6px;border-radius:999px;background:#0b1112;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}.calc-progress-track>div{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#2c67c5,#6be1e8);transition:width .22s ease}.calc-progress-sub{margin-top:6px;color:#6f827d;font-size:10px;min-height:13px}.calc-progress-box.is-error .calc-progress-track>div{background:linear-gradient(90deg,#8f3340,#ff7777)}

/* Alpha45A — quick correction link for false Encounter pairing */
.encounter-pair-fix{display:block;margin-top:4px;color:#7f918d!important;font-size:9px!important;text-decoration:none!important}.encounter-pair-fix:hover{color:#6be1e8!important}

/* Alpha45B — inactive dropdown language requested for Runner/Results/Calendar/Ranking. */
.dropdown:not(.is-open) .dropdown__trigger,
.flag-select:not(.is-open) .flag-select-trigger{
  border:1px solid rgb(84 242 239 / 0%)!important;
  border-radius:10px!important;
  background:#212121!important;
  box-shadow:none!important;
}
.dropdown:not(.is-open) .dropdown__trigger:hover,
.flag-select:not(.is-open) .flag-select-trigger:hover{
  border-color:rgba(84,242,239,.6)!important;
  background:#232323!important;
}
.dropdown.is-open .dropdown__trigger,.flag-select.is-open .flag-select-trigger{
  border-radius:10px!important;
  border:1px solid rgba(84,242,239,.9)!important;
  background:#212121!important;
}
.dropdown__menu,.flag-select-menu{
  top:calc(100% + 7px)!important;
  border:1px solid rgba(84,242,239,.5)!important;
  border-radius:14px!important;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
.dropdown__item:last-child,.flag-select-menu>*:last-child{border-bottom-left-radius:10px!important;border-bottom-right-radius:10px!important}

/* Neon search used on Runner, Results and Calendar. The supplied white Erase.svg also resets the page. */
.neon-search-form{margin:0!important}
.neon-search{position:relative;width:100%;max-width:460px}
.event-filters .neon-search,.calendar-event-filters .neon-search{max-width:none}
.neon-search input{
  width:100%!important;height:auto!important;min-height:46px!important;
  font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;
  color:#e6edf3!important;background:#0a0e14!important;border:1px solid #1e2733!important;border-radius:10px!important;
  padding:11px 56px 11px 44px!important;outline:none!important;
  transition:border-color .25s,box-shadow .25s!important;
}
.neon-search input::placeholder{color:#4e5a6b!important}
.neon-search input:focus{border-color:#19d7a0!important;box-shadow:0 0 0 1px #19d7a0,0 0 18px rgba(25,215,160,.35),inset 0 0 12px rgba(25,215,160,.06)!important}
.neon-search-ico{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#4e5a6b;pointer-events:none;transition:color .25s,filter .25s}
.neon-search:focus-within .neon-search-ico{color:#19d7a0;filter:drop-shadow(0 0 6px rgba(25,215,160,.7))}
.neon-search-clear{position:absolute!important;right:6px!important;top:50%!important;transform:translateY(-50%)!important;width:38px!important;height:38px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:1px solid transparent!important;border-radius:10px!important;color:#4e5a6b!important;cursor:pointer!important;opacity:0;visibility:hidden;transition:opacity .2s,color .2s,border-color .2s,box-shadow .2s,background .2s!important}
.neon-search-clear img{width:20px!important;height:20px!important;display:block!important;object-fit:contain!important;filter:none!important;opacity:.95}
.neon-search.has-value .neon-search-clear{opacity:1;visibility:visible}
.neon-search-clear:hover{color:#fff!important;border-color:rgba(255,255,255,.28)!important;background:rgba(255,255,255,.06)!important;box-shadow:0 0 12px rgba(255,255,255,.16)!important}.neon-search-clear:hover img{opacity:1}
.sr-only-submit{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Alpha45B — Ranking filter proportions and separated menus. */
.ranking-filters{grid-template-columns:minmax(210px,1.35fr) minmax(130px,.62fr) minmax(150px,.72fr) minmax(160px,.78fr) auto!important;column-gap:10px!important;row-gap:10px!important}
.ranking-filters .dropdown__menu{top:calc(100% + 7px)!important}
.ranking-filters label:nth-of-type(3),.ranking-filters label:nth-of-type(3) .dropdown{min-width:0!important;max-width:190px!important}
.ranking-filters label:nth-of-type(3) .dropdown__menu{left:0!important;right:auto!important;width:100%!important;min-width:100%!important;max-width:190px!important}
.ranking-updated{margin:10px 2px 0;color:#697975;font-size:10.5px;text-align:right}
.ranking-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 2px;color:#7f908b;font-size:11px}
.ranking-pager-nav{display:flex;align-items:center;gap:6px}
.ranking-pager-btn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:32px;padding:0 8px;border:1px solid #263332;border-radius:8px;background:#111718;color:#dce9e5;text-decoration:none}
.ranking-pager-btn:hover{border-color:#54f2ef;color:#fff}.ranking-pager-btn.is-disabled{opacity:.28;pointer-events:none}
.ranking-pager-double{display:inline-flex;align-items:center;gap:0}.ranking-pager-double img{width:14px!important;height:14px!important;margin-left:-5px}.ranking-pager-double img:first-child{margin-left:0}
.ranking-page-jump{display:inline-flex;align-items:center;gap:6px;margin:0}
.ranking-page-jump input{width:68px!important;height:32px!important;padding:4px 8px!important;border:1px solid #263332!important;border-radius:8px!important;background:#0d1314!important;color:#fff!important;text-align:center!important;font:700 11px Inter,system-ui,sans-serif!important;outline:none!important}
.ranking-page-jump input:focus{border-color:#54f2ef!important;box-shadow:0 0 0 1px rgba(84,242,239,.28)!important}
@media(max-width:900px){.ranking-filters{grid-template-columns:1fr 1fr!important}.ranking-filters label:nth-of-type(3),.ranking-filters label:nth-of-type(3) .dropdown{max-width:none!important}.ranking-filters label:nth-of-type(3) .dropdown__menu{max-width:none!important}}
/* Match the inactive dropdown appearance before site.js upgrades native selects. */
select:not(.dropdown__native){border:1px solid rgb(84 242 239 / 0%)!important;border-radius:10px!important;background:#212121!important}


/* Alpha45D — unified menus / filters, search proportions and page transitions */
:root{--duv-menu-bg:#212121;--duv-menu-hover:#2a2a2a;--duv-menu-selected:#303638}
.dropdown__trigger,.flag-select-trigger,.filter-popover>summary{
  min-height:42px!important;height:42px!important;background:var(--duv-menu-bg)!important;color:#fff!important;
  border:1px solid rgba(84,242,239,0)!important;border-radius:10px!important;
  font:500 13px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
  box-shadow:none!important;filter:none!important;
  transition:background .16s ease,color .16s ease,border-color .16s ease!important;
}
.dropdown__trigger:hover,.flag-select-trigger:hover,.filter-popover>summary:hover{
  background:var(--duv-menu-hover)!important;border-color:rgba(84,242,239,0)!important;box-shadow:none!important;filter:none!important;
}
.dropdown.is-open .dropdown__trigger,.flag-select.is-open .flag-select-trigger,.filter-popover[open]>summary,
.event-filters .dropdown.is-open .dropdown__trigger,.calendar-event-filters .dropdown.is-open .dropdown__trigger{
  border-radius:10px!important;background:var(--duv-menu-hover)!important;border-color:rgba(84,242,239,0)!important;
  border-bottom-color:rgba(84,242,239,0)!important;box-shadow:none!important;filter:none!important;
}
.dropdown__menu,.flag-select-menu,.filter-panel,.filter-popover.date .filter-panel,.filter-popover.country .filter-panel{
  top:calc(100% + 7px)!important;background:var(--duv-menu-bg)!important;color:#fff!important;
  border:1px solid rgba(84,242,239,0)!important;border-radius:10px!important;
  box-shadow:0 14px 34px rgba(0,0,0,.42)!important;clip-path:inset(0 round 10px)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
}
.dropdown__item,.flag-select-menu .geo-choice,.flag-select-menu .geo-more-toggle,.filter-choice,
.filter-popover.country .country-more-toggle,.filter-popover.result-year .year-older-toggle{
  min-height:35px!important;background:transparent!important;color:#e8e8e8!important;
  border:0!important;border-bottom:1px solid #1a1a1a00!important;border-radius:8px!important;
  font:500 13px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;
  letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important;
  transition:background .15s ease,color .15s ease!important;
}
.dropdown__item:hover,.flag-select-menu .geo-choice:hover,.flag-select-menu .geo-more-toggle:hover,.filter-choice:hover,
.filter-popover.country .country-more-toggle:hover,.filter-popover.result-year .year-older-toggle:hover{
  background:var(--duv-menu-hover)!important;color:#fff!important;padding-left:18px!important;box-shadow:none!important;
}
.filter-choice:hover{padding-left:10px!important}
.dropdown__item.is-selected,.flag-select-menu .geo-choice.is-selected,.filter-choice.active{
  background:var(--duv-menu-selected)!important;color:#54f2ef!important;font-weight:600!important;box-shadow:none!important;
}
.dropdown__item:last-child,.flag-select-menu>*:last-child{border-radius:8px!important}
.filter-panel::-webkit-scrollbar-track,.dropdown__menu::-webkit-scrollbar-track,.flag-select-menu::-webkit-scrollbar-track{background:var(--duv-menu-bg)!important}

.runner-choice-name{font-size:15px!important}
.runner-choice-meta{font-size:12.5px!important}
.runner-search-plain{display:flex!important;justify-content:center!important;width:100%!important;margin:18px 0 24px!important}
.runner-search-plain .neon-search-form{width:50vw!important;max-width:760px!important;min-width:420px!important;margin:0 auto!important}
.runner-search-plain #q{width:100%!important}
@media(max-width:900px){.runner-search-plain .neon-search-form{width:min(88vw,680px)!important;min-width:0!important}}
@media(max-width:620px){.runner-search-plain .neon-search-form{width:100%!important;min-width:0!important}}

.page{animation:none!important;transition:none!important}

/* Alpha46B — unified selector visual language, Encounters polish, stable navigation/images */
:root{
  --duv-select-bg:#1e222a;
  --duv-select-bg-hover:#252a34;
  --duv-select-border:#2d333b;
  --duv-select-border-hover:#3b4252;
  --duv-select-accent:#2563eb;
  --duv-select-accent-hover:#3b82f6;
  --duv-select-item-hover:rgba(37,99,235,.08);
  --duv-select-item-accent:#2563eb;
  --duv-select-text:#e2e8f0;
  --duv-select-item-text:#cbd5e1;
}

/* Native select replacements + country/date/year panels use the exact same trigger language. */
.dropdown__trigger,.flag-select-trigger,.filter-popover>summary{
  width:100%!important;
  min-height:48px!important;height:48px!important;
  padding:14px 16px!important;
  background:var(--duv-select-bg)!important;
  border:1px solid var(--duv-select-border)!important;
  border-left:4px solid var(--duv-select-accent)!important;
  border-radius:8px!important;
  color:var(--duv-select-text)!important;
  font:400 16px/1.2 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  text-align:left!important;
  box-shadow:none!important;filter:none!important;
  transition:background .3s ease,border-color .3s ease,box-shadow .3s ease!important;
}
.dropdown__trigger:hover,.flag-select-trigger:hover,.filter-popover>summary:hover{
  background:var(--duv-select-bg-hover)!important;
  border-color:var(--duv-select-border-hover)!important;
  border-left-color:var(--duv-select-accent-hover)!important;
  box-shadow:none!important;filter:none!important;
}
.dropdown.is-open .dropdown__trigger,.flag-select.is-open .flag-select-trigger,.filter-popover[open]>summary,
.event-filters .dropdown.is-open .dropdown__trigger,.calendar-event-filters .dropdown.is-open .dropdown__trigger{
  background:var(--duv-select-bg)!important;
  border:1px solid var(--duv-select-accent)!important;
  border-left:4px solid var(--duv-select-accent)!important;
  border-radius:8px!important;
  box-shadow:0 0 0 1px rgba(37,99,235,.2)!important;
  filter:none!important;
}
.dropdown__arrow,.flag-select-caret,.filter-caret{
  width:auto!important;height:auto!important;border:0!important;background:none!important;
  color:#f0f0e1!important;transform:none!important;transition:transform .3s ease!important;
}
.dropdown__arrow::before,.flag-select-caret::before,.filter-caret::before{content:'▼';font-size:11px;line-height:1;color:#f0f0e1}
.dropdown.is-open .dropdown__arrow,.flag-select.is-open .flag-select-caret,.filter-popover[open] .filter-caret{transform:rotate(180deg)!important}

.dropdown__menu,.flag-select-menu,.filter-panel,.filter-popover.date .filter-panel,.filter-popover.country .filter-panel,.filter-popover.result-year .filter-panel{
  top:calc(100% + 5px)!important;left:0!important;width:100%!important;
  background:var(--duv-select-bg)!important;
  border:1px solid var(--duv-select-border)!important;
  border-radius:8px!important;
  padding:6px 0!important;
  color:var(--duv-select-item-text)!important;
  box-shadow:0 10px 25px -5px rgba(0,0,0,.5)!important;
  max-height:250px!important;overflow-y:auto!important;overflow-x:hidden!important;
  transform:translateY(-10px)!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:opacity .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1),visibility .3s!important;
  scrollbar-gutter:stable!important;
}
.dropdown.is-open .dropdown__menu,.flag-select.is-open .flag-select-menu,.filter-popover[open]>.filter-panel{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important;
}
.dropdown__item,.flag-select-menu .geo-choice,.flag-select-menu .geo-more-toggle,.filter-choice,.country-more-toggle,.year-older-toggle{
  min-height:43px!important;padding:12px 16px!important;margin:0!important;
  border:0!important;border-left:2px solid transparent!important;border-radius:0!important;
  background:transparent!important;color:var(--duv-select-item-text)!important;
  font:400 15.2px/1.25 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  transition:background .2s ease,color .2s ease,border-color .2s ease!important;
}
.dropdown__item:hover,.flag-select-menu .geo-choice:hover,.flag-select-menu .geo-more-toggle:hover,.filter-choice:hover,.country-more-toggle:hover,.year-older-toggle:hover,
.dropdown__item.is-selected,.flag-select-menu .geo-choice.is-selected,.filter-choice.active{
  color:#fff!important;background:var(--duv-select-item-hover)!important;border-left-color:var(--duv-select-item-accent)!important;
}
.dropdown__separator,.country-break,.date-separator,.year-older-separator{border:0!important;height:6px!important;background:transparent!important;margin:0!important}
.dropdown__header{padding:8px 16px 5px!important;color:#83908f!important;font:600 11px/1.2 Inter,system-ui,sans-serif!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.dropdown__item.is-disabled,.filter-choice.is-disabled,.filter-choice:disabled{opacity:.35!important;pointer-events:none!important}


/* Native-select fallback before progressive enhancement: same geometry, no visual flash. */
select:not(.dropdown__native){
  min-height:48px!important;padding:14px 16px!important;
  background:var(--duv-select-bg)!important;color:var(--duv-select-text)!important;
  border:1px solid var(--duv-select-border)!important;border-left:4px solid var(--duv-select-accent)!important;
  border-radius:8px!important;font:400 16px/1.2 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  box-shadow:none!important;
}
select:not(.dropdown__native):hover,select:not(.dropdown__native):focus{
  background:var(--duv-select-bg-hover)!important;border-color:var(--duv-select-border-hover)!important;
  border-left-color:var(--duv-select-accent-hover)!important;outline:none!important;
}

/* Large country lists: reserve image geometry and skip offscreen paint work. */
.country-panel-flag,.race-flag,.runner-list-flag{flex:0 0 auto!important;object-fit:cover!important}
.country-panel-flag{width:24px!important;height:16px!important}
.race-flag,.runner-list-flag{width:24px!important;height:16px!important}
.country-more-section .country-rest{content-visibility:auto;contain-intrinsic-size:43px;contain:layout paint style}
.country-more-section{contain:layout style;will-change:scroll-position}
.flag-select-menu,.country-panel{overscroll-behavior:contain;scroll-behavior:auto;-webkit-overflow-scrolling:touch}
.race-type-icon{width:18px!important;height:18px!important;flex:0 0 18px!important}
.event-type-label,.runner-country-inline,.event-name-with-flag{align-items:center!important}

/* Runner search is exactly 800 px on desktop, responsive below it. */
.runner-search-plain .neon-search-form{width:800px!important;max-width:calc(100vw - 40px)!important;min-width:0!important;margin:0 auto!important}
@media(max-width:840px){.runner-search-plain .neon-search-form{width:100%!important;max-width:100%!important}}

/* Encounters */
.encounters-page,.encounters-page *{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.encounter-search-surface{margin-bottom:22px!important}
.encounters-page .h2h-search{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto!important;gap:14px!important;align-items:end!important}
.encounters-page .h2h-search .vs{padding:14px 2px!important;color:#fff!important;font:700 13px/1 Inter,system-ui,sans-serif!important}
.encounter-search-input{position:relative;width:100%}
.encounter-search-input input{
  height:48px!important;padding:13px 16px 13px 44px!important;
  background:transparent!important;color:#fff!important;
  border:1px solid transparent!important;border-radius:10px!important;
  box-shadow:none!important;outline:none!important;
  font:400 15px/1.2 Inter,system-ui,sans-serif!important;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease!important;
}
.encounter-search-input input:hover{background:rgba(255,255,255,.018)!important}
.encounter-search-input input:focus{background:#0d141e!important;border-color:#19d7a0!important;box-shadow:0 0 0 1px rgba(25,215,160,.22)!important}
.encounter-search-ico{position:absolute;z-index:2;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#fff;pointer-events:none}
.encounters-page .field>span{font-family:Inter,system-ui,sans-serif!important}
.encounters-table thead th{font-family:Inter,system-ui,sans-serif!important}
.encounters-table thead th.encounter-runner-head{color:#fff!important;font-weight:650!important}
.encounters-table .encounter-performance{font-family:Inter,system-ui,sans-serif!important;white-space:nowrap!important;text-align:right!important;font-variant-numeric:tabular-nums}
.encounters-table th:last-child,.encounters-table td:last-child{text-align:right!important}
.encounters-page .runner-choice-id,.encounters-page .mono{font-family:Inter,system-ui,sans-serif!important}
@media(max-width:760px){.encounters-page .h2h-search{grid-template-columns:1fr!important}.encounters-page .h2h-search .vs{text-align:center!important}.encounters-table{min-width:820px!important}}

/* Never blank the page during navigation. Keep only a very small entry easing. */
.page{animation:duvPageStableEnter .13s cubic-bezier(.2,.72,.25,1) both!important}
html.duv-menu-leaving .page{opacity:1!important;transform:none!important;transition:none!important}
@keyframes duvPageStableEnter{from{opacity:.96;transform:translateX(4px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.page{animation:none!important}}


/* Alpha46D — compact race finder inspired by the unified search-bar layout. */
.results-search-surface{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.results-search-surface #resultsSearchForm{overflow:visible!important}
.race-search-bar{
  display:grid;
  grid-template-columns:minmax(260px,1.8fr) minmax(118px,.62fr) minmax(150px,.8fr) minmax(135px,.68fr) minmax(135px,.68fr) auto;
  align-items:end;
  gap:8px;
  width:100%;
  padding:8px;
  background:#11171b;
  border:1px solid #273038;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.race-search-query{min-width:0;align-self:end}
.race-search-query .neon-search{max-width:none!important;width:100%!important}
.race-search-query .neon-search input{
  height:48px!important;
  border:1px solid transparent!important;
  background:#161d22!important;
  box-shadow:none!important;
}
.race-search-query .neon-search input:focus{
  border-color:#19d7a0!important;
  box-shadow:0 0 0 1px rgba(25,215,160,.24)!important;
}
.race-search-filter{position:relative;min-width:0}
.race-search-filter-label{
  display:block;
  margin:0 0 5px 6px;
  color:#73817f;
  font:600 10px/1 Inter,system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.race-search-filter .dropdown__trigger,.race-search-filter .filter-popover>summary{
  height:48px!important;min-height:48px!important;
  font-size:13px!important;
  padding:12px 12px!important;
}
.race-search-submit{
  height:48px!important;
  min-width:96px;
  padding:0 18px!important;
  align-self:end;
  border:0!important;
  border-radius:10px!important;
  background:#2C67C5!important;
  color:#fff!important;
  font:700 13px/1 Inter,system-ui,sans-serif!important;
  box-shadow:0 3px 0 #183b76!important;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease!important;
}
.race-search-submit:hover{background:#3475d7!important;transform:translateY(-1px)}
.race-search-submit:active{transform:translateY(1px);box-shadow:0 1px 0 #183b76!important}

/* Return Year/Country to broad multi-column panels instead of one-item-per-row menus. */
.filter-popover.result-year .filter-panel{
  width:min(520px,calc(100vw - 28px))!important;
  min-width:420px!important;
}
.filter-popover.result-year .year-grid,
.filter-popover.result-year .year-older-section{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:3px!important;
  padding:4px 6px!important;
}
.filter-popover.result-year .year-all,
.filter-popover.result-year .year-older-toggle{width:100%!important}
.filter-popover.result-year .year-choice{
  justify-content:center!important;text-align:center!important;
  padding:10px 8px!important;
}

.filter-popover.country .country-panel{
  width:min(760px,calc(100vw - 28px))!important;
  min-width:620px!important;
  max-height:360px!important;
}
.filter-popover.country .country-continent-grid,
.filter-popover.country .country-priority-grid,
.filter-popover.country .country-more-section{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:3px!important;
  padding:4px 6px!important;
}
.filter-popover.country .country-more-section[hidden]{display:none!important}
.filter-popover.country .country-all,
.filter-popover.country .country-more-toggle{width:100%!important}
.filter-popover.country .filter-choice{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  overflow:hidden!important;
}
.filter-popover.country .filter-choice>span{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* Calendar date panel keeps the old dense multi-choice grid interaction. */
.filter-popover.date .date-filter-panel{
  width:min(560px,calc(100vw - 28px))!important;
  min-width:440px!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:3px!important;
  padding:6px!important;
}
.filter-popover.date .date-separator{grid-column:1/-1!important}
.filter-popover.date .filter-choice{justify-content:center!important;text-align:center!important}

/* Panels can be wider than their trigger while remaining inside the viewport. */
.filter-popover.country,.filter-popover.result-year,.filter-popover.date{position:relative!important}
.filter-popover.country>.filter-panel,
.filter-popover.result-year>.filter-panel,
.filter-popover.date>.filter-panel{
  left:50%!important;
  right:auto!important;
  transform:translate(-50%,-10px)!important;
}
.filter-popover.country[open]>.filter-panel,
.filter-popover.result-year[open]>.filter-panel,
.filter-popover.date[open]>.filter-panel{
  transform:translate(-50%,0)!important;
}

/* PNG flags are tiny local assets; reserve geometry to eliminate late layout shifts. */
.country-panel-flag,.race-flag,.runner-list-flag,.country-flag{
  object-fit:contain!important;
  image-rendering:auto;
}

/* Country-panel scrolling: contain off-screen rows and avoid smooth-scroll re-rasterisation. */
.country-panel{scroll-behavior:auto!important;overscroll-behavior:contain!important}
.country-more-section .country-rest{
  content-visibility:auto!important;
  contain-intrinsic-size:43px 180px!important;
}

@media(max-width:1050px){
  .race-search-bar{grid-template-columns:minmax(260px,1fr) repeat(2,minmax(140px,.6fr));}
  .race-search-query{grid-column:1/-1}
  .race-search-submit{min-width:120px}
}
@media(max-width:720px){
  .race-search-bar{grid-template-columns:1fr 1fr!important}
  .race-search-query{grid-column:1/-1}
  .race-search-submit{grid-column:1/-1;width:100%}
  .filter-popover.country .country-panel,
  .filter-popover.result-year .filter-panel,
  .filter-popover.date .date-filter-panel{min-width:0!important;width:min(94vw,620px)!important}
  .filter-popover.country .country-continent-grid,
  .filter-popover.country .country-priority-grid,
  .filter-popover.country .country-more-section{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .filter-popover.result-year .year-grid,
  .filter-popover.result-year .year-older-section{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .filter-popover.date .date-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* Alpha46E — searchable country combobox, one item per row. */
.country-combobox{
  position:relative;
  width:100%;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  text-transform:none!important;
  letter-spacing:normal!important;
}
.country-combobox-input-wrapper{
  display:flex;
  align-items:center;
  width:100%;
  height:48px;
  background:var(--duv-select-bg);
  border:1px solid var(--duv-select-border);
  border-left:4px solid var(--duv-select-accent);
  border-radius:8px;
  overflow:hidden;
  transition:background .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.country-combobox-input-wrapper:hover{
  background:var(--duv-select-bg-hover);
  border-color:var(--duv-select-border-hover);
  border-left-color:var(--duv-select-accent-hover);
}
.country-combobox.open .country-combobox-input-wrapper{
  border-color:var(--duv-select-accent);
  border-left-color:var(--duv-select-accent);
  box-shadow:0 0 0 1px rgba(37,99,235,.2);
}
.country-combobox-input{
  flex:1;
  min-width:0;
  height:46px!important;
  padding:0 12px!important;
  margin:0!important;
  color:var(--duv-select-text)!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:15px!important;
  text-transform:none!important;
  letter-spacing:normal!important;
}
.country-combobox-input:focus{border:0!important;box-shadow:none!important}
.country-combobox-input::placeholder{color:#64748b}
.country-combobox-toggle{
  flex:0 0 auto;
  height:46px!important;
  width:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-left:1px solid var(--duv-select-border)!important;
  border-radius:0!important;
  background:transparent!important;
  color:#64748b!important;
  box-shadow:none!important;
  filter:none!important;
}
.country-combobox-toggle:hover{color:#e2e8f0!important;background:rgba(37,99,235,.1)!important}
.country-combobox.open .country-combobox-toggle{color:var(--duv-select-accent)!important}
.country-combobox-toggle svg{transition:transform .3s ease}
.country-combobox.open .country-combobox-toggle svg{transform:rotate(180deg)}
.country-combobox-list{
  position:absolute;
  z-index:180;
  top:calc(100% + 5px);
  left:0;
  width:100%;
  max-height:320px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:6px 0;
  background:var(--duv-select-bg);
  border:1px solid var(--duv-select-border);
  border-radius:8px;
  box-shadow:0 10px 25px -5px rgba(0,0,0,.5);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-10px);
  transition:opacity .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1),visibility .3s;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.country-combobox.open .country-combobox-list{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.country-combobox-group-title{
  padding:10px 16px 6px;
  color:#64748b;
  font-size:.7rem;
  line-height:1.2;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.country-combobox-item{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:43px!important;
  padding:12px 16px!important;
  margin:0!important;
  border:0!important;
  border-left:2px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:#cbd5e1!important;
  text-align:left!important;
  cursor:pointer;
  font:inherit!important;
  font-size:.95rem!important;
  font-weight:400!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  transition:background .2s ease,color .2s ease,border-color .2s ease!important;
}
.country-combobox-item:hover,
.country-combobox-item.is-active,
.country-combobox-item.is-selected{
  background:rgba(37,99,235,.08)!important;
  border-left-color:#2563eb!important;
  color:#fff!important;
}
.country-combobox-item .item-name{
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font:inherit!important;
  font-weight:inherit!important;
  text-transform:none!important;
  letter-spacing:normal!important;
}
.country-combobox-flag{
  width:24px!important;
  height:16px!important;
  flex:0 0 24px!important;
  object-fit:contain!important;
}
.country-combobox-list::-webkit-scrollbar{width:6px}
.country-combobox-list::-webkit-scrollbar-track{background:transparent}
.country-combobox-list::-webkit-scrollbar-thumb{background:#2d333b;border-radius:3px}
.country-combobox-list::-webkit-scrollbar-thumb:hover{background:#2563eb}

/* Country names stay in their natural case/style everywhere inside selector lists. */
.dropdown--country .dropdown__item,
.flag-select-menu .geo-choice,
.country-combobox-item{
  text-transform:none!important;
  letter-spacing:normal!important;
}


/* Alpha46F — final shared selector theme + filtered country rows + partial Results/Calendar navigation. */
:root{
  --duv-select-bg:#1e222a;
  --duv-select-bg-hover:#252a34;
  --duv-select-border:#2d333b;
  --duv-select-border-hover:#3b4252;
  --duv-select-accent:#2563eb;
  --duv-select-accent-hover:#3b82f6;
  --duv-select-item-hover:rgba(37,99,235,.08);
  --duv-select-item-accent:#2563eb;
  --duv-select-text:#e2e8f0;
  --duv-select-item-text:#cbd5e1;
}

/* Every dropdown/picker uses the exact Country trigger language. */
.dropdown__trigger,.flag-select-trigger,.filter-popover>summary{
  min-height:48px!important;height:48px!important;padding:14px 16px!important;
  background:var(--duv-select-bg)!important;color:var(--duv-select-text)!important;
  border:1px solid var(--duv-select-border)!important;border-left:4px solid var(--duv-select-accent)!important;
  border-radius:8px!important;box-shadow:none!important;filter:none!important;
  font:400 16px/1.2 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  transition:background .3s ease,border-color .3s ease,box-shadow .3s ease!important;
}
.dropdown__trigger:hover,.flag-select-trigger:hover,.filter-popover>summary:hover{
  background:var(--duv-select-bg-hover)!important;border-color:var(--duv-select-border-hover)!important;
  border-left-color:var(--duv-select-accent-hover)!important;box-shadow:none!important;
}
.dropdown.is-open .dropdown__trigger,.flag-select.is-open .flag-select-trigger,.filter-popover[open]>summary,
.event-filters .dropdown.is-open .dropdown__trigger,.calendar-event-filters .dropdown.is-open .dropdown__trigger{
  background:var(--duv-select-bg)!important;border:1px solid var(--duv-select-accent)!important;
  border-left:4px solid var(--duv-select-accent)!important;border-radius:8px!important;
  box-shadow:0 0 0 1px rgba(37,99,235,.20)!important;filter:none!important;
}
.dropdown__menu,.flag-select-menu,.filter-panel,.filter-popover.date .filter-panel,.filter-popover.result-year .filter-panel{
  top:calc(100% + 5px)!important;background:var(--duv-select-bg)!important;
  border:1px solid var(--duv-select-border)!important;border-radius:8px!important;
  box-shadow:0 10px 25px -5px rgba(0,0,0,.5)!important;color:var(--duv-select-item-text)!important;
}
.dropdown__item,.flag-select-menu .geo-choice,.flag-select-menu .geo-more-toggle,.filter-choice,.country-more-toggle,.year-older-toggle{
  color:var(--duv-select-item-text)!important;border-left:2px solid transparent!important;
  background:transparent!important;text-transform:none!important;letter-spacing:normal!important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
.dropdown__item:hover,.dropdown__item.is-selected,.flag-select-menu .geo-choice:hover,.flag-select-menu .geo-choice.is-selected,
.flag-select-menu .geo-more-toggle:hover,.filter-choice:hover,.filter-choice.active,.country-more-toggle:hover,.year-older-toggle:hover{
  color:#fff!important;background:var(--duv-select-item-hover)!important;border-left-color:var(--duv-select-item-accent)!important;
}

/* The searchable Country list is genuinely filtered while typing. */
.country-combobox-item[hidden],.country-combobox-group-title[hidden]{display:none!important}
.country-combobox-item,.country-combobox-item .item-name{
  text-transform:none!important;letter-spacing:normal!important;font-style:normal!important;
}

/* Year/date panels animate both opening and closing without layout flashes. */
@keyframes duvFilterPanelIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
.filter-popover.is-opening[open]>.filter-panel{animation:duvFilterPanelIn .18s cubic-bezier(.4,0,.2,1) both!important}
.filter-popover.is-closing[open]>.filter-panel{
  opacity:0!important;transform:translateY(-10px)!important;visibility:visible!important;pointer-events:none!important;
  transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .16s cubic-bezier(.4,0,.2,1)!important;
}

/* Partial Results/Calendar region: preserve geometry and only animate the replaceable content. */
.partial-results-region{
  position:relative;min-height:1px;scroll-margin-top:82px;
  opacity:1;transform:translateX(0);
  transition:opacity .15s ease,transform .15s ease;
}
.partial-results-region.is-pending{opacity:.72}
.partial-results-region.is-leaving{opacity:0;transform:translateX(-7px)}
.partial-results-region.is-entering{opacity:0;transform:translateX(7px);transition:none!important}
.partial-results-idle{height:1px;min-height:1px}
.partial-results-network-error{
  margin:6px 0 10px;padding:7px 10px;border:1px solid rgba(239,68,68,.25);border-radius:7px;
  background:rgba(127,29,29,.16);color:#f3b7b7;font:500 12px/1.35 Inter,system-ui,sans-serif;
  opacity:0;transform:translateY(-3px);pointer-events:none;transition:opacity .18s ease,transform .18s ease;
}
.partial-results-network-error.is-visible{opacity:1;transform:translateY(0)}
.partial-results-region[aria-busy="true"]{cursor:progress}

@media (prefers-reduced-motion:reduce){
  .partial-results-region,.filter-popover>.filter-panel,.country-combobox-list,.dropdown__menu,.flag-select-menu{transition:none!important;animation:none!important}
}

/* Alpha47A1 — final visual parity for selectors, Encounters search and date panel motion. */
/* Native/custom dropdown triggers now use the same surface/border language as Country. */
.dropdown__trigger,
.flag-select-trigger,
.filter-popover>summary{
  min-height:48px!important;
  height:48px!important;
  padding:14px 16px!important;
  background:var(--duv-select-bg,#1e222a)!important;
  color:var(--duv-select-text,#e2e8f0)!important;
  border:1px solid var(--duv-select-border,#2d333b)!important;
  border-left:4px solid var(--duv-select-accent,#2563eb)!important;
  border-radius:8px!important;
  box-shadow:none!important;
  filter:none!important;
  font:400 15px/1.2 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  text-transform:none!important;
  letter-spacing:normal!important;
}
.dropdown__trigger:hover,
.flag-select-trigger:hover,
.filter-popover>summary:hover{
  background:var(--duv-select-bg-hover,#252a34)!important;
  border-color:var(--duv-select-border-hover,#3b4252)!important;
  border-left-color:var(--duv-select-accent-hover,#3b82f6)!important;
  box-shadow:none!important;
}
.dropdown.is-open .dropdown__trigger,
.flag-select.is-open .flag-select-trigger,
.filter-popover[open]>summary,
.event-filters .dropdown.is-open .dropdown__trigger,
.calendar-event-filters .dropdown.is-open .dropdown__trigger{
  background:var(--duv-select-bg,#1e222a)!important;
  border:1px solid var(--duv-select-accent,#2563eb)!important;
  border-left:4px solid var(--duv-select-accent,#2563eb)!important;
  border-radius:8px!important;
  box-shadow:0 0 0 1px rgba(37,99,235,.20)!important;
  filter:none!important;
}
.dropdown__menu,.flag-select-menu,.filter-panel{
  background:var(--duv-select-bg,#1e222a)!important;
  border:1px solid var(--duv-select-border,#2d333b)!important;
  border-radius:8px!important;
  padding:6px 0!important;
  box-shadow:0 10px 25px -5px rgba(0,0,0,.5)!important;
}
.dropdown__item,
.flag-select-menu .geo-choice,
.flag-select-menu .geo-more-toggle,
.filter-choice,
.country-more-toggle,
.year-older-toggle{
  min-height:0!important;
  padding:12px 16px!important;
  color:var(--duv-select-item-text,#cbd5e1)!important;
  background:transparent!important;
  border-left:2px solid transparent!important;
  border-bottom:0!important;
  border-radius:0!important;
  font:400 .95rem/1.25 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  text-transform:none!important;
  letter-spacing:normal!important;
}
.dropdown__item:hover,.dropdown__item.is-selected,
.flag-select-menu .geo-choice:hover,.flag-select-menu .geo-choice.is-selected,
.flag-select-menu .geo-more-toggle:hover,
.filter-choice:hover,.filter-choice.active,
.country-more-toggle:hover,.year-older-toggle:hover{
  color:#fff!important;
  background:var(--duv-select-item-hover,rgba(37,99,235,.08))!important;
  border-left-color:var(--duv-select-item-accent,#2563eb)!important;
}

/* Encounters uses the exact Runner neon input component. */
.encounters-page .encounter-search-input{
  width:100%!important;
  max-width:none!important;
}
.encounters-page .encounter-search-input input{
  width:100%!important;
  min-height:46px!important;
  height:auto!important;
  padding:11px 56px 11px 44px!important;
  color:#e6edf3!important;
  background:#0a0e14!important;
  border:1px solid #1e2733!important;
  border-radius:10px!important;
  box-shadow:none!important;
  outline:none!important;
  font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;
  transition:border-color .25s,box-shadow .25s!important;
}
.encounters-page .encounter-search-input input:focus{
  border-color:#19d7a0!important;
  box-shadow:0 0 0 1px #19d7a0,0 0 18px rgba(25,215,160,.35),inset 0 0 12px rgba(25,215,160,.06)!important;
  background:#0a0e14!important;
}
.encounters-page .encounter-search-input .neon-search-ico{color:#fff!important;filter:none!important}
.encounters-page .encounter-search-input:focus-within .neon-search-ico{color:#19d7a0!important;filter:drop-shadow(0 0 6px rgba(25,215,160,.7))!important}
.encounters-table thead th.encounter-runner-head{text-align:right!important}

/* Centered Year/Date panels: fade + descend on open, fade + rise on close, with no horizontal jump. */
@keyframes duvCenteredFilterPanelIn{
  from{opacity:0;transform:translate(-50%,-10px)}
  to{opacity:1;transform:translate(-50%,0)}
}
.filter-popover.result-year.is-opening[open]>.filter-panel,
.filter-popover.date.is-opening[open]>.filter-panel{
  animation:duvCenteredFilterPanelIn .18s cubic-bezier(.4,0,.2,1) both!important;
}
.filter-popover.result-year.is-closing[open]>.filter-panel,
.filter-popover.date.is-closing[open]>.filter-panel{
  opacity:0!important;
  transform:translate(-50%,-10px)!important;
  visibility:visible!important;
  pointer-events:none!important;
  transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .16s cubic-bezier(.4,0,.2,1)!important;
}
@media(prefers-reduced-motion:reduce){
  .filter-popover.result-year.is-opening[open]>.filter-panel,
  .filter-popover.date.is-opening[open]>.filter-panel{animation:none!important}
}

/* Alpha47A2 — duv-Scope compact column/format chooser. */
.scope-picker-title{margin:15px 0 5px!important}
.scope-picker-title h2{font-size:13px!important}
.scope-format-picker,.scope-metric-picker,.scope-more-formats-inner{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px 16px!important;margin-top:8px!important}
.scope-format-option,.scope-metric-option{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:2px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#cbd5d1!important;font-size:11px!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer!important;box-shadow:none!important}
.scope-format-option:hover,.scope-metric-option:hover{color:#fff!important;background:transparent!important}
.scope-format-option input,.scope-metric-option input{width:14px!important;height:14px!important;margin:0!important;padding:0!important;border:1px solid #516063!important;border-radius:3px!important;background:#101617!important;accent-color:#2C67C5!important;box-shadow:none!important;flex:none!important}
.scope-format-option input:focus,.scope-metric-option input:focus{outline:1px solid #6aa0ff!important;outline-offset:2px!important;box-shadow:none!important}
.scope-more-toggle{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:2px 0!important;border:0!important;background:transparent!important;color:#8fbaff!important;font-size:11px!important;font-weight:700!important;cursor:pointer!important;box-shadow:none!important}
.scope-more-toggle:hover{color:#fff!important;background:transparent!important}
.scope-more-caret{display:inline-block!important;transition:transform .18s ease!important;font-size:13px!important;line-height:1!important}
.scope-more-toggle.is-open .scope-more-caret{transform:rotate(180deg)!important}
.scope-more-formats{display:grid!important;grid-template-rows:0fr!important;opacity:0!important;margin-top:0!important;transition:grid-template-rows .2s ease,opacity .16s ease,margin-top .2s ease!important}
.scope-more-formats-inner{min-height:0!important;overflow:hidden!important;margin-top:0!important}
.scope-more-formats.is-open{grid-template-rows:1fr!important;opacity:1!important;margin-top:5px!important}
.scope-metric-picker{margin-top:12px!important;padding-top:10px!important;border-top:1px solid #1d292b!important}
@media(prefers-reduced-motion:reduce){.scope-more-formats,.scope-more-caret{transition:none!important}}

/* Alpha47A28 — duv-Scope compact core metrics + wins/podiums. */
.scope-table .scope-col-races{width:64px!important;min-width:64px!important;max-width:72px!important;white-space:nowrap!important;text-align:center!important}
.scope-table .scope-col-rk{width:92px!important;min-width:92px!important;max-width:104px!important;white-space:nowrap!important}
.scope-table .scope-col-duvplus{width:86px!important;min-width:86px!important;max-width:96px!important;white-space:nowrap!important}
.scope-table .scope-col-podiums{width:112px!important;min-width:112px!important;max-width:122px!important;white-space:nowrap!important;text-align:center!important}
.scope-table .scope-col-podiums .scope-sort{justify-content:center!important;width:100%!important}
.scope-podium-sep{color:#667773;padding:0 3px}

/* Alpha49A10 — globe-only world scope and mobile filter alignment. */
.world-scope-icon{width:20px;height:20px;display:block;color:currentColor}
.country-combobox-world{display:none;position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:#d7e2e7;z-index:2}
.country-combobox-input-wrapper.is-world .country-combobox-world{display:block}
.country-combobox-input-wrapper.is-world .country-combobox-input{padding-left:42px!important}
.country-combobox-item .item-world-icon{display:inline-flex;width:24px;align-items:center;justify-content:center;color:#d7e2e7}
.country-combobox-item .item-world-icon .world-scope-icon{width:18px;height:18px}
@media(max-width:720px){
  .results-search-surface .race-search-year>details,
  .results-search-surface .race-search-year>details>summary,
  .race-search-filter .filter-popover.result-year{width:100%!important;max-width:none!important;box-sizing:border-box!important}
  .filter-popover.result-year>.filter-panel{left:0!important;right:auto!important;transform:translateY(-10px)!important;width:100%!important;max-width:100%!important}
  .filter-popover.result-year[open]>.filter-panel{transform:translateY(0)!important}
}
@media(max-width:720px){
  /* Results + GOAT year popovers open from the same left edge as their trigger. */
  .race-search-filter .filter-popover.result-year>.filter-panel{left:0!important;right:auto!important;transform:translateY(-10px)!important}
  .race-search-filter .filter-popover.result-year[open]>.filter-panel{transform:translateY(0)!important}
}
