/* Detail navigation and engagement belong to one continuous content surface. */
body :is(.profile-detail-shell, .detail-page-shell) {
  --ms-detail-content-inline: clamp(20px, 3vw, 32px);
  --ms-detail-content-title-size: 22px;
  --ms-detail-content-meta-size: 13px;
  --ms-detail-content-copy-gap: 20px;
}

/* Every detail header matches the compact Championship back-title treatment. */
body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Athletic media keeps the compact title inside the shared 14px content lane. */
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media
> .compact-detail-back-title-row.profile-detail-title-row {
  padding-right: 14px !important;
  padding-left: 14px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row::before,
body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row::after {
  content: none !important;
  display: none !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row
> :is(.profile-detail-back-button, .settings-back) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 0 !important;
  line-height: 1.2 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

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

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row
> .profile-detail-back-button::before {
  content: "←";
  display: inline-block;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row
:is(.profile-body-title-stack, .profile-section-title-wrap) {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row
:is(.profile-section-title-row, .events-detail-module-title-row) {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row
:is(a:not(.profile-detail-back-button):not(.settings-back), .compact-detail-back-title),
body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row
:is(h1, h2, .profile-detail-title, .detail-page-title, .module-page-title) {
  margin: 0 !important;
  padding: 0 !important;
  color: #111827 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
> .profile-detail-title-row .profile-section-title-line {
  display: none !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.ms-media-navigation-row[data-ms-media-navigation-mode="detail"],
body :is(.profile-detail-shell, .detail-page-shell)
:is(.championship-gallery-navigation, .blog-detail-gallery-navigation) {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 7px var(--ms-detail-content-inline) !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.ms-media-navigation-row[data-ms-media-navigation-mode="detail"]
.ms-media-navigation-button {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  column-gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 32px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transform: none !important;
  overflow: visible !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.ms-media-navigation-row[data-ms-media-navigation-mode="detail"] [data-detail-prev] {
  justify-self: start !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.ms-media-navigation-row[data-ms-media-navigation-mode="detail"] [data-detail-next] {
  justify-self: end !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.ms-media-navigation-row[data-ms-media-navigation-mode="detail"]
.ms-media-navigation-counter {
  justify-self: center !important;
  min-width: 0 !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.ms-media-navigation-row[data-ms-media-navigation-mode="detail"]
.ms-media-navigation-button:is(:disabled, [aria-disabled="true"]),
body :is(.profile-detail-shell, .detail-page-shell)
:is(.championship-gallery-navigation, .blog-detail-gallery-navigation) .is-disabled {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #9ca3af !important;
  opacity: 1 !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(.championship-gallery-navigation, .blog-detail-gallery-navigation) > :first-child {
  justify-self: start !important;
  text-align: left !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(.championship-gallery-navigation, .blog-detail-gallery-navigation) > :last-child {
  justify-self: end !important;
  text-align: right !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(.championship-gallery-navigation, .blog-detail-gallery-navigation)
> :is(a, button, .is-disabled) {
  display: inline-flex;
  align-items: center;
  column-gap: 7px !important;
  min-height: 32px;
  padding: 4px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(.championship-gallery-navigation, .blog-detail-gallery-navigation)
:is(a, button, span) {
  box-shadow: none !important;
}

/* Keep championship details attached directly below the navigation divider. */
body :is(.profile-detail-shell, .detail-page-shell)
.championship-gallery-navigation + .championship-detail-connected-card {
  margin-top: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.championship-gallery-navigation + .championship-detail-connected-card
> .championship-info-section {
  border: 0 !important;
  border-top: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* One shared gutter for content, engagement totals, and comments. */
body :is(.profile-detail-shell, .detail-page-shell)
.blog-detail-article-body {
  padding: 0 !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(
  .blog-detail-article-body > .editorial-detail-title,
  .blog-detail-article-body > .blog-detail-category,
  .blog-detail-article-body > .blog-detail-copy,
  .blog-detail-article-body > .blog-detail-topic-tags,
  .blog-detail-interaction-card > .blog-detail-copy,
  .detail-under-media-copy,
  .detail-card-body,
  .detail-connected-content,
  .training-detail-info-body,
  .training-detail-connected-card > .training-detail-section,
  .training-detail-breakdown-card > .training-detail-section
) {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: var(--ms-detail-content-inline) !important;
  padding-left: var(--ms-detail-content-inline) !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.championship-detail-connected-card > .championship-info-section {
  padding-right: var(--ms-detail-content-inline) !important;
  padding-left: var(--ms-detail-content-inline) !important;
}

/* Main content titles use one scale across editorial, training, and sport pages. */
body :is(.profile-detail-shell, .detail-page-shell)
:is(
  .editorial-detail-title,
  .detail-title,
  .training-detail-caption-title,
  .championship-info-value--title,
  .highlight-detail-main-title,
  .media-detail-caption-title,
  .watch-event-detail-summary__title,
  .recommendation-detail-title,
  .rank-detail__title,
  .stream-detail__title,
  .game-account-detail__title,
  .match-detail__title,
  .setup-detail__title,
  .tournament-detail__title,
  .module-detail-title,
  .detail-info-title
) {
  color: #111827 !important;
  font-size: var(--ms-detail-content-title-size) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(
  .blog-detail-category,
  .championship-info-value--byline,
  .module-detail-name-label,
  .training-detail-meta-label,
  .detail-info-subtitle
) {
  font-size: var(--ms-detail-content-meta-size) !important;
  line-height: 1.4 !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.blog-detail-article-body > .editorial-detail-title {
  margin: 22px 0 0 !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.blog-detail-article-body > .blog-detail-category {
  margin: 5px 0 0 !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(.blog-detail-article-body, .blog-detail-interaction-card)
> .blog-detail-copy {
  margin-top: var(--ms-detail-content-copy-gap) !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.news-detail-under-media-copy > .editorial-detail-caption {
  margin-top: var(--ms-detail-content-copy-gap) !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions > :is(.uda-activity-bar, .uda-comments-block) {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: var(--ms-detail-content-inline) !important;
  padding-left: var(--ms-detail-content-inline) !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-activity-actions,
body :is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-composer {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-composer > input {
  min-width: 0 !important;
  width: 100% !important;
  flex: 1 1 auto !important;
}

/* Keep navigation compact, inset, and separated from the title on every module. */
body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
:is(
  .ms-media-navigation-row[data-ms-media-navigation-mode="detail"],
  .championship-gallery-navigation,
  .blog-detail-gallery-navigation
) {
  padding: 7px var(--ms-detail-content-inline) !important;
  border-bottom: 0 !important;
}

/* Final engagement alignment overrides older module-specific edge spacing. */
body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions > .uda-activity-bar {
  padding: 18px var(--ms-detail-content-inline) 8px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions > .uda-comments-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 var(--ms-detail-content-inline) 20px !important;
  padding-bottom: 20px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-activity-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(22px, 4vw, 36px) !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-action-count {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-comments-label {
  margin: 0 !important;
  padding: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-comment-list {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.profile-detail-shell, .detail-page-shell)
.universal-detail-actions .uda-composer {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body :is(.profile-detail-shell, .detail-page-shell)
:is(
  .blog-detail-article-body,
  .blog-detail-interaction-card,
  .championship-detail-connected-card,
  .training-detail-connected-panel,
  .training-detail-connected-card,
  .detail-card-body,
  .detail-under-media-copy,
  .detail-connected-content,
  .universal-detail-actions
) {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  body :is(.profile-detail-shell, .detail-page-shell)
  :is(
    .ms-media-navigation-row[data-ms-media-navigation-mode="detail"],
    .championship-gallery-navigation,
    .blog-detail-gallery-navigation
  ) {
    gap: 8px !important;
    padding: 5px var(--ms-detail-content-inline) !important;
  }
}

/* Blog detail owns one horizontal gutter below the full-width navigation.
   Reset the nested legacy gutters so title, copy, engagement, and comments
   all begin and end on the same content edges at every viewport width. */
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .blog-detail-article-body {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 0 var(--ms-detail-content-inline) 20px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .blog-detail-article-body > :is(
  .editorial-detail-title,
  .blog-detail-category,
  .blog-detail-copy,
  .blog-detail-topic-tags,
  .universal-detail-actions
) {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .universal-detail-actions > :is(.uda-activity-bar, .uda-comments-block) {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .universal-detail-actions .uda-composer {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .universal-detail-actions .uda-composer-avatar {
  display: none !important;
}

/* Blog navigation typography is two pixels smaller without changing its
   three-column desktop alignment. */
body.app-body.profile-subpage-shell .profile-page.profile-page
:is(.detail-page-shell--blog, .detail-page-shell--podcast, .detail-page-shell--athletic-card-media)
.blog-detail-gallery-navigation
> :is(a, button, .blog-detail-gallery-navigation__counter) {
  font-size: 12px !important;
}

/* Full Game and Season Highlights use the Blog detail gutter from metadata
   through engagement, comments, and the composer. */
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .ath-media-post-card,
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .ath-media-detail-navigation,
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .ath-media-detail-lower-card {
  box-sizing: border-box !important;
  width: 100% !important;
  background: #fff !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .ath-media-player-card,
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .ath-media-player {
  margin: 0 !important;
  border-radius: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .ath-media-detail-lower-card {
  padding-right: var(--ms-detail-content-inline) !important;
  padding-left: var(--ms-detail-content-inline) !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .ath-media-info-section {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 20px 0 6px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .universal-detail-actions
> .uda-activity-bar {
  padding: 18px 0 8px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .universal-detail-actions
> .uda-comments-block {
  padding: 0 0 20px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .universal-detail-actions
.uda-activity-actions {
  justify-content: space-between !important;
  width: 100% !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .universal-detail-actions .uda-composer {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--athletic-card-media .universal-detail-actions
.uda-composer-avatar {
  display: none !important;
}

/* Highlights already own the outer content gutter. Remove the later shared
   engagement inset so title, stats, comments, input, and Post share one edge. */
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--highlight .highlight-detail-connected-bottom-card
.universal-detail-actions > :is(.uda-activity-bar, .uda-comments-block) {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--highlight .highlight-detail-connected-bottom-card
.universal-detail-actions > .uda-activity-bar {
  padding-top: 18px !important;
  padding-bottom: 8px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--highlight .highlight-detail-connected-bottom-card
.universal-detail-actions > .uda-comments-block {
  padding-top: 0 !important;
  padding-bottom: 20px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--highlight .highlight-detail-connected-bottom-card
.universal-detail-actions .uda-composer {
  grid-template-columns: minmax(0, 1fr) auto !important;
  margin-top: 16px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--highlight .highlight-detail-connected-bottom-card
.uda-composer-avatar {
  display: none !important;
}

/* Podcast episodes use the same compact media navigation rhythm as Blog. */
body.app-body.profile-subpage-shell .profile-page.profile-page
.podcast-detail-page .ms-media-navigation-row[data-ms-media-navigation-mode="detail"] {
  padding: 3px var(--ms-detail-content-inline) !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.podcast-detail-page .ms-media-navigation-row[data-ms-media-navigation-mode="detail"]
.ms-media-navigation-button {
  min-height: 24px !important;
  padding: 2px 0 !important;
}

/* Title, copy, stats, comments, and composer share one content edge. */
body.app-body.profile-subpage-shell .profile-page.profile-page
.podcast-detail-page .podcast-detail-connected-card {
  /* Restore the media/title gap after the shared nested-card padding reset. */
  padding-top: 24px !important;
  padding-right: var(--ms-detail-content-inline) !important;
  padding-left: var(--ms-detail-content-inline) !important;
}

/* Podcast navigation, information, guests, activity, and comments are one
   continuous surface. Override the later nested-detail transparency contract. */
body.app-body.profile-page.profile-subpage-shell
.profile-page.profile-page--episodes
.podcast-detail-page.profile-detail-shell
.podcast-detail-connected-stack,
body.app-body.profile-page.profile-subpage-shell
.profile-page.profile-page--episodes
.podcast-detail-page.profile-detail-shell
.podcast-detail-connected-stack > .podcast-detail-connected-card {
  background: #fff !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.podcast-detail-page .podcast-detail-connected-card
:is(.podcast-detail-info-section, .podcast-detail-guests-section, .podcast-detail-actions-section),
body.app-body.profile-subpage-shell .profile-page.profile-page
.podcast-detail-page .universal-detail-actions > :is(.uda-activity-bar, .uda-comments-block) {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.podcast-detail-page .universal-detail-actions .uda-composer {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.podcast-detail-page .universal-detail-actions .uda-composer-avatar {
  display: none !important;
}

/* Mobile Blog detail white content surface. */
@media (max-width: 700px) {
  body.app-body.profile-subpage-shell
  .profile-body-card:has(.detail-page-shell--blog),
  body.app-body.profile-subpage-shell
  .profile-body-content:has(.detail-page-shell--blog) {
    background: #f3f4f6 !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog {
    background: transparent !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog .blog-detail-article-card,
  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog .blog-detail-article-body,
  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog .blog-detail-copy,
  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog .blog-rich-content,
  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog .universal-detail-actions,
  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog .universal-detail-actions > .uda-activity-bar,
  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--blog .universal-detail-actions > .uda-comments-block {
    background: #fff !important;
  }

  /* Blog keeps its uploader above media while the detail navigation stays
     directly below it, with a denser phone-sized navigation treatment. */
  body.app-body.profile-subpage-shell .profile-page.profile-page
  :is(.detail-page-shell--blog, .detail-page-shell--podcast, .detail-page-shell--athletic-card-media)
  .blog-detail-gallery-navigation {
    gap: 8px !important;
    padding: 3px var(--ms-detail-content-inline) !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  :is(.detail-page-shell--blog, .detail-page-shell--podcast, .detail-page-shell--athletic-card-media)
  .blog-detail-gallery-navigation
  > :is(a, button, .blog-detail-gallery-navigation__counter) {
    min-height: 28px !important;
    padding: 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

/* Highlights mobile Blog-parity cleanup. */
@media (max-width: 700px) {
  body.app-body.profile-subpage-shell
  .profile-body-card:has(.detail-page-shell--highlight),
  body.app-body.profile-subpage-shell
  .profile-body-content:has(.detail-page-shell--highlight) {
    background: #f3f4f6 !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight,
  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight > .compact-detail-back-title-row {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .blog-detail-gallery-navigation {
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px var(--ms-detail-content-inline) !important;
    background: #fff !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .blog-detail-gallery-navigation
  > :is(a, button, .blog-detail-gallery-navigation__counter) {
    min-height: 28px !important;
    padding: 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .blog-detail-gallery-navigation > :first-child {
    justify-self: start !important;
    text-align: left !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .blog-detail-gallery-navigation
  > .blog-detail-gallery-navigation__counter {
    justify-self: center !important;
    text-align: center !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .blog-detail-gallery-navigation > :last-child {
    justify-self: end !important;
    text-align: right !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .highlight-detail-connected-bottom-card {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px var(--ms-detail-content-inline) 20px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .highlight-detail-connected-bottom-card :is(
    .highlight-detail-bottom-caption,
    .highlight-detail-info-copy,
    .universal-detail-actions,
    .uda-section,
    .uda-activity-bar,
    .uda-comments-block,
    .uda-comment-list
  ) {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.app-body.profile-subpage-shell .profile-page.profile-page
  .detail-page-shell--highlight .highlight-detail-connected-bottom-card
  .universal-detail-actions > :is(.uda-activity-bar, .uda-comments-block) {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

/* Vlog detail spacing and shared left-edge contract. */
body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body > .blog-detail-article-title {
  margin: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body > .vlog-detail-taxonomy {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 7px 0 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.55 !important;
  text-transform: none !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body > .vlog-detail-copy {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 9px 0 0 !important;
  padding: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body > .universal-detail-actions {
  box-sizing: border-box !important;
  width: 100% !important;
  margin-top: 16px !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body > .universal-detail-actions
> .uda-activity-bar {
  width: 100% !important;
  padding: 0 0 16px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body .uda-activity-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 0 !important;
  width: 100% !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body
.uda-activity-actions > .uda-action-count {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body
.uda-activity-actions > :first-child {
  justify-self: start !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body
.uda-activity-actions > :last-child {
  justify-self: end !important;
}

body.app-body.profile-subpage-shell .profile-page.profile-page
.detail-page-shell--blog .vlog-detail-body > .universal-detail-actions
> .uda-comments-block {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}
