/* ==========================================================================
   Accessibility contrast layer (WCAG 2.1 AA), added 2026-11-09.
   Loaded last on every page so it overrides page-level styles.
   Each rule lifts small or muted text to at least 4.5:1 against its
   background while keeping the original hierarchy. To compare against
   the old look, comment out the <link> to this file.
   ========================================================================== */

/* Caramel accent text on light backgrounds: deeper caramel (4.5:1+) */
.legal-toc__num,
.faq-toc__num,
.formats-list__num,
.pd-service__num,
.pd-process__item-num,
.faq-cta__label,
.rfq-contact-item__label,
.rfq-next__label,
dt > span {
  color: #84623e !important;
  opacity: 1 !important;
}

/* Muted secondary text on light backgrounds */
.legal-toc__link span:not(.legal-toc__num),
.faq-toc__link span:not(.faq-toc__num),
.legal-toc__label,
.legal-meta__value,
.faq-toc__label,
.faq-group__intro,
.faq-cta__body,
.formats-stage__caption,
.pd-discipline__tag,
.pd-process__intro,
.rfq-info__body,
.rfq-light-section .rfq-form__consent,
.rfq-form__consent,
.rfq-form__consent a,
.form-hint,
.industry-stat__src,
.industry-stat__src a {
  color: #5f675c !important;
  opacity: 1 !important;
}
.pd-discipline__tag { color: #3a4538 !important; opacity: 1 !important; }
.rfq-form__consent a { text-decoration: underline !important; text-underline-offset: 2px; }
/* About facility stats: only on the light mobile/tablet layout (desktop sits on dark glass) */
@media (max-width: 1024px) {
  .facility-stat__label { color: #5f675c !important; opacity: 1 !important; }
  .facility-stat__num span { color: #56694f !important; opacity: 1 !important; }
}

/* Small mono labels that were faded with inline opacity */
div[style*="opacity: 0.55"][style*="letter-spacing"] { opacity: 0.8 !important; }

/* Inactive tabs and stage list: readable, still lighter than the active item */
.bs-channel-tab:not(.is-active),
.pd-partner-tab:not(.is-active),
.mv-tab[aria-selected="false"] {
  opacity: 1 !important;
  color: #626a5f !important;
}
.pd-process__item:not(.is-active) { opacity: 1 !important; }
.pd-process__item:not(.is-active) .pd-process__item-title { color: #626a5f !important; }

/* Text on the green capabilities slider */
.cap-slider__body { color: #ffffff !important; opacity: 1 !important; }

/* Dark (forest) backgrounds: 404 and link-in-bio pages */
.nf__eyebrow,
.lk__eyebrow { color: #c9a682 !important; }
.lk__meta { color: #a9b8a5 !important; }
.nf__legal,
.nf__legal a,
.lk__legal,
.lk__legal a { color: #b0b3a9 !important; opacity: 1 !important; }
.nf__btn--primary,
.lk__btn--primary,
#hs_show_banner_button { color: #1c241b !important; }

/* Keyboard focus for the horizontally scrolling support cards */
.bs-support__track:focus-visible { outline: 2px solid #84623e; outline-offset: 4px; }

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  padding: 10px 16px;
  background: #2f3b2e;
  color: #f9f7f3;
  font-family: var(--font-body, sans-serif);
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Visible keyboard focus everywhere (uses the element's own text color) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.format-pin__dot:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 3px;
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.footer__newsletter input[type="email"]:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px;
}

/* Pause / play control for background videos */
.motion-toggle {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 20;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(249, 247, 243, 0.45);
  background: rgba(26, 36, 27, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f9f7f3;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.motion-toggle:hover,
.motion-toggle:focus-visible { opacity: 1; background: rgba(26, 36, 27, 0.7); }
html.pl-motion-paused .hero__dot-fill { animation-play-state: paused !important; }
