/* Primitiva — device-signal accessibility blocks. Brief 6656
   follow-on (design ledger item 47), staged 2026-11-21. NOTHING
   DEPLOYS. Design: DESIGN-STANDARD DS-10, DS-41, DS-42; dialect
   DS-36 (Primitiva: field #0C2B30, card #1B454C, accent #F26430,
   micro-accent #D7E237), form language DS-35 untouched. The
   more-contrast remap below is this product's OWN high-contrast
   token set (the html.a11y-high-contrast remap already shipped for
   the footer Accessibility panel), triggered by the device signal
   instead of only by the toggle. No new palette, no new identity. */

/* prefers-contrast: the device asks for more contrast */
@media (prefers-contrast: more){
  :root{--text:#FFFFFF;--muted:#D7E6E8;--card:#1E4A52;--surface:#17404A;--surface-2:#1E4A52}
  .card,.gear-card,.review-stat{border:1px solid rgba(255,255,255,.5)}
  .pmt-foot{background:#081E23;color:#FFFFFF}
  .pmt-foot-nav a{color:#FFFFFF;border-color:rgba(255,255,255,.65)}
  .pmt-foot-contact a{color:#FFFFFF}
  .pmt-foot-legal{color:#D7E6E8}
  :focus-visible{outline:3px solid var(--micro-accent,#D7E237);outline-offset:2px}
  .consent-banner{border-width:2px;border-color:var(--micro-accent,#D7E237)}
  .consent-decline{border-width:2px}
}

/* prefers-reduced-transparency: the device asks for less transparency.
   Primitiva's chrome is built on blurred translucent layers (site
   bar, menu panel, chat panel, hero and gallery controls): the blur
   is removed everywhere and the named layers become the solid
   surface token — the same opaque colours the product's own
   html.a11y-reduce-transparency rules already use. */
@media (prefers-reduced-transparency: reduce){
  *,*::before,*::after{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .site-bar,.menu-panel,.chat-panel{background:var(--surface)}
  .hero-play,.gallery-nav,.lb-btn,.lang-panel,.btn-ghost{background:var(--surface)}
}

/* inverted-colors: the device inverts the screen (Safari/macOS).
   Media is re-inverted so photography and video render in their
   true colours; page chrome is left to the device. */
@media (inverted-colors: inverted){
  img,video{filter:invert(1)}
}
