/* DOC369: sapphire controls and predictable stacking above the animated hero. */
:root{--surface:#102346;--panel:#102346;--text:#eef4ff}
header{position:relative;z-index:40;isolation:isolate;min-height:90px;height:auto;padding-block:18px}
header .languages{z-index:50;background:transparent;font-size:14px;margin-inline-start:auto}
header .languages summary{min-height:46px;padding:10px 15px;background:linear-gradient(135deg,#1b3262,#112344);border:1px solid #a5c4f277;border-radius:14px;color:#f1f6ff;box-shadow:inset 0 1px 0 #ffffff16,0 5px 20px #0002;gap:10px}
header .languages summary:hover{border-color:#b7d4ff;background:#203d73}
header .languages nav{z-index:100;inset-inline-end:0;top:calc(100% + 12px);width:min(360px,calc(100vw - 32px));max-height:min(480px,calc(100dvh - 145px));overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#759ddd #122446;scrollbar-width:thin;background:#102346!important;color:#eef4ff;border:1px solid #96b9f266;box-shadow:0 22px 60px #0009,inset 0 1px 0 #ffffff16;padding:10px;gap:6px;line-height:1.4;margin:0;backdrop-filter:blur(22px)}
header .languages nav a{min-height:46px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#e5efff!important;border:1px solid transparent;background:transparent;outline-offset:-3px}
header .languages nav a[aria-current]{color:#fff!important;background:linear-gradient(135deg,#3568b4,#244b88);border-color:#90b9ff88;box-shadow:inset 0 1px 0 #ffffff22;font-weight:700}
header .languages nav a:hover,header .languages nav a:focus-visible{background:#254679;color:#fff!important;border-color:#98bdf9;outline:2px solid #a9caff}
.hero{z-index:0;isolation:isolate}.hero .art{z-index:0}
.hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-block:24px 8px;max-width:640px}
.hero-actions .cta{margin:0;min-width:0;min-height:60px;height:100%;padding:14px 18px;gap:10px;justify-content:center;text-align:center;white-space:normal;line-height:1.45;overflow-wrap:anywhere}
.paper:before{background:linear-gradient(145deg,#f4f8ff,#d6e3f7);border-color:#bfcee9}
.filemark{border-color:#b7ccef}.state:before{background:#8fb8ff;box-shadow:0 0 10px #70aaff66}
@media(max-width:760px){header{min-height:80px;padding-block:14px;gap:12px}header .languages nav{max-height:min(440px,calc(100dvh - 125px))}.hero-actions{gap:12px}}
@media(max-width:520px){.hero-actions{grid-template-columns:1fr}.hero-actions .cta{min-height:54px;padding:14px 16px}}
