/* QA palette, clearer roles: navy anchors, white carries the reading,
   warm tints welcome, and sage remains an occasional supporting surface. */
:root {
  --sage: #ccded2;
  --light-sage: #e5eee7;
  --burnt-orange: #a74700;
  --white: #fff;
}

/* Editorial openings have their own confident identity. Long-form copy
   stays on white; only the introductory hero is reversed out. */
@media screen {
  .editorial-page .page-hero {
    background: var(--ink);
    color: var(--white);
    border-bottom: 4px solid var(--orange);
  }
  .editorial-page .page-hero h1 { color: var(--white); }
  .editorial-page .page-hero .page-lead { color: var(--white); }
  .editorial-page .page-hero .eyebrow { color: var(--orange); }
  body.editorial-page main::before {
    background: linear-gradient(to bottom, #0d1b2a 0%, #0d1b2a 64%, #0d1b2a00);
  }
  body.editorial-page .site-header:not(.is-scrolled) { color: var(--white); }
  body.editorial-page .site-header:not(.is-scrolled) > .region-menu .locale-button:is(:hover,:focus-visible,[aria-expanded=true]) { background: #ffffff26; }
  @media (min-width: 1001px) {
    body.editorial-page .site-header:not(.is-scrolled) .nav-dropdown > button:is(:hover,:focus-visible,.is-current,[aria-expanded=true]),
    body.editorial-page .site-header:not(.is-scrolled) .nav-tools :is(.search-toggle,.my-q,.locale-button):hover { background: #ffffff26; }
  }
}

.editorial-resource .article-toc {
  background: var(--light-sage);
  border-top-color: var(--mineral);
}
.editorial-resource .article-toc .eyebrow { color: var(--mineral); }
.editorial-resource .article-toc a { border-bottom-color: var(--line); }
.editorial-resource .article-toc a:is(:hover,:focus-visible,[aria-current=location]) {
  background: var(--sage);
  color: var(--ink);
}
.editorial-resource .article-toc button {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.article-illustration {
  background: var(--pale-peach);
  border: 1px solid var(--apricot);
  border-bottom: 4px solid var(--orange);
}
.article-illustration figcaption { color: var(--copy); }
.editorial-resource .article-body > section:not(.working-checklist) { border-top-color: var(--line); }
.editorial-resource .article-date,
.editorial-resource .byline { color: var(--copy); }
.working-checklist,
.editorial-resource .working-checklist {
  background: var(--pale-peach);
  border: 1px solid var(--apricot);
  border-left: 4px solid var(--orange);
}
.working-checklist input { accent-color: var(--ink); }
.working-checklist :is(.small-note,.source-note) { color: var(--copy); }
.editorial-directory .library-group > h2 { border-top-color: var(--ink); }
.editorial-card .card-link { color: var(--ink); }
.editorial-card > img[src*="/graphics/"] { background: var(--pale-peach); }
.editorial-card:nth-child(3n+2) > img[src*="/graphics/"] { background: var(--light-sage); }
.editorial-card:nth-child(3n) > img[src*="/graphics/"] { background: var(--apricot); }
.editorial-card:is(:hover,:focus-visible) { border-color: var(--orange); }
.section-nav a:is(:hover,:focus-visible,[aria-current=location]) {
  background: var(--apricot);
  color: var(--ink);
}

/* Break up long, repeated sage sections without removing green from QA. */
.delivery-section,
.expertise-section,
.why-qa-section#approach { background: var(--warm); }
.delivery-stage,
.expertise-area,
.why-qa-scene,
.why-qa-models article { background: var(--white); }
.delivery-stage,
.expertise-area { border-top: 3px solid var(--orange); }
.delivery-stage figure,
.expertise-area figure,
.why-qa-opening > img,
.why-qa-accountability > img,
.why-qa-scene-art { background: var(--pale-peach); }
.delivery-stage:nth-child(2) figure,
.expertise-area:nth-child(3) figure,
.why-qa-scene:nth-child(2) .why-qa-scene-art { background: var(--apricot); }
.delivery-stage:nth-child(3) figure,
.expertise-area:nth-child(2) figure { background: var(--light-sage); }
.delivery-sequence { color: var(--ink); }
.delivery-stage-outputs strong { color: var(--copy); }
.delivery-stage-outputs li,
.expertise-focus li { background: var(--light-sage); color: var(--ink); }
.why-qa-section#engagement { background: var(--ink); }
.why-qa-section#engagement > .shell > h2 { color: var(--white); }
.why-qa-section#engagement > .shell > .eyebrow { color: var(--orange); }
.why-qa-section#engagement > .shell > p:not(.eyebrow) { color: var(--white); }

.graphic-panel { background: var(--pale-peach); border-bottom: 4px solid var(--orange); }
.mineral-section .graphic-panel { background: var(--white); }
.mineral-section#integration { background: var(--warm); }
.ecosystem-grid article:nth-child(2),
.ecosystem-grid article:nth-child(3) { background: var(--pale-peach); }
.portfolio-nav a,
.topic-chips a { background: var(--white); border: 1px solid var(--line); }
.portfolio-nav a:is(:hover,:focus-visible),
.topic-chips a:is(:hover,:focus-visible) { background: var(--apricot); }

/* Keep the warm welcome, with small green wayfinding surfaces and one navy
   anchor in the capability menu rather than another orange-tinted band. */
.learning-tree { background: var(--white); border-top: 3px solid var(--orange); }
.learning-next a { background: var(--pale-peach); border-left: 3px solid var(--orange); }
.learning-next small { color: var(--copy); }
.mega-intro { background: var(--pale-peach); }
.mega-panel .mega-links a:is(:hover,:focus-visible,[aria-current=page]) {
  background: var(--light-sage);
  color: var(--ink);
}
.mega-panel .warehouse-intelligence-feature {
  background: var(--ink);
  color: var(--white);
  border-top-color: var(--ink);
}
.mega-panel .warehouse-intelligence-feature:is(:hover,:focus-visible,[aria-current=page]) {
  background: var(--mineral);
  color: var(--white);
}
.warehouse-intelligence-feature .warehouse-intelligence-heading small { color: var(--light-sage); }
.warehouse-intelligence-feature :is(.warehouse-intelligence-copy,.warehouse-intelligence-action) { color: var(--white); }
.warehouse-intelligence-feature .warehouse-intelligence-action .button-arrow { filter: brightness(0) invert(1); }
.reason-card.is-mist { background: var(--light-sage); }
.reason-card.is-amber { background: var(--apricot); }
.testimonial:nth-child(2) { background: var(--pale-peach); }

@media print {
  .editorial-page .page-hero { background: white; color: var(--ink); border: 0; }
  .editorial-page .page-hero :is(h1,.page-lead,.eyebrow) { color: var(--ink); }
  .article-illustration,.working-checklist,.editorial-resource .working-checklist { background: white; }
  .why-qa-section#engagement { background: white; }
  .why-qa-section#engagement > .shell > :is(h2,p) { color: var(--ink); }
}
