/* ==========================================================================
   DynaFile — Employee Record Health Check (V1)
   Scoped stylesheet. Every selector is namespaced under .erhc-root or an
   .erhc-* class so nothing leaks into the theme and the theme's own
   resets/typography still apply outside this component.

   BRAND TOKENS
   Derived from the DynaFile ROI Calculator stylesheet. All colors, radii,
   shadows and timings live in the single :root block below — if the live
   calculator CSS differs from the version this was built against, correcting
   a token here updates the whole component.
   ========================================================================== */

.erhc-root {
  /* Core palette */
  --erhc-navy: #232D62;
  --erhc-navy-80: #4A5490;
  --erhc-navy-60: #6D76AC;
  --erhc-navy-40: #A9AECC;
  --erhc-cyan: #09AFE5;
  --erhc-crimson: #A41C36;
  /* Subtle darkened hover shades for the primary CTAs. The CTA text stays
     white in every state, so the hover cue is a background shift only. */
  --erhc-navy-hover: #1A2350;
  --erhc-crimson-hover: #86162C;
  --erhc-gold: #FCB900;

  /* Neutrals */
  --erhc-bg: #f8f9fa;
  --erhc-surface: #ffffff;
  --erhc-border: #e9ecef;
  --erhc-text: #333333;
  --erhc-muted: #666666;

  /* Radii — 10px for controls, 15px for cards (matches ROI calculator) */
  --erhc-radius-sm: 6px;
  --erhc-radius-md: 10px;
  --erhc-radius-lg: 15px;

  /* Elevation */
  --erhc-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --erhc-shadow-navy: 0 4px 20px rgba(35, 45, 98, 0.2);
  --erhc-shadow-lift: 0 4px 15px rgba(9, 175, 229, 0.3);

  /* Type */
  --erhc-font: 'neue-haas-unica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Motion */
  --erhc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --erhc-speed: 0.3s;

  /* Layout */
  --erhc-max: 800px;

  font-family: var(--erhc-font);
  color: var(--erhc-text);
  line-height: 1.6;
  max-width: var(--erhc-max);
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.erhc-root *,
.erhc-root *::before,
.erhc-root *::after {
  box-sizing: border-box;
}

/* Reset only inside the component, and only what we need. */
/* :where() keeps this reset at zero specificity, so the utility classes
   below can set their own margins without needing !important. */
.erhc-root :where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote) {
  margin: 0;
  padding: 0;
}

.erhc-root :where(fieldset) {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.erhc-root :where(ul, ol) {
  list-style: none;
}

/* --------------------------------------------------------------------------
   SHARED PRIMITIVES
   -------------------------------------------------------------------------- */

.erhc-card {
  background: var(--erhc-surface);
  border-radius: var(--erhc-radius-lg);
  box-shadow: var(--erhc-shadow);
  padding: 40px;
}

.erhc-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-cyan);
  margin-bottom: 10px;
}

.erhc-eyebrow--muted {
  color: var(--erhc-muted);
}

.erhc-h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--erhc-navy);
  letter-spacing: -0.01em;
}

.erhc-h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--erhc-navy);
}

.erhc-h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--erhc-navy);
}

.erhc-lede {
  font-size: 1.1rem;
  color: var(--erhc-muted);
  line-height: 1.6;
}

.erhc-body {
  font-size: 1rem;
  color: var(--erhc-text);
  line-height: 1.65;
}

.erhc-small {
  font-size: 0.85rem;
  color: var(--erhc-muted);
}

/* Buttons ---------------------------------------------------------------- */

.erhc-btn {
  display: inline-block;
  padding: 18px 28px;
  border: 2px solid transparent;
  border-radius: var(--erhc-radius-md);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--erhc-speed) var(--erhc-ease),
              color var(--erhc-speed) var(--erhc-ease),
              border-color var(--erhc-speed) var(--erhc-ease),
              transform var(--erhc-speed) var(--erhc-ease),
              box-shadow var(--erhc-speed) var(--erhc-ease);
}

.erhc-btn--primary {
  background: var(--erhc-navy);
  color: #fff;
  border-color: var(--erhc-navy);
}

.erhc-btn--primary:hover,
.erhc-btn--primary:focus-visible {
  background: var(--erhc-cyan);
  border-color: var(--erhc-cyan);
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--erhc-shadow-lift);
}

.erhc-btn--demo {
  background: var(--erhc-crimson);
  color: #fff;
  border-color: var(--erhc-crimson);
}

.erhc-btn--demo:hover,
.erhc-btn--demo:focus-visible {
  background: var(--erhc-gold);
  border-color: var(--erhc-gold);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(252, 185, 0, 0.3);
}

.erhc-btn--ghost {
  background: transparent;
  border-color: var(--erhc-border);
	color: var(--erhc-navy);
  border-width: 1px;
}

.erhc-btn--ghost:hover,
.erhc-btn--ghost:focus-visible {
  background: var(--erhc-bg);
  border-color: var(--erhc-navy-40);
}

.erhc-btn--block {
  display: block;
  width: 100%;
}

.erhc-btn[disabled],
.erhc-btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.erhc-btn[disabled]:hover,
.erhc-btn[aria-disabled='true']:hover {
  background: var(--erhc-navy);
  border-color: var(--erhc-navy);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.erhc-btn--ghost[disabled]:hover {
  background: transparent;
  border-color: var(--erhc-border);
  color: var(--erhc-navy);
}

/* Focus visibility — deliberately high contrast, never removed. */
.erhc-root :focus-visible {
  outline: 3px solid var(--erhc-cyan);
  outline-offset: 3px;
}

/* These receive focus programmatically so screen readers land in the right
   place on screen change. They aren't interactive, so no visible ring. */
.erhc-root .erhc-question__prompt:focus,
.erhc-root .erhc-question__prompt:focus-visible,
.erhc-root .erhc-score__title:focus,
.erhc-root .erhc-score__title:focus-visible {
  outline: none;
}

/* --------------------------------------------------------------------------
   SCREENS
   -------------------------------------------------------------------------- */

.erhc-screen[hidden] {
  display: none;
}

/* Intro ------------------------------------------------------------------- */

.erhc-intro {
  text-align: left;
}

.erhc-intro__title {
  margin-bottom: 18px;
}

.erhc-intro__lede {
  margin-bottom: 28px;
  max-width: 46em;
}

.erhc-intro__cta {
  margin-bottom: 16px;
}

.erhc-intro__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 0.9rem;
  color: var(--erhc-muted);
}

.erhc-intro__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.erhc-intro__meta-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--erhc-navy-40);
  flex: 0 0 auto;
}

/* "No form required" is a real value proposition — given weight, not shouted. */
.erhc-intro__meta-item--flag {
  font-weight: 700;
  color: var(--erhc-navy);
}

.erhc-intro__meta-item--flag::before {
  background: var(--erhc-cyan);
  width: 8px;
  height: 8px;
}

.erhc-intro__categories {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--erhc-border);
}

.erhc-intro__categories-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-muted);
  margin-bottom: 14px;
}

.erhc-intro__category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.erhc-intro__category {
  display: inline-block;
  padding: 8px 14px;
  background: var(--erhc-bg);
  border: 1px solid var(--erhc-border);
  border-radius: var(--erhc-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--erhc-navy);
}

/* Progress ---------------------------------------------------------------- */

.erhc-progress {
  margin-bottom: 26px;
}

.erhc-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.erhc-progress__category {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-cyan);
}

.erhc-progress__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--erhc-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.erhc-progress__track {
  height: 6px;
  border-radius: 3px;
  background: var(--erhc-border);
  overflow: hidden;
}

.erhc-progress__fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--erhc-navy);
  transition: width 0.4s var(--erhc-ease);
}

/* Answer + source cards --------------------------------------------------- */

.erhc-question__prompt {
  display: block;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--erhc-navy);
  margin-bottom: 22px;
}

.erhc-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.erhc-option {
  position: relative;
  display: block;
}

/* The native control stays in the accessibility tree and keeps keyboard
   semantics (arrow keys move between radios); it is visually replaced by the
   card. Never display:none — that would remove it from tab order. */
.erhc-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.erhc-option__label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--erhc-bg);
  border: 2px solid var(--erhc-border);
  border-radius: var(--erhc-radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--erhc-text);
  transition: background var(--erhc-speed) var(--erhc-ease),
              border-color var(--erhc-speed) var(--erhc-ease),
              color var(--erhc-speed) var(--erhc-ease);
}

.erhc-option__label:hover {
  background: #fff;
  border-color: var(--erhc-navy-40);
}

.erhc-option__marker {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--erhc-navy-40);
  border-radius: 50%;
  background: #fff;
  position: relative;
  transition: border-color var(--erhc-speed) var(--erhc-ease),
              background var(--erhc-speed) var(--erhc-ease);
}

.erhc-option__marker::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.18s var(--erhc-ease);
}

.erhc-option__input:checked + .erhc-option__label {
  background: var(--erhc-navy);
  border-color: var(--erhc-navy);
  color: #fff;
}

.erhc-option__input:checked + .erhc-option__label .erhc-option__marker {
  border-color: #fff;
  background: var(--erhc-navy);
}

.erhc-option__input:checked + .erhc-option__label .erhc-option__marker::after {
  transform: scale(1);
}

.erhc-option__input:focus-visible + .erhc-option__label {
  outline: 3px solid var(--erhc-cyan);
  outline-offset: 3px;
}

/* Sources use the same card, square marker to signal multi-select. */
.erhc-sources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.erhc-sources__grid .erhc-option__label {
  align-items: center;
}

.erhc-sources__grid .erhc-option__marker {
  border-radius: var(--erhc-radius-sm);
  margin-top: 0;
}

.erhc-sources__grid .erhc-option__marker::after {
  border-radius: 2px;
  inset: 3px;
}

.erhc-sources__hint {
  margin-top: 4px;
  margin-bottom: 20px;
}

.erhc-sources__error {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--erhc-crimson);
}

.erhc-sources__error[hidden] {
  display: none;
}

/* Legend needs to behave like a block heading; browsers style it oddly by
   default. This keeps the visible prompt inside the fieldset semantics. */
.erhc-question__legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  float: left; /* Safari/Firefox legend width fix */
}

.erhc-question__legend + * {
  clear: both;
}

.erhc-option__text {
  flex: 1 1 auto;
  min-width: 0;
}

.erhc-priorities__list {
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.erhc-priority__content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Nav --------------------------------------------------------------------- */

.erhc-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--erhc-border);
}

.erhc-nav__back {
  flex: 0 0 auto;
  min-width: 120px;
}

.erhc-nav__next {
  flex: 1 1 auto;
}

/* Transition interstitial ------------------------------------------------- */

.erhc-transition {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--erhc-bg);
  border-left: 4px solid var(--erhc-cyan);
  border-radius: 0 var(--erhc-radius-sm) var(--erhc-radius-sm) 0;
  font-size: 0.98rem;
  color: var(--erhc-text);
}

.erhc-transition[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   RESULTS
   -------------------------------------------------------------------------- */

.erhc-results > * + * {
  margin-top: 28px;
}

.erhc-section {
  background: var(--erhc-surface);
  border-radius: var(--erhc-radius-lg);
  box-shadow: var(--erhc-shadow);
  padding: 34px;
}

.erhc-section__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-muted);
  margin-bottom: 18px;
}

/* Score hero -------------------------------------------------------------- */

.erhc-score {
  background: var(--erhc-navy);
  color: #fff;
  border-radius: var(--erhc-radius-lg);
  box-shadow: var(--erhc-shadow-navy);
  padding: 38px 34px;
}

.erhc-score__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-cyan);
  margin-bottom: 24px;
}

.erhc-score__main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.erhc-score__dial {
  flex: 0 0 auto;
  position: relative;
  width: 156px;
  height: 156px;
}

.erhc-score__dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.erhc-score__dial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 12;
}

.erhc-score__dial-value {
  fill: none;
  stroke: var(--erhc-cyan);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--erhc-ease);
}

.erhc-score__readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.erhc-score__number {
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.erhc-score__denominator {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 6px;
}

.erhc-score__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.erhc-score__tier {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fff;
}

.erhc-score__description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.erhc-score__opportunity {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.erhc-score__opportunity strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-cyan);
  margin-bottom: 6px;
}

/* Diagnosis --------------------------------------------------------------- */

.erhc-diagnosis__text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--erhc-text);
}

/* Strongest / opportunity pair -------------------------------------------- */

.erhc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.erhc-pair--single {
  grid-template-columns: 1fr;
}

.erhc-pair__card {
  display: flex;
  flex-direction: column;
}

.erhc-pair__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--erhc-border);
}

.erhc-pair__category {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--erhc-navy);
  line-height: 1.2;
}

.erhc-pair__score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--erhc-navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Category bars ----------------------------------------------------------- */

.erhc-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.erhc-bar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.erhc-bar__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--erhc-navy);
}

.erhc-bar__figures {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.erhc-bar__status {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--erhc-muted);
}

.erhc-bar__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--erhc-navy);
  font-variant-numeric: tabular-nums;
}

.erhc-bar__track {
  height: 12px;
  border-radius: 6px;
  background: var(--erhc-border);
  overflow: hidden;
}

.erhc-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--erhc-navy);
  transition: width 0.9s var(--erhc-ease);
}

/* Monochrome navy ramp: intensity communicates degree without implying
   pass/fail or legal compliance. No red, no green. */
.erhc-bar__fill--t4 { background: var(--erhc-navy); }
.erhc-bar__fill--t3 { background: var(--erhc-navy-80); }
.erhc-bar__fill--t2 { background: var(--erhc-navy-60); }
.erhc-bar__fill--t1 { background: var(--erhc-navy-40); }

/* Environment / convergence ---------------------------------------------- */

.erhc-env__count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.erhc-env__count-number {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--erhc-navy);
  font-variant-numeric: tabular-nums;
}

.erhc-env__count-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-muted);
}

.erhc-env__note {
  margin-bottom: 24px;
  max-width: 46em;
}

.erhc-env__sources {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.erhc-env__source {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  background: var(--erhc-bg);
  border: 2px solid var(--erhc-border);
  border-radius: var(--erhc-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--erhc-navy);
  white-space: nowrap;
}

/* The chips sit on top of the funnel lines. Where a line passes behind a
   chip in a lower row it's occluded by the chip's opaque fill, so the fan
   reads as emerging from underneath the cluster at any wrap point. */
.erhc-env__flow {
  position: relative;
}

.erhc-env__funnel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.erhc-env__converge {
  height: 74px;
}

.erhc-env__funnel-line {
  fill: none;
  stroke: var(--erhc-navy-60);
  stroke-width: 2;
}

.erhc-env__funnel-dot {
  fill: var(--erhc-navy-60);
}

.erhc-env__target {
  text-align: center;
  padding: 22px 24px;
  background: var(--erhc-navy);
  color: #fff;
  border-radius: var(--erhc-radius-md);
  box-shadow: var(--erhc-shadow-navy);
}

.erhc-env__target-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.erhc-env__target-sub {
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Priorities -------------------------------------------------------------- */

.erhc-priorities__intro {
  margin-bottom: 24px;
  max-width: 48em;
}

.erhc-priority {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--erhc-border);
}

.erhc-priority:last-child {
  padding-bottom: 0;
}

.erhc-priority__index {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--erhc-navy);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.erhc-priority__step {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-cyan);
  margin-bottom: 5px;
}

.erhc-priority__category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--erhc-muted);
  margin-bottom: 6px;
}

.erhc-priority__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--erhc-navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Bridge ------------------------------------------------------------------ */

.erhc-bridge {
  background: var(--erhc-navy);
  color: #fff;
  border-radius: var(--erhc-radius-lg);
  box-shadow: var(--erhc-shadow-navy);
  padding: 38px 34px;
  text-align: center;
}

.erhc-bridge__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--erhc-cyan);
  margin-bottom: 22px;
}

.erhc-bridge__systems {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.erhc-bridge__system {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--erhc-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.erhc-bridge__arrow {
  display: block;
  margin: 0 auto 18px;
  width: 26px;
  height: 34px;
}

.erhc-bridge__arrow path {
  stroke: var(--erhc-cyan);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.erhc-bridge__headline {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.erhc-bridge__copy {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40em;
  margin: 0 auto;
}

/* Conversion -------------------------------------------------------------- */

.erhc-convert {
  text-align: center;
}

.erhc-convert__title {
  margin-bottom: 14px;
}

.erhc-convert__copy {
  max-width: 40em;
  margin: 0 auto 26px;
}

.erhc-convert__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Footer ------------------------------------------------------------------ */

.erhc-footer {
  text-align: center;
  padding-top: 8px;
}

.erhc-footer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.erhc-footer__btn {
  padding: 12px 20px;
  font-size: 0.9rem;
  background: transparent;
  border: 2px solid var(--erhc-border);
  border-radius: var(--erhc-radius-md);
  font-family: inherit;
  font-weight: 700;
  color: var(--erhc-navy);
  cursor: pointer;
  transition: background var(--erhc-speed) var(--erhc-ease),
              border-color var(--erhc-speed) var(--erhc-ease);
}

.erhc-footer__btn:hover {
  background: #fff;
  border-color: var(--erhc-navy-40);
		color: var(--erhc-navy);
  border-width: 1px;
}

.erhc-disclaimer {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--erhc-muted);
  max-width: 46em;
  margin: 0 auto;
}

/* Screen-reader only ------------------------------------------------------ */

.erhc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal animation -------------------------------------------------------- */

.erhc-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.erhc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--erhc-ease), transform 0.6s var(--erhc-ease);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .erhc-root {
    padding: 24px 15px;
  }

  .erhc-card,
  .erhc-section {
    padding: 24px 20px;
  }

  .erhc-score,
  .erhc-bridge {
    padding: 28px 20px;
  }

  .erhc-h1 { font-size: 1.7rem; }
  .erhc-h2 { font-size: 1.3rem; }
  .erhc-question__prompt { font-size: 1.15rem; }

  .erhc-sources__grid {
    grid-template-columns: 1fr;
  }

  .erhc-pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Score dial stacks above the tier copy on narrow screens. */
  .erhc-score__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .erhc-score__dial {
    width: 132px;
    height: 132px;
    align-self: center;
  }

  .erhc-score__tier { font-size: 1.35rem; }
  .erhc-bridge__headline { font-size: 1.35rem; }
  .erhc-env__count-number { font-size: 2.5rem; }
  .erhc-env__converge { height: 56px; }

  .erhc-convert__actions .erhc-btn,
  .erhc-nav__next,
  .erhc-nav__back {
    width: 100%;
  }

  .erhc-convert__actions {
    flex-direction: column;
  }

  /* Answer cards stay comfortably tappable. */
  .erhc-option__label {
    padding: 15px 16px;
    min-height: 60px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .erhc-nav {
    flex-wrap: wrap;
  }

  .erhc-nav__back,
  .erhc-nav__next {
    flex: 1 1 100%;
  }

  /* Back sits below Next so the primary action is thumb-adjacent. */
  .erhc-nav__back {
    order: 2;
  }

  .erhc-nav__next {
    order: 1;
  }

  .erhc-env__source {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .erhc-score__number { font-size: 2.6rem; }
  .erhc-priority { gap: 14px; }
  .erhc-priority__index { width: 36px; height: 36px; font-size: 0.95rem; }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .erhc-root *,
  .erhc-root *::before,
  .erhc-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .erhc-reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   THEME INTERACTION-STATE GUARDS  (production fix)

   The component inherits the theme's typography by design, but dynafile.com
   also styles bare `a` and `button` elements. Those rules carry more
   specificity than a single component class, which broke two things live:

     1. Theme `a:visited` / `a:focus` recolored the two CTA anchors after a
        visitor clicked through and came back, leaving dark text on the navy
        and crimson fills.
     2. Theme `button:hover` recolored the Retake and Print labels to match
        their own hover background, so the labels vanished. `color` was not
        in the component's transition list, so it snapped instantly.

   Every selector below is scoped under .erhc-root. No global `a:visited`,
   `a:hover` or `button:hover` rules are introduced. `!important` is applied
   only to color, background-color, border-color and text-decoration on these
   four controls, because the theme may itself use !important and this needs
   to hold on the first deploy.

   Scope note: these rules target the CTA ANCHORS and the two footer buttons
   only. The in-assessment navy buttons (Check My Employee Records, Next) keep
   their approved cyan hover, which was never affected.
   ========================================================================== */

/* --- Primary CTA: navy fill, white type, every state --------------------- */
.erhc-root a.erhc-btn--primary,
.erhc-root a.erhc-btn--primary:link,
.erhc-root a.erhc-btn--primary:visited,
.erhc-root a.erhc-btn--primary:hover,
.erhc-root a.erhc-btn--primary:focus,
.erhc-root a.erhc-btn--primary:focus-visible,
.erhc-root a.erhc-btn--primary:active {
  color: #ffffff !important;
  background-color: var(--erhc-navy) !important;
  border-color: var(--erhc-navy) !important;
  text-decoration: none !important;
  /* No transform, so nothing moves between states. */
  transform: none;
}

.erhc-root a.erhc-btn--primary:hover,
.erhc-root a.erhc-btn--primary:focus-visible,
.erhc-root a.erhc-btn--primary:active {
  background-color: var(--erhc-navy-hover) !important;
  border-color: var(--erhc-navy-hover) !important;
  box-shadow: 0 4px 15px rgba(35, 45, 98, 0.28);
}

/* --- Demo CTA: crimson fill, white type, every state --------------------- */
.erhc-root a.erhc-btn--demo,
.erhc-root a.erhc-btn--demo:link,
.erhc-root a.erhc-btn--demo:visited,
.erhc-root a.erhc-btn--demo:hover,
.erhc-root a.erhc-btn--demo:focus,
.erhc-root a.erhc-btn--demo:focus-visible,
.erhc-root a.erhc-btn--demo:active {
  color: #ffffff !important;
  background-color: var(--erhc-crimson) !important;
  border-color: var(--erhc-crimson) !important;
  text-decoration: none !important;
  transform: none;
}

.erhc-root a.erhc-btn--demo:hover,
.erhc-root a.erhc-btn--demo:focus-visible,
.erhc-root a.erhc-btn--demo:active {
  background-color: var(--erhc-crimson-hover) !important;
  border-color: var(--erhc-crimson-hover) !important;
  box-shadow: 0 4px 15px rgba(164, 28, 54, 0.28);
}

/* --- Utility buttons: light fill / navy type, inverting on hover --------- */
.erhc-root .erhc-footer__btn,
.erhc-root .erhc-footer__btn:link,
.erhc-root .erhc-footer__btn:visited {
  color: var(--erhc-navy) !important;
  background-color: transparent !important;
  border-color: var(--erhc-border) !important;
  text-decoration: none !important;
}

.erhc-root .erhc-footer__btn:hover,
.erhc-root .erhc-footer__btn:focus,
.erhc-root .erhc-footer__btn:focus-visible,
.erhc-root .erhc-footer__btn:active {
  color: #ffffff !important;
  background-color: var(--erhc-navy) !important;
  border-color: var(--erhc-navy) !important;
}

/* --- Back button: same latent defect, pinned to its existing appearance ---
   `.erhc-btn--ghost:hover` set background and border but not color, which is
   the identical omission that broke Retake and Print. The theme's
   `button:hover` colour would win here too. This pins the colour to the navy
   it already uses, so there is no visual change, only protection. */
.erhc-root .erhc-btn--ghost,
.erhc-root .erhc-btn--ghost:hover,
.erhc-root .erhc-btn--ghost:focus,
.erhc-root .erhc-btn--ghost:focus-visible,
.erhc-root .erhc-btn--ghost:active {
  color: var(--erhc-navy) !important;
}

/* Include color so the inversion eases rather than snapping. */
.erhc-root .erhc-footer__btn {
  transition: background-color var(--erhc-speed) var(--erhc-ease),
              border-color var(--erhc-speed) var(--erhc-ease),
              color var(--erhc-speed) var(--erhc-ease);
}

/* --------------------------------------------------------------------------
   PRINT
   The report is not a PDF product, but an HR leader who wants to circulate it
   internally will reach for Cmd-P. This makes that output presentable.
   -------------------------------------------------------------------------- */

@media print {
  .erhc-root {
    max-width: none;
    padding: 0;
    color: #000;
  }

  .erhc-print-hide,
  .erhc-footer__actions,
  .erhc-convert__actions {
    display: none !important;
  }

  .erhc-section,
  .erhc-card {
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 18px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .erhc-score,
  .erhc-bridge {
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .erhc-results > * + * {
    margin-top: 16px;
  }

  .erhc-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .erhc-bar__fill,
  .erhc-score__dial-value {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
	.dynafile-footer,
	#breadcrumbs,
	.hero.gb-block-container,
	.custom-box.in-header,
	.js .nav-primary,
	.menu-toggle,
	#hubspot-messages-iframe-container {
		display: none !important;
	}
}
