/* NT2 Index Bar — Omega-3 Index scale (0%-12%) with target pill. Static
   (no scroll-driven wipe animation). */

.nt2-bar__section { padding-top: var(--nt2-section-pt); padding-bottom: var(--nt2-section-pb); }

.nt2-bar__intro { margin-top: var(--space-xl); }

/* Richtext blocks render a wrapping <p>; collapse default margins so the
   blockified copy keeps the original tight spacing. */
.nt2-bar__headline > :first-child,
.nt2-bar__intro > :first-child,
.nt2-bar__marker-label > :first-child,
.nt2-bar__caption > :first-child { margin-top: 0; }
.nt2-bar__headline > :last-child,
.nt2-bar__intro > :last-child,
.nt2-bar__marker-label > :last-child,
.nt2-bar__caption > :last-child { margin-bottom: 0; }

.nt2-bar__figure {
  position: relative;
  margin: var(--space-3xl) auto 0;
  max-width: 1080px;
  padding: var(--space-3xl) var(--space-md) 0;
}
@media (min-width: 1024px) {
  .nt2-bar__figure { margin-top: var(--space-4xl); padding: var(--space-3xl) var(--space-2xl) 0; }
}

.nt2-bar__track {
  position: relative;
  height: 48px;
  border-radius: 9999px; /* pill shape, intentional */
  background: var(--clr-bg-card-secondary);
  border: 1px solid var(--nt2-hairline-soft);
}

.nt2-bar__zones {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  clip-path: inset(0 0 0 0 round 9999px);
}
.nt2-bar__zone { height: 100%; }
.nt2-bar__zone--low  { width: 33.33%; background: color-mix(in srgb, var(--clr-tertiary) 28%, transparent); }
.nt2-bar__zone--mid  { width: 33.33%; background: color-mix(in srgb, var(--clr-warning) 22%, transparent); }
.nt2-bar__zone--high { width: 33.34%; background: color-mix(in srgb, var(--clr-primary) 88%, transparent); }

.nt2-bar__marker {
  position: absolute;
  top: -50px;
  bottom: -14px;
  left: 66.66%;
  width: 0;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
}

.nt2-bar__marker-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  background: var(--clr-bg-accent-dark);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md) 7px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  line-height: 1;
}
.nt2-bar__marker-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--clr-bg-accent-dark);
}

.nt2-bar__marker-line {
  position: absolute;
  top: 42px;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--clr-bg-accent-dark);
}

.nt2-bar__ticks {
  position: relative;
  margin-top: var(--space-md);
  height: 24px;
}
.nt2-bar__tick {
  position: absolute;
  top: 0;
  left: var(--pos);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
  font-weight: 500;
  text-align: center;
}
.nt2-bar__tick i {
  display: block;
  width: 1px;
  height: 8px;
  background: var(--nt2-hairline);
  margin: 0 auto 6px;
}
.nt2-bar__tick--emph {
  color: var(--clr-tertiary);
  font-weight: 600;
}
.nt2-bar__tick--emph i {
  background: var(--clr-tertiary);
  height: 14px;
}

.nt2-bar__caption {
  margin: var(--space-xl) auto 0;
  max-width: 520px;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--font-size-base);
  color: var(--clr-text-muted);
  letter-spacing: -0.005em;
}


/* Richtext typography normalization: block-converted text stores its
   content as <h2>/<p> without a class, so the inner tag (notably an
   <h2>) reverts to browser defaults and loses the wrapper typography.
   Force inner richtext tags to inherit the wrapper class type. */
.nt2-bar__headline > *, .nt2-bar__headline h1, .nt2-bar__headline h2, .nt2-bar__headline h3, .nt2-bar__headline h4, .nt2-bar__headline h5, .nt2-bar__headline h6, .nt2-bar__headline p {
  margin: 0 !important; padding: 0 !important; font-size: inherit !important; font-weight: inherit !important; font-family: inherit !important; line-height: inherit; color: inherit;
}
.nt2-bar__intro > *, .nt2-bar__intro h1, .nt2-bar__intro h2, .nt2-bar__intro h3, .nt2-bar__intro h4, .nt2-bar__intro h5, .nt2-bar__intro h6, .nt2-bar__intro p {
  margin: 0 !important; padding: 0 !important; font-size: inherit !important; font-weight: inherit !important; font-family: inherit !important; line-height: inherit; color: inherit;
}
.nt2-bar__marker-label > *, .nt2-bar__marker-label h1, .nt2-bar__marker-label h2, .nt2-bar__marker-label h3, .nt2-bar__marker-label h4, .nt2-bar__marker-label h5, .nt2-bar__marker-label h6, .nt2-bar__marker-label p {
  margin: 0 !important; padding: 0 !important; font-size: inherit !important; font-weight: inherit !important; font-family: inherit !important; line-height: inherit; color: inherit;
}
.nt2-bar__caption > *, .nt2-bar__caption h1, .nt2-bar__caption h2, .nt2-bar__caption h3, .nt2-bar__caption h4, .nt2-bar__caption h5, .nt2-bar__caption h6, .nt2-bar__caption p {
  margin: 0 !important; padding: 0 !important; font-size: inherit !important; font-weight: inherit !important; font-family: inherit !important; line-height: inherit; color: inherit;
}
