/* Shared quality layer — loaded after page-specific CSS.
   Keeps the test build accessible, honest and visually consistent. */
:root {
  --ink-mute: #5d6b78;
  --gold-deep: #74571d;
  --focus-ring: #f0bd55;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-padding-top: 92px;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--cream, #f4eede);
  color: var(--navy-950, #07111e);
  font: 700 14px/1.2 var(--font-sans, sans-serif);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

html body :is(a, button, input, select, textarea, summary):focus-visible {
  /* Two-tone ring: white remains visible on navy, navy remains visible on white. */
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px var(--navy-900, #0b1b2e) !important;
}

:where(.btn-primary, .submit-btn):is(:hover, :focus-visible) {
  background: var(--gold-bright, #e0c079) !important;
  color: var(--navy-900, #0b1b2e) !important;
}

.pmore > summary:hover {
  color: var(--gold-deep, #74571d) !important;
}

html:not(.nav-ready) .faq-a {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

html:not(.nav-ready) .faq-q {
  cursor: default;
}

.nav__burger {
  color: var(--cream, #f4eede);
}

.nav__burger[aria-expanded="true"] span {
  background: transparent;
}

.nav__burger[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.nav__burger[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

.nav__links > li > .mi-btn {
  display: none;
}

.test-mode-note,
.media-placeholder {
  border: 1px solid rgba(116, 87, 29, .24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(201, 162, 74, .13), transparent 58%),
    #f8f6ef;
  color: #3f4c59;
}

.test-mode-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.test-mode-note strong {
  color: #604817;
}

.media-placeholder {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  text-align: center;
}

.media-placeholder::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(106, 176, 213, .2), transparent 31%),
    repeating-linear-gradient(125deg, transparent 0 24px, rgba(10, 31, 53, .035) 25px 26px);
  content: "";
}

.media-placeholder__inner {
  position: relative;
  max-width: 34ch;
}

.media-placeholder__label {
  display: block;
  margin-bottom: 8px;
  color: #74571d;
  font: 700 11px/1.2 var(--font-sans, sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.media-placeholder__copy {
  margin: 0;
  color: #475664;
  font-size: 15px;
  line-height: 1.65;
}

.fcard .ph.media-placeholder .media-placeholder__label {
  color: var(--gold-bright, #e0c079);
}

.test-content[hidden] {
  display: none !important;
}

.foot .powered .pw,
.mi-foot .powered .pw {
  color: rgba(255, 255, 255, .72) !important;
  font-size: 11px !important;
}

.foot .powered .hub,
.mi-foot .powered .hub {
  color: rgba(255, 255, 255, .78) !important;
}

.foot .copy,
.mi-foot .copy {
  color: rgba(255, 255, 255, .7) !important;
  line-height: 1.5 !important;
}

.mi-foot .foot-heading {
  color: rgba(255, 255, 255, .74) !important;
  font-size: 12px !important;
}

.fg :is(input, select, textarea) {
  border-color: #6f7d89;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 162, 74, .35);
  border-radius: 10px;
  background: rgba(201, 162, 74, .1);
  color: #334250;
  font-size: 14px;
  line-height: 1.55;
}

.form-status.is-visible {
  display: block;
}

.field-error {
  display: block;
  min-height: 1.3em;
  margin-top: 6px;
  color: #9b2c2c;
  font-size: 13px;
  line-height: 1.35;
}

:where(input, select, textarea)[aria-invalid="true"] {
  border-color: #b43333 !important;
  box-shadow: 0 0 0 3px rgba(180, 51, 51, .12);
}

/* Gold is an accent; on light surfaces this darker tone preserves contrast. */
main .sec-shift .arrow,
main .sys-num,
main .sys-note .ic {
  color: #74571d;
}

main .tcard .stars,
main .tcard .stars svg,
main .ip-stars svg {
  color: #74571d;
  fill: #74571d;
  stroke: #74571d;
}

.theme-light :where(.eyebrow, .hl, .btn-ghost),
.sec-light :where(.eyebrow, .hl, .btn-ghost),
.section-light :where(.eyebrow, .hl, .btn-ghost) {
  color: #74571d;
}

.theme-light :where(.muted, .sub, .card-sub),
.sec-light :where(.muted, .sub, .card-sub),
.section-light :where(.muted, .sub, .card-sub) {
  color: #5d6b78;
}

@media (max-width: 860px) {
  html:not(.nav-ready) .nav__burger {
    display: none !important;
  }

  html:not(.nav-ready) .nav__links {
    position: static !important;
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    flex-flow: row wrap !important;
    padding: 8px 0 14px !important;
    clip-path: none !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html.nav-ready .nav__burger {
    position: relative;
    z-index: 92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  html.nav-ready .nav__burger svg {
    width: 24px;
    height: 24px;
  }

  html.nav-ready .nav__links {
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(84vw, 340px);
    max-width: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 96px 28px 36px;
    overflow-y: auto;
    background: var(--navy-950, #07111e);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .28);
    clip-path: inset(0 0 0 100%);
    transform: none;
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 260ms ease, visibility 0s linear 260ms;
  }

  html.nav-ready .nav__links.is-open {
    clip-path: inset(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  html.nav-ready .nav__links > li {
    width: 100%;
  }

  html.nav-ready .nav__links .nav__link {
    width: 100%;
    min-height: 48px;
  }

  html.nav-ready .nav__links > li > .mi-btn {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
  }

  html.nav-ready .nav__right > .mi-btn {
    display: none;
  }

  .nav__word {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  :where(
    .pcol p,
    .fcard .intro,
    .fcard ul li,
    .sysc p,
    .pcard p,
    .ocard p,
    .info-card p,
    .iline span,
    .faq-a
  ) {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  :where(.btn, .btn-ghost, .sec-cta, .pmore > summary, .faq-q) {
    min-height: 44px;
  }

  .nav__brand,
  .foot .links a,
  .mi-foot .col a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .foot .links {
    width: 100%;
    flex-wrap: wrap !important;
    gap: 0 16px !important;
  }

  :where(input, select, textarea) {
    font-size: 16px;
  }

  .media-placeholder {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .test-mode-note {
    flex-direction: column;
    gap: 5px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero .wrap > * {
    min-width: 0;
  }

  .fgrid {
    grid-template-columns: 1fr !important;
  }

  .pcard {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .pcard > .main {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-marquee] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    overflow: visible !important;
  }

  [data-marquee] > *,
  [data-marquee] .dt-marquee__track {
    transform: none !important;
  }

  [data-marquee] .dt-marquee__track {
    display: contents !important;
  }

  [data-marquee-clone] {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  [data-marquee] {
    grid-template-columns: 1fr;
  }
}
