.wcsm-sponsors{clear:both;width:100%;box-sizing:border-box;margin-top:22px;padding:14px 0 4px;border-top:1px solid #d9ddde;background:#f4f2ed;color:#66747d;flex-shrink:0}
.wcsm-sponsors-label{display:block;text-align:center;font:500 8px/1.4 Arial,sans-serif;letter-spacing:.2em;margin-bottom:9px}
.wcsm-sponsor-row{display:grid;align-items:center;gap:18px;width:100%}
.wcsm-sponsor-row.primary{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 4px 10px}
.wcsm-sponsor-row.supporting{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:10px 6px 0;border-top:1px solid #e3e5e4}
.wcsm-sponsor-slot{min-width:0;display:flex;align-items:center;justify-content:center}
.wcsm-sponsor-slot img{display:block;width:100%;height:44px;object-fit:contain;filter:none;opacity:1}
.wcsm-sponsor-row.supporting img{height:30px}
#resultPanel .wcsm-sponsors{position:relative;z-index:1;margin-top:24px}
.wcsm-logo-editor{font:12px/1.6 Arial,"Malgun Gothic",sans-serif;color:#252b30;border-top:1px solid #cdd3d5;margin-top:18px;padding-top:18px;min-width:0}
.wcsm-logo-editor summary{cursor:pointer;font-weight:600;padding:8px 0}
.wcsm-logo-editor p{font-size:11px;color:#60707a}
.wcsm-logo-editor label{display:block;margin:12px 0}
.wcsm-logo-editor input[type=file]{width:100%;font-size:11px;margin-top:5px}
.wcsm-logo-editor input[type=text]{box-sizing:border-box;width:100%;padding:8px;border:1px solid #cdd3d5;background:#fffdf9;color:#252b30}
.wcsm-logo-editor button{display:block;width:100%;min-height:40px;padding:8px;margin:8px 0;border:1px solid #cdd3d5;background:#fffdf9;color:#45657b;border-radius:3px;cursor:pointer}
.wcsm-logo-editor output{display:block;font-size:11px;overflow-wrap:anywhere}
.wcsm-logo-editor .wcsm-sponsors{margin-top:12px}
/* Keep the sponsor hierarchy readable without enlarging the menu cards. */
.start-card .event-lockup{margin-bottom:12px}
.start-card .title-by{margin-bottom:14px}
.start-card .wcsm-manifesto{margin-bottom:14px}
.start-card>.wcsm-sponsors,#profilePanel>.wcsm-sponsors,#resultCard>.wcsm-sponsors{position:relative;padding:10px 0 4px}
.start-card>.wcsm-sponsors .wcsm-sponsors-label,#profilePanel>.wcsm-sponsors .wcsm-sponsors-label,#resultCard>.wcsm-sponsors .wcsm-sponsors-label{margin-bottom:5px}
.start-card>.wcsm-sponsors .primary,#profilePanel>.wcsm-sponsors .primary,#resultCard>.wcsm-sponsors .primary{padding-bottom:6px}
.start-card>.wcsm-sponsors .supporting,#profilePanel>.wcsm-sponsors .supporting,#resultCard>.wcsm-sponsors .supporting{padding-top:6px}
.start-card>.wcsm-sponsors .primary img,#profilePanel>.wcsm-sponsors .primary img,#resultCard>.wcsm-sponsors .primary img{height:36px}
.start-card>.wcsm-sponsors .supporting img,#profilePanel>.wcsm-sponsors .supporting img,#resultCard>.wcsm-sponsors .supporting img{height:25px}
/* ranking-classic-ui moves the result tabs inside the legacy leaderboard header.
   That header still has pointer-events:none in styles.css, so explicitly restore
   interaction for the header controls and its two result-view tabs. */
#resultPanel .leaderboard-panel-head{pointer-events:auto!important}
#resultPanel .leaderboard-panel-head>.result-tabs{pointer-events:auto!important;touch-action:manipulation!important}
#resultPanel .leaderboard-panel-head .result-subtab{pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important}

/* Compact records hierarchy: one short RACE RECORDS bar, then tabs physically
   attached to the ranking/history board so the controls read as one component. */
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head{
  height:50px!important;
  min-height:50px!important;
  padding:0 10px!important;
  grid-template-rows:50px!important;
  overflow:visible!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head>div{
  height:50px!important;
  grid-template-rows:50px!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head h2{
  font-size:19px!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel #rankingRoundInline select{
  height:27px!important;
  min-height:27px!important;
  min-width:80px!important;
  padding-top:3px!important;
  padding-bottom:3px!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head>.result-tabs{
  position:absolute!important;
  left:-7px!important;
  right:-7px!important;
  top:50px!important;
  width:auto!important;
  height:40px!important;
  min-height:40px!important;
  margin:0!important;
  grid-template-rows:40px!important;
  background:rgba(244,242,237,.96)!important;
  border-top:1px solid rgba(69,101,123,.11)!important;
  border-bottom:0!important;
  box-shadow:none!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head .result-subtab{
  height:40px!important;
  min-height:40px!important;
  padding:5px 8px 4px!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .result-view{
  inset:calc(var(--wcsm-brandbar-h,40px) + 102px) 0 0!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .classification-board,
html body #resultPanel.result-menu-screen.leaderboard-panel .history-board{
  margin:0 7px 8px!important;
  padding-top:8px!important;
  border-top:0!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .classification-board::before,
html body #resultPanel.result-menu-screen.leaderboard-panel .history-board::before{
  inset:0 -2px!important;
}

/* Ranking density: move the compact header upward, show the top 10 and keep
   the signed-in athlete as one extra highlighted row when they rank lower. */
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head{
  top:calc(var(--wcsm-brandbar-h,40px) + 4px)!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .result-view{
  inset:calc(var(--wcsm-brandbar-h,40px) + 94px) 0 0!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .classification-board{
  padding:6px 12px 8px!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel #worldRankingView .classification-head{
  min-height:24px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel #worldRankingView .classification-row{
  min-height:31px!important;
  padding-top:3px!important;
  padding-bottom:3px!important;
}
/* renderClassification still prepares 15 leaders for compatibility. Present
   only 1-10; if the current athlete is 11th-15th, keep that row as the 11th
   visible row. If lower than 15th, the existing is-pb-outside row is retained. */
html body #resultPanel #classificationList>.classification-row:nth-of-type(n+11):not(.is-me):not(.is-pb-outside){
  display:none!important;
}
html body #resultPanel #classificationList>.classification-pb-spacer{
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
html body #resultPanel #classificationList>.classification-row.is-me{
  background:linear-gradient(90deg,rgba(217,107,86,.18),rgba(255,253,249,.72))!important;
  border-left:3px solid var(--wcsm-coral,#d96b56)!important;
  box-shadow:inset 0 0 0 1px rgba(217,107,86,.12)!important;
  font-weight:700!important;
}
html body #resultPanel #classificationList>.classification-row.is-me:nth-of-type(n+11),
html body #resultPanel #classificationList>.classification-row.is-pb-outside{
  margin-top:8px!important;
}
html body #resultPanel #classificationList>.classification-row.is-me .classification-rank,
html body #resultPanel #classificationList>.classification-row.is-me .classification-time{
  font-weight:900!important;
  color:var(--wcsm-graphite,#252b30)!important;
}

/* The compact tabs overflow below the 50px header. Keep that parent stacking
   context above the result view so the visible strip is not painted underneath
   the standings board. */
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head{
  z-index:5!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head>.result-tabs{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:30!important;
  pointer-events:auto!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .result-view{
  z-index:2!important;
}

/* Final result stack: 50px records header + 30px tabs + standings. The tabs
   live inside the 80px header footprint, so the board can never overlap them. */
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head{
  height:80px!important;
  min-height:80px!important;
  grid-template-rows:50px 30px!important;
  overflow:hidden!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head>.result-tabs{
  position:absolute!important;
  top:50px!important;
  bottom:auto!important;
  left:-7px!important;
  right:-7px!important;
  height:30px!important;
  min-height:30px!important;
  grid-template-rows:30px!important;
  z-index:6!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head .result-subtab{
  height:30px!important;
  min-height:30px!important;
  padding:0 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head .result-subtab strong{
  font-size:10px!important;
  line-height:30px!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .leaderboard-panel-head .result-subtab small{
  display:none!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .result-view{
  inset:calc(var(--wcsm-brandbar-h,40px) + 84px) 0 0!important;
  z-index:2!important;
}
html body #resultPanel.result-menu-screen.leaderboard-panel .classification-board,
html body #resultPanel.result-menu-screen.leaderboard-panel .history-board{
  margin-top:0!important;
  padding-top:6px!important;
}

@media(max-width:740px){nav .wcsm-logo-editor{grid-column:1/-1}}
@media(max-height:740px){.wcsm-sponsors{margin-top:16px;padding-top:10px}.wcsm-sponsor-slot img{height:36px}.wcsm-sponsor-row.supporting img{height:25px}}
