/* AIG Automotive prototype: shell around the pen exports. Design values live in the exported markup. */
*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
#pv-stage { width: 100%; overflow-x: hidden; }
.pv { width: auto; margin: 0; position: relative; --gm: 20px; }
body.pv-tablet .pv { --gm: 40px; }
.pv[hidden] { display: none !important; }
.pv > div { position: relative; }
body.pv-framed { background: #0E0F10 !important; }
body.pv-framed .pv { margin-left: auto; margin-right: auto; box-shadow: 0 0 0 1px #2E3133, 0 24px 80px rgba(0,0,0,.5); margin-top: 24px; margin-bottom: 96px; }

/* hotspots (links between screens) */
.hs { cursor: pointer; }
.hs:focus-visible { outline: 2px solid #C49A6C; outline-offset: 2px; border-radius: 6px; }
.hs-prim { transition: background-color 150ms ease-out; }
.hs-prim:hover { background-color: #6E5139 !important; }
.hs-sec { transition: background-color 150ms ease-out; }
.hs-sec:hover { background-color: #242628 !important; }
.hs-nav:hover { text-decoration: underline; text-decoration-color: #9D724E; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hs-card [data-pencil-name="Titel"] { transition: color 150ms ease-out; }
.hs-card:hover [data-pencil-name="Titel"] { color: #C49A6C !important; }
body.proto-hints .hs { outline: 2px dashed rgba(196,154,108,.85); outline-offset: 2px; }

/* navigation turns fixed after 80 px scroll (Interactiespec · Navigatie) */
.nav-fixed { position: fixed !important; top: 0 !important; left: auto !important; z-index: 50 !important;
  background-color: #1C1C1C !important; border-bottom: 1px solid #2E3133; }
.nav-fixed-in { animation: navIn 200ms ease-out; }
@keyframes navIn { from { opacity: .6; } to { opacity: 1; } }

/* fixed bar mobile (Interactiespec · Vaste balk mobiel) */
.bar-fixed { position: fixed !important; top: auto !important; bottom: 0 !important; z-index: 40 !important;
  transform: translateY(110%); transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1); margin: 0 !important; }
.bar-fixed.bar-in { transform: translateY(0); }

/* toolbar */
#pt { position: fixed; left: 12px; bottom: 12px; z-index: 2147483000; display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font: 13px/1.2 "Fira Sans", system-ui, sans-serif; color: #fff; background: rgba(20,21,22,.94); border: 1px solid #3a3e41;
  border-radius: 10px; padding: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.45); max-width: calc(100vw - 24px); }
#pt * { font: inherit; }
#pt button, #pt select, #pt a.ptb { appearance: none; background: #2a2d2f; color: #fff; border: 1px solid #3a3e41; border-radius: 7px;
  padding: 7px 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
#pt button:hover, #pt select:hover, #pt a.ptb:hover { border-color: #9D724E; }
#pt button[aria-pressed="true"] { background: #856245; border-color: #9D724E; }
#pt .ptt { padding: 0 6px; color: #C49A6C; font-weight: 700; white-space: nowrap; }
#pt .ptsep { width: 1px; align-self: stretch; background: #3a3e41; margin: 0 2px; }
#pt.min > :not(.ptkeep) { display: none; }
body.bar-on #pt { bottom: calc(var(--bar-h, 72px) + 8px); }
@media (max-width: 767px) { #pt { left: 8px; bottom: 8px; padding: 4px; gap: 4px; font-size: 12px; } #pt button, #pt select, #pt a.ptb { padding: 6px 8px; } }
#pt-toast { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 2147483001; background: #f5f6f6; color: #1C1C1C;
  font: 14px/1.4 "Fira Sans", system-ui, sans-serif; padding: 10px 14px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
  max-width: min(520px, calc(100vw - 32px)); opacity: 0; pointer-events: none; transition: opacity 150ms; }
#pt-toast.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-fixed, .nav-fixed-in { transition: none; animation: none; }
}
@media print { #pt, #fb-panel, .fb-pin { display: none !important; } }

/* interactions (interact.js) */
.px-overlay { position: fixed; inset: 0; z-index: 2147482600; }
.px-menu { overflow: auto; background: #1C1C1C; display: flex; flex-direction: column; }
.px-dim { position: absolute; inset: 0; background: #1C1C1CB3; }
.px-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; margin: 0; appearance: auto; }
body.fb-on .px-select, body.fb-on [contenteditable] { pointer-events: none; }
body.cookie-on #pt { display: none; }
[role="button"]:focus-visible, [role="menuitem"]:focus-visible { outline: 2px solid #C49A6C; outline-offset: 2px; border-radius: 6px; }
body.px-open #pt { display: none; }
