/* Design review, pass 2 (20 November 2026): fixes that apply across the site. Loaded last on every page: by
   src/layouts/MergeBase.astro, by the Python pages (scripts/v2/build_v2.py, head) and by public/quantum-ed.html.
   Review: vault output/website/2026-11-20_design-review.md, findings 3 to 8 and 16. */

/* ---------- muted text: #7C8E9A gave 3.1 to 3.4:1 on the light grounds; #63717B gives 4.94:1 on paper and
   4.59:1 on tile gray (WCAG 2.2 AA, 4.5:1) ---------- */
:root { --muted:#63717B; }
.v2 .v2-light, .v2 .v2-gray, .v2 .v2-ice, .v2-light, .v2-gray, .v2-ice { --t-m:#63717B; }
html body ::placeholder { color:#63717B; opacity:1; }

/* ---------- one button pair: primary = navy-ink on light, white on navy; secondary = outline. Radius 7 px. ----------
   The site had eight filled styles (ice, ink, white, sea, navy, a sea gradient, a dark pill, a turquoise pill). */
html body a.btn.solid.hl-btn { background:#ffffff !important; color:#021825 !important; border-color:#ffffff !important; }
html body :is(.nd-body, .nd-source, .art, .rp-actions, .dl-box, .ws-art-head) :is(a, button).btn.solid {
  background:#0E2433 !important; color:#ffffff !important; border:1px solid #0E2433 !important; border-radius:7px !important; background-image:none !important; }
html body :is(.nd-body, .nd-source, .art, .rp-actions, .dl-box) :is(a, button).btn.solid:hover { background:transparent !important; color:#0E2433 !important; }
html body .rp-fin :is(a, button).btn.solid { background:#ffffff !important; color:#021825 !important; border-color:#ffffff !important; }
html body button.cf-submit, html body .pill.cf-submit { background:#0E2433 !important; background-image:none !important; color:#ffffff !important;
  border:1px solid #0E2433 !important; border-radius:7px !important; box-shadow:none !important; }
html body button.cf-submit:hover { background:transparent !important; color:#0E2433 !important; }
html body .pp-page .v2-btn, html body .pp-page .v2-btn-ghost { border-radius:7px !important; }
html body .btn.btn--solid { background:#0E2433 !important; border-color:#0E2433 !important; color:#ffffff !important; border-radius:7px !important; }
html body .btn.btn--ghost, html body .btn.btn--outline { border-radius:7px !important; }
/* the main action of the phone menu: white on the navy overlay, not a turquoise pill */
html body .ws-mnav-cta { background:#ffffff !important; color:#021825 !important; border-radius:7px !important; }

/* ---------- focus: every form field shows where the visitor types (WCAG 2.4.7) ---------- */
html body :is(input, select, textarea):focus-visible { outline:2px solid #216393 !important; outline-offset:2px !important; }
html body .cf-field :is(input, select, textarea):focus { border-color:#216393 !important; background:#ffffff !important; }

/* ---------- tap areas: 44 px on a phone, with no change to the look (WCAG 2.5.8 asks 24 px) ---------- */
@media (max-width:760px) {
  html body footer .foot-min :is(.fm-soc, .fm-meta) a::after { inset:-13px !important; }
  html body #sovereign .c-track button { position:relative; }
  html body #sovereign .c-track button::after { content:""; position:absolute; left:0; right:0; top:-20px; bottom:-20px; }
}

/* ---------- the cookie settings control sits in the footer, beside the legal notice (consent.js moves it there),
   in place of a button that floated over the content of every page ---------- */
html body #ws-consent-settings.ws-in-footer { position:static !important; inset:auto !important; transform:none !important; display:inline;
  margin:0 0 0 14px; padding:0; border:0; border-radius:0; background:none !important; box-shadow:none !important;
  font:inherit; color:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
html body #ws-consent-settings.ws-in-footer[hidden] { display:none !important; }

/* ---------- the Technology page: no light strip between the navy hero and the navy product tabs ---------- */
html body .tx-tabs { background:#021825; }
@media (max-width:760px) { html body #ws-consent-settings.ws-in-footer { margin-left:0; display:inline-block; margin-top:6px; } }

/* ---------- one shape rule (20 November 2026, Gianmarco Mazzocchi: "rounded shapes somewhere and square shapes other
   times"). Three radii only:
     7 px   controls: buttons, fields, selects, tags
     12 px  every surface that floats on a background: cards, inset images, video and screen frames, panels, the menu
     round  avatars, map pins, play buttons
   Square stays square where it is meant: bands and photos that run to the edge of the window, panels that tile edge to
   edge (the mission strips, the product panels), printed covers (books, reports), and rows divided by rules.
   Measured before: 0, 10, 12, 14, 16, 18, 20, 22 and 24 px on floating surfaces, and some cards square. ---------- */
html body .nav-inner { border-radius:12px !important; }
html body :is(.cf-in, .cf-field input, .cf-field select, .cf-field textarea, .cta-form input, .cta-form textarea, .cta-form select) { border-radius:7px !important; }
html body select { border-radius:7px !important; }
html body :is(.hn-cover, .news-cover, .pp-win-f, .tx-win-f, .dwin, .pp-other, .team-card, .af-frame, .pp-mx-fig, .sx-side, .panel, .cta-form,
  .ccard, .office, .ws-lead, .ws-office, .tx-cards li, .tx-card) { border-radius:12px !important; }
html body :is(.rp-cat, .rp-stats, .rp-fin, .video-embed.vfacade) { border-radius:12px !important; overflow:hidden; }
html body .rp-cat-icon { border-radius:7px !important; }
html body :is(#ws-consent-banner, #ws-consent-dialog) { border-radius:12px !important; }
html body #ws-consent-banner button { border-radius:7px !important; }
html body :is(.sx-img, .sx-img img, .pp-gr-fig, .pp-du-fig, .rc-frame, .rc-poster, .rb-cmp-frame, .rb-cmp-img, .cs-look, .cs-photos img) { border-radius:12px !important; }

/* 21 November 2026, design review pass 4 (G4): a skip link before the menu. Hidden until a keyboard user tabs to it. */
.ws-skip { position: fixed; left: 16px; top: -64px; z-index: 10000; padding: 10px 16px; border-radius: 7px;
  background: #0E2433; color: #fff; font: 600 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; }
.ws-skip:focus, .ws-skip:focus-visible { top: 12px; outline: 2px solid #24B6D1; outline-offset: 2px; }

/* 21 November 2026, design review pass 4 (C5): on a small phone the page column is 20 px from the edge
   (.wrap at max-width 430 px), so the news rails that pull out by --hb-left pull out 20 px, not 24 px. */
@media (max-width: 430px) { html:root { --hb-left: 20px; } }
