/* Public layout refinements. Keep the site's existing colors, typefaces and cards. */
.fri-tp-product-shell {
  --fri-readable-title: clamp(1.8rem, 1.3rem + 2.4vw, 3.15rem);
  --fri-readable-section: clamp(1.25rem, 1.08rem + .72vw, 1.85rem);
  --fri-readable-body: clamp(.9375rem, .895rem + .2vw, 1.0625rem);
}

.fri-tp-product-shell :where(h1, h2, h3, .fri-runner-name) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fri-tp-product-shell:is(.fri-tp-public-hub, .fri-tp-race-directory, .fri-tp-race-page, .fri-tp-records-page, .fri-tp-rankings)
  :is(.fri-tp-hub-hero, .fri-tp-directory-head, .fri-tp-race-page-head, .fri-tp-records-header, .fri-tp-rankings-intro) h1 {
  font-size: var(--fri-readable-title) !important;
  line-height: 1.12 !important;
}

.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-hero.fri-tp-hub-hero--utility h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem) !important;
}

.fri-tp-product-shell .fri-tp-section-head:not([data-fri-tp-panel="passport"] .fri-tp-section-head) :is(h2, h3) {
  font-size: var(--fri-readable-section) !important;
  line-height: 1.2 !important;
}

.fri-tp-product-shell :is(.fri-tp-hub-hero-copy, .fri-tp-directory-head, .fri-tp-race-page-head, .fri-tp-records-header, .fri-tp-rankings-intro) > p,
.fri-tp-product-shell .fri-tp-directory-head p {
  font-size: var(--fri-readable-body) !important;
  line-height: 1.55 !important;
}

.fri-tp-product-shell :is(button, a, summary, select, input):focus-visible {
  outline: 2px solid var(--fri-primary, #003bcb);
  outline-offset: 3px;
}

.fri-tp-line-menu,
.fri-tp-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .9rem;
  min-width: 0;
}

.fri-tp-line-menu {
  border-bottom: 1px solid var(--fri-border, #dce5f1);
}

.fri-tp-line-menu > :is(a, button),
.fri-tp-profile-action-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .25em;
  min-height: 2.75rem;
  max-width: 100%;
  color: var(--fri-primary, #003bcb) !important;
  -webkit-text-fill-color: currentColor !important;
  font: 650 .9375rem/1.25 var(--fri-font-text, sans-serif);
  text-decoration: none !important;
  white-space: normal;
}

.fri-tp-line-menu > :is(a, button):is([aria-current], [aria-selected="true"], .is-active, :hover, :focus-visible)::after,
.fri-tp-profile-action-link:is(:hover, :focus-visible)::after,
.fri-tp-profile-tools[open] > .fri-tp-profile-action-link::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--fri-primary, #003bcb);
  pointer-events: none;
}

.fri-tp-line-menu > :is(a, button):is([aria-current], [aria-selected="true"], .is-active) {
  color: var(--fri-text, #17243d) !important;
}

.fri-tp-line-menu > :is(a, button):focus-visible,
.fri-tp-shell-home:focus-visible {
  outline: 2px solid var(--fri-primary, #003bcb);
  outline-offset: 2px;
}

body.fri-tp-standalone .fri-tp-shell-header {
  padding: calc(.75rem + env(safe-area-inset-top)) 0 .65rem !important;
}

body.fri-tp-standalone .fri-tp-shell-header-inner {
  justify-content: space-between !important;
  align-items: stretch !important;
  flex-wrap: wrap;
  gap: 0 1.2rem;
  border-bottom: 1px solid var(--fri-border, #dce5f1);
}

body.fri-tp-standalone .fri-tp-shell-home {
  flex: 0 0 auto;
  align-self: center;
  gap: .3rem;
  max-width: none;
  min-height: 2.75rem;
  color: var(--fri-primary, #003bcb) !important;
  font: 750 .9375rem/1 var(--fri-font-text, sans-serif);
}

body.fri-tp-standalone .fri-tp-shell-home img {
  max-width: min(8rem, 28vw) !important;
}

.fri-tp-shell-menu {
  justify-content: flex-end;
  margin-inline-start: auto;
  border-bottom: 0;
}

.fri-tp-public-hub .fri-tp-hub-quick-links {
  margin-top: .6rem;
}

#finna-hlaupara {
  scroll-margin-top: 4rem;
}

@media (max-width: 620px) {
  body.fri-tp-standalone .fri-tp-shell-header-inner {
    gap: 0 .45rem;
    align-items: center !important;
  }

  body.fri-tp-standalone .fri-tp-shell-home img {
    height: 26px !important;
    max-width: 3.25rem !important;
  }

  .fri-tp-shell-menu {
    gap: 0 .5rem;
  }

  .fri-tp-shell-menu > a {
    font-size: .875rem;
    white-space: nowrap;
  }
}

@media (max-width: 389px) {
  body.fri-tp-standalone .fri-tp-shell-header-inner {
    column-gap: .375rem;
  }

  body.fri-tp-standalone .fri-tp-shell-home img {
    height: 24px !important;
  }

  .fri-tp-shell-menu {
    column-gap: .375rem;
  }

  .fri-tp-shell-menu > a {
    font-size: .8125rem;
  }
}

.fri-tp-race-directory .fri-tp-directory-filters {
  align-items: start;
  flex-direction: column;
  border-block: 0;
}

.fri-tp-directory-menu {
  width: 100%;
}

.fri-tp-race-directory.fri-tp-product-shell .fri-tp-directory-search,
.fri-tp-race-page.fri-tp-product-shell .fri-tp-result-filters {
  display: flex !important;
  flex-wrap: wrap;
  align-items: end;
  gap: .65rem !important;
  width: 100%;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) label {
  display: grid;
  align-content: start;
  gap: .32rem;
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 100%;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) .fri-tp-search-control {
  flex: 4 1 14rem;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) label span {
  font-size: .8125rem !important;
  line-height: 1.35;
  font-weight: 650;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.75rem !important;
  font-size: max(16px, 1rem) !important;
  line-height: 1.3 !important;
}

.fri-tp-product-shell .fri-tp-search-control input[type="search"] {
  padding: .55rem .75rem;
  border: 1px solid var(--fri-border, #dce5f1);
  border-radius: .8rem;
  background: #fff;
  color: var(--fri-text, #17243d);
  font-family: inherit;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) {
  --fri-race-filter-height: 2.75rem;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) .fri-tp-search-control {
  flex: 2 1 14rem;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) label {
  position: relative;
  gap: .35rem !important;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) label > span {
  line-height: 1.35 !important;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) :is(input[type="search"], select, .fri-tp-public-filter-submit) {
  box-sizing: border-box;
  height: var(--fri-race-filter-height) !important;
  min-height: var(--fri-race-filter-height) !important;
  max-height: none !important;
  border-radius: .7rem !important;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) :is(input[type="search"], select) {
  appearance: none !important;
  border: 1px solid var(--fri-border-strong) !important;
  background: #fff !important;
  color: var(--fri-text) !important;
  padding-block: .45rem !important;
  padding-inline: .7rem var(--fri-race-filter-padding-end, .7rem) !important;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) select {
  --fri-race-filter-padding-end: 1.65rem;
}

.fri-tp-product-shell :is(.fri-tp-directory-search, .fri-tp-result-filters) label:has(> select)::after {
  content: "";
  position: absolute;
  inset-inline-end: .75rem;
  inset-block-end: calc(var(--fri-race-filter-height) / 2 - .1rem);
  width: .38rem;
  height: .38rem;
  border: solid var(--fri-text-soft);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.fri-tp-product-shell button.fri-tp-public-filter-submit {
  min-height: 2.75rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--fri-primary, #003bcb);
  border-radius: .7rem;
  background: var(--fri-primary, #003bcb);
  color: #fff;
  font: 650 1rem/1.3 var(--fri-font-text, sans-serif);
}

.fri-tp-product-shell button.fri-tp-public-filter-submit:hover {
  filter: brightness(.91);
}

.fri-tp-product-shell .fri-tp-filter-reset,
.fri-tp-product-shell :is(.fri-tp-race-stats-note, .fri-tp-rankings-footnote) {
  font-size: .875rem !important;
  line-height: 1.5 !important;
}

.fri-tp-product-shell .fri-tp-race-data-source {
  margin-top: .85rem;
}

.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)) !important;
}

.fri-tp-race-page.fri-tp-product-shell .fri-tp-unified-results :is(th, td) {
  line-height: 1.4;
}

.fri-tp-product-shell :is(.fri-tp-public-results, .fri-tp-history-times, .fri-tp-race-results-table, .fri-tp-recent-result-time) .fri-tp-chip-time {
  display: block;
  max-width: 100%;
  color: var(--fri-muted, #46546d);
  white-space: normal;
  font-size: .8125rem !important;
  line-height: 1.38 !important;
  overflow-wrap: anywhere;
}

.fri-tp-product-shell .fri-tp-result-time-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .375rem;
}

.fri-tp-product-shell .fri-tp-result-time-main .fri-tp-result-flag {
  display: inline-block !important;
  margin: 0 !important;
}

.fri-tp-product-shell .fri-tp-profile.is-seed-loading > :not(.fri-tp-profile-head) {
  display: none !important;
}

.fri-tp-product-shell :is(.fri-tp-record-compare-cell, .fri-tp-directory-card) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.fri-tp-standalone .fri-tp-records-page.fri-tp-product-shell {
  padding-inline: 0 !important;
}

@media (max-width: 760px) {
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-result-filters .fri-tp-search-control {
    flex-basis: 100%;
  }

  .fri-tp-race-page.fri-tp-product-shell :is(.fri-tp-mobile-results-head, .fri-tp-unified-results tbody tr) {
    grid-template-columns: minmax(1.9rem, max-content) minmax(0, 1fr) minmax(0, 6.7rem) !important;
    column-gap: clamp(.4rem, 1.6vw, .7rem) !important;
  }

  .fri-tp-race-page.fri-tp-product-shell .fri-tp-unified-results td:nth-child(5) {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .fri-tp-race-page.fri-tp-product-shell .fri-tp-unified-results .fri-tp-result-time-main {
    justify-content: flex-end;
    column-gap: .25rem;
  }

  .fri-tp-race-page.fri-tp-product-shell .fri-tp-unified-results td:nth-child(5) strong {
    font-variant-numeric: tabular-nums;
  }

  .fri-tp-race-page.fri-tp-product-shell .fri-tp-unified-results td:nth-child(2) .fri-runner-name {
    font-size: .9375rem !important;
    overflow-wrap: anywhere;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row .fri-tp-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 0 .85rem !important;
    overflow: visible !important;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row .fri-tp-tabs > button {
    min-height: 2.5rem !important;
    max-width: 100%;
    white-space: normal !important;
  }
}

@media (max-width: 27rem) {
  .fri-tp-race-directory.fri-tp-product-shell .fri-tp-directory-search .fri-tp-search-control {
    flex-basis: 100%;
  }

  .fri-tp-race-page.fri-tp-product-shell :is(.fri-tp-mobile-results-head, .fri-tp-unified-results tbody tr) {
    grid-template-columns: minmax(1.75rem, max-content) minmax(0, 1fr) minmax(5.75rem, 30%) !important;
  }

  .fri-tp-race-page.fri-tp-product-shell .fri-tp-unified-results tbody tr {
    grid-template-areas: "rank runner time" "rank age agerank" !important;
  }
}

.fri-tp-race-page .fri-tp-race-highlights-link {
  display: inline-flex;
  padding-block: .5rem;
  font-size: .875rem;
}

.fri-tp-race-page #fri-race-highlights-title {
  scroll-margin-top: 2rem;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card [data-fri-tp-athlete-name] {
  font-size: clamp(1.8rem, 1.25rem + 2.4vw, 3.15rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row .fri-tp-tabs > button {
  font-size: .875rem !important;
  line-height: 1.3 !important;
}

.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts span,
.fri-tp-records-page.fri-tp-product-shell .fri-tp-record-holder-meta {
  font-size: .75rem !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
}

.fri-tp-race-page.fri-tp-product-shell .fri-tp-unified-results td:is(:nth-child(3), :nth-child(4)) {
  font-size: .8125rem !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* WordPress already registers this face with an absolute font URL. */
.fri-tp-product-shell .fri-tp-public-results th {
  font-family: "ABC Diatype Mono", ui-monospace, monospace;
}

@media (max-width: 760px) {
  .fri-tp-product-shell .fri-tp-recent-result-race strong {
    font-size: .875rem !important;
    line-height: 1.35 !important;
  }
  .fri-tp-product-shell .fri-tp-recent-result-performance,
  .fri-tp-product-shell .fri-tp-profile-trust {
    font-size: .75rem !important;
    line-height: 1.4 !important;
  }
  .fri-tp-product-shell .fri-tp-recent-result-race > span,
  .fri-tp-product-shell .fri-tp-recent-result-place,
  .fri-tp-product-shell .fri-tp-record-compare-event small,
  .fri-tp-product-shell .fri-tp-record-filter-group > span,
  .fri-tp-product-shell .fri-tp-record-class-form label > span {
    font-size: .8125rem !important;
    line-height: 1.35;
  }
}

/* Profile identity, providers and request controls share one compact card. */
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-navline {
  margin-bottom: .8rem;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-load-status {
  gap: .35rem .8rem;
  justify-content: flex-start;
  margin: 0 0 .55rem;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: var(--fri-text-soft);
  font-size: .875rem;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-load-status [data-fri-tp-profile-retry] {
  min-height: 2.5rem;
  font-size: .875rem;
}

.fri-tp-app.fri-tp-product-shell [data-fri-tp-profile-retry][hidden],
.fri-tp-product-shell .fri-tp-profile-toolbar-actions :is(.fri-tp-profile-providers, .fri-tp-profile-request-actions)[hidden],
.fri-tp-product-shell .is-seed-loading .fri-tp-profile-toolbar-actions,
.fri-tp-product-shell .fri-tp-progression-index[hidden] {
  display: none !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card {
  display: grid !important;
  grid-template-areas: "fri-index identity itra-index";
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr) minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  gap: .55rem .65rem !important;
  align-items: start !important;
  min-height: 0 !important;
  height: auto !important;
  margin-top: 3.1rem !important;
  padding: 4.35rem clamp(.75rem, 2vw, 1.15rem) 1rem !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card .fri-tp-profile-identity {
  grid-area: identity !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: start !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card [data-fri-tp-athlete-name] {
  margin: 0 auto .35rem !important;
  font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.65rem) !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card .fri-tp-profile-avatar {
  --fri-profile-avatar-size: clamp(5.35rem, 9vw, 7rem);
  box-sizing: border-box;
  position: absolute !important;
  inset: 0 auto auto 50% !important;
  transform: translate(-50%, -48%) !important;
  width: var(--fri-profile-avatar-size) !important;
  height: var(--fri-profile-avatar-size) !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 6px solid #fff !important;
  box-shadow: 0 0 0 1px var(--fri-border), 0 11px 25px rgba(20, 41, 77, .12) !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head .fri-tp-profile-subline {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: .2rem .45rem !important;
}

.fri-tp-profile-subline:has(.fri-tp-club-row[hidden]):not(:has([data-fri-tp-record-profile-jump])) .fri-tp-meta:empty {
  display: none !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-subline .fri-tp-record-profile-meta-link {
  min-height: 1.75rem;
  margin: 0;
  font-size: .8125rem !important;
  white-space: normal;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-subline .fri-tp-record-profile-meta-link::before {
  content: none;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between;
  align-items: center !important;
  gap: 0 1rem;
  overflow: visible !important;
  border-bottom: 1px solid var(--fri-border) !important;
}

.fri-tp-product-shell .fri-tp-tabs-row::after {
  display: none !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-tabs-row .fri-tp-tabs.fri-tp-line-menu {
  width: auto !important;
  min-width: 0;
  border-bottom: 0 !important;
}

.fri-tp-profile-toolbar-actions,
.fri-tp-profile-toolbar-actions :is(.fri-tp-profile-providers, .fri-tp-profile-request-actions) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0 .9rem;
}

.fri-tp-profile-toolbar-actions {
  margin-inline-start: auto;
}

.fri-tp-profile-toolbar-actions:has(> .fri-tp-profile-providers[hidden] + .fri-tp-profile-request-actions[hidden]) {
  display: none;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-toolbar-actions .fri-tp-profile-action-link {
  box-sizing: border-box;
  display: inline-flex !important;
  min-height: 2.75rem !important;
  margin: 0 !important;
  padding: .35rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fri-primary) !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;
  font: 650 .875rem/1.3 var(--fri-font-text, sans-serif) !important;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.fri-tp-profile-tools summary::-webkit-details-marker {
  display: none;
}

.fri-tp-product-shell .fri-tp-profile-tools {
  position: relative;
  z-index: 9;
  min-width: 0;
  max-width: 100%;
}

.fri-tp-product-shell .fri-tp-profile-tools[open] .fri-tp-profile-tools-content {
  position: absolute;
  inset: calc(100% + .3rem) 0 auto auto;
  width: min(16rem, calc(100vw - 3rem));
  box-sizing: border-box;
  display: grid;
  gap: .2rem;
  padding: .45rem;
  border: 1px solid var(--fri-border);
  border-radius: .8rem;
  background: #fff;
  box-shadow: var(--fri-shadow, 0 8px 24px rgba(23, 32, 51, .12));
  text-align: start;
}

.fri-tp-product-shell .fri-tp-profile-tools-content .fri-tp-profile-edit-trigger {
  min-height: 2.5rem;
  padding: .3rem .45rem !important;
  font-size: .875rem !important;
  text-align: start;
  white-space: normal;
}

/* Shared underline navigation for in-page choices and the public header. */
.fri-tp-product-shell .fri-tp-inline-menu.fri-tp-line-menu {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start;
  gap: 0 .9rem !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fri-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fri-tp-product-shell .fri-tp-inline-menu.fri-tp-line-menu > :is(button, a) {
  min-height: 2.75rem !important;
  margin: 0 !important;
  padding: .35rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fri-primary) !important;
  font: 650 .875rem/1.3 var(--fri-font-text, sans-serif) !important;
  text-align: start;
}

.fri-tp-product-shell .fri-tp-inline-menu.fri-tp-line-menu > :is(a, button):is([aria-current], [aria-selected="true"], .is-active) {
  color: var(--fri-text) !important;
}

.fri-tp-product-shell .fri-tp-tabs-row .fri-tp-inline-menu {
  width: 100%;
}

.fri-tp-product-shell .fri-tp-section-head > .fri-tp-text-link {
  flex: 0 1 auto;
}

.fri-tp-product-shell .fri-tp-race-highlights h2 + p {
  margin: .25rem 0 0;
}

.fri-tp-product-shell :is(#fri-race-highlights-title, #fri-race-results) {
  scroll-margin-top: 4rem;
}

.fri-tp-app.fri-tp-product-shell [data-fri-tp-panel="overview"] > .fri-tp-summary-grid {
  margin: .9rem 0 0 !important;
}

.fri-tp-product-shell .fri-tp-table thead th {
  font-family: "ABC Diatype Mono", ui-monospace, monospace;
}

@media (max-width: 760px) {
  .fri-tp-product-shell .fri-tp-section-head:has(> .fri-tp-text-link) {
    flex-wrap: wrap;
    gap: .3rem 1rem;
  }

  .fri-tp-product-shell .fri-tp-directory-search .fri-tp-search-control {
    flex-basis: 100%;
  }
}

.fri-tp-app.fri-tp-product-shell [data-fri-tp-panel="overview"] > .fri-tp-summary-grid + .fri-tp-section {
  margin-top: clamp(1.1rem, 2.1vw, 1.8rem) !important;
}

.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row:not(:has(> .fri-tp-header-index:not([hidden]))) {
  display: none !important;
}

@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 {
    display: contents !important;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-header-index:not([hidden]) {
    align-self: start !important;
    padding-block: 0 !important;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card {
    padding-top: 0 !important;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-wa-index-section {
    grid-area: fri-index !important;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-itra-index-section {
    grid-area: itra-index !important;
  }
}

@media (max-width: 1039px) {
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card {
    grid-template-areas: "identity" "scores";
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    margin-top: 2.65rem !important;
    padding-top: 3.3rem !important;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card .fri-tp-profile-identity {
    padding: .2rem 0 0 !important;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row {
    grid-area: scores;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  .fri-tp-profile-toolbar-actions {
    position: relative;
    width: 100%;
    margin-inline-start: 0;
    border-top: 1px solid var(--fri-border);
  }
  .fri-tp-product-shell .fri-tp-profile-tools {
    position: static;
  }
  .fri-tp-product-shell .fri-tp-profile-tools[open] .fri-tp-profile-tools-content {
    z-index: 12;
  }
}

@media (max-width: 620px) {
  .fri-tp-profile-toolbar-actions,
  .fri-tp-profile-toolbar-actions :is(.fri-tp-profile-providers, .fri-tp-profile-request-actions) {
    gap: 0 .4rem;
  }

  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-toolbar-actions .fri-tp-profile-action-link {
    font-size: .8125rem !important;
  }
}

.fri-tp-product-shell .fri-tp-mobile-results-head small {
  font-size: .82em;
}

@media (max-width: 760px) {
  .fri-tp-product-shell {
    --fri-mobile-card-width: min(73%, 13rem);
  }

  .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 [data-fri-tp-best-panel] > :is(.fri-tp-pb-grid, .fri-tp-trail-profile-grid) > :is(.fri-tp-pb.fri-tp-unified-best-card, .fri-tp-trail-result-card) {
    flex-basis: var(--fri-mobile-card-width) !important;
    width: var(--fri-mobile-card-width) !important;
    min-width: var(--fri-mobile-card-width) !important;
    max-width: var(--fri-mobile-card-width) !important;
  }

  .fri-tp-public-hub.fri-tp-product-shell :is(.fri-tp-hub-race-grid, .fri-tp-hub-record-grid, .fri-tp-race-highlight-grid) {
    display: flex;
    flex-flow: row nowrap;
    gap: .7rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding: .1rem 0 .25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .fri-tp-public-hub.fri-tp-product-shell :is(.fri-tp-hub-race-card, .fri-tp-hub-record-card, .fri-tp-race-highlight-card) {
    flex: 0 0 var(--fri-mobile-card-width);
    width: var(--fri-mobile-card-width);
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
  }

  .fri-tp-public-hub.fri-tp-product-shell :is(.fri-tp-hub-race-card, .fri-tp-hub-record-card, .fri-tp-race-highlight-card):focus-visible {
    outline-offset: -3px;
  }

  .fri-tp-public-hub .fri-tp-hub-race-card .fri-tp-hub-race-card-top {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem;
    padding-inline-end: 0 !important;
  }

  .fri-tp-public-hub .fri-tp-hub-race-card .fri-tp-card-source-badge {
    position: static;
  }

  .fri-tp-public-hub .fri-tp-hub-race-card .fri-tp-card-source-badge.is-itra img {
    width: 4.65rem !important;
    min-width: 0 !important;
  }

  .fri-tp-public-hub .fri-tp-hub-race-card:has(.fri-tp-card-source-badge) > strong {
    margin-top: 0 !important;
    padding-inline-end: 0;
  }
}
