/* v1.20.35 — the last UI refinement. Scoped exclusively to Hlauparar. */

/* An open details element is still accessible and retains its summary,
   while its explanation is presented in a viewport-aware, body-level portal.
   This avoids being covered by sticky tabs and parent stacking contexts. */
.fri-tp-profile-hero-card .fri-tp-index-lean-info[open] .fri-tp-index-lean-explainer {
  visibility:hidden!important;
  pointer-events:none!important;
}
.fri-tp-index-portal {
  position:fixed!important;
  z-index:2147483000!important;
  box-sizing:border-box!important;
  border:1px solid #dce5f2!important;
  background:#fff!important;
  border-radius:14px!important;
  padding:13px 15px!important;
  box-shadow:0 16px 42px rgba(18,36,75,.19),0 2px 6px rgba(18,36,75,.06)!important;
  color:#38485f!important;
  text-align:left!important;
  font-size:14px!important;
  line-height:1.5!important;
  isolation:isolate!important;
}
.fri-tp-index-portal p{margin:0!important;font-size:inherit!important;line-height:inherit!important;color:inherit!important}
.fri-tp-index-portal p+p{margin-top:9px!important}

/* A verified recent race is a full-card link, with the same hover focus as
   the other Hlauparar result cards. The popup fallback is a real button. */
.fri-tp-app.fri-tp-product-shell button.fri-tp-recent-result {
  appearance:none!important;
  font:inherit!important;
  color:inherit!important;
  text-align:left!important;
  cursor:pointer!important;
  display:block!important;
}
.fri-tp-app.fri-tp-product-shell :is(a.fri-tp-recent-result,button.fri-tp-recent-result).is-clickable {
  text-decoration:none!important;
  cursor:pointer!important;
}
.fri-tp-app.fri-tp-product-shell :is(a.fri-tp-recent-result,button.fri-tp-recent-result).is-clickable:hover {
  transform:translateY(-2px)!important;
  box-shadow:0 12px 25px rgba(20,43,83,.10)!important;
  border-color:#c2d0e6!important;
}
.fri-tp-app.fri-tp-product-shell :is(a.fri-tp-recent-result,button.fri-tp-recent-result).is-clickable:focus-visible {
  outline:3px solid #477cff!important;
  outline-offset:3px!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-context .fri-tp-race-link--local {
  text-decoration:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
  font-weight:720!important;
}

/* Records: face-off accents belong on the inside (toward the discipline),
   and must follow the card's *actual* rounded edge rather than being a
   disconnected capsule. Use a clipped after-element, leaving mobile labels. */
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell {
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border-radius:16px!important;
  border:1px solid #dce5f1!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(20,40,78,.045)!important;
  transition:border-color .17s ease,box-shadow .17s ease;
}
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell:hover {
  border-color:#c5d3e7!important;
  box-shadow:0 10px 22px rgba(20,40,78,.075)!important;
}
/* The old general-purpose row ::before drew AN EXTRA blue stripe on the
   left of the entire face-off row, including desktop. The holder cards own
   their accents; the wrapper must never paint one. */
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row::before{
  content:none!important;display:none!important;box-shadow:none!important;
}
@media(min-width:901px){
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell::before{
    content:none!important;
    display:none!important;
  }
}
/* Use an outline following the CARD radius, not a straight pseudo-bar. */
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell::after {
  content:""!important;
  position:absolute!important;
  inset:-1px!important;
  box-sizing:border-box!important;
  width:auto!important;
  height:auto!important;
  border:5px solid transparent!important;
  border-radius:inherit!important;
  background:none!important;
  pointer-events:none!important;
  z-index:1!important;
}
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-men::after {
  border-right-color:var(--fri-primary,#0648d8)!important;
}
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-women::after {
  border-left-color:var(--fri-primary,#0648d8)!important;
}
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row.is-track .fri-tp-record-compare-men::after {
  border-right-color:var(--fri-red,#f04424)!important;
}
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row.is-track .fri-tp-record-compare-women::after {
  border-left-color:var(--fri-red,#f04424)!important;
}
@media(max-width:900px){
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row::before{content:none!important;display:none!important}
  /* Preserve the old 'Karlar'/'Konur' mobile labels; the colour accent is ::after. */
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell::before{z-index:2!important}
}

/* v1.20.36 — mobile record face-off: two distinct rounded cards.
   The previous full-height rectangular ::after bars made a thick blue seam
   where men's and women's results touched. Instead, paint the *curved side
   border* of each actual rounded card; no disconnected vertical capsules. */
@media(max-width:900px){
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row{
    column-gap:10px!important;
    row-gap:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-event{
    margin:0 0 .5rem!important;
    border:0!important;
    background:transparent!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell{
    border:1px solid #dce5f1!important;
    border-radius:16px!important;
    overflow:hidden!important;
    min-width:0!important;
    box-shadow:0 3px 9px rgba(20,40,78,.04)!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell+.fri-tp-record-compare-cell{
    border-left:1px solid #dce5f1!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-men{
    padding-right:1.06rem!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-women{
    padding-left:1.06rem!important;
  }
  /* Keep gender captions readable, away from the coloured inside edge. */
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-men::before{
    right:15px!important;
    left:auto!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-women::before{
    left:15px!important;
    right:auto!important;
  }
  /* One transparent outline, with only the inner-facing border coloured.
     Border-radius makes the stripe follow BOTH top and bottom corners. */
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-cell::after{
    content:""!important;
    position:absolute!important;
    inset:-1px!important;
    box-sizing:border-box!important;
    height:auto!important;
    width:auto!important;
    border:5px solid transparent!important;
    border-radius:inherit!important;
    background:none!important;
    pointer-events:none!important;
    z-index:1!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-men::after{
    border-right-color:var(--fri-primary,#0648d8)!important;
    border-left-color:transparent!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-women::after{
    border-left-color:var(--fri-primary,#0648d8)!important;
    border-right-color:transparent!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row.is-track .fri-tp-record-compare-men::after{
    background:none!important;
    border-right-color:var(--fri-red,#f04424)!important;
  }
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row.is-track .fri-tp-record-compare-women::after{
    background:none!important;
    border-left-color:var(--fri-red,#f04424)!important;
  }
}
@media(max-width:390px){
  .fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row{
    column-gap:8px!important;
  }
}

/* Home shortcuts: restore the original compact, white pill language.
   The desktop hub's left column gets five pills IN ONE LINE; mobile keeps the
   intentionally readable 2+2+1 tiles. No giant rectangular dashboard buttons. */
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;
  width:100%!important;
  max-width:none!important;
  margin-top:16px!important;
}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a {
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:3px!important;
  min-width:0!important;
  min-height:38px!important;
  padding:8px 3px!important;
  border:1px solid #dce5f1!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#3b4b64!important;
  text-align:center!important;
  line-height:1.16!important;
  font-size:clamp(.61rem,.71vw,.76rem)!important;
  font-weight:680!important;
  white-space:nowrap!important;
}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a>span{
  display:inline!important;font-size:.7rem!important;flex:none!important;
}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a:last-child:nth-child(odd){grid-column:auto!important}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a:hover,
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a:focus-visible {
  color:var(--fri-primary)!important;
  border-color:#a8c0e9!important;
  background:#f5f8ff!important;
  box-shadow:0 5px 12px rgba(22,58,125,.05)!important;
  transform:translateY(-1px)!important;
}
@media(max-width:1100px){
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a{
    border-radius:13px!important;
    min-height:46px!important;
    padding:9px 10px!important;
    font-size:clamp(.69rem,1.2vw,.82rem)!important;
  }
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a>span{display:none!important}
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a:last-child:nth-child(odd){grid-column:1/-1!important}
}
@media(max-width:420px){
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a{
    font-size:clamp(.7rem,3vw,.82rem)!important;
    min-height:47px!important;
    padding:9px 6px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills>a,
  .fri-tp-app.fri-tp-product-shell .fri-tp-recent-result{transition:none!important;transform:none!important}
}

/* v1.20.40: same left-hand accent as the other result cards. */
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row .fri-tp-record-compare-cell::after{
 border:0!important;inset:0!important;border-radius:inherit!important;
 background:none!important;box-shadow:inset 4px 0 0 var(--fri-primary,#0648d8)!important;
}
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row.is-track .fri-tp-record-compare-cell::after{
 box-shadow:inset 4px 0 0 var(--fri-red,#f04424)!important;
}
.fri-tp-race-data-notice{padding:14px 18px;border-left:4px solid #003bcb;background:#f3f6fc;border-radius:12px;color:#334763;font-size:.9rem;line-height:1.6;margin:18px 0}

/* v1.20.41: mirrored inner accents; native keyboard-accessible disclosures. */
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row .fri-tp-record-compare-men::after {box-shadow:inset -4px 0 0 var(--fri-primary,#003bcb)!important;}
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-compare-row.is-track .fri-tp-record-compare-men::after {box-shadow:inset -4px 0 0 #ef3340!important;}
