/* Restraint pass (loaded last on every page). Two voices: the page speaks in sentence case with normal
   tracking; Audiowide, capitals and middle dots belong only to the instruments (HUD panels, scan,
   value gates, gateway simulation, hero visual).
   1. Headline device: two-tone headings mark a page's claim, so only each page's H1, the closing
      panels and the homepage promise heading keep them; every other heading is one colour.
   2. Labels outside the instruments are sentence case, normal tracking, readable size.
   3. Motion: only the hero entrance and the instruments move; section fade-ins and decorative
      loops are gone.
   4. Numbers only where order matters. */

/* 1. Headline device */
#main#main :is(.section-intro,.phase-copy,.gateway-intro) h2 :is(i,em),#main#main .gws-h2 i{color:inherit}
#main#main .promise-section .section-intro h2 i{color:var(--blue2)}

/* 2. Labels: sentence case, page voice */
.control-evidence .ce-label,.value-evidence .ve-label{font:700 13.5px/1.4 'DM Sans',sans-serif;letter-spacing:0;text-transform:none}
.bv-cmp-head span,.bv-cmp-tag{font:700 13.5px/1.4 'DM Sans',sans-serif;letter-spacing:0;text-transform:none}
.bv-cmp-head span:first-child{color:var(--muted)}
.footer-b .ft-col h2{font:700 13.5px/1.4 'DM Sans',sans-serif;letter-spacing:0;text-transform:none;color:var(--text)}
.page-about :is(.ab-role,.ab-aud,.ab-sectors-label){font:700 14px/1.4 'DM Sans',sans-serif;letter-spacing:0;text-transform:none}
.page-about .ab-num{font-family:'Manrope',sans-serif;font-weight:700}
.capability-step>span{letter-spacing:0;text-transform:none}

/* 3. Motion: no generic fade-ins outside the hero; no decorative loops */
main section:not(.scan-hero):not(.hero-light) .reveal{opacity:1;transform:none;transition:none}
.ab-scan::after{display:none}
.pc-verbs::after{transform:none;transition:none}

/* 4. Numbers only on real sequences */
.control-b .control-feature{grid-template-columns:minmax(0,1fr)} /* control features and value ways carry no numbers */
/* Small blue labels: brand blue on light, brighter blue on dark (4.5:1 in both) */
.control-evidence .ce-label,.bv-cmp-head span:last-child,.bv-cmp-with .bv-cmp-tag{color:#1b4585}
html[data-theme=dark] :is(.control-evidence .ce-label,.bv-cmp-head span:last-child,.bv-cmp-with .bv-cmp-tag){color:#9fc0f5}

/* 5. Contrast: every text at 4.5:1 or better (3:1 for large type), both themes */
/* a. the standard grey, a shade darker so it also clears the soft tint */
:root:not([data-theme=dark]){--muted:#56657b}
/* b. small blue text uses the brand blue on light, a brighter blue on dark */
:is(.back-to-top,.footer-b .back-to-top,.ft-col a[aria-current="page"],.phase-points b,.deck-value,.capability-step span,.join-step span,.deck-chart-legend span:first-child,.page-applies .sector-grid .deck-value){color:#1b4585}
html[data-theme=dark] :is(.back-to-top,.footer-b .back-to-top,.ft-col a[aria-current="page"],.phase-points b,.deck-value,.capability-step span,.join-step span,.deck-chart-legend span:first-child,.page-applies .sector-grid .deck-value){color:#9fc0f5}
/* c. dark sections set their own light text, lines and surfaces, in both themes */
.chapter-dark{--text:#f7faff;--muted:#b9c8de;--line:rgba(255,255,255,.14);--surface:rgba(255,255,255,.04);--surface2:rgba(255,255,255,.06)}
.chapter-dark :is(.deck-value,.capability-step span,.join-step span,.deck-chart-legend span:first-child){color:#9fc0f5}

/* 6. Phone: the "Where it applies" sector cards stack in one column (they were squeezed into two
   148px columns, with the last card's text pushed off screen) */
@media(max-width:700px){
  .page-applies .sector-grid{grid-template-columns:1fr}
  .page-applies .sector-grid .deck-card:nth-child(6){display:flex}
}
