/* Final detail title behavior for tablet/mobile. DOM order remains authoritative. */
@media (max-width: 1024px) {
  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 970px !important;
    min-height: 0 !important;
    margin: 0 auto 16px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  body.detail-header-back-ready.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-detail-back-button,
  body.detail-header-back-ready.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-detail-back-button,
  body.detail-header-back-ready.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-detail-back-button,
  body.detail-header-back-ready.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-detail-back-button,
  body.detail-header-back-ready.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .settings-back,
  body.detail-header-back-ready.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .settings-back,
  body.detail-header-back-ready.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .settings-back,
  body.detail-header-back-ready.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .settings-back {
    display: none !important;
  }

  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-body-title-stack,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-body-title-stack,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-body-title-stack,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-body-title-stack,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-section-title-wrap,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-section-title-wrap,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-section-title-wrap,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-section-title-wrap {
    flex: 1 1 auto !important;
    grid-column: auto !important;
    justify-self: stretch !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-section-title-row,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-section-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-section-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-section-title-row,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .events-detail-module-title-row,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .events-detail-module-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .events-detail-module-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .events-detail-module-title-row {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-section-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-section-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-section-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-section-title-link {
    flex: 0 1 auto !important;
    grid-column: auto !important;
    justify-self: auto !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    max-width: 80% !important;
    padding: 0 !important;
    color: inherit !important;
    text-align: left !important;
    text-decoration: none !important;
  }

  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-section-title-line,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-section-title-line,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-section-title-line,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-section-title-line {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 24px !important;
    height: 1px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #cfcfcf !important;
  }

  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row :is(
    .profile-detail-title,
    .detail-page-title,
    .module-page-title,
    .profile-editorial-detail-section-title,
    .media-detail-section-title,
    .highlight-detail-section-title,
    .watch-detail-section-title,
    .events-detail-section-title,
    .location-module-title,
    .facility-detail-section-title
  ),
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row :is(
    .profile-detail-title,
    .detail-page-title,
    .module-page-title,
    .profile-editorial-detail-section-title,
    .media-detail-section-title,
    .highlight-detail-section-title,
    .watch-detail-section-title,
    .events-detail-section-title,
    .location-module-title,
    .facility-detail-section-title
  ),
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row :is(
    .profile-detail-title,
    .detail-page-title,
    .module-page-title,
    .profile-editorial-detail-section-title,
    .media-detail-section-title,
    .highlight-detail-section-title,
    .watch-detail-section-title,
    .events-detail-section-title,
    .location-module-title,
    .facility-detail-section-title
  ),
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row :is(
    .profile-detail-title,
    .detail-page-title,
    .module-page-title,
    .profile-editorial-detail-section-title,
    .media-detail-section-title,
    .highlight-detail-section-title,
    .watch-detail-section-title,
    .events-detail-section-title,
    .location-module-title,
    .facility-detail-section-title
  ) {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 0 7px !important;
    border: 0 !important;
    border-bottom: 3px solid #111827 !important;
    color: #111827 !important;
    font-size: var(--ms-universal-title-size, 18px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 640px) {
  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row {
    margin-bottom: 14px !important;
    padding-left: var(--ms-universal-title-lane-mobile-pad, 14px) !important;
    padding-right: var(--ms-universal-title-lane-mobile-pad, 14px) !important;
  }

  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .profile-detail-title-row .profile-section-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-shell > .detail-title-row .profile-section-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .profile-detail-title-row .profile-section-title-link,
  body.profile-subpage-shell .profile-page .detail-page-shell > .detail-title-row .profile-section-title-link {
    max-width: 72% !important;
  }
}

/* Global module/detail title lane. Loaded last so module-specific title wrappers cannot drift. */
:root {
  --ms-universal-title-lane-max: 970px;
  --ms-universal-title-lane-mobile-pad: 14px;
}

.ms-universal-title-lane,
body.profile-subpage-shell .profile-page .module-page-header.profile-body-top,
body.profile-subpage-shell .profile-page .module-page-header.ms-section-head,
body.profile-subpage-shell .profile-page .module-page-header.shared-section-header,
body.profile-subpage-shell .profile-page .module-page-header.team-history-page-header,
body.profile-subpage-shell .profile-page .media-page-title-row,
body.profile-subpage-shell .profile-page .album-page-title-row,
body.profile-subpage-shell .profile-page .events-page-head,
body.profile-subpage-shell .profile-page .profile-detail-title-row,
body.profile-subpage-shell .profile-page .detail-title-row,
body.profile-subpage-shell .profile-page .detail-page-title-row {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: var(--ms-universal-title-lane-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.profile-subpage-shell .profile-page .module-page-header.profile-body-top,
body.profile-subpage-shell .profile-page .module-page-header.ms-section-head,
body.profile-subpage-shell .profile-page .module-page-header.shared-section-header,
body.profile-subpage-shell .profile-page .module-page-header.team-history-page-header,
body.profile-subpage-shell .profile-page .media-page-title-row,
body.profile-subpage-shell .profile-page .album-page-title-row,
body.profile-subpage-shell .profile-page .events-page-head {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

body.profile-subpage-shell .profile-page .profile-detail-title-row,
body.profile-subpage-shell .profile-page .detail-title-row,
body.profile-subpage-shell .profile-page .detail-page-title-row {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  min-height: 0 !important;
}

.ms-universal-title-bar,
body.profile-subpage-shell .profile-page .module-page-title-row,
body.profile-subpage-shell .profile-page .profile-body-heading-row,
body.profile-subpage-shell .profile-page .events-index-title-row,
body.profile-subpage-shell .profile-page .locations-list-title-row,
body.profile-subpage-shell .profile-page .facility-list-title-row,
body.profile-subpage-shell .profile-page .coaches-list-title-row,
body.profile-subpage-shell .profile-page .events-detail-module-title-row {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ms-universal-title-stack,
body.profile-subpage-shell .profile-page .profile-section-title-wrap,
body.profile-subpage-shell .profile-page .profile-detail-title-row .profile-body-title-stack,
body.profile-subpage-shell .profile-page .detail-title-row .profile-body-title-stack,
body.profile-subpage-shell .profile-page .detail-page-title-row .profile-body-title-stack {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.ms-universal-title-row,
body.profile-subpage-shell .profile-page .profile-section-title-row {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.ms-universal-title-link,
body.profile-subpage-shell .profile-page .profile-section-title-link,
body.profile-subpage-shell .profile-page .profile-detail-title-link,
body.profile-subpage-shell .profile-page .profile-detail-title-row > a:not(.profile-detail-back-button):not(.settings-back),
body.profile-subpage-shell .profile-page .detail-title-row > a:not(.profile-detail-back-button):not(.settings-back) {
  flex: 0 1 auto !important;
  display: inline-flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  max-width: min(100%, 82ch) !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  text-align: left !important;
  text-decoration: none !important;
}

.ms-universal-title-text,
body.profile-subpage-shell .profile-page .profile-section-title-row .profile-page-title.module-page-title,
body.profile-subpage-shell .profile-page :is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row) :is(
  .profile-detail-title,
  .detail-page-title,
  .module-page-title,
  .profile-page-title,
  .profile-editorial-detail-section-title,
  .media-detail-section-title,
  .highlight-detail-section-title,
  .watch-detail-section-title,
  .events-detail-section-title,
  .location-module-title,
  .facility-detail-section-title,
  .parent-info-detail-section-title,
  .school-info-detail-section-title,
  .team-history-detail-section-title
) {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 0 7px !important;
  border: 0 !important;
  border-bottom: 3px solid #111827 !important;
  color: #111827 !important;
  font-family: inherit !important;
  font-size: var(--ms-universal-title-size, 18px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ms-universal-title-line,
body.profile-subpage-shell .profile-page .profile-section-title-line {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 24px !important;
  height: 1px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #cfcfcf !important;
}

body.profile-subpage-shell .profile-page :is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row):not(:has(.profile-section-title-line))::after {
  content: "" !important;
  flex: 1 1 auto !important;
  min-width: 24px !important;
  height: 1px !important;
  border-bottom: 1px solid #cfcfcf !important;
}

body.profile-subpage-shell .profile-page :is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row) > :is(.profile-detail-back-button, .settings-back) {
  flex: 0 0 auto !important;
}

@media (min-width: 1025px) {
  body.profile-subpage-shell .profile-page :is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row) > :is(.profile-detail-back-button, .settings-back) {
    position: absolute !important;
    top: 50% !important;
    left: -44px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }
}

@media (max-width: 1024px) {
  .ms-universal-title-lane,
  body.profile-subpage-shell .profile-page .module-page-header.profile-body-top,
  body.profile-subpage-shell .profile-page .module-page-header.ms-section-head,
  body.profile-subpage-shell .profile-page .module-page-header.shared-section-header,
  body.profile-subpage-shell .profile-page .module-page-header.team-history-page-header,
  body.profile-subpage-shell .profile-page .media-page-title-row,
  body.profile-subpage-shell .profile-page .album-page-title-row,
  body.profile-subpage-shell .profile-page .events-page-head,
  body.profile-subpage-shell .profile-page .profile-detail-title-row,
  body.profile-subpage-shell .profile-page .detail-title-row,
  body.profile-subpage-shell .profile-page .detail-page-title-row {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    max-width: var(--ms-universal-title-lane-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--ms-universal-title-lane-mobile-pad) !important;
    padding-right: var(--ms-universal-title-lane-mobile-pad) !important;
    justify-content: space-between !important;
    background: transparent !important;
  }

  body.profile-subpage-shell .profile-page :is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row) > :is(.profile-detail-back-button, .settings-back) {
    display: none !important;
  }
}

/* Metric validation details own their title rule and source-ordered top ad. */
@media (max-width: 1024px) {
  body.profile-subpage-shell .profile-page .verified-metric-page > .verified-metric-page-header {
    order: initial !important;
  }

  body.profile-subpage-shell .profile-page .verified-metric-page .verified-metric-page-header,
  body.profile-subpage-shell .profile-page .verified-metric-page .verified-metric-title-rule {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.profile-subpage-shell .profile-page .verified-metric-page .verified-metric-page-header::after {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 640px) {
  .ms-universal-title-link,
  body.profile-subpage-shell .profile-page .profile-section-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-title-link,
  body.profile-subpage-shell .profile-page .profile-detail-title-row > a:not(.profile-detail-back-button):not(.settings-back),
  body.profile-subpage-shell .profile-page .detail-title-row > a:not(.profile-detail-back-button):not(.settings-back) {
    max-width: min(100%, 72vw) !important;
  }
}

body.profile-subpage-shell .profile-page :is(
  .media-view-tabs,
  .media-tab-toolbar,
  .watch-library__filters,
  .events-index-controls,
  .facilities-filter-pills,
  .locations-filter-pills,
  .module-sort-tabs,
  .module-filter-pills,
  .drill-filter-stack,
  .workout-display-filter-stack,
  .highlight-filter-pills,
  .timeline-filter-row,
  .documents-filter-row,
  .podcast-filter-tabs,
  .profile-body-inline-filter,
  .profile-module-header-actions
) {
  box-sizing: border-box !important;
  max-width: var(--ms-universal-title-lane-max) !important;
}

/* Athletic media details own their source order and connected title rule. */
@media (max-width: 1024px) {
  body.profile-subpage-shell .profile-page .ath-media-detail-module .ath-media-detail-page-head {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.profile-subpage-shell .profile-page .ath-media-detail-module .ath-media-detail-page-head .profile-detail-title-row {
    padding-left: 14px !important;
    padding-right: 14px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.profile-subpage-shell .profile-page:has(.ath-media-detail-module),
  body.profile-subpage-shell .profile-page:has(.ath-media-detail-module) > .profile-body-card,
  body.profile-subpage-shell .profile-page:has(.ath-media-detail-module) .profile-body-content {
    background: transparent !important;
  }

  body.profile-subpage-shell .profile-page .ath-media-detail-module .ath-media-detail-page-head .profile-detail-title-row::after {
    content: none !important;
    display: none !important;
  }
}

/* Championship detail uses the same connected title lane as other modules. */
body.profile-subpage-shell .profile-page .champ-detail-module > .profile-detail-title-row {
  align-items:flex-end !important;
  gap:0 !important;
  margin-top:22px !important;
  margin-bottom:18px !important;
}

body.profile-subpage-shell .profile-page .champ-detail-module > .profile-detail-title-row .profile-detail-title-link {
  flex:0 0 auto !important;
  max-width:100% !important;
}

body.profile-subpage-shell .profile-page .champ-detail-module > .profile-detail-title-row .profile-detail-title {
  padding-bottom:8px !important;
  border-bottom:3px solid #111827 !important;
  font-size:var(--ms-universal-title-size, 18px) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
}

body.profile-subpage-shell .profile-page .champ-detail-module > .profile-detail-title-row::after {
  margin:0 !important;
  border-bottom-color:#cfd4dc !important;
}

@media (max-width:767px) {
  body.profile-subpage-shell .profile-page .champ-detail-module > .profile-detail-title-row {
    box-sizing:border-box !important;
    width:calc(100% - 28px) !important;
    margin:16px 14px 14px !important;
    padding:0 !important;
  }

  body.profile-subpage-shell .profile-page .champ-detail-module > .profile-detail-title-row .profile-detail-title {
    padding-bottom:7px !important;
    font-size:var(--ms-universal-title-size, 18px) !important;
  }
}

/* Podcast episode details use one continuous title underline and rule. */
body.profile-subpage-shell .profile-page .podcast-detail-page > .profile-detail-heading {
  align-items:flex-end !important;
  gap:0 !important;
}

body.profile-subpage-shell .profile-page .podcast-detail-page > .profile-detail-heading .profile-detail-title-link {
  flex:0 0 auto !important;
  max-width:100% !important;
}

body.profile-subpage-shell .profile-page .podcast-detail-page > .profile-detail-heading .profile-detail-title {
  padding-bottom:8px !important;
  border-bottom:3px solid #111827 !important;
  font-size:var(--ms-universal-title-size, 18px) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
}

body.profile-subpage-shell .profile-page .podcast-detail-page > .profile-detail-heading::after {
  align-self:flex-end !important;
  margin:0 !important;
  border-bottom-color:#cfd4dc !important;
}

@media (max-width:767px) {
  body.profile-subpage-shell .profile-page .podcast-detail-page > .profile-detail-heading .profile-detail-title {
    padding-bottom:7px !important;
    font-size:var(--ms-universal-title-size, 18px) !important;
  }
}

/* Return-to-source links share the exact left edge of the module title lane. */
body.profile-subpage-shell .profile-page
:is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row)
+ :is(.feed-return-link, .detail-return-link, .back-to-source-link, .return-to-link).is-visible {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:var(--ms-universal-title-lane-max) !important;
  margin:0 auto 20px !important;
  padding-left:0 !important;
  padding-right:0 !important;
  justify-content:flex-start !important;
  text-align:left !important;
}

@media (max-width:1024px) {
  body.profile-subpage-shell .profile-page
  :is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row)
  + :is(.feed-return-link, .detail-return-link, .back-to-source-link, .return-to-link).is-visible {
    padding-left:var(--ms-universal-title-lane-mobile-pad) !important;
    padding-right:var(--ms-universal-title-lane-mobile-pad) !important;
  }
}

/*
 * Content ranking tabs share one sizing contract. Public Feed starts at 15px;
 * profile modules start at 14px. Both are reduced by exactly 2px.
 */
:is(.popular-sort-tabs, .module-sort-tabs) {
  --content-rank-tab-base:14px;
}

.popular-sort-tabs {
  --content-rank-tab-base:15px;
}

:is(.popular-sort-tabs, .module-sort-tabs)
> :is(.popular-sort-tab, .module-sort-tab) {
  font-size:calc(var(--content-rank-tab-base) - 2px) !important;
}

/*
 * Keep the shared module add action in the title lane. Filter/tool rows retain
 * their own full-width row below it, so the action never drops beneath them.
 * The former shared circle was 30px; 22.5px is exactly 25% smaller.
 */
body.profile-subpage-shell .profile-page
.module-page-header.profile-body-top > .profile-module-title-row {
  flex-wrap:wrap !important;
  align-items:center !important;
}

body.profile-subpage-shell .profile-page
.module-page-header.profile-body-top
> .profile-module-title-row
> .profile-section-title-wrap {
  order:0 !important;
  flex:1 1 0 !important;
  width:auto !important;
}

body.profile-subpage-shell .profile-page
.module-page-header.profile-body-top
> .profile-module-title-row
> .profile-body-add.profile-body-add--circle {
  order:1 !important;
  flex:0 0 22.5px !important;
  width:22.5px !important;
  height:22.5px !important;
  min-width:22.5px !important;
  min-height:22.5px !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
  align-self:flex-start !important;
  font-size:13.5px !important;
  line-height:1 !important;
}

/* Legacy module headers (Hall of Fame, Facilities, and Coaches) share that size. */
body.profile-subpage-shell .profile-page
.ms-section-head.module-page-header
> .ms-add-circle:not(.locations-add-button) {
  flex:0 0 22.5px !important;
  width:22.5px !important;
  height:22.5px !important;
  min-width:22.5px !important;
  min-height:22.5px !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
  align-self:flex-start !important;
  font-size:13.5px !important;
  line-height:1 !important;
}

body.profile-subpage-shell .profile-page
.module-page-header.profile-body-top
> .profile-module-title-row
> .module-filter-pill-bar {
  order:3 !important;
  flex:0 0 100% !important;
  width:100% !important;
}

/*
 * Final shared title contract. Module and detail titles use the same 18px
 * type size, and both parts of the underline sit on one continuous baseline.
 */
:root {
  --ms-universal-title-size:18px;
}

.ms-universal-title-text,
body.profile-subpage-shell .profile-page
.profile-section-title-row .profile-page-title.module-page-title,
body.profile-subpage-shell .profile-page
:is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row)
:is(
  .profile-detail-title,
  .detail-page-title,
  .module-page-title,
  .profile-page-title,
  .profile-editorial-detail-section-title,
  .media-detail-section-title,
  .highlight-detail-section-title,
  .watch-detail-section-title,
  .events-detail-section-title,
  .location-module-title,
  .facility-detail-section-title,
  .parent-info-detail-section-title,
  .school-info-detail-section-title,
  .team-history-detail-section-title
) {
  font-size:var(--ms-universal-title-size) !important;
}

/* Legacy detail templates place the linked page title directly in the shell. */
body.profile-subpage-shell .profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-link
> :is(
  .profile-detail-title,
  .detail-page-title,
  .module-page-title,
  .profile-page-title,
  .album-page-title
) {
  font-size:var(--ms-universal-title-size) !important;
}

.ms-universal-title-row,
body.profile-subpage-shell .profile-page .profile-section-title-row,
body.profile-subpage-shell .profile-page
:is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row) {
  align-items:flex-end !important;
  gap:0 !important;
}

.ms-universal-title-line,
body.profile-subpage-shell .profile-page .profile-section-title-line,
body.profile-subpage-shell .profile-page
:is(.profile-detail-title-row, .detail-title-row, .detail-page-title-row):not(:has(.profile-section-title-line))::after {
  align-self:flex-end !important;
  height:0 !important;
  margin:0 !important;
}

/* Trophy Room keeps its Sport control on a separate, left-aligned title row. */
body.profile-subpage-shell .profile-page.profile-page--trophy_room
.profile-body-heading-row.ms-universal-title-bar{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:18px 16px !important;
}

body.profile-subpage-shell .profile-page.profile-page--trophy_room
.profile-body-heading-row.ms-universal-title-bar > .profile-body-title-stack{
  order:0 !important;
  flex:1 1 0 !important;
  width:auto !important;
}

body.profile-subpage-shell .profile-page.profile-page--trophy_room
.profile-body-heading-row.ms-universal-title-bar > .trophy-room-heading-filter{
  order:2 !important;
  flex:0 0 100% !important;
  width:100% !important;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
}

body.profile-subpage-shell .profile-page.profile-page--trophy_room
.trophy-room-heading-filter :is(
  .module-dropdown-form,
  .module-dropdown-control
){
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  justify-content:flex-start !important;
  background:transparent !important;
}

body.profile-subpage-shell .profile-page.profile-page--trophy_room
.trophy-room-heading-filter .module-dropdown-control{
  gap:14px !important;
}

body.profile-subpage-shell .profile-page.profile-page--trophy_room
.trophy-room-heading-filter .module-dropdown-control select{
  field-sizing:content;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:2px 20px 2px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:left !important;
}

body.profile-subpage-shell .profile-page.profile-page--trophy_room
.module-page-header.profile-body-top
> .profile-module-title-row.profile-body-heading-row.ms-universal-title-bar
> .profile-body-add.profile-body-add--circle{
  order:1 !important;
  flex:0 0 auto;
  align-self:flex-start !important;
  margin-left:auto !important;
}

/* Championships uses the shared title/add row with its Sport control below. */
body.profile-subpage-shell .profile-page.profile-page--championships
.profile-body-heading-row.ms-universal-title-bar{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:18px 16px !important;
}

body.profile-subpage-shell .profile-page.profile-page--championships
.profile-body-heading-row.ms-universal-title-bar > .profile-body-title-stack{
  order:0 !important;
  flex:1 1 0 !important;
  width:auto !important;
}

body.profile-subpage-shell .profile-page.profile-page--championships
.profile-body-heading-row.ms-universal-title-bar > .championship-filter-row{
  order:2 !important;
  flex:0 0 100% !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

body.profile-subpage-shell .profile-page.profile-page--championships
.module-page-header.profile-body-top
> .profile-module-title-row.profile-body-heading-row.ms-universal-title-bar
> .profile-body-add.profile-body-add--circle{
  order:1 !important;
  flex:0 0 auto;
  align-self:flex-start !important;
  margin-left:auto !important;
}

/* Athletic Card keeps its Sport control below the title, aligned to the
   shared left gutter, with the same compact dropdown treatment as modules. */
body.profile-subpage-shell .profile-page.profile-page--athletic_card
.profile-body-heading-row.ms-universal-title-bar{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:18px 16px !important;
}

body.profile-subpage-shell .profile-page.profile-page--athletic_card
.profile-body-heading-row.ms-universal-title-bar > .profile-body-title-stack{
  order:0 !important;
  flex:1 1 0 !important;
  width:auto !important;
}

body.profile-subpage-shell .profile-page.profile-page--athletic_card
.profile-body-heading-row.ms-universal-title-bar > .ath-top-bar-actions{
  order:2 !important;
  flex:0 0 100% !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  justify-content:flex-start !important;
  background:transparent !important;
}

body.profile-subpage-shell .profile-page.profile-page--athletic_card
.ath-top-bar-actions :is(
  .module-dropdown-form,
  .module-dropdown-control
){
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  justify-content:flex-start !important;
  background:transparent !important;
}

body.profile-subpage-shell .profile-page.profile-page--athletic_card
.ath-top-bar-actions .module-dropdown-control{
  gap:14px !important;
}

body.profile-subpage-shell .profile-page.profile-page--athletic_card
.ath-top-bar-actions .module-dropdown-control select{
  field-sizing:content;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:2px 20px 2px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:left !important;
}

body.profile-subpage-shell .profile-page.profile-page--athletic_card
.ath-top-bar-actions .module-dropdown-control select:focus,
body.profile-subpage-shell .profile-page.profile-page--athletic_card
.ath-top-bar-actions .module-dropdown-control select:focus-visible{
  border:0 !important;
  outline:2px solid currentColor;
  outline-offset:3px;
  box-shadow:none !important;
}

body.profile-subpage-shell .profile-page.profile-page--athletic_card
.module-page-header.profile-body-top
> .profile-module-title-row.profile-body-heading-row.ms-universal-title-bar
> .profile-body-add.profile-body-add--circle{
  order:1 !important;
  flex:0 0 auto;
  align-self:flex-start !important;
  margin-left:auto !important;
}

/* Honors & Awards uses the shared title/add row with its Sport control below. */
body.profile-subpage-shell .profile-page.profile-page--honors_awards
.profile-body-heading-row.ms-universal-title-bar{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:18px 16px !important;
}

body.profile-subpage-shell .profile-page.profile-page--honors_awards
.profile-body-heading-row.ms-universal-title-bar > .profile-body-title-stack{
  order:0 !important;
  flex:1 1 0 !important;
  width:auto !important;
}

body.profile-subpage-shell .profile-page.profile-page--honors_awards
.profile-body-heading-row.ms-universal-title-bar > .honors-heading-filter{
  order:2 !important;
  flex:0 0 100% !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
}

body.profile-subpage-shell .profile-page.profile-page--honors_awards
.honors-heading-filter :is(
  .module-dropdown-form,
  .module-dropdown-control
){
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  justify-content:flex-start !important;
  background:transparent !important;
}

body.profile-subpage-shell .profile-page.profile-page--honors_awards
.honors-heading-filter .module-dropdown-control{
  gap:14px !important;
}

body.profile-subpage-shell .profile-page.profile-page--honors_awards
.honors-heading-filter .module-dropdown-control select{
  field-sizing:content;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:2px 20px 2px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:left !important;
}

body.profile-subpage-shell .profile-page.profile-page--honors_awards
.honors-heading-filter .module-dropdown-control select:focus,
body.profile-subpage-shell .profile-page.profile-page--honors_awards
.honors-heading-filter .module-dropdown-control select:focus-visible{
  border:0 !important;
  outline:2px solid currentColor;
  outline-offset:3px;
  box-shadow:none !important;
}

body.profile-subpage-shell .profile-page.profile-page--honors_awards
.module-page-header.profile-body-top
> .profile-module-title-row.profile-body-heading-row.ms-universal-title-bar
> .profile-body-add.profile-body-add--circle{
  order:1 !important;
  flex:0 0 auto;
  align-self:flex-start !important;
  margin-left:auto !important;
}
