/* DHV Experience 13.52.0 — Editorial Story Cluster Transitions.
 * Sparse, explainable guidance between posts; never a second ranking surface. */

.dhvx-story-bridge {
  --dhvx-story-accent: #68706d;
  --dhvx-story-soft: color-mix(in srgb, var(--dhvx-story-accent) 7%, var(--dhvx-surface));
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--dhvx-border);
  background: linear-gradient(90deg, var(--dhvx-story-soft), color-mix(in srgb, var(--dhvx-surface) 97%, transparent) 68%);
  color: var(--dhvx-text-secondary);
}
.dhvx-story-bridge.tone-teal    { --dhvx-story-accent:#267569; }
.dhvx-story-bridge.tone-orange  { --dhvx-story-accent:#a95026; }
.dhvx-story-bridge.tone-violet  { --dhvx-story-accent:#7658ad; }
.dhvx-story-bridge.tone-clay    { --dhvx-story-accent:#9b6035; }
.dhvx-story-bridge.tone-blue    { --dhvx-story-accent:#35658f; }
.dhvx-story-bridge.tone-rose    { --dhvx-story-accent:#9a5265; }
.dhvx-story-bridge.tone-slate   { --dhvx-story-accent:#53677d; }
.dhvx-story-bridge.tone-red     { --dhvx-story-accent:#b64646; }
.dhvx-story-bridge.tone-neutral { --dhvx-story-accent:#68706d; }
.dhvx-story-bridge__marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dhvx-story-accent) 22%, var(--dhvx-border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--dhvx-story-accent) 9%, var(--dhvx-surface));
  color: var(--dhvx-story-accent);
  font-size: 15px;
  line-height: 1;
  font-weight: 780;
}
.dhvx-story-bridge__copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 7px;
  row-gap: 1px;
}
.dhvx-story-bridge__eyebrow {
  color: var(--dhvx-story-accent);
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dhvx-story-bridge__copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--dhvx-text);
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: -.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dhvx-story-bridge__copy small {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--dhvx-text-muted);
  font-size: 10.75px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dhvx-story-bridge__link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--dhvx-story-accent) 18%, var(--dhvx-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--dhvx-story-accent) 5%, var(--dhvx-surface));
  color: var(--dhvx-story-accent);
  font-size: 10.75px;
  line-height: 1;
  font-weight: 760;
  white-space: nowrap;
}
.dhvx-story-bridge__link:hover,
.dhvx-story-bridge__link:focus-visible {
  border-color: color-mix(in srgb, var(--dhvx-story-accent) 42%, var(--dhvx-border));
  background: color-mix(in srgb, var(--dhvx-story-accent) 11%, var(--dhvx-surface));
}
.dhvx-story-bridge__link:focus-visible { outline: 2px solid color-mix(in srgb, var(--dhvx-story-accent) 45%, transparent); outline-offset: 2px; }

@media (max-width: 767px) {
  .dhvx-story-bridge {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    min-height: 52px;
    padding: 7px 16px;
  }
  .dhvx-story-bridge__marker { width: 26px; height: 26px; font-size: 14px; }
  .dhvx-story-bridge__copy { grid-template-columns: 1fr; gap: 1px; }
  .dhvx-story-bridge__eyebrow { font-size: 8.75px; }
  .dhvx-story-bridge__copy strong { font-size: 11.75px; }
  .dhvx-story-bridge__copy small { font-size: 10px; }
  .dhvx-story-bridge__link { grid-column: 2; justify-self: start; min-height: 0; margin-top: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 10px; }
  .dhvx-story-bridge__link::after { content: " →"; }
  .dhvx-story-bridge__link:hover,
  .dhvx-story-bridge__link:focus-visible { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 2px; }
}

html[data-theme="dark"] .dhvx-story-bridge { --dhvx-story-soft: color-mix(in srgb, var(--dhvx-story-accent) 13%, var(--dhvx-surface)); }
html[data-theme="dark"] .dhvx-story-bridge.tone-teal    { --dhvx-story-accent:#5cc3b4; }
html[data-theme="dark"] .dhvx-story-bridge.tone-orange  { --dhvx-story-accent:#e88b58; }
html[data-theme="dark"] .dhvx-story-bridge.tone-violet  { --dhvx-story-accent:#b59ae3; }
html[data-theme="dark"] .dhvx-story-bridge.tone-clay    { --dhvx-story-accent:#d59a6c; }
html[data-theme="dark"] .dhvx-story-bridge.tone-blue    { --dhvx-story-accent:#81b3dd; }
html[data-theme="dark"] .dhvx-story-bridge.tone-rose    { --dhvx-story-accent:#d990a3; }
html[data-theme="dark"] .dhvx-story-bridge.tone-slate   { --dhvx-story-accent:#a2b2c7; }
html[data-theme="dark"] .dhvx-story-bridge.tone-red     { --dhvx-story-accent:#e98585; }
html[data-theme="dark"] .dhvx-story-bridge.tone-neutral { --dhvx-story-accent:#b4bbb8; }

@media (prefers-reduced-motion: reduce) {
  .dhvx-story-bridge__link { transition: none; }
}

@media (forced-colors: active) {
  .dhvx-story-bridge { background: Canvas; border-color: CanvasText; color: CanvasText; }
  .dhvx-story-bridge__marker,
  .dhvx-story-bridge__link { forced-color-adjust: auto; border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
  .dhvx-story-bridge__eyebrow,
  .dhvx-story-bridge__copy strong,
  .dhvx-story-bridge__copy small { color: CanvasText; }
}
