/* =========================================================
   PROMPT 4D, D1 - plain heading/text rows (replaces the glass card +
   overlapping chip pattern directly above the closing CTA on 9
   pages - see dv_text_row_section() in inc/template-tags.php).
   Site-wide, loaded unconditionally.
   ========================================================= */
.dv-text-rows {
  display: flex;
  flex-direction: column;
}
/* Prompt 4I, I4: centered heading (the shared .dv-section-title, see
   dv_text_row_section()) above a centered body block - was a 35/65
   two-column grid pairing a small left-column label with the text. */
.dv-text-row {
  padding-block: 1.25rem;
  text-align: center;
}
@media (min-width: 900px) {
  .dv-text-row { padding-block: 1.5rem; }
}
.dv-text-row--divided {
  border-top: 1px solid var(--border);
  margin-top: .25rem;
}
.dv-text-row--on-dark.dv-text-row--divided {
  border-top-color: rgba(255, 255, 255, .18);
}

.dv-text-row-body {
  margin-inline: auto;
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.5;
  max-width: 60ch;
  color: rgba(16, 38, 62, .85);
}
.dv-text-row-body p + p { margin-top: 1rem; }
.dv-text-row--on-dark .dv-text-row-body {
  color: rgba(255, 255, 255, .92);
}

/* Rise-and-fade on scroll in, once, staggered (heading then body) -
   see dv-4d.js. Final-state-first: without JS/motion, both are
   already in their settled position (this rule only applies once JS
   confirms it can remove it again). */
html.js .dv-motion [data-dv-text-row-item] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--m-ease-out), transform .5s var(--m-ease-out);
  transition-delay: calc(var(--dv-row-item-i, 0) * 100ms);
}
html.js .dv-motion [data-dv-text-row].is-revealed [data-dv-text-row-item] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-dv-text-row-item] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   PROMPT 4E, E13 - the centered eyebrow chip above every shared
   section heading (.dv-section-title, plus the Why Different heading
   which uses this same class directly - see dv_differentiators_stack_cards()).
   Site-wide, loaded unconditionally.
   ========================================================= */
.dv-eyebrow-chip {
  display: block;
  width: fit-content;
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
}
/* Light sections: navy text, white chip, thin teal border. */
.dv-eyebrow-chip--on-light {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--teal);
  box-shadow: 0 6px 18px rgba(16, 38, 62, .12);
}
/* Prompt 4I, I2: dark (navy/teal) sections now get the same solid
   white pill as light sections, just without the teal outline - one
   chip style for the whole site, picked only by background tone. */
.dv-eyebrow-chip--on-dark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}

/* Rise-and-fade just before its heading, reversible - see dv-4d.js.
   Final-state-first: without JS/motion this is already visible. */
html.js .dv-motion [data-dv-eyebrow-chip] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--m-ease-out), transform .5s var(--m-ease-out);
}
html.js .dv-motion [data-dv-eyebrow-chip].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-dv-eyebrow-chip] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Prompt 4G, G7: accessible navy/teal-only CSS bar chart for
   {{CHART:...}} markers in Insights articles. Site-wide, loaded
   unconditionally (articles can render on any page via the_content()).
   ========================================================= */
.dv-chart {
  margin: 1.75rem 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line, #edf3f6);
  border-radius: 0.75rem;
  background: #fff;
}
.dv-chart-title {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #10263E;
}
.dv-chart-group + .dv-chart-group { margin-top: 1.25rem; }
.dv-chart-group-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #167B8C;
}
.dv-chart-bars { display: flex; flex-direction: column; gap: 0.625rem; }
.dv-chart-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 32%) 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.dv-chart-bar-label { font-size: 0.8125rem; color: #10263E; }
.dv-chart-bar-track {
  position: relative;
  display: block;
  height: 1.5rem;
  background: #EDF3F6;
  border-radius: 0.25rem;
  overflow: hidden;
}
.dv-chart-bar-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #167B8C;
  border-radius: 0.25rem;
  transition: height 0.3s ease;
}
.dv-chart-bar-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #10263E;
  white-space: nowrap;
}
/* Vertical/column orientation (used when there are few bars, e.g. 2). */
.dv-chart:not(.dv-chart--h) .dv-chart-bars {
  flex-direction: row;
  align-items: flex-end;
  gap: 1.5rem;
  height: 10rem;
}
.dv-chart:not(.dv-chart--h) .dv-chart-bar-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  height: 100%;
}
.dv-chart:not(.dv-chart--h) .dv-chart-bar-track {
  width: 100%;
  max-width: 4.5rem;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.dv-chart:not(.dv-chart--h) .dv-chart-bar-fill {
  position: static;
  width: 100%;
  height: 100%;
}
.dv-chart-source {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: #10263E;
  opacity: 0.7;
}
.dv-chart-source a { color: #167B8C; text-decoration: underline; }
