/* R135-H57 — Editorial-first Feed opening.
 * Real DOM order: topics -> approved advertising -> primary navigation ->
 * publisher launcher -> reading shortcuts -> article feed.
 * Presentation only; preserves existing routes, composer/Feed JS and Ad markup. */
.dhvx-app[data-dhv-experience="feed"] {
  --dhvx-opening-line: color-mix(in srgb, var(--dhvx-border, #e0e2e7) 88%, transparent);
  --dhvx-opening-ink: var(--dhvx-text, #242831);
  --dhvx-opening-muted: var(--dhvx-text-secondary, #646a73);
  --dhvx-opening-sheet: var(--dhvx-surface, #fff);
}
/* A single editorial ticker, not a second navigation dashboard. */
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top {
  position: relative;
  inset: auto;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--dhvx-opening-line);
  border-radius: 0;
  background: var(--dhvx-opening-sheet);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  min-width: 0;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__intro {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 0 12px 0 0;
  margin: 0;
  border-right: 1px solid var(--dhvx-opening-line);
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__eyebrow {
  display: block;
  color: var(--dhvx-opening-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
/* The evolving viewport summary remains in the DOM for screen readers / JS. */
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__intro strong {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__viewport {
  flex: 1 1 0;
  display: block;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right,#000 0%,#000 calc(100% - 18px),transparent 100%);
  mask-image: linear-gradient(to right,#000 0%,#000 calc(100% - 18px),transparent 100%);
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__viewport::-webkit-scrollbar { display: none; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
  padding: 0 24px 0 0;
  overflow: visible;
  scroll-snap-type: none;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__topic {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 4px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dhvx-opening-muted);
  box-shadow: none;
  font-size: 12.75px;
  line-height: 1.3;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__topic:hover,
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__topic.is-in-view {
  color: var(--dhvx-brand, #c82330);
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__topic:focus-visible {
  outline: 2px solid var(--dhvx-brand, #c82330);
  outline-offset: 2px;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__icon,
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__more { display: none !important; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__label {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font: inherit;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__count,
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__count {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Keep the original approved ad dimensions, disclosure and viewability box. */
.dhvx-app[data-dhv-experience="feed"] .dhvx-home-top-ads { margin: 0; }
/* Source navigation remains prominent, secondary categories read like links. */
.dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs {
  border-color: var(--dhvx-opening-line);
  background: var(--dhvx-opening-sheet);
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs .dhvx-category-link.is-chip {
  color: var(--dhvx-opening-muted);
  font-weight: 600;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs .dhvx-category-link.is-chip .dhvx-category-link__icon {
  background: transparent;
  border: 0;
}
/* The privileged publisher tool is a compact action, not an empty feature card. */
.dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish {
  margin: 10px 12px 6px;
  padding: 0;
  border: 1px solid var(--dhvx-opening-line);
  border-radius: 12px;
  background: var(--dhvx-opening-sheet);
  box-shadow: none;
  overflow: visible;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch {
  min-height: 51px;
  gap: 9px;
  padding: 7px 12px 7px 15px;
  border-radius: inherit;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch-copy { gap: 0; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch-copy strong {
  color: var(--dhvx-opening-ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 750;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch-copy small {
  font-size: 11.5px;
  color: var(--dhvx-opening-muted);
  line-height: 1.2;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border: 1px solid color-mix(in srgb, var(--dhvx-brand,#c82330) 14%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--dhvx-brand,#c82330) 6%, var(--dhvx-opening-sheet));
  color: var(--dhvx-brand,#c82330);
  font-size: 20px;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch:focus-visible {
  outline: 2px solid var(--dhvx-brand,#c82330);
  outline-offset: 2px;
}
/* Reading shortcuts are small utilities; no third large white card. */
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0 12px 9px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence__quick { min-width: 0; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens {
  position: relative;
  inset: auto;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 37px;
  margin: 0;
  padding: 2px 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens[hidden] { display: none !important; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__intro {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__prompt {
  color: var(--dhvx-opening-muted);
  font-size: 11.75px;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__summary { display: none; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__viewport::-webkit-scrollbar { display:none; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__signal {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
  align-items: center;
  min-height: 29px;
  padding: 3px 8px;
  border: 1px solid var(--dhvx-opening-line);
  border-radius: 999px;
  background: var(--dhvx-opening-sheet);
  color: var(--dhvx-opening-muted);
  font-size: 11.75px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__signal:hover {
  border-color: var(--dhvx-brand, #c82330);
  color: var(--dhvx-opening-ink);
  background: var(--dhvx-opening-sheet);
}
.dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__icon { display: none; }
.dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence__toggle {
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--dhvx-opening-line);
  border-radius: 999px;
  background: var(--dhvx-opening-sheet);
  box-shadow: none;
  font-size: 12px;
}
@media (max-width: 767px) {
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top {
    min-height: 46px;
    gap: 9px;
    padding: 6px 11px;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__intro { padding-right: 9px; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__eyebrow { font-size: 11px; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__track { gap: 12px; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__topic {
    min-height: 30px;
    padding: 3px 0;
    font-size: 11.75px;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish { margin: 8px 10px 5px; border-radius: 11px; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch {
    min-height: 48px;
    padding: 6px 10px 6px 12px;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish__launch-copy small { display: none; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence { margin-inline: 10px; margin-bottom: 8px; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens { gap: 7px; padding-block: 3px; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__viewport { max-width: 100%; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__signal { min-height: 32px; font-size: 11.5px; }
}
@media (max-width: 359px) {
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__eyebrow { font-size: 10px; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__track { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top .dhvx-feed-compass__topic { transition: none; }
}
@media (forced-colors: active) {
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-compass--top,
  .dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__signal,
  .dhvx-app[data-dhv-experience="feed"] .dhvx-quick-publish { border-color: CanvasText; }
}

/* ===========================================================================
 * R136-H58 — Phone-first Feed: remove stacked chrome on mobile without
 * changing desktop, routes, ad delivery, posting, reading links or bottom nav.
 * Community guest promo is redundant when the Community tab already exists;
 * deep links via :target remain available for direct/referral navigation.
 * ======================================================================== */
@media (max-width: 767px) {
  /* Primary route tabs become ONE flat underline navigation, not a nested pill. */
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] {
    position: relative;
    min-height: 0;
    margin: 0 !important;
    padding: 0 12px !important;
    background: var(--dhvx-opening-sheet) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dhvx-opening-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] .dhvx-context-tabs__primary {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 0 !important;
    min-height: 46px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-primary-count="2"] .dhvx-context-tabs__primary {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] .dhvx-context-tabs__tab {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 3px 8px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--dhvx-opening-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] .dhvx-context-tabs__tab:is(.is-active,[aria-current="page"]) {
    color: var(--dhvx-brand,#c82330) !important;
    border-bottom-color: var(--dhvx-brand,#c82330) !important;
    font-weight: 800;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] .dhvx-context-tabs__tab:focus-visible {
    outline: 2px solid var(--dhvx-brand,#c82330);
    outline-offset: -4px;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] .dhvx-context-tabs__divider {
    display: none !important;
  }

  /* The same Community destination is already in the 3-tab navigation. Hide
   * only the logged-out redundant promo, not the authenticated composer.
   * :target restores the entire guest promo for direct deep-link users. */
  .dhvx-app[data-dhv-experience="feed"] .dhvx-community-composer--tab-linked[data-dhvx-community-auth="guest"]:not(:target) {
    display: none !important;
  }

  /* Reading choices stay available, but become a quiet auxiliary action. */
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence {
    margin: 0 !important;
    padding: 2px 12px 4px !important;
    border: 0 !important;
    background: var(--dhvx-opening-sheet) !important;
    box-shadow: none !important;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence__toggle:not([hidden]) {
    display: flex !important;
    width: max-content !important;
    max-width: 100%;
    min-height: 35px !important;
    margin: 0 0 0 auto !important;
    padding: 4px 2px 4px 9px !important;
    gap: 5px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--dhvx-opening-muted);
    text-align: right;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence__toggle-copy {
    display: flex !important;
    align-items: center;
    gap: 0;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence__toggle strong {
    color: var(--dhvx-opening-muted);
    font-size: 12px !important;
    font-weight: 650;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence__toggle small { display: none !important; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed-intelligence__toggle-arrow {
    width: 18px;
    height: 22px;
    font-size: 15px;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-content-lens__signal {
    border-color: var(--dhvx-opening-line);
    box-shadow: none !important;
  }
  /* Preserve post-card boundaries only; no extra panel around the first post. */
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed { margin-top: 0; }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-feed > .dhvx-post:first-of-type { margin-top: 0; }

  /* Bottom nav is persistent orientation, never a second row of heavy cards. */
  .dhvx-app[data-dhv-experience="feed"] .dhvx-bottom-nav {
    border-top: 1px solid var(--dhvx-opening-line);
    box-shadow: 0 -2px 8px rgba(20,25,35,.035) !important;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-bottom-nav a.is-active {
    background: transparent !important;
    box-shadow: none !important;
  }
}
@media (max-width: 359px) {
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] .dhvx-context-tabs__tab {
    font-size: 12.75px !important;
  }
}
@media (forced-colors: active) and (max-width: 767px) {
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] .dhvx-context-tabs__tab:is(.is-active,[aria-current="page"]) {
    border-bottom-color: Highlight !important;
    color: Highlight !important;
  }
  .dhvx-app[data-dhv-experience="feed"] .dhvx-context-tabs[data-dhvx-context-kind="feed"] {
    border-bottom-color: CanvasText !important;
  }
}
