/* Compact profiles. Existing brand, trainer data and booking hooks stay intact. */
#trnModal.trn-profile-v2 {
  padding: 16px;
  align-items: center;
  justify-content: center;
  color: #232e36;
  font-family: 'Nunito', sans-serif;
}

#trnModal.trn-profile-v2 .trn-modal__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(640px, 100%);
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: min(90vh, 720px);
  max-height: min(90dvh, 720px);
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 66, 92, .22);
  border-radius: 20px;
  background: #faf9f6;
  box-shadow: 0 18px 60px rgba(35, 46, 54, .22);
  transform: none;
  transition: none;
}

#trnModal.trn-profile-v2 .trn-profile__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin: 0;
  padding: 7px 14px 7px 24px;
  gap: 16px;
}

#trnModal.trn-profile-v2 .trn-modal__count {
  position: static;
  inset: auto;
  z-index: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #46515e;
  font: 700 .875rem/1.4 'Nunito', sans-serif;
  letter-spacing: 0;
  backdrop-filter: none;
}

#trnModal.trn-profile-v2 .trn-modal__close {
  position: static;
  inset: auto;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #232e36;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  transition: background-color .15s ease;
}

#trnModal.trn-profile-v2 .trn-modal__close:hover {
  background: #e5e2db;
  transform: none;
}

#trnModal.trn-profile-v2 .trn-modal__close svg {
  display: block;
  width: 24px;
  height: 24px;
}

#trnModal.trn-profile-v2 .trn-profile__header {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 8px 24px 20px;
}

#trnModal.trn-profile-v2 .trn-modal__photo {
  position: relative;
  inset: auto;
  flex: none;
  width: 104px;
  height: 159px;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e5e2db;
}

#trnModal.trn-profile-v2 .trn-modal__photo .ph-fg {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}

#trnModal.trn-profile-v2 .trn-profile__identity { min-width: 0; }

#trnModal.trn-profile-v2 #trnName {
  margin: 0;
  padding: 0;
  color: #232e36 !important;
  font: 600 1.5rem/1.3 'Comfortaa', sans-serif;
  letter-spacing: -.02em;
  text-transform: none !important;
  overflow-wrap: anywhere;
}

#trnModal.trn-profile-v2 #trnRole {
  margin: 8px 0 0;
  padding: 0;
  color: #46515e !important;
  font: 600 .9375rem/1.45 'Nunito', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

#trnModal.trn-profile-v2 #trnExp {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #46515e;
  -webkit-text-fill-color: currentColor;
  font: 700 .8125rem/1.45 'Nunito', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

#trnModal.trn-profile-v2 .trn-modal__info {
  display: block;
  flex: none;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0 24px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  color: #232e36;
}

#trnModal.trn-profile-v2 .trn-profile__spec { margin: 0 0 16px; }

#trnModal.trn-profile-v2 .trn-profile__label {
  margin: 0 0 5px;
  color: #46515e;
  font: 700 .8125rem/1.4 'Nunito', sans-serif;
}

#trnModal.trn-profile-v2 #trnSpec {
  margin: 0;
  padding: 0;
  color: #232e36 !important;
  font: 600 .9375rem/1.5 'Nunito', sans-serif;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

#trnModal.trn-profile-v2 .trn-profile__details {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

#trnModal.trn-profile-v2 #trnBioL {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: 0;
  padding: 12px 0;
  gap: 12px;
  border-top: 1px solid rgba(45, 66, 92, .22);
  color: #232e36 !important;
  font: 700 .9375rem/1.4 'Nunito', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  list-style: none;
  cursor: pointer;
}

#trnModal.trn-profile-v2 #trnBioL::-webkit-details-marker { display: none; }
#trnModal.trn-profile-v2 #trnBioL::marker { content: ''; }
#trnModal.trn-profile-v2 #trnBioL svg { flex: none; width: 24px; height: 24px; }
#trnModal.trn-profile-v2 #trnDetails[open] #trnBioL svg { transform: rotate(180deg); }

#trnModal.trn-profile-v2 #trnBio {
  display: block;
  min-height: 0;
  max-height: none;
  margin: 4px 0 0;
  padding: 0;
  overflow: visible;
  color: #232e36 !important;
  font: 400 .9375rem/1.6 'Nunito', sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
}

#trnModal.trn-profile-v2 #trnBio p {
  margin: 0 0 .75rem;
  color: inherit !important;
}

#trnModal.trn-profile-v2 #trnBio p:last-child { margin-bottom: 0; }
#trnModal.trn-profile-v2 #trnBio ul,
#trnModal.trn-profile-v2 #trnBio ol { margin: 0 0 .75rem; padding-inline-start: 1.25rem; }
#trnModal.trn-profile-v2 #trnBio a { color: #405878; text-decoration: underline; text-underline-offset: 3px; }

#trnModal.trn-profile-v2 .trn-modal__foot {
  position: relative;
  inset: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  flex: none;
  min-height: 73px;
  margin: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 12px;
  border-top: 1px solid rgba(45, 66, 92, .22);
  background: #faf9f6;
}

#trnModal.trn-profile-v2 .trn-nav {
  position: static;
  inset: auto;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(45, 66, 92, .3);
  border-radius: 999px;
  background: transparent;
  color: #232e36;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  transition: background-color .15s ease;
}

#trnModal.trn-profile-v2 .trn-nav:hover { background: #e5e2db; border-color: rgba(45, 66, 92, .3); transform: none; }
#trnModal.trn-profile-v2 .trn-nav svg { display: block; width: 24px; height: 24px; }
#trnModal.trn-profile-v2 #trnPrev svg { transform: rotate(90deg); }
#trnModal.trn-profile-v2 #trnNext svg { transform: rotate(-90deg); }

#trnModal.trn-profile-v2 #trnCta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #232e36;
  border-radius: 999px;
  background: #232e36 !important;
  color: #faf9f6 !important;
  font: 700 .9375rem/1 'Nunito', sans-serif;
  letter-spacing: 0;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  animation: none;
}

#trnModal.trn-profile-v2 #trnBio:focus-visible { outline: 3px solid #465c79; outline-offset: 3px; }
#trnModal.trn-profile-v2 :is(button, a, summary):focus-visible { outline: 3px solid #465c79; outline-offset: 2px; }
#trnModal.trn-profile-v2 #trnCta:hover { background: #354653 !important; }
#trnModal.trn-profile-v2 #trnCta:active { background: #232e36 !important; }

/* Retired layers cannot introduce a second scroll or a poster-style sheet. */
#trnModal.trn-profile-v2 .ph-bg,
#trnModal.trn-profile-v2 .trn-modal__photo::after,
#trnModal.trn-profile-v2 .trn-modal__sheet::before,
#trnModal.trn-profile-v2 .trn-modal__cue,
#trnModal.trn-profile-v2 .trn-modal__fade { display: none !important; }
#trnModal.trn-profile-v2 [hidden] { display: none !important; }

@media (max-width: 600px) {
  #trnModal.trn-profile-v2 { padding: 12px; }
  #trnModal.trn-profile-v2 .trn-modal__card { border-radius: 16px; }
  #trnModal.trn-profile-v2 .trn-profile__topbar { min-height: 54px; padding: 5px 10px 5px 18px; }
  #trnModal.trn-profile-v2 .trn-profile__header { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 8px 18px 18px; }
  #trnModal.trn-profile-v2 .trn-modal__photo { width: 88px; height: 134px; }
  #trnModal.trn-profile-v2 #trnName { font-size: 1.25rem; line-height: 1.3; }
  #trnModal.trn-profile-v2 #trnRole { margin-top: 6px; font-size: .875rem; }
  #trnModal.trn-profile-v2 #trnExp { margin-top: 7px; font-size: .8125rem; }
  #trnModal.trn-profile-v2 .trn-modal__info { padding: 0 18px 16px; }
  #trnModal.trn-profile-v2 .trn-modal__foot { padding-inline: 14px; gap: 10px; }
  #trnModal.trn-profile-v2 #trnCta { padding-inline: 12px; }
}

@media (max-height: 480px) {
  #trnModal.trn-profile-v2 { padding: 6px; }
  #trnModal.trn-profile-v2 .trn-profile__topbar { min-height: 48px; padding: 2px 10px 2px 14px; }
  #trnModal.trn-profile-v2 .trn-profile__header { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 4px 14px 8px; }
  #trnModal.trn-profile-v2 .trn-modal__photo { width: 48px; height: 74px; }
  #trnModal.trn-profile-v2 #trnName { font-size: 1.125rem; line-height: 1.25; }
  #trnModal.trn-profile-v2 #trnRole { margin-top: 2px; font-size: .8125rem; line-height: 1.35; }
  #trnModal.trn-profile-v2 #trnExp { margin-top: 3px; font-size: .75rem; }
  #trnModal.trn-profile-v2 .trn-modal__info { padding: 0 14px 8px; }
  #trnModal.trn-profile-v2 .trn-profile__spec { margin-bottom: 6px; }
  #trnModal.trn-profile-v2 .trn-profile__label { margin-bottom: 2px; font-size: .75rem; }
  #trnModal.trn-profile-v2 #trnSpec { font-size: .8125rem; line-height: 1.4; }
  #trnModal.trn-profile-v2 #trnBioL { min-height: 44px; padding-block: 10px; font-size: .875rem; }
  #trnModal.trn-profile-v2 .trn-modal__foot { min-height: 61px; grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  #trnModal.trn-profile-v2 .trn-nav { width: 44px; min-width: 44px; height: 44px; }
  #trnModal.trn-profile-v2 #trnCta { min-height: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  #trnModal.trn-profile-v2,
  #trnModal.trn-profile-v2 * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
