/* Shared interface pieces: skip link, focus ring, cookie notice, accessibility menu. Loaded on every page. */
.skip-link { position: fixed; top: -80px; inset-inline-start: 12px; z-index: 300; background: #fff; color: #04022a; padding: 10px 18px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal, #2bb2b8); outline-offset: 3px; }
#main:focus { outline: none; }

/* footer additions */
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ft-cookie { all: unset; box-sizing: border-box; cursor: pointer; color: inherit; border-bottom: 1px solid transparent; }
.ft-cookie:hover, .ft-cookie:focus-visible, .ft-legal a:hover { color: var(--white, #f2f2f2); }

/* cookie notice */
.cn-cookie { position: fixed; z-index: 97; right: 22px; bottom: 22px; width: min(430px, calc(100vw - 44px)); background: #0a0f2e; border: 1px solid rgba(226,232,255,.18); border-radius: 14px; padding: 18px 20px 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); color: #f2f2f2; font: 400 .95rem/1.65 "Heebo", system-ui, sans-serif; opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .4s, transform .4s, visibility .4s; }
.cn-cookie.show { opacity: 1; transform: none; visibility: visible; }
.cn-cookie h2 { margin: 0 0 6px; font: 700 1.02rem/1.3 "Heebo", sans-serif; }
.cn-cookie p { margin: 0 0 14px; color: #d4d4da; }
.cn-cookie a { color: #2bb2b8; border-bottom: 1px solid rgba(43,178,184,.45); }
.cn-cookie .cn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cn-cookie button { font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 10px 22px; border: 1px solid transparent; }
.cn-cookie .cn-ok { background: #945aca; color: #fff; }
.cn-cookie .cn-no { background: transparent; color: #f2f2f2; border-color: rgba(226,232,255,.4); }
.cn-cookie .cn-state { margin: -4px 0 12px; color: #8a8fb0; font-size: .86rem; }

/* accessibility menu */
.a11y-btn { position: fixed; z-index: 96; left: 22px; bottom: 90px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; background: #0a1226; border: 1px solid rgba(226,232,255,.35); color: #f2f2f2; box-shadow: 0 14px 34px -14px rgba(0,0,0,.9); transition: border-color .3s, transform .3s; }
.a11y-btn:hover { border-color: #2bb2b8; transform: translateY(-2px); }
.a11y-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y-panel { position: fixed; z-index: 98; left: 22px; bottom: 150px; width: min(360px, calc(100vw - 44px)); max-height: calc(100vh - 190px); overflow: auto; background: #0a0f2e; border: 1px solid rgba(226,232,255,.2); border-radius: 14px; padding: 16px; color: #f2f2f2; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); font: 400 .95rem/1.5 "Heebo", system-ui, sans-serif; opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s; }
.a11y-panel.open { opacity: 1; transform: none; visibility: visible; }
.a11y-panel h2 { margin: 0 0 12px; font: 700 1.05rem/1.3 "Heebo", sans-serif; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.a11y-panel .a11y-x { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem; line-height: 1; border: 1px solid rgba(226,232,255,.25); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button, .a11y-reset { font: inherit; font-size: .9rem; cursor: pointer; text-align: start; padding: 11px 12px; border-radius: 10px; color: #f2f2f2; background: rgba(226,232,255,.06); border: 1px solid rgba(226,232,255,.2); display: flex; align-items: center; gap: 8px; line-height: 1.25; }
.a11y-grid button[aria-pressed="true"] { background: #945aca; border-color: #945aca; color: #fff; }
.a11y-grid button:hover, .a11y-reset:hover { border-color: #2bb2b8; }
.a11y-size { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 10px; }
.a11y-size span { font-size: .9rem; color: #d4d4da; }
.a11y-size .a11y-sz { display: flex; gap: 8px; }
.a11y-size button { width: 44px; justify-content: center; font-weight: 700; padding: 9px 0; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(226,232,255,.14); }
.a11y-foot a { color: #2bb2b8; border-bottom: 1px solid rgba(43,178,184,.45); }
.a11y-reset { justify-content: center; padding: 8px 14px; }

@media (max-width: 700px) {
  .cn-cookie { right: 12px; left: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 12px 14px; font-size: .86rem; }
  .cn-cookie h2 { display: none; }
  .cn-cookie p { margin: 0 0 10px; line-height: 1.5; }
  .cn-cookie button { padding: 8px 18px; }
  .a11y-btn { left: 14px; bottom: calc(142px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .a11y-panel { left: 12px; width: calc(100vw - 24px); bottom: calc(196px + env(safe-area-inset-bottom)); max-height: calc(100vh - 250px); }
}

/* the states the menu switches on */
html.a11y-fs1 { font-size: 112.5%; } html.a11y-fs2 { font-size: 125%; } html.a11y-fs3 { font-size: 150%; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; outline-offset: 2px; }
html.a11y-font, html.a11y-font *:not(svg):not(svg *) { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-spacing body, html.a11y-spacing body * { line-height: 1.9 !important; letter-spacing: .03em !important; word-spacing: .1em !important; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.8L9.7 19z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-contrast { --void: #000; --navy: #000; --dark: #000; --panel: #000; --depth: #000; --white: #fff; --mute: #fff; --mute-2: #ffe600; --line: rgba(255,255,255,.7); --line-soft: rgba(255,255,255,.5); --teal: #00e5ff; --violet: #7a3fd0; }
html.a11y-contrast body, html.a11y-contrast .sec, html.a11y-contrast section, html.a11y-contrast header, html.a11y-contrast footer, html.a11y-contrast .next, html.a11y-contrast .gate, html.a11y-contrast .scene { background: #000 !important; color: #fff !important; }
html.a11y-contrast *, html.a11y-contrast *::before, html.a11y-contrast *::after { text-shadow: none !important; box-shadow: none !important; }
html.a11y-contrast .grain, html.a11y-contrast .ambient, html.a11y-contrast .veil, html.a11y-contrast .fog, html.a11y-contrast .spot, html.a11y-contrast .edge-shadow, html.a11y-contrast .gate-dim { display: none !important; }
html.a11y-contrast a:not(.btn):not(.logo):not(.cta), html.a11y-contrast .more-row b { color: #ffe600 !important; }
html.a11y-contrast *::before, html.a11y-contrast *::after { background-image: none !important; }
html.a11y-contrast .btn, html.a11y-contrast .nav .cta { background: #ffe600 !important; color: #000 !important; border: 2px solid #fff !important; }
html.a11y-contrast h1 *, html.a11y-contrast h2 *, html.a11y-contrast h3 *, html.a11y-contrast p, html.a11y-contrast li { color: #fff; }
html.a11y-contrast .nav.stuck { background: #000 !important; }
html.a11y-contrast .cn-cookie, html.a11y-contrast .a11y-panel, html.a11y-contrast .a11y-btn { background: #000; border-color: #fff; }

@media print { .cn-cookie, .a11y-btn, .a11y-panel, .wa-float, .m-bar, .nav, .skip-link { display: none !important; } }
