/*====================================================
LAYOUT
====================================================*/

html,
body{

width:100%;
height:100%;
margin:0;
background:var(--bg-main);
color:var(--text-primary);
overflow:hidden;

}

/*====================================================
AURORA VIEWPORT
====================================================*/

#aurora{

position:fixed;

inset:0;

width:100%;

height:100%;

opacity:0;

transition:opacity 2s ease;

overflow:hidden;

}


/*====================================================
AURORA BLUEPRINT / ATLAS CAMERA TARGET
====================================================*/

#auroraBlueprint{

position:absolute;

top:50%;

left:50%;

width:1920px;

height:1080px;

transform:
translate(-50%, -50%)
translate(0px, 0px)
scale(1);

transform-origin:center center;

will-change:transform;

}

#helios{

position:fixed;

inset:0;

z-index:var(--z-overlay);

display:flex;

justify-content:center;

align-items:center;

}

/*
================================================
HELIOS BOOT LOCK
================================================
*/

body.facility-booting
#aurora {

    pointer-events:
        none;

}

/* Native alternative to the pointer-only SVG; revealed when it receives focus. */
.circuit-navigation {
    box-sizing: border-box;
    position: fixed;
    top: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
    z-index: var(--z-interface);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--reactor);
}

.circuit-navigation[hidden] {
    display: none;
}

.circuit-navigation:not(:focus-within) {
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.circuit-navigation button {
    padding: 12px;
    color: var(--text-primary);
    background: var(--bg-main);
    border: 1px solid var(--reactor);
    font-family: var(--font-mono);
    cursor: pointer;
}

.circuit-navigation button:focus-visible,
.department button:focus-visible,
.department h1:focus-visible,
#enterFacility:focus-visible {
    outline: 3px solid var(--reactor-bright);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px var(--bg-main);
}

/* Readable secondary controls, using the existing department palette. */
.department :is(
    .department-return, .project-open, .workspace-close, .workspace-nav-item,
    .archive-viewer-close, .archive-record-link, .personnel-nav-item,
    .sentinel-system-open, .sentinel-record-close
) {
    box-sizing: border-box;
    min-height: 44px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .1em;
    color: var(--text-secondary);
    background: var(--bg-main);
    border-color: rgba(143, 243, 255, .5);
    opacity: 1;
}

.department .department-return {
    font-size: 13px;
}

.department :is(.workspace-nav-item, .personnel-nav-item).active {
    color: var(--reactor-bright);
    background: var(--bg-highlight);
    border-color: var(--reactor-bright);
    text-decoration: underline;
    text-underline-offset: .25em;
}

.department :is(
    .department-return, .project-open, .workspace-close, .workspace-nav-item,
    .archive-viewer-close, .archive-record-link, .personnel-nav-item,
    .sentinel-system-open, .sentinel-record-close
):is(:hover, :focus-visible) {
    color: var(--text-primary);
    background: var(--bg-highlight);
    border-color: var(--reactor-bright);
}

.department :is(
    .department-return, .project-open, .workspace-close, .workspace-nav-item,
    .archive-viewer-close, .archive-record-link, .personnel-nav-item,
    .sentinel-system-open, .sentinel-record-close
):active {
    box-shadow: inset 0 0 0 1px var(--reactor-bright);
}
