/*
 * DHV Experience 13.78.15 — Story Card deck + narrative cue hierarchy.
 * Presentation refinement only. Featured stories communicate priority through
 * hierarchy rather than a portal-style badge; existing relationship roles are
 * rendered as quiet editorial cues; summaries read as compact Feed decks.
 * Media, commerce, actions, reaction, ranking and continuity are untouched.
 */

/* A relationship insight is a narrative cue, not a pill/badge. */
.dhvx-app .dhvx-story-role {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dhvx-text-secondary);
  font-size: 11.75px;
  line-height: 1.35;
  letter-spacing: 0;
}

.dhvx-app .dhvx-story-role__dot,
.dhvx-app .dhvx-story-role.is-open .dhvx-story-role__dot,
.dhvx-app .dhvx-story-role.is-resume .dhvx-story-role__dot,
.dhvx-app .dhvx-story-role.is-case .dhvx-story-role__dot,
.dhvx-app .dhvx-story-role.is-deepen .dhvx-story-role__dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  outline: 0;
  transform: none;
  background: var(--dhvx-role-accent, var(--dhvx-brand));
}

.dhvx-app .dhvx-story-role strong {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--dhvx-role-accent, var(--dhvx-brand)) 82%, var(--dhvx-text));
  font-size: 11.75px;
  font-weight: 720;
  white-space: nowrap;
}

/* Detail stays in the cue aria-label but is not repeated visually. The public
 * card gets one concise editorial cue, not a cue + explanation stack. */
.dhvx-app .dhvx-story-role small { display: none; }

/* The Feed deck supports the headline rather than competing with it. */
.dhvx-app .dhvx-post__summary,
.dhvx-app[data-dhv-experience="feed"] .dhvx-post__summary,
.dhvx-listing-feed .dhvx-post__summary {
  max-width: 58ch;
  margin-top: 9px;
  color: var(--dhvx-text-secondary);
  font-family: var(--dhvx-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 15.6px;
  font-weight: 430;
  line-height: 1.56;
  letter-spacing: -.004em;
  text-wrap: pretty;
}

.dhvx-app .dhvx-post.is-featured .dhvx-post__summary {
  max-width: 60ch;
}

.dhvx-app .dhvx-post.is-summary-expanded .dhvx-post__summary,
.dhvx-app[data-dhv-experience="feed"] .dhvx-post.is-summary-expanded .dhvx-post__summary {
  color: var(--dhvx-text-secondary);
}

/* Expansion remains a quiet reading affordance, not a second CTA. */
.dhvx-app .dhvx-summary-toggle,
.dhvx-app[data-dhv-experience="feed"] .dhvx-summary-toggle {
  min-height: 34px;
  margin: 1px 0 -1px;
  color: var(--dhvx-text-muted);
  font-size: 12.75px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.dhvx-app .dhvx-summary-toggle:hover,
.dhvx-app .dhvx-summary-toggle:focus-visible {
  color: var(--dhvx-text-secondary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--dhvx-brand) 48%, transparent);
  text-underline-offset: 3px;
}

/* Legacy featured label is intentionally no longer rendered. Keep any stray
 * older markup visually quiet during cache/plugin transition. */
.dhvx-app .dhvx-post > .dhvx-post__content > .dhvx-context-label {
  display: none;
}

/* Tablet is explicit: preserve a readable deck without pushing media too far
 * below the first screen. */
@media (min-width: 768px) and (max-width: 1119px) {
  .dhvx-app .dhvx-story-role {
    margin-bottom: 6px;
    font-size: 11.5px;
  }
  .dhvx-app .dhvx-story-role strong { font-size: 11.5px; }
  .dhvx-app .dhvx-post__summary,
  .dhvx-app[data-dhv-experience="feed"] .dhvx-post__summary,
  .dhvx-listing-feed .dhvx-post__summary {
    max-width: 57ch;
    margin-top: 8px;
    font-size: 15.1px;
    line-height: 1.54;
  }
}

/* Mobile is composed independently. Cues stay one compact editorial line when
 * possible; detail gracefully disappears on small screens so headline + deck
 * remain the primary first-viewport content. */
@media (max-width: 767px) {
  .dhvx-app .dhvx-story-role {
    display: flex;
    width: auto;
    max-width: 100%;
    margin-bottom: 5px;
    padding: 0;
    font-size: 11px;
  }
  .dhvx-app .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-open .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-resume .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-case .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-deepen .dhvx-story-role__dot {
    width: 3px;
    height: 3px;
    flex-basis: 3px;
  }
  .dhvx-app .dhvx-story-role strong { font-size: 11px; }
  .dhvx-app .dhvx-post__summary,
  .dhvx-app[data-dhv-experience="feed"] .dhvx-post__summary,
  .dhvx-listing-feed .dhvx-post__summary {
    max-width: none;
    margin-top: 7px;
    font-size: 14.55px;
    line-height: 1.5;
    letter-spacing: -.002em;
  }
  .dhvx-app .dhvx-summary-toggle,
  .dhvx-app[data-dhv-experience="feed"] .dhvx-summary-toggle {
    min-height: 44px;
    margin-top: -1px;
    font-size: 12.25px;
  }
}

@media (max-width: 359px) {
  .dhvx-app .dhvx-post__summary,
  .dhvx-app[data-dhv-experience="feed"] .dhvx-post__summary,
  .dhvx-listing-feed .dhvx-post__summary {
    font-size: 14.2px;
    line-height: 1.48;
  }
}

html[data-theme="dark"] .dhvx-app .dhvx-story-role strong {
  color: color-mix(in srgb, var(--dhvx-role-accent, var(--dhvx-brand)) 62%, var(--dhvx-text));
}

@media (forced-colors: active) {
  .dhvx-app .dhvx-story-role { color: CanvasText; }
  .dhvx-app .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-open .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-resume .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-case .dhvx-story-role__dot,
  .dhvx-app .dhvx-story-role.is-deepen .dhvx-story-role__dot { background: CanvasText; }
  .dhvx-app .dhvx-summary-toggle { color: LinkText; }
}
