/* Shared base for the three Government directions: brand face, reset, the door, accessibility helpers.
   Each direction sets its own tokens (--paper, --ink, --rule, --mark, --door-ground) and everything else. */
@font-face { font-family: 'ServiceAi Sans'; src: url('fonts/ServiceAiSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ServiceAi Sans'; src: url('fonts/ServiceAiSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'ServiceAi Sans'; src: url('fonts/ServiceAiSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus, var(--ink)); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 12px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 12px; }
.brand { display: inline-block; width: 132px; }
.brand img { width: 100%; }
.st { white-space: nowrap; }
.st-rev::before { content: '◌ '; }
.st-cur::before { content: '● '; }
:target { scroll-margin-top: 24px; }

/* The door. Hidden by default; door.js shows it only on arrival from Ember's World. Fades only. */
.door { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); opacity: 1; transition: opacity .7s ease; }
.door[hidden] { display: none; }
html.arriving .door[hidden] { display: grid; }
html.arriving body { overflow: hidden; }
html.opened .door { opacity: 0; }
.door-frame { position: relative; width: min(46vw, 220px); aspect-ratio: 34 / 54; background: var(--door-ground, #2a1d14); overflow: hidden; }
.door-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: door-in .5s ease .15s forwards; }
.door-cap { margin-top: 18px; text-align: center; }
@keyframes door-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .door { display: none !important; } * { transition: none !important; animation: none !important; } }
@media print { .door, .skip, nav { display: none !important; } body { background: #fff; } }
nav ol, nav ul { list-style: none; padding: 0; }
@media (min-width: 1024px) { .door-frame { width: 280px; } .door-cap { font-size: 1.15rem; } }
