/* FRÍ Hlauparar v1.20.30 — desktop/mobile parity + event analytics.
   A deliberately isolated cascade layer. No third-party assets or font loads.
   Existing logic / data markup is preserved except for five summary statistics.
*/

/* Athlete: carry the well-tested mobile visual hierarchy into desktop. */
@media (min-width:1040px) {
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    grid-template-columns:none!important;
    gap:0!important;
    min-height:0!important;
    height:auto!important;
    margin:0 auto 1rem!important;
    padding:5.7rem clamp(1.3rem,3vw,2.3rem) 1.25rem!important;
    position:relative!important;
    border-radius:27px!important;
    overflow:visible!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card .fri-tp-profile-identity {
    order:1!important;
    display:block!important;
    width:100%!important;
    max-width:820px!important;
    margin:0!important;
    padding:0!important;
    align-self:center!important;
    text-align:center!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card [data-fri-tp-athlete-name] {
    font-size:clamp(2rem,3vw,2.85rem)!important;
    line-height:1.1!important;
    margin:0 auto .75rem!important;
    max-width:100%!important;
    overflow-wrap:break-word!important;
    text-wrap:balance;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-avatar {
    position:absolute!important;
    top:0!important;
    left:50%!important;
    width:112px!important;
    height:112px!important;
    transform:translate(-50%,-50%)!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-image-request {
    position:absolute!important;
    top:39px!important;
    left:calc(50% + 38px)!important;
    z-index:10!important;
    transform:translate(-50%,-50%)!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline {
    margin:.3rem auto .2rem!important;
    width:100%!important;
    justify-content:center!important;
    gap:.2rem .45rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:.24rem .45rem!important;
    max-width:100%!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-club-row:not([hidden]) {
    display:inline-flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-meta {
    display:inline!important;
    flex:0 1 auto!important;
    margin:0!important;
    width:auto!important;
    min-width:0!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row {
    order:2!important;
    position:static!important;
    inset:auto!important;
    width:min(100%,740px)!important;
    max-width:740px!important;
    min-height:0!important;
    height:auto!important;
    margin:1rem auto 0!important;
    padding:.95rem 0 0!important;
    border:0!important;
    border-top:1px solid #e4eaf3!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    align-items:start!important;
    justify-items:stretch!important;
    overflow:visible!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-header-index:not([hidden]) {
    position:static!important;
    inset:auto!important;
    float:none!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    grid-column:auto!important;
    align-self:start!important;
    justify-self:stretch!important;
    margin:0!important;
    padding:.1rem 1.1rem!important;
    border:0!important;
    text-align:left!important;
    background:transparent!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-header-index:first-child:not([hidden]) {
    padding-left:.35rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-header-index:nth-child(2):not([hidden]) {
    padding-right:.35rem!important;
    border-left:1px solid #e4eaf3!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(> .fri-tp-header-index[hidden]) {
    grid-template-columns:1fr!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(> .fri-tp-header-index[hidden]) > .fri-tp-header-index:not([hidden]) {
    padding:.1rem .35rem!important;
    border:0!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-profile-score-credit {
    grid-column:1/-1!important;
    margin:.65rem 0 0!important;
    padding:.55rem 0 0!important;
    border-top:1px solid #edf1f7!important;
    text-align:center!important;
  }
}
/* Tablet identity has the same single-column ordering; avoid an inflated gap. */
@media (min-width:761px) and (max-width:1039px) {
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card {
    padding-top:5.7rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity {
    padding-top:0!important;
  }
}

/* The event's five statistics use the same anatomy as athlete summary tiles. */
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  margin:.8rem 0 .3rem!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #dfe7f2!important;
  border-radius:21px!important;
  background:linear-gradient(155deg,#fff,#fafcff)!important;
  box-shadow:0 5px 18px rgba(23,42,80,.045),0 1px 2px rgba(23,42,80,.02)!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:.65rem!important;
  padding:1rem .7rem!important;
  min-height:106px!important;
  box-sizing:border-box!important;
  min-width:0!important;
  border:0!important;
  border-right:1px solid #e6ebf4!important;
  border-bottom:0!important;
  background:transparent!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat:last-child{
  border-right:0!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-icon {
  display:grid!important;
  flex:0 0 35px!important;
  width:35px!important;height:35px!important;
  place-items:center!important;
  border-radius:11px!important;
  border:1px solid #e4ecfa!important;
  background:linear-gradient(145deg,#eff5ff,#eaf0fb)!important;
  color:#3159a9!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-icon svg{
  display:block!important;
  width:19px!important;height:19px!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-content{
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  flex-direction:column!important;
  gap:.22rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-content strong {
  margin:0!important;
  display:block!important;
  font-size:clamp(.92rem,1.42vw,1.38rem)!important;
  line-height:1.14!important;
  letter-spacing:-.035em!important;
  font-variant-numeric:tabular-nums!important;
  overflow-wrap:break-word!important;
  color:#18243a!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-content span{
  display:block!important;
  margin:0!important;
  color:#55657d!important;
  font-size:clamp(.65rem,.78vw,.76rem)!important;
  font-weight:650!important;
  letter-spacing:0!important;
  text-transform:none!important;
  line-height:1.2!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-content small{
  display:block!important;
  margin:0!important;
  color:#748196!important;
  font-size:clamp(.58rem,.67vw,.67rem)!important;
  line-height:1.32!important;
  overflow-wrap:break-word!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stats-note {
  max-width:76ch!important;
  margin:.45rem 0 .75rem!important;
  padding:0 .2rem!important;
  color:#6e7a8c!important;
  font-size:.69rem!important;
  line-height:1.4!important;
}
@media (max-width:1110px) {
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat:nth-child(3){border-right:0!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat:nth-child(n+4){border-top:1px solid #e6ebf4!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat:last-child{border-right:0!important}
}
@media (max-width:680px) {
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    border-radius:18px!important;
  }
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat{
    min-height:90px!important;
    padding:.75rem .6rem!important;
    gap:.45rem!important;
    border-top:0!important;
    border-right:1px solid #e6ebf4!important;
    border-bottom:1px solid #e6ebf4!important;
  }
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat:nth-child(2n){border-right:0!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat:last-child{
    grid-column:1/-1!important;
    border-bottom:0!important;
    border-right:0!important;
  }
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip > .fri-tp-race-stat:nth-child(3){border-right:1px solid #e6ebf4!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-icon{
    flex-basis:32px!important;width:32px!important;height:32px!important;border-radius:10px!important;
  }
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-icon svg{width:17px!important;height:17px!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-content strong{font-size:clamp(.92rem,3.7vw,1.17rem)!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-content span{font-size:.69rem!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-stat-content small{font-size:.61rem!important}
}

/* Club ranking: aligned numeric column, clear separation, no phantom count. */
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-row {
  display:grid!important;
  grid-template-columns:26px minmax(0,1fr) 4ch!important;
  align-items:center!important;
  gap:.6rem!important;
  min-width:0!important;
  padding:.68rem .9rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-row .fri-tp-race-club-rank{
  width:24px!important;height:24px!important;
  font-variant-numeric:tabular-nums!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-row strong{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.79rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-row b{
  min-width:4ch!important;
  justify-self:end!important;
  text-align:right!important;
  color:#003bcb!important;
  font-size:.86rem!important;
  font-variant-numeric:tabular-nums!important;
}
@media (max-width:760px) {
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-row{padding:.78rem .8rem!important}
}
