/* Results dropdown (TagMyRace style) */
.tmr-event-results .tmr-summary-body{
  display:flex;
  flex-direction:column;
  gap:0.85rem;
}

.tmr-results-distance{
  margin:0;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:0.15rem 0.75rem 0.5rem;
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}

.tmr-results-distance-summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.5rem;
  cursor:pointer;
  padding:0.45rem 0.2rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#111;
}
.tmr-results-distance-summary::-webkit-details-marker{ display:none; }
.tmr-results-distance-summary::marker{ content:""; }

.tmr-results-distance-panel{
  margin-top:0.35rem;
  border-top:1px solid rgba(0,0,0,.06);
}

.tmr-results-rows{
  display:flex;
  flex-direction:column;
}

[data-results-row][data-visible="0"]{
  display:none;
}

.tmr-results-loadmore{
  margin-top:0.4rem;
  align-self:flex-start;
}

.tmr-results-distance[open] .tmr-summary-toggle::before{
  transform:rotate(270deg);
}

/* Header row */
.tmr-results-head{
  display:grid;
  grid-template-columns: 70px 90px minmax(200px, 1.4fr) minmax(110px, 0.9fr) 130px;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  font-weight:800;
  letter-spacing:.2px;
  background:linear-gradient(90deg, rgba(132,0,28,.06), rgba(250,248,240,.85));
  border-bottom:1px solid rgba(0,0,0,.08);
}

/* Clickable result row */
.tmr-results-row{
  display:grid;
  grid-template-columns: 70px 90px minmax(200px, 1.4fr) minmax(110px, 0.9fr) 130px;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  text-decoration:none;
  color:inherit;
  border-bottom:1px solid rgba(0,0,0,.06);
  position:relative;
}

.tmr-results-row:hover{
  background:rgba(132,0,28,.04);
}

.tmr-results-row:focus{
  outline:3px solid rgba(132,0,28,.22);
  outline-offset:-3px;
}

.tmr-results-row:last-child{ border-bottom:0; }

/* Subtle left accent */
.tmr-results-row::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background:transparent;
}
.tmr-results-row:hover::before{ background:rgba(132,0,28,.55); }

/* Mobile */
@media (max-width: 720px){
  .tmr-results-head,
  .tmr-results-row{
    grid-template-columns: 56px 72px minmax(140px, 1fr) 86px 92px;
    gap:10px;
    font-size:14px;
  }
}

.tmr-results-link{
  color:#7a0018;
  font-weight:600;
  text-decoration:none;
}
.tmr-results-link:hover,
.tmr-results-link:focus{
  text-decoration:underline;
}
