
/*
 * FRÍ Tilastopaja MVP
 * Intentionally inherits typography from fri.is / Elementor.
 * Elementor global colors are preferred, with FRÍ fallbacks.
 */

.fri-tp-app{
  --fri-primary: #003BCB;
  --fri-red: #F14024;
  --fri-primary-dark: #002FA6;
  --fri-text: #172033;
  --fri-text-soft: #475569;
  --fri-muted: #64748B;
  --fri-border: #E2E8F0;
  --fri-surface: #FFFFFF;
  --fri-soft: #F8FAFC;
  --fri-radius: 16px;
  --fri-radius-small: 10px;

  width:100%;
  color:var(--fri-text);
  font-family:inherit;
  font-size:inherit;
  line-height:1.5;
}

.fri-tp-app *,
.fri-tp-app *::before,
.fri-tp-app *::after{box-sizing:border-box}

.fri-tp-search-panel,
.fri-tp-profile{
  width:100%;
  max-width:none;
  margin:0;
}

/* Editorial heading language used around fri.is */
.fri-tp-eyebrow{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin:0 0 .55rem;
  color:var(--fri-primary);
  font-size:.78rem;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.fri-tp-eyebrow::before{
  content:"";
  width:26px;
  height:3px;
  flex:0 0 26px;
  border-radius:99px;
  background:var(--fri-primary);
}

.fri-tp-search-panel h2,
.fri-tp-profile h2{
  margin:0;
  color:var(--fri-text);
  font:inherit;
  font-size:clamp(2rem,4vw,3.5rem);
  font-weight:600;
  line-height:1.02;
  letter-spacing:-.035em;
}

.fri-tp-section h3{
  margin:.1rem 0 0;
  color:var(--fri-text);
  font:inherit;
  font-size:clamp(1.45rem,2.2vw,2rem);
  font-weight:600;
  line-height:1.1;
  letter-spacing:-.02em;
}

.fri-tp-intro{
  max-width:720px;
  margin:.8rem 0 0;
  color:var(--fri-text-soft);
  font-size:1.05rem;
}

/* Search */
.fri-tp-search-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.75rem;
  align-items:end;
  margin:2rem 0 .8rem;
  max-width:820px;
}

.fri-tp-search-form label span,
.fri-tp-event-picker span{
  display:block;
  margin:0 0 .4rem;
  color:var(--fri-text);
  font-size:.78rem;
  font-weight:600;
}

.fri-tp-search-form input,
.fri-tp-event-picker select{
  width:100%;
  min-height:50px;
  padding:.78rem .9rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius-small);
  background:var(--fri-surface);
  color:var(--fri-text);
  font:inherit;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}

.fri-tp-search-form input:focus,
.fri-tp-event-picker select:focus{
  border-color:var(--fri-primary);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--fri-primary) 14%, transparent);
}

.fri-tp-search-form button,
.fri-tp-secondary{
  min-height:50px;
  padding:.78rem 1.25rem;
  border-radius:var(--fri-radius-small);
  font:inherit;
  font-size:.92rem;
  font-weight:600;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.fri-tp-search-form button{
  border:1px solid var(--fri-primary);
  background:var(--fri-primary);
  color:#fff;
}

.fri-tp-search-form button:hover{
  background:var(--fri-primary-dark);
  border-color:var(--fri-primary-dark);
  transform:translateY(-1px);
}

.fri-tp-secondary{
  border:1px solid var(--fri-border);
  background:transparent;
  color:var(--fri-text);
}

.fri-tp-secondary:hover{
  border-color:var(--fri-primary);
  color:var(--fri-primary);
}

.fri-tp-status{
  min-height:1.45rem;
  margin:.25rem 0;
  color:var(--fri-muted);
  font-size:.9rem;
}

/* Search result cards – same restrained card language used elsewhere on FRÍ */
.fri-tp-search-results{
  display:grid;
  gap:.65rem;
  max-width:820px;
  margin-top:.55rem;
}

.fri-tp-search-card{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:1rem 1.1rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:var(--fri-surface);
  color:var(--fri-text);
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fri-tp-search-card:hover{
  border-color:var(--fri-primary);
  transform:translateY(-1px);
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.fri-tp-search-card strong{
  display:block;
  color:var(--fri-text);
  font-size:1.03rem;
}

.fri-tp-search-card small{
  display:block;
  margin-top:.15rem;
  color:var(--fri-muted);
  font-size:.83rem;
}

/* Athlete header */
.fri-tp-profile-head{
  display:flex;
  justify-content:space-between;
  gap:1.5rem;
  align-items:flex-end;
  padding-bottom:1.5rem;
  border-bottom:1px solid var(--fri-border);
}

.fri-tp-meta{
  margin-top:.55rem;
  color:var(--fri-muted);
  font-size:.95rem;
}

/* Personal best cards */
.fri-tp-pb-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin:1.5rem 0 2.5rem;
}

.fri-tp-pb{
  position:relative;
  overflow:hidden;
  min-height:130px;
  padding:1.1rem 1.15rem 1rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:var(--fri-surface);
}

.fri-tp-pb::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--fri-primary);
}

.fri-tp-pb-event{
  color:var(--fri-muted);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.fri-tp-pb-time{
  margin:.25rem 0 .18rem;
  color:var(--fri-text);
  font-size:clamp(1.55rem,2.4vw,2rem);
  font-weight:600;
  line-height:1;
  letter-spacing:-.03em;
}

.fri-tp-pb-meta{
  color:var(--fri-muted);
  font-size:.78rem;
  line-height:1.35;
}

/* Content sections */
.fri-tp-section{
  margin-top:2.5rem;
  padding-top:2rem;
  border-top:1px solid var(--fri-border);
}

.fri-tp-section-head{
  display:flex;
  justify-content:space-between;
  gap:1.25rem;
  align-items:flex-end;
}

.fri-tp-event-picker{min-width:190px}

/* Chart */
.fri-tp-chart{
  margin-top:1.15rem;
  padding:1.15rem;
  overflow:auto;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:var(--fri-surface);
}

.fri-tp-chart svg{
  display:block;
  width:100%;
  min-width:560px;
  max-height:300px;
  color:var(--fri-primary);
}

.fri-tp-chart circle{fill:currentColor}
.fri-tp-chart text{
  fill:var(--fri-text);
  font-family:inherit;
  font-size:13px;
  font-weight:600;
}
.fri-tp-chart-year{
  fill:var(--fri-muted)!important;
  font-weight:500!important;
}

.fri-tp-chart-note,
.fri-tp-chart-single span{
  color:var(--fri-muted);
  font-size:.78rem;
}

.fri-tp-chart-single{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:2rem;
}
.fri-tp-chart-single strong{
  color:var(--fri-text);
  font-size:2rem;
}

/* Results table */
.fri-tp-table-wrap{
  overflow:auto;
  margin-top:1.15rem;
  border-top:2px solid var(--fri-text);
  background:var(--fri-surface);
}

.fri-tp-table{
  width:100%;
  min-width:780px;
  border-collapse:collapse;
  background:transparent;
}

.fri-tp-table th,
.fri-tp-table td{
  padding:.9rem .75rem;
  border-bottom:1px solid var(--fri-border);
  text-align:left;
  vertical-align:top;
}

.fri-tp-table th{
  color:var(--fri-muted);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.fri-tp-table td{
  color:var(--fri-text-soft);
  font-size:.91rem;
}

.fri-tp-table td strong{color:var(--fri-text)}
.fri-tp-table tr:hover td{background:var(--fri-soft)}

.fri-tp-flag{
  display:inline-block;
  margin-left:.25rem;
  padding:.1rem .3rem;
  border-radius:5px;
  background:var(--fri-soft);
  color:var(--fri-muted);
  font-size:.68rem;
  font-weight:600;
}

.fri-tp-empty{
  padding:1rem 0;
  color:var(--fri-muted);
  font-size:.92rem;
}

@media (max-width:900px){
  .fri-tp-pb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  .fri-tp-profile-head,
  .fri-tp-section-head{
    align-items:stretch;
    flex-direction:column;
  }

  .fri-tp-event-picker{width:100%;min-width:0}
}

@media (max-width:600px){
  .fri-tp-search-form{
    grid-template-columns:1fr;
  }

  .fri-tp-search-form button{width:100%}

  .fri-tp-pb-grid{
    grid-template-columns:1fr 1fr;
    gap:.75rem;
  }

  .fri-tp-pb{
    min-height:118px;
    padding:1rem;
  }

  .fri-tp-profile-head{
    padding-bottom:1.2rem;
  }
}

@media (max-width:420px){
  .fri-tp-pb-grid{grid-template-columns:1fr}
}


/* v0.4 — runner-profile / ITRA-inspired interaction, kept within FRÍ design language */
.fri-tp-profile-actions{display:flex;gap:.6rem;flex-wrap:wrap}

.fri-tp-tabs{
  display:flex;
  gap:1.4rem;
  margin:1.15rem 0 1.5rem;
  border-bottom:1px solid var(--fri-border);
  overflow:auto;
}
.fri-tp-tabs button{
  position:relative;
  padding:.85rem 0 .75rem;
  border:0;
  background:transparent;
  color:var(--fri-muted);
  font:inherit;
  font-size:.9rem;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
.fri-tp-tabs button.is-active{color:var(--fri-text)}
.fri-tp-tabs button.is-active::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:3px;
  background:var(--fri-primary);
  border-radius:99px 99px 0 0;
}
.fri-tp-tab-panel{display:none}
.fri-tp-tab-panel.is-active{display:block}

.fri-tp-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin:1rem 0 2rem;
}
.fri-tp-summary-card{
  padding:1.15rem 1.2rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:var(--fri-surface);
}
.fri-tp-summary-card strong{
  display:block;
  color:var(--fri-text);
  font-size:clamp(1.7rem,3vw,2.4rem);
  line-height:1;
  letter-spacing:-.04em;
}
.fri-tp-summary-card span{
  display:block;
  margin-top:.4rem;
  color:var(--fri-muted);
  font-size:.8rem;
  font-weight:600;
}

.fri-tp-section-no-border{
  margin-top:0;
  padding-top:0;
  border-top:0;
}

.fri-tp-text-button{
  padding:.25rem 0;
  border:0;
  background:transparent;
  color:var(--fri-primary);
  font:inherit;
  font-size:.86rem;
  font-weight:600;
  cursor:pointer;
}

.fri-tp-recent-list{
  margin-top:1rem;
  border-top:2px solid var(--fri-text);
}
.fri-tp-recent-row{
  display:grid;
  grid-template-columns:105px minmax(0,1fr) auto;
  gap:1rem;
  align-items:center;
  padding:.85rem .1rem;
  border-bottom:1px solid var(--fri-border);
}
.fri-tp-recent-date{
  color:var(--fri-muted);
  font-size:.82rem;
}
.fri-tp-recent-main strong,
.fri-tp-recent-main span{display:block}
.fri-tp-recent-main strong{color:var(--fri-text)}
.fri-tp-recent-main span{
  margin-top:.12rem;
  color:var(--fri-muted);
  font-size:.8rem;
}
.fri-tp-recent-time{
  color:var(--fri-text);
  font-size:1.05rem;
  font-weight:600;
  white-space:nowrap;
}

.fri-tp-compare{
  margin-top:2.5rem;
  padding:1.4rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:var(--fri-soft);
}
.fri-tp-compare-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
}
.fri-tp-compare-head h3{margin:.1rem 0 0}
.fri-tp-compare-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.7rem;
  max-width:720px;
  margin:1.2rem 0 .5rem;
}
.fri-tp-compare-search input{
  width:100%;
  min-height:48px;
  padding:.72rem .85rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius-small);
  background:#fff;
  color:var(--fri-text);
  font:inherit;
}
.fri-tp-compare-search button{
  min-height:48px;
  padding:.72rem 1rem;
  border:1px solid var(--fri-primary);
  border-radius:var(--fri-radius-small);
  background:var(--fri-primary);
  color:#fff;
  font:inherit;
  font-weight:600;
  cursor:pointer;
}
.fri-tp-compare-search-results{display:grid;gap:.55rem;max-width:720px}
.fri-tp-search-card-small{padding:.75rem .9rem}

.fri-tp-versus-head{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:1rem;
  align-items:center;
  margin:1.5rem 0 1rem;
  text-align:center;
}
.fri-tp-versus-head span{
  color:var(--fri-muted);
  font-size:.8rem;
  font-weight:600;
  text-transform:uppercase;
}
.fri-tp-versus-head strong{font-size:1.15rem}

.fri-tp-compare-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
  margin:1rem 0 1.2rem;
}
.fri-tp-compare-stats article{
  padding:.95rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius-small);
  background:#fff;
  text-align:center;
}
.fri-tp-compare-stats strong{
  display:block;
  font-size:1.7rem;
  line-height:1;
}
.fri-tp-compare-stats span{
  display:block;
  margin-top:.3rem;
  color:var(--fri-muted);
  font-size:.76rem;
}

.fri-tp-compare-table-wrap{overflow:auto}
.fri-tp-compare-table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
  background:#fff;
}
.fri-tp-compare-table th,
.fri-tp-compare-table td{
  padding:.75rem .8rem;
  border-bottom:1px solid var(--fri-border);
  text-align:left;
}
.fri-tp-compare-table th{
  color:var(--fri-muted);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.fri-tp-compare-table td.is-winner{
  color:var(--fri-primary);
  font-weight:600;
}

@media (max-width:800px){
  .fri-tp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .fri-tp-recent-row{
    grid-template-columns:1fr auto;
    gap:.35rem .75rem;
  }
  .fri-tp-recent-date{grid-column:1 / -1}
  .fri-tp-compare-search{grid-template-columns:1fr}
  .fri-tp-compare-stats{grid-template-columns:1fr}
}


/* ==========================================================
   v0.4.2 — FRÍ UI polish
   Explicit overrides protect the component from global
   Elementor/button/table styles on fri.is.
   ========================================================== */

/* Search proportions */
.fri-tp-search-form{
  max-width:860px;
  gap:.8rem;
}

.fri-tp-search-form > label{min-width:0}

.fri-tp-search-form button,
.fri-tp-compare-search button{
  color:#fff !important;
  background:var(--fri-primary) !important;
  border-color:var(--fri-primary) !important;
}

.fri-tp-search-form button:hover,
.fri-tp-search-form button:focus-visible,
.fri-tp-compare-search button:hover,
.fri-tp-compare-search button:focus-visible{
  color:#fff !important;
  background:var(--fri-primary-dark) !important;
  border-color:var(--fri-primary-dark) !important;
}

/* Search result cards: never inherit giant pill buttons from the theme */
.fri-tp-search-card{
  border-radius:16px !important;
  padding:1rem 1.2rem !important;
  min-height:76px;
  background:#fff !important;
  color:var(--fri-text) !important;
  border:1px solid var(--fri-border) !important;
}

.fri-tp-search-card strong{
  color:var(--fri-text) !important;
}

.fri-tp-search-card small{
  color:var(--fri-muted) !important;
}

.fri-tp-search-card:hover,
.fri-tp-search-card:focus-visible{
  background:var(--fri-primary) !important;
  border-color:var(--fri-primary) !important;
  color:#fff !important;
  box-shadow:0 10px 28px rgba(15,23,42,.10);
  outline:none;
}

.fri-tp-search-card:hover *,
.fri-tp-search-card:focus-visible *{
  color:#fff !important;
}

/* Secondary outline actions */
.fri-tp-secondary{
  min-height:48px !important;
  padding:.7rem 1.2rem !important;
  border:1px solid var(--fri-primary) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:var(--fri-primary) !important;
  line-height:1 !important;
}

.fri-tp-secondary:hover,
.fri-tp-secondary:focus-visible{
  background:var(--fri-primary) !important;
  border-color:var(--fri-primary) !important;
  color:#fff !important;
  transform:none;
  outline:none;
}

/* Larger, calmer navigation pills */
.fri-tp-tabs{
  display:flex;
  align-items:center;
  gap:.65rem;
  margin:1.35rem 0 1.8rem;
  padding:0 0 1.15rem;
  border-bottom:1px solid var(--fri-border);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}

.fri-tp-tabs::-webkit-scrollbar{display:none}

.fri-tp-tabs button{
  position:relative;
  min-height:44px !important;
  padding:.7rem 1.15rem !important;
  border:1px solid transparent !important;
  border-radius:999px !important;
  background:transparent !important;
  color:var(--fri-muted) !important;
  font:inherit !important;
  font-size:.9rem !important;
  font-weight:600 !important;
  line-height:1 !important;
  white-space:nowrap;
  box-shadow:none !important;
}

.fri-tp-tabs button::after{display:none !important}

.fri-tp-tabs button:hover,
.fri-tp-tabs button:focus-visible,
.fri-tp-tabs button.is-active{
  background:var(--fri-primary) !important;
  border-color:var(--fri-primary) !important;
  color:#fff !important;
  outline:none;
}

/* More breathing room in the profile */
.fri-tp-profile-head{
  padding:0 0 1.65rem;
}

.fri-tp-summary-grid{
  gap:1rem;
  margin:0 0 2.4rem;
}

.fri-tp-summary-card{
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:1.25rem 1.3rem;
  border-radius:14px;
}

.fri-tp-section{
  margin-top:2.75rem;
  padding-top:2.15rem;
}

.fri-tp-section-no-border{
  margin-top:0;
  padding-top:0;
}

/* PB cards */
.fri-tp-pb-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,280px));
  gap:1rem;
  margin:1.45rem 0 2.6rem;
}

.fri-tp-pb{
  min-height:126px;
  border-radius:14px;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}

/* Filters */
.fri-tp-event-picker select{
  min-height:44px;
  border-radius:10px;
  background:#fff;
}

/* Results table: deliberate FRÍ blue header with accessible contrast */
.fri-tp-table-wrap{
  border-top:0;
  border-radius:12px;
  overflow:auto;
  box-shadow:inset 0 0 0 1px var(--fri-border);
}

.fri-tp-table thead th,
.fri-tp-compare-table thead th{
  background:var(--fri-primary) !important;
  color:#fff !important;
  border-bottom:0 !important;
  padding:.9rem .8rem;
}

.fri-tp-table tbody tr:last-child td,
.fri-tp-compare-table tbody tr:last-child td{
  border-bottom:0;
}

.fri-tp-table tbody tr:hover td{
  background:#F5F8FD;
}

/* Recent results */
.fri-tp-recent-list{
  border-top:1px solid var(--fri-border);
}

.fri-tp-recent-row{
  min-height:64px;
  padding:1rem .15rem;
}

/* Link-style action should stay link-style instead of inheriting theme button fill */
.fri-tp-text-button{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--fri-primary) !important;
  padding:.35rem 0 !important;
  box-shadow:none !important;
}

.fri-tp-text-button:hover,
.fri-tp-text-button:focus-visible{
  background:transparent !important;
  color:var(--fri-primary-dark) !important;
  text-decoration:underline;
  outline:none;
}

/* Comparison panel */
.fri-tp-compare{
  margin-top:2.75rem;
  padding:1.6rem;
  border-radius:16px;
  background:#F7F9FC;
}

.fri-tp-compare-head{
  align-items:center;
}

.fri-tp-compare-head h3{
  margin:.1rem 0 0;
  color:var(--fri-text) !important;
  font:inherit;
  font-size:clamp(1.55rem,2.4vw,2.15rem);
  font-weight:600;
  line-height:1.1;
  letter-spacing:-.025em;
}

.fri-tp-versus-head{
  margin:1.75rem 0 1.15rem;
}

.fri-tp-compare-stats article{
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:12px;
}

.fri-tp-compare-table{
  border-radius:12px;
  overflow:hidden;
}

/* Focus accessibility */
.fri-tp-app button:focus-visible,
.fri-tp-app input:focus-visible,
.fri-tp-app select:focus-visible{
  outline:3px solid color-mix(in srgb, var(--fri-primary) 24%, transparent);
  outline-offset:2px;
}

/* Mobile */
@media (max-width:760px){
  .fri-tp-profile-actions{
    width:100%;
  }

  .fri-tp-secondary{
    flex:1 1 auto;
  }

  .fri-tp-tabs{
    margin-top:1rem;
    padding-bottom:.9rem;
  }

  .fri-tp-tabs button{
    min-height:42px !important;
    padding:.65rem 1rem !important;
  }

  .fri-tp-pb-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:520px){
  .fri-tp-pb-grid{
    grid-template-columns:1fr;
  }

  .fri-tp-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.7rem;
  }

  .fri-tp-summary-card{
    min-height:96px;
    padding:1rem;
  }

  .fri-tp-compare{
    padding:1.1rem;
  }
}


/* ==========================================================
   v0.5 — Hlauparavegabréf
   ========================================================== */

.fri-tp-summary-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.fri-tp-summary-card strong{
  font-size:clamp(1.45rem,2.3vw,2.15rem);
}

.fri-tp-insight-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin-top:1.2rem;
}

.fri-tp-insight-card{
  min-height:150px;
  padding:1.15rem;
  border:1px solid var(--fri-border);
  border-radius:14px;
  background:#fff;
}

.fri-tp-insight-card > span{
  display:block;
  color:var(--fri-muted);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.fri-tp-insight-card strong{
  display:block;
  margin:.35rem 0 .45rem;
  color:var(--fri-text);
  font-size:1.7rem;
  line-height:1;
  letter-spacing:-.03em;
}

.fri-tp-insight-card p{
  margin:0;
  color:var(--fri-text-soft);
  font-size:.83rem;
  line-height:1.45;
}

.fri-tp-milestones{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
  margin-top:1.1rem;
}

.fri-tp-milestone{
  display:flex;
  gap:.75rem;
  align-items:flex-start;
  min-height:92px;
  padding:1rem;
  border:1px solid var(--fri-border);
  border-radius:12px;
  background:#fff;
}

.fri-tp-milestone-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--fri-soft);
  font-size:1rem;
}

.fri-tp-milestone strong,
.fri-tp-milestone span{display:block}

.fri-tp-milestone strong{
  color:var(--fri-text);
  font-size:.9rem;
}

.fri-tp-milestone span{
  margin-top:.2rem;
  color:var(--fri-muted);
  font-size:.76rem;
}

.fri-tp-passport-hero{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin:1.25rem 0 1.6rem;
}

.fri-tp-passport-number{
  padding:1.15rem 1.2rem;
  border:1px solid var(--fri-border);
  border-radius:14px;
  background:#fff;
}

.fri-tp-passport-number strong,
.fri-tp-passport-number span{display:block}

.fri-tp-passport-number strong{
  color:var(--fri-text);
  font-size:clamp(1.4rem,2.2vw,2rem);
  line-height:1.05;
  letter-spacing:-.03em;
}

.fri-tp-passport-number span{
  margin-top:.35rem;
  color:var(--fri-muted);
  font-size:.78rem;
  font-weight:600;
}

.fri-tp-passport-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}

.fri-tp-passport-card{
  min-height:245px;
  padding:1.25rem;
  border:1px solid var(--fri-border);
  border-radius:16px;
  background:#fff;
}

.fri-tp-passport-card-head{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin-bottom:1rem;
}

.fri-tp-passport-card-head span{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--fri-soft);
}

.fri-tp-passport-card h4{
  margin:0;
  color:var(--fri-text);
  font:inherit;
  font-size:1.05rem;
  font-weight:600;
}

.fri-tp-passport-big{
  margin-bottom:.75rem;
  color:var(--fri-text);
  font-size:2.25rem;
  font-weight:600;
  line-height:1;
  letter-spacing:-.04em;
}

.fri-tp-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}

.fri-tp-chip-list span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:.35rem .65rem;
  border:1px solid var(--fri-border);
  border-radius:999px;
  background:var(--fri-soft);
  color:var(--fri-text-soft);
  font-size:.76rem;
  font-weight:600;
}

.fri-tp-chip-list em{
  color:var(--fri-muted);
  font-size:.8rem;
}

.fri-tp-passport-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75rem;
  margin-bottom:1rem;
}

.fri-tp-passport-split > div{
  padding:.8rem;
  border-radius:10px;
  background:var(--fri-soft);
}

.fri-tp-passport-split strong,
.fri-tp-passport-split span{display:block}

.fri-tp-passport-split strong{
  color:var(--fri-text);
  font-size:1.55rem;
  line-height:1;
}

.fri-tp-passport-split span{
  margin-top:.25rem;
  color:var(--fri-muted);
  font-size:.72rem;
  font-weight:600;
}

.fri-tp-passport-card p{
  color:var(--fri-text-soft);
  font-size:.84rem;
  line-height:1.45;
}

.fri-tp-small-note{
  margin:.65rem 0 0;
  color:var(--fri-muted)!important;
  font-size:.75rem!important;
}

.fri-tp-badges{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.75rem;
  margin-top:1.1rem;
}

.fri-tp-badge{
  min-height:100px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:.9rem;
  border:1px solid var(--fri-border);
  border-radius:14px;
  background:#fff;
  text-align:center;
}

.fri-tp-badge strong{
  color:var(--fri-primary);
  font-size:1.2rem;
}

.fri-tp-badge span{
  margin-top:.3rem;
  color:var(--fri-muted);
  font-size:.7rem;
  line-height:1.3;
}

@media (max-width:1050px){
  .fri-tp-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .fri-tp-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-milestones{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-badges{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:760px){
  .fri-tp-passport-hero{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-passport-grid{grid-template-columns:1fr}
}

@media (max-width:520px){
  .fri-tp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-insight-grid{grid-template-columns:1fr}
  .fri-tp-milestones{grid-template-columns:1fr}
  .fri-tp-badges{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================
   v0.6 — compact profile + full comparison workspace
   ========================================================== */

.fri-tp-app,
.fri-tp-app button,
.fri-tp-app input,
.fri-tp-app select,
.fri-tp-app table,
.fri-tp-app td,
.fri-tp-app th,
.fri-tp-app p,
.fri-tp-app span,
.fri-tp-app label{
  font-family:var(--e-global-typography-text-font-family, inherit) !important;
}

.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-app h4{
  font-family:var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
}

/* General statistics: less dashboard-heavy and more compact */
.fri-tp-summary-grid{
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
  gap:.7rem;
  margin-bottom:2rem;
}

.fri-tp-summary-card{
  min-height:88px;
  padding:.9rem 1rem;
  border-radius:12px;
}

.fri-tp-summary-card strong{
  font-size:clamp(1.25rem,1.8vw,1.65rem);
  line-height:1.08;
}

.fri-tp-summary-card span{
  margin-top:.28rem;
  font-size:.71rem;
}

/* Career summary cards */
.fri-tp-insight-grid{
  grid-template-columns:repeat(auto-fit,minmax(185px,1fr));
  gap:.7rem;
}

.fri-tp-insight-card{
  min-height:108px;
  padding:.9rem 1rem;
  border-radius:12px;
}

.fri-tp-insight-card > span{
  font-size:.68rem;
}

.fri-tp-insight-card strong{
  margin:.22rem 0 .3rem;
  font-size:1.35rem;
}

.fri-tp-insight-card p{
  font-size:.75rem;
  line-height:1.35;
}

/* Milestones: tighter and easier to scan */
.fri-tp-milestones{
  gap:.6rem;
}

.fri-tp-milestone{
  min-height:76px;
  padding:.78rem .85rem;
}

.fri-tp-milestone-icon{
  width:30px;
  height:30px;
  flex-basis:30px;
  font-size:.88rem;
}

.fri-tp-milestone strong{font-size:.82rem}
.fri-tp-milestone span{font-size:.7rem}

/* Intro under comparison title */
.fri-tp-section-intro{
  max-width:700px;
  margin:.45rem 0 0;
  color:var(--fri-muted);
  font-size:.88rem;
}

/* Comparison is now a full tab, not a floating bottom panel */
.fri-tp-compare-search{
  margin:1.35rem 0 .5rem;
  max-width:760px;
}

.fri-tp-compare-output{
  margin-top:1.8rem;
}

.fri-tp-versus-head{
  padding:1.15rem 1.2rem;
  border:1px solid var(--fri-border);
  border-radius:14px;
  background:var(--fri-soft);
}

.fri-tp-versus-head > div{
  display:flex;
  flex-direction:column;
  gap:.2rem;
}

.fri-tp-versus-head > div > span{
  color:var(--fri-muted);
  font-size:.75rem;
  font-weight:600;
}

.fri-tp-vs{
  color:var(--fri-muted) !important;
  font-size:.75rem !important;
  font-weight:600;
  text-transform:uppercase;
}

.fri-tp-compare-section{
  margin-top:2.6rem;
  padding-top:2rem;
  border-top:1px solid var(--fri-border);
}

.fri-tp-compare-section:first-of-type{
  margin-top:2rem;
}

.fri-tp-compare-table-wrap{
  margin-top:1rem;
  overflow:auto;
  border-radius:12px;
  box-shadow:inset 0 0 0 1px var(--fri-border);
}

.fri-tp-compare-table{
  min-width:650px;
}

/* Two-line progression chart */
.fri-tp-compare-chart{
  margin-top:1rem;
}

.fri-tp-compare-chart svg{
  min-width:620px;
}

.fri-tp-compare-chart polyline.series-a{
  stroke:var(--fri-primary);
}

.fri-tp-compare-chart circle.series-a{
  fill:var(--fri-primary);
}

.fri-tp-compare-chart polyline.series-b{
  stroke:var(--e-global-color-accent, #F36C21);
}

.fri-tp-compare-chart circle.series-b{
  fill:var(--e-global-color-accent, #F36C21);
}

.fri-tp-compare-chart-legend{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin:0 0 .7rem;
  color:var(--fri-text-soft);
  font-size:.76rem;
  font-weight:600;
}

.fri-tp-compare-chart-legend span{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}

.fri-tp-compare-chart-legend i{
  width:18px;
  height:3px;
  display:inline-block;
  border-radius:99px;
}

.fri-tp-compare-chart-legend i.series-a{
  background:var(--fri-primary);
}

.fri-tp-compare-chart-legend i.series-b{
  background:var(--e-global-color-accent, #F36C21);
}

.fri-tp-compare-year-labels text{
  fill:var(--fri-muted);
  font-family:inherit;
  font-size:12px;
  font-weight:600;
}

.fri-tp-progression-compare-table{
  margin-top:1rem;
}

.fri-tp-shared-races-table td.is-compare-winner{
  color:var(--fri-primary);
}

.fri-tp-shared-races-table td.is-compare-winner strong{
  color:var(--fri-primary);
}

/* Passport comparison table should be calm, not oversized */
.fri-tp-compare-table td,
.fri-tp-compare-table th{
  font-size:.82rem;
}

/* Tabs fit five destinations comfortably */
.fri-tp-tabs{
  gap:.45rem;
}

.fri-tp-tabs button{
  min-height:42px !important;
  padding:.64rem 1rem !important;
  font-size:.82rem !important;
}

@media (max-width:760px){
  .fri-tp-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .fri-tp-versus-head{
    grid-template-columns:1fr;
    text-align:left;
  }

  .fri-tp-vs{
    display:none;
  }

  .fri-tp-compare-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:520px){
  .fri-tp-compare-stats{
    grid-template-columns:1fr;
  }
}


/* ==========================================================
   v0.7 — Explore / discovery + race results
   ========================================================== */

.fri-tp-discovery-block{
  margin-top:3rem;
  padding-top:2rem;
  border-top:1px solid var(--fri-border);
  max-width:980px;
}

.fri-tp-discovery-block h3{
  margin:.1rem 0 0;
  color:var(--fri-text);
  font-size:1.45rem;
  font-weight:600;
  letter-spacing:-.02em;
}

.fri-tp-mini-athlete-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.7rem;
  margin-top:1rem;
}

.fri-tp-mini-athlete{
  position:relative;
  min-height:96px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:.9rem 2.4rem .9rem 1rem !important;
  border:1px solid var(--fri-border) !important;
  border-radius:12px !important;
  background:#fff !important;
  color:var(--fri-text) !important;
  text-align:left;
  box-shadow:none !important;
  cursor:pointer;
}

.fri-tp-mini-athlete:hover,
.fri-tp-mini-athlete:focus-visible{
  border-color:var(--fri-primary) !important;
  background:var(--fri-primary) !important;
  color:#fff !important;
}

.fri-tp-mini-athlete:hover *,
.fri-tp-mini-athlete:focus-visible *{
  color:#fff !important;
}

.fri-tp-mini-athlete-name{
  color:var(--fri-text);
  font-size:.84rem;
  font-weight:600;
  line-height:1.3;
}

.fri-tp-mini-athlete-meta{
  margin-top:.25rem;
  color:var(--fri-muted);
  font-size:.7rem;
  line-height:1.35;
}

.fri-tp-mini-athlete-arrow{
  position:absolute;
  right:1rem;
  top:50%;
  transform:translateY(-50%);
  color:var(--fri-primary);
  font-size:1.1rem;
  font-weight:600;
}

/* Clickable race names */
.fri-tp-race-link{
  display:inline !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--fri-primary) !important;
  font:inherit !important;
  font-weight:600 !important;
  line-height:inherit !important;
  text-align:left !important;
  box-shadow:none !important;
  cursor:pointer;
  text-decoration:none;
}

.fri-tp-race-link:hover,
.fri-tp-race-link:focus-visible{
  background:transparent !important;
  color:var(--fri-primary-dark) !important;
  text-decoration:underline;
  outline:none;
}

.fri-tp-race-link-strong{
  color:var(--fri-text) !important;
  font-weight:600 !important;
}

.fri-tp-race-link-strong:hover,
.fri-tp-race-link-strong:focus-visible{
  color:var(--fri-primary) !important;
}

/* Race-results overlay */
body.fri-tp-modal-open{
  overflow:hidden;
}

.fri-tp-race-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:4vh 1rem;
  overflow:auto;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(2px);
}

.fri-tp-race-overlay[hidden]{
  display:none !important;
}

.fri-tp-race-dialog{
  width:min(1180px,100%);
  max-height:92vh;
  overflow:auto;
  padding:1.5rem;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.2);
}

.fri-tp-race-dialog-head{
  position:sticky;
  top:-1.5rem;
  z-index:4;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin:-1.5rem -1.5rem 1rem;
  padding:1.5rem;
  border-bottom:1px solid var(--fri-border);
  background:#fff;
}

.fri-tp-race-dialog h2{
  margin:0;
  color:var(--fri-text);
  font-size:clamp(1.8rem,3vw,2.6rem);
  line-height:1.05;
}

.fri-tp-race-event-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin:1rem 0 .75rem;
}

.fri-tp-race-event-head strong,
.fri-tp-race-event-head span{
  display:block;
}

.fri-tp-race-event-head strong{
  color:var(--fri-text);
  font-size:1.1rem;
}

.fri-tp-race-event-head span{
  margin-top:.2rem;
  color:var(--fri-muted);
  font-size:.78rem;
}

.fri-tp-race-results-table tr.is-current-athlete td{
  background:color-mix(in srgb, var(--fri-primary) 9%, white);
}

.fri-tp-race-results-table tr.is-current-athlete td:first-child{
  box-shadow:inset 4px 0 0 var(--fri-primary);
}

@media (max-width:1050px){
  .fri-tp-mini-athlete-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:600px){
  .fri-tp-mini-athlete-grid{
    grid-template-columns:1fr;
  }

  .fri-tp-race-overlay{
    padding:0;
  }

  .fri-tp-race-dialog{
    width:100%;
    min-height:100vh;
    max-height:none;
    border-radius:0;
  }

  .fri-tp-race-dialog-head{
    top:-1.5rem;
  }
}


/* ==========================================================
   v0.8 — comparison board + exact FRÍ brand colors
   ========================================================== */

/* Use the exact font already inherited from the fri.is content area.
   No separate font file is bundled or loaded by the plugin. */
.fri-tp-app,
.fri-tp-app *{
  font-family:inherit !important;
}

/* Give comparison text a little more presence on desktop */
.fri-tp-compare-output{
  font-size:1rem;
}

.fri-tp-compare-section h3{
  font-size:clamp(1.65rem,2vw,2.1rem);
}

.fri-tp-versus-head .runner-a strong{
  color:var(--fri-primary);
}

.fri-tp-versus-head .runner-b strong{
  color:var(--fri-red);
}

/* Match-style head-to-head score */
.fri-tp-meeting-score{
  display:grid;
  grid-template-columns:1fr minmax(120px,180px) 1fr;
  align-items:stretch;
  margin:1rem 0 2rem;
  overflow:hidden;
  border:1px solid var(--fri-border);
  border-radius:14px;
  background:#fff;
}

.fri-tp-meeting-score > div{
  min-height:105px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:1rem;
  text-align:center;
}

.fri-tp-meeting-runner strong,
.fri-tp-meeting-center strong{
  display:block;
  font-size:2rem;
  line-height:1;
  letter-spacing:-.04em;
}

.fri-tp-meeting-runner span,
.fri-tp-meeting-center span{
  display:block;
  margin-top:.4rem;
  color:var(--fri-muted);
  font-size:.78rem;
  font-weight:600;
}

.fri-tp-meeting-runner.runner-a strong{color:var(--fri-primary)}
.fri-tp-meeting-runner.runner-b strong{color:var(--fri-red)}

.fri-tp-meeting-center{
  border-left:1px solid var(--fri-border);
  border-right:1px solid var(--fri-border);
  background:var(--fri-soft);
}

/* Football-style stat comparison rows */
.fri-tp-stat-board{
  max-width:920px;
  margin:1.15rem auto 0;
  border-top:1px solid var(--fri-border);
}

.fri-tp-stat-board-row{
  display:grid;
  grid-template-columns:minmax(120px,1fr) minmax(180px,1.15fr) minmax(120px,1fr);
  align-items:center;
  gap:1rem;
  min-height:66px;
  padding:.65rem .4rem;
  border-bottom:1px solid var(--fri-border);
}

.fri-tp-stat-board-row.is-compact{
  min-height:58px;
}

.fri-tp-stat-label{
  color:var(--fri-text);
  font-size:.9rem;
  font-weight:600;
  text-align:center;
}

.fri-tp-stat-value{
  justify-self:center;
  min-width:76px;
  padding:.34rem .7rem;
  border-radius:999px;
  color:var(--fri-text);
  font-size:1rem;
  font-weight:600;
  line-height:1.15;
  text-align:center;
}

.fri-tp-stat-value.is-leading{
  color:#fff !important;
}

.fri-tp-stat-value.is-leading.is-a{
  background:var(--fri-primary);
}

.fri-tp-stat-value.is-leading.is-b{
  background:var(--fri-red);
}

/* Progression: denser graph, clearer labels */
.fri-tp-compare-chart{
  padding:1rem 1.15rem .8rem;
}

.fri-tp-compare-chart svg{
  min-width:650px;
  max-height:250px;
}

.fri-tp-compare-chart-legend{
  font-size:.86rem;
}

.fri-tp-compare-chart-legend .runner-a{
  color:var(--fri-primary);
}

.fri-tp-compare-chart-legend .runner-b{
  color:var(--fri-red);
}

.fri-tp-chart-gridline{
  stroke:#E8EDF4;
  stroke-width:1;
}

.fri-tp-chart-y-label{
  fill:var(--fri-muted);
  font-size:11px;
  font-weight:600;
}

.fri-tp-progression-compare-table th,
.fri-tp-progression-compare-table td{
  font-family:inherit !important;
  font-size:.94rem !important;
  padding:.85rem .9rem !important;
}

.fri-tp-progression-compare-table th.runner-a-head{
  background:var(--fri-primary) !important;
  color:#fff !important;
}

.fri-tp-progression-compare-table th.runner-b-head{
  background:var(--fri-red) !important;
  color:#fff !important;
}

.fri-tp-progression-compare-table td.is-stat-ahead-a{
  color:var(--fri-primary);
  font-weight:600;
}

.fri-tp-progression-compare-table td.is-stat-ahead-b{
  color:var(--fri-red);
  font-weight:600;
}

/* Shared meetings */
.fri-tp-shared-races-table th,
.fri-tp-shared-races-table td{
  font-family:inherit !important;
  font-size:.9rem !important;
  padding:.85rem .8rem !important;
}

.fri-tp-shared-races-table td.is-compare-winner{
  color:inherit;
}

.fri-tp-shared-races-table td.is-compare-winner strong{
  display:inline-block;
  padding:.22rem .45rem;
  border-radius:999px;
  color:#fff !important;
  background:var(--fri-primary);
}

.fri-tp-shared-races-table td:nth-child(5).is-compare-winner strong{
  background:var(--fri-red);
}

/* More useful desktop width without creating giant dead space */
@media (min-width:1100px){
  .fri-tp-compare-section{
    max-width:1180px;
  }

  .fri-tp-stat-board{
    max-width:980px;
  }
}

@media (max-width:760px){
  .fri-tp-meeting-score{
    grid-template-columns:1fr 1fr;
  }

  .fri-tp-meeting-center{
    grid-column:1 / -1;
    grid-row:1;
    min-height:80px !important;
    border:0;
    border-bottom:1px solid var(--fri-border);
  }

  .fri-tp-stat-board-row{
    grid-template-columns:1fr minmax(120px,1.2fr) 1fr;
    gap:.4rem;
  }

  .fri-tp-stat-label{
    font-size:.78rem;
  }

  .fri-tp-stat-value{
    min-width:0;
    padding:.3rem .5rem;
    font-size:.9rem;
  }
}


/* ==========================================================
   v0.9 — bridge track and road running
   ========================================================== */

.fri-tp-track-pb-section{
  margin-top:2rem;
}

.fri-tp-pb-track::before{
  background:var(--fri-red);
}

.fri-tp-surface-pill{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:.22rem .55rem;
  border-radius:999px;
  font-size:.68rem;
  font-weight:600;
  line-height:1;
}

.fri-tp-surface-pill.is-road{
  background:color-mix(in srgb, var(--fri-primary) 9%, white);
  color:var(--fri-primary);
}

.fri-tp-surface-pill.is-track{
  background:color-mix(in srgb, var(--fri-red) 10%, white);
  color:var(--fri-red);
}

.fri-tp-passport-card-wide{
  grid-column:1 / -1;
  min-height:auto;
}

.fri-tp-passport-card-wide .fri-tp-chip-list{
  margin-top:1rem;
}

@media (max-width:760px){
  .fri-tp-passport-card-wide{
    grid-column:auto;
  }
}


/* ==========================================================
   v0.10 — sprint range, cleaner surfaces and comparison alignment
   ========================================================== */

/* Gata / Braut are labels, not pills */
.fri-tp-surface-text{
  font-size:.76rem;
  font-weight:600;
  line-height:1;
}
.fri-tp-surface-text.is-road{color:var(--fri-primary)}
.fri-tp-surface-text.is-track{color:var(--fri-red)}
.fri-tp-surface-pill{display:none!important}

.fri-tp-missing-race-name{
  color:var(--fri-muted);
}

/* Road + track passport split */
.fri-tp-surface-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.fri-tp-surface-column{
  min-height:150px;
  padding:1rem;
  border:1px solid var(--fri-border);
  border-radius:12px;
  background:var(--fri-soft);
}
.fri-tp-surface-column-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.85rem;
}
.fri-tp-surface-column-head strong{
  font-size:1.15rem;
  color:var(--fri-text);
}
.fri-tp-surface-column.is-road .fri-tp-surface-column-head strong{color:var(--fri-primary)}
.fri-tp-surface-column.is-track .fri-tp-surface-column-head strong{color:var(--fri-red)}
.fri-tp-surface-column-head span{
  color:var(--fri-muted);
  font-size:.75rem;
  font-weight:600;
}
.fri-tp-range-row{
  display:flex;
  flex-wrap:wrap;
  gap:1.25rem;
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid var(--fri-border);
  color:var(--fri-text-soft);
  font-size:.8rem;
}

/* One shared grid for names, meetings score and football-style stats */
.fri-tp-compare-output{
  --fri-tp-compare-mid:190px;
  --fri-tp-compare-max:1080px;
}
.fri-tp-versus-head,
.fri-tp-meeting-score,
.fri-tp-stat-board{
  width:min(100%,var(--fri-tp-compare-max));
  margin-left:auto;
  margin-right:auto;
}
.fri-tp-versus-head,
.fri-tp-meeting-score{
  grid-template-columns:minmax(0,1fr) var(--fri-tp-compare-mid) minmax(0,1fr)!important;
}
.fri-tp-versus-head > div{
  align-items:center;
  text-align:center;
}
.fri-tp-stat-board-row{
  grid-template-columns:minmax(0,1fr) var(--fri-tp-compare-mid) minmax(0,1fr)!important;
}

/* Shared-race result: time and placing are visually separate */
.fri-tp-meeting-result{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.18rem;
}
.fri-tp-meeting-result strong{
  font-size:.94rem;
}
.fri-tp-meeting-result span{
  color:var(--fri-muted);
  font-size:.72rem;
  font-weight:600;
}
.fri-tp-shared-races-table td.is-compare-winner .fri-tp-meeting-result strong{
  display:inline-block;
  width:max-content;
}

@media (max-width:760px){
  .fri-tp-surface-columns{grid-template-columns:1fr}
  .fri-tp-compare-output{--fri-tp-compare-mid:120px}
  .fri-tp-stat-board-row{
    grid-template-columns:minmax(0,1fr) var(--fri-tp-compare-mid) minmax(0,1fr)!important;
  }
  .fri-tp-versus-head{
    grid-template-columns:1fr!important;
  }
}


/* ==========================================================
   v0.11 — Beausite, Icelandic dates, comparison alignment
   ========================================================== */

/* FRÍ site font already exists in WordPress/Elementor. We only reference
   the loaded family; no font files are bundled with this plugin. */
.fri-tp-app,
.fri-tp-app *{
  font-family:"Beausite Classic", Arial, sans-serif !important;
}

.fri-tp-app{
  font-weight:500;
}

.fri-tp-app strong,
.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-app h4,
.fri-tp-app button,
.fri-tp-app th{
  font-weight:600;
}

/* Elementor's global accent rule previously won over the SVG presentation
   attribute for runner B. Keep runner A FRÍ blue and runner B FRÍ red. */
.fri-tp-compare-chart polyline.series-a{
  stroke:#003BCB !important;
}
.fri-tp-compare-chart circle.series-a{
  fill:#003BCB !important;
}
.fri-tp-compare-chart polyline.series-b{
  stroke:#F14024 !important;
}
.fri-tp-compare-chart circle.series-b{
  fill:#F14024 !important;
}

/* One geometry for names, meeting score and all football-style stat rows. */
.fri-tp-compare-output{
  --fri-tp-compare-mid:210px;
  --fri-tp-compare-max:1120px;
}

.fri-tp-versus-head,
.fri-tp-meeting-score,
.fri-tp-stat-board{
  width:min(100%,var(--fri-tp-compare-max)) !important;
  max-width:var(--fri-tp-compare-max) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.fri-tp-versus-head,
.fri-tp-meeting-score{
  grid-template-columns:minmax(0,1fr) var(--fri-tp-compare-mid) minmax(0,1fr) !important;
}

.fri-tp-stat-board-row{
  grid-template-columns:minmax(0,1fr) var(--fri-tp-compare-mid) minmax(0,1fr) !important;
  width:100%;
}

.fri-tp-stat-board{
  border-top:1px solid var(--fri-border);
}

.fri-tp-stat-value{
  width:auto;
  min-width:82px;
}

/* Slightly larger comparison values on desktop. */
@media (min-width:900px){
  .fri-tp-stat-label{font-size:.96rem}
  .fri-tp-stat-value{font-size:1.06rem}
  .fri-tp-versus-head strong{font-size:1.08rem}
}


/* ==========================================================
   v0.12 — FRÍ font variants, club identity, flatter passport,
           football-style progression comparison
   ========================================================== */

/* WordPress Fonts lists the installed variants as separate Beausite families.
   Use those exact family names rather than relying on the umbrella name. */
.fri-tp-app,
.fri-tp-app input,
.fri-tp-app select,
.fri-tp-app textarea,
.fri-tp-app td,
.fri-tp-app p,
.fri-tp-app span,
.fri-tp-app label,
.fri-tp-app a{
  font-family:"Beausite Classic Medium", "Beausite Classic", Arial, sans-serif !important;
  font-weight:400 !important;
}

.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-app h4,
.fri-tp-app strong,
.fri-tp-app th,
.fri-tp-app button,
.fri-tp-app .fri-tp-eyebrow{
  font-family:"Beausite Classic Semi-bold", "Beausite Classic Medium", "Beausite Classic", Arial, sans-serif !important;
  font-weight:600 !important;
}

.fri-tp-app em,
.fri-tp-app i{
  font-family:"Beausite Classic Normal Italic", "Beausite Classic Medium", "Beausite Classic", Arial, sans-serif !important;
}

/* Club identity lives on its own line below age/nationality/activity. */
.fri-tp-club-row{
  min-height:30px;
  display:flex;
  align-items:center;
  margin-top:.5rem;
}
.fri-tp-club-row[hidden]{display:none!important}
.fri-tp-club-link,
.fri-tp-club-row > span{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  color:var(--fri-text) !important;
  text-decoration:none !important;
}
.fri-tp-club-link:hover .fri-tp-club-name{
  color:var(--fri-primary) !important;
  text-decoration:underline;
}
.fri-tp-club-logo{
  width:28px;
  height:28px;
  object-fit:contain;
  flex:0 0 28px;
}
.fri-tp-club-name{
  font-family:"Beausite Classic Semi-bold", "Beausite Classic Medium", sans-serif !important;
  font-size:.84rem;
  font-weight:600 !important;
}

/* Keppnisform: one clean card with two columns, not boxes inside a box. */
.fri-tp-passport-card-wide{
  padding:1.25rem 1.25rem 1.1rem;
}
.fri-tp-surface-columns{
  gap:0 !important;
  margin-top:.25rem;
  border-top:1px solid var(--fri-border);
  border-bottom:1px solid var(--fri-border);
}
.fri-tp-surface-column{
  min-height:135px !important;
  padding:1.1rem 1.1rem 1rem 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}
.fri-tp-surface-column + .fri-tp-surface-column{
  padding-left:1.25rem !important;
  padding-right:0 !important;
  border-left:1px solid var(--fri-border) !important;
}
.fri-tp-surface-column-head{
  margin-bottom:.75rem;
}
.fri-tp-surface-column-head strong{
  font-size:1.05rem;
}
.fri-tp-range-row{
  margin-top:.8rem;
  padding-top:0;
  border-top:0;
}

/* Every comparison component shares the exact same workspace width. */
.fri-tp-compare-output{
  --fri-tp-compare-max:1120px;
  --fri-tp-compare-mid:210px;
}
.fri-tp-compare-section,
.fri-tp-compare-section > .fri-tp-section-head,
.fri-tp-versus-head,
.fri-tp-meeting-score,
.fri-tp-stat-board,
.fri-tp-compare-chart,
.fri-tp-compare-section > [data-fri-tp-compare-progression-table]{
  width:min(100%,var(--fri-tp-compare-max)) !important;
  max-width:var(--fri-tp-compare-max) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Progression year-by-year values now use the football stat layout too. */
.fri-tp-progression-board{
  margin-top:1rem !important;
}
.fri-tp-progression-board .fri-tp-stat-board-row{
  min-height:58px;
}
.fri-tp-progression-board .fri-tp-stat-label{
  font-size:.9rem;
}
.fri-tp-progression-board .fri-tp-stat-value.is-leading.is-a{
  background:var(--fri-primary) !important;
  color:#fff !important;
}
.fri-tp-progression-board .fri-tp-stat-value.is-leading.is-b{
  background:var(--fri-red) !important;
  color:#fff !important;
}

@media (max-width:760px){
  .fri-tp-surface-columns{grid-template-columns:1fr!important}
  .fri-tp-surface-column + .fri-tp-surface-column{
    padding-left:0 !important;
    padding-top:1rem !important;
    border-left:0 !important;
    border-top:1px solid var(--fri-border) !important;
  }
}


/* ==========================================================
   v1.0 — production visual baseline + interactive charts
   ========================================================== */

/* WordPress has Beausite Classic installed as FRÍ's site family.
   Use one family with proper weights; no font files are bundled. */
.fri-tp-app,
.fri-tp-app *{
  font-family:"Beausite Classic", Arial, sans-serif !important;
}
.fri-tp-app{font-weight:500}
.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-app h4,
.fri-tp-app strong,
.fri-tp-app th,
.fri-tp-app button,
.fri-tp-app .fri-tp-eyebrow{font-weight:600 !important}

.fri-tp-profile{--fri-content-max:1180px}
.fri-tp-profile-head,
.fri-tp-tabs,
.fri-tp-tab-panel>.fri-tp-section,
.fri-tp-tab-panel>.fri-tp-summary-grid,
.fri-tp-tab-panel>.fri-tp-section-no-border{
  max-width:var(--fri-content-max);
  margin-left:auto;
  margin-right:auto;
}

/* Profile identity */
.fri-tp-profile-head{padding-bottom:1.35rem}
.fri-tp-profile-head h2{letter-spacing:-.035em}
.fri-tp-meta{margin-top:.35rem;font-size:.9rem;color:var(--fri-muted)}
.fri-tp-club-row{margin-top:.62rem}

/* Compact navigation */
.fri-tp-tabs{margin-top:.95rem;margin-bottom:1.65rem;padding-bottom:.9rem}
.fri-tp-tabs button{font-size:.84rem!important;padding:.66rem 1rem!important}

/* Summary: one editorial strip instead of repeated cards */
.fri-tp-summary-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:0!important;
  margin-bottom:2.1rem!important;
  border-top:1px solid var(--fri-border);
  border-bottom:1px solid var(--fri-border);
}
.fri-tp-summary-card{
  min-height:96px!important;
  padding:1rem .9rem!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.fri-tp-summary-card+.fri-tp-summary-card{border-left:1px solid var(--fri-border)!important}
.fri-tp-summary-card strong{white-space:nowrap;font-size:clamp(1.08rem,1.45vw,1.5rem)!important}
.fri-tp-summary-card span{font-size:.7rem!important}

/* PBs and career snapshot: flatter, more FRÍ editorial language */
.fri-tp-pb-grid,
.fri-tp-insight-grid{gap:0!important;border-top:1px solid var(--fri-border);border-bottom:1px solid var(--fri-border)}
.fri-tp-pb{
  min-height:108px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
.fri-tp-pb+.fri-tp-pb{border-left:1px solid var(--fri-border)!important}
.fri-tp-insight-card{
  min-height:110px!important;padding:.95rem 1rem!important;border:0!important;border-radius:0!important;background:transparent!important;
}
.fri-tp-insight-card+.fri-tp-insight-card{border-left:1px solid var(--fri-border)!important}

/* History controls */
.fri-tp-history-tools{display:flex;align-items:flex-end;justify-content:flex-end;gap:.7rem;flex-wrap:wrap}
.fri-tp-history-count{align-self:center;color:var(--fri-muted);font-size:.78rem;white-space:nowrap}
.fri-tp-history-tools .fri-tp-event-picker select{min-width:140px}

/* Interactive chart tooltips */
.fri-tp-chart{position:relative;overflow:visible}
.fri-tp-chart-point{cursor:pointer;outline:none;transition:r .15s ease,opacity .15s ease}
.fri-tp-chart-point:hover,
.fri-tp-chart-point:focus{r:7;opacity:.95}
.fri-tp-chart-tooltip{
  position:absolute;
  z-index:20;
  transform:translate(-50%,calc(-100% - 12px));
  min-width:86px;
  padding:.5rem .65rem;
  border-radius:9px;
  background:#101827;
  color:#fff;
  text-align:center;
  pointer-events:none;
  box-shadow:0 8px 24px rgba(15,23,42,.18);
}
.fri-tp-chart-tooltip[hidden]{display:none!important}
.fri-tp-chart-tooltip::after{
  content:"";position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);
  border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #101827;
}
.fri-tp-chart-tooltip.is-red{background:var(--fri-red)}
.fri-tp-chart-tooltip.is-red::after{border-top-color:var(--fri-red)}
.fri-tp-chart-tooltip strong,.fri-tp-chart-tooltip span{display:block;color:#fff!important}
.fri-tp-chart-tooltip strong{font-size:.9rem}
.fri-tp-chart-tooltip span{margin-top:.08rem;font-size:.68rem;opacity:.85}
.fri-tp-chart-note{font-size:.7rem}

/* Passport: reduce nesting and wrapping */
.fri-tp-passport-hero{gap:0!important;border-top:1px solid var(--fri-border);border-bottom:1px solid var(--fri-border)}
.fri-tp-passport-number{border:0!important;border-radius:0!important;background:transparent!important;padding:1rem 1.05rem!important}
.fri-tp-passport-number+.fri-tp-passport-number{border-left:1px solid var(--fri-border)!important}
.fri-tp-passport-number strong{white-space:nowrap;font-size:clamp(1.2rem,1.65vw,1.65rem)!important}
.fri-tp-passport-number span{font-size:.72rem!important}
.fri-tp-passport-card{min-height:215px;padding:1.15rem!important;border-radius:13px!important}
.fri-tp-passport-card h4{font-size:.98rem!important}
.fri-tp-passport-card-wide{min-height:auto}

/* Keppnisform: a single section with a center divider, never a box in a box */
.fri-tp-passport-card-wide .fri-tp-surface-columns{border:0!important;border-top:1px solid var(--fri-border)!important}
.fri-tp-surface-column{min-height:125px!important}

/* Comparison: exact three-column geometry throughout */
.fri-tp-compare-output{--fri-tp-compare-max:1180px;--fri-tp-compare-mid:180px}
.fri-tp-versus-head,
.fri-tp-meeting-score,
.fri-tp-stat-board,
.fri-tp-compare-chart,
.fri-tp-compare-section,
.fri-tp-compare-section>.fri-tp-section-head,
.fri-tp-compare-section>[data-fri-tp-compare-progression-table]{
  width:min(100%,var(--fri-tp-compare-max))!important;max-width:var(--fri-tp-compare-max)!important;margin-left:auto!important;margin-right:auto!important;
}
.fri-tp-versus-head,.fri-tp-meeting-score,.fri-tp-stat-board-row{
  grid-template-columns:minmax(0,1fr) var(--fri-tp-compare-mid) minmax(0,1fr)!important;
}
.fri-tp-stat-value{justify-self:center;text-align:center}
.fri-tp-versus-head .runner-a,.fri-tp-versus-head .runner-b{align-items:center;text-align:center}
.fri-tp-versus-head .runner-a span,.fri-tp-versus-head .runner-b span{font-size:.75rem}

/* Road / track grouping within PB comparison */
.fri-tp-pb-stat-board{border-top:0!important}
.fri-tp-stat-board-group{border-top:1px solid var(--fri-border)}
.fri-tp-stat-board-group+.fri-tp-stat-board-group{margin-top:1rem}
.fri-tp-stat-board-group-label{padding:.58rem .4rem .36rem;font-size:.7rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.fri-tp-stat-board-group.is-road .fri-tp-stat-board-group-label{color:var(--fri-primary)}
.fri-tp-stat-board-group.is-track .fri-tp-stat-board-group-label{color:var(--fri-red)}

/* Shared results */
.fri-tp-meeting-result{min-width:100px}
.fri-tp-meeting-result strong{font-size:.96rem}
.fri-tp-meeting-result span{display:block;margin-top:.2rem;color:var(--fri-muted);font-size:.67rem;font-weight:500!important}

/* Typography consistency in generated cards */
.fri-tp-mini-athlete-name,.fri-tp-search-card strong{font-weight:600!important}
.fri-tp-mini-athlete-meta,.fri-tp-search-card small{font-weight:500!important}

@media (max-width:1050px){
  .fri-tp-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .fri-tp-summary-card:nth-child(4){border-left:0!important;border-top:1px solid var(--fri-border)!important}
  .fri-tp-summary-card:nth-child(n+5){border-top:1px solid var(--fri-border)!important}
}
@media (max-width:760px){
  .fri-tp-history-tools{width:100%;justify-content:flex-start}
  .fri-tp-history-count{width:100%}
  .fri-tp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fri-tp-summary-card{border-top:1px solid var(--fri-border)!important}
  .fri-tp-summary-card:nth-child(odd){border-left:0!important}
  .fri-tp-summary-card:nth-child(-n+2){border-top:0!important}
  .fri-tp-pb-grid{grid-template-columns:1fr!important}
  .fri-tp-pb+.fri-tp-pb{border-left:0!important;border-top:1px solid var(--fri-border)!important}
  .fri-tp-insight-grid{grid-template-columns:1fr!important}
  .fri-tp-insight-card+.fri-tp-insight-card{border-left:0!important;border-top:1px solid var(--fri-border)!important}
  .fri-tp-passport-hero{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fri-tp-passport-number:nth-child(3){border-left:0!important;border-top:1px solid var(--fri-border)!important}
  .fri-tp-passport-number:nth-child(4){border-top:1px solid var(--fri-border)!important}
  .fri-tp-compare-output{--fri-tp-compare-mid:112px}
}


/* ==========================================================
   v1.1 — final typography + linked filters + chart readability
   ========================================================== */

/* These exact installed WordPress Fonts families are the ones that render
   correctly in the "Nýlega skoðað" cards. Keep this block last. */
.fri-tp-app,
.fri-tp-app p,
.fri-tp-app span,
.fri-tp-app small,
.fri-tp-app label,
.fri-tp-app input,
.fri-tp-app select,
.fri-tp-app textarea,
.fri-tp-app td,
.fri-tp-app a,
.fri-tp-app svg text{
  font-family:"Beausite Classic Medium","Beausite Classic",Arial,sans-serif !important;
  font-weight:400 !important;
}

.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-app h4,
.fri-tp-app strong,
.fri-tp-app th,
.fri-tp-app button,
.fri-tp-app .fri-tp-eyebrow,
.fri-tp-app .fri-tp-tabs button,
.fri-tp-app .fri-tp-stat-label,
.fri-tp-app .fri-tp-pb-time{
  font-family:"Beausite Classic Semi-bold","Beausite Classic Medium","Beausite Classic",Arial,sans-serif !important;
  font-weight:600 !important;
}

.fri-tp-app em,
.fri-tp-app i{
  font-family:"Beausite Classic Normal Italic","Beausite Classic Medium","Beausite Classic",Arial,sans-serif !important;
}

/* Search cards */
.fri-tp-search-card-copy{min-width:0}
.fri-tp-search-card-stats{
  display:block;
  margin-top:.28rem;
  color:var(--fri-primary)!important;
  font-family:"Beausite Classic Semi-bold","Beausite Classic Medium","Beausite Classic",Arial,sans-serif!important;
  font-size:.7rem!important;
  font-weight:600!important;
}
.fri-tp-search-card:hover .fri-tp-search-card-stats,
.fri-tp-search-card:focus-visible .fri-tp-search-card-stats{color:#fff!important}

/* History */
.fri-tp-history-tools{align-items:flex-end}
.fri-tp-history-tools select{min-width:150px!important}
.fri-tp-history-count{padding-bottom:.65rem}
.fri-tp-surface-text.is-road{color:var(--fri-primary)!important}
.fri-tp-surface-text.is-track{color:var(--fri-red)!important}

/* Single-athlete progression */
.fri-tp-chart-value{
  fill:var(--fri-text);
  font-family:"Beausite Classic Semi-bold","Beausite Classic Medium","Beausite Classic",Arial,sans-serif!important;
  font-size:10.5px;
  font-weight:600!important;
}
.fri-tp-chart-y-label{
  font-family:"Beausite Classic Medium","Beausite Classic",Arial,sans-serif!important;
  font-size:10.5px;
  font-weight:400!important;
}
.fri-tp-chart-gridline{stroke:#E4EAF2;stroke-width:1}
.fri-tp-chart-year{font-size:11px!important}

/* Comparison stays hover-first, with reference values on the right */
.fri-tp-compare-chart{padding-right:1.35rem}
.fri-tp-compare-chart .fri-tp-chart-y-label{fill:var(--fri-muted)}

@media(max-width:760px){
  .fri-tp-chart-value{font-size:9px}
  .fri-tp-history-tools select{width:100%;min-width:0!important}
  .fri-tp-history-tools .fri-tp-event-picker{flex:1 1 140px}
}


/* ==========================================================
   v1.2 — mobile QA + typography + search polish
   ========================================================== */

/* Follow the same Elementor typography tokens as fri.is itself.
   This is more reliable than treating each uploaded variant as a separate
   front-end family, while retaining the Beausite fallbacks. */
.fri-tp-app{
  font-family:var(--e-global-typography-text-font-family,"Beausite Classic",Arial,sans-serif) !important;
  font-weight:var(--e-global-typography-text-font-weight,500) !important;
}
.fri-tp-app *{
  font-family:inherit !important;
}
.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-app h4,
.fri-tp-app strong,
.fri-tp-app th,
.fri-tp-app button,
.fri-tp-app .fri-tp-eyebrow,
.fri-tp-app .fri-tp-tabs button,
.fri-tp-app .fri-tp-stat-label,
.fri-tp-app .fri-tp-pb-time{
  font-family:var(--e-global-typography-primary-font-family,var(--e-global-typography-text-font-family,"Beausite Classic",Arial,sans-serif)) !important;
  font-weight:var(--e-global-typography-primary-font-weight,600) !important;
}
.fri-tp-app input,
.fri-tp-app select,
.fri-tp-app textarea{
  font-family:var(--e-global-typography-text-font-family,"Beausite Classic",Arial,sans-serif) !important;
  font-weight:var(--e-global-typography-text-font-weight,500) !important;
}

/* Search result metadata should read like the recent-athlete cards:
   birth year · FH · Ísland, with no redundant "Félag:" label. */
.fri-tp-search-card small{
  line-height:1.35;
}

/* Charts must always stay inside their cards. */
.fri-tp-chart,
.fri-tp-compare-chart{
  box-sizing:border-box;
  max-width:100%;
  overflow:hidden !important;
}
.fri-tp-chart svg,
.fri-tp-compare-chart svg{
  display:block;
  width:100% !important;
  max-width:100% !important;
  height:auto;
  min-width:0 !important;
}

@media (max-width:760px){
  /* Single-athlete progression: compact enough for a phone without
     allowing right-side scale values to escape the card. */
  .fri-tp-chart{
    padding:.85rem .45rem .8rem !important;
    border-radius:14px;
  }
  .fri-tp-chart svg{
    min-width:0 !important;
    width:100% !important;
  }
  .fri-tp-chart-value{font-size:8.2px !important}
  .fri-tp-chart-year{font-size:8.5px !important}
  .fri-tp-chart-y-label{font-size:8.5px !important}
  .fri-tp-chart-note{
    padding:0 .35rem;
    font-size:.68rem !important;
    line-height:1.35;
  }

  /* Comparison header: two equal runner columns on mobile. The VS label
     is decorative and removed so names get useful width. */
  .fri-tp-versus-head{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:.55rem !important;
    padding:.9rem .65rem !important;
  }
  .fri-tp-versus-head .fri-tp-vs{display:none !important}
  .fri-tp-versus-head .runner-a,
  .fri-tp-versus-head .runner-b{
    min-width:0;
    text-align:center !important;
    align-items:center !important;
  }
  .fri-tp-versus-head .runner-a strong,
  .fri-tp-versus-head .runner-b strong{
    max-width:100%;
    font-size:1rem !important;
    line-height:1.22;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
  }
  .fri-tp-versus-head .runner-a span,
  .fri-tp-versus-head .runner-b span{
    font-size:.7rem !important;
    line-height:1.25;
  }

  /* Head-to-head score: shared-race count across the top, runners below. */
  .fri-tp-meeting-score{
    grid-template-columns:1fr 1fr !important;
    margin-top:.8rem;
  }
  .fri-tp-meeting-center{
    grid-column:1/-1 !important;
    grid-row:1 !important;
    min-height:78px !important;
  }
  .fri-tp-meeting-score > div{
    min-width:0;
    min-height:100px;
    padding:.8rem .55rem !important;
  }
  .fri-tp-meeting-runner strong,
  .fri-tp-meeting-center strong{font-size:1.75rem !important}
  .fri-tp-meeting-runner span,
  .fri-tp-meeting-center span{
    font-size:.72rem !important;
    line-height:1.35;
  }

  /* Football-style comparison rows retain three aligned columns but use
     a narrower centre label on a phone. */
  .fri-tp-compare-output{--fri-tp-compare-mid:88px !important}
  .fri-tp-stat-board-row{
    grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr) !important;
    gap:.25rem !important;
    min-height:58px;
    padding:.5rem 0 !important;
  }
  .fri-tp-stat-label{
    padding:0 .15rem;
    font-size:.72rem !important;
    line-height:1.2;
  }
  .fri-tp-stat-value{
    max-width:100%;
    padding:.3rem .45rem !important;
    font-size:.88rem !important;
  }

  /* Comparison progression: no forced desktop SVG width. */
  .fri-tp-compare-chart{
    padding:.8rem .4rem .7rem !important;
    overflow:hidden !important;
  }
  .fri-tp-compare-chart svg{
    min-width:0 !important;
    width:100% !important;
  }
  .fri-tp-compare-chart-legend{
    gap:.55rem !important;
    font-size:.72rem !important;
  }

  /* Tabs can scroll instead of clipping the fifth destination. */
  .fri-tp-tabs{
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .fri-tp-tabs::-webkit-scrollbar{display:none}
  .fri-tp-tabs button{flex:0 0 auto}
}

@media (max-width:420px){
  .fri-tp-chart-value{font-size:7.4px !important}
  .fri-tp-chart-year{font-size:7.7px !important}
  .fri-tp-chart-y-label{font-size:7.8px !important}
  .fri-tp-versus-head .runner-a strong,
  .fri-tp-versus-head .runner-b strong{font-size:.94rem !important}
  .fri-tp-compare-output{--fri-tp-compare-mid:80px !important}
  .fri-tp-stat-board-row{grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr) !important}
}


/* ==========================================================
   v1.3 — lean search / final QA
   ========================================================== */
.fri-tp-search-card-stats{display:none !important}
.fri-tp-search-card-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.15rem;
}
.fri-tp-search-card small{margin-top:0 !important}
.fri-tp-search-card strong,
.fri-tp-mini-athlete-name{letter-spacing:-.01em}


/* ==========================================================
   v1.5 — Hlauparavegabréf engagement layer
   Calm by default; depth appears only when the visitor asks for it.
   ========================================================== */

/* Remove the previous emoji/icon treatment from passport headings. */
.fri-tp-passport-card-head{gap:0!important}
.fri-tp-passport-card-head > span{display:none!important}

/* Milestones: editorial timeline marker, no emoji. */
.fri-tp-milestones{position:relative}
.fri-tp-milestone{
  position:relative;
  min-height:76px!important;
  padding:1rem 1rem 1rem 1.35rem!important;
  border-radius:10px!important;
  background:#fff!important;
}
.fri-tp-milestone::before{
  content:"";
  position:absolute;
  left:.7rem;
  top:1.15rem;
  width:5px;
  height:28px;
  border-radius:999px;
  background:var(--fri-primary);
}
.fri-tp-milestone-icon{display:none!important}

/* Expandable passport lists. */
.fri-tp-expandable-list:not(.is-expanded) .fri-tp-chip-item.is-extra{display:none!important}
.fri-tp-chip-item{gap:.38rem}
.fri-tp-chip-item b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 .32rem;
  border-radius:999px;
  background:#fff;
  color:var(--fri-muted);
  font-size:.65rem;
  font-weight:600!important;
}
.fri-tp-expand-list{
  appearance:none;
  border:0;
  background:transparent;
  padding:.35rem .2rem;
  color:var(--fri-primary);
  font-size:.74rem;
  font-weight:600!important;
  cursor:pointer;
}
.fri-tp-expand-list:hover{text-decoration:underline}

/* Iceland completion progress. */
.fri-tp-coverage-row{
  display:grid;
  grid-template-columns:auto minmax(100px,1fr);
  align-items:center;
  gap:1rem;
  margin-bottom:.65rem;
}
.fri-tp-coverage-row.is-secondary{margin-top:1.15rem}
.fri-tp-coverage-row > div:first-child strong,
.fri-tp-coverage-row > div:first-child span{display:block}
.fri-tp-coverage-row > div:first-child strong{font-size:1.25rem;color:var(--fri-text)}
.fri-tp-coverage-row > div:first-child span{margin-top:.15rem;font-size:.7rem;color:var(--fri-muted)}
.fri-tp-coverage-bar{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#E9EDF3;
}
.fri-tp-coverage-bar i{display:block;height:100%;border-radius:inherit;background:var(--fri-primary)}

/* Event counts in Keppnisform. */
.fri-tp-event-count-list{display:flex;flex-wrap:wrap;gap:.45rem}
.fri-tp-event-count-chip{
  display:inline-flex!important;
  align-items:center;
  gap:.45rem;
  min-height:34px;
  padding:.35rem .5rem .35rem .7rem!important;
  border:1px solid var(--fri-border)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--fri-text-soft)!important;
  font-size:.75rem!important;
  line-height:1!important;
  cursor:pointer;
}
.fri-tp-event-count-chip b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:var(--fri-soft);
  color:var(--fri-text);
  font-size:.67rem;
}
.fri-tp-surface-column.is-road .fri-tp-event-count-chip:hover,
.fri-tp-surface-column.is-road .fri-tp-event-count-chip:focus-visible{border-color:var(--fri-primary)!important;color:var(--fri-primary)!important}
.fri-tp-surface-column.is-track .fri-tp-event-count-chip:hover,
.fri-tp-surface-column.is-track .fri-tp-event-count-chip:focus-visible{border-color:var(--fri-red)!important;color:var(--fri-red)!important}

/* Badge collection. */
.fri-tp-badge-section .fri-tp-badges{grid-template-columns:repeat(6,minmax(0,1fr));gap:.65rem}
.fri-tp-badge{
  position:relative;
  min-height:112px!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  padding:.9rem!important;
  text-align:left!important;
  overflow:hidden;
}
.fri-tp-badge.is-earned{border-color:#CED8F8;background:#FAFBFF}
.fri-tp-badge.is-earned::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:var(--fri-primary);
}
.fri-tp-badge.is-special.is-earned::before{background:var(--fri-red)}
.fri-tp-badge.is-locked{background:#F6F7F9;border-color:#E2E5E9;filter:grayscale(.15)}
.fri-tp-badge.is-locked strong{color:#7B828D!important}
.fri-tp-badge.is-locked span,.fri-tp-badge.is-locked small{color:#969CA5!important}
.fri-tp-badge strong{font-size:.98rem!important;line-height:1.12}
.fri-tp-badge span{margin-top:.35rem!important;font-size:.68rem!important;line-height:1.35!important}
.fri-tp-badge small{display:block;margin-top:.35rem;font-size:.64rem;color:var(--fri-muted)}
.fri-tp-badge-progress{
  width:100%;
  height:5px;
  margin-top:auto;
  padding-top:.65rem;
  box-sizing:content-box;
  background:linear-gradient(to bottom,transparent .65rem,#E2E5EA .65rem,#E2E5EA calc(.65rem + 5px),transparent calc(.65rem + 5px));
}
.fri-tp-badge-progress i{display:block;height:5px;border-radius:999px;background:#9AA3B0}
.fri-tp-badge.is-compact{min-height:100px!important}
.fri-tp-next-milestones{margin-top:1.35rem;padding-top:1.15rem;border-top:1px solid var(--fri-border)}
.fri-tp-next-title{margin-bottom:.65rem;color:var(--fri-text);font-size:.82rem;font-weight:600!important}
.fri-tp-next-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.fri-tp-all-badges{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--fri-border)}
.fri-tp-badge-group+ .fri-tp-badge-group{margin-top:1.6rem}
.fri-tp-badge-group h4{margin:0 0 .7rem;font-size:.9rem;color:var(--fri-text)}
.fri-tp-all-badge-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}

/* Keep the deeper layers tidy on mobile. */
@media(max-width:1050px){
  .fri-tp-badge-section .fri-tp-badges{grid-template-columns:repeat(3,minmax(0,1fr))}
  .fri-tp-all-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .fri-tp-next-grid{grid-template-columns:1fr}
  .fri-tp-badge-section .fri-tp-badges,
  .fri-tp-all-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-coverage-row{grid-template-columns:1fr;gap:.45rem}
  .fri-tp-badge-section .fri-tp-section-head{align-items:flex-start}
}
@media(max-width:420px){
  .fri-tp-badge-section .fri-tp-badges,
  .fri-tp-all-badge-grid{grid-template-columns:1fr 1fr}
  .fri-tp-badge{padding:.75rem!important}
}


/* ==========================================================
   v1.6 — FRÍ / Apple-inspired hierarchy pass
   Clear hierarchy, compact secondary controls, progressive disclosure.
   ========================================================== */

.fri-tp-app{
  --fri-ui-border:#E5EAF1;
  --fri-ui-soft:#F7F9FC;
  --fri-ui-soft-hover:#F1F5FA;
  --fri-ui-radius:14px;
}

.fri-tp-passport-grid{gap:.9rem!important}
.fri-tp-passport-card{
  padding:1.15rem!important;
  border-color:var(--fri-ui-border)!important;
  border-radius:var(--fri-ui-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
}
.fri-tp-passport-card-head{margin-bottom:.85rem!important}
.fri-tp-passport-card h4{
  font-size:.92rem!important;
  letter-spacing:-.012em;
}
.fri-tp-passport-big{
  margin-bottom:.65rem!important;
  font-size:2rem!important;
}

.fri-tp-expand-list{
  position:relative;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:0!important;
  min-height:32px!important;
  width:auto!important;
  height:32px!important;
  margin:0!important;
  padding:.35rem .7rem!important;
  border:1px solid var(--fri-border)!important;
  border-radius:999px!important;
  background:var(--fri-soft)!important;
  color:var(--fri-primary)!important;
  font-size:.72rem!important;
  font-weight:600!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer;
}
.fri-tp-expand-list::after{
  content:"";
  position:absolute;
  inset:-6px;
}
.fri-tp-expand-list:hover,
.fri-tp-expand-list:focus-visible{
  border-color:#C9D4E4!important;
  background:var(--fri-ui-soft-hover)!important;
  color:var(--fri-primary-dark)!important;
  text-decoration:none!important;
}

.fri-tp-event-count-list{gap:.5rem!important}
.fri-tp-event-count-chip{
  min-height:34px!important;
  padding:.38rem .72rem!important;
  gap:.38rem!important;
  border-color:var(--fri-ui-border)!important;
  background:var(--fri-ui-soft)!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.fri-tp-event-count-chip b{
  display:inline!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:.78rem!important;
  font-weight:600!important;
  line-height:1!important;
}
.fri-tp-event-count-chip span{
  color:var(--fri-text-soft)!important;
  font-size:.74rem!important;
}
.fri-tp-surface-column.is-road .fri-tp-event-count-chip b{color:var(--fri-primary)!important}
.fri-tp-surface-column.is-track .fri-tp-event-count-chip b{color:var(--fri-red)!important}
.fri-tp-event-count-chip:hover,
.fri-tp-event-count-chip:focus-visible{
  background:#fff!important;
  transform:translateY(-1px);
}

.fri-tp-passport-card-wide .fri-tp-surface-columns{
  margin-top:.2rem!important;
  padding-top:.95rem!important;
  border-top:1px solid var(--fri-ui-border)!important;
}
.fri-tp-surface-column-head{margin-bottom:.7rem!important}
.fri-tp-surface-column-head span{
  color:var(--fri-muted)!important;
  font-size:.7rem!important;
}

.fri-tp-passport-substat{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:.25rem .75rem;
  margin-top:1rem;
  padding-top:.85rem;
  border-top:1px solid var(--fri-ui-border);
}
.fri-tp-passport-substat span{
  color:var(--fri-muted);
  font-size:.7rem;
}
.fri-tp-passport-substat strong{
  color:var(--fri-text);
  font-size:.78rem;
  font-weight:600!important;
  text-align:right;
}
.fri-tp-passport-substat small{
  grid-column:2;
  color:var(--fri-muted);
  font-size:.68rem;
  text-align:right;
}

.fri-tp-coverage-bar{
  height:6px!important;
  background:#EDF1F6!important;
}
.fri-tp-coverage-row > div:first-child strong{font-size:1.15rem!important}
.fri-tp-small-note{
  margin-top:.8rem!important;
  font-size:.68rem!important;
}


.fri-tp-badge{
  border-radius:12px!important;
  box-shadow:none!important;
}
.fri-tp-badge.is-earned{background:#FBFCFF!important}

.fri-tp-chip-item,
.fri-tp-event-count-chip,
.fri-tp-expand-list{-webkit-tap-highlight-color:transparent}
.fri-tp-event-count-chip:focus-visible,
.fri-tp-expand-list:focus-visible{
  outline:2px solid rgba(0,59,203,.22)!important;
  outline-offset:2px!important;
}

@media(max-width:760px){
  .fri-tp-passport-card{padding:1rem!important}
  .fri-tp-passport-substat{grid-template-columns:1fr}
  .fri-tp-passport-substat strong,
  .fri-tp-passport-substat small{
    grid-column:1;
    text-align:left;
  }
  .fri-tp-expand-list::after{inset:-7px -6px}
}


/* ==========================================================
   v1.6.3 — FRÍ global typography + UI/performance polish
   ========================================================== */
/*
   Important: fri.is already owns the typography system. The distinctive
   FRÍ heading treatment visible on Elementor H1–H3 comes from the site's
   global Primary typography. Do not replace that family inside the plugin.
   Body/UI copy follows the site's Text typography, with Beausite as fallback.
*/
.fri-tp-app,
.fri-tp-app *{
  font-family:inherit;
}

.fri-tp-app{
  font-family:var(--e-global-typography-text-font-family,"Beausite Classic",Arial,sans-serif) !important;
  font-weight:var(--e-global-typography-text-font-weight,400);
}

.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-search-panel h2,
.fri-tp-profile h2,
.fri-tp-section h3,
.fri-tp-discovery-block h3,
.fri-tp-compare-section h3{
  font-family:var(--e-global-typography-primary-font-family,inherit) !important;
  font-weight:var(--e-global-typography-primary-font-weight,700) !important;
  font-style:var(--e-global-typography-primary-font-style,normal) !important;
  text-transform:var(--e-global-typography-primary-text-transform,none);
}

/* Keep functional UI copy in the normal FRÍ text face. */
.fri-tp-app button,
.fri-tp-app input,
.fri-tp-app select,
.fri-tp-app textarea,
.fri-tp-app label,
.fri-tp-app td,
.fri-tp-app th,
.fri-tp-app small,
.fri-tp-app .fri-tp-chip,
.fri-tp-app .fri-tp-expand-list{
  font-family:var(--e-global-typography-text-font-family,"Beausite Classic",Arial,sans-serif) !important;
}

/* Numeric data stays calm and aligned. */
.fri-tp-app .fri-tp-pb-time,
.fri-tp-app .fri-tp-stat-value,
.fri-tp-app .fri-tp-summary-card strong,
.fri-tp-app .fri-tp-passport-number strong,
.fri-tp-app .fri-tp-chart-value,
.fri-tp-app .fri-tp-meeting-result strong,
.fri-tp-app td strong{
  font-variant-numeric:tabular-nums;
}

/* True progress track: the completed portion sits INSIDE the grey rail. */
.fri-tp-badge-progress{
  position:relative;
  width:100%;
  height:6px;
  margin-top:auto;
  padding:0 !important;
  border-radius:999px;
  overflow:hidden;
  background:#E1E5EA !important;
  box-sizing:border-box !important;
}
.fri-tp-badge-progress i{
  display:block;
  height:100% !important;
  min-width:0;
  border-radius:inherit;
  background:#8B95A3 !important;
}

/* Match all small disclosure controls to the same compact chip language. */
.fri-tp-expand-list{
  min-height:30px !important;
  padding:.3rem .65rem !important;
  border-radius:999px !important;
  font-size:.72rem !important;
  line-height:1 !important;
}

/* Slightly cleaner hierarchy between grouped passport surfaces. */
.fri-tp-passport-card,
.fri-tp-surface-columns,
.fri-tp-badge{
  border-color:#DFE5EC !important;
}
.fri-tp-next-grid .fri-tp-badge{
  background:#F7F8FA !important;
}

/* Hidden/lower content should cost almost nothing until opened. */
.fri-tp-all-badges[hidden],
.fri-tp-tab-panel:not(.is-active){
  display:none !important;
}

@media (prefers-reduced-motion:reduce){
  .fri-tp-app *,
  .fri-tp-app *::before,
  .fri-tp-app *::after{
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
}


/* ==========================================================
   v1.6.5 — FRÍ Beausite stylistic capitals (ss12)
   ========================================================== */
/*
   FRÍ's distinctive striped/bifurcated capitals are the Beausite Classic
   OpenType stylistic set 12. The font files remain managed by WordPress;
   this plugin only activates the feature on display headings.
*/
.fri-tp-app h1,
.fri-tp-app h2,
.fri-tp-app h3,
.fri-tp-search-panel h2,
.fri-tp-profile-head h2,
.fri-tp-section h3,
.fri-tp-discovery-block h3,
.fri-tp-compare-section h3,
.fri-tp-passport h3,
.fri-tp-app .fri-tp-display-heading {
  font-family: "Beausite Classic", Arial, sans-serif !important;
  font-feature-settings: "ss12" 1, "kern" 1 !important;
  -webkit-font-feature-settings: "ss12" 1, "kern" 1 !important;
  font-kerning: normal !important;
  font-synthesis: none !important;
}

/* Keep functional copy and small controls in the standard glyph set. */
.fri-tp-app h4,
.fri-tp-app h5,
.fri-tp-app h6,
.fri-tp-app button,
.fri-tp-app input,
.fri-tp-app select,
.fri-tp-app textarea,
.fri-tp-app label,
.fri-tp-app td,
.fri-tp-app th,
.fri-tp-app small,
.fri-tp-app .fri-tp-chip,
.fri-tp-app .fri-tp-expand-list {
  font-family: "Beausite Classic", Arial, sans-serif !important;
  font-feature-settings: "kern" 1 !important;
  -webkit-font-feature-settings: "kern" 1 !important;
}


/* ==========================================================
   v1.7 — latest race context
   ========================================================== */

.fri-tp-latest-race-wrap{
  max-width:var(--fri-content-max,1180px);
  margin:1.4rem auto 0;
  padding:1.35rem 0 0;
  border-top:1px solid var(--fri-border);
}

.fri-tp-latest-race-head{
  margin-bottom:.75rem;
}

.fri-tp-latest-race-card{
  position:relative;
  border:1px solid #DFE5EC;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.fri-tp-latest-race-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1.5rem;
  align-items:center;
  padding:1.05rem 1.15rem;
}

.fri-tp-latest-race-copy{
  min-width:0;
}

.fri-tp-latest-race-title{
  color:var(--fri-text);
  font-size:1.02rem;
  line-height:1.22;
  font-weight:700;
}

.fri-tp-latest-race-title .fri-tp-race-link{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:inherit !important;
  text-align:left;
  font-size:inherit !important;
  line-height:inherit !important;
}

.fri-tp-latest-race-title .fri-tp-race-link:hover{
  color:var(--fri-primary) !important;
  text-decoration:underline;
  text-underline-offset:3px;
}

.fri-tp-latest-race-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.28rem;
  align-items:center;
  margin-top:.32rem;
  color:var(--fri-muted);
  font-size:.76rem;
}

.fri-tp-latest-race-story{
  margin-top:.55rem;
  color:var(--fri-text-soft);
  font-size:.82rem;
}

.fri-tp-latest-race-result{
  min-width:118px;
  text-align:right;
}

.fri-tp-latest-race-result strong{
  display:block;
  color:var(--fri-text);
  font-size:1.65rem;
  line-height:1;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.fri-tp-latest-race-result > span:not(.fri-tp-latest-pb){
  display:block;
  margin-top:.38rem;
  color:var(--fri-muted);
  font-size:.74rem;
}

.fri-tp-latest-pb{
  display:inline-block;
  margin-bottom:.48rem;
  padding:.28rem .55rem;
  border-radius:999px;
  background:var(--fri-primary);
  color:#fff;
  font-size:.64rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.fri-tp-latest-race-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--fri-border);
  border-bottom:1px solid var(--fri-border);
  background:#FAFBFD;
}

.fri-tp-latest-metric{
  min-width:0;
  padding:.78rem 1.15rem;
}

.fri-tp-latest-metric + .fri-tp-latest-metric{
  border-left:1px solid var(--fri-border);
}

.fri-tp-latest-metric span,
.fri-tp-latest-metric strong{
  display:block;
}

.fri-tp-latest-metric span{
  color:var(--fri-muted);
  font-size:.68rem;
  line-height:1.2;
}

.fri-tp-latest-metric strong{
  margin-top:.22rem;
  color:var(--fri-text);
  font-size:.93rem;
  line-height:1.2;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

.fri-tp-latest-metric.is-best strong{
  color:var(--fri-primary);
}

.fri-tp-latest-history-link{
  margin:.7rem 1.15rem .85rem auto !important;
  display:block !important;
  min-height:auto !important;
  padding:.15rem 0 !important;
  border:0 !important;
  background:transparent !important;
  color:var(--fri-primary) !important;
  font-size:.75rem !important;
}

@media(max-width:760px){
  .fri-tp-latest-race-wrap{
    margin-top:1rem;
    padding-top:1rem;
  }

  .fri-tp-latest-race-main{
    grid-template-columns:minmax(0,1fr) auto;
    gap:.8rem;
    padding:.9rem;
    align-items:start;
  }

  .fri-tp-latest-race-result{
    min-width:82px;
  }

  .fri-tp-latest-race-result strong{
    font-size:1.35rem;
  }

  .fri-tp-latest-race-meta{
    font-size:.68rem;
  }

  .fri-tp-latest-race-story{
    font-size:.76rem;
  }

  .fri-tp-latest-race-metrics{
    grid-template-columns:1fr;
  }

  .fri-tp-latest-metric{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:1rem;
    padding:.66rem .9rem;
  }

  .fri-tp-latest-metric + .fri-tp-latest-metric{
    border-left:0;
    border-top:1px solid var(--fri-border);
  }

  .fri-tp-latest-metric strong{
    margin-top:0;
    text-align:right;
  }

  .fri-tp-latest-history-link{
    margin:.65rem .9rem .78rem auto !important;
  }
}


/* ==========================================================
   v1.7.1 — latest race visual polish + own-history scale
   ========================================================== */
.fri-tp-latest-race-wrap{
  margin:1.65rem auto 0;
  padding:1.55rem 0 0;
}
.fri-tp-latest-race-head{
  margin-bottom:.9rem;
}
.fri-tp-latest-race-card{
  border-color:var(--fri-border);
  border-radius:12px;
  box-shadow:none;
}
.fri-tp-latest-race-main{
  padding:1rem 1.05rem .9rem;
}
.fri-tp-latest-race-title{
  font-size:.98rem;
}
.fri-tp-latest-race-story{
  margin-top:.45rem;
  font-size:.76rem;
  color:var(--fri-muted);
}
.fri-tp-latest-race-result strong{
  font-size:1.55rem;
}
.fri-tp-latest-benchmarks{
  display:flex;
  align-items:stretch;
  gap:0;
  border-top:1px solid var(--fri-border);
  background:#fff;
}
.fri-tp-latest-benchmark{
  flex:0 1 220px;
  padding:.7rem 1.05rem;
}
.fri-tp-latest-benchmark + .fri-tp-latest-benchmark{
  border-left:1px solid var(--fri-border);
}
.fri-tp-latest-benchmark span,
.fri-tp-latest-benchmark strong{
  display:block;
}
.fri-tp-latest-benchmark span{
  color:var(--fri-muted);
  font-size:.66rem;
}
.fri-tp-latest-benchmark strong{
  margin-top:.18rem;
  color:var(--fri-text);
  font-size:.92rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.fri-tp-latest-benchmark.is-best strong{
  color:var(--fri-primary);
}
.fri-tp-latest-scale-block{
  padding:.85rem 1.05rem .55rem;
  border-top:1px solid var(--fri-border);
  background:#FAFBFD;
}
.fri-tp-latest-scale-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.78rem;
}
.fri-tp-latest-scale-head span{
  color:var(--fri-muted);
  font-size:.7rem;
}
.fri-tp-latest-scale-head strong{
  color:var(--fri-text);
  font-size:.76rem;
  font-weight:700;
  white-space:nowrap;
}
.fri-tp-latest-scale{
  position:relative;
  height:24px;
  margin:0 5px;
}
.fri-tp-latest-scale-track{
  position:absolute;
  left:0;
  right:0;
  top:11px;
  height:3px;
  border-radius:999px;
  background:#DDE4ED;
}
.fri-tp-latest-scale-median{
  position:absolute;
  top:7px;
  width:1px;
  height:11px;
  background:#97A3B3;
  transform:translateX(-50%);
}
.fri-tp-latest-scale-point{
  position:absolute;
  top:6px;
  width:13px;
  height:13px;
  border-radius:50%;
  background:var(--fri-primary);
  border:3px solid #fff;
  box-shadow:0 0 0 1px var(--fri-primary);
  transform:translateX(-50%);
}
.fri-tp-latest-scale-point > span{
  position:absolute;
  left:50%;
  bottom:17px;
  transform:translateX(-50%);
  padding:.18rem .38rem;
  border-radius:6px;
  background:var(--fri-text);
  color:#fff;
  font-size:.61rem;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.fri-tp-latest-scale-labels{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:.7rem;
  align-items:center;
  margin-top:.15rem;
  color:var(--fri-muted);
  font-size:.62rem;
}
.fri-tp-latest-scale-labels > span:last-child{
  text-align:right;
}
.fri-tp-latest-scale-labels strong{
  color:var(--fri-text-soft);
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.fri-tp-latest-scale-median-label{
  color:#7B8797;
  text-align:center;
}
.fri-tp-latest-single-note{
  padding:.72rem 1.05rem;
  border-top:1px solid var(--fri-border);
  background:#FAFBFD;
  color:var(--fri-muted);
  font-size:.72rem;
}
.fri-tp-latest-history-link{
  margin:.62rem 1.05rem .72rem auto !important;
}

@media(max-width:760px){
  .fri-tp-latest-race-wrap{
    margin-top:1.25rem;
    padding-top:1.15rem;
  }
  .fri-tp-latest-benchmarks{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .fri-tp-latest-benchmark{
    padding:.62rem .85rem;
  }
  .fri-tp-latest-scale-block{
    padding:.78rem .85rem .48rem;
  }
  .fri-tp-latest-scale-head{
    align-items:flex-start;
    gap:.6rem;
  }
  .fri-tp-latest-scale-labels{
    grid-template-columns:1fr 1fr;
  }
  .fri-tp-latest-scale-median-label{
    display:none;
  }
  .fri-tp-latest-scale-labels > span:last-child{
    text-align:right;
  }
  .fri-tp-latest-history-link{
    margin:.58rem .85rem .68rem auto !important;
  }
}


/* ==========================================================
   v1.7.2 — Overview rhythm + latest-race simplification
   ========================================================== */

/* One vertical system for the complete Overview page. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"]{
  --fri-overview-gap:3rem;
  --fri-overview-pad:2.15rem;
  --fri-overview-head-gap:1.05rem;
}

/* Every section after the summary starts with the same breathing room. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-latest-race-wrap,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section{
  margin-top:var(--fri-overview-gap) !important;
  padding-top:var(--fri-overview-pad) !important;
  border-top:1px solid var(--fri-border) !important;
}

/* This section used to be no-border because it was originally first on Overview.
   With latest race above it, it now follows the standard section rhythm. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section-no-border{
  margin-top:var(--fri-overview-gap) !important;
  padding-top:var(--fri-overview-pad) !important;
  border-top:1px solid var(--fri-border) !important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section-head,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-latest-race-head{
  margin-bottom:var(--fri-overview-head-gap) !important;
  align-items:flex-end;
}

/* Section headings: same typography, same color, same visual weight. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section-head h3,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-latest-race-head h3{
  margin:.12rem 0 0 !important;
  color:var(--fri-text) !important;
  font-size:clamp(1.45rem,2.2vw,2rem) !important;
  line-height:1.08 !important;
  letter-spacing:-.025em !important;
}

/* Eyebrows stay the blue accent; the actual heading stays black. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-eyebrow{
  color:var(--fri-primary) !important;
}

/* Latest race should feel like an Overview module, not a separate dashboard. */
.fri-tp-latest-race-wrap{
  max-width:var(--fri-content-max,1180px);
}
.fri-tp-latest-race-card{
  border:1px solid var(--fri-border) !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:hidden;
}
.fri-tp-latest-race-main{
  padding:1.05rem 1.1rem !important;
  gap:1.25rem !important;
}
.fri-tp-latest-race-title{
  color:var(--fri-text) !important;
  font-size:1rem !important;
  line-height:1.22 !important;
}
.fri-tp-latest-race-meta{
  margin-top:.3rem !important;
  font-size:.74rem !important;
}
.fri-tp-latest-race-story{
  margin-top:.45rem !important;
  color:var(--fri-muted) !important;
  font-size:.75rem !important;
}
.fri-tp-latest-race-result strong{
  color:var(--fri-text) !important;
  font-size:1.55rem !important;
  line-height:1 !important;
}

/* Three clean benchmarks; no scale / progress visualization. */
.fri-tp-latest-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--fri-border);
  border-bottom:1px solid var(--fri-border);
  background:#FAFBFD;
}
.fri-tp-latest-stat{
  min-width:0;
  padding:.82rem 1.1rem;
}
.fri-tp-latest-stat + .fri-tp-latest-stat{
  border-left:1px solid var(--fri-border);
}
.fri-tp-latest-stat span,
.fri-tp-latest-stat strong{
  display:block;
}
.fri-tp-latest-stat span{
  color:var(--fri-muted);
  font-size:.68rem;
  line-height:1.22;
}
.fri-tp-latest-stat strong{
  margin-top:.22rem;
  color:var(--fri-text);
  font-size:.94rem;
  line-height:1.2;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.fri-tp-latest-stat.is-best strong{
  color:var(--fri-primary);
}

/* Hide the obsolete scale styling if older cached markup briefly survives. */
.fri-tp-latest-scale-block,
.fri-tp-latest-scale,
.fri-tp-latest-scale-head{
  display:none !important;
}

.fri-tp-latest-history-link{
  margin:.72rem 1.1rem .85rem auto !important;
  font-size:.73rem !important;
}

/* Keep the rest of Overview visually in one family. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-grid,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-insight-grid{
  margin-top:0 !important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-milestones,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-mini-athlete-grid{
  margin-top:.1rem !important;
}

/* A little more room at the bottom of major Overview blocks. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-grid,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-insight-grid,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-milestones,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list{
  margin-bottom:.15rem;
}

@media(max-width:760px){
  .fri-tp-tab-panel[data-fri-tp-panel="overview"]{
    --fri-overview-gap:2.15rem;
    --fri-overview-pad:1.55rem;
    --fri-overview-head-gap:.8rem;
  }

  .fri-tp-latest-race-main{
    padding:.9rem !important;
    gap:.8rem !important;
  }

  .fri-tp-latest-stats{
    grid-template-columns:1fr;
  }
  .fri-tp-latest-stat{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:1rem;
    padding:.68rem .9rem;
  }
  .fri-tp-latest-stat + .fri-tp-latest-stat{
    border-left:0;
    border-top:1px solid var(--fri-border);
  }
  .fri-tp-latest-stat strong{
    margin-top:0;
    text-align:right;
  }
  .fri-tp-latest-history-link{
    margin:.65rem .9rem .78rem auto !important;
  }
}


/* ==========================================================
   v1.7.3 — Overview mobile consistency
   Desktop intentionally unchanged.
   ========================================================== */
@media (max-width:760px){
  /* All Overview section headings start on the same left edge. */
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section-head,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-latest-race-head{
    width:100%;
    align-items:flex-start !important;
    text-align:left !important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section-head > div,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-latest-race-head > div{
    width:100%;
  }

  /* Slightly calmer heading scale on phones, while retaining FRÍ ss12 style. */
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section-head h3,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-latest-race-head h3{
    font-size:1.55rem !important;
    line-height:1.08 !important;
    max-width:100%;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-eyebrow{
    font-size:.72rem !important;
  }

  /* Make the nav feel like a compact native horizontal segmented row. */
  .fri-tp-tabs{
    gap:.35rem !important;
    padding-right:.8rem !important;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .fri-tp-tabs::-webkit-scrollbar{display:none}
  .fri-tp-tabs button{
    flex:0 0 auto;
    min-height:40px !important;
    padding:.58rem .72rem !important;
    font-size:.82rem !important;
    white-space:nowrap;
  }

  /* Overview summary: compact but still comfortably tappable/readable. */
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-summary-card{
    min-height:82px !important;
    padding:.8rem .72rem !important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-summary-card strong{
    font-size:1.08rem !important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-summary-card span{
    margin-top:.22rem;
    font-size:.68rem !important;
    line-height:1.2;
  }

  /* Latest race stays visually connected to the summary and never shifts right. */
  .fri-tp-latest-race-wrap{
    width:100%;
  }
  .fri-tp-latest-race-card{
    width:100%;
  }
  .fri-tp-latest-race-main{
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:start !important;
  }

  /* Personal bests become compact editorial rows instead of tall cards. */
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:0 !important;
    border-top:1px solid var(--fri-border);
    border-bottom:1px solid var(--fri-border);
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb{
    min-height:0 !important;
    padding:.82rem .85rem .76rem 1rem !important;
    display:grid !important;
    grid-template-columns:minmax(64px,auto) minmax(0,1fr) !important;
    grid-template-areas:
      "event time"
      "meta meta";
    column-gap:1rem;
    row-gap:.22rem;
    align-items:baseline;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb + .fri-tp-pb{
    border-top:1px solid var(--fri-border) !important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-event{
    grid-area:event;
    font-size:.7rem !important;
    align-self:center;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-time{
    grid-area:time;
    margin:0 !important;
    font-size:1.42rem !important;
    text-align:right;
    justify-self:end;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-meta{
    grid-area:meta;
    font-size:.7rem !important;
    line-height:1.32 !important;
    padding-right:.25rem;
  }

  /* Keep the section rhythm tight enough for phones without collapsing hierarchy. */
  .fri-tp-tab-panel[data-fri-tp-panel="overview"]{
    --fri-overview-gap:1.8rem;
    --fri-overview-pad:1.3rem;
    --fri-overview-head-gap:.68rem;
  }
}

@media (max-width:430px){
  .fri-tp-tabs button{
    padding:.55rem .62rem !important;
    font-size:.78rem !important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section-head h3,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-latest-race-head h3{
    font-size:1.45rem !important;
  }
}


/* ==========================================================
   v1.7.4 — result-row robustness
   Long Tilastopaja split strings must never break Hlaupasaga.
   ========================================================== */

.fri-tp-table{
  table-layout:fixed;
}

/* Hlaupasaga column proportions */
.fri-tp-history-panel .fri-tp-table th:nth-child(1),
.fri-tp-history-panel .fri-tp-table td:nth-child(1){width:12%}

.fri-tp-history-panel .fri-tp-table th:nth-child(2),
.fri-tp-history-panel .fri-tp-table td:nth-child(2){width:12%}

.fri-tp-history-panel .fri-tp-table th:nth-child(3),
.fri-tp-history-panel .fri-tp-table td:nth-child(3){width:10%}

.fri-tp-history-panel .fri-tp-table th:nth-child(4),
.fri-tp-history-panel .fri-tp-table td:nth-child(4){width:12%}

.fri-tp-history-panel .fri-tp-table th:nth-child(5),
.fri-tp-history-panel .fri-tp-table td:nth-child(5){width:29%}

.fri-tp-history-panel .fri-tp-table th:nth-child(6),
.fri-tp-history-panel .fri-tp-table td:nth-child(6){width:17%}

.fri-tp-history-panel .fri-tp-table th:nth-child(7),
.fri-tp-history-panel .fri-tp-table td:nth-child(7){width:8%}

.fri-tp-history-panel .fri-tp-table td,
.fri-tp-history-panel .fri-tp-table th{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:normal;
}

.fri-tp-history-panel .fri-tp-table td:nth-child(4) strong{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}

.fri-tp-history-panel .fri-tp-race-link,
.fri-tp-history-panel .fri-tp-missing-race-name{
  display:inline-block;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.3;
}

@media(max-width:760px){
  /* Keep horizontal scrolling predictable instead of crushing columns. */
  .fri-tp-history-panel .fri-tp-table{
    min-width:820px;
  }

  .fri-tp-history-panel .fri-tp-table td,
  .fri-tp-history-panel .fri-tp-table th{
    overflow-wrap:normal;
    word-break:normal;
  }
}


/* ==========================================================
   v1.7.5 — passport geography cleanup
   ========================================================== */
.fri-tp-passport-grid{
  align-items:stretch!important;
}
.fri-tp-passport-card:not(.fri-tp-passport-card-wide){
  min-height:190px!important;
  height:100%;
}
.fri-tp-passport-card [data-fri-tp-iceland],
.fri-tp-passport-card [data-fri-tp-active-years]{
  height:100%;
}
.fri-tp-coverage-regions-only{
  display:flex;
  min-height:125px;
  flex-direction:column;
}
.fri-tp-coverage-regions-only .fri-tp-small-note{
  margin-top:auto!important;
  padding-top:.8rem;
}
@media(max-width:760px){
  .fri-tp-passport-card:not(.fri-tp-passport-card-wide){
    min-height:0!important;
    height:auto;
  }
  .fri-tp-coverage-regions-only{
    min-height:0;
  }
}


/* ==========================================================
   v1.7.6 — badge tiers + comparison by age
   ========================================================== */

/* Badge tier language: earned badges become progressively more distinctive
   while locked badges stay neutral. Red remains reserved for official
   performance/track contexts and future championship/record achievements. */
.fri-tp-badge.is-earned.is-tier-standard{
  background:#FBFCFF !important;
  border-color:#CED8F8 !important;
}
.fri-tp-badge.is-earned.is-tier-standard::before{
  background:var(--fri-primary) !important;
}

.fri-tp-badge.is-earned.is-tier-strong{
  background:#F4F7FF !important;
  border-color:#AEC2FA !important;
}
.fri-tp-badge.is-earned.is-tier-strong::before{
  width:4px !important;
  background:#174FD1 !important;
}
.fri-tp-badge.is-earned.is-tier-strong strong{
  color:#103EAF !important;
}

.fri-tp-badge.is-earned.is-tier-rare{
  background:#F7F9FC !important;
  border-color:#A9B7CF !important;
}
.fri-tp-badge.is-earned.is-tier-rare::before{
  width:4px !important;
  background:#172A52 !important;
}
.fri-tp-badge.is-earned.is-tier-rare strong{
  color:#172A52 !important;
}

.fri-tp-badge.is-earned.is-tier-special{
  background:#FFFDF8 !important;
  border-color:#DCCB9E !important;
}
.fri-tp-badge.is-earned.is-tier-special::before,
.fri-tp-badge.is-special.is-earned::before{
  width:4px !important;
  background:#B8923E !important;
}
.fri-tp-badge.is-earned.is-tier-special strong{
  color:#172033 !important;
}

.fri-tp-badge-tier{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0 0 .45rem !important;
  padding:.18rem .4rem;
  border-radius:999px;
  background:#EAF0FF;
  color:#174FD1 !important;
  font-size:.56rem !important;
  line-height:1 !important;
  font-style:normal !important;
  font-weight:600 !important;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.fri-tp-badge.is-tier-rare .fri-tp-badge-tier{
  background:#E8EDF5;
  color:#172A52 !important;
}
.fri-tp-badge.is-tier-special .fri-tp-badge-tier{
  background:#F4E9CC;
  color:#70581E !important;
}

/* Comparison mode selector */
.fri-tp-compare-progression-controls{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:.75rem;
}

.fri-tp-compare-mode{
  display:inline-flex;
  padding:3px;
  border:1px solid #D8E0EA;
  border-radius:999px;
  background:#F5F7FA;
}

.fri-tp-compare-mode button{
  min-height:32px !important;
  padding:.35rem .75rem !important;
  border:0 !important;
  border-radius:999px !important;
  background:transparent !important;
  color:var(--fri-muted) !important;
  font-size:.72rem !important;
  line-height:1 !important;
  box-shadow:none !important;
}

.fri-tp-compare-mode button:hover{
  color:var(--fri-primary) !important;
}

.fri-tp-compare-mode button.is-active{
  background:#fff !important;
  color:var(--fri-primary) !important;
  box-shadow:0 1px 3px rgba(16,24,40,.09) !important;
}

@media(max-width:760px){
  .fri-tp-compare-section > .fri-tp-section-head{
    gap:.8rem;
  }

  .fri-tp-compare-progression-controls{
    width:100%;
    align-items:flex-end;
    justify-content:space-between;
    gap:.6rem;
  }

  .fri-tp-compare-mode{
    flex:0 0 auto;
  }

  .fri-tp-compare-mode button{
    min-height:30px !important;
    padding:.32rem .65rem !important;
  }

  .fri-tp-compare-progression-controls .fri-tp-event-picker{
    flex:1 1 auto;
    min-width:0;
  }

  .fri-tp-compare-progression-controls .fri-tp-event-picker select{
    width:100%;
  }
}


/* ==========================================================
   v1.7.7 — medal badge hierarchy + aligned compare controls
   ========================================================== */

/* Reset the previous rarity palette. */
.fri-tp-badge.is-earned{
  box-shadow:none !important;
}

/* Basic earned badge — FRÍ blue */
.fri-tp-badge.is-earned.is-tier-blue{
  background:#F7F9FF !important;
  border-color:#C9D6FB !important;
}
.fri-tp-badge.is-earned.is-tier-blue::before{
  background:#003BCB !important;
}
.fri-tp-badge.is-earned.is-tier-blue strong{
  color:#123B9F !important;
}

/* Bronze */
.fri-tp-badge.is-earned.is-tier-bronze{
  background:#FCF8F3 !important;
  border-color:#DFC8AE !important;
}
.fri-tp-badge.is-earned.is-tier-bronze::before{
  width:4px !important;
  background:#A86F3D !important;
}
.fri-tp-badge.is-earned.is-tier-bronze strong{
  color:#744A28 !important;
}
.fri-tp-badge.is-tier-bronze .fri-tp-badge-tier{
  background:#F1E2D2 !important;
  color:#744A28 !important;
}

/* Silver */
.fri-tp-badge.is-earned.is-tier-silver{
  background:#F7F8FA !important;
  border-color:#C7CED8 !important;
}
.fri-tp-badge.is-earned.is-tier-silver::before{
  width:4px !important;
  background:#8A96A7 !important;
}
.fri-tp-badge.is-earned.is-tier-silver strong{
  color:#414C5D !important;
}
.fri-tp-badge.is-tier-silver .fri-tp-badge-tier{
  background:#E8EBEF !important;
  color:#566171 !important;
}

/* Gold */
.fri-tp-badge.is-earned.is-tier-gold,
.fri-tp-badge.is-special.is-earned{
  background:#FFFBF1 !important;
  border-color:#E5CF8B !important;
}
.fri-tp-badge.is-earned.is-tier-gold::before,
.fri-tp-badge.is-special.is-earned::before{
  width:4px !important;
  background:#C39A2E !important;
}
.fri-tp-badge.is-earned.is-tier-gold strong{
  color:#6B5317 !important;
}
.fri-tp-badge.is-tier-gold .fri-tp-badge-tier{
  background:#F5E8BA !important;
  color:#715711 !important;
}

/* Locked stays subdued regardless of future tier. */
.fri-tp-badge.is-locked{
  background:#F5F6F8 !important;
  border-color:#E0E4EA !important;
  opacity:.78;
}
.fri-tp-badge.is-locked::before{
  background:#C7CED8 !important;
}

/* Medal labels are intentionally small: hierarchy should mostly come
   from the accent/background rather than loud text. */
.fri-tp-badge-tier{
  margin-bottom:.4rem !important;
  font-size:.55rem !important;
  letter-spacing:.06em !important;
}

/* Comparison controls: segmented switch and event select now share
   the same height, radius and baseline. */
.fri-tp-compare-progression-controls{
  display:grid !important;
  grid-template-columns:auto minmax(180px, 220px);
  gap:.65rem !important;
  align-items:end !important;
}

.fri-tp-compare-mode{
  height:38px;
  padding:3px !important;
  border:1px solid #D7DEE8 !important;
  border-radius:10px !important;
  background:#F6F8FA !important;
  box-sizing:border-box;
}

.fri-tp-compare-mode button{
  height:30px !important;
  min-height:30px !important;
  padding:0 .8rem !important;
  border-radius:7px !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
}

.fri-tp-compare-progression-controls .fri-tp-event-picker{
  margin:0 !important;
}

.fri-tp-compare-progression-controls .fri-tp-event-picker > span{
  display:block;
  margin:0 0 .27rem !important;
  font-size:.67rem !important;
  line-height:1 !important;
}

.fri-tp-compare-progression-controls .fri-tp-event-picker select{
  height:38px !important;
  min-height:38px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  border:1px solid #D7DEE8 !important;
  border-radius:10px !important;
  background-color:#fff !important;
  box-sizing:border-box;
}

/* Give the mode switch a tiny invisible label-space so its control aligns
   with the select itself, whose visible "Grein" label sits above it. */
.fri-tp-compare-mode{
  margin-top:calc(.67rem + .27rem) !important;
}

@media(max-width:760px){
  .fri-tp-compare-progression-controls{
    grid-template-columns:auto minmax(0,1fr) !important;
    width:100%;
    align-items:end !important;
  }

  .fri-tp-compare-mode{
    height:40px;
  }

  .fri-tp-compare-mode button{
    height:32px !important;
    min-height:32px !important;
  }

  .fri-tp-compare-progression-controls .fri-tp-event-picker select{
    height:40px !important;
    min-height:40px !important;
  }
}


/* ==========================================================
   v1.8 — progression-first badge system
   ========================================================== */

/* Every card keeps its future/current level in the same place. */
.fri-tp-badge{
  padding-bottom:2rem !important;
}

.fri-tp-badge-tier{
  position:absolute !important;
  right:.72rem !important;
  bottom:.62rem !important;
  left:auto !important;
  top:auto !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  font-size:.54rem !important;
  line-height:1 !important;
  font-style:normal !important;
  font-weight:700 !important;
  letter-spacing:.075em !important;
  text-transform:uppercase;
}

/* Basic blue */
.fri-tp-badge.is-earned.is-tier-blue{
  background:#F5F8FF !important;
  border-color:#C8D5FA !important;
}
.fri-tp-badge.is-earned.is-tier-blue::before{background:#003BCB !important}
.fri-tp-badge.is-tier-blue .fri-tp-badge-tier{color:#3159B9 !important}

/* Bronze */
.fri-tp-badge.is-earned.is-tier-bronze{
  background:#FCF7F1 !important;
  border-color:#DFC5A8 !important;
}
.fri-tp-badge.is-earned.is-tier-bronze::before{background:#A96F3A !important}
.fri-tp-badge.is-earned.is-tier-bronze strong{color:#6F4727 !important}
.fri-tp-badge.is-tier-bronze .fri-tp-badge-tier{color:#8B5B31 !important}

/* Silver */
.fri-tp-badge.is-earned.is-tier-silver{
  background:#F5F7FA !important;
  border-color:#BFC8D4 !important;
}
.fri-tp-badge.is-earned.is-tier-silver::before{background:#8996A7 !important}
.fri-tp-badge.is-earned.is-tier-silver strong{color:#384556 !important}
.fri-tp-badge.is-tier-silver .fri-tp-badge-tier{color:#677385 !important}

/* Gold */
.fri-tp-badge.is-earned.is-tier-gold{
  background:#FFFAEC !important;
  border-color:#DFC77A !important;
}
.fri-tp-badge.is-earned.is-tier-gold::before{background:#B98E1C !important}
.fri-tp-badge.is-earned.is-tier-gold strong{color:#665018 !important}
.fri-tp-badge.is-tier-gold .fri-tp-badge-tier{color:#8A6B17 !important}

/* Platinum: only top-level / exceptional completion. */
.fri-tp-badge.is-earned.is-tier-platinum{
  background:linear-gradient(135deg,#F7F9FC 0%,#EEF2F7 58%,#F9FBFD 100%) !important;
  border-color:#9EACBF !important;
}
.fri-tp-badge.is-earned.is-tier-platinum::before{
  width:4px !important;
  background:linear-gradient(180deg,#6E7D91,#B9C3CF) !important;
}
.fri-tp-badge.is-earned.is-tier-platinum strong{
  color:#263445 !important;
}
.fri-tp-badge.is-tier-platinum .fri-tp-badge-tier{
  color:#526174 !important;
}

/* Locked = not earned; retain the target level label but keep the card neutral. */
.fri-tp-badge.is-locked{
  background:#F4F5F7 !important;
  border-color:#DFE3E8 !important;
  opacity:1 !important;
  filter:none !important;
}
.fri-tp-badge.is-locked::before{background:#C8CED7 !important}
.fri-tp-badge.is-locked strong{color:#737B87 !important}
.fri-tp-badge.is-locked span,
.fri-tp-badge.is-locked small{color:#939AA4 !important}
.fri-tp-badge.is-locked .fri-tp-badge-tier{color:#8D949E !important}

/* Real progress track: fill always stays inside the grey track. */
.fri-tp-badge-progress{
  position:relative;
  width:100%;
  height:5px;
  margin:.72rem 0 0 !important;
  padding:0 !important;
  border-radius:999px;
  background:#DDE2E8 !important;
  overflow:hidden;
  box-sizing:border-box !important;
}
.fri-tp-badge-progress i{
  display:block;
  height:100% !important;
  margin:0 !important;
  border-radius:999px;
  background:#7D8999 !important;
}

.fri-tp-badge-next{
  display:block;
  margin-top:.28rem !important;
  padding-right:3.8rem;
  font-size:.62rem !important;
  line-height:1.25 !important;
}

/* "Næst hjá þér" should feel like actionable goals, not another full collection. */
.fri-tp-next-title{
  font-size:.86rem !important;
}
.fri-tp-next-grid .fri-tp-badge{
  min-height:118px !important;
}

/* Collections deserve a tiny bit more visual breathing room. */
.fri-tp-badge-group:first-child .fri-tp-all-badge-grid{
  gap:.8rem;
}

/* Platinum cards are allowed a little more presence, without changing grid sizing. */
.fri-tp-badge.is-tier-platinum.is-earned{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75) !important;
}


/* ==========================================================
   v1.8.1 — realistic ceilings + Full Passport checklist
   ========================================================== */

.fri-tp-full-passport{
  margin-top:1.2rem;
  padding:1rem 1.05rem;
  border:1px solid #C6CFDA;
  border-radius:14px;
  background:linear-gradient(135deg,#F8FAFC 0%,#EEF2F6 60%,#FAFBFD 100%);
}

.fri-tp-full-passport-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}

.fri-tp-full-passport-head > div{
  min-width:0;
}

.fri-tp-full-passport-kicker{
  display:block;
  margin-bottom:.28rem;
  color:#687789;
  font-size:.58rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.fri-tp-full-passport-head strong{
  display:block;
  color:#263445;
  font-size:1rem;
  line-height:1.15;
}

.fri-tp-full-passport-head p{
  margin:.28rem 0 0;
  color:var(--fri-muted);
  font-size:.72rem;
}

.fri-tp-full-passport-head > b{
  flex:0 0 auto;
  color:#526174;
  font-size:1.3rem;
  line-height:1;
  font-variant-numeric:tabular-nums;
}

.fri-tp-full-passport-progress{
  height:6px;
  margin:.85rem 0 .9rem;
  overflow:hidden;
  border-radius:999px;
  background:#DCE2E9;
}

.fri-tp-full-passport-progress i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#7C8A9D,#B4BEC9);
}

.fri-tp-full-passport-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.55rem;
}

.fri-tp-full-passport-item{
  position:relative;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:start;
  column-gap:.55rem;
  row-gap:.28rem;
  min-width:0;
  padding:.65rem .7rem .72rem;
  border:1px solid #DDE3E9;
  border-radius:10px;
  background:rgba(255,255,255,.7);
}

.fri-tp-full-passport-item.is-done{
  border-color:#CAD6F5;
  background:#F7F9FF;
}

.fri-tp-full-passport-check{
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border:1px solid #C9D0D9;
  border-radius:50%;
  color:#fff;
  font-size:.7rem;
  font-weight:800;
}

.fri-tp-full-passport-item.is-done .fri-tp-full-passport-check{
  border-color:#003BCB;
  background:#003BCB;
}

.fri-tp-full-passport-item > div{
  min-width:0;
}

.fri-tp-full-passport-item strong{
  display:block;
  color:var(--fri-text);
  font-size:.75rem;
  line-height:1.15;
}

.fri-tp-full-passport-item small{
  display:block;
  margin-top:.14rem;
  color:var(--fri-muted);
  font-size:.61rem;
  line-height:1.25;
}

.fri-tp-full-passport-item > em{
  color:#788492;
  font-size:.61rem;
  line-height:1.1;
  font-style:normal;
  font-weight:700;
  white-space:nowrap;
}

.fri-tp-full-passport-mini{
  grid-column:2 / 4;
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:#E2E6EB;
}

.fri-tp-full-passport-mini i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#8895A5;
}

@media(max-width:760px){
  .fri-tp-full-passport{
    padding:.9rem;
  }

  .fri-tp-full-passport-list{
    grid-template-columns:1fr;
  }

  .fri-tp-full-passport-head > b{
    font-size:1.15rem;
  }
}


/* ==========================================================
   v1.9.0 — FRÍ vísir (beta) + WA Scoring Tables
   ========================================================== */
.fri-tp-wa-index-section{
  margin-top:3rem;
  padding-top:2.15rem;
  border-top:1px solid var(--fri-border);
}
.fri-tp-wa-index-card{
  border:1px solid #d7e0ef;
  border-radius:14px;
  background:#fbfcff;
  overflow:hidden;
}
.fri-tp-wa-index-card.is-loading,.fri-tp-wa-index-card.is-error{
  padding:1rem 1.1rem;
  color:var(--fri-muted);
}
.fri-tp-wa-index-card.is-error strong{display:block;color:var(--fri-text);margin-bottom:.25rem}
.fri-tp-wa-index-main{
  display:grid;
  grid-template-columns:minmax(220px,.75fr) minmax(280px,1.25fr);
  gap:2rem;
  align-items:end;
  padding:1.15rem 1.25rem 1rem;
}
.fri-tp-wa-index-kicker{
  color:var(--fri-primary);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.fri-tp-wa-index-kicker span{
  margin-left:.35rem;
  padding:.16rem .34rem;
  border:1px solid #b8c9f7;
  border-radius:999px;
  font-size:.52rem;
  letter-spacing:.06em;
  vertical-align:middle;
}
.fri-tp-wa-index-score{
  margin-top:.18rem;
  color:var(--fri-text);
  font-size:clamp(2.7rem,5vw,4.25rem);
  line-height:.95;
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
.fri-tp-wa-index-caption{margin-top:.45rem;color:var(--fri-muted);font-size:.73rem}
.fri-tp-wa-segments{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}
.fri-tp-wa-segments i{display:block;height:12px;border-radius:3px;background:#e4e9f1}
.fri-tp-wa-segments i.is-active{background:#003BCB}
.fri-tp-wa-segments i.is-active:nth-child(n+7){background:#183a91}
.fri-tp-wa-segments i.is-active:nth-child(n+9){background:#172a52}
.fri-tp-wa-scale-labels{display:flex;justify-content:space-between;margin-top:.38rem;color:#7c8798;font-size:.58rem;font-weight:700}
.fri-tp-wa-index-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #dfe5ee}
.fri-tp-wa-index-stats>div{padding:.85rem 1.25rem;min-width:0}
.fri-tp-wa-index-stats>div+div{border-left:1px solid #dfe5ee}
.fri-tp-wa-index-stats span{display:block;color:var(--fri-muted);font-size:.62rem}
.fri-tp-wa-index-stats strong{display:block;margin-top:.14rem;color:var(--fri-text);font-size:1rem}
.fri-tp-wa-index-stats small{display:block;margin-top:.18rem;color:var(--fri-muted);font-size:.65rem;line-height:1.3}
.fri-tp-wa-info{border-top:1px solid #dfe5ee;padding:.72rem 1.25rem;color:var(--fri-muted);font-size:.66rem}
.fri-tp-wa-info summary{cursor:pointer;color:#3158aa;font-weight:700}
.fri-tp-wa-info p{max-width:900px;margin:.55rem 0 0;line-height:1.5}
.fri-tp-wa-inline{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-top:.25rem;
  padding:.16rem .36rem;
  border-radius:999px;
  background:#eef3ff;
  color:#174bbd!important;
  font-size:.57rem!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.02em;
  white-space:nowrap;
}
.fri-tp-pb>.fri-tp-wa-inline{margin:.28rem 0 .05rem}
.fri-tp-latest-race-result .fri-tp-wa-inline{margin-left:auto}
.fri-tp-recent-time{display:flex;flex-direction:column;align-items:flex-end}
.fri-tp-recent-time>strong{font:inherit;color:inherit}
.fri-tp-history-panel td:nth-child(4) .fri-tp-wa-inline,.fri-tp-table td:nth-child(4) .fri-tp-wa-inline{display:flex;margin-top:.28rem}
.fri-tp-progression-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:.65rem}
.fri-tp-progression-metric{margin-top:calc(.67rem + .27rem)!important}
[data-fri-tp-progression-event-wrap][hidden],[data-fri-tp-compare-event-wrap][hidden]{display:none!important}
.fri-tp-wa-compare-section .fri-tp-stat-board-row:first-child .fri-tp-stat-value{font-size:1.35rem;font-weight:800}

@media(max-width:760px){
  .fri-tp-wa-index-section{margin-top:2.35rem;padding-top:1.65rem}
  .fri-tp-wa-index-main{grid-template-columns:1fr;gap:1rem;padding:1rem}
  .fri-tp-wa-index-score{font-size:3rem}
  .fri-tp-wa-index-stats{grid-template-columns:1fr}
  .fri-tp-wa-index-stats>div{padding:.75rem 1rem}
  .fri-tp-wa-index-stats>div+div{border-left:0;border-top:1px solid #dfe5ee}
  .fri-tp-wa-info{padding:.7rem 1rem}
  .fri-tp-progression-controls{width:100%;justify-content:space-between;gap:.55rem}
  .fri-tp-progression-controls .fri-tp-event-picker{flex:1 1 auto;min-width:0}
  .fri-tp-progression-controls .fri-tp-event-picker select{width:100%}
  .fri-tp-compare-progression-controls{grid-template-columns:auto auto minmax(140px,1fr)!important}
}
@media(max-width:560px){
  .fri-tp-compare-progression-controls{display:flex!important;flex-wrap:wrap;align-items:flex-end!important}
  .fri-tp-compare-progression-controls .fri-tp-event-picker{flex:1 1 100%}
}

/* Three coordinated controls on desktop: year/age, time/WA, event. */
.fri-tp-compare-progression-controls{
  grid-template-columns:auto auto minmax(180px,220px) !important;
}


/* ==========================================================
   v1.9.1 — compact FRÍ vísir + readable 0–1400 milestone rail
   ========================================================== */
.fri-tp-wa-index-card{
  background:#fbfcff;
}
.fri-tp-wa-index-main{
  grid-template-columns:minmax(190px,.68fr) minmax(360px,1.32fr);
  gap:1.6rem;
  align-items:center;
  padding:1rem 1.15rem .9rem;
}
.fri-tp-wa-index-kicker{
  font-size:.64rem;
}
.fri-tp-wa-index-score{
  margin-top:.12rem;
  font-size:clamp(2.55rem,4.4vw,3.8rem);
  line-height:.92;
}
.fri-tp-wa-index-caption{
  margin-top:.38rem;
  max-width:34rem;
  font-size:.68rem;
  line-height:1.35;
}
.fri-tp-wa-index-scale{
  min-width:0;
  padding:.2rem 0 0;
}
.fri-tp-wa-meter{
  width:100%;
  min-width:0;
}
.fri-tp-wa-meter-plot{
  position:relative;
  padding-top:9px;
  padding-bottom:29px;
}
.fri-tp-wa-meter-track{
  position:relative;
  height:9px;
  border-radius:999px;
  background:#e5eaf2;
  overflow:visible;
}
.fri-tp-wa-meter-fill{
  position:absolute;
  inset:0 auto 0 0;
  max-width:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#174fd1 0%,#003bcb 56%,#203f91 82%,#172a52 100%);
}
.fri-tp-wa-meter-tick{
  position:absolute;
  top:50%;
  z-index:2;
  width:1px;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.fri-tp-wa-meter-tick.is-minor{
  height:7px;
  background:rgba(255,255,255,.76);
}
.fri-tp-wa-meter-tick.is-wall{
  height:15px;
  width:1.5px;
  background:#95a4b8;
}
.fri-tp-wa-meter-tick.is-high-wall{
  background:#536781;
}
.fri-tp-wa-meter-tick.is-fri-wall{
  width:2px;
  height:18px;
  background:var(--fri-red,#F14024);
}
.fri-tp-wa-meter-marker{
  position:absolute;
  top:50%;
  z-index:4;
  width:17px;
  height:17px;
  transform:translate(-50%,-50%);
  border:3px solid #fff;
  border-radius:50%;
  background:#003BCB;
  box-shadow:0 0 0 1px rgba(0,59,203,.3);
}
.fri-tp-wa-meter-marker i{
  display:block;
  width:100%;
  height:100%;
}
.fri-tp-wa-wall-label{
  position:absolute;
  top:24px;
  transform:translateX(-50%);
  color:#7b8797;
  font-size:.48rem;
  line-height:1;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.fri-tp-wa-wall-label.is-low{
  top:36px;
}
.fri-tp-wa-wall-label.is-high-wall{
  color:#59697d;
}
.fri-tp-wa-wall-label.is-fri-wall{
  color:var(--fri-red,#F14024);
  font-weight:800;
}
.fri-tp-wa-meter-ends{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  display:flex;
  justify-content:space-between;
  color:#8a95a5;
  font-size:.5rem;
  line-height:1;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.fri-tp-wa-milestone{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  margin-top:.52rem;
  padding-top:.52rem;
  border-top:1px solid #e3e8f0;
  color:var(--fri-muted);
  font-size:.62rem;
}
.fri-tp-wa-milestone span{
  white-space:nowrap;
}
.fri-tp-wa-milestone strong{
  color:#174bbd;
  font-size:.64rem;
  font-weight:800;
  text-align:right;
}
.fri-tp-wa-index-stats>div{
  padding:.7rem 1.15rem;
}
.fri-tp-wa-index-stats span{
  font-size:.59rem;
}
.fri-tp-wa-index-stats strong{
  margin-top:.1rem;
  font-size:.9rem;
}
.fri-tp-wa-index-stats small{
  margin-top:.12rem;
  font-size:.61rem;
  line-height:1.28;
}
.fri-tp-wa-info{
  padding:.62rem 1.15rem;
  font-size:.62rem;
}
.fri-tp-wa-info summary{
  font-size:.64rem;
}
.fri-tp-wa-info p{
  max-width:760px;
  margin:.55rem 0 0;
  font-size:.66rem!important;
  line-height:1.48!important;
}
.fri-tp-wa-info-note{
  color:#7d8795;
}

@media(max-width:760px){
  .fri-tp-wa-index-section{
    margin-top:2.15rem;
    padding-top:1.45rem;
  }
  .fri-tp-wa-index-main{
    grid-template-columns:1fr;
    gap:.75rem;
    padding:.9rem .95rem .82rem;
  }
  .fri-tp-wa-index-score{
    font-size:2.85rem;
  }
  .fri-tp-wa-index-caption{
    margin-top:.3rem;
    font-size:.66rem;
  }
  .fri-tp-wa-index-scale{
    padding-top:.05rem;
  }
  .fri-tp-wa-meter-plot{
    padding-top:8px;
    padding-bottom:31px;
  }
  .fri-tp-wa-wall-label{
    font-size:.43rem;
  }
  .fri-tp-wa-milestone{
    margin-top:.4rem;
    padding-top:.45rem;
    font-size:.58rem;
  }
  .fri-tp-wa-milestone strong{
    font-size:.6rem;
  }
  .fri-tp-wa-index-stats{
    grid-template-columns:1fr 1fr;
  }
  .fri-tp-wa-index-stats>div{
    padding:.66rem .9rem;
  }
  .fri-tp-wa-index-stats>div+div{
    border-top:0;
    border-left:1px solid #dfe5ee;
  }
  .fri-tp-wa-index-stats span{
    font-size:.56rem;
  }
  .fri-tp-wa-index-stats strong{
    font-size:.82rem;
  }
  .fri-tp-wa-index-stats small{
    font-size:.56rem;
  }
  .fri-tp-wa-info{
    padding:.6rem .95rem;
  }
  .fri-tp-wa-info summary{
    font-size:.61rem;
  }
  .fri-tp-wa-info p{
    font-size:.64rem!important;
    line-height:1.45!important;
  }
}

@media(max-width:430px){
  .fri-tp-wa-index-main{
    padding:.86rem .86rem .78rem;
  }
  .fri-tp-wa-index-score{
    font-size:2.65rem;
  }
  .fri-tp-wa-wall-label{
    font-size:.4rem;
  }
  .fri-tp-wa-index-stats{
    grid-template-columns:1fr 1fr;
  }
  .fri-tp-wa-index-stats>div{
    padding:.62rem .78rem;
  }
  .fri-tp-wa-index-stats small{
    font-size:.53rem;
  }
}


/* ==========================================================
   v1.9.2 — relative FRÍ index research preview
   ========================================================== */

.fri-tp-relative-index-card .fri-tp-wa-index-main{
  grid-template-columns:minmax(210px,.72fr) minmax(0,1.28fr);
  gap:1.15rem;
}

.fri-tp-relative-index-card .fri-tp-wa-index-score{
  line-height:.88;
}

.fri-tp-relative-rank{
  margin-top:.5rem;
  color:var(--fri-primary);
  font-size:.82rem;
  line-height:1.25;
  font-weight:750;
}

.fri-tp-relative-rank span{
  color:var(--fri-muted);
  font-weight:500;
}

.fri-tp-relative-unavailable{
  margin-top:.55rem;
  color:var(--fri-text);
  font-size:1.28rem;
  line-height:1.1;
  font-weight:750;
}

.fri-tp-relative-meter{
  width:100%;
  padding:.2rem 0 .1rem;
}

.fri-tp-relative-track{
  position:relative;
  height:10px;
  margin:1.15rem .15rem 0;
  border-radius:999px;
  background:#E5EAF2;
}

.fri-tp-relative-fill{
  position:absolute;
  inset:0 auto 0 0;
  border-radius:999px;
  background:linear-gradient(90deg,#2357D8 0%,#003BCB 65%,#152B54 100%);
}

.fri-tp-relative-tick{
  position:absolute;
  top:-4px;
  width:1px;
  height:18px;
  background:#9EABBD;
  transform:translateX(-50%);
}

.fri-tp-relative-marker{
  position:absolute;
  top:50%;
  width:22px;
  height:22px;
  border:3px solid #fff;
  border-radius:50%;
  background:#003BCB;
  box-shadow:0 0 0 2px #AFC3FC;
  transform:translate(-50%,-50%);
  z-index:2;
}

.fri-tp-relative-marker i{display:none}

.fri-tp-relative-labels{
  position:relative;
  height:33px;
  margin-top:.55rem;
  color:#78869B;
  font-size:.56rem;
  line-height:1;
}

.fri-tp-relative-labels > span{
  position:absolute;
  top:0;
  min-width:34px;
  text-align:center;
  transform:translateX(-50%);
  white-space:nowrap;
}

.fri-tp-relative-labels > span:first-child{
  transform:none;
  text-align:left;
}

.fri-tp-relative-labels > span:last-child{
  transform:translateX(-100%);
  text-align:right;
}

.fri-tp-relative-labels b{
  display:block;
  color:#66758A;
  font-size:.6rem;
  font-weight:700;
}

.fri-tp-relative-labels small{
  display:block;
  margin-top:.22rem;
  color:#8B97A8;
  font-size:.5rem;
  font-weight:500;
}

.fri-tp-relative-index-card .fri-tp-wa-info p{
  font-size:.74rem !important;
  line-height:1.5 !important;
}

@media(max-width:760px){
  .fri-tp-relative-index-card .fri-tp-wa-index-main{
    grid-template-columns:1fr;
    gap:.55rem;
  }

  .fri-tp-relative-index-card .fri-tp-wa-index-scale{
    margin-top:.15rem;
  }

  .fri-tp-relative-index-card .fri-tp-wa-index-score{
    font-size:3.55rem !important;
  }

  .fri-tp-relative-rank{
    margin-top:.36rem;
    font-size:.77rem;
  }

  .fri-tp-relative-track{
    margin-top:.7rem;
  }

  .fri-tp-relative-labels{
    margin-bottom:.05rem;
  }

  .fri-tp-relative-index-card .fri-tp-wa-index-stats{
    grid-template-columns:1fr 1fr !important;
  }

  .fri-tp-relative-index-card .fri-tp-wa-index-stats>div{
    padding:.72rem .85rem !important;
  }

  .fri-tp-relative-index-card .fri-tp-wa-index-stats>div+div{
    border-top:0 !important;
    border-left:1px solid #dfe5ee !important;
  }

  .fri-tp-relative-index-card .fri-tp-wa-index-stats strong{
    font-size:.88rem !important;
  }

  .fri-tp-relative-index-card .fri-tp-wa-index-stats small{
    font-size:.58rem !important;
    line-height:1.32 !important;
  }

  .fri-tp-relative-index-card .fri-tp-wa-info p{
    font-size:.69rem !important;
    line-height:1.5 !important;
  }
}

@media(max-width:430px){
  .fri-tp-relative-labels small{
    display:none;
  }
  .fri-tp-relative-labels{
    height:18px;
  }
}


/* ==========================================================
   v1.9.3 — editorial FRÍ vísir, positive progression + pace
   ========================================================== */
.fri-tp-relative-index-editorial{
  background:#fff;
  border-color:#dfe5ee;
  box-shadow:none;
  overflow:hidden;
}
.fri-tp-index-editorial-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:2rem;
  padding:1.15rem 1.25rem .55rem;
}
.fri-tp-index-editorial-score{min-width:0}
.fri-tp-relative-index-editorial .fri-tp-wa-index-kicker{
  font-size:.62rem;
  letter-spacing:.055em;
}
.fri-tp-relative-index-editorial .fri-tp-wa-index-kicker span{
  margin-left:.38rem;
  padding:.13rem .38rem;
  border:1px solid #b9c8ee;
  border-radius:999px;
  background:transparent;
  color:#3158b7;
  font-size:.48rem;
  font-weight:700;
  letter-spacing:.035em;
}
.fri-tp-relative-index-editorial .fri-tp-wa-index-score{
  margin-top:.2rem;
  font-size:clamp(2.9rem,5vw,4.2rem);
  line-height:.9;
  letter-spacing:-.045em;
}
.fri-tp-relative-index-editorial .fri-tp-relative-rank{
  margin-top:.48rem;
  color:var(--fri-text);
  font-size:.75rem;
  line-height:1.35;
  font-weight:650;
}
.fri-tp-relative-index-editorial .fri-tp-wa-index-caption{
  margin-top:.22rem;
  color:var(--fri-muted);
  font-size:.61rem;
  line-height:1.4;
}
.fri-tp-index-progress-note{
  flex:0 0 auto;
  min-width:155px;
  padding-bottom:.08rem;
  text-align:right;
}
.fri-tp-index-progress-note>span{
  display:block;
  color:var(--fri-muted);
  font-size:.57rem;
  line-height:1.2;
}
.fri-tp-index-progress-note>strong{
  display:block;
  margin-top:.16rem;
  color:var(--fri-text);
  font-size:.98rem;
  line-height:1.15;
}
.fri-tp-index-progress-note.is-positive>strong{color:var(--fri-primary)}
.fri-tp-index-progress-note>small{
  display:block;
  margin-top:.12rem;
  color:var(--fri-muted);
  font-size:.55rem;
  line-height:1.25;
}
.fri-tp-relative-index-editorial .fri-tp-wa-index-scale{
  padding:.5rem 1.25rem .82rem;
}
.fri-tp-relative-index-editorial .fri-tp-relative-meter{padding:0}
.fri-tp-relative-index-editorial .fri-tp-relative-track{
  height:4px;
  margin:.5rem 0 0;
  border-radius:999px;
  background:#dfe5ee;
}
.fri-tp-relative-index-editorial .fri-tp-relative-fill{
  background:var(--fri-primary);
  border-radius:999px;
}
.fri-tp-relative-index-editorial .fri-tp-relative-tick{
  top:-4px;
  width:1px;
  height:12px;
  background:#aab5c6;
}
.fri-tp-relative-index-editorial .fri-tp-relative-marker{
  top:50%;
  width:10px;
  height:10px;
  border:2px solid #fff;
  background:var(--fri-primary);
  box-shadow:0 0 0 1px rgba(0,59,203,.28);
}
.fri-tp-relative-index-editorial .fri-tp-relative-labels{
  height:25px;
  margin-top:.48rem;
  font-size:.5rem;
}
.fri-tp-relative-index-editorial .fri-tp-relative-labels>span{min-width:38px}
.fri-tp-relative-index-editorial .fri-tp-relative-labels b{
  color:#69778b;
  font-size:.52rem;
  font-weight:650;
}
.fri-tp-relative-index-editorial .fri-tp-relative-labels small{
  margin-top:.16rem;
  color:#9aa4b2;
  font-size:.45rem;
}
.fri-tp-index-editorial-list{border-top:1px solid #e2e7ef}
.fri-tp-index-editorial-row{
  display:grid;
  grid-template-columns:minmax(135px,.8fr) minmax(0,1.2fr);
  gap:1rem;
  align-items:center;
  min-height:58px;
  padding:.72rem 1.25rem;
}
.fri-tp-index-editorial-row+.fri-tp-index-editorial-row{border-top:1px solid #e2e7ef}
.fri-tp-index-editorial-row>span{
  color:var(--fri-muted);
  font-size:.61rem;
  line-height:1.3;
}
.fri-tp-index-editorial-row>div{
  min-width:0;
  text-align:right;
}
.fri-tp-index-editorial-row strong{
  display:block;
  color:var(--fri-text);
  font-size:.82rem;
  line-height:1.25;
  font-weight:720;
}
.fri-tp-index-editorial-row small{
  display:block;
  margin-top:.12rem;
  color:var(--fri-muted);
  font-size:.56rem;
  line-height:1.3;
}
.fri-tp-index-editorial-row.is-wa strong{color:#273349}
.fri-tp-relative-index-editorial .fri-tp-wa-info{
  border-top:1px solid #e2e7ef;
  padding:.68rem 1.25rem;
  background:transparent;
}
.fri-tp-relative-index-editorial .fri-tp-wa-info summary{
  color:#3158b7;
  font-size:.61rem;
  font-weight:700;
}
.fri-tp-relative-index-editorial .fri-tp-wa-info p{
  max-width:760px;
  margin:.52rem 0 0;
  font-size:.64rem!important;
  line-height:1.52!important;
}
.fri-tp-result-pace{
  display:block;
  margin-top:.14rem;
  color:var(--fri-muted);
  font-size:.56rem;
  line-height:1.2;
  font-weight:560;
  white-space:nowrap;
}
.fri-tp-pb .fri-tp-result-pace{margin-top:.12rem}
.fri-tp-latest-race-result .fri-tp-result-pace{
  margin-top:.12rem;
  text-align:right;
}
.fri-tp-history-table .fri-tp-result-pace{margin-top:.1rem}

@media(max-width:760px){
  .fri-tp-index-editorial-head{
    align-items:flex-start;
    gap:.8rem;
    padding:1rem .95rem .48rem;
  }
  .fri-tp-relative-index-editorial .fri-tp-wa-index-score{font-size:3.05rem!important}
  .fri-tp-relative-index-editorial .fri-tp-relative-rank{
    margin-top:.4rem;
    font-size:.7rem;
  }
  .fri-tp-relative-index-editorial .fri-tp-wa-index-caption{font-size:.58rem}
  .fri-tp-index-progress-note{
    min-width:118px;
    padding-top:1.35rem;
  }
  .fri-tp-index-progress-note>strong{font-size:.82rem}
  .fri-tp-index-progress-note>small{font-size:.5rem}
  .fri-tp-relative-index-editorial .fri-tp-wa-index-scale{
    margin-top:0;
    padding:.45rem .95rem .7rem;
  }
  .fri-tp-index-editorial-row{
    grid-template-columns:minmax(115px,.8fr) minmax(0,1.2fr);
    min-height:54px;
    padding:.67rem .95rem;
  }
  .fri-tp-index-editorial-row>span{font-size:.57rem}
  .fri-tp-index-editorial-row strong{font-size:.75rem}
  .fri-tp-index-editorial-row small{font-size:.52rem}
  .fri-tp-relative-index-editorial .fri-tp-wa-info{padding:.62rem .95rem}
  .fri-tp-relative-index-editorial .fri-tp-wa-info p{font-size:.61rem!important}
}

@media(max-width:430px){
  .fri-tp-index-editorial-head{display:block}
  .fri-tp-index-progress-note{
    min-width:0;
    padding-top:.72rem;
    text-align:left;
  }
  .fri-tp-index-progress-note>span,
  .fri-tp-index-progress-note>strong,
  .fri-tp-index-progress-note>small{display:inline}
  .fri-tp-index-progress-note>strong{margin-left:.34rem}
  .fri-tp-index-progress-note>small{margin-left:.28rem}
  .fri-tp-relative-index-editorial .fri-tp-relative-labels small{display:block}
}



/* ==========================================================
   v1.10.0 — presentation design system
   One final, authoritative visual layer for the complete product.
   Principles: content first, consistent geometry, restrained color,
   predictable controls, progressive disclosure, FRÍ identity.
   ========================================================== */

.fri-tp-app{
  --fri-content-max:1180px;
  --fri-ui-border:#DFE5ED;
  --fri-ui-border-strong:#CED7E3;
  --fri-ui-surface:#FFFFFF;
  --fri-ui-subtle:#F7F9FC;
  --fri-ui-subtle-2:#F2F5F9;
  --fri-ui-radius:14px;
  --fri-ui-radius-sm:10px;
  --fri-ui-control-h:44px;
  --fri-ui-focus:0 0 0 3px rgba(0,59,203,.14);
  --fri-ui-motion:160ms cubic-bezier(.2,.75,.25,1);
  --fri-ui-section-gap:3.25rem;
  --fri-ui-section-pad:2rem;
  color:var(--fri-text);
}

/* ---------- One content rail ---------- */
.fri-tp-profile-head,
.fri-tp-tabs,
.fri-tp-summary-grid,
.fri-tp-wa-index-section,
.fri-tp-latest-race-wrap,
.fri-tp-tab-panel > .fri-tp-section,
.fri-tp-tab-panel > .fri-tp-section-no-border{
  width:min(100%,var(--fri-content-max));
  max-width:var(--fri-content-max);
  margin-left:auto;
  margin-right:auto;
}

.fri-tp-search-panel{
  width:min(100%,var(--fri-content-max));
  max-width:var(--fri-content-max);
  margin-left:auto;
  margin-right:auto;
}

/* ---------- Type hierarchy ---------- */
.fri-tp-eyebrow{
  gap:.55rem;
  margin-bottom:.5rem;
  font-size:.72rem;
  font-weight:650;
  letter-spacing:.075em;
}
.fri-tp-eyebrow::before{width:24px;flex-basis:24px;height:3px}
.fri-tp-profile h2,.fri-tp-search-panel h2{
  max-width:1050px;
  font-size:clamp(2.2rem,4.1vw,3.7rem);
  line-height:.98;
  letter-spacing:-.042em;
}
.fri-tp-section h3,
.fri-tp-latest-race-wrap h3,
.fri-tp-discovery-block h3,
.fri-tp-compare-section h3{
  font-size:clamp(1.55rem,2.25vw,2.15rem);
  line-height:1.04;
  letter-spacing:-.028em;
}
.fri-tp-intro,.fri-tp-section-intro{
  color:var(--fri-muted);
  line-height:1.5;
}

/* ---------- Profile header + top flow ---------- */
.fri-tp-profile-head{
  align-items:flex-end;
  padding-top:.35rem;
  padding-bottom:1.65rem;
}
.fri-tp-meta{color:var(--fri-muted);line-height:1.45}
.fri-tp-club-row{margin-top:.65rem}

/* ---------- Controls: one geometry ---------- */
.fri-tp-search-form input,
.fri-tp-compare-search input,
.fri-tp-event-picker select,
.fri-tp-search-form button,
.fri-tp-compare-search button,
.fri-tp-secondary{
  min-height:var(--fri-ui-control-h)!important;
  height:var(--fri-ui-control-h);
  border-radius:var(--fri-ui-radius-sm)!important;
  box-shadow:none!important;
  transition:background var(--fri-ui-motion),border-color var(--fri-ui-motion),color var(--fri-ui-motion),box-shadow var(--fri-ui-motion)!important;
}
.fri-tp-search-form input,
.fri-tp-compare-search input,
.fri-tp-event-picker select{
  border-color:var(--fri-ui-border)!important;
  background:#fff!important;
}
.fri-tp-search-form input:hover,
.fri-tp-compare-search input:hover,
.fri-tp-event-picker select:hover{border-color:var(--fri-ui-border-strong)!important}
.fri-tp-search-form input:focus,
.fri-tp-search-form input:focus-visible,
.fri-tp-compare-search input:focus,
.fri-tp-compare-search input:focus-visible,
.fri-tp-event-picker select:focus,
.fri-tp-event-picker select:focus-visible{
  border-color:var(--fri-primary)!important;
  box-shadow:var(--fri-ui-focus)!important;
  outline:none!important;
}
.fri-tp-search-form button,
.fri-tp-compare-search button{
  border:1px solid var(--fri-primary)!important;
  background:var(--fri-primary)!important;
  color:#fff!important;
  padding:0 1.15rem!important;
}
.fri-tp-search-form button:hover,
.fri-tp-compare-search button:hover{
  border-color:var(--fri-primary-dark)!important;
  background:var(--fri-primary-dark)!important;
  transform:none!important;
}
.fri-tp-secondary{
  padding:0 1rem!important;
  border:1px solid var(--fri-ui-border-strong)!important;
  background:#fff!important;
  color:var(--fri-primary)!important;
}
.fri-tp-secondary:hover{
  border-color:#AFC0DB!important;
  background:var(--fri-ui-subtle)!important;
  color:var(--fri-primary-dark)!important;
  transform:none!important;
}
.fri-tp-search-form button:focus-visible,
.fri-tp-compare-search button:focus-visible,
.fri-tp-secondary:focus-visible,
.fri-tp-text-button:focus-visible{
  outline:none!important;
  box-shadow:var(--fri-ui-focus)!important;
}

/* ---------- Tabs: one predictable primary navigation ---------- */
.fri-tp-tabs{
  gap:.32rem!important;
  margin-top:0!important;
  margin-bottom:2.2rem!important;
  padding:0 0 .95rem!important;
  border-bottom:1px solid var(--fri-ui-border)!important;
  overflow-x:auto;
  scrollbar-width:none;
}
.fri-tp-tabs button{
  min-height:42px!important;
  padding:.62rem .95rem!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#66748A!important;
  font-size:.82rem!important;
  font-weight:600!important;
  white-space:nowrap;
  transition:background var(--fri-ui-motion),color var(--fri-ui-motion)!important;
}
.fri-tp-tabs button:hover{background:var(--fri-ui-subtle)!important;color:var(--fri-text)!important}
.fri-tp-tabs button.is-active{
  background:var(--fri-primary)!important;
  color:#fff!important;
}
.fri-tp-tabs button:focus-visible{outline:none!important;box-shadow:var(--fri-ui-focus)!important}

/* ---------- Section rhythm ---------- */
.fri-tp-section,
.fri-tp-latest-race-wrap,
.fri-tp-wa-index-section{
  margin-top:var(--fri-ui-section-gap)!important;
  padding-top:var(--fri-ui-section-pad)!important;
  border-top:1px solid var(--fri-ui-border)!important;
}
.fri-tp-tab-panel > .fri-tp-section-no-border:first-child{
  margin-top:0!important;
  padding-top:0!important;
  border-top:0!important;
}
.fri-tp-section-head{gap:1.25rem;align-items:flex-end}
.fri-tp-section-head + *{margin-top:1.05rem}
.fri-tp-text-button{
  color:var(--fri-primary)!important;
  font-size:.78rem!important;
  font-weight:650!important;
  text-decoration:none!important;
}
.fri-tp-text-button:hover{color:var(--fri-primary-dark)!important;text-decoration:underline!important;text-underline-offset:3px}

/* ---------- Static surfaces use lines; cards only where they add meaning ---------- */
.fri-tp-search-card,
.fri-tp-mini-athlete-card,
.fri-tp-passport-card,
.fri-tp-latest-race-card,
.fri-tp-versus-head,
.fri-tp-meeting-score,
.fri-tp-stat-board,
.fri-tp-full-passport,
.fri-tp-race-dialog,
.fri-tp-relative-index-editorial{
  border-color:var(--fri-ui-border)!important;
  border-radius:var(--fri-ui-radius)!important;
  box-shadow:none!important;
  background:#fff!important;
}

/* Interactive cards stay stable; feedback comes from border/background, not jumping. */
.fri-tp-search-card,
.fri-tp-mini-athlete-card{
  transition:background var(--fri-ui-motion),border-color var(--fri-ui-motion),box-shadow var(--fri-ui-motion)!important;
}
.fri-tp-search-card:hover,
.fri-tp-mini-athlete-card:hover{
  transform:none!important;
  border-color:#B8C8DF!important;
  background:var(--fri-ui-subtle)!important;
  box-shadow:none!important;
}

/* ---------- Summary strip ---------- */
.fri-tp-summary-grid{
  gap:0!important;
  margin-top:0!important;
  margin-bottom:0!important;
  border-top:1px solid var(--fri-ui-border);
  border-bottom:1px solid var(--fri-ui-border);
}
.fri-tp-summary-card{
  min-height:94px!important;
  padding:1.15rem .95rem!important;
  border:0!important;
  border-right:1px solid var(--fri-ui-border)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.fri-tp-summary-card:last-child{border-right:0!important}
.fri-tp-summary-card strong{font-size:clamp(1.18rem,1.65vw,1.55rem)!important;letter-spacing:-.02em}
.fri-tp-summary-card span{margin-top:.28rem!important;color:var(--fri-muted)!important;font-size:.7rem!important}

/* ---------- FRÍ vísir: full-width module, restrained inner geometry ---------- */
.fri-tp-wa-index-section{max-width:var(--fri-content-max)!important}
.fri-tp-relative-index-editorial{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  overflow:hidden;
}
@media(min-width:980px){
  .fri-tp-index-editorial-head{
    grid-template-columns:minmax(0,1fr) 250px!important;
    gap:2rem!important;
    padding:1.25rem 1.35rem .65rem!important;
  }
  .fri-tp-index-progress-note{
    padding:.25rem 0 .25rem 1.25rem!important;
    border-left:1px solid var(--fri-ui-border)!important;
  }
  .fri-tp-relative-index-editorial .fri-tp-wa-index-scale{
    width:calc(100% - 285px)!important;
    max-width:860px!important;
    padding:.35rem 1.35rem .95rem!important;
  }
  .fri-tp-index-editorial-list{
    grid-template-columns:1fr 1fr!important;
  }
}
.fri-tp-relative-index-editorial .fri-tp-wa-index-kicker span{
  border-color:#BFCBED!important;
  background:transparent!important;
}
.fri-tp-relative-index-editorial .fri-tp-relative-track{background:#E1E6EE!important}
.fri-tp-relative-index-editorial .fri-tp-relative-marker{box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,59,203,.24)!important}
.fri-tp-index-editorial-row{border-color:var(--fri-ui-border)!important}
.fri-tp-relative-index-editorial .fri-tp-wa-info{border-color:var(--fri-ui-border)!important}

/* ---------- Latest race ---------- */
.fri-tp-latest-race-wrap{max-width:var(--fri-content-max)!important}
.fri-tp-latest-race-card{overflow:hidden}
.fri-tp-latest-race-card a,.fri-tp-latest-race-card button{transition:color var(--fri-ui-motion),background var(--fri-ui-motion)}

/* ---------- PB + career content ---------- */
.fri-tp-pb-grid{gap:0!important;border-top:1px solid var(--fri-ui-border);border-bottom:1px solid var(--fri-ui-border)}
.fri-tp-pb{
  min-height:126px!important;
  padding:1rem 1.1rem!important;
  border:0!important;
  border-right:1px solid var(--fri-ui-border)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
.fri-tp-pb:last-child{border-right:0!important}
.fri-tp-pb::before{width:4px!important}
.fri-tp-pb-time{letter-spacing:-.025em}
.fri-tp-insight-grid{
  gap:0!important;
  border:1px solid var(--fri-ui-border);
  border-radius:var(--fri-ui-radius);
  overflow:hidden;
}
.fri-tp-insight-card{
  border:0!important;
  border-right:1px solid var(--fri-ui-border)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
.fri-tp-insight-card:last-child{border-right:0!important}
.fri-tp-milestones{gap:.65rem!important}
.fri-tp-milestone{
  border-color:var(--fri-ui-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}

/* ---------- Recent/history: content-first tables ---------- */
.fri-tp-recent-list{
  border-top:1px solid var(--fri-ui-border)!important;
  border-bottom:1px solid var(--fri-ui-border)!important;
  border-radius:0!important;
  overflow:visible!important;
}
.fri-tp-recent-row{border-color:var(--fri-ui-border)!important;background:#fff!important}
.fri-tp-recent-row:hover{background:var(--fri-ui-subtle)!important}
.fri-tp-table-wrap,
.fri-tp-compare-table-wrap{
  border:1px solid var(--fri-ui-border)!important;
  border-radius:var(--fri-ui-radius)!important;
  box-shadow:none!important;
  overflow:auto;
}
.fri-tp-table thead th,
.fri-tp-compare-table thead th{
  background:var(--fri-ui-subtle)!important;
  color:#536176!important;
  border-color:var(--fri-ui-border)!important;
  font-size:.7rem!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
.fri-tp-table td,.fri-tp-compare-table td{border-color:var(--fri-ui-border)!important}
.fri-tp-table tbody tr:hover td,.fri-tp-compare-table tbody tr:hover td{background:#FAFBFD!important}

/* ---------- Progression controls + chart ---------- */
.fri-tp-compare-mode{
  min-height:var(--fri-ui-control-h)!important;
  padding:3px!important;
  border:1px solid var(--fri-ui-border)!important;
  border-radius:12px!important;
  background:var(--fri-ui-subtle)!important;
  box-shadow:none!important;
}
.fri-tp-compare-mode button{
  min-height:36px!important;
  padding:.45rem .72rem!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#657388!important;
  transition:background var(--fri-ui-motion),color var(--fri-ui-motion)!important;
}
.fri-tp-compare-mode button:hover{background:#fff!important;color:var(--fri-text)!important}
.fri-tp-compare-mode button.is-active{background:#fff!important;color:var(--fri-primary)!important;box-shadow:0 1px 2px rgba(15,23,42,.06)!important}
.fri-tp-chart{
  margin-top:1rem!important;
  padding:1rem 1rem .8rem!important;
  border:1px solid var(--fri-ui-border)!important;
  border-radius:var(--fri-ui-radius)!important;
  background:#fff!important;
  overflow:auto;
}
.fri-tp-chart-gridline{stroke:#E7EBF1!important}

/* ---------- Passport ---------- */
.fri-tp-passport-hero{
  gap:0!important;
  border:1px solid var(--fri-ui-border)!important;
  border-radius:var(--fri-ui-radius)!important;
  overflow:hidden;
  background:#fff!important;
}
.fri-tp-passport-number{
  padding:1rem 1.1rem!important;
  border-right:1px solid var(--fri-ui-border)!important;
  background:#fff!important;
}
.fri-tp-passport-number:last-child{border-right:0!important}
.fri-tp-passport-grid{gap:.75rem!important}
.fri-tp-passport-card{padding:1.05rem!important}
.fri-tp-chip-list span,.fri-tp-event-count-chip{
  border-color:var(--fri-ui-border)!important;
  background:var(--fri-ui-subtle)!important;
}
.fri-tp-badge-section{margin-top:var(--fri-ui-section-gap)!important}
.fri-tp-badge{
  border-color:var(--fri-ui-border)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.fri-tp-full-passport{margin-top:1.25rem!important}

/* ---------- Comparison ---------- */
.fri-tp-compare-search{max-width:720px!important}
.fri-tp-versus-head,.fri-tp-meeting-score,.fri-tp-stat-board{border-color:var(--fri-ui-border)!important}
.fri-tp-stat-board-row{border-color:var(--fri-ui-border)!important}
.fri-tp-stat-value{border-radius:9px!important}
.fri-tp-compare-section{
  margin-top:var(--fri-ui-section-gap)!important;
  padding-top:var(--fri-ui-section-pad)!important;
  border-color:var(--fri-ui-border)!important;
}

/* ---------- Race modal ---------- */
.fri-tp-race-overlay{
  background:rgba(15,23,42,.42)!important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.fri-tp-race-dialog{
  border-color:rgba(255,255,255,.65)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.22)!important;
}

/* ---------- Feedback + motion ---------- */
.fri-tp-status{font-size:.78rem!important;color:var(--fri-muted)!important}
.fri-tp-tab-panel.is-active{animation:friTpPanelIn 180ms ease-out both}
@keyframes friTpPanelIn{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:none}}

@media(max-width:1050px){
  .fri-tp-summary-card:nth-child(3n){border-right:0!important}
  .fri-tp-summary-card:nth-child(n+4){border-top:1px solid var(--fri-ui-border)!important}
  .fri-tp-insight-card{border-right:0!important;border-bottom:1px solid var(--fri-ui-border)!important}
  .fri-tp-insight-card:last-child{border-bottom:0!important}
}

@media(max-width:760px){
  .fri-tp-app{--fri-ui-section-gap:2.35rem;--fri-ui-section-pad:1.45rem}
  .fri-tp-profile-head{padding-bottom:1.15rem}
  .fri-tp-tabs{margin-bottom:1.65rem!important;padding-bottom:.75rem!important}
  .fri-tp-tabs button{min-height:40px!important;padding:.58rem .82rem!important}
  .fri-tp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fri-tp-summary-card{min-height:86px!important;padding:.95rem .8rem!important;border-right:1px solid var(--fri-ui-border)!important}
  .fri-tp-summary-card:nth-child(2n){border-right:0!important}
  .fri-tp-summary-card:nth-child(n+3){border-top:1px solid var(--fri-ui-border)!important}
  .fri-tp-index-editorial-head{padding:.95rem .9rem .45rem!important}
  .fri-tp-relative-index-editorial .fri-tp-wa-index-scale{width:100%!important;max-width:none!important;padding:.4rem .9rem .7rem!important}
  .fri-tp-index-editorial-row{padding:.68rem .9rem!important}
  .fri-tp-pb-grid{grid-template-columns:1fr!important}
  .fri-tp-pb{min-height:0!important;border-right:0!important;border-bottom:1px solid var(--fri-ui-border)!important;padding:.9rem 1rem!important}
  .fri-tp-pb:last-child{border-bottom:0!important}
  .fri-tp-passport-hero{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fri-tp-passport-number{border-bottom:1px solid var(--fri-ui-border)!important}
  .fri-tp-passport-number:nth-child(2n){border-right:0!important}
  .fri-tp-passport-number:nth-last-child(-n+2){border-bottom:0!important}
  .fri-tp-chart{padding:.75rem .7rem .6rem!important}
}

@media(max-width:520px){
  .fri-tp-profile h2,.fri-tp-search-panel h2{font-size:2.35rem}
  .fri-tp-section h3,.fri-tp-latest-race-wrap h3{font-size:1.72rem}
  .fri-tp-section-head{align-items:flex-start!important}
  .fri-tp-progress-controls,.fri-tp-progression-controls{align-items:stretch!important}
  .fri-tp-passport-grid{gap:.65rem!important}
  .fri-tp-badge-section .fri-tp-badges,.fri-tp-all-badge-grid{gap:.55rem!important}
}

@media(prefers-reduced-motion:reduce){
  .fri-tp-tab-panel.is-active{animation:none!important}
}


/* ==========================================================
   v1.10.3 — presentation polish
   Lean FRÍ index, clear navigation, stable hover states,
   compact progression controls and FRÍ-style goal tables.
   ========================================================== */

/* Profile composition */
.fri-tp-profile-head{
  width:min(100%,var(--fri-content-max))!important;
  max-width:var(--fri-content-max)!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 340px!important;
  gap:2.4rem!important;
  align-items:center!important;
  padding:.45rem 0 1.35rem!important;
}
.fri-tp-profile-identity{min-width:0}
.fri-tp-back-link{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  margin:0 0 .85rem;
  padding:0;
  border:0;
  background:transparent;
  color:#66758A;
  font:inherit;
  font-size:.68rem;
  font-weight:650;
  cursor:pointer;
}
.fri-tp-back-link:hover{color:var(--fri-primary)}
.fri-tp-back-link:focus-visible{outline:none;color:var(--fri-primary);text-decoration:underline;text-underline-offset:3px}

/* FRÍ index: content, not a card */
.fri-tp-header-index,
.fri-tp-header-index>div{width:100%;margin:0!important;padding:0!important}
.fri-tp-index-lean{width:100%;padding:.15rem 0;background:transparent}
.fri-tp-index-lean-top{display:flex;justify-content:space-between;align-items:flex-end;gap:1.15rem}
.fri-tp-index-lean .fri-tp-wa-index-kicker{font-size:.56rem;letter-spacing:.045em}
.fri-tp-index-lean .fri-tp-wa-index-kicker span{
  display:inline-block;margin-left:.32rem;padding:.08rem .3rem;border:1px solid #C3CEE2;border-radius:999px;
  color:#6680BE;font-size:.4rem;letter-spacing:.03em;vertical-align:middle
}
.fri-tp-index-lean .fri-tp-wa-index-score{margin-top:.08rem;font-size:3.05rem!important;line-height:.88;letter-spacing:-.045em}
.fri-tp-index-lean .fri-tp-relative-unavailable{margin-top:.25rem;font-size:.9rem;font-weight:700}
.fri-tp-index-progress-note{min-width:115px;padding:0 0 .12rem .7rem;border-left:1px solid var(--fri-ui-border);text-align:left}
.fri-tp-index-progress-note>span{display:block;color:var(--fri-muted);font-size:.47rem}
.fri-tp-index-progress-note>strong{display:block;margin-top:.08rem;color:var(--fri-primary);font-size:.78rem;line-height:1.1}
.fri-tp-index-progress-note>small{display:block;margin-top:.06rem;color:var(--fri-muted);font-size:.43rem;line-height:1.2}
.fri-tp-index-lean .fri-tp-wa-index-scale{padding:.42rem 0 .2rem!important}
.fri-tp-index-lean .fri-tp-relative-track{height:3px!important;margin:.18rem 0 0!important;background:#DFE5EE!important}
.fri-tp-index-lean .fri-tp-relative-fill{background:var(--fri-primary)!important}
.fri-tp-index-lean .fri-tp-relative-tick{top:-3px!important;height:9px!important;background:#9DAABD!important}
.fri-tp-index-lean .fri-tp-relative-marker{width:9px!important;height:9px!important;border:2px solid #fff!important;box-shadow:0 0 0 1px rgba(0,59,203,.28)!important}
.fri-tp-index-lean .fri-tp-relative-labels{height:16px!important;margin-top:.28rem!important}
.fri-tp-index-lean .fri-tp-relative-labels b{font-size:.42rem!important;color:#6A788C!important}
.fri-tp-index-lean .fri-tp-relative-labels small{display:none!important}
.fri-tp-index-lean-footer{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-top:.15rem;padding-top:.5rem;border-top:1px solid var(--fri-ui-border)}
.fri-tp-index-lean-career{min-width:0;display:grid;grid-template-columns:auto auto;column-gap:.42rem;align-items:baseline}
.fri-tp-index-lean-career>span{color:var(--fri-muted);font-size:.45rem}
.fri-tp-index-lean-career>strong{font-size:.62rem;color:var(--fri-text)}
.fri-tp-index-lean-career>small{grid-column:1/-1;margin-top:.05rem;color:var(--fri-muted);font-size:.42rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fri-tp-index-lean-info{flex:0 0 auto}
.fri-tp-index-lean-info summary{color:#66758A;font-size:.46rem;font-weight:650;cursor:pointer;white-space:nowrap}
.fri-tp-index-lean-info p{max-width:330px;margin:.4rem 0 0;color:var(--fri-muted);font-size:.52rem;line-height:1.45}

/* Tabs */
.fri-tp-tabs-row{width:min(100%,var(--fri-content-max));max-width:var(--fri-content-max);margin:0 auto 2rem;border-bottom:1px solid var(--fri-ui-border)}
.fri-tp-tabs-row .fri-tp-tabs{width:100%!important;max-width:none!important;margin:0!important;padding:0 0 .85rem!important;border:0!important}

/* Summary follows header/tabs naturally */
.fri-tp-tab-panel[data-fri-tp-panel="overview"]>.fri-tp-summary-grid{width:min(100%,var(--fri-content-max))!important;max-width:var(--fri-content-max)!important;margin:0 auto!important}
.fri-tp-tab-panel[data-fri-tp-panel="overview"]>.fri-tp-latest-race-wrap{margin-top:1.9rem!important;padding-top:1.45rem!important}

/* Search result hover: one rule, no white-on-white conflict */
.fri-tp-search-card,
.fri-tp-compare-search-results .fri-tp-search-card{transition:background var(--fri-ui-motion),border-color var(--fri-ui-motion),color var(--fri-ui-motion)!important}
.fri-tp-search-card:hover,
.fri-tp-search-card:focus-visible,
.fri-tp-compare-search-results .fri-tp-search-card:hover,
.fri-tp-compare-search-results .fri-tp-search-card:focus-visible{
  background:var(--fri-primary)!important;
  border-color:var(--fri-primary)!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
  outline:none!important;
}
.fri-tp-search-card:hover *,
.fri-tp-search-card:focus-visible *,
.fri-tp-compare-search-results .fri-tp-search-card:hover *,
.fri-tp-compare-search-results .fri-tp-search-card:focus-visible *{color:#fff!important}

/* Progression controls: text must fit, no over-sized select labels */
.fri-tp-progression-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}
.fri-tp-progression-controls .fri-tp-compare-mode{flex:0 0 auto;min-height:40px!important}
.fri-tp-progression-controls .fri-tp-compare-mode button{min-height:32px!important;padding:.35rem .62rem!important;font-size:.66rem!important;white-space:nowrap}
.fri-tp-progression-controls .fri-tp-event-picker{flex:0 1 auto;min-width:0!important;width:auto!important}
.fri-tp-progression-controls .fri-tp-event-picker>span{display:block;margin-bottom:.24rem;font-size:.5rem!important;line-height:1;color:var(--fri-muted);font-weight:600}
.fri-tp-progression-controls .fri-tp-event-picker select{
  width:auto!important;min-width:108px;max-width:150px;height:40px!important;min-height:40px!important;
  padding:.38rem 1.8rem .38rem .65rem!important;font-size:.66rem!important;line-height:1.1!important;text-overflow:ellipsis;white-space:nowrap
}
.fri-tp-progression-event-picker select{min-width:126px!important;max-width:165px!important}

@media(max-width:980px){
  .fri-tp-profile-head{grid-template-columns:minmax(0,1fr) 310px!important;gap:1.4rem!important}
}

@media(max-width:760px){
  .fri-tp-profile-head{display:block!important;padding:.2rem 0 1rem!important}
  .fri-tp-back-link{margin-bottom:.75rem;font-size:.66rem}
  .fri-tp-profile-head .fri-tp-wa-index-section{margin-top:.95rem!important}
  .fri-tp-index-lean{padding:.1rem 0 .15rem}
  .fri-tp-index-lean-top{align-items:flex-end}
  .fri-tp-index-lean .fri-tp-wa-index-score{font-size:3.1rem!important}
  .fri-tp-index-progress-note{min-width:120px;padding-left:.72rem}
  .fri-tp-index-lean .fri-tp-wa-index-scale{padding:.36rem 0 .18rem!important}
  .fri-tp-index-lean-footer{margin-top:.1rem;padding-top:.45rem}
  .fri-tp-tabs-row{margin-bottom:1.45rem}
  .fri-tp-tabs-row .fri-tp-tabs{padding-bottom:.72rem!important}
  .fri-tp-progression-controls{width:100%;justify-content:flex-start;align-items:flex-end;gap:.45rem}
  .fri-tp-progression-controls .fri-tp-compare-mode{width:100%;display:grid!important;grid-template-columns:repeat(3,1fr)}
  .fri-tp-progression-controls .fri-tp-compare-mode button{width:100%;padding:.32rem .35rem!important;font-size:.63rem!important}
  .fri-tp-progression-controls .fri-tp-event-picker{flex:1 1 calc(50% - .25rem);min-width:0!important}
  .fri-tp-progression-controls .fri-tp-event-picker select{width:100%!important;max-width:none!important;min-width:0!important;font-size:.62rem!important;padding-left:.58rem!important}
  .fri-tp-goal-table th:last-child,.fri-tp-goal-table td:last-child{width:34%}
  .fri-tp-goal-table td strong{font-size:.65rem}
  .fri-tp-goal-table td small{font-size:.51rem}
}

@media(max-width:430px){
  .fri-tp-index-lean .fri-tp-wa-index-score{font-size:2.85rem!important}
  .fri-tp-index-progress-note{min-width:112px}
  .fri-tp-index-lean-career>small{max-width:220px}
}


/* ==========================================================
   v1.10.4 — PRESENTATION READY
   Final visual alignment for FRÍ Hlauparar.
   ========================================================== */

/* ---------- Summary strip: tighter and cleaner ---------- */
.fri-tp-summary-grid{
  margin-top:0!important;
  margin-bottom:0!important;
}

.fri-tp-summary-card{
  min-height:82px!important;
  padding:.9rem .78rem!important;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
}

.fri-tp-summary-card strong{
  font-size:clamp(1.08rem,1.55vw,1.42rem)!important;
  line-height:1.02!important;
}

.fri-tp-summary-card span{
  margin-top:.24rem!important;
  font-size:.66rem!important;
}

/* ---------- Latest race: same editorial language as PBs ---------- */
.fri-tp-latest-race-wrap{
  margin-top:2rem!important;
  padding-top:1.55rem!important;
}

.fri-tp-latest-race-card{
  position:relative;
  overflow:hidden!important;
  border:0!important;
  border-top:1px solid var(--fri-ui-border)!important;
  border-bottom:1px solid var(--fri-ui-border)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}

.fri-tp-latest-race-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:var(--fri-primary);
}

.fri-tp-latest-race-main{
  padding:1rem 1rem .9rem 1.2rem!important;
  gap:1.4rem!important;
}

.fri-tp-latest-race-title{
  font-size:1rem!important;
  line-height:1.2!important;
}

.fri-tp-latest-race-meta{
  margin-top:.28rem!important;
  font-size:.67rem!important;
}

.fri-tp-latest-race-story{
  margin-top:.38rem!important;
  font-size:.64rem!important;
}

.fri-tp-latest-race-result{
  min-width:120px!important;
}

.fri-tp-latest-race-result strong{
  font-size:1.55rem!important;
  line-height:.95!important;
}

.fri-tp-latest-stats{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  border-top:1px solid var(--fri-ui-border)!important;
  background:#fff!important;
}

.fri-tp-latest-stat{
  min-height:58px!important;
  padding:.7rem .9rem!important;
  border:0!important;
  border-right:1px solid var(--fri-ui-border)!important;
  background:transparent!important;
}

.fri-tp-latest-stat:last-child{
  border-right:0!important;
}

.fri-tp-latest-stat span{
  font-size:.58rem!important;
}

.fri-tp-latest-stat strong{
  margin-top:.14rem!important;
  font-size:.82rem!important;
}

.fri-tp-latest-history-link{
  width:100%!important;
  margin:0!important;
  padding:.72rem 1rem!important;
  border-top:1px solid var(--fri-ui-border)!important;
  text-align:right!important;
}

/* ---------- Registered results: restore recognisable FRÍ table ---------- */
.fri-tp-table-wrap{
  margin-top:1rem!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:auto!important;
  background:#fff!important;
}

.fri-tp-table{
  min-width:820px!important;
}

.fri-tp-table thead th{
  padding:.78rem .72rem!important;
  border:0!important;
  background:var(--fri-primary)!important;
  color:#fff!important;
  font-size:.62rem!important;
  font-weight:650!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
}

.fri-tp-table tbody td{
  padding:.82rem .72rem!important;
  border-bottom:1px solid #DDE2E9!important;
  background:#fff!important;
  color:#45566E!important;
  font-size:.78rem!important;
  vertical-align:top!important;
}

.fri-tp-table tbody tr:hover td{
  background:#F4F7FC!important;
}

.fri-tp-table tbody td strong{
  color:var(--fri-text)!important;
}

.fri-tp-history-tools{
  align-items:flex-end!important;
  gap:.55rem!important;
}

.fri-tp-history-tools .fri-tp-event-picker select{
  height:40px!important;
  min-height:40px!important;
  font-size:.68rem!important;
}

/* ---------- Passport: restore the motivating visual layout ---------- */
.fri-tp-full-passport{
  margin-top:1.25rem!important;
  padding:1.1rem!important;
  border:1px solid var(--fri-ui-border)!important;
  border-radius:var(--fri-ui-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
}

.fri-tp-full-passport-head{
  gap:1rem!important;
}

.fri-tp-full-passport-list{
  gap:.45rem!important;
}

.fri-tp-full-passport-item{
  min-height:58px!important;
  border-color:#DDE4EE!important;
  border-radius:10px!important;
  background:#fff!important;
}

.fri-tp-full-passport-item.is-done{
  border-color:#C8D5F7!important;
  background:#F6F8FE!important;
}

.fri-tp-next-grid{
  display:grid!important;
}

.fri-tp-next-milestones{
  margin-top:1.5rem!important;
}

/* ---------- Search/compare result hover: explicit theme-proof state ---------- */
.fri-tp-app .fri-tp-search-card:hover,
.fri-tp-app .fri-tp-search-card:focus-visible,
.fri-tp-app .fri-tp-compare-search-results .fri-tp-search-card:hover,
.fri-tp-app .fri-tp-compare-search-results .fri-tp-search-card:focus-visible{
  opacity:1!important;
  background:#003BCB!important;
  border-color:#003BCB!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.fri-tp-app .fri-tp-search-card:hover *,
.fri-tp-app .fri-tp-search-card:focus-visible *,
.fri-tp-app .fri-tp-compare-search-results .fri-tp-search-card:hover *,
.fri-tp-app .fri-tp-compare-search-results .fri-tp-search-card:focus-visible *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* ---------- Progression controls: presentation-safe sizing ---------- */
.fri-tp-progression-controls{
  gap:.5rem!important;
}

.fri-tp-progression-controls .fri-tp-compare-mode{
  min-height:39px!important;
}

.fri-tp-progression-controls .fri-tp-compare-mode button{
  min-height:31px!important;
  padding:.32rem .55rem!important;
  font-size:.62rem!important;
  line-height:1!important;
}

.fri-tp-progression-controls .fri-tp-event-picker>span{
  font-size:.47rem!important;
  margin-bottom:.22rem!important;
}

.fri-tp-progression-controls .fri-tp-event-picker select{
  height:39px!important;
  min-height:39px!important;
  min-width:104px!important;
  max-width:172px!important;
  padding:.32rem 1.7rem .32rem .58rem!important;
  font-size:.62rem!important;
  line-height:1!important;
}

.fri-tp-progression-event-picker select{
  min-width:120px!important;
  max-width:180px!important;
}

/* ---------- Comparison/table language alignment ---------- */
.fri-tp-compare-table thead th{
  background:var(--fri-primary)!important;
  color:#fff!important;
  border-color:var(--fri-primary)!important;
}

.fri-tp-compare-table tbody tr:hover td{
  background:#F4F7FC!important;
}

/* ---------- Mobile ---------- */
@media(max-width:760px){
  .fri-tp-profile-head{
    display:block!important;
    padding:.15rem 0 1rem!important;
  }

  .fri-tp-header-index{
    margin-top:1rem!important;
    padding:1rem 0 0!important;
    border-left:0!important;
    border-top:1px solid var(--fri-ui-border)!important;
  }

  .fri-tp-index-lean .fri-tp-wa-index-score{
    font-size:3.15rem!important;
  }

  .fri-tp-summary-card{
    min-height:76px!important;
    padding:.75rem .68rem!important;
  }

  .fri-tp-summary-card strong{
    font-size:1.08rem!important;
  }

  .fri-tp-summary-card span{
    font-size:.62rem!important;
  }

  .fri-tp-latest-race-main{
    align-items:flex-start!important;
    padding:.9rem .85rem .8rem 1rem!important;
  }

  .fri-tp-latest-race-result strong{
    font-size:1.4rem!important;
  }

  .fri-tp-latest-stats{
    grid-template-columns:1fr!important;
  }

  .fri-tp-latest-stat{
    min-height:0!important;
    padding:.62rem .85rem!important;
    border-right:0!important;
    border-bottom:1px solid var(--fri-ui-border)!important;
  }

  .fri-tp-latest-stat:last-child{
    border-bottom:0!important;
  }

  .fri-tp-latest-history-link{
    padding:.68rem .85rem!important;
  }

  .fri-tp-history-tools{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto 1fr 1fr!important;
    gap:.45rem!important;
  }

  .fri-tp-history-count{
    align-self:end!important;
    padding-bottom:.55rem!important;
  }

  .fri-tp-history-tools .fri-tp-event-picker{
    min-width:0!important;
    width:100%!important;
  }

  .fri-tp-history-tools .fri-tp-event-picker select{
    width:100%!important;
    min-width:0!important;
    font-size:.62rem!important;
  }

  .fri-tp-progression-controls .fri-tp-event-picker select{
    max-width:none!important;
  }
}

@media(max-width:480px){
  .fri-tp-index-progress-note{
    min-width:108px!important;
  }

  .fri-tp-index-progress-note>strong{
    font-size:.76rem!important;
  }

  .fri-tp-index-lean-career>small{
    max-width:250px!important;
  }

  .fri-tp-history-tools{
    grid-template-columns:1fr 1fr!important;
  }

  .fri-tp-history-count{
    grid-column:1/-1!important;
    padding-bottom:0!important;
  }
}


/* ==========================================================
   v1.10.8 — FINAL HIERARCHY + WA FILTERS
   Less spreadsheet, stronger athlete identity.
   ========================================================== */

/* Search utility */
.fri-tp-profile-back-row{width:min(100%,var(--fri-content-max));max-width:var(--fri-content-max);margin:0 auto 2.35rem}
.fri-tp-profile-back-row .fri-tp-new-search-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.42rem!important;min-height:40px!important;padding:.5rem .9rem!important;border:1.5px solid var(--fri-primary)!important;border-radius:999px!important;background:#fff!important;color:var(--fri-primary)!important;font:inherit!important;font-size:.7rem!important;line-height:1!important;font-weight:680!important;cursor:pointer!important;box-shadow:none!important}
.fri-tp-profile-back-row .fri-tp-new-search-pill svg{width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important}
.fri-tp-profile-back-row .fri-tp-new-search-pill:hover,.fri-tp-profile-back-row .fri-tp-new-search-pill:focus-visible{background:var(--fri-primary)!important;color:#fff!important}

/* Athlete hero */
.fri-tp-profile-head.fri-tp-profile-hero-card{position:relative!important;width:min(100%,var(--fri-content-max))!important;max-width:var(--fri-content-max)!important;margin:0 auto 1rem!important;padding:1.25rem 1.5rem 1.05rem!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,390px)!important;column-gap:9.2rem!important;align-items:center!important;border:1px solid #E5EAF1!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
.fri-tp-profile-hero-card .fri-tp-profile-identity{min-width:0!important;padding:0!important}
.fri-tp-profile-hero-card .fri-tp-profile-identity h2{margin:0 0 .35rem!important;max-width:610px!important}
.fri-tp-profile-hero-card .fri-tp-profile-avatar{position:absolute!important;z-index:5!important;top:0!important;left:50%!important;width:116px!important;height:116px!important;margin:0!important;transform:translate(-50%,-48%)!important;border-radius:999px!important;background:#fff!important;border:5px solid #fff!important;box-shadow:0 0 0 2px #D8E1F2!important;overflow:hidden!important}
.fri-tp-profile-hero-card .fri-tp-profile-avatar svg{display:block!important;width:100%!important;height:100%!important}
.fri-tp-profile-hero-card .fri-tp-profile-avatar>svg>circle:first-child{fill:#F3F6FA!important}
.fri-tp-profile-hero-card .fri-tp-profile-avatar-head,.fri-tp-profile-hero-card .fri-tp-profile-avatar-body{fill:#7D8BA0!important}

/* FRÍ performance: one number, one scale, two supporting facts */
.fri-tp-profile-hero-card .fri-tp-header-index,.fri-tp-profile-hero-card .fri-tp-header-index>div,.fri-tp-profile-hero-card .fri-tp-index-lean{width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-top{display:flex!important;justify-content:flex-end!important;align-items:flex-end!important;min-height:58px!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-score{text-align:right!important;width:100%!important}
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-wa-index-score{margin:0!important;font-size:4.35rem!important;line-height:.78!important;letter-spacing:-.055em!important;font-weight:760!important;color:var(--fri-text)!important;text-align:right!important}
.fri-tp-profile-hero-card .fri-tp-relative-unavailable{margin:0 0 .25rem auto!important;max-width:245px!important;font-size:1.02rem!important;line-height:1.18!important;font-weight:720!important;color:var(--fri-text)!important;text-align:right!important}
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-wa-index-scale{width:100%!important;padding:.58rem 0 .22rem!important}
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-track{height:3px!important;margin:.08rem 0 0!important}
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-marker{width:9px!important;height:9px!important}
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-labels{height:14px!important;margin-top:.26rem!important}
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-labels b{font-size:.42rem!important}
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-labels small{display:none!important}

.fri-tp-profile-hero-card .fri-tp-index-lean-metrics{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1.2rem!important;align-items:start!important;margin-top:.34rem!important;padding-top:.45rem!important}
.fri-tp-profile-hero-card .fri-tp-index-progress-note{min-width:0!important;padding:0!important;border:0!important;text-align:left!important}
.fri-tp-profile-hero-card .fri-tp-index-progress-note>span,.fri-tp-profile-hero-card .fri-tp-index-lean-career>span{display:block!important;color:var(--fri-muted)!important;font-size:.52rem!important;line-height:1.12!important}
.fri-tp-profile-hero-card .fri-tp-index-progress-note>strong{display:block!important;margin-top:.11rem!important;color:var(--fri-primary)!important;font-size:.9rem!important;line-height:1.05!important;font-weight:750!important}
.fri-tp-profile-hero-card .fri-tp-index-progress-note>small{display:block!important;margin-top:.08rem!important;color:var(--fri-muted)!important;font-size:.47rem!important;line-height:1.18!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-career{min-width:0!important;text-align:right!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{display:block!important;margin-top:.11rem!important;color:var(--fri-text)!important;font-size:.9rem!important;line-height:1.05!important;font-weight:750!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-career>small{display:block!important;margin-top:.08rem!important;color:var(--fri-muted)!important;font-size:.47rem!important;line-height:1.18!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

.fri-tp-profile-hero-card .fri-tp-index-lean-info{width:100%!important;margin:.34rem 0 0!important;padding:.28rem 0 0!important;border-top:0!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-info summary{width:max-content!important;margin-left:auto!important;color:#66758A!important;font-size:.52rem!important;line-height:1.2!important;font-weight:650!important;cursor:pointer!important;white-space:nowrap!important;list-style:none!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-info summary::-webkit-details-marker{display:none!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-info summary::before{content:'›';display:inline-block;margin-right:.28rem;color:var(--fri-primary);font-size:.72rem;line-height:.7;transition:transform var(--fri-ui-motion)}
.fri-tp-profile-hero-card .fri-tp-index-lean-info[open] summary::before{transform:rotate(90deg)}
.fri-tp-profile-hero-card .fri-tp-index-lean-explainer{margin:.42rem 0 0!important;padding:.48rem .58rem!important;border-radius:8px!important;background:#F7F9FC!important}
.fri-tp-profile-hero-card .fri-tp-index-lean-explainer p{margin:0!important;color:#607089!important;font-size:.55rem!important;line-height:1.45!important}

/* Tabs: active state is enough; remove the spreadsheet rule beneath. */
.fri-tp-tabs-row{margin-top:0!important;margin-bottom:1.65rem!important;border-bottom:0!important}
.fri-tp-tabs-row .fri-tp-tabs{padding-bottom:.25rem!important}

/* Summary: six facts separated by whitespace, not cell borders. */
.fri-tp-tab-panel[data-fri-tp-panel='overview']>.fri-tp-summary-grid{gap:1.15rem!important;border:0!important;background:transparent!important;padding:.15rem 0 .2rem!important}
.fri-tp-summary-card{min-height:72px!important;padding:.78rem .35rem!important;border:0!important;background:transparent!important;box-shadow:none!important}
.fri-tp-summary-card+.fri-tp-summary-card{border-left:0!important}
.fri-tp-summary-card:nth-child(n){border-top:0!important;border-right:0!important}
.fri-tp-summary-card strong{font-size:clamp(1.08rem,1.5vw,1.42rem)!important;line-height:1.04!important}
.fri-tp-summary-card span{margin-top:.24rem!important;font-size:.64rem!important}

/* Latest race: one editorial object, not a table. */
.fri-tp-latest-race-wrap{margin-top:1.75rem!important;padding-top:1.25rem!important}
.fri-tp-latest-race-card{border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.fri-tp-latest-race-card::before{width:4px!important}
.fri-tp-latest-race-main{padding:1rem .9rem .82rem 1.15rem!important}
.fri-tp-latest-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.6rem!important;padding:.18rem .9rem .7rem 1.15rem!important;border-top:0!important;background:transparent!important}
.fri-tp-latest-stat{min-height:0!important;padding:.55rem .65rem!important;border:0!important;border-radius:8px!important;background:#F7F9FC!important}
.fri-tp-latest-stat:last-child{border:0!important}
.fri-tp-latest-history-link{padding:.52rem .9rem .72rem!important;border-top:0!important}

/* WA/FRÍ/time controls share the same geometry. */
.fri-tp-progression-controls{gap:.5rem!important;align-items:flex-end!important}
.fri-tp-progression-controls .fri-tp-event-picker select{height:39px!important;min-height:39px!important;min-width:110px!important;max-width:178px!important;padding:.32rem 1.65rem .32rem .58rem!important;font-size:.62rem!important;line-height:1!important}
.fri-tp-progression-controls .fri-tp-event-picker>span{font-size:.47rem!important;margin-bottom:.2rem!important}
.fri-tp-progression-controls .fri-tp-compare-mode{min-height:39px!important}
.fri-tp-progression-controls .fri-tp-compare-mode button{min-height:31px!important;padding:.32rem .55rem!important;font-size:.62rem!important;line-height:1!important}

@media(max-width:1050px){
  .fri-tp-profile-head.fri-tp-profile-hero-card{grid-template-columns:minmax(0,1fr) minmax(285px,345px)!important;column-gap:7rem!important;padding:1.15rem 1.1rem 1rem!important}
  .fri-tp-profile-hero-card .fri-tp-profile-avatar{width:106px!important;height:106px!important}
  .fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-wa-index-score{font-size:3.8rem!important}
}

@media(max-width:760px){
  .fri-tp-profile-back-row{margin-bottom:2.7rem!important}
  .fri-tp-profile-head.fri-tp-profile-hero-card{display:block!important;padding:4rem .95rem .9rem!important;border-radius:16px!important}
  .fri-tp-profile-hero-card .fri-tp-profile-avatar{width:100px!important;height:100px!important}
  .fri-tp-profile-hero-card .fri-tp-profile-identity{text-align:center!important}
  .fri-tp-profile-hero-card .fri-tp-profile-identity h2{font-size:clamp(1.7rem,8.5vw,2.35rem)!important;line-height:.97!important;text-align:center!important}
  .fri-tp-profile-hero-card .fri-tp-profile-identity .fri-tp-meta,.fri-tp-profile-hero-card .fri-tp-club-row{justify-content:center!important;text-align:center!important}
  .fri-tp-profile-hero-card .fri-tp-header-index{margin-top:.72rem!important;padding-top:.65rem!important;border-top:1px solid #EEF1F5!important}
  .fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-wa-index-score{font-size:3.55rem!important}
  .fri-tp-profile-hero-card .fri-tp-index-lean-metrics{gap:.8rem!important}
  .fri-tp-profile-hero-card .fri-tp-index-lean-info summary{margin-left:0!important}
  .fri-tp-tab-panel[data-fri-tp-panel='overview']>.fri-tp-summary-grid{gap:0!important;padding:.1rem 0!important}
  .fri-tp-summary-card{min-height:72px!important;padding:.72rem .58rem!important;border-bottom:1px solid #F0F2F6!important}
  .fri-tp-summary-card:nth-last-child(-n+2){border-bottom:0!important}
  .fri-tp-latest-stats{grid-template-columns:1fr!important;gap:.4rem!important;padding:.15rem .8rem .65rem 1rem!important}
  .fri-tp-latest-stat{padding:.52rem .6rem!important}
  .fri-tp-progression-controls{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .fri-tp-progression-controls .fri-tp-compare-mode{grid-column:1/-1!important;justify-self:start!important}
  .fri-tp-progression-controls .fri-tp-event-picker{min-width:0!important;width:100%!important}
  .fri-tp-progression-controls .fri-tp-event-picker select{width:100%!important;max-width:none!important;min-width:0!important}
}

@media(max-width:430px){
  .fri-tp-profile-head.fri-tp-profile-hero-card{padding-left:.8rem!important;padding-right:.8rem!important}
  .fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-wa-index-score{font-size:3.3rem!important}
  .fri-tp-profile-hero-card .fri-tp-index-progress-note>strong,.fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{font-size:.8rem!important}
  .fri-tp-profile-hero-card .fri-tp-index-lean-career>small{max-width:180px!important;margin-left:auto!important}
}


/* ==========================================================
   v1.10.9 — MOBILE SCORE + DATA STRIP + COMPARE POLISH
   ========================================================== */

/* Summary is a data strip again: whitespace + deliberate dividers. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
  gap:0!important;
  padding:0!important;
  border-top:1px solid #E3E8EF!important;
  border-bottom:1px solid #E3E8EF!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card{
  min-height:82px!important;
  padding:.88rem .75rem!important;
  border:0!important;
  border-right:1px solid #E3E8EF!important;
  background:#fff!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card:last-child{
  border-right:0!important;
}

/* FRÍ scale: stronger enough to read, still restrained. */
.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-track{
  height:5px!important;
  border-radius:999px!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-fill{
  border-radius:999px!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-tick{
  top:-4px!important;
  height:13px!important;
  width:1px!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-marker{
  width:11px!important;
  height:11px!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-labels{
  height:18px!important;
  margin-top:.34rem!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-labels b{
  font-size:.52rem!important;
  font-weight:700!important;
  color:#627087!important;
}

/* Keep both support facts visually aligned under the scale. */
.fri-tp-profile-hero-card .fri-tp-index-lean-metrics{
  align-items:start!important;
  margin-top:.4rem!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note,
.fri-tp-profile-hero-card .fri-tp-index-lean-career{
  min-height:42px!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>span,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>span{
  font-size:.55rem!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>strong,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{
  font-size:.94rem!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>small,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>small{
  font-size:.49rem!important;
}

/* Comparison: prevent narrow desktop geometry from leaking into phones. */
.fri-tp-compare-output,
.fri-tp-compare-output .fri-tp-compare-section,
.fri-tp-compare-output .fri-tp-stat-board{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

@media(max-width:760px){

  /* Summary = 2-column FRÍ data grid with both vertical and row dividers. */
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card{
    min-height:76px!important;
    padding:.74rem .65rem!important;
    border-right:1px solid #E3E8EF!important;
    border-top:0!important;
    border-bottom:0!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card:nth-child(2n){
    border-right:0!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card:nth-child(n+3){
    border-top:1px solid #E3E8EF!important;
  }

  /*
   * Mobile FRÍ identity:
   * progress | score | career best on one line, scale below.
   * The source order does not need to change: display:contents lets the
   * progress/career children participate directly in this grid.
   */
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    grid-template-areas:
      "progress score career"
      "scale scale scale"
      "info info info"!important;
    column-gap:.72rem!important;
    align-items:end!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-top{
    grid-area:score!important;
    display:block!important;
    min-height:0!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-score{
    width:auto!important;
    text-align:center!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-wa-index-score{
    font-size:3.35rem!important;
    line-height:.8!important;
    text-align:center!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-wa-index-scale{
    grid-area:scale!important;
    padding:.55rem 0 .08rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-metrics{
    display:contents!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note{
    grid-area:progress!important;
    min-height:0!important;
    align-self:end!important;
    padding:0!important;
    text-align:left!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career{
    grid-area:career!important;
    min-height:0!important;
    align-self:end!important;
    text-align:right!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>span,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>span{
    font-size:.5rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>strong,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>strong{
    font-size:.78rem!important;
    line-height:1.08!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>small,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>small{
    margin-top:.06rem!important;
    font-size:.42rem!important;
    line-height:1.16!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>small{
    max-width:100%!important;
    margin-left:0!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-info{
    grid-area:info!important;
    margin-top:.22rem!important;
    padding-top:.2rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-info summary{
    margin-left:0!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-track{
    height:4px!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-labels{
    height:18px!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean .fri-tp-relative-labels b{
    font-size:.5rem!important;
  }

  /* Comparison header becomes a clean two-athlete identity row. */
  .fri-tp-compare-output .fri-tp-versus-head{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:.5rem!important;
    padding:.8rem .45rem!important;
  }

  .fri-tp-compare-output .fri-tp-versus-head .fri-tp-vs{
    display:none!important;
  }

  .fri-tp-compare-output .fri-tp-versus-head .runner-a,
  .fri-tp-compare-output .fri-tp-versus-head .runner-b{
    min-width:0!important;
    padding:.15rem .25rem!important;
    text-align:center!important;
  }

  .fri-tp-compare-output .fri-tp-versus-head strong{
    display:block!important;
    max-width:100%!important;
    font-size:.96rem!important;
    line-height:1.18!important;
    overflow-wrap:anywhere!important;
  }

  .fri-tp-compare-output .fri-tp-versus-head span{
    font-size:.64rem!important;
    line-height:1.2!important;
  }

  /* Compact head-to-head score. */
  .fri-tp-compare-output .fri-tp-meeting-score{
    grid-template-columns:1fr 1fr!important;
    margin:.7rem 0 1.5rem!important;
    border-radius:12px!important;
  }

  .fri-tp-compare-output .fri-tp-meeting-center{
    grid-column:1/-1!important;
    grid-row:1!important;
    min-height:62px!important;
    padding:.55rem!important;
  }

  .fri-tp-compare-output .fri-tp-meeting-score>div{
    min-height:78px!important;
    padding:.62rem .4rem!important;
  }

  .fri-tp-compare-output .fri-tp-meeting-runner strong,
  .fri-tp-compare-output .fri-tp-meeting-center strong{
    font-size:1.45rem!important;
  }

  .fri-tp-compare-output .fri-tp-meeting-runner span,
  .fri-tp-compare-output .fri-tp-meeting-center span{
    margin-top:.25rem!important;
    font-size:.62rem!important;
  }

  /* Comparison statistic boards: stable 3-column mobile geometry. */
  .fri-tp-compare-output .fri-tp-stat-board-row{
    grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr)!important;
    gap:.22rem!important;
    min-height:54px!important;
    padding:.45rem 0!important;
  }

  .fri-tp-compare-output .fri-tp-stat-label{
    padding:0 .1rem!important;
    font-size:.64rem!important;
    line-height:1.15!important;
  }

  .fri-tp-compare-output .fri-tp-stat-value{
    min-width:0!important;
    max-width:100%!important;
    padding:.28rem .35rem!important;
    font-size:.78rem!important;
    line-height:1.1!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .fri-tp-compare-output .fri-tp-stat-board-group-label{
    padding:.5rem .1rem .28rem!important;
    font-size:.62rem!important;
  }

  /* Comparison progression controls stack predictably. */
  .fri-tp-compare-output .fri-tp-compare-progression-controls{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:.45rem!important;
    align-items:end!important;
  }

  .fri-tp-compare-output .fri-tp-compare-progression-controls .fri-tp-event-picker{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }

  .fri-tp-compare-output .fri-tp-compare-progression-controls .fri-tp-event-picker select{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }

  .fri-tp-compare-output .fri-tp-compare-progression-controls .fri-tp-compare-mode{
    width:100%!important;
    display:grid!important;
    grid-auto-flow:column!important;
    grid-auto-columns:1fr!important;
  }

  .fri-tp-compare-output .fri-tp-compare-progression-controls .fri-tp-compare-mode button{
    width:100%!important;
    padding:.32rem .28rem!important;
    font-size:.6rem!important;
  }

  /* Tables should scroll inside themselves instead of widening the page. */
  .fri-tp-compare-output .fri-tp-table-wrap,
  .fri-tp-compare-output .fri-tp-compare-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }

  .fri-tp-compare-output .fri-tp-shared-races-table{
    min-width:610px!important;
  }
}

@media(max-width:430px){
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable){
    column-gap:.5rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-wa-index-score{
    font-size:3.05rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>strong,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>strong{
    font-size:.72rem!important;
  }

  .fri-tp-compare-output .fri-tp-stat-board-row{
    grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr)!important;
  }

  .fri-tp-compare-output .fri-tp-stat-label{
    font-size:.6rem!important;
  }

  .fri-tp-compare-output .fri-tp-stat-value{
    font-size:.73rem!important;
  }
}


/* ==========================================================
   v1.10.10 — PRESENTATION FREEZE
   Overview breathing room + matched FRÍ support metrics.
   ========================================================== */

/* Overview sections are separated by whitespace and headings, not grey rules. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-latest-race-wrap,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section-no-border{
  border-top:0!important;
}

/* Preserve section rhythm after removing the horizontal rules. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-latest-race-wrap{
  margin-top:2rem!important;
  padding-top:1.15rem!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section-no-border{
  margin-top:2.65rem!important;
  padding-top:0!important;
}

/* FRÍ support metrics: same typographic system on both sides. */
.fri-tp-profile-hero-card .fri-tp-index-lean-metrics{
  align-items:start!important;
  gap:1.35rem!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note,
.fri-tp-profile-hero-card .fri-tp-index-lean-career{
  min-height:46px!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>span,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>span{
  display:block!important;
  margin:0!important;
  color:var(--fri-muted)!important;
  font-size:.55rem!important;
  line-height:1.15!important;
  font-weight:500!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>strong,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{
  display:block!important;
  margin:.12rem 0 0!important;
  font-size:.94rem!important;
  line-height:1.05!important;
  font-weight:750!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>strong{
  color:var(--fri-primary)!important;
}
.fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{
  color:var(--fri-text)!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>small,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>small{
  display:block!important;
  margin:.09rem 0 0!important;
  max-width:none!important;
  color:var(--fri-muted)!important;
  font-size:.49rem!important;
  line-height:1.22!important;
  font-weight:450!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Career best is the right-hand mirror of Progress. */
.fri-tp-profile-hero-card .fri-tp-index-lean-career{
  text-align:right!important;
}

@media(max-width:760px){
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-latest-race-wrap{
    margin-top:1.75rem!important;
    padding-top:.85rem!important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section-no-border{
    margin-top:2.25rem!important;
    padding-top:0!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-progress-note>span,
  .fri-tp-profile-hero-card .fri-tp-index-lean-career>span{
    font-size:.5rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-index-progress-note>strong,
  .fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{
    font-size:.78rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-index-progress-note>small,
  .fri-tp-profile-hero-card .fri-tp-index-lean-career>small{
    font-size:.42rem!important;
  }
}


/* ==========================================================
   v1.10.11 — RECENT RESULTS MERGE / PRESENTATION FREEZE 2
   ========================================================== */

/* Overview sections use whitespace only. No decorative grey separators. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section-no-border,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > section,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section-head{
  border-top:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section::before,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section::after,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > section::before,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > section::after{
  display:none!important;
  content:none!important;
}

/* Summary remains the one deliberate data strip with dividers. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
  margin-bottom:2.4rem!important;
}

/* Recent results now replace the old bulky Last Race module. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  margin-top:.9rem!important;
  border-top:1px solid #E1E6ED!important;
  border-bottom:1px solid #E1E6ED!important;
}

.fri-tp-recent-result{
  position:relative!important;
  min-width:0!important;
  min-height:178px!important;
  padding:1rem .9rem .88rem 1rem!important;
  border:0!important;
  border-right:1px solid #E1E6ED!important;
  background:#fff!important;
  box-shadow:none!important;
}

.fri-tp-recent-result:last-child{
  border-right:0!important;
}

.fri-tp-recent-result::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:4px!important;
  background:var(--fri-primary)!important;
}

.fri-tp-recent-result.is-track::before{
  background:var(--fri-red,#F14024)!important;
}

.fri-tp-recent-result-main{
  min-width:0!important;
}

.fri-tp-recent-result-head{
  min-height:20px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:.55rem!important;
}

.fri-tp-recent-result-event{
  color:#64738A!important;
  font-size:.67rem!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:.025em!important;
  text-transform:uppercase!important;
}

.fri-tp-recent-result-time{
  margin-top:.45rem!important;
  color:var(--fri-text)!important;
  font-size:1.55rem!important;
  line-height:.94!important;
  font-weight:750!important;
  letter-spacing:-.025em!important;
}

.fri-tp-recent-result-performance{
  margin-top:.3rem!important;
  color:#65758D!important;
  font-size:.59rem!important;
  line-height:1.3!important;
  font-weight:520!important;
}

.fri-tp-recent-result-race{
  margin-top:.75rem!important;
  min-width:0!important;
}

.fri-tp-recent-result-race strong,
.fri-tp-recent-result-race .fri-tp-race-link{
  display:block!important;
  max-width:100%!important;
  color:var(--fri-text)!important;
  font-size:.63rem!important;
  line-height:1.22!important;
  font-weight:650!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

.fri-tp-recent-result-race>span{
  display:block!important;
  margin-top:.18rem!important;
  color:var(--fri-muted)!important;
  font-size:.52rem!important;
  line-height:1.3!important;
}

/* FRÍ impact for each result: blue up, red down, quiet when unchanged. */
.fri-tp-recent-fri{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:baseline!important;
  gap:.2rem!important;
  white-space:nowrap!important;
}

.fri-tp-recent-fri b{
  color:#7B8798!important;
  font-size:.46rem!important;
  line-height:1!important;
  font-weight:650!important;
}

.fri-tp-recent-fri strong{
  font-size:.66rem!important;
  line-height:1!important;
  font-weight:750!important;
}

.fri-tp-recent-fri.is-up strong,
.fri-tp-recent-fri.is-new strong{
  color:var(--fri-primary)!important;
}

.fri-tp-recent-fri.is-down strong{
  color:#F14024!important;
}

.fri-tp-recent-fri.is-flat strong{
  color:#8390A2!important;
}

/* Recent-results section comes immediately after summary. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section:has([data-fri-tp-recent]){
  margin-top:0!important;
  padding-top:0!important;
  margin-bottom:2.55rem!important;
}

/* PB sections and career sections breathe without horizontal divider rules. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section-no-border{
  margin-top:2.55rem!important;
  padding-top:0!important;
}

/* FRÍ score support metrics: exactly mirrored hierarchy. */
.fri-tp-profile-hero-card .fri-tp-index-lean-metrics{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:1.6rem!important;
  align-items:start!important;
  margin-top:.42rem!important;
  padding-top:0!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note,
.fri-tp-profile-hero-card .fri-tp-index-lean-career{
  min-height:0!important;
  padding:0!important;
  border:0!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note{
  text-align:left!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-career{
  text-align:right!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>span,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>span{
  display:block!important;
  margin:0!important;
  color:var(--fri-muted)!important;
  font-size:.56rem!important;
  line-height:1.12!important;
  font-weight:500!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>strong,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{
  display:block!important;
  margin:.12rem 0 0!important;
  font-size:1rem!important;
  line-height:1.03!important;
  font-weight:760!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>strong{
  color:var(--fri-primary)!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{
  color:var(--fri-text)!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note>small,
.fri-tp-profile-hero-card .fri-tp-index-lean-career>small{
  display:block!important;
  margin:.1rem 0 0!important;
  max-width:none!important;
  color:var(--fri-muted)!important;
  font-size:.51rem!important;
  line-height:1.22!important;
  font-weight:450!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* No grey rule around the FRÍ support metrics. */
.fri-tp-profile-hero-card .fri-tp-index-lean-footer,
.fri-tp-profile-hero-card .fri-tp-index-lean-metrics{
  border-top:0!important;
}

@media(max-width:980px){
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    border-bottom:0!important;
  }

  .fri-tp-recent-result{
    min-height:154px!important;
    border-bottom:1px solid #E1E6ED!important;
  }

  .fri-tp-recent-result:nth-child(2n){
    border-right:0!important;
  }

  .fri-tp-recent-result:last-child{
    border-right:1px solid #E1E6ED!important;
  }
}

@media(max-width:760px){
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
    margin-bottom:2rem!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list{
    grid-template-columns:1fr!important;
    margin-top:.65rem!important;
    border-top:0!important;
  }

  .fri-tp-recent-result{
    min-height:0!important;
    padding:.8rem .72rem .76rem .9rem!important;
    border-right:0!important;
    border-bottom:1px solid #E1E6ED!important;
  }

  .fri-tp-recent-result:last-child{
    border-right:0!important;
  }

  .fri-tp-recent-result::before{
    width:4px!important;
  }

  .fri-tp-recent-result-head{
    min-height:18px!important;
  }

  .fri-tp-recent-result-event{
    font-size:.63rem!important;
  }

  .fri-tp-recent-result-time{
    margin-top:.28rem!important;
    font-size:1.38rem!important;
  }

  .fri-tp-recent-result-performance{
    margin-top:.22rem!important;
    font-size:.57rem!important;
  }

  .fri-tp-recent-result-race{
    margin-top:.52rem!important;
  }

  .fri-tp-recent-result-race strong,
  .fri-tp-recent-result-race .fri-tp-race-link{
    font-size:.62rem!important;
  }

  .fri-tp-recent-result-race>span{
    font-size:.5rem!important;
  }

  .fri-tp-recent-fri strong{
    font-size:.65rem!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section-no-border{
    margin-top:2.15rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean-metrics{
    gap:.85rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-progress-note>span,
  .fri-tp-profile-hero-card .fri-tp-index-lean-career>span{
    font-size:.5rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-progress-note>strong,
  .fri-tp-profile-hero-card .fri-tp-index-lean-career>strong{
    font-size:.8rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-progress-note>small,
  .fri-tp-profile-hero-card .fri-tp-index-lean-career>small{
    font-size:.43rem!important;
  }
}


/* ==========================================================
   v1.10.12 — FINAL PRESENTATION FIX
   Root fixes for FRÍ career-best layout + Overview separators.
   ========================================================== */

/*
 * Overview summary:
 * keep ONLY the useful vertical dividers between facts.
 * No horizontal rule above/below the strip.
 */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
  border-top:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card{
  border-top:0!important;
  border-bottom:0!important;
}

/* Kill any inherited section separator on Overview at the actual element level. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section{
  border-top:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-section > .fri-tp-section-head{
  border-top:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
}

/*
 * FRÍ career best:
 * legacy rules made this a two-column grid, which kept
 * "Ferilsbest" and "WA 685" on the same line.
 * Force the same vertical hierarchy as Framför.
 */
.fri-tp-profile-hero-card .fri-tp-index-lean-career{
  display:block!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  column-gap:0!important;
  row-gap:0!important;
  justify-content:initial!important;
  align-items:initial!important;
  text-align:right!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-career > span,
.fri-tp-profile-hero-card .fri-tp-index-lean-career > strong,
.fri-tp-profile-hero-card .fri-tp-index-lean-career > small{
  display:block!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-career > span{
  margin:0!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-career > strong{
  margin:.12rem 0 0!important;
  color:var(--fri-text)!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-career > small{
  margin:.1rem 0 0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Framför and Ferilsbest should read as a matched pair. */
.fri-tp-profile-hero-card .fri-tp-index-progress-note,
.fri-tp-profile-hero-card .fri-tp-index-lean-career{
  font-family:inherit!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note > span,
.fri-tp-profile-hero-card .fri-tp-index-lean-career > span{
  color:var(--fri-muted)!important;
  font-size:.56rem!important;
  line-height:1.12!important;
  font-weight:500!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note > strong,
.fri-tp-profile-hero-card .fri-tp-index-lean-career > strong{
  font-size:1rem!important;
  line-height:1.03!important;
  font-weight:760!important;
}

.fri-tp-profile-hero-card .fri-tp-index-progress-note > small,
.fri-tp-profile-hero-card .fri-tp-index-lean-career > small{
  color:var(--fri-muted)!important;
  font-size:.51rem!important;
  line-height:1.22!important;
  font-weight:450!important;
}

/* Cleaner expanded explanation; no extra rule that looks like another section. */
.fri-tp-profile-hero-card .fri-tp-index-lean-info{
  border-top:0!important;
  margin-top:.28rem!important;
  padding-top:.1rem!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-explainer{
  margin-top:.42rem!important;
  padding:.58rem .65rem!important;
  border:0!important;
  border-radius:8px!important;
  background:#F7F9FC!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-explainer p{
  margin:0!important;
  color:#5F6F86!important;
  font-size:.56rem!important;
  line-height:1.5!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-explainer p + p{
  margin-top:.48rem!important;
}

/* Mobile retains right-side career alignment but the exact same stack. */
@media(max-width:760px){
  .fri-tp-profile-hero-card .fri-tp-index-lean-career{
    display:block!important;
    text-align:right!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean-career > strong{
    font-size:.8rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean-career > span{
    font-size:.5rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean-career > small{
    font-size:.43rem!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
    border-top:0!important;
    border-bottom:0!important;
  }
}


/* ==========================================================
   v1.10.13 — RESULT HIERARCHY POLISH
   Recent results = compact feed; PBs = stronger highlights.
   ========================================================== */

/* ---------------- Recent results: smaller, faster to scan ---------------- */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list{
  margin-top:.72rem!important;
}

.fri-tp-recent-result{
  min-height:154px!important;
  padding:.78rem .72rem .72rem .88rem!important;
}

.fri-tp-recent-result-head{
  min-height:17px!important;
  gap:.4rem!important;
}

.fri-tp-recent-result-event{
  font-size:.61rem!important;
  line-height:1.1!important;
  letter-spacing:.03em!important;
}

.fri-tp-recent-result-time{
  margin-top:.34rem!important;
  font-size:1.36rem!important;
  line-height:.94!important;
  letter-spacing:-.025em!important;
}

.fri-tp-recent-result-performance{
  margin-top:.22rem!important;
  font-size:.54rem!important;
  line-height:1.24!important;
}

.fri-tp-recent-result-race{
  margin-top:.58rem!important;
}

.fri-tp-recent-result-race strong,
.fri-tp-recent-result-race .fri-tp-race-link{
  font-size:.58rem!important;
  line-height:1.18!important;
}

.fri-tp-recent-result-race>span{
  margin-top:.13rem!important;
  font-size:.48rem!important;
  line-height:1.24!important;
}

.fri-tp-recent-fri b{
  font-size:.42rem!important;
}

.fri-tp-recent-fri strong{
  font-size:.59rem!important;
}

/* ---------------- PBs: deliberately stronger than recent results ---------------- */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-grid{
  margin-top:.82rem!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb{
  min-height:148px!important;
  padding:1.08rem 1rem 1rem 1.15rem!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-event{
  font-size:.76rem!important;
  line-height:1.12!important;
  font-weight:700!important;
  letter-spacing:.025em!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-time{
  margin:.34rem 0 .2rem!important;
  font-size:clamp(1.82rem,2.55vw,2.25rem)!important;
  line-height:.93!important;
  font-weight:700!important;
  letter-spacing:-.035em!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb .fri-tp-result-pace{
  margin-top:.18rem!important;
  font-size:.62rem!important;
  line-height:1.2!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb .fri-tp-wa-inline{
  margin-top:.28rem!important;
  font-size:.58rem!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-meta{
  margin-top:.34rem!important;
  font-size:.7rem!important;
  line-height:1.3!important;
}

/* Road/track accents remain visually strong on PB cards. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb::before{
  width:4px!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-track::before{
  background:var(--fri-red,#F14024)!important;
}

/* Give PB headings slightly more breathing room than the recent feed. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section:has([data-fri-tp-pbs]) .fri-tp-section-head,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-section:has([data-fri-tp-track-pbs]) .fri-tp-section-head{
  margin-bottom:.12rem!important;
}

/* ---------------- Tablet/mobile ---------------- */
@media(max-width:980px){
  .fri-tp-recent-result{
    min-height:138px!important;
  }
}

@media(max-width:760px){
  /* Recent feed stays intentionally compact on phones. */
  .fri-tp-recent-result{
    min-height:0!important;
    padding:.68rem .68rem .66rem .86rem!important;
  }

  .fri-tp-recent-result-event{
    font-size:.59rem!important;
  }

  .fri-tp-recent-result-time{
    margin-top:.24rem!important;
    font-size:1.25rem!important;
  }

  .fri-tp-recent-result-performance{
    margin-top:.18rem!important;
    font-size:.53rem!important;
  }

  .fri-tp-recent-result-race{
    margin-top:.42rem!important;
  }

  .fri-tp-recent-result-race strong,
  .fri-tp-recent-result-race .fri-tp-race-link{
    font-size:.57rem!important;
  }

  .fri-tp-recent-result-race>span{
    font-size:.47rem!important;
  }

  /* PB rows get the stronger emphasis on mobile too. */
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb{
    min-height:0!important;
    padding:.9rem .8rem .86rem 1rem!important;
    grid-template-columns:minmax(74px,auto) minmax(0,1fr)!important;
    column-gap:1.05rem!important;
    row-gap:.3rem!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-event{
    font-size:.73rem!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-time{
    font-size:1.62rem!important;
    font-weight:700!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-meta{
    font-size:.68rem!important;
    line-height:1.3!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb .fri-tp-result-pace{
    font-size:.6rem!important;
  }

  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb .fri-tp-wa-inline{
    font-size:.56rem!important;
  }
}


/* ==========================================================
   v1.10.14 — SMALL BACKLOG FIXES
   ========================================================== */

/* Hlaupasaga: round the blue table header's two outer corners. */
.fri-tp-history-panel .fri-tp-table thead th:first-child{
  border-top-left-radius:12px!important;
}

.fri-tp-history-panel .fri-tp-table thead th:last-child{
  border-top-right-radius:12px!important;
}

/* Unavailable FRÍ index should look intentional, not broken. */
.fri-tp-profile-hero-card .fri-tp-index-lean.is-unavailable .fri-tp-index-lean-top{
  padding-bottom:.18rem!important;
}

.fri-tp-profile-hero-card .fri-tp-relative-unavailable-help{
  max-width:330px!important;
  margin-top:.3rem!important;
  color:var(--fri-muted)!important;
  font-size:.55rem!important;
  line-height:1.4!important;
  font-weight:450!important;
}

.fri-tp-profile-hero-card .fri-tp-relative-empty-scale{
  width:100%!important;
  padding:.55rem 0 .18rem!important;
}

.fri-tp-profile-hero-card .fri-tp-relative-empty-scale .fri-tp-relative-track{
  height:5px!important;
  background:#E0E5EC!important;
  border-radius:999px!important;
}

.fri-tp-profile-hero-card .fri-tp-relative-empty-scale .fri-tp-relative-tick{
  background:#B8C1CF!important;
}

.fri-tp-profile-hero-card .fri-tp-relative-empty-scale .fri-tp-relative-labels b{
  color:#8995A7!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean.is-unavailable .fri-tp-index-lean-metrics{
  margin-top:.32rem!important;
}

@media(max-width:760px){
  .fri-tp-profile-hero-card .fri-tp-relative-unavailable-help{
    max-width:100%!important;
    font-size:.52rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-relative-empty-scale{
    padding-top:.48rem!important;
  }
}


/* ==========================================================
   v1.10.15 — HERO VERTICAL ALIGNMENT + COMPACT FRÍ INFO
   ========================================================== */

/*
 * Desktop identity is anchored, not vertically centered against the
 * changing height of the FRÍ-info accordion.
 * A small top offset puts the name visually below the floating avatar
 * and brings the club row closer to the lower FRÍ metrics.
 */
@media(min-width:761px){
  .fri-tp-profile-head.fri-tp-profile-hero-card{
    align-items:start!important;
  }

  .fri-tp-profile-hero-card .fri-tp-profile-identity{
    align-self:start!important;
    padding-top:1.18rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-header-index{
    align-self:start!important;
    padding-top:.12rem!important;
  }
}

/* Opening "Um FRÍ vísinn" should feel like disclosure, not a new card. */
.fri-tp-profile-hero-card .fri-tp-index-lean-info{
  margin-top:.24rem!important;
  padding-top:.08rem!important;
  border-top:0!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-explainer{
  margin-top:.36rem!important;
  padding:.45rem .52rem!important;
  border:0!important;
  border-radius:7px!important;
  background:#F7F9FC!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-explainer p{
  margin:0!important;
  max-width:none!important;
  color:#607089!important;
  font-size:.52rem!important;
  line-height:1.42!important;
}

/* Keep the club line compact so the left side finishes near FRÍ support metrics. */
@media(min-width:761px){
  .fri-tp-profile-hero-card .fri-tp-club-row{
    margin-top:.55rem!important;
  }
}

@media(max-width:760px){
  /* Mobile keeps the intentionally centered identity composition. */
  .fri-tp-profile-hero-card .fri-tp-profile-identity{
    padding-top:0!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean-explainer{
    padding:.48rem .52rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean-explainer p{
    font-size:.51rem!important;
  }
}


/* ==========================================================
   v1.10.16 — LAST VISUAL FIXES
   ========================================================== */

/* Give long athlete names enough room below the floating avatar. */
@media(min-width:761px){
  .fri-tp-profile-hero-card .fri-tp-profile-identity{
    padding-top:2.5rem!important;
  }
}

/*
 * Hlaupasaga: the previous selector targeted a class that is not present
 * on the actual history panel. Apply the radius to the real tab panel
 * and its table wrapper so the blue header visibly gets soft top corners.
 */
.fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table-wrap{
  border-radius:12px 12px 0 0!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table thead th:first-child{
  border-top-left-radius:12px!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table thead th:last-child{
  border-top-right-radius:12px!important;
}


/* ==========================================================
   v1.10.17 — HERO BOTTOM ALIGNMENT
   Identity + FRÍ performance share one fixed baseline.
   FRÍ info opens as a non-layout-shifting popover.
   ========================================================== */

@media(min-width:761px){
  /* Both columns finish at the same bottom edge of the hero. */
  .fri-tp-profile-head.fri-tp-profile-hero-card{
    align-items:end!important;
    min-height:205px!important;
  }

  .fri-tp-profile-hero-card .fri-tp-profile-identity{
    align-self:end!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }

  .fri-tp-profile-hero-card .fri-tp-header-index{
    align-self:end!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }

  /* Keep the club/meta block compact so its bottom baseline stays clean. */
  .fri-tp-profile-hero-card .fri-tp-club-row{
    margin-bottom:0!important;
  }
}

/*
 * "Um FRÍ vísinn" must never change the hero height.
 * The explanation floats above the page as a lightweight popover.
 */
.fri-tp-profile-hero-card .fri-tp-index-lean-info{
  position:relative!important;
  z-index:20!important;
}

.fri-tp-profile-hero-card .fri-tp-index-lean-info[open] .fri-tp-index-lean-explainer{
  position:absolute!important;
  z-index:40!important;
  top:calc(100% + .35rem)!important;
  right:0!important;
  width:min(360px, calc(100vw - 36px))!important;
  margin:0!important;
  padding:.62rem .7rem!important;
  border:1px solid #E2E7EF!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(20,38,68,.12)!important;
}

/* The summary itself stays exactly where it was when closed/open. */
.fri-tp-profile-hero-card .fri-tp-index-lean-info summary{
  position:relative!important;
  z-index:41!important;
}

/* Mobile: same no-shift disclosure behavior, constrained to viewport. */
@media(max-width:760px){
  .fri-tp-profile-hero-card .fri-tp-index-lean-info[open] .fri-tp-index-lean-explainer{
    right:0!important;
    left:auto!important;
    width:min(320px, calc(100vw - 32px))!important;
  }
}


/* ==========================================================
   v1.10.18 — RECENT RESULT READABILITY
   ========================================================== */

/*
 * Recent results remain denser than PBs, but use the same readable
 * typographic family/scale instead of tiny dashboard metadata.
 */
.fri-tp-recent-result{
  min-height:174px!important;
  padding:.9rem .8rem .72rem .92rem!important;
}

.fri-tp-recent-result-main{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}

.fri-tp-recent-result-head{
  min-height:19px!important;
}

.fri-tp-recent-result-event{
  font-size:.68rem!important;
  line-height:1.12!important;
  font-weight:700!important;
}

.fri-tp-recent-result-time{
  margin-top:.36rem!important;
  font-size:1.58rem!important;
  line-height:.94!important;
  font-weight:740!important;
}

.fri-tp-recent-result-performance{
  margin-top:.25rem!important;
  color:#627188!important;
  font-size:.61rem!important;
  line-height:1.24!important;
}

.fri-tp-recent-result-race{
  margin-top:.68rem!important;
}

.fri-tp-recent-result-race strong,
.fri-tp-recent-result-race .fri-tp-race-link{
  font-size:.65rem!important;
  line-height:1.22!important;
  font-weight:650!important;
}

.fri-tp-recent-result-race>span{
  margin-top:.18rem!important;
  font-size:.56rem!important;
  line-height:1.28!important;
}

/* Placing is its own quiet footer instead of being buried in the meta sentence. */
.fri-tp-recent-result-place{
  margin-top:auto!important;
  padding-top:.55rem!important;
  color:#68778D!important;
  font-size:.57rem!important;
  line-height:1.15!important;
  font-weight:550!important;
  text-align:left!important;
}

.fri-tp-recent-fri b{
  font-size:.45rem!important;
}

.fri-tp-recent-fri strong{
  font-size:.62rem!important;
}

/* PBs still own the strongest result hierarchy. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-time{
  font-weight:720!important;
}

@media(max-width:980px){
  .fri-tp-recent-result{
    min-height:158px!important;
  }
}

@media(max-width:760px){
  .fri-tp-recent-result{
    min-height:0!important;
    padding:.78rem .7rem .7rem .88rem!important;
  }

  .fri-tp-recent-result-event{
    font-size:.66rem!important;
  }

  .fri-tp-recent-result-time{
    margin-top:.28rem!important;
    font-size:1.48rem!important;
  }

  .fri-tp-recent-result-performance{
    font-size:.59rem!important;
  }

  .fri-tp-recent-result-race{
    margin-top:.56rem!important;
  }

  .fri-tp-recent-result-race strong,
  .fri-tp-recent-result-race .fri-tp-race-link{
    font-size:.63rem!important;
  }

  .fri-tp-recent-result-race>span{
    font-size:.54rem!important;
  }

  .fri-tp-recent-result-place{
    margin-top:.5rem!important;
    padding-top:0!important;
    font-size:.55rem!important;
  }
}


/* ==========================================================
   v1.10.19 — SEARCH NAVIGATION + IDENTITY META
   ========================================================== */

/* Club and athlete metadata are one compact identity line. */
.fri-tp-profile-subline{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:.42rem!important;
  margin-top:.42rem!important;
  color:var(--fri-muted)!important;
}

.fri-tp-profile-subline .fri-tp-club-row{
  min-height:0!important;
  margin:0!important;
  flex:0 0 auto!important;
}

.fri-tp-profile-subline .fri-tp-club-link,
.fri-tp-profile-subline .fri-tp-club-row > span{
  gap:.34rem!important;
  color:var(--fri-text)!important;
  font-size:.8rem!important;
  line-height:1.25!important;
}

.fri-tp-profile-subline .fri-tp-club-logo{
  width:22px!important;
  height:22px!important;
  object-fit:contain!important;
}

.fri-tp-profile-subline .fri-tp-meta{
  margin:0!important;
  color:var(--fri-muted)!important;
  font-size:.82rem!important;
  line-height:1.3!important;
}

.fri-tp-profile-subline .fri-tp-club-row:not([hidden]) + .fri-tp-meta::before{
  content:"·";
  margin-right:.42rem;
  color:#8B97A8;
}

/* Desktop: New Search lives at the far right of the profile navigation. */
@media(min-width:761px){
  .fri-tp-profile-back-row{
    display:none!important;
  }

  .fri-tp-tabs-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:1rem!important;
  }

  .fri-tp-tabs-row .fri-tp-tabs{
    width:auto!important;
    max-width:calc(100% - 120px)!important;
    flex:0 1 auto!important;
  }

  .fri-tp-tabs-new-search{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:.35rem!important;
    min-height:36px!important;
    padding:.42rem .75rem!important;
    border:1.5px solid var(--fri-primary)!important;
    border-radius:999px!important;
    background:#fff!important;
    color:var(--fri-primary)!important;
    font:inherit!important;
    font-size:.66rem!important;
    line-height:1!important;
    font-weight:680!important;
    cursor:pointer!important;
  }

  .fri-tp-tabs-new-search svg{
    width:14px!important;
    height:14px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
  }

  .fri-tp-tabs-new-search:hover,
  .fri-tp-tabs-new-search:focus-visible{
    background:var(--fri-primary)!important;
    color:#fff!important;
  }
}

/* Mobile: keep the existing top search pill and hide the tab-row duplicate. */
@media(max-width:760px){
  .fri-tp-profile-back-row{
    display:block!important;
  }

  .fri-tp-tabs-new-search{
    display:none!important;
  }

  .fri-tp-profile-subline{
    justify-content:center!important;
    gap:.35rem!important;
  }

  .fri-tp-profile-subline .fri-tp-club-link,
  .fri-tp-profile-subline .fri-tp-club-row > span{
    font-size:.76rem!important;
  }

  .fri-tp-profile-subline .fri-tp-meta{
    font-size:.76rem!important;
  }

  .fri-tp-profile-subline .fri-tp-club-logo{
    width:21px!important;
    height:21px!important;
  }
}


/* ==========================================================
   v1.10.20 — UNIFIED FRÍ PERFORMANCE LAYOUT
   Desktop and mobile now use the same information hierarchy:
   Framför | score | Ferilsbest, with the scale directly below.
   ========================================================== */

@media(min-width:761px){

  /* Less unused height in the athlete hero. */
  .fri-tp-profile-head.fri-tp-profile-hero-card{
    min-height:182px!important;
    padding-top:1.05rem!important;
    padding-bottom:.9rem!important;
  }

  /*
   * Available FRÍ index:
   * three performance facts share one row, then one common scale.
   * This is the same product concept as mobile, sized for desktop.
   */
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    grid-template-areas:
      "progress score career"
      "scale scale scale"
      "info info info"!important;
    column-gap:1.05rem!important;
    row-gap:0!important;
    align-items:end!important;
    width:100%!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-top{
    grid-area:score!important;
    display:block!important;
    min-height:0!important;
    width:auto!important;
    align-self:end!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-score{
    width:auto!important;
    text-align:center!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-wa-index-score{
    margin:0!important;
    font-size:3.65rem!important;
    line-height:.8!important;
    letter-spacing:-.05em!important;
    text-align:center!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-metrics{
    display:contents!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note{
    grid-area:progress!important;
    align-self:end!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career{
    grid-area:career!important;
    align-self:end!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    text-align:right!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>span,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>span{
    font-size:.54rem!important;
    line-height:1.1!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>strong,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>strong{
    margin-top:.1rem!important;
    font-size:.9rem!important;
    line-height:1.05!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>small,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>small{
    margin-top:.07rem!important;
    font-size:.47rem!important;
    line-height:1.18!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>small{
    max-width:180px!important;
    margin-left:auto!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-wa-index-scale{
    grid-area:scale!important;
    width:100%!important;
    padding:.5rem 0 .08rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-relative-track{
    height:5px!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-relative-marker{
    width:11px!important;
    height:11px!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-relative-labels{
    height:17px!important;
    margin-top:.32rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-relative-labels b{
    font-size:.5rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-info{
    grid-area:info!important;
    margin:.08rem 0 0!important;
    padding:0!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-info summary{
    margin-left:auto!important;
  }

  /* Keep both hero columns anchored to the same lower baseline. */
  .fri-tp-profile-hero-card .fri-tp-profile-identity,
  .fri-tp-profile-hero-card .fri-tp-header-index{
    align-self:end!important;
  }
}

/*
 * Tablet widths still use the desktop concept, just slightly tighter.
 */
@media(min-width:761px) and (max-width:1050px){
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable){
    column-gap:.75rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-wa-index-score{
    font-size:3.3rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-progress-note>strong,
  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>strong{
    font-size:.82rem!important;
  }

  .fri-tp-profile-hero-card .fri-tp-index-lean:not(.is-unavailable) .fri-tp-index-lean-career>small{
    max-width:145px!important;
  }
}

/* Small PB/SB/record marker in competition result tables. */
.fri-tp-result-flag{
  display:inline-block;
  margin-left:.28rem;
  font-size:.72em;
  font-weight:700;
  letter-spacing:.02em;
  vertical-align:middle;
}

/* =========================================================
   v1.16 — FRÍ Hlauparar product design system
   One public shell for hub, race directory, race detail and profile.
   Legacy component styles above remain for charts/passport/history;
   composition, navigation, typography and controls live here.
   ========================================================= */

.fri-tp-product-shell,
.fri-tp-runner-search{
  --fri-primary:#003BCB;
  --fri-primary-dark:#002FA6;
  --fri-red:#F14024;
  --fri-green:#25834A;
  --fri-text:#172033;
  --fri-text-soft:#475569;
  --fri-muted:#6B7A90;
  --fri-border:#E1E7F0;
  --fri-border-strong:#CFD8E6;
  --fri-surface:#FFFFFF;
  --fri-soft:#F7F9FC;
  --fri-shell-width:1240px;
  --fri-radius-lg:20px;
  --fri-radius:16px;
  --fri-radius-sm:12px;
  --fri-control-h:46px;
  --fri-font-text:var(--e-global-typography-text-font-family,"Beausite Classic Medium","Beausite Classic",Arial,sans-serif);
  --fri-font-heading:var(--e-global-typography-primary-font-family,"Beausite Classic Semi-bold","Beausite Classic Medium","Beausite Classic",Arial,sans-serif);
  --fri-focus:0 0 0 3px rgba(0,59,203,.13);
  box-sizing:border-box;
  color:var(--fri-text);
  font-family:var(--fri-font-text)!important;
  font-weight:var(--e-global-typography-text-font-weight,500)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.fri-tp-product-shell{
  width:min(calc(100% - 40px),var(--fri-shell-width))!important;
  max-width:var(--fri-shell-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.fri-tp-product-shell *,
.fri-tp-product-shell *::before,
.fri-tp-product-shell *::after,
.fri-tp-runner-search *,
.fri-tp-runner-search *::before,
.fri-tp-runner-search *::after{box-sizing:border-box}

.fri-tp-product-shell h1,
.fri-tp-product-shell h2,
.fri-tp-product-shell h3,
.fri-tp-product-shell h4,
.fri-tp-product-shell strong,
.fri-tp-product-shell b,
.fri-tp-product-shell button,
.fri-tp-product-shell .fri-tp-eyebrow,
.fri-tp-product-shell .fri-tp-race-type{
  font-family:var(--fri-font-heading)!important;
}

.fri-tp-product-shell a{
  text-underline-offset:.16em;
}

/* ---------- Navigation: breadcrumb + contextual return ---------- */
.fri-tp-navline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  width:100%;
  min-height:34px;
  margin:0 0 1.35rem;
  padding-top:.55rem;
}

.fri-tp-breadcrumbs{min-width:0}
.fri-tp-breadcrumbs ol{
  display:flex;
  align-items:center;
  min-width:0;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
}
.fri-tp-breadcrumbs li{
  display:flex;
  align-items:center;
  min-width:0;
  color:var(--fri-muted);
  font-size:.76rem;
  line-height:1.3;
  font-weight:560;
}
.fri-tp-breadcrumbs li+li::before{
  content:"/";
  margin:0 .55rem;
  color:#B1BCCB;
  font-weight:450;
}
.fri-tp-breadcrumbs a{
  color:var(--fri-muted)!important;
  text-decoration:none!important;
  transition:color .16s ease;
}
.fri-tp-breadcrumbs a:hover,
.fri-tp-breadcrumbs a:focus-visible{color:var(--fri-primary)!important}
.fri-tp-breadcrumbs [aria-current="page"]{
  display:block;
  max-width:min(48vw,540px);
  overflow:hidden;
  color:var(--fri-text);
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fri-tp-context-back{
  flex:0 0 auto;
  color:var(--fri-primary)!important;
  font-size:.76rem;
  line-height:1.2;
  font-weight:630;
  text-decoration:none!important;
  transition:color .16s ease;
}
.fri-tp-context-back:hover,
.fri-tp-context-back:focus-visible{color:var(--fri-primary-dark)!important}

/* ---------- Shared editorial language ---------- */
.fri-tp-product-shell .fri-tp-eyebrow{
  display:flex;
  align-items:center;
  gap:.52rem;
  margin:0 0 .48rem;
  color:var(--fri-primary)!important;
  font-size:.7rem!important;
  line-height:1.15;
  font-weight:650!important;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.fri-tp-product-shell .fri-tp-eyebrow::before{
  width:22px!important;
  height:3px!important;
  flex-basis:22px!important;
  border-radius:999px;
  background:var(--fri-primary)!important;
}
.fri-tp-product-shell .fri-tp-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
}
.fri-tp-product-shell .fri-tp-section-head h2,
.fri-tp-product-shell .fri-tp-section-head h3{
  margin:.08rem 0 0!important;
  color:var(--fri-text)!important;
  font-weight:var(--e-global-typography-primary-font-weight,600)!important;
  line-height:1.04!important;
  letter-spacing:-.028em!important;
}

/* ---------- Search: restore the softer v1.11 geometry ---------- */
.fri-tp-runner-search{position:relative;z-index:60;width:100%;max-width:650px}
.fri-tp-runner-search--compact{max-width:720px;margin:1.05rem 0 1.55rem}
.fri-tp-runner-search .fri-tp-search-form,
.fri-tp-product-shell .fri-tp-search-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.62rem;
  align-items:end;
  max-width:650px;
  margin:1.2rem 0 .4rem!important;
}
.fri-tp-runner-search .fri-tp-search-form label span,
.fri-tp-product-shell .fri-tp-search-form label span{
  display:block;
  margin:0 0 .36rem;
  color:var(--fri-text);
  font-size:.72rem;
  line-height:1.2;
  font-weight:620;
}
.fri-tp-runner-search .fri-tp-search-form input,
.fri-tp-product-shell .fri-tp-search-form input{
  width:100%;
  min-height:var(--fri-control-h)!important;
  height:var(--fri-control-h)!important;
  padding:.7rem .9rem!important;
  border:1px solid var(--fri-border-strong)!important;
  border-radius:var(--fri-radius-sm)!important;
  background:#fff!important;
  color:var(--fri-text)!important;
  font-family:var(--fri-font-text)!important;
  font-size:.9rem!important;
  font-weight:500!important;
  line-height:1.2!important;
  box-shadow:none!important;
  outline:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}
.fri-tp-runner-search .fri-tp-search-form input:hover,
.fri-tp-product-shell .fri-tp-search-form input:hover{border-color:#B8C5D8!important}
.fri-tp-runner-search .fri-tp-search-form input:focus,
.fri-tp-runner-search .fri-tp-search-form input:focus-visible,
.fri-tp-product-shell .fri-tp-search-form input:focus,
.fri-tp-product-shell .fri-tp-search-form input:focus-visible{
  border-color:var(--fri-primary)!important;
  box-shadow:var(--fri-focus)!important;
}
.fri-tp-runner-search .fri-tp-search-form button,
.fri-tp-product-shell .fri-tp-search-form button{
  min-height:var(--fri-control-h)!important;
  height:var(--fri-control-h)!important;
  padding:0 1.15rem!important;
  border:1px solid var(--fri-primary)!important;
  border-radius:var(--fri-radius-sm)!important;
  background:var(--fri-primary)!important;
  color:#fff!important;
  font-family:var(--fri-font-heading)!important;
  font-size:.82rem!important;
  line-height:1!important;
  font-weight:620!important;
  box-shadow:none!important;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
.fri-tp-runner-search .fri-tp-search-form button:hover,
.fri-tp-product-shell .fri-tp-search-form button:hover{
  border-color:var(--fri-primary-dark)!important;
  background:var(--fri-primary-dark)!important;
  transform:translateY(-1px)!important;
}
.fri-tp-runner-search .fri-tp-status,
.fri-tp-product-shell .fri-tp-status{
  min-height:.85rem;
  margin:.08rem 0;
  color:var(--fri-muted);
  font-size:.76rem;
}
.fri-tp-runner-search .fri-tp-search-results,
.fri-tp-product-shell .fri-tp-search-results{
  position:absolute;
  z-index:220;
  top:calc(100% + .28rem);
  left:0;
  right:0;
  display:grid;
  gap:.3rem;
  max-width:650px;
  max-height:min(430px,62vh);
  margin:0;
  overflow:auto;
  pointer-events:none;
}
.fri-tp-runner-search .fri-tp-search-results:not(:empty),
.fri-tp-product-shell .fri-tp-search-results:not(:empty){
  padding:.42rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:rgba(255,255,255,.985);
  box-shadow:0 18px 50px rgba(23,32,51,.13);
  pointer-events:auto;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.fri-tp-runner-search .fri-tp-search-card,
.fri-tp-product-shell .fri-tp-search-card,
.fri-tp-product-shell .fri-tp-compare-search-results .fri-tp-search-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:1rem!important;
  width:100%!important;
  min-height:62px!important;
  padding:.78rem .95rem!important;
  border:1px solid transparent!important;
  border-radius:var(--fri-radius-sm)!important;
  background:#fff!important;
  color:var(--fri-text)!important;
  text-align:left!important;
  text-decoration:none!important;
  -webkit-text-fill-color:currentColor!important;
  box-shadow:none!important;
  transform:none!important;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
.fri-tp-runner-search .fri-tp-search-card:hover,
.fri-tp-runner-search .fri-tp-search-card:focus-visible,
.fri-tp-product-shell .fri-tp-search-card:hover,
.fri-tp-product-shell .fri-tp-search-card:focus-visible,
.fri-tp-product-shell .fri-tp-compare-search-results .fri-tp-search-card:hover,
.fri-tp-product-shell .fri-tp-compare-search-results .fri-tp-search-card:focus-visible{
  border-color:#B8C8DF!important;
  background:#FAFCFF!important;
  color:var(--fri-text)!important;
  -webkit-text-fill-color:var(--fri-text)!important;
  box-shadow:0 8px 24px rgba(23,32,51,.045)!important;
  transform:none!important;
}
.fri-tp-runner-search .fri-tp-search-card strong,
.fri-tp-product-shell .fri-tp-search-card strong{
  display:block;
  color:var(--fri-text)!important;
  font-size:.94rem!important;
  line-height:1.2!important;
  font-weight:620!important;
  -webkit-text-fill-color:var(--fri-text)!important;
  transition:color .16s ease!important;
}
.fri-tp-runner-search .fri-tp-search-card:hover strong,
.fri-tp-runner-search .fri-tp-search-card:focus-visible strong,
.fri-tp-product-shell .fri-tp-search-card:hover strong,
.fri-tp-product-shell .fri-tp-search-card:focus-visible strong{
  color:var(--fri-primary)!important;
  -webkit-text-fill-color:var(--fri-primary)!important;
}
.fri-tp-runner-search .fri-tp-search-card small,
.fri-tp-product-shell .fri-tp-search-card small{
  display:block;
  margin-top:.16rem!important;
  color:var(--fri-muted)!important;
  font-size:.76rem!important;
  line-height:1.3!important;
  font-weight:500!important;
  -webkit-text-fill-color:var(--fri-muted)!important;
}

/* ---------- Hub ---------- */
.fri-tp-hub-hero.fri-tp-hub-hero--utility{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(340px,.82fr);
  gap:clamp(2.25rem,5vw,5rem);
  align-items:end;
  padding:2.35rem 0 1.55rem;
}
.fri-tp-hub-hero-copy{position:relative;z-index:70;min-width:0}
.fri-tp-hub-hero.fri-tp-hub-hero--utility h1{
  max-width:680px;
  margin:0!important;
  color:var(--fri-text)!important;
  font-size:clamp(2.45rem,4.25vw,3.75rem)!important;
  line-height:.98!important;
  letter-spacing:-.04em!important;
  font-weight:var(--e-global-typography-primary-font-weight,600)!important;
}
.fri-tp-hub-hero.fri-tp-hub-hero--utility>.fri-tp-hub-hero-copy>p{
  max-width:650px;
  margin:.72rem 0 0;
  color:var(--fri-text-soft);
  font-size:.95rem;
  line-height:1.5;
}
.fri-tp-hub-hero .fri-tp-runner-search{margin-top:.9rem}
.fri-tp-hub-actions{margin-top:.35rem}
.fri-tp-text-link,
.fri-tp-hub-all-link{
  display:inline-flex;
  align-items:center;
  gap:.34rem;
  color:var(--fri-primary)!important;
  font-size:.8rem;
  font-weight:620;
  text-decoration:none!important;
}
.fri-tp-text-link:hover,
.fri-tp-hub-all-link:hover{color:var(--fri-primary-dark)!important}

.fri-tp-featured-race{
  position:relative;
  display:flex;
  min-height:245px;
  flex-direction:column;
  overflow:hidden;
  padding:1.25rem 1.3rem 1.15rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius-lg);
  background:linear-gradient(145deg,#fff 0%,#F8FAFD 100%);
  color:var(--fri-text)!important;
  text-decoration:none!important;
  box-shadow:0 16px 46px rgba(23,32,51,.05);
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.fri-tp-featured-race::before,
.fri-tp-hub-race-card::before,
.fri-tp-directory-card::before,
.fri-tp-race-page-head::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--fri-primary);
}
.is-track.fri-tp-featured-race::before,
.fri-tp-hub-race-card.is-track::before,
.fri-tp-directory-card.is-track::before,
.fri-tp-race-page-head.is-track::before{background:var(--fri-red)}
.is-trail.fri-tp-featured-race::before,
.fri-tp-hub-race-card.is-trail::before,
.fri-tp-directory-card.is-trail::before,
.fri-tp-race-page-head.is-trail::before{background:var(--fri-green)}
.fri-tp-featured-race:hover{
  border-color:#BAC8DA;
  transform:translateY(-2px);
  box-shadow:0 20px 54px rgba(23,32,51,.075);
}
.fri-tp-featured-race-top,
.fri-tp-featured-race-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.fri-tp-kicker{
  color:var(--fri-muted);
  font-size:.67rem;
  font-weight:620;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.fri-tp-race-type{
  color:var(--fri-primary);
  font-size:.66rem!important;
  line-height:1.1;
  font-weight:700!important;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.is-track .fri-tp-race-type{color:var(--fri-red)}
.is-trail .fri-tp-race-type{color:var(--fri-green)}
.fri-tp-featured-race-body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:center;
  padding:1.1rem 0 1.25rem;
}
.fri-tp-featured-race h2{
  max-width:520px;
  margin:0!important;
  color:var(--fri-text)!important;
  font-size:clamp(1.48rem,2.15vw,2.08rem)!important;
  line-height:1.05!important;
  letter-spacing:-.028em!important;
  font-weight:600!important;
}
.fri-tp-featured-race-body p{
  margin:.58rem 0 0;
  color:var(--fri-muted);
  font-size:.82rem;
  line-height:1.45;
}
.fri-tp-featured-race-bottom{
  padding-top:.82rem;
  border-top:1px solid var(--fri-border);
  color:var(--fri-text-soft);
  font-size:.75rem;
}
.fri-tp-featured-race-bottom strong{color:var(--fri-text);font-size:.95rem}
.fri-tp-featured-race-cta{color:var(--fri-primary);font-weight:620}
.is-track .fri-tp-featured-race-cta{color:var(--fri-red)}
.is-trail .fri-tp-featured-race-cta{color:var(--fri-green)}

.fri-tp-hub-stats.fri-tp-hub-stats--compact{
  display:grid;
  grid-template-columns:repeat(3,max-content);
  justify-content:start;
  gap:0;
  width:100%;
  margin:.1rem 0 0;
  padding:.85rem 0;
  border-top:1px solid var(--fri-border);
  border-bottom:1px solid var(--fri-border);
}
.fri-tp-hub-stats.fri-tp-hub-stats--compact>div{
  display:flex;
  align-items:baseline;
  gap:.4rem;
  margin-right:1.25rem;
  padding-right:1.25rem;
  border-right:1px solid var(--fri-border);
}
.fri-tp-hub-stats.fri-tp-hub-stats--compact>div:last-child{margin-right:0;padding-right:0;border-right:0}
.fri-tp-hub-stats strong{font-size:1.28rem!important;line-height:1;letter-spacing:-.025em}
.fri-tp-hub-stats span{color:var(--fri-muted);font-size:.72rem}

.fri-tp-hub-section{margin-top:2.35rem}
.fri-tp-hub-section h2{font-size:clamp(1.65rem,2.65vw,2.25rem)!important}
.fri-tp-hub-race-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.8rem;
  margin-top:1rem;
}
.fri-tp-hub-race-card,
.fri-tp-directory-card{
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
  color:var(--fri-text)!important;
  text-decoration:none!important;
  box-shadow:none;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.fri-tp-hub-race-card{
  min-height:154px;
  gap:.42rem;
  padding:1rem 1rem .9rem 1.08rem;
}
.fri-tp-hub-race-card:hover,
.fri-tp-directory-card:hover{
  border-color:#B8C8DF;
  background:#FCFDFF;
  transform:translateY(-1px);
}
.fri-tp-hub-race-card.is-road:hover,
.fri-tp-directory-card.is-road:hover{border-color:rgba(0,59,203,.48)}
.fri-tp-hub-race-card.is-trail:hover,
.fri-tp-directory-card.is-trail:hover{border-color:rgba(37,131,74,.52)}
.fri-tp-hub-race-card.is-track:hover,
.fri-tp-directory-card.is-track:hover{border-color:rgba(241,64,36,.5)}
.fri-tp-hub-race-card-top,
.fri-tp-directory-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.7rem;
}
.fri-tp-race-date,
.fri-tp-directory-card-top{color:var(--fri-muted);font-size:.7rem}
.fri-tp-hub-race-card>strong{
  margin-top:.16rem;
  color:var(--fri-text)!important;
  font-size:.98rem!important;
  line-height:1.18;
  font-weight:620!important;
}
.fri-tp-hub-race-card small{color:var(--fri-muted);font-size:.74rem;line-height:1.35}
.fri-tp-race-count{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;
  padding-top:.5rem;
  color:var(--fri-text-soft);
  font-size:.71rem;
  font-weight:600;
}
.fri-tp-race-count b{color:var(--fri-primary)}
.is-track .fri-tp-race-count b{color:var(--fri-red)}
.is-trail .fri-tp-race-count b{color:var(--fri-green)}

.fri-tp-hub-explore{margin-top:2.65rem;padding-bottom:2rem}
.fri-tp-hub-explore-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.15rem;
  margin-top:1rem;
}
.fri-tp-hub-explore-grid>div{padding:.9rem 1rem .9rem 0;border-top:1px solid var(--fri-border)}
.fri-tp-hub-explore-grid strong{display:block;color:var(--fri-text);font-size:1.02rem}
.fri-tp-hub-explore-grid span{display:block;margin-top:.28rem;color:var(--fri-muted);font-size:.82rem}
.fri-tp-explore-index{margin-bottom:.55rem!important;color:#9BA7B8!important;font-size:.65rem!important;letter-spacing:.08em}

/* ---------- Race directory ---------- */
.fri-tp-race-directory{padding:1rem 0 2.25rem}
.fri-tp-directory-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1.5rem;
  padding:.55rem 0 1.25rem;
}
.fri-tp-directory-head h1,
.fri-tp-race-page-head h1{
  margin:0!important;
  color:var(--fri-text)!important;
  font-size:clamp(2.2rem,4vw,3.55rem)!important;
  line-height:.99!important;
  letter-spacing:-.04em!important;
  font-weight:600!important;
}
.fri-tp-directory-head p,
.fri-tp-race-page-head p{
  max-width:760px;
  margin:.72rem 0 0;
  color:var(--fri-text-soft);
  font-size:.93rem;
  line-height:1.5;
}
.fri-tp-directory-filters{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.9rem 0;
  border-top:1px solid var(--fri-border);
  border-bottom:1px solid var(--fri-border);
}
.fri-tp-directory-tabs{display:flex;gap:.3rem;flex-wrap:wrap}
.fri-tp-directory-tabs a{
  padding:.54rem .82rem;
  border-radius:999px;
  color:var(--fri-text-soft)!important;
  font-size:.8rem;
  line-height:1;
  font-weight:620;
  text-decoration:none!important;
}
.fri-tp-directory-tabs a:hover{background:var(--fri-soft);color:var(--fri-primary)!important}
.fri-tp-directory-tabs a.is-active{background:var(--fri-primary);color:#fff!important}
.fri-tp-directory-filters label{display:flex;align-items:center;gap:.52rem;color:var(--fri-muted);font-size:.78rem}
.fri-tp-directory-filters select{
  min-height:40px;
  padding:.45rem 2rem .45rem .72rem;
  border:1px solid var(--fri-border-strong);
  border-radius:var(--fri-radius-sm);
  background:#fff;
  color:var(--fri-text);
  font:inherit;
  outline:none;
}
.fri-tp-directory-filters select:focus{border-color:var(--fri-primary);box-shadow:var(--fri-focus)}
.fri-tp-race-directory-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
  margin-top:1.2rem;
}
.fri-tp-directory-card{min-height:180px;padding:1rem 1.05rem}
.fri-tp-directory-card h2{
  margin:.85rem 0 .4rem!important;
  color:var(--fri-text)!important;
  font-size:1.08rem!important;
  line-height:1.16!important;
  letter-spacing:-.015em!important;
  font-weight:620!important;
}
.fri-tp-directory-card p{margin:0;color:var(--fri-muted);font-size:.79rem;line-height:1.42}
.fri-tp-directory-card-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;
  padding-top:.85rem;
  color:var(--fri-text-soft);
  font-size:.75rem;
  font-weight:600;
}

/* ---------- Race detail ---------- */
.fri-tp-race-page{padding:1rem 0 2.25rem}
.fri-tp-race-page-head{
  position:relative;
  overflow:hidden;
  padding:1.4rem 1.5rem 1.45rem 1.7rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius-lg);
  background:#fff;
}
.fri-tp-race-page-head h1{margin-top:.45rem!important}
.fri-tp-race-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:1rem 0 0;
  overflow:hidden;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
}
.fri-tp-race-facts>div{padding:1rem 1.15rem;border-right:1px solid var(--fri-border)}
.fri-tp-race-facts>div:last-child{border-right:0}
.fri-tp-race-facts strong{display:block;color:var(--fri-text);font-size:1.35rem;line-height:1;letter-spacing:-.025em}
.fri-tp-race-facts span{display:block;margin-top:.3rem;color:var(--fri-muted);font-size:.72rem}
.fri-tp-public-results a,
.fri-tp-public-results .fri-runner-name{
  color:var(--fri-text)!important;
  text-decoration:none!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:inherit!important;
  transition:color .15s ease!important;
}
.fri-tp-public-results a:hover,
.fri-tp-public-results a:focus-visible{color:var(--fri-primary)!important;text-decoration:none!important}
.fri-tp-public-results a:hover strong,
.fri-tp-public-results a:focus-visible strong{color:var(--fri-primary)!important}
.fri-tp-result-flag{display:inline-block;margin-left:.35rem;color:var(--fri-primary);font-size:.68rem;font-weight:700}

.fri-tp-result-filters{
  display:flex;
  align-items:flex-end;
  gap:.7rem;
  flex-wrap:wrap;
  margin:1rem 0 .9rem;
  padding:.8rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:var(--fri-soft);
}
.fri-tp-result-filters label{display:grid;gap:.32rem;min-width:150px}
.fri-tp-result-filters label:first-child{min-width:190px}
.fri-tp-result-filters label span{
  color:var(--fri-muted);
  font-size:.67rem;
  line-height:1;
  font-weight:620;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.fri-tp-result-filters select{
  min-height:42px;
  padding:.52rem 2rem .52rem .72rem;
  border:1px solid var(--fri-border-strong);
  border-radius:var(--fri-radius-sm);
  background:#fff;
  color:var(--fri-text);
  font-family:var(--fri-font-text)!important;
  font-size:.8rem;
  font-weight:560;
  outline:none;
}
.fri-tp-result-filters select:focus{border-color:var(--fri-primary);box-shadow:var(--fri-focus)}
.fri-tp-filter-reset{
  align-self:center;
  margin-left:auto;
  color:var(--fri-primary)!important;
  font-size:.76rem;
  font-weight:620;
  text-decoration:none!important;
}
.fri-tp-filter-count{color:var(--fri-muted);font-size:.74rem;font-weight:560;white-space:nowrap}
.fri-tp-unified-results th:first-child,
.fri-tp-unified-results td:first-child{width:9%}
.fri-tp-unified-results th:nth-child(2),
.fri-tp-unified-results td:nth-child(2){width:31%}
.fri-tp-unified-results th:nth-child(3),
.fri-tp-unified-results td:nth-child(3){width:25%}
.fri-tp-unified-results th:nth-child(4),
.fri-tp-unified-results td:nth-child(4){width:17%}
.fri-tp-unified-results th:last-child,
.fri-tp-unified-results td:last-child{width:18%}
.fri-tp-runner-cell{display:flex;min-width:0;flex-direction:column;gap:.15rem}
.fri-tp-runner-cell small{color:var(--fri-muted);font-size:.68rem;line-height:1.2;font-weight:500}
.fri-tp-itra-attribution{margin:1rem 0 0;color:var(--fri-muted);font-size:.73rem}
.fri-tp-itra-attribution a{color:inherit}

/* ---------- Profile composition: same rail as the rest of the product ---------- */
.fri-tp-app.fri-tp-product-shell{
  --fri-content-max:var(--fri-shell-width)!important;
  padding:1rem 0 2.5rem!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile,
.fri-tp-app.fri-tp-product-shell .fri-tp-search-panel{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head,
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row,
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs,
.fri-tp-app.fri-tp-product-shell .fri-tp-summary-grid,
.fri-tp-app.fri-tp-product-shell .fri-tp-wa-index-section,
.fri-tp-app.fri-tp-product-shell .fri-tp-latest-race-wrap,
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel>.fri-tp-section,
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel>.fri-tp-section-no-border{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-navline{margin-bottom:3rem}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-load-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  width:100%;
  margin:0 0 1rem;
  padding:1rem 1.05rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
  color:var(--fri-text);
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-load-status[hidden]{display:none!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-load-status a{color:var(--fri-primary);text-decoration:none}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.18fr) minmax(350px,.82fr)!important;
  align-items:end!important;
  column-gap:clamp(3.25rem,6vw,6rem)!important;
  width:100%!important;
  max-width:none!important;
  min-height:174px!important;
  margin:0 0 1rem!important;
  padding:1.5rem 1.65rem 1.25rem!important;
  overflow:visible!important;
  border:1px solid var(--fri-border)!important;
  border-radius:var(--fri-radius-lg)!important;
  background:#fff!important;
  box-shadow:none!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity{
  min-width:0!important;
  padding:1.45rem 0 0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity h2{
  max-width:680px!important;
  margin:0 0 .4rem!important;
  color:var(--fri-text)!important;
  font-family:var(--fri-font-heading)!important;
  font-size:clamp(2.3rem,4.15vw,3.7rem)!important;
  line-height:.98!important;
  letter-spacing:-.042em!important;
  font-weight:600!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-subline{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:.35rem .7rem!important;
  margin-top:.42rem!important;
  color:var(--fri-muted)!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-avatar{
  position:absolute!important;
  z-index:5!important;
  top:0!important;
  left:50%!important;
  width:108px!important;
  height:108px!important;
  margin:0!important;
  transform:translate(-50%,-48%)!important;
  overflow:hidden!important;
  border:5px solid #fff!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 0 0 2px #DCE4EF!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-header-index{
  align-self:end!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:50px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs{
  display:flex!important;
  align-items:center!important;
  gap:.28rem!important;
  overflow-x:auto!important;
  margin:0!important;
  padding:.05rem 0!important;
  border:0!important;
  scrollbar-width:none;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs::-webkit-scrollbar{display:none}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button{
  min-height:40px!important;
  padding:.55rem .88rem!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--fri-muted)!important;
  font-size:.75rem!important;
  line-height:1!important;
  font-weight:620!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button:hover{background:var(--fri-soft)!important;color:var(--fri-primary)!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button.is-active{
  background:var(--fri-primary)!important;
  color:#fff!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-summary-grid{margin-top:1.05rem!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel>.fri-tp-section,
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel>.fri-tp-section-no-border{margin-top:2.55rem!important}

/* ---------- Pagination ---------- */
.fri-tp-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.75rem;
  margin:1.35rem 0 .2rem;
}
.fri-tp-pagination-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:.55rem .82rem;
  border:1px solid var(--fri-border);
  border-radius:999px;
  background:#fff;
  color:var(--fri-text)!important;
  font-size:.75rem;
  font-weight:620;
  text-decoration:none!important;
}
.fri-tp-pagination-link:hover{border-color:#B8C8DF;color:var(--fri-primary)!important}
.fri-tp-pagination-link.is-disabled{opacity:.38;pointer-events:none}
.fri-tp-pagination-status{color:var(--fri-muted);font-size:.75rem;font-weight:560}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .fri-tp-hub-hero.fri-tp-hub-hero--utility{
    grid-template-columns:minmax(0,1fr) minmax(300px,.78fr);
    gap:2rem;
  }
  .fri-tp-featured-race{min-height:225px}
  .fri-tp-hub-race-grid,
  .fri-tp-race-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    grid-template-columns:minmax(0,1fr) 330px!important;
    column-gap:2.4rem!important;
  }
}

@media(max-width:760px){
  .fri-tp-product-shell{width:min(calc(100% - 28px),var(--fri-shell-width))!important}
  .fri-tp-navline{align-items:flex-start;flex-direction:column-reverse;gap:.65rem;margin-bottom:1rem;padding-top:.3rem}
  .fri-tp-breadcrumbs [aria-current="page"]{max-width:70vw}
  .fri-tp-context-back{font-size:.72rem}

  .fri-tp-hub-hero.fri-tp-hub-hero--utility{grid-template-columns:1fr;gap:1.25rem;padding:1.25rem 0 1.15rem}
  .fri-tp-hub-hero.fri-tp-hub-hero--utility h1{font-size:clamp(2.25rem,10.5vw,3.05rem)!important}
  .fri-tp-featured-race{min-height:205px}
  .fri-tp-hub-stats.fri-tp-hub-stats--compact{grid-template-columns:repeat(3,1fr)}
  .fri-tp-hub-stats.fri-tp-hub-stats--compact>div{display:block;margin-right:.65rem;padding-right:.65rem}
  .fri-tp-hub-stats strong{font-size:1.05rem!important}
  .fri-tp-hub-stats span{display:block;margin-top:.15rem;font-size:.61rem}
  .fri-tp-hub-race-grid,
  .fri-tp-race-directory-grid,
  .fri-tp-hub-explore-grid{grid-template-columns:1fr}
  .fri-tp-directory-head{align-items:flex-start;flex-direction:column;padding-top:.2rem}
  .fri-tp-directory-filters{align-items:flex-start;flex-direction:column}
  .fri-tp-race-facts{grid-template-columns:1fr}
  .fri-tp-race-facts>div{border-right:0;border-bottom:1px solid var(--fri-border)}
  .fri-tp-race-facts>div:last-child{border-bottom:0}

  .fri-tp-app.fri-tp-product-shell{padding-top:.55rem!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-navline{margin-bottom:1.25rem}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    display:block!important;
    min-height:0!important;
    padding:1.15rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-avatar{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    width:82px!important;
    height:82px!important;
    margin:0 0 .9rem!important;
    transform:none!important;
    border-width:4px!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity{padding:0!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity h2{
    font-size:clamp(2rem,10vw,2.85rem)!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-header-index{margin-top:1rem!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row{margin-top:.2rem!important}
}

@media(max-width:520px){
  .fri-tp-runner-search .fri-tp-search-form,
  .fri-tp-product-shell .fri-tp-search-form{grid-template-columns:1fr}
  .fri-tp-runner-search .fri-tp-search-form button,
  .fri-tp-product-shell .fri-tp-search-form button{width:100%}
  .fri-tp-featured-race{padding:1.05rem 1rem 1rem 1.1rem}
  .fri-tp-featured-race-bottom{align-items:flex-start;flex-direction:column;gap:.4rem}
  .fri-tp-hub-stats.fri-tp-hub-stats--compact{grid-template-columns:1fr}
  .fri-tp-hub-stats.fri-tp-hub-stats--compact>div{
    display:flex;
    margin:0;
    padding:.38rem 0;
    border-right:0;
    border-bottom:1px solid var(--fri-border);
  }
  .fri-tp-hub-stats.fri-tp-hub-stats--compact>div:last-child{border-bottom:0}
  .fri-tp-pagination{gap:.4rem}
  .fri-tp-pagination-link{min-height:38px;padding:.5rem .65rem;font-size:.69rem}
  .fri-tp-pagination-status{font-size:.69rem}
}



@media (max-width:720px){
  .fri-tp-result-filters{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;padding:.7rem}
  .fri-tp-result-filters label,.fri-tp-result-filters label:first-child{min-width:0}
  .fri-tp-filter-reset{grid-column:1/-1;margin:0}
  .fri-tp-filter-count{display:none}
  .fri-tp-unified-results{min-width:700px}
  .fri-tp-runner-search .fri-tp-search-results,
  .fri-tp-product-shell .fri-tp-search-results{max-height:52vh}
}

/* ==========================================================
   v1.16.2 — PROFILE CARDS + OFFICIAL ITRA ATTRIBUTION
   Keep the information density; unify surfaces with the public hub.
   ========================================================== */

/* Profile overview modules use the same soft card language as the hub. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list{
  gap:.78rem!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-result{
  overflow:hidden!important;
  border:1px solid var(--fri-border)!important;
  border-radius:var(--fri-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-result:hover{
  border-color:#C8D5E6!important;
  box-shadow:0 8px 22px rgba(17,37,67,.055)!important;
  transform:translateY(-1px)!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-grid{
  gap:.78rem!important;
  border:0!important;
  background:transparent!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb{
  overflow:hidden!important;
  border:1px solid var(--fri-border)!important;
  border-radius:var(--fri-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb + .fri-tp-pb{
  border-left:1px solid var(--fri-border)!important;
  border-top:1px solid var(--fri-border)!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb:hover{
  border-color:#C8D5E6!important;
  box-shadow:0 8px 22px rgba(17,37,67,.055)!important;
  transform:translateY(-1px)!important;
}

.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-insight-grid{
  gap:.78rem!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-insight-card{
  border:1px solid var(--fri-border)!important;
  border-radius:var(--fri-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-insight-card + .fri-tp-insight-card{
  border-left:1px solid var(--fri-border)!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-milestones{
  gap:.78rem!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-milestone{
  border:1px solid var(--fri-border)!important;
  border-radius:var(--fri-radius)!important;
  background:#fff!important;
}

/* Official ITRA API attribution. Badge remains unmodified and above the
   120px horizontal digital minimum; surrounding padding supplies clear space. */
.fri-tp-itra-attribution{
  display:flex;
  align-items:center;
  gap:1.25rem;
  margin:1.25rem 0 0!important;
  padding:1rem 1.1rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
  color:var(--fri-text);
}
.fri-tp-itra-badge-link{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  padding:.55rem;
  border-radius:8px;
  text-decoration:none!important;
}
.fri-tp-itra-badge-link:focus-visible{outline:2px solid var(--fri-primary);outline-offset:3px}
.fri-tp-itra-badge-link img{
  display:block;
  width:150px;
  min-width:150px;
  max-width:150px;
  height:auto;
  margin:0;
  padding:0;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
  box-shadow:none!important;
}
.fri-tp-itra-attribution>div{min-width:0}
.fri-tp-itra-attribution strong{
  display:block;
  margin:0 0 .18rem;
  color:var(--fri-text);
  font-size:.82rem;
  line-height:1.2;
  font-weight:680;
}
.fri-tp-itra-attribution span{
  display:block;
  color:var(--fri-muted);
  font-size:.73rem;
  line-height:1.45;
}

@media(max-width:760px){
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-grid,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-insight-grid{
    gap:.65rem!important;
  }
  .fri-tp-itra-attribution{
    align-items:flex-start;
    flex-direction:column;
    gap:.7rem;
    padding:.9rem;
  }
  .fri-tp-itra-badge-link{padding:.45rem}
  .fri-tp-itra-badge-link img{width:140px;min-width:140px;max-width:140px}
}

/* ==========================================================
   v1.16.3 — DISCOVERY LINKS, SOURCE BADGES + TRAIL PROFILES
   ========================================================== */

/* Useful running services replace the duplicate "see races" action. */
.fri-tp-service-pills{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.85rem;
}
.fri-tp-service-pills a{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  min-height:36px;
  padding:.48rem .72rem;
  border:1px solid var(--fri-border);
  border-radius:999px;
  background:#fff;
  color:var(--fri-text-soft)!important;
  font-size:.72rem;
  line-height:1;
  font-weight:620;
  text-decoration:none!important;
  transition:border-color .16s ease,color .16s ease,background .16s ease,transform .16s ease;
}
.fri-tp-service-pills a span{color:var(--fri-primary);font-size:.85rem}
.fri-tp-service-pills a:hover{
  border-color:rgba(0,59,203,.32);
  background:#F8FAFF;
  color:var(--fri-primary)!important;
  transform:translateY(-1px);
}

/* Provider / certification identity on public race cards. */
.fri-tp-card-source-badge{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:.35rem;
  width:max-content;
  margin:.05rem 0 .18rem;
  pointer-events:none;
}
.fri-tp-card-source-badge.is-itra img{
  display:block;
  width:120px;
  min-width:120px;
  max-width:120px;
  height:auto;
  margin:0;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
  box-shadow:none!important;
}
.fri-tp-card-source-badge.is-fri{
  min-height:24px;
  padding:.25rem .45rem .25rem .34rem;
  border:1px solid rgba(0,59,203,.16);
  border-radius:999px;
  background:#F7F9FF;
  color:var(--fri-primary);
  font-size:.61rem;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.fri-tp-card-source-badge.is-fri img{
  display:block;
  width:24px;
  max-width:24px;
  max-height:18px;
  object-fit:contain;
}
.fri-tp-card-source-badge.is-fri b{font-size:.68rem;letter-spacing:.04em}

/* ITRA attribution belongs before the result table, where the data source is visible. */
.fri-tp-race-page-head + .fri-tp-race-facts + .fri-tp-itra-attribution{
  margin-top:1rem!important;
  margin-bottom:.15rem!important;
}

/* Clickable profile cards feel like cards, not blue text links. */
a.fri-tp-recent-result,
a.fri-tp-pb,
a.fri-tp-trail-result-card{
  color:var(--fri-text)!important;
  text-decoration:none!important;
}
.fri-tp-recent-result.is-clickable,
.fri-tp-pb.is-clickable,
.fri-tp-trail-result-card.is-clickable{cursor:pointer}
.fri-tp-recent-result.is-trail::before{background:var(--fri-green)!important}
.fri-tp-surface-text.is-trail{color:var(--fri-green)!important}
.fri-tp-history-extra{display:block;margin-top:.12rem;color:var(--fri-muted);font-size:.66rem;font-weight:520}

/* Trail results on profiles use the same visual family as road/track cards. */
.fri-tp-trail-section-head{align-items:center}
.fri-tp-profile-itra-badge{
  display:block;
  width:120px;
  min-width:120px;
  max-width:120px;
  height:auto;
  margin:0;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
  box-shadow:none!important;
}
.fri-tp-eyebrow.is-trail{color:var(--fri-green)!important}
.fri-tp-trail-profile-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.78rem;
}
.fri-tp-trail-result-card{
  position:relative;
  display:flex;
  min-height:166px;
  flex-direction:column;
  overflow:hidden;
  padding:1rem 1rem .9rem 1.08rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
  box-shadow:none;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.fri-tp-trail-result-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--fri-green);
}
.fri-tp-trail-result-card:hover{
  border-color:rgba(37,131,74,.48);
  box-shadow:0 8px 22px rgba(17,37,67,.05);
  transform:translateY(-1px);
}
.fri-tp-trail-result-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  color:var(--fri-green);
  font-size:.68rem;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.fri-tp-trail-result-top b{color:var(--fri-muted);font-size:.65rem;font-weight:620;letter-spacing:0;text-transform:none}
.fri-tp-trail-result-time{
  display:block;
  margin:.55rem 0 .35rem;
  color:var(--fri-text);
  font-size:1.75rem;
  line-height:1;
  letter-spacing:-.035em;
}
.fri-tp-trail-result-race{margin-top:.12rem;color:var(--fri-text);font-size:.78rem;font-weight:650;line-height:1.3}
.fri-tp-trail-result-card small{display:block;margin-top:.28rem;color:var(--fri-muted);font-size:.68rem;line-height:1.35}

@media(max-width:900px){
  .fri-tp-trail-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .fri-tp-service-pills{gap:.42rem}
  .fri-tp-service-pills a{font-size:.68rem}
  .fri-tp-trail-profile-grid{grid-template-columns:1fr}
  .fri-tp-trail-section-head{align-items:flex-start;flex-direction:column;gap:.7rem}
}

/* ==========================================================
   v1.16.4 — ITRA PROFILE DATA + SOURCE IDENTITY POLISH
   ========================================================== */

/* Service pills: stronger FRÍ interaction while remaining quiet at rest. */
.fri-tp-service-pills a:hover,
.fri-tp-service-pills a:focus-visible{
  border-color:var(--fri-primary)!important;
  background:var(--fri-primary)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(0,59,203,.13);
}
.fri-tp-service-pills a:hover span,
.fri-tp-service-pills a:focus-visible span{color:#fff!important}

/* Provider identity belongs in the upper-right of a race card. */
.fri-tp-featured-race .fri-tp-card-source-badge,
.fri-tp-hub-race-card .fri-tp-card-source-badge,
.fri-tp-directory-card .fri-tp-card-source-badge{
  position:absolute;
  z-index:2;
  top:2.18rem;
  right:1rem;
  margin:0!important;
}
.fri-tp-featured-race .fri-tp-card-source-badge{right:1.28rem;top:2.35rem}
.fri-tp-card-source-badge.is-fri{
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.fri-tp-card-source-badge.is-fri img{
  width:30px!important;
  max-width:30px!important;
  max-height:24px!important;
  object-fit:contain!important;
}
.fri-tp-card-source-badge.is-itra img{
  width:120px!important;
  min-width:120px!important;
  max-width:120px!important;
}
.fri-tp-hub-race-card:has(.fri-tp-card-source-badge)>strong,
.fri-tp-directory-card:has(.fri-tp-card-source-badge)>h2{
  padding-right:7.9rem;
}
.fri-tp-hub-race-card:has(.fri-tp-card-source-badge.is-fri)>strong,
.fri-tp-directory-card:has(.fri-tp-card-source-badge.is-fri)>h2{
  padding-right:2.6rem;
}

/* ITRA information sits directly under the six career totals. */
.fri-tp-profile-provider-summary{
  display:grid;
  grid-template-columns:minmax(135px,1.15fr) repeat(3,minmax(115px,.85fr)) auto;
  align-items:center;
  gap:0;
  width:100%;
  margin:.65rem 0 0;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#FBFCFA;
  overflow:hidden;
}
.fri-tp-profile-provider-summary[hidden]{display:none!important}
.fri-tp-provider-summary-brand,
.fri-tp-provider-summary-stat,
.fri-tp-provider-summary-link{
  min-height:68px;
  display:flex;
  align-items:center;
  padding:.72rem .9rem;
}
.fri-tp-provider-summary-brand img{
  display:block;
  width:120px;
  min-width:120px;
  max-width:120px;
  height:auto;
  filter:none!important;
  opacity:1!important;
  box-shadow:none!important;
}
.fri-tp-provider-summary-stat{
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  border-left:1px solid var(--fri-border);
}
.fri-tp-provider-summary-stat span{
  color:var(--fri-muted);
  font-size:.62rem;
  font-weight:620;
  letter-spacing:.02em;
}
.fri-tp-provider-summary-stat strong{
  margin-top:.18rem;
  color:var(--fri-text);
  font-size:1.05rem;
  line-height:1.05;
  font-weight:680;
}
.fri-tp-provider-summary-link{
  justify-content:flex-end;
  border-left:1px solid var(--fri-border);
  color:var(--fri-green)!important;
  font-size:.69rem;
  font-weight:650;
  text-decoration:none!important;
  white-space:nowrap;
}
.fri-tp-provider-summary-link:hover{color:#176635!important}

@media(max-width:900px){
  .fri-tp-profile-provider-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-provider-summary-brand,
  .fri-tp-provider-summary-stat,
  .fri-tp-provider-summary-link{border-bottom:1px solid var(--fri-border)}
  .fri-tp-provider-summary-stat:nth-child(2){border-left:1px solid var(--fri-border)}
  .fri-tp-provider-summary-stat:nth-child(3){border-left:0}
  .fri-tp-provider-summary-link{justify-content:flex-start}
}
@media(max-width:620px){
  .fri-tp-featured-race .fri-tp-card-source-badge,
  .fri-tp-hub-race-card .fri-tp-card-source-badge,
  .fri-tp-directory-card .fri-tp-card-source-badge{top:2.1rem;right:.8rem}
  .fri-tp-hub-race-card:has(.fri-tp-card-source-badge)>strong,
  .fri-tp-directory-card:has(.fri-tp-card-source-badge)>h2{padding-right:0;margin-top:1.55rem!important}
  .fri-tp-profile-provider-summary{grid-template-columns:1fr}
  .fri-tp-provider-summary-brand,
  .fri-tp-provider-summary-stat,
  .fri-tp-provider-summary-link{min-height:58px;border-left:0!important;border-bottom:1px solid var(--fri-border)}
  .fri-tp-provider-summary-link:last-child{border-bottom:0}
}

/* ================================================================
   v1.16.5 — unified FRÍ / ITRA performance modules
   ================================================================ */
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
  align-items:center!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-score-stack{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:.65rem!important;
  align-self:center!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-score-stack>.fri-tp-header-index{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-score-stack>.fri-tp-header-index[hidden]{display:none!important}

.fri-tp-score-card{
  width:100%;
  min-width:0;
  padding:.78rem .85rem .72rem;
  border:1px solid var(--fri-border);
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
.fri-tp-score-card--fri{border-left:3px solid var(--fri-primary)}
.fri-tp-score-card--itra{border-left:3px solid #70A942;background:#FCFEFB}
.fri-tp-score-card.is-unavailable{background:#FCFDFE}
.fri-tp-score-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.85rem;
}
.fri-tp-score-card-kicker{
  display:block;
  margin:0 0 .08rem;
  color:var(--fri-muted);
  font-size:.60rem;
  line-height:1.15;
  font-weight:720;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.fri-tp-score-card-value{
  display:block;
  color:var(--fri-text);
  font-size:2rem;
  line-height:.95;
  letter-spacing:-.045em;
  font-weight:700;
}
.fri-tp-score-card-brand{
  color:var(--fri-primary);
  font-size:.68rem;
  line-height:1;
  font-weight:760;
  letter-spacing:.06em;
}
.fri-tp-score-card-badge{
  display:block!important;
  width:120px!important;
  min-width:120px!important;
  max-width:120px!important;
  height:auto!important;
  margin:.05rem 0 0!important;
  object-fit:contain!important;
}
.fri-tp-score-card-scale{
  margin:.28rem 0 .12rem;
}
.fri-tp-score-card .fri-tp-wa-index-scale{
  margin:.1rem 0 0!important;
  padding:0!important;
}
.fri-tp-score-card .fri-tp-relative-meter{min-height:30px!important}
.fri-tp-score-card .fri-tp-relative-track{height:5px!important}
.fri-tp-score-card .fri-tp-relative-labels{font-size:.48rem!important}
.fri-tp-score-card-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75rem;
  margin-top:.38rem;
  padding-top:.5rem;
  border-top:1px solid var(--fri-border);
}
.fri-tp-score-card-metrics>div{min-width:0}
.fri-tp-score-card-metrics span,
.fri-tp-score-card-metrics small{
  display:block;
  color:var(--fri-muted);
  font-size:.52rem;
  line-height:1.25;
}
.fri-tp-score-card-metrics strong{
  display:block;
  margin:.04rem 0 .07rem;
  color:var(--fri-text);
  font-size:.74rem;
  line-height:1.15;
  font-weight:700;
}
.fri-tp-score-card-metrics strong.is-positive{color:var(--fri-primary)}

.fri-tp-itra-meter{
  position:relative;
  height:5px;
  margin:.48rem 0 .18rem;
  overflow:hidden;
  border-radius:999px;
  background:#E7ECE4;
}
.fri-tp-itra-meter-fill{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#397C50 0%,#65BA72 56%,#A8D36A 100%);
}
.fri-tp-itra-meter-labels{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#899487;
  font-size:.48rem;
  line-height:1;
  font-weight:650;
}
.fri-tp-score-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  margin-top:.48rem;
  padding-top:.45rem;
  border-top:1px solid #E6EDE3;
  color:#667363;
  font-size:.52rem;
  line-height:1.25;
}
.fri-tp-score-card-foot a{
  flex:0 0 auto;
  color:#277B43!important;
  font-weight:700;
  text-decoration:none!important;
}
.fri-tp-score-card-foot a:hover{color:#176635!important}

/* PI now lives beside the FRÍ score; keep the lower strip for trail totals. */
.fri-tp-profile-provider-summary{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.fri-tp-profile-provider-summary>.fri-tp-provider-summary-stat:first-child{border-left:0!important}

@media(max-width:980px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    grid-template-columns:minmax(0,1fr) 350px!important;
  }
}
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-score-stack{margin-top:1rem!important}
  .fri-tp-score-card-badge{width:120px!important;min-width:120px!important}
  .fri-tp-profile-provider-summary{grid-template-columns:1fr!important}
}
@media(max-width:430px){
  .fri-tp-score-card-head{gap:.5rem}
  .fri-tp-score-card-badge{width:120px!important;min-width:120px!important}
  .fri-tp-score-card-metrics{grid-template-columns:1fr;gap:.45rem}
  .fri-tp-score-card-foot{align-items:flex-start;flex-direction:column}
}

/* ================================================================
   v1.16.6 — event consolidation + matched FRÍ / ITRA score cards
   ================================================================ */
.fri-tp-fri-meter{
  position:relative;
  height:5px;
  margin:.48rem 0 .18rem;
  overflow:hidden;
  border-radius:999px;
  background:#E4EAF5;
}
.fri-tp-fri-meter-fill{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--fri-primary);
}
.fri-tp-fri-meter-labels{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#8390A6;
  font-size:.48rem;
  line-height:1;
  font-weight:650;
}
.fri-tp-score-card-foot--fri{
  border-top-color:#E5EAF2;
  color:#68748A;
}
.fri-tp-score-card-context{
  flex:0 1 auto;
  text-align:right;
  color:var(--fri-muted);
}
.fri-tp-score-card-foot a{
  font-size:.48rem!important;
  letter-spacing:.01em;
}
.fri-tp-directory-card .fri-tp-directory-distance-list,
.fri-tp-hub-race-card .fri-tp-directory-distance-list{
  display:inline-flex;
  flex-wrap:wrap;
  gap:.25rem;
}
@media(max-width:430px){
  .fri-tp-score-card-context{text-align:left}
}

/* ==========================================================
   v1.17.0 — DATA MODEL CLEANUP, PREFETCH + PROFILE CLAIM FLOW
   ========================================================== */

/* Hub totals no longer imply a canonical unique athlete count. */
.fri-tp-hub-stats.fri-tp-hub-stats--two{grid-template-columns:repeat(2,max-content)!important}

/* Race-card identity stays in the upper-right; date belongs with the result count. */
.fri-tp-featured-race .fri-tp-card-source-badge,
.fri-tp-hub-race-card .fri-tp-card-source-badge,
.fri-tp-directory-card .fri-tp-card-source-badge{top:.95rem!important;right:1rem!important}
.fri-tp-featured-race .fri-tp-card-source-badge{top:1.12rem!important;right:1.28rem!important}
.fri-tp-hub-race-card-top{min-height:20px;padding-right:8rem}
.fri-tp-hub-race-card:has(.fri-tp-card-source-badge.is-fri) .fri-tp-hub-race-card-top{padding-right:3rem}
.fri-tp-hub-race-card-bottom{
  display:grid;
  grid-template-columns:1fr;
  gap:.24rem;
  margin-top:auto;
  padding-top:.48rem;
}
.fri-tp-hub-race-card-bottom .fri-tp-race-date{font-size:.68rem;line-height:1.2}
.fri-tp-hub-race-card-bottom .fri-tp-race-count{margin-top:0;padding-top:0}

/* Search-to-profile prefetch indicator stays in the search context. */
.fri-tp-inline-loader{
  display:inline-block;
  width:12px;
  height:12px;
  margin-right:.42rem;
  border:2px solid rgba(0,59,203,.18);
  border-top-color:var(--fri-primary);
  border-radius:50%;
  vertical-align:-1px;
  animation:friTpSpin .72s linear infinite;
}
@keyframes friTpSpin{to{transform:rotate(360deg)}}

/* Passport now treats trail as a first-class competition surface. */
.fri-tp-surface-columns{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.fri-tp-surface-column.is-trail .fri-tp-surface-column-head strong{color:var(--fri-green)}
.fri-tp-event-count-chip.is-static{cursor:default}

/* Moderated public ITRA-profile link request. */
.fri-tp-itra-claim{
  width:100%;
  margin:.65rem 0 .2rem;
}
.fri-tp-itra-claim-details{
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#FCFDFE;
  overflow:hidden;
}
.fri-tp-itra-claim-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.72rem .9rem;
  color:var(--fri-primary);
  font-size:.75rem;
  font-weight:650;
  cursor:pointer;
  list-style:none;
}
.fri-tp-itra-claim-details summary::-webkit-details-marker{display:none}
.fri-tp-itra-claim-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,.95fr);
  gap:1rem;
  padding:0 .9rem .9rem;
  border-top:1px solid var(--fri-border);
}
.fri-tp-itra-claim-copy{padding-top:.85rem}
.fri-tp-itra-claim-copy strong{display:block;font-size:.92rem;color:var(--fri-text)}
.fri-tp-itra-claim-copy p{margin:.3rem 0;color:var(--fri-muted);font-size:.75rem;line-height:1.45}
.fri-tp-itra-claim-copy a{color:var(--fri-green)!important;font-size:.72rem;font-weight:620;text-decoration:none!important}
.fri-tp-itra-claim-form{
  display:grid;
  grid-template-columns:1fr 1.2fr auto;
  align-items:end;
  gap:.55rem;
  padding-top:.75rem;
}
.fri-tp-itra-claim-form label span{display:block;margin:0 0 .22rem;color:var(--fri-muted);font-size:.62rem;font-weight:620;text-transform:uppercase;letter-spacing:.045em}
.fri-tp-itra-claim-form input{
  width:100%;
  min-height:38px;
  padding:.48rem .62rem;
  border:1px solid var(--fri-border);
  border-radius:10px;
  background:#fff;
  color:var(--fri-text);
}
.fri-tp-itra-claim-form button{
  min-height:38px;
  padding:.5rem .75rem;
  border:0;
  border-radius:10px;
  background:var(--fri-primary);
  color:#fff;
  font-size:.71rem;
  font-weight:650;
  cursor:pointer;
}
.fri-tp-itra-claim-form button:disabled{opacity:.55;cursor:default}
.fri-tp-itra-claim-form .fri-tp-status{grid-column:1/-1;min-height:0;margin:0;font-size:.7rem}
.fri-tp-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Trail badge tier used by the gamified passport. */
.fri-tp-badge.is-tier-green.is-earned{border-color:rgba(37,131,74,.28);background:#F6FBF7}
.fri-tp-badge.is-tier-green .fri-tp-badge-tier{color:var(--fri-green)}

@media(max-width:900px){
  .fri-tp-surface-columns{grid-template-columns:1fr!important}
  .fri-tp-itra-claim-body{grid-template-columns:1fr}
  .fri-tp-itra-claim-form{grid-template-columns:1fr 1fr}
  .fri-tp-itra-claim-form button{grid-column:1/-1}
}
@media(max-width:620px){
  .fri-tp-hub-stats.fri-tp-hub-stats--two{grid-template-columns:1fr!important}
  .fri-tp-itra-claim-form{grid-template-columns:1fr}
  .fri-tp-itra-claim-form button{grid-column:auto}
}

/* v1.17.0 race-card date hierarchy */
.fri-tp-featured-race-bottom--stacked{
  display:grid!important;
  grid-template-columns:1fr auto;
  gap:.2rem 1rem;
  align-items:end;
}
.fri-tp-featured-race-bottom--stacked>.fri-tp-race-date{grid-column:1/-1}
.fri-tp-directory-card-bottom-wrap{display:grid;gap:.2rem;margin-top:auto;padding-top:.55rem}
.fri-tp-directory-card-bottom-wrap .fri-tp-directory-card-bottom{margin-top:0!important;padding-top:0!important}
.fri-tp-featured-race-top{justify-content:flex-start!important;padding-right:8rem}
.fri-tp-featured-race:has(.fri-tp-card-source-badge.is-fri) .fri-tp-featured-race-top{padding-right:3rem}

/* =========================================================
   v1.18.0 — Community pulse + featured athletes
   ========================================================= */
.fri-tp-community-pulse,
.fri-tp-featured-athletes{
  border-top:1px solid var(--fri-border);
  padding-top:2rem;
}
.fri-tp-community-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.72rem;
}
.fri-tp-community-card{
  min-height:132px;
  padding:1rem 1.05rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-decoration:none!important;
  color:var(--fri-text)!important;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.fri-tp-community-card>span{
  color:var(--fri-muted);
  font-size:.68rem;
  font-weight:650;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.fri-tp-community-card>strong{
  display:block;
  margin:.45rem 0 .35rem;
  font-size:1.55rem;
  line-height:1.05;
  letter-spacing:-.035em;
}
.fri-tp-community-card>small{
  color:var(--fri-muted);
  font-size:.7rem;
  line-height:1.35;
}
.fri-tp-community-card--link>strong{font-size:1.02rem;line-height:1.18;letter-spacing:-.018em}
.fri-tp-community-card--link:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(14,38,75,.06)}
.fri-tp-community-card--link.is-road:hover{border-color:var(--fri-primary)}
.fri-tp-community-card--link.is-trail:hover{border-color:var(--fri-green)}
.fri-tp-community-card--link small b{color:inherit}
.fri-tp-trend{font-weight:620!important}
.fri-tp-trend.is-up{color:#21854A!important}
.fri-tp-trend.is-down{color:#B2493D!important}
.fri-tp-trend.is-flat{color:var(--fri-muted)!important}
.fri-tp-community-surface{
  margin-top:.8rem;
  padding:.75rem .9rem;
  border:1px solid var(--fri-border);
  border-radius:calc(var(--fri-radius) - 2px);
  background:#FCFDFE;
}
.fri-tp-community-surface-labels{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.45rem;
  color:var(--fri-muted);
  font-size:.68rem;
  font-weight:620;
}
.fri-tp-community-surface-bar{
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(37,131,74,.24);
}
.fri-tp-community-surface-bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--fri-primary);
}
.fri-tp-section-note{
  max-width:410px;
  margin:0;
  color:var(--fri-muted);
  font-size:.73rem;
  line-height:1.45;
  text-align:right;
}
.fri-tp-featured-athlete-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.72rem;
}
.fri-tp-featured-athlete-card{
  position:relative;
  min-height:190px;
  padding:1rem 1.05rem;
  overflow:hidden;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
  display:flex;
  flex-direction:column;
  text-decoration:none!important;
  color:var(--fri-text)!important;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.fri-tp-featured-athlete-card:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:var(--fri-primary);
}
.fri-tp-featured-athlete-card.is-trail:before{background:var(--fri-green)}
.fri-tp-featured-athlete-card.is-improvement:before{background:var(--fri-orange,#ff5a36)}
.fri-tp-featured-athlete-card:hover{
  transform:translateY(-2px);
  border-color:rgba(0,59,203,.28);
  box-shadow:0 12px 28px rgba(14,38,75,.06);
}
.fri-tp-featured-athlete-card.is-trail:hover{border-color:rgba(37,131,74,.34)}
.fri-tp-featured-athlete-label{
  color:var(--fri-muted);
  font-size:.64rem;
  font-weight:700;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.fri-tp-featured-athlete-name{
  display:block;
  margin:.65rem 0 .2rem;
  font-size:1.13rem;
  line-height:1.15;
  letter-spacing:-.025em;
}
.fri-tp-featured-athlete-metric{
  display:block;
  margin:.15rem 0 .35rem;
  color:var(--fri-primary);
  font-size:1.45rem;
  line-height:1;
  letter-spacing:-.035em;
}
.fri-tp-featured-athlete-card.is-trail .fri-tp-featured-athlete-metric{color:var(--fri-green)}
.fri-tp-featured-athlete-card.is-improvement .fri-tp-featured-athlete-metric{color:var(--fri-text)}
.fri-tp-featured-athlete-card>small{
  color:var(--fri-muted);
  font-size:.7rem;
  line-height:1.4;
}
.fri-tp-featured-athlete-link{
  margin-top:auto;
  padding-top:.8rem;
  color:var(--fri-primary);
  font-size:.71rem;
  font-weight:650;
}
.fri-tp-featured-athlete-card.is-trail .fri-tp-featured-athlete-link{color:var(--fri-green)}

@media(max-width:980px){
  .fri-tp-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-featured-athlete-grid{grid-template-columns:1fr}
  .fri-tp-featured-athlete-card{min-height:150px}
  .fri-tp-section-note{display:none}
}
@media(max-width:620px){
  .fri-tp-community-grid{grid-template-columns:1fr 1fr;gap:.55rem}
  .fri-tp-community-card{min-height:118px;padding:.85rem}
  .fri-tp-community-card>strong{font-size:1.3rem}
  .fri-tp-community-card--link>strong{font-size:.92rem}
}


/* ================================================================
   v1.18.1 — PROFILE UX POLISH, CONNECTIONS + MISSING RESULT REQUESTS
   ================================================================ */

/* Keep every profile tab on exactly the same left rail as Overview. */
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel > .fri-tp-section,
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel > .fri-tp-section-no-border,
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel > .fri-tp-compare-section{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel .fri-tp-section-head,
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-section > .fri-tp-section-head{
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
  transform:none!important;
  text-align:left!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel .fri-tp-section-head > div:first-child{
  margin-left:0!important;
  padding-left:0!important;
}

/* FRÍ score number is the focal point; brand remains in the upper-right. */
.fri-tp-score-card--fri{
  position:relative;
}
.fri-tp-score-card--fri .fri-tp-score-card-head{
  position:relative;
  display:block!important;
  min-height:42px;
  text-align:center!important;
}
.fri-tp-score-card--fri .fri-tp-score-card-head > div:first-child{
  width:100%;
  text-align:center!important;
}
.fri-tp-score-card--fri .fri-tp-score-card-kicker,
.fri-tp-score-card--fri .fri-tp-score-card-value{
  text-align:center!important;
}
.fri-tp-score-card--fri .fri-tp-score-card-brand{
  position:absolute;
  top:.08rem;
  right:0;
  margin:0;
}
.fri-tp-score-card--fri .fri-tp-score-card-value{
  margin-top:.08rem;
}

/* One external-identity strip instead of one oversized ITRA row. */
.fri-tp-profile-connections{
  width:100%;
  margin:.65rem 0 .45rem;
}
.fri-tp-profile-connections-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  overflow:hidden;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
}
.fri-tp-connection-card{
  position:relative;
  min-width:0;
  min-height:72px;
  padding:.72rem .78rem;
  border-right:1px solid var(--fri-border);
  background:#fff;
}
.fri-tp-connection-card:last-child{border-right:0}
.fri-tp-connection-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-bottom:.45rem;
}
.fri-tp-connection-card-top strong{
  color:var(--fri-text);
  font-size:.74rem;
  line-height:1.15;
}
.fri-tp-connection-card-top span{
  color:var(--fri-muted);
  font-size:.54rem;
  line-height:1;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.fri-tp-connection-card.is-connected .fri-tp-connection-card-top span{color:var(--fri-primary)}
.fri-tp-connection-card.is-itra.is-connected .fri-tp-connection-card-top span{color:var(--fri-green)}
.fri-tp-connection-card-link{
  color:var(--fri-primary)!important;
  font-size:.68rem;
  line-height:1.2;
  font-weight:680;
  text-decoration:none!important;
}
.fri-tp-connection-card.is-itra .fri-tp-connection-card-link{color:var(--fri-green)!important}
.fri-tp-connection-card-muted{
  color:var(--fri-muted);
  font-size:.66rem;
}
.fri-tp-connection-request{
  margin:0;
}
.fri-tp-connection-request summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.4rem;
  padding:0;
  cursor:pointer;
  list-style:none;
  color:var(--fri-primary);
  font-size:.68rem;
  line-height:1.2;
  font-weight:680;
}
.fri-tp-connection-request summary::-webkit-details-marker{display:none}
.fri-tp-connection-request[open]{
  position:absolute;
  z-index:60;
  top:calc(100% - 8px);
  left:8px;
  right:8px;
  padding:.75rem;
  border:1px solid var(--fri-border);
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 30px rgba(20,35,60,.12);
}
.fri-tp-connection-request[open] summary{margin-bottom:.65rem}
.fri-tp-connection-request-copy{
  display:grid;
  gap:.25rem;
  margin-bottom:.55rem;
  color:var(--fri-muted);
  font-size:.64rem;
}
.fri-tp-connection-request-copy a{color:var(--fri-green)!important;text-decoration:none!important}
.fri-tp-connection-request form{
  display:grid;
  gap:.48rem;
}
.fri-tp-connection-request label span,
.fri-tp-result-request-details label span{
  display:block;
  margin:0 0 .2rem;
  color:var(--fri-muted);
  font-size:.54rem;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.fri-tp-connection-request input,
.fri-tp-result-request-details input,
.fri-tp-result-request-details textarea{
  width:100%;
  min-height:38px;
  padding:.48rem .58rem;
  border:1px solid var(--fri-border);
  border-radius:10px;
  background:#fff;
  color:var(--fri-text);
  font:inherit;
  font-size:.72rem;
}
.fri-tp-result-request-details textarea{min-height:68px;resize:vertical}
.fri-tp-connection-request button,
.fri-tp-result-request-details button{
  min-height:38px;
  padding:.45rem .7rem;
  border:1px solid var(--fri-primary);
  border-radius:10px;
  background:var(--fri-primary);
  color:#fff;
  font-size:.68rem;
  font-weight:680;
  cursor:pointer;
}

/* Profile-only result request: a quiet utility, not a new feature block. */
.fri-tp-profile-result-request{
  width:100%;
  margin:0 0 .7rem;
}
.fri-tp-result-request-details{
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#FCFDFE;
  overflow:visible;
}
.fri-tp-result-request-details > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.68rem .82rem;
  cursor:pointer;
  list-style:none;
  color:var(--fri-text);
}
.fri-tp-result-request-details > summary::-webkit-details-marker{display:none}
.fri-tp-result-request-details > summary span{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:.35rem .65rem;
}
.fri-tp-result-request-details > summary strong{font-size:.72rem}
.fri-tp-result-request-details > summary small{color:var(--fri-muted);font-size:.62rem;font-weight:500}
.fri-tp-result-request-details > summary b{color:var(--fri-primary);font-weight:650}
.fri-tp-result-request-details form{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.65rem;
  padding:.85rem;
  border-top:1px solid var(--fri-border);
}
.fri-tp-result-request-details .fri-tp-result-request-note{grid-column:span 2}
.fri-tp-result-request-details button{align-self:end}
.fri-tp-result-request-details .fri-tp-status{grid-column:1/-1;margin:0;min-height:0;font-size:.66rem}

/* Profile-only results look official but are visibly sourced externally. */
.fri-tp-race-link[target="_blank"]::after{
  content:" ↗";
  font-size:.78em;
}

/* Mobile keeps identity links dense and keeps score geometry calm. */
@media(max-width:900px){
  .fri-tp-profile-connections-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-connection-card:nth-child(2){border-right:0}
  .fri-tp-connection-card:nth-child(-n+2){border-bottom:1px solid var(--fri-border)}
  .fri-tp-result-request-details form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-result-request-details .fri-tp-result-request-note{grid-column:1/-1}
}
@media(max-width:620px){
  .fri-tp-profile-connections-grid{grid-template-columns:1fr 1fr}
  .fri-tp-connection-card{min-height:66px;padding:.62rem}
  .fri-tp-connection-card-top{display:block}
  .fri-tp-connection-card-top span{display:block;margin-top:.2rem}
  .fri-tp-connection-request[open]{position:fixed;z-index:9999;top:auto;left:12px;right:12px;bottom:12px;max-height:70vh;overflow:auto}
  .fri-tp-result-request-details form{grid-template-columns:1fr}
  .fri-tp-result-request-details .fri-tp-result-request-note{grid-column:auto}
  .fri-tp-result-request-details > summary span{display:block}
  .fri-tp-result-request-details > summary small{display:block;margin-top:.18rem}
}


/* ======================================================================
   v1.18.2 — type scale, search reliability, profile actions + year pulse
   ====================================================================== */

/* One calmer, more readable small-text scale across the product. */
.fri-tp-product-shell,
.fri-tp-app{--fri-ui-small:.78rem;--fri-ui-xs:.68rem}
.fri-tp-product-shell small,
.fri-tp-app small{font-size:var(--fri-ui-small)!important;line-height:1.38!important}
.fri-tp-product-shell .fri-tp-meta,
.fri-tp-product-shell .fri-tp-filter-count,
.fri-tp-product-shell .fri-tp-race-date,
.fri-tp-product-shell .fri-tp-race-count,
.fri-tp-product-shell .fri-tp-community-card > span,
.fri-tp-product-shell .fri-tp-community-card > small,
.fri-tp-product-shell .fri-tp-summary-grid span,
.fri-tp-product-shell .fri-tp-history-count,
.fri-tp-product-shell .fri-tp-result-flag,
.fri-tp-app .fri-tp-meta,
.fri-tp-app .fri-tp-summary-grid span{font-size:var(--fri-ui-small)!important;line-height:1.35!important}
.fri-tp-product-shell .fri-tp-eyebrow,
.fri-tp-product-shell .fri-tp-race-type,
.fri-tp-app .fri-tp-eyebrow{font-size:.67rem!important;letter-spacing:.055em!important}

/* Tables: same readable scale and the same rounded FRÍ-blue header everywhere. */
.fri-tp-table{font-size:.84rem!important;line-height:1.42!important}
.fri-tp-table thead th{font-size:.69rem!important;line-height:1.15!important;padding:.82rem .72rem!important}
.fri-tp-table tbody td{font-size:.82rem!important;line-height:1.42!important;padding:.76rem .72rem!important}
.fri-tp-table .fri-runner-name{font-size:.84rem!important;line-height:1.3!important}
.fri-tp-table thead th:first-child{border-top-left-radius:12px!important}
.fri-tp-table thead th:last-child{border-top-right-radius:12px!important}
.fri-tp-table{border-collapse:separate!important;border-spacing:0!important}
.fri-tp-table thead{background:var(--fri-primary)!important}

/* Main hub autocomplete floats above the page and never moves the race grid. */
.fri-tp-runner-search{position:relative;z-index:90}
.fri-tp-runner-search .fri-tp-search-results{
  position:absolute!important;z-index:999!important;top:calc(100% + .4rem)!important;left:0!important;
  width:min(100%,680px)!important;max-height:420px!important;overflow:auto!important;margin:0!important;
  padding:.35rem!important;border:1px solid var(--fri-border)!important;border-radius:16px!important;
  background:#fff!important;box-shadow:0 22px 48px rgba(18,38,70,.14)!important;
}
.fri-tp-runner-search .fri-tp-search-results:empty{display:none!important}
.fri-tp-runner-search .fri-tp-search-card{min-height:58px!important;padding:.72rem .82rem!important;border:0!important;border-radius:12px!important;background:#fff!important}
.fri-tp-runner-search .fri-tp-search-card:hover,
.fri-tp-runner-search .fri-tp-search-card:focus-visible{background:#f6f9ff!important;color:var(--fri-text)!important}
.fri-tp-runner-search .fri-tp-search-card:hover *,
.fri-tp-runner-search .fri-tp-search-card:focus-visible *{color:inherit!important}
.fri-tp-runner-search .fri-tp-search-card:hover strong{color:var(--fri-primary)!important}

/* Four useful all-time stats instead of an artificially unique athlete count. */
.fri-tp-hub-stats--four{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.fri-tp-hub-stats--four > div{min-width:0!important}
.fri-tp-hub-stats--four strong{font-size:1.12rem!important}
.fri-tp-hub-stats--four span{font-size:.72rem!important}

/* Expandable year-to-date comparison. In 2027 it automatically compares the
   same 2027 date window with 2026, so the baseline is already future-proof. */
.fri-tp-year-pulse{margin-top:.72rem;border-top:1px solid var(--fri-border)}
.fri-tp-year-pulse > summary{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;padding:.72rem .12rem 0;cursor:pointer;list-style:none;color:var(--fri-primary);font-size:.78rem;font-weight:680}
.fri-tp-year-pulse > summary::-webkit-details-marker{display:none}
.fri-tp-year-pulse[open] > summary span{transform:rotate(90deg)}
.fri-tp-year-pulse-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:.7rem;border:1px solid var(--fri-border);border-radius:14px;overflow:hidden;background:#fff}
.fri-tp-year-pulse-grid > div{min-height:92px;padding:.78rem .9rem;border-right:1px solid var(--fri-border);display:grid;align-content:center;gap:.18rem}
.fri-tp-year-pulse-grid > div:last-child{border-right:0}
.fri-tp-year-pulse-grid span{font-size:.62rem;font-weight:680;letter-spacing:.045em;text-transform:uppercase;color:var(--fri-muted)}
.fri-tp-year-pulse-grid strong{font-size:1.04rem;line-height:1.2;color:var(--fri-text)}
.fri-tp-year-pulse-grid small{font-size:.68rem!important}

/* Connections now belong to the hero, not to a separate full-width card. */
.fri-tp-profile-connections{display:none!important}
.fri-tp-profile-social-actions{margin-top:.56rem;position:relative;z-index:70}
.fri-tp-profile-performance-actions{margin-top:.45rem;position:relative;z-index:75}
.fri-tp-profile-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:.42rem}
.fri-tp-profile-action-row--performance{justify-content:flex-start}
.fri-tp-provider-action,
.fri-tp-connection-popover > summary{
  display:inline-flex!important;align-items:center!important;gap:.38rem!important;min-height:32px!important;padding:.32rem .55rem!important;
  border:1px solid var(--fri-border)!important;border-radius:999px!important;background:#fff!important;color:var(--fri-text)!important;
  font-size:.68rem!important;font-weight:650!important;line-height:1!important;text-decoration:none!important;cursor:pointer!important;list-style:none!important;
}
.fri-tp-provider-action:hover,
.fri-tp-connection-popover > summary:hover{border-color:var(--fri-primary)!important;color:var(--fri-primary)!important;background:#f7faff!important}
.fri-tp-provider-action.is-itra:hover,.fri-tp-connection-popover.is-itra > summary:hover{border-color:var(--fri-green)!important;color:var(--fri-green)!important;background:#f6fbf7!important}
.fri-tp-connection-popover > summary::-webkit-details-marker{display:none}
.fri-tp-provider-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;border-radius:6px;font-size:.48rem;font-weight:800;letter-spacing:-.02em}
.fri-tp-provider-icon svg{width:17px;height:17px;display:block}
.fri-tp-provider-icon--wa{background:#edf3ff;color:var(--fri-primary)}
.fri-tp-provider-icon--itra{width:28px;background:#f1f7ec;color:#3d8d45}
.fri-tp-provider-icon--strava{background:#fff3ed;color:#fc4c02}.fri-tp-provider-icon--strava svg{fill:currentColor}
.fri-tp-provider-icon--instagram{background:#fff1f7;color:#c13584}.fri-tp-provider-icon--instagram svg{fill:none;stroke:currentColor;stroke-width:1.7}
.fri-tp-connection-popover{position:relative;margin:0}
.fri-tp-connection-popover[open] > .fri-tp-connection-popover-panel{
  position:absolute;z-index:999;top:calc(100% + .45rem);left:0;width:min(360px,78vw);padding:.85rem;
  border:1px solid var(--fri-border);border-radius:14px;background:#fff;box-shadow:0 20px 44px rgba(20,35,60,.16)
}
.fri-tp-profile-performance-actions .fri-tp-connection-popover[open] > .fri-tp-connection-popover-panel{left:auto;right:0}
.fri-tp-popover-head{display:grid;gap:.18rem;margin-bottom:.65rem}.fri-tp-popover-head strong{font-size:.82rem}.fri-tp-popover-head span{font-size:.68rem;color:var(--fri-muted);line-height:1.35}
.fri-tp-connection-popover-panel form{display:grid;gap:.5rem}

/* Missing-result form needs stronger field/background separation. */
.fri-tp-result-request-details{background:#fff!important;border-color:#cfd9e8!important}
.fri-tp-result-request-details > summary{background:#f8fbff!important;border-radius:var(--fri-radius)!important}
.fri-tp-result-request-details[open] > summary{border-radius:var(--fri-radius) var(--fri-radius) 0 0!important}
.fri-tp-result-request-details form{background:#fff!important;border-top-color:#cfd9e8!important}
.fri-tp-result-request-details input,.fri-tp-result-request-details textarea{border-color:#bfcce0!important;background:#fff!important;box-shadow:0 1px 0 rgba(20,45,80,.02)}
.fri-tp-result-request-details input:focus,.fri-tp-result-request-details textarea:focus{border-color:var(--fri-primary)!important;outline:3px solid rgba(20,71,204,.09)!important;outline-offset:0!important}
.fri-tp-result-request-details label span{color:#516178!important}

@media(max-width:900px){
  .fri-tp-hub-stats--four{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fri-tp-year-pulse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fri-tp-year-pulse-grid > div:nth-child(2){border-right:0}.fri-tp-year-pulse-grid > div:nth-child(-n+2){border-bottom:1px solid var(--fri-border)}
  .fri-tp-profile-performance-actions .fri-tp-connection-popover[open] > .fri-tp-connection-popover-panel{left:0;right:auto}
}
@media(max-width:620px){
  .fri-tp-hub-stats--four{grid-template-columns:1fr 1fr!important}
  .fri-tp-hub-stats--four strong{font-size:1rem!important}
  .fri-tp-year-pulse-grid{grid-template-columns:1fr}
  .fri-tp-year-pulse-grid > div{border-right:0;border-bottom:1px solid var(--fri-border)}.fri-tp-year-pulse-grid > div:last-child{border-bottom:0}
  .fri-tp-connection-popover[open] > .fri-tp-connection-popover-panel{position:fixed;left:12px!important;right:12px!important;bottom:12px;top:auto;width:auto;max-height:72vh;overflow:auto}
  .fri-tp-profile-social-actions{margin-top:.45rem}
  .fri-tp-profile-action-row{gap:.35rem}
  .fri-tp-provider-action,.fri-tp-connection-popover > summary{font-size:.64rem!important;padding:.3rem .48rem!important}
  .fri-tp-table{font-size:.8rem!important}.fri-tp-table tbody td{font-size:.79rem!important}.fri-tp-table thead th{font-size:.65rem!important}
}

/* ======================================================================
   v1.18.3 — reliability + calmer profile utilities
   ====================================================================== */

/* FRÍ certification mark should have comparable visual presence to the
   horizontal ITRA source mark without pretending to be the same shape. */
.fri-tp-card-source-badge.is-fri img{
  width:40px!important;
  max-width:40px!important;
  max-height:30px!important;
}
.fri-tp-hub-race-card:has(.fri-tp-card-source-badge.is-fri) .fri-tp-hub-race-card-top,
.fri-tp-directory-card:has(.fri-tp-card-source-badge.is-fri) .fri-tp-directory-card-top{padding-right:3.55rem!important}

/* Connection pills stay fixed in the row; only the panel is layered below. */
.fri-tp-connection-popover{
  display:inline-block!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:max-content!important;
  vertical-align:top;
}
.fri-tp-connection-popover > summary{width:auto!important;white-space:nowrap}
.fri-tp-connection-popover[open] > .fri-tp-connection-popover-panel{
  top:calc(100% + .5rem)!important;
}
.fri-tp-connection-popover.is-sent > summary{
  border-color:#b8d7c0!important;
  background:#f7fcf8!important;
}

/* Hlaupasaga now uses the same soft control surface and rounded table language
   as race pages rather than looking like an older admin-style table. */
.fri-tp-history-panel .fri-tp-section-head{
  align-items:flex-end!important;
  gap:1rem!important;
  margin-bottom:.8rem!important;
}
.fri-tp-history-panel .fri-tp-history-tools{
  padding:.62rem .72rem!important;
  border:1px solid var(--fri-border)!important;
  border-radius:14px!important;
  background:#f8faff!important;
  align-items:flex-end!important;
}
.fri-tp-history-panel .fri-tp-history-tools label > span{
  font-size:.68rem!important;
  font-weight:680!important;
  color:#5c6b83!important;
}
.fri-tp-history-panel .fri-tp-history-tools select{
  min-height:38px!important;
  border-radius:10px!important;
  background:#fff!important;
}
.fri-tp-history-panel .fri-tp-table-wrap{
  border:1px solid var(--fri-border)!important;
  border-radius:14px!important;
  overflow:auto!important;
  background:#fff!important;
}
.fri-tp-history-panel .fri-tp-table{margin:0!important}
.fri-tp-history-panel .fri-tp-table tbody tr:last-child td:first-child{border-bottom-left-radius:13px}
.fri-tp-history-panel .fri-tp-table tbody tr:last-child td:last-child{border-bottom-right-radius:13px}

/* Make the year pulse link unmistakably available below the monthly pulse. */
.fri-tp-year-pulse > summary{
  min-height:40px!important;
  padding:.72rem .2rem .1rem!important;
  font-size:.82rem!important;
}

/* Result request: clear fields, but keep the overall surface light. */
.fri-tp-result-request-details form{padding-top:.9rem!important}
.fri-tp-result-request-details input,
.fri-tp-result-request-details textarea{
  color:var(--fri-text)!important;
  border-width:1.5px!important;
}
.fri-tp-result-request-details input::placeholder,
.fri-tp-result-request-details textarea::placeholder{color:#8a98ad!important;opacity:1!important}

@media(max-width:760px){
  .fri-tp-history-panel .fri-tp-section-head{align-items:flex-start!important}
  .fri-tp-history-panel .fri-tp-history-tools{width:100%!important}
  .fri-tp-card-source-badge.is-fri img{width:36px!important;max-width:36px!important}
}


/* v1.18.4 — profile loading stays inside the profile card */
.fri-tp-profile.is-seed-loading > :not(.fri-tp-profile-head) {
  display: none !important;
}
.fri-tp-profile.is-seed-loading .fri-tp-profile-score-stack {
  visibility: hidden;
}
.fri-tp-profile.is-seed-loading .fri-tp-profile-head {
  min-height: 220px;
}
.fri-tp-profile.is-seed-loading [data-fri-tp-athlete-meta] {
  opacity: .78;
}
@media (max-width: 767px) {
  .fri-tp-profile.is-seed-loading .fri-tp-profile-head { min-height: 300px; }
}


/* ======================================================================
   v1.18.6 — moderated profile images + mobile hero parity
   ====================================================================== */
.fri-tp-profile-avatar-image{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:999px;
}
.fri-tp-profile-image-request{
  position:absolute;z-index:82;top:40px;left:calc(50% + 34px);transform:translate(-50%,-50%);
}
.fri-tp-avatar-upload-popover{position:relative;margin:0}
.fri-tp-avatar-upload-popover > summary{
  display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;list-style:none;cursor:pointer;
  border:2px solid #fff;border-radius:999px;background:var(--fri-primary);color:#fff;box-shadow:0 3px 10px rgba(20,45,80,.18);
}
.fri-tp-avatar-upload-popover > summary::-webkit-details-marker{display:none}
.fri-tp-avatar-upload-popover > summary svg{width:16px;height:16px;fill:currentColor}
.fri-tp-avatar-upload-popover > summary:hover{transform:translateY(-1px);background:#0b49dd}
.fri-tp-avatar-upload-panel{
  position:absolute;z-index:1000;top:calc(100% + .5rem);left:50%;transform:translateX(-50%);width:min(340px,82vw);
  padding:.85rem;border:1px solid var(--fri-border);border-radius:14px;background:#fff;box-shadow:0 20px 44px rgba(20,35,60,.16);
}
.fri-tp-avatar-upload-popover:not([open]) .fri-tp-avatar-upload-panel{display:none}
.fri-tp-avatar-upload-panel form{display:grid;gap:.55rem}
.fri-tp-avatar-upload-panel label{display:grid;gap:.24rem;color:#516178;font-size:.68rem;font-weight:650}
.fri-tp-avatar-upload-panel input[type="email"],.fri-tp-avatar-upload-panel input[type="file"]{
  width:100%;min-height:40px;padding:.55rem .65rem;border:1.5px solid #bfcce0;border-radius:10px;background:#fff;color:var(--fri-text);
}
.fri-tp-avatar-upload-panel button{min-height:40px;border:0;border-radius:10px;background:var(--fri-primary);color:#fff;font-weight:700;cursor:pointer}
.fri-tp-avatar-upload-panel small{font-size:.63rem;color:var(--fri-muted)}
.fri-tp-image-preview{display:flex;justify-content:center;padding:.25rem 0}
.fri-tp-image-preview img{width:92px;height:92px;object-fit:cover;border-radius:999px;border:1px solid var(--fri-border)}

/* On mobile keep the avatar in the same conceptual place as desktop: floating
   from the top centre of the profile card. Social links remain under metadata
   and performance links remain beneath the FRÍ/ITRA score stack. */
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    position:relative!important;display:block!important;padding:4.15rem 1.15rem 1.15rem!important;overflow:visible!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-avatar{
    position:absolute!important;z-index:5!important;top:0!important;left:50%!important;width:88px!important;height:88px!important;
    margin:0!important;transform:translate(-50%,-48%)!important;border-width:4px!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-image-request{
    top:16px!important;left:calc(50% + 29px)!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity{padding:0!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions{display:flex!important;justify-content:center!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions .fri-tp-profile-action-row{justify-content:center!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-performance-actions .fri-tp-profile-action-row{justify-content:center!important}
  .fri-tp-avatar-upload-panel{position:fixed;left:12px;right:12px;bottom:12px;top:auto;transform:none;width:auto;max-height:72vh;overflow:auto}
}


/* ======================================================================
   v1.18.7 — larger profile photo + viewport-safe upload modal
   ====================================================================== */
.fri-tp-profile-avatar-image,
.fri-tp-profile-image-crop-preview img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:50% 50%!important;
}

/* The avatar is intentionally more prominent. */
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-avatar{
  width:136px!important;
  height:136px!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-image-request{
  top:48px!important;
  left:calc(50% + 44px)!important;
  transform:translate(-50%,-50%)!important;
}
.fri-tp-avatar-upload-trigger{
  display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:2px solid #fff;
  border-radius:999px;background:var(--fri-primary);color:#fff;box-shadow:0 3px 12px rgba(20,45,80,.2);cursor:pointer;
}
.fri-tp-avatar-upload-trigger svg{width:17px;height:17px;fill:currentColor}
.fri-tp-avatar-upload-trigger:hover{background:#0b49dd;transform:translateY(-1px)}

html.fri-tp-modal-open,html.fri-tp-modal-open body{overflow:hidden!important}
.fri-tp-profile-image-modal{position:fixed;z-index:2147483000;inset:0;display:flex;align-items:center;justify-content:center;padding:20px}
.fri-tp-profile-image-modal-backdrop{position:absolute;inset:0;background:rgba(16,28,46,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.fri-tp-profile-image-modal-sheet{
  position:relative;z-index:1;width:min(440px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 40px));overflow:auto;
  padding:1.2rem;border:1px solid var(--fri-border);border-radius:18px;background:#fff;box-shadow:0 24px 64px rgba(18,34,58,.22)
}
.fri-tp-profile-image-modal-close{
  position:absolute;top:.65rem;right:.7rem;width:34px;height:34px;border:0;border-radius:999px;background:#f2f5f9;color:var(--fri-text);
  font-size:1.35rem;line-height:1;cursor:pointer
}
.fri-tp-profile-image-modal-sheet .fri-tp-popover-head{padding-right:2.6rem;margin-bottom:.85rem}
.fri-tp-profile-image-modal-sheet form{display:grid;gap:.65rem}
.fri-tp-profile-image-modal-sheet label{display:grid;gap:.28rem;color:#516178;font-size:.76rem;font-weight:650}
.fri-tp-profile-image-modal-sheet input[type="email"],
.fri-tp-profile-image-modal-sheet input[type="file"]{
  width:100%;min-height:44px;padding:.6rem .72rem;border:1.5px solid #bfcce0;border-radius:11px;background:#fff;color:var(--fri-text)
}
.fri-tp-profile-image-modal-sheet button[type="submit"]{min-height:44px;border:0;border-radius:11px;background:var(--fri-primary);color:#fff;font-weight:700;cursor:pointer}
.fri-tp-profile-image-modal-sheet small{font-size:.69rem;line-height:1.45;color:var(--fri-muted)}
.fri-tp-image-preview{display:flex;justify-content:center;padding:.35rem 0 .45rem}
.fri-tp-profile-image-crop-preview{
  width:136px;height:136px;overflow:hidden;border:5px solid #fff;border-radius:999px;background:#fff;box-shadow:0 0 0 2px #dce4ef
}

@media(min-width:761px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity{padding-top:3rem!important}
}

@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{padding-top:5rem!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-avatar{
    width:112px!important;height:112px!important;top:0!important;left:50%!important;position:absolute!important;
    margin:0!important;transform:translate(-50%,-48%)!important;border-width:4px!important
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-image-request{
    top:21px!important;left:calc(50% + 38px)!important;transform:translate(-50%,-50%)!important
  }
  .fri-tp-profile-image-modal{align-items:flex-end;padding:0}
  .fri-tp-profile-image-modal-sheet{
    width:100%;max-height:min(82vh,760px);padding:1.1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0
  }
  .fri-tp-profile-image-crop-preview{width:112px;height:112px}
}


/* ======================================================================
   v1.18.8 — profile hero cleanup, unified connections + clearer photo CTA
   ====================================================================== */
/* The old trail provider-summary card is intentionally retired. */
.fri-tp-profile-provider-summary{display:none!important}

/* All four external identities live in one row under athlete metadata. */
.fri-tp-profile-social-actions{width:100%;overflow:visible}
.fri-tp-profile-action-row--unified{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:.42rem!important;
  max-width:100%;overflow-x:auto;overflow-y:visible;padding:1px 2px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch
}
.fri-tp-profile-action-row--unified::-webkit-scrollbar{display:none}
.fri-tp-profile-performance-actions{display:none!important}

/* Make the photo action unmistakable and immune to theme button sizing. */
.fri-tp-app.fri-tp-product-shell .fri-tp-avatar-upload-trigger{
  appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.28rem!important;
  width:auto!important;min-width:72px!important;height:36px!important;padding:0 .58rem!important;margin:0!important;
  border:2px solid #fff!important;border-radius:999px!important;background:var(--fri-primary)!important;color:#fff!important;
  font:700 .72rem/1 var(--fri-font-body)!important;box-shadow:0 3px 12px rgba(20,45,80,.22)!important;cursor:pointer!important
}
.fri-tp-app.fri-tp-product-shell .fri-tp-avatar-upload-trigger svg{display:block!important;flex:0 0 auto;width:16px!important;height:16px!important;fill:currentColor!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-image-request{top:52px!important;left:calc(50% + 55px)!important}

/* Replace the inconsistent native file input with a clear, touch-friendly chooser. */
.fri-tp-image-file-label{position:relative!important}
.fri-tp-image-file-input{
  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
}
.fri-tp-image-file-control{
  display:flex;align-items:center;gap:.65rem;min-height:48px;padding:.38rem .45rem .38rem .4rem;
  border:1.5px solid #bfcce0;border-radius:12px;background:#fff;cursor:pointer
}
.fri-tp-image-file-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 .85rem;border-radius:9px;
  background:var(--fri-primary);color:#fff;font-weight:750;white-space:nowrap
}
.fri-tp-image-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53627a;font-weight:550}
.fri-tp-image-file-label:focus-within .fri-tp-image-file-control{border-color:var(--fri-primary);box-shadow:0 0 0 3px rgba(20,75,215,.1)}

@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions{display:block!important;margin-top:.55rem!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions .fri-tp-profile-action-row--unified{justify-content:flex-start!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-image-request{top:27px!important;left:calc(50% + 45px)!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-avatar-upload-trigger{min-width:42px!important;width:42px!important;height:42px!important;padding:0!important;border-radius:999px!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-avatar-upload-trigger span{display:none!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-avatar-upload-trigger svg{width:18px!important;height:18px!important}
  .fri-tp-image-file-control{align-items:stretch;flex-direction:column;gap:.42rem;padding:.5rem}
  .fri-tp-image-file-button{width:100%;min-height:42px}
  .fri-tp-image-file-name{text-align:center;padding:.15rem .25rem}
}

/* ==========================================================
   v1.18.9 — MOBILE-FIRST PUBLIC RESULTS
   On phones, results become a compact scan-first list instead of a
   horizontally crushed desktop table. The semantic table remains in DOM.
   ========================================================== */
.fri-tp-mobile-results-head{display:none}

/* Public result-table header gets the same soft FRÍ corners as Hlaupasaga. */
.fri-tp-public-results-wrap .fri-tp-unified-results thead th:first-child{
  border-top-left-radius:12px!important;
}
.fri-tp-public-results-wrap .fri-tp-unified-results thead th:last-child{
  border-top-right-radius:12px!important;
}

@media (max-width:720px){
  /* Filters: distance owns the first row; gender + age share the second. */
  .fri-tp-result-filters{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:.62rem!important;
    padding:.72rem!important;
    border-radius:18px!important;
  }
  .fri-tp-result-filters label:first-child{
    grid-column:1 / -1!important;
  }
  .fri-tp-result-filters label{
    min-width:0!important;
    gap:.34rem!important;
  }
  .fri-tp-result-filters label span{
    font-size:.72rem!important;
    letter-spacing:.03em!important;
  }
  .fri-tp-result-filters select{
    width:100%!important;
    min-height:48px!important;
    padding:.62rem 2rem .62rem .8rem!important;
    border-radius:14px!important;
    font-size:.9rem!important;
    font-weight:600!important;
  }

  /* The visible mobile header mirrors the desktop FRÍ table language. */
  .fri-tp-mobile-results-head{
    display:grid!important;
    grid-template-columns:2.65rem minmax(0,1fr) auto;
    align-items:center;
    gap:.7rem;
    margin-top:.9rem;
    padding:.72rem .82rem;
    border-radius:16px 16px 0 0;
    background:var(--fri-primary);
    color:#fff;
    font-family:var(--fri-font-text)!important;
    font-size:.67rem;
    font-weight:700;
    letter-spacing:.045em;
    text-transform:uppercase;
  }
  .fri-tp-mobile-results-head span:last-child{text-align:right}

  .fri-tp-public-results-wrap.fri-tp-table-wrap{
    margin-top:0!important;
    overflow:visible!important;
    border:1px solid var(--fri-border)!important;
    border-top:0!important;
    border-radius:0 0 16px 16px!important;
    background:#fff!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    table-layout:auto!important;
  }

  /* Keep table headings available semantically without spending screen width. */
  .fri-tp-public-results-wrap .fri-tp-unified-results thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results tbody{
    display:block!important;
    width:100%!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results tbody tr{
    display:grid!important;
    grid-template-columns:2.65rem minmax(0,1fr) auto!important;
    grid-template-areas:
      "rank runner time"
      "rank age agerank"!important;
    column-gap:.7rem!important;
    row-gap:.3rem!important;
    align-items:start!important;
    width:100%!important;
    padding:.92rem .82rem!important;
    border-bottom:1px solid var(--fri-border)!important;
    background:#fff!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results tbody tr:last-child{
    border-bottom:0!important;
    border-radius:0 0 16px 16px!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results tbody tr:hover{
    background:#FAFBFD!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results tbody td{
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    font-size:.82rem!important;
    line-height:1.32!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results tbody tr:hover td{
    background:transparent!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results td:nth-child(1){
    grid-area:rank!important;
    align-self:start!important;
    padding-top:.08rem!important;
    color:var(--fri-muted)!important;
    font-size:.82rem!important;
    font-weight:650!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results td:nth-child(2){
    grid-area:runner!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results td:nth-child(3){
    grid-area:age!important;
    color:var(--fri-muted)!important;
    font-size:.76rem!important;
    font-weight:520!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results td:nth-child(4){
    grid-area:agerank!important;
    justify-self:end!important;
    color:var(--fri-muted)!important;
    font-size:.76rem!important;
    font-weight:600!important;
    white-space:nowrap!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results td:nth-child(5){
    grid-area:time!important;
    justify-self:end!important;
    text-align:right!important;
    color:var(--fri-text)!important;
    white-space:nowrap!important;
  }
  .fri-tp-public-results-wrap .fri-tp-unified-results td:nth-child(5) strong{
    font-size:1rem!important;
    line-height:1.1!important;
    font-weight:760!important;
    letter-spacing:-.015em!important;
  }
  .fri-tp-public-results-wrap .fri-tp-runner-cell{
    gap:.16rem!important;
  }
  .fri-tp-public-results-wrap .fri-tp-runner-cell .fri-runner-name,
  .fri-tp-public-results-wrap .fri-tp-runner-cell>a,
  .fri-tp-public-results-wrap .fri-tp-runner-cell>span{
    color:var(--fri-text)!important;
    font-size:.94rem!important;
    line-height:1.22!important;
    font-weight:690!important;
  }
  .fri-tp-public-results-wrap .fri-tp-runner-cell small{
    margin-top:.02rem!important;
    color:var(--fri-muted)!important;
    font-size:.72rem!important;
    line-height:1.2!important;
  }
  .fri-tp-public-results-wrap .fri-tp-result-flag{
    margin-left:.25rem!important;
    font-size:.69rem!important;
  }
}

@media (max-width:390px){
  .fri-tp-mobile-results-head,
  .fri-tp-public-results-wrap .fri-tp-unified-results tbody tr{
    grid-template-columns:2.35rem minmax(0,1fr) auto!important;
    column-gap:.55rem!important;
    padding-left:.7rem!important;
    padding-right:.7rem!important;
  }
  .fri-tp-public-results-wrap .fri-tp-runner-cell .fri-runner-name,
  .fri-tp-public-results-wrap .fri-tp-runner-cell>a,
  .fri-tp-public-results-wrap .fri-tp-runner-cell>span{
    font-size:.9rem!important;
  }
}

/* ======================================================================
   v1.18.10 — mobile refinement pass
   Homepage utilities, breadcrumbs, profile sheets, trail highlights,
   history cards and compact race detail facts.
   ====================================================================== */

/* Homepage utility links: use the whole mobile width instead of uneven pills. */
@media(max-width:620px){
  .fri-tp-service-pills{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:.48rem!important;
    width:100%!important;
    margin-top:.95rem!important;
  }
  .fri-tp-service-pills a{
    justify-content:center!important;
    min-width:0!important;
    min-height:52px!important;
    padding:.55rem .38rem!important;
    border-radius:14px!important;
    font-size:.65rem!important;
    line-height:1.18!important;
    text-align:center!important;
    white-space:normal!important;
  }
  .fri-tp-service-pills a span{display:none!important}
  .fri-tp-hub-hero.fri-tp-hub-hero--utility h1{
    font-size:clamp(2.15rem,9.5vw,2.72rem)!important;
    line-height:.98!important;
  }
}

/* Breadcrumbs: one calm line, short parent label, current item ellipsised. */
@media(max-width:760px){
  .fri-tp-navline{
    gap:.48rem!important;
    margin-bottom:1rem!important;
  }
  .fri-tp-breadcrumbs{width:100%!important;overflow:hidden!important}
  .fri-tp-breadcrumbs ol{width:100%!important;flex-wrap:nowrap!important;overflow:hidden!important}
  .fri-tp-breadcrumbs li{flex:0 0 auto!important;white-space:nowrap!important;font-size:.7rem!important}
  .fri-tp-breadcrumbs li:last-child{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
  .fri-tp-breadcrumbs [aria-current="page"]{
    max-width:none!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
  }
  .fri-tp-breadcrumbs li+li::before{margin:0 .38rem!important}
  .fri-tp-context-back{font-size:.78rem!important;font-weight:680!important}

  /* Reserve space for the floating avatar so it can never cover breadcrumbs. */
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    margin-top:4.75rem!important;
    padding-top:4.7rem!important;
  }
}

/* External profile actions use a real viewport sheet instead of details/popovers. */
.fri-tp-connection-trigger{appearance:none!important;-webkit-appearance:none!important}
.fri-tp-connection-modal{
  position:fixed;z-index:2147483001;inset:0;display:flex;align-items:center;justify-content:center;padding:20px
}
.fri-tp-connection-modal-backdrop{
  position:absolute;inset:0;border:0;background:rgba(16,28,46,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)
}
.fri-tp-connection-modal-sheet{
  position:relative;z-index:1;width:min(440px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 40px));overflow:auto;
  padding:1.15rem;border:1px solid var(--fri-border);border-radius:18px;background:#fff;box-shadow:0 24px 64px rgba(18,34,58,.22)
}
.fri-tp-connection-modal-close{
  position:absolute;top:.62rem;right:.68rem;width:34px;height:34px;border:0;border-radius:999px;background:#f2f5f9;color:var(--fri-text);
  font-size:1.35rem;line-height:1;cursor:pointer
}
.fri-tp-connection-modal-sheet form{display:grid;gap:.65rem;margin-top:.8rem}
.fri-tp-connection-modal-sheet label{display:grid;gap:.28rem;color:#516178;font-size:.76rem;font-weight:650}
.fri-tp-connection-modal-sheet input,
.fri-tp-connection-modal-sheet select{
  width:100%;min-height:46px;padding:.62rem .72rem;border:1.5px solid #bfcce0;border-radius:11px;background:#fff;color:var(--fri-text);font:inherit
}
.fri-tp-connection-current,
.fri-tp-connection-suggestion{
  display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-top:.65rem;padding:.72rem .78rem;border:1px solid var(--fri-border);border-radius:12px;background:#f8fbff;
  color:var(--fri-primary)!important;font-size:.75rem;font-weight:650;text-decoration:none!important
}
.fri-tp-connection-suggestion{align-items:flex-start;flex-direction:column;color:var(--fri-text)!important}
.fri-tp-connection-suggestion span{color:var(--fri-muted)}
.fri-tp-connection-modal-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:.55rem;margin-top:.1rem}
.fri-tp-connection-modal-actions button{min-height:44px;border-radius:11px;font-weight:700;cursor:pointer}
.fri-tp-connection-modal-actions button[type="submit"]{border:0;background:var(--fri-primary);color:#fff}

@media(max-width:760px){
  .fri-tp-connection-modal{align-items:flex-end;padding:0}
  .fri-tp-connection-modal-sheet{
    width:100%;max-height:min(82vh,760px);padding:1.15rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0
  }
  .fri-tp-profile-action-row--unified{padding-bottom:.25rem!important}
}

/* iOS-safe explicit photo chooser. */
.fri-tp-image-file-button{
  appearance:none!important;-webkit-appearance:none!important;border:0!important;font:inherit!important;cursor:pointer!important
}

/* Missing result request: source is a first-class choice. */
.fri-tp-result-source{grid-column:1 / -1!important}
.fri-tp-result-source-help{
  grid-column:1 / -1;margin:-.1rem 0 .15rem;padding:.62rem .72rem;border-radius:10px;background:#f5f8fc;color:#5d6d83;font-size:.72rem;line-height:1.45
}

/* Trail overview: only four highlights, compact on desktop and swipeable on phone. */
.fri-tp-trail-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.7rem!important}
.fri-tp-trail-score{display:inline-flex;margin-top:.45rem;padding:.2rem .42rem;border-radius:999px;background:#eef8ef;color:#2f7e45;font-size:.62rem;font-weight:700}
@media(max-width:900px){.fri-tp-trail-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){
  .fri-tp-trail-profile-grid{
    display:flex!important;grid-template-columns:none!important;gap:.65rem!important;overflow-x:auto!important;scroll-snap-type:x mandatory;padding:0 14% .35rem 0;scrollbar-width:none;-webkit-overflow-scrolling:touch
  }
  .fri-tp-trail-profile-grid::-webkit-scrollbar{display:none}
  .fri-tp-trail-profile-grid .fri-tp-trail-result-card{flex:0 0 84%;scroll-snap-align:start;min-height:220px!important}
}

/* Hlaupasaga: convert the seven-column desktop table into readable result cards. */
@media(max-width:720px){
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table-wrap{overflow:visible!important;border:0!important;background:transparent!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table{display:block!important;width:100%!important;background:transparent!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table thead{display:none!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody{display:grid!important;gap:.62rem!important;width:100%!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"date surface" "event time" "race race" "location rank"!important;
    gap:.28rem .65rem!important;width:100%!important;padding:.78rem .82rem!important;border:1px solid var(--fri-border)!important;border-left:4px solid var(--fri-primary)!important;
    border-radius:15px!important;background:#fff!important;box-shadow:none!important
  }
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr:has(.fri-tp-surface-text.track){border-left-color:var(--fri-red)!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr:has(.fri-tp-surface-text.trail){border-left-color:var(--fri-green)!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td{display:block!important;width:auto!important;padding:0!important;border:0!important;background:transparent!important;min-width:0!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(1){grid-area:date;color:var(--fri-muted)!important;font-size:.7rem!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(2){grid-area:event;font-size:.9rem!important;font-weight:700!important;color:var(--fri-text)!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(3){grid-area:surface;justify-self:end;font-size:.67rem!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(4){grid-area:time;justify-self:end;text-align:right!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(4) strong{font-size:1rem!important;line-height:1.15!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(5){grid-area:race;font-size:.78rem!important;font-weight:650!important;margin-top:.12rem}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(6){grid-area:location;color:var(--fri-muted)!important;font-size:.68rem!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(7){grid-area:rank;justify-self:end;color:var(--fri-muted)!important;font-size:.68rem!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-history-extra,
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-result-pace,
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-wa-inline{font-size:.62rem!important;margin-top:.12rem!important}
  .fri-tp-history-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.55rem!important}
  .fri-tp-history-count{grid-column:1 / -1!important;width:auto!important;padding:0!important}
}

/* Compact race detail facts instead of three tall stacked panels. */
@media(max-width:760px){
  .fri-tp-race-facts{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border-radius:16px!important;overflow:hidden!important
  }
  .fri-tp-race-facts>div{
    min-height:82px!important;padding:.72rem .58rem!important;border-right:1px solid var(--fri-border)!important;border-bottom:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important
  }
  .fri-tp-race-facts>div:last-child{border-right:0!important}
  .fri-tp-race-facts strong{font-size:1.08rem!important;line-height:1.1!important}
  .fri-tp-race-facts span{margin-top:.28rem!important;font-size:.62rem!important;line-height:1.2!important}
  .fri-tp-itra-attribution{padding:.72rem!important;gap:.65rem!important;border-radius:14px!important}
  .fri-tp-itra-attribution .fri-tp-itra-badge-link img{width:112px!important;min-width:112px!important;max-width:112px!important}
  .fri-tp-itra-attribution strong{font-size:.76rem!important}
  .fri-tp-itra-attribution span{font-size:.66rem!important;line-height:1.35!important}
}

/* Tabs remain one line but make it obvious they can be swiped. */
@media(max-width:760px){
  .fri-tp-tabs-row{position:relative!important;overflow:hidden!important}
  .fri-tp-tabs-row .fri-tp-tabs{padding-right:2.1rem!important}
  .fri-tp-tabs-row::after{
    content:"";position:absolute;z-index:3;right:0;top:0;bottom:.25rem;width:28px;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 78%)
  }
}

/* Trail comparison in Samanburður. */
.fri-tp-trail-compare-controls{display:flex;flex-wrap:wrap;gap:.4rem;margin:.8rem 0}
.fri-tp-trail-compare-controls button{min-height:36px;padding:.4rem .66rem;border:1px solid var(--fri-border);border-radius:999px;background:#fff;color:var(--fri-text);font-weight:650;cursor:pointer}
.fri-tp-trail-compare-controls button.is-active{border-color:var(--fri-green);background:#eff8f1;color:#2f7e45}
.fri-tp-trail-compare-years{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--fri-border);border-radius:14px;overflow:hidden;background:#fff}
.fri-tp-trail-compare-year{display:grid;gap:.2rem;padding:.72rem .78rem;border-right:1px solid var(--fri-border);border-bottom:1px solid var(--fri-border)}
.fri-tp-trail-compare-year strong{font-size:.76rem}.fri-tp-trail-compare-year span{font-size:.68rem;color:var(--fri-muted)}
.fri-tp-trail-compare-year .runner-a b{color:var(--fri-primary)}.fri-tp-trail-compare-year .runner-b b{color:var(--fri-red)}
@media(max-width:760px){.fri-tp-trail-compare-years{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v1.18.12 — official time + chip/net time hierarchy */
.fri-tp-chip-time{
  display:block;
  margin-top:2px;
  font-size:.82em;
  line-height:1.2;
  font-weight:600;
  color:var(--fri-tp-muted,#697386);
}
.fri-tp-table thead th small{font:inherit;font-size:.78em;font-weight:600;opacity:.82}
.fri-tp-recent-result-time .fri-tp-chip-time{font-size:.42em;font-weight:600;margin-top:3px}
@media (max-width:720px){
  .fri-tp-public-results td:last-child .fri-tp-chip-time{font-size:.78rem;margin-top:2px}
}

/* ==========================================================
   v1.19.0-rc1 — EARLY RELEASE CANDIDATE
   Profile links, mobile polish, trust UI and comparison parity.
   ========================================================== */

/* Connected providers are navigation. Editing lives in one moderated request. */
.fri-tp-profile-edit-trigger{
  appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  margin:.42rem 0 0!important;padding:.15rem 0!important;border:0!important;background:transparent!important;color:var(--fri-primary)!important;
  font:inherit!important;font-size:.62rem!important;line-height:1.25!important;font-weight:650!important;cursor:pointer!important;box-shadow:none!important
}
.fri-tp-profile-edit-trigger:hover,.fri-tp-profile-edit-trigger:focus-visible{text-decoration:underline!important;background:transparent!important;color:var(--fri-primary)!important}
.fri-tp-current-value{display:grid;gap:.18rem;padding:.62rem .72rem;border:1px solid var(--fri-border);border-radius:11px;background:#f7f9fc;overflow-wrap:anywhere}
.fri-tp-current-value span{color:var(--fri-muted);font-size:.62rem;font-weight:600}.fri-tp-current-value strong{font-size:.72rem;font-weight:650}
.fri-tp-connection-modal-sheet textarea{width:100%;min-height:82px;resize:vertical;padding:.62rem .72rem;border:1.5px solid #bfcce0;border-radius:11px;background:#fff;color:var(--fri-text);font:inherit}

/* Close controls: one geometry everywhere and immune to global button rules. */
.fri-tp-profile-image-modal-close,.fri-tp-connection-modal-close{
  display:grid!important;place-items:center!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;
  padding:0!important;border:1px solid #d7dfeb!important;border-radius:999px!important;background:#fff!important;color:var(--fri-text)!important;
  font-size:1.25rem!important;line-height:1!important;font-weight:500!important;box-shadow:0 2px 8px rgba(18,34,58,.06)!important;transform:none!important
}
.fri-tp-profile-image-modal-close:hover,.fri-tp-profile-image-modal-close:focus-visible,
.fri-tp-connection-modal-close:hover,.fri-tp-connection-modal-close:focus-visible{background:#f4f7fb!important;color:var(--fri-primary)!important;transform:none!important}
.fri-tp-connection-modal-backdrop{
  appearance:none!important;-webkit-appearance:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:rgba(16,28,46,.42)!important;box-shadow:none!important;transform:none!important
}
.fri-tp-connection-modal-backdrop:hover,.fri-tp-connection-modal-backdrop:focus,.fri-tp-connection-modal-backdrop:active{background:rgba(16,28,46,.42)!important;box-shadow:none!important;transform:none!important}

/* FRÍ index is part of the athlete hero, never a card inside the card. */
.fri-tp-profile-score-stack,.fri-tp-profile-hero-card .fri-tp-profile-score-stack,
.fri-tp-profile-hero-card .fri-tp-header-index,.fri-tp-profile-hero-card .fri-tp-wa-index-section,
.fri-tp-profile-hero-card .fri-tp-index-lean{
  border:0!important;border-left:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important
}
.fri-tp-profile-score-stack{padding:0!important}
.fri-tp-profile-hero-card .fri-tp-header-index::before,.fri-tp-profile-hero-card .fri-tp-header-index::after{display:none!important}

/* Let the card border visually dip under the profile photo. */
.fri-tp-profile-head.fri-tp-profile-hero-card::after{
  content:"";position:absolute;z-index:2;left:50%;top:-2px;width:142px;height:5px;transform:translateX(-50%);background:#fff;pointer-events:none
}
.fri-tp-profile-head.fri-tp-profile-hero-card::before{
  content:"";position:absolute;z-index:3;left:50%;top:-1px;width:136px;height:68px;transform:translateX(-50%);box-sizing:border-box;
  border:1px solid #E5EAF1;border-top:0;border-radius:0 0 72px 72px;background:#fff;pointer-events:none
}
.fri-tp-profile-hero-card .fri-tp-profile-avatar{z-index:5!important}
.fri-tp-profile-image-request{z-index:6!important}

/* Trust line stays deliberately quiet. */
.fri-tp-profile-trust{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap;width:min(100%,var(--fri-content-max));max-width:var(--fri-content-max);margin:-.42rem auto .85rem;color:#7a889d;font-size:.56rem;line-height:1.35}
.fri-tp-profile-trust strong{color:#5e6e85;font-weight:650}

/* Two request rows belong to one support area. */
.fri-tp-profile-result-request{display:grid;gap:.5rem!important}
.fri-tp-data-error-details summary{background:#fbfcfe!important}

/* The hub ending uses the same editorial heading system as other sections. */
.fri-tp-hub-explore>.fri-tp-section-head{margin-bottom:1rem!important;align-items:flex-start!important;text-align:left!important}
.fri-tp-hub-explore>.fri-tp-section-head h2{margin:0!important}

/* Trail: compare the same named course/distance across years. */
.fri-tp-trail-race-compare{margin-top:1.35rem;padding-top:1.15rem;border-top:1px solid var(--fri-border)}
.fri-tp-section-head--compact{align-items:flex-end!important;margin-bottom:.7rem!important}
.fri-tp-section-head--compact h4{margin:.22rem 0 0;font-size:1.05rem;line-height:1.15}
.fri-tp-trail-race-compare-list{display:grid;border:1px solid var(--fri-border);border-radius:14px;overflow:hidden;background:#fff}
.fri-tp-trail-race-compare-row{display:grid;grid-template-columns:72px 1fr 1fr;gap:0;border-bottom:1px solid var(--fri-border);align-items:stretch}
.fri-tp-trail-race-compare-row:last-child{border-bottom:0}
.fri-tp-trail-race-compare-row>b{display:flex;align-items:center;padding:.72rem;color:var(--fri-muted);font-size:.7rem}
.fri-tp-trail-race-compare-row>div{display:grid;gap:.16rem;padding:.68rem .75rem;border-left:1px solid var(--fri-border)}
.fri-tp-trail-race-compare-row strong{font-size:.9rem}.fri-tp-trail-race-compare-row span{color:var(--fri-muted);font-size:.62rem}
.fri-tp-trail-race-compare-row .runner-a.is-compare-winner strong{color:var(--fri-primary)}
.fri-tp-trail-race-compare-row .runner-b.is-compare-winner strong{color:var(--fri-red)}

/* Mobile hardening. */
@media(max-width:760px){
  .fri-tp-app,.fri-tp-product-shell,.fri-tp-profile,.fri-tp-tab-panel,.fri-tp-tab-panel>.fri-tp-section,
  .fri-tp-history-panel,.fri-tp-compare-output{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}

  /* All editorial headings start on the content gutter; controls sit below. */
  .fri-tp-hub-section>.fri-tp-section-head,
  .fri-tp-tab-panel .fri-tp-section-head,
  .fri-tp-compare-section>.fri-tp-section-head{
    width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;
    text-align:left!important;gap:.75rem!important;margin-left:0!important;margin-right:0!important
  }
  .fri-tp-hub-section>.fri-tp-section-head>div,
  .fri-tp-tab-panel .fri-tp-section-head>div,
  .fri-tp-compare-section>.fri-tp-section-head>div{width:100%!important;max-width:100%!important;text-align:left!important;margin:0!important}
  .fri-tp-hub-section>.fri-tp-section-head h2,
  .fri-tp-tab-panel .fri-tp-section-head h3,
  .fri-tp-compare-section>.fri-tp-section-head h3,
  .fri-tp-section-head--compact h4{width:100%!important;max-width:100%!important;text-align:left!important;margin-left:0!important;margin-right:0!important}
  .fri-tp-progression-controls,.fri-tp-compare-progression-controls{width:100%!important;max-width:100%!important;justify-content:flex-start!important;margin-left:0!important}

  /* Hero: preserve the image treatment but remove any index-card feel. */
  .fri-tp-profile-head.fri-tp-profile-hero-card{padding-top:3.65rem!important}
  .fri-tp-profile-head.fri-tp-profile-hero-card::before{width:120px;height:59px;border-radius:0 0 64px 64px}
  .fri-tp-profile-head.fri-tp-profile-hero-card::after{width:126px}
  .fri-tp-profile-hero-card .fri-tp-profile-avatar{width:100px!important;height:100px!important}
  .fri-tp-profile-hero-card .fri-tp-header-index{border-top:1px solid #eef1f5!important;border-left:0!important;padding-top:.7rem!important;background:transparent!important}
  .fri-tp-profile-trust{justify-content:flex-start;margin:.05rem 0 .8rem;padding:0 .15rem;font-size:.58rem}

  /* Bottom sheets are viewport-safe. */
  .fri-tp-profile-image-modal-sheet,.fri-tp-connection-modal-sheet{max-height:min(86dvh,760px)!important;overflow:auto!important;overscroll-behavior:contain!important}
  .fri-tp-profile-image-modal-close,.fri-tp-connection-modal-close{position:sticky!important;float:right!important;top:.15rem!important;right:.15rem!important;z-index:5!important;margin:0 0 -.1rem .6rem!important}
  .fri-tp-popover-head{padding-right:0!important}

  /* History cards must never create an off-screen canvas. */
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table-wrap,
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table,
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody,
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr{max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr{grid-template-columns:minmax(0,1fr) minmax(76px,auto)!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(5),
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-race-link,
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-missing-race-name{white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}

  /* Compare search mirrors the primary home-search geometry. */
  .fri-tp-compare-search{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:.55rem!important;width:100%!important;max-width:100%!important;align-items:end!important}
  .fri-tp-compare-search input{width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;border-radius:11px!important;padding:.62rem .75rem!important}
  .fri-tp-compare-search button{width:auto!important;min-width:76px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:.55rem .9rem!important;border-radius:11px!important}
  .fri-tp-compare-search-results{width:100%!important;max-width:100%!important}
  .fri-tp-compare-search-results .fri-tp-search-card{width:100%!important;max-width:100%!important;min-width:0!important}

  /* Shared results become stacked race-result cards, never horizontal tables. */
  .fri-tp-shared-races-wrap{overflow:visible!important;border:0!important;background:transparent!important}
  .fri-tp-shared-races-table{display:block!important;width:100%!important;min-width:0!important;background:transparent!important}
  .fri-tp-shared-races-table thead{display:none!important}
  .fri-tp-shared-races-table tbody{display:grid!important;gap:.62rem!important;width:100%!important}
  .fri-tp-shared-races-table tbody tr{display:grid!important;width:100%!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"date event" "race race" "a b"!important;gap:.3rem .55rem!important;padding:.78rem .82rem!important;border:1px solid var(--fri-border)!important;border-left:4px solid var(--fri-primary)!important;border-radius:15px!important;background:#fff!important;box-sizing:border-box!important}
  .fri-tp-shared-races-table tbody td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important}
  .fri-tp-shared-races-table .fri-tp-shared-date{grid-area:date!important;color:var(--fri-muted)!important;font-size:.68rem!important}
  .fri-tp-shared-races-table .fri-tp-shared-event{grid-area:event!important;justify-self:end!important;font-size:.72rem!important;font-weight:700!important}
  .fri-tp-shared-races-table .fri-tp-shared-race{grid-area:race!important;margin:.1rem 0 .2rem!important;font-size:.76rem!important;font-weight:650!important;overflow-wrap:anywhere!important}
  .fri-tp-shared-races-table .fri-tp-shared-a{grid-area:a!important;padding:.58rem .62rem!important;border-radius:10px!important;background:#f7f9fc!important}
  .fri-tp-shared-races-table .fri-tp-shared-b{grid-area:b!important;padding:.58rem .62rem!important;border-radius:10px!important;background:#f7f9fc!important;text-align:right!important}
  .fri-tp-shared-races-table .fri-tp-meeting-result{min-width:0!important}
  .fri-tp-shared-races-table .fri-tp-meeting-result strong{font-size:1rem!important}.fri-tp-shared-races-table .fri-tp-meeting-result span{font-size:.62rem!important}

  .fri-tp-section-head--compact .fri-tp-event-picker{width:100%!important}.fri-tp-section-head--compact .fri-tp-event-picker select{width:100%!important;max-width:none!important}
  .fri-tp-trail-race-compare-row{grid-template-columns:52px 1fr 1fr}.fri-tp-trail-race-compare-row>b{padding:.58rem .48rem}.fri-tp-trail-race-compare-row>div{padding:.58rem}
}

/* Touch devices must never get stuck in desktop hover colours. */
@media(hover:none){
  .fri-tp-compare-search-results .fri-tp-search-card:hover,
  .fri-tp-compare-search-results .fri-tp-search-card:focus:not(:focus-visible){background:#fff!important;color:var(--fri-text)!important;border-color:var(--fri-border)!important}
  .fri-tp-compare-search-results .fri-tp-search-card:hover *,
  .fri-tp-compare-search-results .fri-tp-search-card:focus:not(:focus-visible) *{color:inherit!important}
  .fri-tp-provider-action:hover{transform:none!important}
}
@media(max-width:760px){
  .fri-tp-shared-races-table:not(.has-race-name) tbody tr{grid-template-areas:"date event" "a b"!important}
}
/* Comparison search follows the same calm hover/focus language as main search. */
.fri-tp-compare-search-results .fri-tp-search-card:hover,
.fri-tp-compare-search-results .fri-tp-search-card:focus-visible{
  background:#f6f9ff!important;color:var(--fri-text)!important;border-color:#c9d8f1!important
}
.fri-tp-compare-search-results .fri-tp-search-card:hover *,
.fri-tp-compare-search-results .fri-tp-search-card:focus-visible *{color:inherit!important}
.fri-tp-compare-search-results .fri-tp-search-card:hover strong,
.fri-tp-compare-search-results .fri-tp-search-card:focus-visible strong{color:var(--fri-primary)!important}


/* ==========================================================
   v1.19.1-rc2 — early-release visual/UX patch
   ========================================================== */

/* FRÍ-vísir is truly part of the profile header, not a nested card. */
.fri-tp-profile-hero-card .fri-tp-score-card--fri{
  padding:.15rem 0 0!important;border:0!important;border-left:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-head{min-height:36px!important}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-fri-meter{margin-top:.28rem!important}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-foot{padding-left:0!important;padding-right:0!important}

/* Draw the top border ourselves so it genuinely bends down around the avatar. */
.fri-tp-profile-head.fri-tp-profile-hero-card{border-top-color:transparent!important}
.fri-tp-profile-head.fri-tp-profile-hero-card::after{
  content:""!important;position:absolute!important;z-index:2!important;top:-1px!important;left:0!important;width:100%!important;height:1px!important;transform:none!important;
  background:linear-gradient(to right,#E5EAF1 0,#E5EAF1 calc(50% - 70px),transparent calc(50% - 70px),transparent calc(50% + 70px),#E5EAF1 calc(50% + 70px),#E5EAF1 100%)!important;pointer-events:none!important
}
.fri-tp-profile-head.fri-tp-profile-hero-card::before{
  content:""!important;position:absolute!important;z-index:3!important;left:50%!important;top:-1px!important;width:140px!important;height:70px!important;transform:translateX(-50%)!important;
  box-sizing:border-box!important;border:1px solid #E5EAF1!important;border-top:0!important;border-radius:0 0 76px 76px!important;background:transparent!important;pointer-events:none!important
}

/* Missing result is a compact hero utility. */
.fri-tp-profile-result-request{width:auto!important;margin:.55rem 0 0!important;display:block!important}
.fri-tp-missing-result-trigger{
  appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;gap:.38rem!important;min-height:32px!important;
  padding:.38rem .68rem!important;border:1px solid var(--fri-border)!important;border-radius:999px!important;background:#fff!important;color:var(--fri-text-soft)!important;
  font:650 .66rem/1 var(--fri-font-body)!important;cursor:pointer!important;box-shadow:none!important
}
.fri-tp-missing-result-trigger span{color:var(--fri-primary)!important;font-size:.82rem!important}
.fri-tp-missing-result-trigger:hover,.fri-tp-missing-result-trigger:focus-visible{border-color:#b9c9e5!important;background:#f7f9fd!important;color:var(--fri-primary)!important}
.fri-tp-result-request-modal{position:fixed;z-index:2147483002;inset:0;display:flex;align-items:center;justify-content:center;padding:20px}
.fri-tp-result-request-backdrop{position:absolute;inset:0;border:0!important;border-radius:0!important;background:rgba(16,28,46,.42)!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);box-shadow:none!important}
.fri-tp-result-request-sheet{position:relative;z-index:1;width:min(560px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 40px));overflow:auto;padding:1.15rem;border:1px solid var(--fri-border);border-radius:18px;background:#fff;box-shadow:0 24px 64px rgba(18,34,58,.22)}
.fri-tp-result-request-close{position:absolute!important;top:.62rem!important;right:.68rem!important}
.fri-tp-result-request-sheet .fri-tp-popover-head{padding-right:2.8rem;margin-bottom:.85rem}
.fri-tp-result-request-sheet .fri-tp-popover-head strong{display:block;font-size:1rem}
.fri-tp-result-request-sheet .fri-tp-popover-head span{display:block;margin-top:.2rem;color:var(--fri-muted);font-size:.72rem;line-height:1.4}
.fri-tp-result-request-sheet form{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.fri-tp-result-request-sheet label{display:grid;gap:.28rem;color:#516178;font-size:.7rem;font-weight:650}
.fri-tp-result-request-sheet label span{color:#516178!important}
.fri-tp-result-request-sheet input,.fri-tp-result-request-sheet select,.fri-tp-result-request-sheet textarea{width:100%;min-height:44px;padding:.58rem .68rem;border:1.5px solid #bfcce0;border-radius:10px;background:#fff;color:var(--fri-text);font:inherit}
.fri-tp-result-request-sheet textarea{min-height:86px;resize:vertical}.fri-tp-result-request-sheet .fri-tp-result-source,.fri-tp-result-request-sheet .fri-tp-result-source-help,.fri-tp-result-request-sheet .fri-tp-result-request-note,.fri-tp-result-request-sheet .fri-tp-status{grid-column:1/-1}
.fri-tp-result-request-sheet button[type="submit"]{grid-column:1/-1;min-height:44px;border:0;border-radius:10px;background:var(--fri-primary);color:#fff;font-weight:700;cursor:pointer}

/* Hlaupasaga controls are controls, not a card. Count stays on the same line. */
.fri-tp-history-panel .fri-tp-history-tools{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;gap:.65rem!important}
.fri-tp-history-panel .fri-tp-history-count{padding:0 0 .62rem!important;margin-right:.15rem!important}
.fri-tp-history-place{display:grid!important;gap:.05rem!important}.fri-tp-history-place strong{font:700 .7rem/1.25 var(--fri-font-body)!important;color:var(--fri-text)!important}.fri-tp-history-place span{font:500 .62rem/1.25 var(--fri-font-body)!important;color:var(--fri-muted)!important}

/* Race result filters float directly on the page; no outer filter card. */
.fri-tp-result-filters{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}

/* Comparison results: never allow inherited hover text-fill to make a name disappear. */
.fri-tp-compare-search-results .fri-tp-search-card,.fri-tp-compare-search-results .fri-tp-search-card *{color:var(--fri-text)!important;-webkit-text-fill-color:currentColor!important}
.fri-tp-compare-search-results .fri-tp-search-card small{color:var(--fri-muted)!important;-webkit-text-fill-color:var(--fri-muted)!important}
.fri-tp-compare-search-results .fri-tp-search-card:hover,.fri-tp-compare-search-results .fri-tp-search-card:focus-visible{background:#f6f9ff!important;color:var(--fri-text)!important;border-color:#c9d8f1!important}
.fri-tp-compare-search-results .fri-tp-search-card:hover strong,.fri-tp-compare-search-results .fri-tp-search-card:focus-visible strong{color:var(--fri-primary)!important;-webkit-text-fill-color:var(--fri-primary)!important}

/* Homepage utility labels should use the available area. */
.fri-tp-service-pills a{font-size:.78rem!important;font-weight:680!important}

@media(max-width:720px){
  .fri-tp-profile-head.fri-tp-profile-hero-card::before{width:114px!important;height:57px!important;border-radius:0 0 62px 62px!important}
  .fri-tp-profile-head.fri-tp-profile-hero-card::after{background:linear-gradient(to right,#E5EAF1 0,#E5EAF1 calc(50% - 57px),transparent calc(50% - 57px),transparent calc(50% + 57px),#E5EAF1 calc(50% + 57px),#E5EAF1 100%)!important}
  .fri-tp-profile-result-request{display:flex!important;justify-content:center!important}
  .fri-tp-missing-result-trigger{font-size:.7rem!important;min-height:36px!important}
  .fri-tp-result-request-modal{align-items:flex-end;padding:0}
  .fri-tp-result-request-sheet{width:100%;max-height:min(88dvh,780px);padding:1.1rem 1rem calc(1rem + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0}
  .fri-tp-result-request-sheet form{grid-template-columns:1fr}
  .fri-tp-result-request-sheet .fri-tp-result-source,.fri-tp-result-request-sheet .fri-tp-result-source-help,.fri-tp-result-request-sheet .fri-tp-result-request-note,.fri-tp-result-request-sheet .fri-tp-status,.fri-tp-result-request-sheet button[type="submit"]{grid-column:auto}
  .fri-tp-history-panel .fri-tp-history-tools{display:grid!important;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr)!important;align-items:end!important;width:100%!important;gap:.48rem!important}
  .fri-tp-history-count{grid-column:auto!important;align-self:center!important;width:auto!important;padding:0 0 .58rem!important;font-size:.68rem!important;white-space:nowrap!important}
  .fri-tp-history-panel .fri-tp-history-tools .fri-tp-event-picker{min-width:0!important;width:100%!important}
  .fri-tp-history-panel .fri-tp-history-tools select{width:100%!important;min-width:0!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td.fri-tp-history-place{display:grid!important;justify-items:end!important}
  .fri-tp-result-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:.55rem!important;padding:0!important;border:0!important;background:transparent!important}
  .fri-tp-result-filters label:first-child{grid-column:1/-1!important}
  .fri-tp-service-pills a{font-size:.76rem!important;font-weight:700!important;padding:.58rem .35rem!important}
}


/* ==========================================================
   v1.19.2-rc3 — live QA polish
   ========================================================== */

/* Profile provider row: connected links navigate; missing providers open the moderated connector request. */
.fri-tp-profile-secondary-actions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:.9rem!important;margin:.38rem 0 0!important}
.fri-tp-profile-secondary-actions .fri-tp-profile-edit-trigger{margin:0!important}
.fri-tp-provider-action.is-connect{color:#53627a!important;background:#fff!important}
.fri-tp-provider-action.is-connect b{color:var(--fri-primary)!important;font-size:.8rem!important}
.fri-tp-provider-action.is-connect:hover,.fri-tp-provider-action.is-connect:focus-visible{color:var(--fri-primary)!important;background:#f7faff!important}
.fri-tp-profile-result-request{display:none!important}

/* FRÍ-vísir header: official FRÍ mark on the left, product label on the right. */
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:28px!important;text-align:left!important;margin-bottom:.05rem!important
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-brand{position:static!important;display:inline-flex!important;align-items:center!important;min-height:22px!important;color:var(--fri-primary)!important}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-brand img{display:block!important;width:auto!important;height:22px!important;max-width:72px!important;object-fit:contain!important}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-kicker{margin:0!important;text-align:right!important;font-size:.62rem!important;letter-spacing:.06em!important}
.fri-tp-profile-hero-card .fri-tp-score-card--fri>.fri-tp-score-card-value{margin:.1rem 0 .28rem!important;text-align:left!important;font-size:2rem!important;line-height:.92!important}

/* Hlaupasaga desktop: reserve real room for two placing lines. */
@media(min-width:761px){
  .fri-tp-history-panel .fri-tp-table th:nth-child(1),.fri-tp-history-panel .fri-tp-table td:nth-child(1){width:11%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(2),.fri-tp-history-panel .fri-tp-table td:nth-child(2){width:11%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(3),.fri-tp-history-panel .fri-tp-table td:nth-child(3){width:10%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(4),.fri-tp-history-panel .fri-tp-table td:nth-child(4){width:13%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(5),.fri-tp-history-panel .fri-tp-table td:nth-child(5){width:25%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(6),.fri-tp-history-panel .fri-tp-table td:nth-child(6){width:15%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(7),.fri-tp-history-panel .fri-tp-table td:nth-child(7){width:15%!important}
  .fri-tp-history-panel .fri-tp-history-place{justify-items:start!important;align-content:center!important;overflow-wrap:normal!important;word-break:normal!important}
  .fri-tp-history-panel .fri-tp-history-place strong,.fri-tp-history-panel .fri-tp-history-place span{white-space:nowrap!important}
}

/* Comparison search is literally the main search component, including a floating result panel. */
.fri-tp-compare-runner-search{max-width:720px!important;margin:1rem 0 1.25rem!important;z-index:260!important}
.fri-tp-compare-runner-search .fri-tp-compare-search{max-width:720px!important;margin:.25rem 0 .2rem!important}
.fri-tp-compare-runner-search .fri-tp-compare-search-results{max-width:720px!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card,
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card:hover,
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card:focus,
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card:focus-visible{
  background:#fff!important;border-color:transparent!important;color:#172033!important;-webkit-text-fill-color:#172033!important;opacity:1!important
}
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card:hover,
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card:focus-visible{background:#FAFCFF!important;border-color:#B8C8DF!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card *,
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card:hover *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card strong{color:#172033!important;-webkit-text-fill-color:#172033!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-compare-search-results button.fri-tp-search-card small{color:#718096!important;-webkit-text-fill-color:#718096!important}

/* Comparison progression: heading first, then one disciplined toolbar. */
.fri-tp-compare-progression-section>.fri-tp-section-head{display:block!important;margin-bottom:.8rem!important}
.fri-tp-compare-progression-controls{
  display:grid!important;grid-template-columns:auto auto minmax(175px,220px) minmax(220px,1fr)!important;gap:.6rem!important;align-items:end!important;
  width:100%!important;max-width:100%!important;margin:.2rem 0 .85rem!important;padding:.72rem!important;border:1px solid #E3E9F2!important;border-radius:14px!important;background:#F8FAFD!important
}
.fri-tp-compare-progression-controls .fri-tp-filter-group{display:grid!important;gap:.3rem!important;align-content:end!important}
.fri-tp-compare-progression-controls .fri-tp-filter-group>span,
.fri-tp-compare-progression-controls .fri-tp-event-picker>span{color:#5c6b83!important;font-size:.62rem!important;font-weight:680!important;line-height:1.1!important}
.fri-tp-compare-progression-controls .fri-tp-compare-mode{min-height:40px!important;height:40px!important}
.fri-tp-compare-progression-controls .fri-tp-compare-mode button{min-height:32px!important;height:32px!important;padding:.28rem .62rem!important;font-size:.64rem!important}
.fri-tp-compare-progression-controls .fri-tp-event-picker{display:grid!important;gap:.3rem!important;min-width:0!important;margin:0!important}
.fri-tp-compare-progression-controls .fri-tp-event-picker select{width:100%!important;max-width:none!important;min-width:0!important;min-height:40px!important;height:40px!important}
.fri-tp-compare-progression-section .fri-tp-compare-chart{margin-top:0!important}
.fri-tp-compare-progression-section .fri-tp-trail-compare-years{margin:0!important}

@media(max-width:900px){
  .fri-tp-compare-progression-controls{grid-template-columns:1fr 1fr!important}
  .fri-tp-compare-progression-controls .fri-tp-event-picker{width:100%!important}
}
@media(max-width:760px){
  .fri-tp-profile-secondary-actions{gap:.35rem .75rem!important;justify-content:flex-start!important}
  .fri-tp-profile-secondary-actions .fri-tp-profile-edit-trigger{font-size:.64rem!important}
  .fri-tp-compare-runner-search{max-width:100%!important;margin:.75rem 0 1rem!important}
  .fri-tp-compare-runner-search .fri-tp-search-form{grid-template-columns:minmax(0,1fr) auto!important;width:100%!important}
  .fri-tp-compare-progression-controls{grid-template-columns:1fr 1fr!important;padding:.62rem!important;gap:.52rem!important}
  .fri-tp-compare-progression-controls .fri-tp-filter-group,.fri-tp-compare-progression-controls .fri-tp-event-picker{min-width:0!important;width:100%!important}
  .fri-tp-compare-progression-controls .fri-tp-filter-group[hidden],.fri-tp-compare-progression-controls .fri-tp-event-picker[hidden]{display:none!important}
  .fri-tp-compare-progression-controls .fri-tp-compare-mode{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-brand img{height:20px!important;max-width:66px!important}
}
@media(max-width:460px){
  .fri-tp-compare-progression-controls{grid-template-columns:1fr!important}
}

/* Hidden filter groups must stay hidden even though toolbar children use explicit display rules. */
.fri-tp-compare-progression-controls .fri-tp-filter-group[hidden],
.fri-tp-compare-progression-controls .fri-tp-event-picker[hidden]{display:none!important}

/* ==========================================================
   v1.19.3-rc4 — unified profile/history/comparison polish
   ========================================================== */

/* Profile identity: provider order is controlled in JS; keep WA visually last. */
.fri-tp-profile-action-row--unified{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:.42rem!important}

/* FRÍ vísir sits on the same baseline as the identity utilities at the bottom of the hero. */
.fri-tp-profile-hero-card .fri-tp-header-index{
  align-self:end!important;
  margin:0!important;
  padding:0 0 .05rem!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  min-height:118px!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:24px!important;
  margin:0 0 .12rem!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-kicker{
  order:1!important;
  color:#66758a!important;
  text-align:left!important;
  font-size:.62rem!important;
  letter-spacing:.06em!important;
  text-transform:none!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-brand{
  order:2!important;
  margin-left:auto!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri>.fri-tp-score-card-value{
  margin:.04rem 0 .26rem!important;
  text-align:left!important;
}

/* History: overall placing and class/gender placing are separate data columns. */
@media(min-width:761px){
  .fri-tp-history-panel .fri-tp-table{table-layout:fixed!important;width:100%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(1),.fri-tp-history-panel .fri-tp-table td:nth-child(1){width:10%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(2),.fri-tp-history-panel .fri-tp-table td:nth-child(2){width:10%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(3),.fri-tp-history-panel .fri-tp-table td:nth-child(3){width:9%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(4),.fri-tp-history-panel .fri-tp-table td:nth-child(4){width:12%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(5),.fri-tp-history-panel .fri-tp-table td:nth-child(5){width:24%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(6),.fri-tp-history-panel .fri-tp-table td:nth-child(6){width:14%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(7),.fri-tp-history-panel .fri-tp-table td:nth-child(7){width:9%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(8),.fri-tp-history-panel .fri-tp-table td:nth-child(8){width:12%!important}
  .fri-tp-history-panel .fri-tp-history-place{display:block!important;overflow-wrap:normal!important;word-break:normal!important}
  .fri-tp-history-panel .fri-tp-history-place strong,.fri-tp-history-panel .fri-tp-history-place span{white-space:normal!important}
  .fri-tp-history-panel .fri-tp-history-place--overall strong{font-size:.72rem!important}
  .fri-tp-history-panel .fri-tp-history-place--class span{font-size:.66rem!important;color:var(--fri-muted)!important}
}

/* Comparison progression uses the same open editorial language as the rest of the product. */
.fri-tp-compare-progression-section>.fri-tp-section-head{
  width:100%!important;
  max-width:none!important;
  margin:0 0 .7rem!important;
  text-align:left!important;
}
.fri-tp-compare-progression-controls{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:.62rem .72rem!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 .9rem!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.fri-tp-compare-progression-controls .fri-tp-filter-group,
.fri-tp-compare-progression-controls .fri-tp-event-picker{
  display:grid!important;
  gap:.28rem!important;
  align-content:end!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
}
.fri-tp-compare-progression-controls .fri-tp-filter-group>span,
.fri-tp-compare-progression-controls .fri-tp-event-picker>span{
  color:#66758a!important;
  font-size:.61rem!important;
  font-weight:680!important;
  line-height:1.1!important;
}
.fri-tp-compare-progression-controls .fri-tp-compare-mode{
  display:inline-grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:max-content!important;
  width:auto!important;
  min-width:0!important;
  min-height:38px!important;
  height:38px!important;
}
.fri-tp-compare-progression-controls .fri-tp-compare-mode button{
  min-width:52px!important;
  min-height:32px!important;
  height:32px!important;
  padding:.28rem .62rem!important;
  font-size:.64rem!important;
}
.fri-tp-compare-progression-controls [data-fri-tp-compare-surface-wrap]{flex:0 0 170px!important}
.fri-tp-compare-progression-controls [data-fri-tp-compare-event-wrap]{flex:0 1 250px!important;max-width:300px!important}
.fri-tp-compare-progression-controls .fri-tp-event-picker select{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  height:38px!important;
  padding-top:.4rem!important;
  padding-bottom:.4rem!important;
}
.fri-tp-compare-progression-section .fri-tp-compare-chart,
.fri-tp-compare-progression-section>[data-fri-tp-compare-progression-table],
.fri-tp-compare-progression-section>[data-fri-tp-compare-progression-table]>.fri-tp-stat-board{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.fri-tp-compare-progression-section .fri-tp-compare-chart{margin-top:0!important}
.fri-tp-compare-progression-section .fri-tp-progression-board{margin-top:.8rem!important}

/* Mobile history keeps both placement concepts without squeezing the card. */
@media(max-width:720px){
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"date surface" "event time" "race race" "location rank" ". classrank"!important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(7){grid-area:rank!important;justify-self:end!important;text-align:right!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(8){grid-area:classrank!important;justify-self:end!important;text-align:right!important;color:var(--fri-muted)!important;font-size:.64rem!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-history-place--overall strong,
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-history-place--class span{white-space:nowrap!important}
}

@media(max-width:760px){
  .fri-tp-profile-hero-card .fri-tp-header-index{align-self:stretch!important;margin-top:.75rem!important;padding-top:.7rem!important}
  .fri-tp-profile-hero-card .fri-tp-score-card--fri{min-height:0!important}
  .fri-tp-compare-progression-controls{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.55rem!important}
  .fri-tp-compare-progression-controls [data-fri-tp-compare-surface-wrap],
  .fri-tp-compare-progression-controls [data-fri-tp-compare-event-wrap]{flex:none!important;max-width:none!important;width:100%!important}
  .fri-tp-compare-progression-controls .fri-tp-compare-mode{width:100%!important;grid-template-columns:1fr 1fr!important;grid-auto-flow:row!important;grid-auto-columns:auto!important}
  .fri-tp-compare-progression-controls .fri-tp-compare-mode button{width:100%!important}
}
@media(max-width:460px){
  .fri-tp-compare-progression-controls{grid-template-columns:1fr!important}
}

/* Align the whole score stack, not only its inner section, to the hero baseline. */
.fri-tp-profile-hero-card .fri-tp-profile-score-stack{align-self:end!important;margin:0!important}

/* ==========================================================
   v1.19.4-rc5 — final history/profile polish + installable app
   ========================================================== */

/* FRÍ-vísir: keep the official mark and label together, anchored to the
   lower utility baseline of the profile hero instead of floating mid-card. */
.fri-tp-profile-hero-card .fri-tp-profile-score-stack{
  align-self:end!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri{
  justify-content:flex-end!important;
  min-height:0!important;
  padding-bottom:0!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-head{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:.34rem!important;
  min-height:22px!important;
  margin:0 0 .08rem!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-brand{
  order:1!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri .fri-tp-score-card-kicker{
  order:2!important;
  margin:0!important;
  text-align:left!important;
  white-space:nowrap!important;
  color:#66758a!important;
  font-size:.62rem!important;
  letter-spacing:.045em!important;
  line-height:1!important;
}
.fri-tp-profile-hero-card .fri-tp-score-card--fri>.fri-tp-score-card-value{
  margin:.06rem 0 .24rem!important;
}

/* Hlaupasaga desktop: real table cells for both placing columns. Earlier
   display:block rules made each border shrink to its content and visually
   broke the last two columns. */
@media(min-width:761px){
  .fri-tp-history-panel .fri-tp-table{table-layout:fixed!important;width:100%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(1),.fri-tp-history-panel .fri-tp-table td:nth-child(1){width:10%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(2),.fri-tp-history-panel .fri-tp-table td:nth-child(2){width:10%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(3),.fri-tp-history-panel .fri-tp-table td:nth-child(3){width:9%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(4),.fri-tp-history-panel .fri-tp-table td:nth-child(4){width:12%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(5),.fri-tp-history-panel .fri-tp-table td:nth-child(5){width:23%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(6),.fri-tp-history-panel .fri-tp-table td:nth-child(6){width:14%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(7),.fri-tp-history-panel .fri-tp-table td:nth-child(7){width:9%!important}
  .fri-tp-history-panel .fri-tp-table th:nth-child(8),.fri-tp-history-panel .fri-tp-table td:nth-child(8){width:13%!important}
  .fri-tp-history-panel .fri-tp-table td.fri-tp-history-place{
    display:table-cell!important;
    width:auto;
    vertical-align:middle!important;
    text-align:left!important;
    border-bottom:1px solid var(--fri-border)!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  .fri-tp-history-panel .fri-tp-history-place strong,
  .fri-tp-history-panel .fri-tp-history-place span{
    display:inline-block!important;
    white-space:nowrap!important;
    line-height:1.25!important;
  }
  .fri-tp-history-panel .fri-tp-history-place--overall strong{font-size:.76rem!important;font-weight:700!important}
  .fri-tp-history-panel .fri-tp-history-place--class span{font-size:.7rem!important;color:var(--fri-muted)!important}
}

/* Installable Hlauparar app: subtle opt-in action, never an automatic popup. */
.fri-tp-pwa-install[hidden],.fri-tp-pwa-guide[hidden]{display:none!important}
.fri-tp-pwa-install{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin-top:.72rem;
}
.fri-tp-pwa-install-button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  min-height:36px;
  padding:.42rem .72rem;
  border:1px solid #D9E2F1;
  border-radius:999px;
  background:#fff;
  color:var(--fri-primary);
  font:700 .76rem/1 var(--fri-font-body);
  cursor:pointer;
}
.fri-tp-pwa-install-button:hover,.fri-tp-pwa-install-button:focus-visible{
  border-color:var(--fri-primary);
  background:#F7FAFF;
}
.fri-tp-pwa-install-note{color:var(--fri-muted);font-size:.68rem}
.fri-tp-pwa-guide{position:fixed;inset:0;z-index:100000;display:grid;place-items:end center}
.fri-tp-pwa-guide-backdrop{position:absolute;inset:0;border:0;background:rgba(11,23,43,.48);cursor:pointer}
.fri-tp-pwa-guide-sheet{
  position:relative;
  z-index:1;
  width:min(100%,520px);
  margin:0;
  padding:1.3rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
  border:1px solid var(--fri-border);
  border-bottom:0;
  border-radius:22px 22px 0 0;
  background:#fff;
  box-shadow:0 -18px 55px rgba(22,34,54,.14);
}
.fri-tp-pwa-guide-sheet h2{margin:.2rem 2.5rem .9rem 0;font-size:1.45rem}
.fri-tp-pwa-guide-sheet ol{margin:.2rem 0 .9rem;padding-left:1.3rem;color:var(--fri-text-soft)}
.fri-tp-pwa-guide-sheet li{margin:.48rem 0;padding-left:.15rem}
.fri-tp-pwa-guide-sheet p{margin:0;color:var(--fri-muted);font-size:.82rem}
.fri-tp-pwa-guide-sheet .fri-tp-modal-close{position:absolute!important;top:.9rem!important;right:.9rem!important}

@media(max-width:720px){
  .fri-tp-pwa-install{align-items:flex-start;flex-direction:column;gap:.35rem;margin-top:.65rem}
  .fri-tp-pwa-install-button{font-size:.72rem}
  .fri-tp-pwa-install-note{padding-left:.2rem}
}

/* ======================================================================
   v1.19.5-rc6 — mobile product polish
   Keep provider actions in one swipeable row, prevent iOS search-focus zoom,
   and make the PWA install action a quiet utility rather than a hero CTA.
   ====================================================================== */

/* The provider sequence is part of the profile identity. On narrow screens it
   stays on one line and becomes horizontally scrollable instead of wrapping WA
   onto a second row. The clipped next pill is an intentional affordance. */
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    overscroll-behavior-inline:contain;
    touch-action:pan-x;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions::-webkit-scrollbar{display:none!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions .fri-tp-profile-action-row{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    width:max-content!important;
    min-width:100%!important;
    gap:.42rem!important;
    padding:0 .7rem .18rem 0!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions .fri-tp-provider-action,
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-social-actions .fri-tp-connection-popover{
    flex:0 0 auto!important;
  }

  /* Safari zooms focused controls whose computed font-size is <16px. That zoom
     was the apparent right-shift seen when opening the runner search keyboard. */
  .fri-tp-public-hub .fri-tp-runner-search .fri-tp-search-form input,
  .fri-tp-app.fri-tp-product-shell .fri-tp-runner-search .fri-tp-search-form input,
  .fri-tp-app.fri-tp-product-shell .fri-tp-compare-runner-search .fri-tp-search-form input{
    font-size:16px!important;
  }
  .fri-tp-public-hub,
  .fri-tp-public-hub .fri-tp-hub-hero-copy,
  .fri-tp-public-hub .fri-tp-runner-search,
  .fri-tp-public-hub .fri-tp-search-form,
  .fri-tp-public-hub .fri-tp-search-form label{
    min-width:0!important;
    max-width:100%!important;
  }
  .fri-tp-public-hub{overflow-x:clip!important}
}

/* Quiet PWA utility action. Keep it discoverable without competing with search,
   race cards or the three primary service shortcuts. */
.fri-tp-public-hub .fri-tp-pwa-install{
  display:flex!important;
  align-items:center!important;
  flex-direction:row!important;
  gap:.5rem!important;
  width:auto!important;
  margin:.62rem 0 0!important;
}
.fri-tp-public-hub .fri-tp-pwa-install[hidden]{display:none!important}
.fri-tp-public-hub .fri-tp-pwa-install-button{
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  padding:.34rem .66rem!important;
  border:1px solid var(--fri-border-strong)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--fri-text-soft)!important;
  box-shadow:none!important;
  font-family:var(--fri-font-text)!important;
  font-size:.7rem!important;
  font-weight:650!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
  transform:none!important;
}
.fri-tp-public-hub .fri-tp-pwa-install-button:hover,
.fri-tp-public-hub .fri-tp-pwa-install-button:focus-visible{
  border-color:#B8C8DF!important;
  background:#F8FAFD!important;
  color:var(--fri-primary)!important;
  transform:none!important;
}
.fri-tp-public-hub .fri-tp-pwa-install-button > span{font-size:.9rem!important;line-height:1!important}
.fri-tp-public-hub .fri-tp-pwa-install-note{
  padding:0!important;
  color:var(--fri-muted)!important;
  font-size:.65rem!important;
  line-height:1.2!important;
}
@media(max-width:620px){
  .fri-tp-public-hub .fri-tp-pwa-install{margin-top:.58rem!important}
  .fri-tp-public-hub .fri-tp-pwa-install-button{min-height:32px!important;height:32px!important;padding:.3rem .6rem!important;font-size:.68rem!important}
  .fri-tp-public-hub .fri-tp-pwa-install-note{display:none!important}
}

/* ======================================================================
   v1.19.6-rc7 — standalone Hlauparar shell + final centering pass
   Hlauparar now owns its page chrome inside /hlauparar/: one FRÍ home mark,
   no theme menu/footer, and one centered product rail on every public view.
   ====================================================================== */

html:has(body.fri-tp-standalone){background:#fff!important;overflow-x:hidden}
body.fri-tp-standalone{
  margin:0!important;
  min-width:0!important;
  width:100%!important;
  overflow-x:hidden!important;
  background:#fff!important;
  color:#172033;
  -webkit-text-size-adjust:100%;
}
body.fri-tp-standalone .fri-tp-standalone-frame{
  width:100%;
  min-height:100dvh;
  overflow-x:clip;
  background:#fff;
}
body.fri-tp-standalone .fri-tp-shell-header{
  width:100%;
  margin:0;
  padding:calc(16px + env(safe-area-inset-top)) 0 14px;
  background:#fff;
}
body.fri-tp-standalone .fri-tp-shell-header-inner{
  width:min(calc(100% - 40px),1240px);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
body.fri-tp-standalone .fri-tp-shell-home{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:auto;
  max-width:150px;
  text-decoration:none!important;
  line-height:1;
}
body.fri-tp-standalone .fri-tp-shell-home img{
  display:block;
  width:auto;
  height:42px;
  max-width:148px;
  object-fit:contain;
  object-position:left center;
}
body.fri-tp-standalone .fri-tp-shell-main{
  width:100%;
  min-width:0;
  margin:0;
  padding:8px 0 calc(32px + env(safe-area-inset-bottom));
  overflow-x:clip;
}

/* The plugin shell itself is the only horizontal rail. This prevents theme or
   Elementor parent padding from making race/profile pages appear off-centre. */
body.fri-tp-standalone .fri-tp-product-shell{
  width:min(calc(100% - 40px),var(--fri-shell-width,1240px))!important;
  max-width:var(--fri-shell-width,1240px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  transform:none!important;
}
body.fri-tp-standalone .fri-tp-product-shell,
body.fri-tp-standalone .fri-tp-product-shell > *,
body.fri-tp-standalone .fri-tp-app,
body.fri-tp-standalone .fri-tp-race-page,
body.fri-tp-standalone .fri-tp-race-directory,
body.fri-tp-standalone .fri-tp-public-hub{
  min-width:0!important;
  box-sizing:border-box!important;
}

/* Shared results: never let two result panels make the card wider than its
   comparison workspace on narrow screens. */
@media(max-width:760px){
  body.fri-tp-standalone .fri-tp-shell-header{
    padding-top:calc(14px + env(safe-area-inset-top));
    padding-bottom:10px;
  }
  body.fri-tp-standalone .fri-tp-shell-header-inner,
  body.fri-tp-standalone .fri-tp-product-shell{
    width:calc(100% - 32px)!important;
    max-width:calc(100% - 32px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body.fri-tp-standalone .fri-tp-shell-home img{height:36px;max-width:126px}
  body.fri-tp-standalone .fri-tp-shell-main{padding-top:4px}

  body.fri-tp-standalone .fri-tp-shared-races-wrap,
  body.fri-tp-standalone .fri-tp-shared-races-table,
  body.fri-tp-standalone .fri-tp-shared-races-table tbody,
  body.fri-tp-standalone .fri-tp-shared-races-table tbody tr{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  body.fri-tp-standalone .fri-tp-shared-races-table tbody tr{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    column-gap:.42rem!important;
    padding:.72rem!important;
    overflow:hidden!important;
  }
  body.fri-tp-standalone .fri-tp-shared-races-table .fri-tp-shared-a,
  body.fri-tp-standalone .fri-tp-shared-races-table .fri-tp-shared-b{
    min-width:0!important;
    padding:.52rem!important;
    overflow:hidden!important;
  }
  body.fri-tp-standalone .fri-tp-shared-races-table .fri-tp-meeting-result strong,
  body.fri-tp-standalone .fri-tp-shared-races-table .fri-tp-meeting-result span{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
}

/* WordPress admin bar is useful during release QA. Keep the shell below it. */
@media screen and (max-width:782px){
  body.admin-bar.fri-tp-standalone .fri-tp-shell-header{padding-top:calc(14px + env(safe-area-inset-top))}
}

/* ======================================================================
   v1.19.8 — launch hotfix
   Repair v1.19.7 escaped CSS, move the hub FRÍ home mark into the eyebrow
   row, and keep the iOS install sheet compact and predictable.
   ====================================================================== */

/* The hub itself owns the brand row. Do not render a second standalone logo
   above it; internal profile/race views keep the shell home mark. */
body.fri-tp-standalone-hub .fri-tp-shell-main{
  padding-top:calc(18px + env(safe-area-inset-top))!important;
}

.fri-tp-public-hub .fri-tp-hub-brand-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:1rem!important;
  width:100%!important;
  min-width:0!important;
}
.fri-tp-public-hub .fri-tp-hub-brand-row .fri-tp-eyebrow{
  margin:0!important;
  min-width:0!important;
}
.fri-tp-public-hub .fri-tp-hub-brand-home{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:82px!important;
  text-decoration:none!important;
  line-height:1!important;
}
.fri-tp-public-hub .fri-tp-hub-brand-mark{
  display:block!important;
  width:auto!important;
  height:22px!important;
  max-width:78px!important;
  object-fit:contain!important;
  object-position:right center!important;
}

/* iOS install help: compact utility sheet, not a second hero. Use selectors
   that do not depend on the dialog remaining inside the hub content node. */
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet{
  width:min(calc(100% - 24px),460px)!important;
  padding:1.05rem 1rem calc(1rem + env(safe-area-inset-bottom))!important;
  border-radius:20px 20px 0 0!important;
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet .fri-tp-eyebrow{
  margin:0 0 .35rem!important;
  font-size:.66rem!important;
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet h2{
  margin:.15rem 2.75rem .72rem 0!important;
  max-width:calc(100% - 2.75rem)!important;
  font-size:1.72rem!important;
  line-height:1.02!important;
  letter-spacing:-.025em!important;
  font-weight:680!important;
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet ol{
  margin:.15rem 0 .78rem!important;
  padding-left:1.2rem!important;
  color:var(--fri-text-soft)!important;
  font-size:.91rem!important;
  line-height:1.42!important;
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet li{
  margin:.42rem 0!important;
  padding-left:.05rem!important;
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet p{
  margin:0!important;
  color:var(--fri-muted)!important;
  font-size:.76rem!important;
  line-height:1.38!important;
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet .fri-tp-modal-close{
  position:absolute!important;
  top:.78rem!important;
  right:.78rem!important;
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #C7D4E7!important;
  border-radius:50%!important;
  background:#fff!important;
  color:var(--fri-primary)!important;
  box-shadow:none!important;
  font-size:1rem!important;
  font-weight:600!important;
  line-height:1!important;
  transform:none!important;
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet .fri-tp-modal-close:hover,
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet .fri-tp-modal-close:focus-visible{
  background:#F7FAFF!important;
  border-color:var(--fri-primary)!important;
  transform:none!important;
}

@media(max-width:620px){
  body.fri-tp-standalone-hub .fri-tp-shell-main{
    padding-top:calc(14px + env(safe-area-inset-top))!important;
  }
  .fri-tp-public-hub .fri-tp-hub-brand-home{max-width:72px!important}
  .fri-tp-public-hub .fri-tp-hub-brand-mark{height:20px!important;max-width:68px!important}
  .fri-tp-pwa-guide .fri-tp-pwa-guide-sheet{
    width:calc(100% - 12px)!important;
    max-height:min(68vh,520px)!important;
    overflow:auto!important;
    padding:.95rem .9rem calc(.95rem + env(safe-area-inset-bottom))!important;
  }
  .fri-tp-pwa-guide .fri-tp-pwa-guide-sheet h2{
    font-size:1.58rem!important;
    margin-right:2.55rem!important;
  }
  .fri-tp-pwa-guide .fri-tp-pwa-guide-sheet ol{
    font-size:.88rem!important;
  }
}


/* ==========================================================
   v1.19.11 — centered profile identity + matched score cards
   ========================================================== */

/* The hero is identity only. Keep the avatar notch, but center the complete
   athlete identity system and remove the old right-side score-column logic. */
.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:center!important;
  width:100%!important;
  min-height:250px!important;
  padding:4.65rem 2rem 1.55rem!important;
  text-align:center!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-identity{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(100%,860px)!important;
  max-width:860px!important;
  margin:0 auto!important;
  text-align:center!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-identity h2,
.fri-tp-profile-hero-card [data-fri-tp-athlete-name]{
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-subline,
.fri-tp-profile-hero-card .fri-tp-club-row,
.fri-tp-profile-hero-card .fri-tp-meta{
  justify-content:center!important;
  text-align:center!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-social-actions{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-action-row--unified,
.fri-tp-profile-hero-card .fri-tp-profile-secondary-actions{
  justify-content:center!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-performance-actions,
.fri-tp-profile-hero-card .fri-tp-profile-result-request{
  display:none!important;
}

/* Scores are sibling cards below the hero, never nested inside it. */
.fri-tp-profile-score-row{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:.85rem!important;
  width:100%!important;
  margin:.85rem 0 0!important;
  padding:0!important;
  align-items:stretch!important;
}
.fri-tp-profile-score-row>.fri-tp-header-index{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  align-self:stretch!important;
}
.fri-tp-profile-score-row>.fri-tp-header-index[hidden]{display:none!important}
.fri-tp-profile-score-row:has(>.fri-tp-header-index[hidden]){
  grid-template-columns:minmax(0,1fr)!important;
}
.fri-tp-profile-score-row:has(>.fri-tp-header-index[hidden])>.fri-tp-header-index:not([hidden]){
  max-width:680px!important;
  width:100%!important;
  justify-self:center!important;
}

/* FRÍ and ITRA now intentionally share one card language. */
.fri-tp-profile-score-row .fri-tp-score-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:142px!important;
  height:100%!important;
  padding:.78rem .85rem .72rem!important;
  border:1px solid var(--fri-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.fri-tp-profile-score-row .fri-tp-score-card--fri{
  border-left:3px solid var(--fri-primary)!important;
  background:#FCFDFF!important;
}
.fri-tp-profile-score-row .fri-tp-score-card--itra{
  border-left:3px solid #70A942!important;
  background:#FCFEFB!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:.85rem!important;
  min-height:0!important;
  margin:0!important;
  text-align:left!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-head>div:first-child{
  display:block!important;
  min-width:0!important;
  text-align:left!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-kicker{
  display:block!important;
  margin:0 0 .08rem!important;
  color:var(--fri-muted)!important;
  font-size:.60rem!important;
  line-height:1.15!important;
  font-weight:720!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  text-align:left!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-value,
.fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
  display:block!important;
  margin:0!important;
  color:var(--fri-text)!important;
  font-size:2rem!important;
  line-height:.95!important;
  letter-spacing:-.045em!important;
  font-weight:700!important;
  text-align:left!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-brand--logo{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  margin:.04rem 0 0!important;
  min-height:30px!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-brand--logo img{
  display:block!important;
  width:auto!important;
  height:28px!important;
  max-width:88px!important;
  object-fit:contain!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-badge{
  width:120px!important;
  min-width:120px!important;
  max-width:120px!important;
  height:auto!important;
}
.fri-tp-profile-score-row .fri-tp-fri-meter,
.fri-tp-profile-score-row .fri-tp-itra-meter{
  height:5px!important;
  margin:.48rem 0 .18rem!important;
}
.fri-tp-profile-score-row .fri-tp-fri-meter-labels,
.fri-tp-profile-score-row .fri-tp-itra-meter-labels{
  font-size:.48rem!important;
  line-height:1!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-foot{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:.65rem!important;
  margin-top:auto!important;
  padding-top:.45rem!important;
  border-top:1px solid var(--fri-border)!important;
  font-size:.52rem!important;
  line-height:1.25!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-foot--fri{
  color:#65738a!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-context{
  flex:0 1 auto!important;
  text-align:right!important;
}

@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    min-height:0!important;
    padding:4.55rem 1rem 1.3rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-identity{width:100%!important;max-width:100%!important}
  .fri-tp-profile-hero-card .fri-tp-profile-action-row--unified{
    width:100%!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-action-row--unified::-webkit-scrollbar{display:none!important}
  .fri-tp-profile-hero-card .fri-tp-profile-secondary-actions{justify-content:center!important}
  .fri-tp-profile-score-row{
    grid-template-columns:1fr!important;
    gap:.65rem!important;
    margin-top:.65rem!important;
  }
  .fri-tp-profile-score-row>.fri-tp-header-index:not([hidden]){max-width:none!important}
  .fri-tp-profile-score-row .fri-tp-score-card{min-height:132px!important}
  .fri-tp-profile-score-row .fri-tp-score-card-foot{align-items:flex-start!important;flex-direction:column!important;gap:.3rem!important}
  .fri-tp-profile-score-row .fri-tp-score-card-context{text-align:left!important}
}

/* ==========================================================
   v1.19.12 — compact profile stack + readable score context
   ========================================================== */

/* Keep the standalone brand as a small top-left anchor. The previous shell
   left more vertical chrome than the product needs, especially above profiles. */
body.fri-tp-standalone .fri-tp-shell-header{
  padding:10px 0 4px!important;
}
body.fri-tp-standalone .fri-tp-shell-header-inner{
  align-items:flex-start!important;
  justify-content:flex-start!important;
}
body.fri-tp-standalone .fri-tp-shell-home img{
  height:34px!important;
  max-width:118px!important;
}
body.fri-tp-standalone .fri-tp-shell-main{padding-top:2px!important}

/* Identity card: retain the avatar notch, but remove excess air above/below. */
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
  min-height:0!important;
  padding:3.85rem 1.6rem 1.05rem!important;
}

/* Compact both score cards without shrinking the information into illegibility. */
.fri-tp-profile-score-row{
  gap:.7rem!important;
  margin-top:.65rem!important;
}
.fri-tp-profile-score-row .fri-tp-score-card{
  min-height:108px!important;
  padding:.6rem .72rem .56rem!important;
  border-radius:12px!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-head{gap:.65rem!important}
.fri-tp-profile-score-row .fri-tp-score-card-kicker{
  margin-bottom:.02rem!important;
  font-size:.62rem!important;
  line-height:1.1!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-value,
.fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
  font-size:1.72rem!important;
  line-height:.92!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-brand--logo{
  min-height:24px!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-brand--logo img{
  height:23px!important;
  max-width:78px!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-badge{
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
}
.fri-tp-profile-score-row .fri-tp-fri-meter,
.fri-tp-profile-score-row .fri-tp-itra-meter{
  height:4px!important;
  margin:.32rem 0 .14rem!important;
}
.fri-tp-profile-score-row .fri-tp-fri-meter-labels,
.fri-tp-profile-score-row .fri-tp-itra-meter-labels{
  font-size:.54rem!important;
}
.fri-tp-profile-score-row .fri-tp-score-card-foot{
  gap:.55rem!important;
  padding-top:.32rem!important;
  font-size:.67rem!important;
  line-height:1.25!important;
}

@media(max-width:760px){
  body.fri-tp-standalone .fri-tp-shell-header{
    padding:calc(8px + env(safe-area-inset-top)) 0 2px!important;
  }
  body.fri-tp-standalone .fri-tp-shell-home img{
    height:31px!important;
    max-width:108px!important;
  }
  body.fri-tp-standalone .fri-tp-shell-main{padding-top:0!important}

  /* The old safety reserve was intentionally generous. The avatar only needs
     a small breathing zone above the notch once the shell header is compact. */
  .fri-tp-navline{
    margin-top:.15rem!important;
    margin-bottom:.55rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    margin-top:2.5rem!important;
    padding:3.55rem .9rem .9rem!important;
  }
  .fri-tp-profile-score-row{
    gap:.48rem!important;
    margin-top:.48rem!important;
  }
  .fri-tp-profile-score-row .fri-tp-score-card{
    min-height:100px!important;
    padding:.58rem .68rem .52rem!important;
  }
  .fri-tp-profile-score-row .fri-tp-score-card-value,
  .fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
    font-size:1.68rem!important;
  }
  .fri-tp-profile-score-row .fri-tp-score-card-foot{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:.45rem!important;
    font-size:.66rem!important;
    line-height:1.28!important;
  }
  .fri-tp-profile-score-row .fri-tp-score-card-context{
    text-align:right!important;
  }
}

@media(max-width:430px){
  .fri-tp-profile-score-row .fri-tp-score-card-foot{
    flex-wrap:wrap!important;
  }
  .fri-tp-profile-score-row .fri-tp-score-card-context{
    margin-left:auto!important;
  }
}

/* ==========================================================
   v1.19.13 — overview hierarchy consolidation
   One Bestu afrek module: Gata / Braut / Utanvega.
   ========================================================== */
.fri-tp-best-performance-section{
  --fri-best-control-bg:#f5f7fb;
}
.fri-tp-best-performance-head{
  align-items:flex-end!important;
}
.fri-tp-best-performance-tabs{
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:3px;
  border:1px solid var(--fri-border);
  border-radius:999px;
  background:var(--fri-best-control-bg);
  flex:0 0 auto;
}
.fri-tp-best-performance-tabs button{
  appearance:none;
  border:0;
  border-radius:999px;
  min-height:34px;
  padding:.42rem .86rem;
  background:transparent;
  color:var(--fri-muted);
  font:inherit;
  font-size:.78rem;
  line-height:1;
  font-weight:700;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.fri-tp-best-performance-tabs button:hover,
.fri-tp-best-performance-tabs button:focus-visible{
  color:var(--fri-primary);
}
.fri-tp-best-performance-tabs button:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(18,77,214,.14);
}
.fri-tp-best-performance-tabs button.is-active{
  background:#fff;
  color:var(--fri-primary);
  box-shadow:0 1px 4px rgba(20,34,65,.08);
}
.fri-tp-best-performance-tabs button[hidden]{display:none!important}
.fri-tp-best-performance-panel[hidden]{display:none!important}
.fri-tp-best-performance-panel.is-active{display:block}
.fri-tp-best-performance-provider{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:28px;
  margin:0 0 .55rem;
}
.fri-tp-best-performance-provider>span{
  color:var(--fri-muted);
  font-size:.72rem;
  line-height:1.2;
  font-weight:650;
}
.fri-tp-best-performance-provider .fri-tp-profile-itra-badge{
  width:auto!important;
  height:22px!important;
  max-width:118px!important;
  margin:0!important;
  object-fit:contain;
}
/* Keep all three surfaces in one visual footprint. */
.fri-tp-best-performance-section .fri-tp-pb-grid,
.fri-tp-best-performance-section .fri-tp-trail-profile-grid{
  margin-top:0!important;
}
.fri-tp-best-performance-section .fri-tp-trail-profile-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:.7rem!important;
}
/* With the three previous sections consolidated, the next overview section
   should not inherit their combined vertical whitespace. */
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-best-performance-section{
  margin-top:2.35rem!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-best-performance-section + .fri-tp-section{
  margin-top:2.35rem!important;
}

@media(max-width:900px){
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  .fri-tp-best-performance-head{
    align-items:flex-start!important;
    gap:.85rem!important;
  }
  .fri-tp-best-performance-tabs{
    align-self:flex-start;
    max-width:100%;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .fri-tp-best-performance-tabs::-webkit-scrollbar{display:none}
  .fri-tp-best-performance-tabs button{
    min-height:36px;
    padding:.46rem .9rem;
    font-size:.8rem;
    flex:0 0 auto;
  }
  .fri-tp-best-performance-provider{
    margin-bottom:.45rem;
  }
  .fri-tp-best-performance-provider>span{font-size:.76rem}
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid{
    display:flex!important;
    grid-template-columns:none!important;
    gap:.65rem!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:.15rem;
  }
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid::-webkit-scrollbar{display:none}
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid .fri-tp-trail-result-card{
    flex:0 0 84%;
    scroll-snap-align:start;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-best-performance-section,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-best-performance-section + .fri-tp-section{
    margin-top:2rem!important;
  }
}

/* ==========================================================
   v1.19.15 — reliable moderated request actions
   Theme/global button rules must never make modal submit actions disappear.
   ========================================================== */
.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"],
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:44px!important;
  border:1px solid var(--fri-primary)!important;
  border-radius:11px!important;
  background:var(--fri-primary)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"]:hover,
.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"]:focus-visible,
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"]:hover,
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"]:focus-visible{
  background:var(--fri-primary-dark)!important;
  border-color:var(--fri-primary-dark)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"]:disabled,
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"]:disabled{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:.55!important;
  background:var(--fri-primary)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  cursor:default!important;
}


/* ==========================================================
   v1.19.16 — modal theme-token hardening
   Modals are mounted under <body>, outside .fri-tp-app, so they must
   carry their own FRÍ design tokens. This prevents theme/Elementor
   button rules from making primary actions transparent until hover.
   ========================================================== */
.fri-tp-connection-modal,
.fri-tp-profile-image-modal,
.fri-tp-result-request-modal,
.fri-tp-pwa-guide{
  --fri-primary:#003BCB;
  --fri-primary-dark:#002FA6;
  --fri-text:#172033;
  --fri-text-soft:#475569;
  --fri-muted:#64748B;
  --fri-border:#E2E8F0;
  --fri-surface:#FFFFFF;
  --fri-soft:#F8FAFC;
}

.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"],
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"],
.fri-tp-result-request-modal .fri-tp-result-request-sheet button[type="submit"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  min-height:44px!important;
  border:1px solid #003BCB!important;
  border-radius:11px!important;
  background:#003BCB!important;
  background-color:#003BCB!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"]:hover,
.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"]:focus-visible,
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"]:hover,
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"]:focus-visible,
.fri-tp-result-request-modal .fri-tp-result-request-sheet button[type="submit"]:hover,
.fri-tp-result-request-modal .fri-tp-result-request-sheet button[type="submit"]:focus-visible{
  background:#002FA6!important;
  background-color:#002FA6!important;
  border-color:#002FA6!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}
.fri-tp-connection-modal .fri-tp-connection-modal-actions button[type="submit"]:disabled,
.fri-tp-profile-image-modal .fri-tp-profile-image-modal-sheet button[type="submit"]:disabled,
.fri-tp-result-request-modal .fri-tp-result-request-sheet button[type="submit"]:disabled{
  visibility:visible!important;
  opacity:.55!important;
  background:#003BCB!important;
  background-color:#003BCB!important;
  border-color:#003BCB!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  cursor:default!important;
}

/* ==========================================================
   v1.19.17 — unified overview controls, swipe rows + typography
   Trail cards are the visual/typographic reference for recent and
   best-performance surfaces. Gata/Braut/Utanvega use the same
   segmented-control language as Ár/Aldur in comparison progression.
   ========================================================== */

/* Best-performance surface switch = same calm segmented control as Ár/Aldur. */
.fri-tp-best-performance-tabs{
  display:inline-grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:max-content!important;
  gap:0!important;
  min-height:38px!important;
  padding:3px!important;
  border:1px solid var(--fri-ui-border,var(--fri-border))!important;
  border-radius:12px!important;
  background:var(--fri-ui-subtle,#f5f7fb)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.fri-tp-best-performance-tabs button{
  min-width:72px!important;
  min-height:32px!important;
  padding:.38rem .72rem!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#657388!important;
  box-shadow:none!important;
  font-size:.72rem!important;
  line-height:1!important;
  font-weight:650!important;
}
.fri-tp-best-performance-tabs button:hover,
.fri-tp-best-performance-tabs button:focus-visible{
  background:#fff!important;
  color:var(--fri-text)!important;
}
.fri-tp-best-performance-tabs button.is-active{
  background:#fff!important;
  color:var(--fri-primary)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.06)!important;
}

/* Trail card typography is the reference: strong but not over-heavy. */
.fri-tp-trail-result-time,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-time,
.fri-tp-recent-result-time{
  font-weight:700!important;
}
.fri-tp-trail-result-race,
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-meta,
.fri-tp-recent-result-race strong,
.fri-tp-recent-result-race .fri-tp-race-link{
  font-weight:650!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-event,
.fri-tp-recent-result-event{
  font-weight:700!important;
}
.fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-meta,
.fri-tp-recent-result-performance,
.fri-tp-recent-result-race>span,
.fri-tp-recent-result-place{
  font-weight:500!important;
}

@media(max-width:760px){
  /* All three Bestu afrek surfaces use the same horizontal swipe behaviour. */
  .fri-tp-best-performance-section .fri-tp-pb-grid,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid{
    display:flex!important;
    grid-template-columns:none!important;
    gap:.65rem!important;
    width:100%!important;
    max-width:100%!important;
    margin-top:0!important;
    padding:0 0 .15rem!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scroll-padding-left:0;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .fri-tp-best-performance-section .fri-tp-pb-grid::-webkit-scrollbar,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid::-webkit-scrollbar{
    display:none!important;
  }
  .fri-tp-best-performance-section .fri-tp-pb,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid .fri-tp-trail-result-card{
    flex:0 0 84%!important;
    width:84%!important;
    max-width:84%!important;
    min-width:0!important;
    scroll-snap-align:start;
    scroll-snap-stop:normal;
  }

  /* Compact segmented control: no CTA-like blue pills on mobile. */
  .fri-tp-best-performance-tabs{
    width:auto!important;
    max-width:100%!important;
    min-height:38px!important;
    overflow-x:auto!important;
    scrollbar-width:none;
  }
  .fri-tp-best-performance-tabs::-webkit-scrollbar{display:none!important}
  .fri-tp-best-performance-tabs button{
    min-width:68px!important;
    min-height:32px!important;
    padding:.36rem .66rem!important;
    font-size:.7rem!important;
    flex:0 0 auto!important;
  }

  /* Keep recent result weights aligned with trail cards on phones too. */
  .fri-tp-recent-result-time,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-time,
  .fri-tp-trail-result-time{
    font-weight:700!important;
  }
}

/* ==========================================================
   v1.19.18 — guaranteed mobile swipe for road + track highlights
   Match the trail carousel behaviour across all Bestu afrek panels.
   ========================================================== */
@media (max-width:900px){
  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"],
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"],
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"]{
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }

  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"] > .fri-tp-trail-profile-grid{
    display:flex!important;
    flex-flow:row nowrap!important;
    grid-template-columns:none!important;
    gap:.65rem!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0 0 .2rem!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:0!important;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important;
    touch-action:pan-x pan-y;
  }

  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid::-webkit-scrollbar,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid::-webkit-scrollbar,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"] > .fri-tp-trail-profile-grid::-webkit-scrollbar{
    display:none!important;
  }

  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"] > .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex:0 0 84%!important;
    width:84%!important;
    max-width:84%!important;
    min-width:84%!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:normal!important;
  }
}

/* v1.19.19 — finished-race highlights + participation */
.fri-tp-race-highlights{
  margin-top:1.55rem;
}
.fri-tp-race-highlight-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.72rem;
}
.fri-tp-race-highlight-card{
  min-height:164px;
}
.fri-tp-race-highlight-card .fri-tp-featured-athlete-name{
  margin-top:.52rem;
}
.fri-tp-race-participation-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:.72rem;
  overflow:hidden;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
}
.fri-tp-race-participation-strip>div{
  min-width:0;
  padding:.86rem .92rem;
  border-right:1px solid var(--fri-border);
}
.fri-tp-race-participation-strip>div:last-child{border-right:0}
.fri-tp-race-participation-strip span,
.fri-tp-race-participation-strip strong,
.fri-tp-race-participation-strip small{display:block}
.fri-tp-race-participation-strip span{
  color:var(--fri-muted);
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.fri-tp-race-participation-strip strong{
  margin-top:.26rem;
  color:var(--fri-text);
  font-size:1.35rem;
  line-height:1.05;
  letter-spacing:-.035em;
}
.fri-tp-race-participation-strip small{
  margin-top:.28rem;
  color:var(--fri-muted);
  font-size:.68rem;
  line-height:1.35;
}
@media(max-width:900px){
  .fri-tp-race-highlights{margin-top:1.25rem}
  .fri-tp-race-highlight-grid{
    display:flex;
    gap:.65rem;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    padding:.08rem 12% .15rem 0;
  }
  .fri-tp-race-highlight-grid::-webkit-scrollbar{display:none}
  .fri-tp-race-highlight-card{
    flex:0 0 84%;
    min-height:148px;
    scroll-snap-align:start;
  }
  .fri-tp-race-participation-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .fri-tp-race-participation-strip>div{
    border-right:1px solid var(--fri-border);
    border-bottom:1px solid var(--fri-border);
  }
  .fri-tp-race-participation-strip>div:nth-child(2n){border-right:0}
  .fri-tp-race-participation-strip>div:nth-last-child(-n+2){border-bottom:0}
}


/* ==========================================================
   v1.19.20 — release polish: profile rhythm, discipline history,
   unified best-performance cards, one race-distance control + clubs
   ========================================================== */

/* Profile mobile rhythm: give the floating avatar a deliberate breathing zone
   both above the notch and before the athlete name. */
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    margin-top:3.15rem!important;
    padding-top:4.25rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-identity h2,
  .fri-tp-profile-hero-card [data-fri-tp-athlete-name]{
    margin-top:.38rem!important;
  }
}

/* History cards reuse the same surface colour language as the rest of Hlauparar. */
@media(max-width:720px){
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row.is-road{
    border-left-color:var(--fri-primary)!important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row.is-track{
    border-left-color:var(--fri-red,#F14024)!important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row.is-trail{
    border-left-color:var(--fri-green,#25834A)!important;
  }
}

/* Bestu afrek: on phones the grey segmented surface spans the content rail
   and every available segment gets the same share of space. */
@media(max-width:900px){
  .fri-tp-best-performance-tabs{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    padding:3px!important;
    overflow:hidden!important;
  }
  .fri-tp-best-performance-tabs button:not([hidden]){
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    text-align:center!important;
    padding-inline:.45rem!important;
  }

  /* All three performance surfaces are the same carousel, size and rhythm. */
  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"] > .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex:0 0 78%!important;
    width:78%!important;
    min-width:78%!important;
    max-width:78%!important;
    height:178px!important;
    min-height:178px!important;
    max-height:178px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  .fri-tp-best-performance-section .fri-tp-pb{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    gap:0!important;
    padding:.86rem .86rem .78rem 1rem!important;
  }
  .fri-tp-best-performance-section .fri-tp-pb-meta{
    margin-top:auto!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }

  .fri-tp-best-performance-section .fri-tp-trail-result-card{
    padding:.82rem .84rem .76rem .98rem!important;
  }
  .fri-tp-best-performance-section .fri-tp-trail-result-time{
    margin:.36rem 0 .2rem!important;
    font-size:1.62rem!important;
  }
  .fri-tp-best-performance-section .fri-tp-trail-result-race{
    margin-top:.05rem!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:1!important;
    overflow:hidden!important;
  }
  .fri-tp-best-performance-section .fri-tp-trail-result-card small{
    margin-top:.18rem!important;
    font-size:.64rem!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .fri-tp-best-performance-provider{
    min-height:22px!important;
    margin:.18rem 0 .38rem!important;
  }
  .fri-tp-best-performance-provider .fri-tp-profile-itra-badge{
    height:18px!important;
    max-width:98px!important;
  }
}

/* One primary distance selector owns the race context: highlights, stats and
   results all update together. */
.fri-tp-race-distance-toolbar{
  display:flex;
  justify-content:flex-end;
  margin:.9rem 0 .1rem;
}
.fri-tp-race-distance-toolbar label{
  display:grid;
  grid-template-columns:auto minmax(220px,320px);
  align-items:center;
  gap:.65rem;
  color:var(--fri-muted);
  font-size:.7rem;
  font-weight:700;
}
.fri-tp-race-distance-toolbar select{
  width:100%;
  min-height:42px;
  padding:.55rem .75rem;
  border:1px solid var(--fri-border);
  border-radius:11px;
  background:#fff;
  color:var(--fri-text);
  font:inherit;
  font-size:.8rem;
  font-weight:650;
}
.fri-tp-result-filters.is-secondary{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.fri-tp-result-filters.is-secondary .fri-tp-filter-reset{
  align-self:end;
}

/* Club participation belongs to the selected distance and remains source-led:
   no running-group inference or membership guessing. */
.fri-tp-race-clubs{
  margin-top:.72rem;
  border:1px solid var(--fri-border);
  border-radius:var(--fri-radius);
  background:#fff;
  overflow:hidden;
}
.fri-tp-race-clubs-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  padding:.78rem .9rem;
  border-bottom:1px solid var(--fri-border);
}
.fri-tp-race-clubs-head>div{display:grid;gap:.12rem}
.fri-tp-race-clubs-head span{
  color:var(--fri-primary);
  font-size:.62rem;
  font-weight:750;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.fri-tp-race-clubs-head strong{
  color:var(--fri-text);
  font-size:.9rem;
  line-height:1.2;
}
.fri-tp-race-clubs-head small{
  color:var(--fri-muted);
  font-size:.68rem;
  white-space:nowrap;
}
.fri-tp-race-club-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.fri-tp-race-club-row{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:center;
  gap:.45rem;
  min-width:0;
  padding:.66rem .82rem;
  border-bottom:1px solid var(--fri-border);
}
.fri-tp-race-club-row:nth-child(odd){border-right:1px solid var(--fri-border)}
.fri-tp-race-club-rank{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#F3F6FC;
  color:var(--fri-muted);
  font-size:.62rem;
  font-weight:750;
}
.fri-tp-race-club-row strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--fri-text);
  font-size:.76rem;
}
.fri-tp-race-club-row b{
  color:var(--fri-primary);
  font-size:.76rem;
}
.fri-tp-race-club-more{
  grid-column:1/-1;
  padding:.62rem .82rem;
  color:var(--fri-muted);
  font-size:.68rem;
  font-weight:650;
}

/* Event-level facts stay compact; distance-specific analytics sit below the
   primary distance selector. */
@media(max-width:760px){
  .fri-tp-race-distance-toolbar{
    justify-content:stretch!important;
    margin:.82rem 0 .05rem!important;
  }
  .fri-tp-race-distance-toolbar label{
    width:100%!important;
    grid-template-columns:1fr!important;
    gap:.3rem!important;
  }
  .fri-tp-race-distance-toolbar select{
    min-height:48px!important;
    font-size:1rem!important; /* prevents iOS focus zoom */
  }
  .fri-tp-result-filters.is-secondary{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .fri-tp-result-filters.is-secondary label:first-of-type{
    grid-column:auto!important;
  }
  .fri-tp-result-filters.is-secondary select{
    font-size:1rem!important;
  }
  .fri-tp-race-club-list{
    grid-template-columns:1fr!important;
  }
  .fri-tp-race-club-row{
    border-right:0!important;
  }
  .fri-tp-race-clubs-head{
    align-items:center!important;
  }
}


/* ==========================================================
   v1.19.22 — stable unified Bestu afrek visuals
   Keep the proven road/track markup from 1.19.20 and make it match
   the trail card visually. This avoids coupling profile rendering to
   a presentation-only markup rewrite.
   ========================================================== */
.fri-tp-best-performance-section .fri-tp-pb{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-height:166px!important;
  height:auto!important;
  padding:1rem 1rem .9rem 1.08rem!important;
  border:1px solid var(--fri-border)!important;
  border-radius:var(--fri-radius)!important;
  background:#fff!important;
  overflow:hidden!important;
}
.fri-tp-best-performance-section .fri-tp-pb::before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:4px!important;
  border-radius:var(--fri-radius) 0 0 var(--fri-radius)!important;
  background:var(--fri-primary)!important;
}
.fri-tp-best-performance-section .fri-tp-pb-track::before{background:var(--fri-red,#F14024)!important}
.fri-tp-best-performance-section .fri-tp-pb-event{
  color:var(--fri-primary)!important;
  font-family:inherit!important;
  font-size:.68rem!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:.05em!important;
}
.fri-tp-best-performance-section .fri-tp-pb-track .fri-tp-pb-event{color:var(--fri-red,#F14024)!important}
.fri-tp-best-performance-section .fri-tp-pb-time{
  order:1!important;
  margin:.55rem 0 .35rem!important;
  color:var(--fri-text)!important;
  font-family:inherit!important;
  font-size:1.75rem!important;
  line-height:1!important;
  font-weight:700!important;
  letter-spacing:-.035em!important;
}
.fri-tp-best-performance-section .fri-tp-pb .fri-tp-result-pace,
.fri-tp-best-performance-section .fri-tp-pb .fri-tp-wa-inline{
  order:3!important;
  margin-top:.25rem!important;
  font-size:.68rem!important;
  line-height:1.25!important;
}
.fri-tp-best-performance-section .fri-tp-pb-meta{
  order:2!important;
  margin:.12rem 0 0!important;
  color:var(--fri-muted)!important;
  font-family:inherit!important;
  font-size:.68rem!important;
  line-height:1.35!important;
  font-weight:400!important;
}

@media(max-width:900px){
  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"] > .fri-tp-trail-profile-grid{
    display:flex!important;
    flex-flow:row nowrap!important;
    gap:.65rem!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 0 .2rem!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid::-webkit-scrollbar,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid::-webkit-scrollbar,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"] > .fri-tp-trail-profile-grid::-webkit-scrollbar{display:none!important}
  .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-best-performance-section [data-fri-tp-best-panel="trail"] > .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex:0 0 78%!important;
    width:78%!important;
    min-width:78%!important;
    max-width:78%!important;
    height:178px!important;
    min-height:178px!important;
    max-height:178px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    scroll-snap-align:start!important;
  }
  .fri-tp-best-performance-section .fri-tp-pb{padding:.82rem .84rem .76rem .98rem!important}
  .fri-tp-best-performance-section .fri-tp-pb-time{margin:.36rem 0 .2rem!important;font-size:1.62rem!important}
  .fri-tp-best-performance-section .fri-tp-pb-meta{
    margin-top:.05rem!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
  .fri-tp-best-performance-section .fri-tp-pb .fri-tp-result-pace,
  .fri-tp-best-performance-section .fri-tp-pb .fri-tp-wa-inline{font-size:.64rem!important}
}




/* ==========================================================
   v1.20.26 — compact mobile cards and softer tabs (public access restored in 1.20.27)
   ========================================================== */

/* Life360-inspired but still FRÍ: slightly squarer, soft segmented tabs. */
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs{
  gap:.44rem!important;
  padding:.24rem!important;
  border:1px solid #E6EBF3!important;
  border-radius:18px!important;
  background:#F4F7FB!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86)!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button{
  min-height:42px!important;
  padding:.68rem 1rem!important;
  border-radius:14px!important;
  background:transparent!important;
  color:#66758A!important;
  font-weight:700!important;
  letter-spacing:-.01em!important;
  box-shadow:none!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button:hover,
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button:focus-visible,
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button.is-active{
  background:#fff!important;
  color:var(--fri-primary)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.08)!important;
}
/* Avatar uses the same soft product-surface feel as the rest of the header. */
.fri-tp-profile-hero-card .fri-tp-profile-avatar{
  background:linear-gradient(180deg,#FFFFFF 0%,#F6F8FC 100%)!important;
  box-shadow:0 14px 32px rgba(18,39,72,.10),0 0 0 1px rgba(219,228,240,.95)!important;
}
.fri-tp-profile-avatar-image{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72)!important;
}
.fri-tp-avatar-upload-popover > summary{
  width:38px!important;
  height:38px!important;
  border:2px solid #fff!important;
  box-shadow:0 10px 22px rgba(10,45,140,.24)!important;
}

/* FRÍ-vísir explainer must always float above the tab rail. */
.fri-tp-profile-hero-card,
.fri-tp-profile-score-row,
.fri-tp-profile-score-row .fri-tp-score-card,
.fri-tp-profile-score-row .fri-tp-index-lean-info{
  overflow:visible!important;
}
.fri-tp-profile-score-row .fri-tp-index-lean-info{position:relative!important;z-index:35!important}
.fri-tp-profile-score-row .fri-tp-index-lean-info[open] .fri-tp-index-lean-explainer{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:calc(100% + .38rem)!important;
  z-index:40!important;
  box-shadow:0 18px 38px rgba(17,33,63,.14)!important;
}

/* Mobile overview cards: show more of the next card and reduce empty vertical space. */
@media(max-width:760px){
  .fri-tp-best-performance-section .fri-tp-pb,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid .fri-tp-trail-result-card,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list > .fri-tp-recent-result{
    flex:0 0 72%!important;
    width:72%!important;
    max-width:72%!important;
    min-width:72%!important;
    min-height:174px!important;
    height:auto!important;
  }
  .fri-tp-best-performance-section .fri-tp-pb,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid .fri-tp-trail-result-card{
    padding:.76rem .82rem .72rem .96rem!important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-result{
    padding:.78rem .8rem .76rem 1rem!important;
  }
  .fri-tp-trail-result-time,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-time,
  .fri-tp-recent-result-time{
    margin:.38rem 0 .2rem!important;
    font-size:1.58rem!important;
  }
  .fri-tp-trail-result-race,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-pb-meta,
  .fri-tp-recent-result-race{
    line-height:1.25!important;
  }
}

/* Colour bars follow the curve of the rounded cards instead of cutting it. */
.fri-tp-recent-result::before,
.fri-tp-trail-result-card::before,
.fri-tp-best-performance-section .fri-tp-pb::before{
  inset:0 auto 0 0!important;
  border-radius:18px 0 0 18px!important;
}
@media(max-width:720px){
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr{
    position:relative!important;
    border-left:0!important;
    padding-left:1rem!important;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    border-radius:15px 0 0 15px;
    background:var(--fri-primary);
  }
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row.is-track::before{background:var(--fri-red,#F14024)!important}
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row.is-trail::before{background:var(--fri-green,#25834A)!important}
}

/* v1.20.1 — four Hlauparar discovery utilities fit cleanly on mobile. */
@media(max-width:620px){
  .fri-tp-service-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ==========================================================
   v1.20.6 — compact athlete spotlight + result achievements
   ========================================================== */

/* Homepage spotlight uses the same swipe/discovery rhythm as latest records. */
@media (max-width:980px){
  .fri-tp-featured-athletes .fri-tp-featured-athlete-grid{
    display:flex!important;
    flex-flow:row nowrap!important;
    gap:.65rem!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    padding:.05rem 10% .2rem 0!important;
  }
  .fri-tp-featured-athletes .fri-tp-featured-athlete-grid::-webkit-scrollbar{display:none!important}
  .fri-tp-featured-athletes .fri-tp-featured-athlete-card{
    flex:0 0 46%!important;
    width:46%!important;
    min-width:46%!important;
    min-height:154px!important;
    scroll-snap-align:start!important;
  }
}
@media (max-width:700px){
  .fri-tp-featured-athletes .fri-tp-featured-athlete-grid{padding-right:16%!important}
  .fri-tp-featured-athletes .fri-tp-featured-athlete-card{
    flex-basis:78%!important;
    width:78%!important;
    min-width:78%!important;
    padding:.88rem .92rem!important;
  }
  .fri-tp-featured-athletes .fri-tp-featured-athlete-name{font-size:1rem!important}
  .fri-tp-featured-athletes .fri-tp-featured-athlete-metric{font-size:1.28rem!important}
}

/* Source-led PB/SB and verified national-record badges on result cards/history. */
.fri-tp-result-achievements{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.3rem;
  margin-top:.34rem;
}
.fri-tp-result-achievement{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:.2rem .42rem;
  border-radius:999px;
  background:#eef4ff;
  color:var(--fri-primary);
  font-size:.61rem;
  line-height:1.05;
  font-weight:760;
  white-space:nowrap;
}
.fri-tp-result-achievement.is-sb{background:#f3f5f8;color:#5f6d80}
.fri-tp-result-achievement.is-record,
.fri-tp-result-achievement.is-record-source{background:#edf3ff;color:var(--fri-primary);font-weight:800}
.fri-tp-public-results .fri-tp-result-flag--record{color:var(--fri-primary)!important;font-weight:800!important}

@media(max-width:720px){
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table td:nth-child(4) .fri-tp-result-achievements{
    justify-content:flex-end;
    margin-top:.28rem;
  }
  .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-result-achievement{font-size:.58rem}
}

/* v1.20.9: verified ITRA attribution, reliable profile retries and legible dates. */
.fri-tp-itra-attribution .fri-tp-itra-badge-link img{width:150px!important;min-width:150px!important;max-width:150px!important;height:auto!important}
.fri-tp-best-performance-provider .fri-tp-profile-itra-badge{width:120px!important;min-width:120px!important;max-width:120px!important;height:auto!important;max-height:none!important}
.fri-tp-itra-profile-source{grid-column:1 / -1;display:block;margin:.55rem 0 .25rem!important;font-size:.72rem;line-height:1.5;color:var(--fri-muted)}
.fri-tp-itra-profile-source a{color:var(--fri-primary);text-decoration:underline;text-underline-offset:2px}
.fri-tp-itra-profile-source span{display:block;margin-top:.15rem}
.fri-tp-itra-attribution strong{font-size:.77rem;line-height:1.45;overflow-wrap:anywhere}
.fri-tp-itra-attribution strong a{color:inherit;text-decoration:underline}
[data-fri-tp-profile-retry]{appearance:none;background:var(--fri-primary);color:#fff;border:0;border-radius:9px;padding:.48rem .8rem;font:inherit;font-weight:650;cursor:pointer}
@media(max-width:760px){
  .fri-tp-itra-attribution .fri-tp-itra-badge-link img{width:130px!important;min-width:130px!important;max-width:130px!important}
  .fri-tp-best-performance-provider .fri-tp-profile-itra-badge{width:120px!important;min-width:120px!important;max-width:120px!important;max-height:none!important}
  .fri-tp-itra-profile-source{font-size:.69rem}
}

.fri-tp-profile-score-row .fri-tp-score-card--itra .fri-tp-score-card-badge{width:120px!important;min-width:120px!important;max-width:120px!important;height:auto!important}
.fri-tp-itra-profile-source{overflow-wrap:anywhere}

/* ITRA credit for imported race cards on the public Hlauparar hub. */
.fri-tp-hub-itra-attribution{margin:8px 0 20px;font-size:12px;line-height:1.5;color:#586475}
.fri-tp-hub-itra-attribution a{color:inherit;text-decoration:underline;text-underline-offset:2px}


/* ============================================================
   v1.20.12 — TRUE integrated identity + performance hero
   CSS grid provides real side columns, no absolute stat positioning.
   ============================================================ */
@media(min-width:1040px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(190px,1fr) minmax(0,2.25fr) minmax(190px,1fr)!important;
    grid-template-rows:auto!important;
    gap:clamp(.65rem,1.2vw,1.25rem)!important;
    align-items:center!important;
    justify-items:stretch!important;
    min-height:235px!important;
    height:auto!important;
    margin-bottom:.95rem!important;
    padding:4.5rem clamp(1rem,1.65vw,1.65rem) 1.4rem!important;
    overflow:visible!important;
    text-align:center!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-identity{
    grid-column:2!important;grid-row:1!important;
    align-self:center!important;
    width:100%!important;max-width:none!important;
    margin:0!important;padding:0!important;
    min-width:0!important;
    position:relative!important;z-index:2!important;
    text-align:center!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row{
    display:contents!important;
    position:static!important;
    margin:0!important;padding:0!important;
    width:auto!important;height:auto!important;
    border:0!important;background:transparent!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-wa-index-section{
    grid-column:1!important;grid-row:1!important;
    align-self:center!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-itra-index-section{
    grid-column:3!important;grid-row:1!important;
    align-self:center!important;
  }
}
/* Both stat panels belong to the hero, without a separate card look. */
.fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index{
  display:block!important;width:100%!important;min-width:0!important;
  max-width:none!important;margin:0!important;padding:0!important;
  position:static!important;inset:auto!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index[hidden]{display:none!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card{
  width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;
  display:flex!important;flex-direction:column!important;
  margin:0!important;padding:.48rem .15rem!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  text-align:left!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-head{
  display:flex!important;align-items:flex-start!important;
  justify-content:space-between!important;gap:.32rem!important;
  min-width:0!important;min-height:0!important;margin:0!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-head>div:first-child{min-width:0!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-kicker{
  display:block!important;margin:0 0 .13rem!important;
  font-size:.59rem!important;line-height:1.2!important;
  letter-spacing:.025em!important;font-weight:750!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-value,
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
  display:block!important;margin:0!important;
  font-size:2.05rem!important;line-height:1!important;letter-spacing:-.045em!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-brand--logo img{
  width:auto!important;height:24px!important;max-width:70px!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-badge{
  width:120px!important;min-width:120px!important;max-width:120px!important;height:auto!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-fri-meter,
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-meter{
  height:4px!important;margin:.48rem 0 .15rem!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-fri-meter-labels,
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-meter-labels{
  font-size:.6rem!important;line-height:1.1!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot{
  display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;
  justify-content:space-between!important;gap:.2rem .4rem!important;
  margin:.28rem 0 0!important;padding:.3rem 0 0!important;
  border:0!important;font-size:.64rem!important;line-height:1.35!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot>span{min-width:0!important;flex:1 1 130px!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot>a{flex:0 0 auto!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-context{
  margin:0!important;text-align:left!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-profile-source{
  display:block!important;min-width:0!important;
  margin:.3rem 0 0!important;padding:0!important;
  font-size:.64rem!important;line-height:1.38!important;
  text-align:left!important;color:#617087!important;
  overflow-wrap:break-word!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-profile-source a{
  display:inline!important;white-space:normal!important;
  font-size:inherit!important;line-height:inherit!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-identity h2,
.fri-tp-profile-hero-card [data-fri-tp-athlete-name]{
  font-size:clamp(2rem,3vw,3.12rem)!important;
  line-height:1.07!important;letter-spacing:-.045em!important;
  max-width:100%!important;margin:0 auto .5rem!important;
  overflow-wrap:break-word!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-subline,
.fri-tp-profile-hero-card .fri-tp-club-row,
.fri-tp-profile-hero-card .fri-tp-meta{
  justify-content:center!important;text-align:center!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-performance-actions,
.fri-tp-profile-hero-card .fri-tp-profile-result-request{display:none!important}
/* Tablet and phone: the same information follows the identity in normal flow. */
@media(max-width:1039px){
  .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;
    gap:0!important;min-height:0!important;height:auto!important;
    padding:4.15rem clamp(.85rem,2.5vw,1.6rem) 1rem!important;
    margin-bottom:.9rem!important;overflow:visible!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-identity{
    order:1!important;width:100%!important;max-width:100%!important;
    min-width:0!important;margin:0!important;padding:0!important;text-align:center!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row{
    order:2!important;position:static!important;inset:auto!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:.5rem!important;align-items:start!important;
    width:100%!important;max-width:800px!important;
    min-height:0!important;height:auto!important;
    margin:.85rem auto 0!important;padding:.75rem 0 0!important;
    border:0!important;border-top:1px solid #e5ebf3!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-header-index[hidden]){
    grid-template-columns:1fr!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:not([hidden]){
    grid-column:auto!important;align-self:start!important;justify-self:stretch!important;
  }
}
@media(max-width:620px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    padding:3.7rem .85rem .86rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row{
    grid-template-columns:1fr!important;gap:.35rem!important;
    max-width:460px!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:not([hidden]){
    grid-column:1!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index+.fri-tp-header-index:not([hidden]){
    padding-top:.6rem!important;border-top:1px solid #ecf0f5!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card{padding:.2rem .1rem!important}
  .fri-tp-profile-hero-card .fri-tp-profile-identity h2,
  .fri-tp-profile-hero-card [data-fri-tp-athlete-name]{
    font-size:clamp(1.9rem,7.7vw,2.65rem)!important;
  }
}


/* ============================================================
   v1.20.13 — unified, mirrored FRÍ + ITRA scores
   Both indices use their own scales, with maximum values facing
   the centre: FRÍ 0 -> 100 | ITRA 1000 -> 0. This is a comparison
   of relative index levels, not a claim that the scores are equal.
   ============================================================ */
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-label-compact{display:none!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--itra .fri-tp-score-card-head{
  flex-direction:row-reverse!important;
  align-items:start!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--itra .fri-tp-score-card-head>div:first-child{
  text-align:right!important;
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  min-width:0!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--itra .fri-tp-score-card-kicker{text-align:right!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-meter{
  display:flex!important;flex-direction:row!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-meter-fill{
  flex:none!important;margin-left:auto!important;
  background:linear-gradient(270deg,#397c50 0%,#65ba72 56%,#a8d36a 100%)!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-meter-labels{direction:ltr!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-head{
  min-height:3.3rem!important;
  align-items:start!important;
}
/* Balance the two mirrored halves as a single instrument. */
@media(min-width:1040px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    grid-template-columns:minmax(190px,1fr) minmax(0,2.4fr) minmax(190px,1fr)!important;
    align-items:start!important;
    min-height:0!important;
    padding:1.3rem clamp(1.15rem,1.75vw,1.75rem) 1.05rem!important;
    gap:clamp(.65rem,1.3vw,1.2rem)!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card .fri-tp-profile-identity{
    align-self:start!important;padding:3.6rem 0 0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-wa-index-section,
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-itra-index-section{
    align-self:start!important;
    padding-top:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card{
    padding:.3rem .1rem!important;
  }
}
@media(max-width:1039px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    align-items:start!important;
    width:100%!important;
    max-width:760px!important;
    padding:.7rem 0 0!important;
    margin:.7rem auto 0!important;
    border-top:1px solid #e4ebf2!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:not([hidden]){
    grid-column:auto!important;
    padding:0 .68rem!important;
    border-top:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:first-child:not([hidden]){
    padding-left:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:nth-child(2):not([hidden]){
    border-left:1px solid #e4ebf2!important;
    padding-right:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-header-index[hidden]){
    grid-template-columns:1fr!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-header-index[hidden])>.fri-tp-header-index:not([hidden]){
    border-left:0!important;padding:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card{
    padding:.15rem 0!important;
  }
}
@media(max-width:620px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    max-width:none!important;
    padding:.7rem 0 .1rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:not([hidden]){
    grid-column:auto!important;padding:0 .5rem!important;
    border-top:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:first-child:not([hidden]){padding-left:0!important}
  .fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:nth-child(2):not([hidden]){
    border-top:0!important;border-left:1px solid #e4ebf2!important;
    padding-top:0!important;padding-left:.55rem!important;padding-right:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-head{
    gap:.25rem!important;min-height:3.25rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-kicker{
    font-size:.57rem!important;white-space:nowrap!important;line-height:1.15!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-label-full{display:none!important}
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-label-compact{display:inline!important}
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-value,
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
    font-size:1.85rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-brand--logo img{
    max-width:47px!important;height:19px!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-badge{
    width:94px!important;min-width:0!important;max-width:94px!important;height:auto!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot{
    font-size:.59rem!important;line-height:1.32!important;
    flex-direction:column!important;align-items:stretch!important;
    gap:.3rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot>span{
    flex:none!important;min-width:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--itra .fri-tp-score-card-foot>a{
    align-self:flex-end!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-profile-source{
    font-size:.56rem!important;line-height:1.32!important;overflow-wrap:anywhere!important;
  }
}
@media(max-width:375px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-badge{
    width:76px!important;max-width:76px!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-value,
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
    font-size:1.65rem!important;
  }
}

/* Make required ITRA attribution readable as a shared footer on narrow screens. */
.fri-tp-profile-hero-card .fri-tp-profile-score-credit{display:none!important}
@media(max-width:620px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-profile-source{display:none!important}
  .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-itra-index-section:not([hidden]))>.fri-tp-profile-score-credit{
    display:block!important;grid-column:1/-1!important;
    margin:.6rem 0 0!important;padding:.55rem .1rem 0!important;
    border-top:1px solid #e4ebf2!important;
    color:#617087!important;font-size:.69rem!important;
    line-height:1.35!important;text-align:center!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-credit a{color:#003bcb!important;text-decoration:underline!important}
}
/* Explicitly override legacy per-provider end alignment on desktop. */
@media(min-width:1040px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-header-index:not([hidden]){
    align-self:start!important;justify-self:stretch!important;
  }
}


/* ============================================================
   v1.20.14 — calm, Strava / Apple-inspired single-score hierarchy
   1 number + short label + minimal bar. The full ITRA attribution
   is displayed as a small shared line, not another large link.
   No changes to score calculations or ITRA data.
   ============================================================ */
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-head{
  min-height:0!important;align-items:flex-start!important;gap:.35rem!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-kicker{
  margin:0 0 .18rem!important;font-size:.66rem!important;line-height:1.25!important;
  font-weight:650!important;letter-spacing:0!important;color:#69778b!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-value,
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
  font-size:1.48rem!important;line-height:1.08!important;letter-spacing:-.03em!important;
  font-variant-numeric:tabular-nums!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-head>div:first-child{gap:0!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-brand--logo img{
  height:20px!important;max-width:56px!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-badge{
  width:88px!important;min-width:0!important;max-width:88px!important;height:auto!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-fri-meter,
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-meter{
  height:3px!important;min-height:3px!important;margin:.44rem 0 0!important;
  border-radius:99px!important;
}
/* The score itself communicates the measurement; these ticks add visual noise. */
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-fri-meter-labels,
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-meter-labels{
  display:none!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot{
  margin:.38rem 0 0!important;padding:0!important;gap:.2rem .5rem!important;
  font-size:.68rem!important;line-height:1.4!important;color:#68778c!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot>span{
  flex:0 1 auto!important;max-width:100%!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot>a{
  text-decoration:none!important;color:#416d50!important;font-weight:650!important;
  white-space:nowrap!important;font-size:.68rem!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot>a:hover{text-decoration:underline!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card{padding:.1rem 0!important}
/* No duplicated ITRA credit inside the score panel. The full required
   wording lives in the shared, understated single-line footer. */
.fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-itra-profile-source{display:none!important}
.fri-tp-profile-hero-card .fri-tp-profile-score-row>.fri-tp-profile-score-credit{
  display:none!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-itra-index-section:not([hidden]))>.fri-tp-profile-score-credit{
  display:block!important;
  margin:.25rem 0 0!important;padding:0!important;border:0!important;
  text-align:center!important;color:#7a8797!important;
  font-size:.68rem!important;line-height:1.5!important;
  letter-spacing:0!important;overflow-wrap:normal!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-credit a{
  display:inline!important;white-space:nowrap!important;
  color:inherit!important;text-decoration:underline!important;text-decoration-color:#b5bfca!important;
  text-underline-offset:2px!important;font:inherit!important;font-weight:600!important;
}
.fri-tp-profile-hero-card .fri-tp-profile-score-credit a:hover{color:#1754cb!important}
@media(min-width:1040px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-itra-index-section:not([hidden]))>.fri-tp-profile-score-credit{
    grid-column:1/-1!important;grid-row:2!important;
    justify-self:center!important;align-self:end!important;
    width:100%!important;max-width:750px!important;
    margin-top:.75rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    padding-bottom:.84rem!important;row-gap:0!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot{
    flex-direction:row!important;justify-content:space-between!important;
  }
}
@media(max-width:1039px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-itra-index-section:not([hidden]))>.fri-tp-profile-score-credit{
    grid-column:1/-1!important;margin:.65rem 0 .1rem!important;padding:.45rem .15rem 0!important;
    border-top:1px solid #edf1f5!important;
  }
}
@media(max-width:620px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-head{
    min-height:0!important;align-items:flex-start!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-value,
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
    font-size:1.45rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-kicker{
    font-size:.64rem!important;white-space:normal!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-badge{
    width:72px!important;max-width:72px!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot{
    flex-direction:column!important;gap:.25rem!important;font-size:.66rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot>a{
    align-self:flex-end!important;font-size:.66rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row:has(>.fri-tp-itra-index-section:not([hidden]))>.fri-tp-profile-score-credit{
    font-size:.67rem!important;line-height:1.45!important;
    margin-top:.55rem!important;padding-top:.48rem!important;
    text-align:center!important;
  }
}
@media(max-width:375px){
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-value,
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card--fri>.fri-tp-score-card-value{
    font-size:1.32rem!important;
  }
  .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-badge{
    width:66px!important;max-width:66px!important;
  }
}

/* Overlay anchoring must never hide the link under the tab/navigation bar. */
.fri-tp-profile-hero-card:has(.fri-tp-index-lean-info[open]){z-index:60!important;isolation:auto!important}
.fri-tp-profile-head:has(.fri-tp-index-lean-info[open]) + .fri-tp-profile-connections{z-index:1!important}
@media(max-width:760px){
  .fri-tp-best-performance-section .fri-tp-pb,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid .fri-tp-trail-result-card,
  .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list > .fri-tp-recent-result{
    height:auto!important;
    min-height:174px!important;
  }
}

/* v1.20.26 final responsive contract: both overview carousels match. */
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list > .fri-tp-recent-result,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex:0 0 76%!important;
    width:76%!important;
    max-width:76%!important;
    min-width:76%!important;
    min-height:188px!important;
    height:auto!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-result,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-result-card{
    padding:.78rem .8rem .75rem .94rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-result-time,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-time,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-result-time{
    font-size:1.62rem!important;
    line-height:1.12!important;
  }
}
@media(max-width:350px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list > .fri-tp-recent-result,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex-basis:80%!important;width:80%!important;max-width:80%!important;min-width:80%!important;
  }
}
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex:0 0 76%!important;
    width:76%!important;
    max-width:76%!important;
    min-width:76%!important;
    min-height:188px!important;
    height:auto!important;
  }
}
@media(max-width:350px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex-basis:80%!important;width:80%!important;max-width:80%!important;min-width:80%!important;
  }
}
