/* ==================================================
   BEACONCORE — PAGE OVERRIDES
   Truly unique one-off styles only.
   Every entry must have a comment explaining why it cannot live in shared CSS.
   ================================================== */

/* archivist.html — structural container uses hr divider with very low opacity
   intentional: archivist is a purely archival surface, minimal contrast is doctrine */
.structural-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* protocol.html — sf-card grid background is slightly deeper than standard panels
   intentional: protocol grid needs visual depth separation from page background */
html.saber-on body.protocol-page .sf-card {
    background: rgba(3, 4, 6, 0.75);
}

/* ==================================================
   SWITCHBOARD — hidden trigger + panel
   ================================================== */

/* Trigger dot — tiny, dim, clickable */
#sb-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    cursor: pointer;
    margin-left: 6px;
    margin-right: 2px;
    opacity: 0.18;
    font-size: 6px;
    color: transparent;
    transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    vertical-align: middle;
    padding: 0;
}
#sb-trigger:hover {
    opacity: 0.55;
    background: rgba(0,180,255,0.35);
}
#sb-trigger.sb-trigger--active {
    opacity: 1;
    background: rgba(0,180,255,0.6);
    box-shadow: 0 0 8px rgba(0,180,255,0.7);
    color: rgba(0,180,255,0.9);
}

/* Panel — slides down from header */
#sb-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    background: rgba(5,6,10,0.97);
    border: 1px solid rgba(0,180,255,0.22);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 14px 20px;
    min-width: 220px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(0,180,255,0.08);
}
#sb-panel.sb-panel--open {
    display: block;
}

.sb-title {
    font-size: 9px;
    letter-spacing: 0.18em;
    color: rgba(0,180,255,0.55);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}

.sb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.sb-row:last-child { margin-bottom: 0; }

.sb-label {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200,220,240,0.45);
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    flex-shrink: 0;
}

/* Saber button — 3-state colour */
.sb-saber-btn {
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,180,255,0.3);
    background: rgba(0,180,255,0.06);
    color: rgba(0,180,255,0.8);
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 56px;
    text-align: center;
}
.sb-saber-btn[data-saber="off"] {
    border-color: rgba(150,160,170,0.3);
    background: rgba(150,160,170,0.05);
    color: rgba(150,160,170,0.5);
}
.sb-saber-btn[data-saber="blue"] {
    border-color: rgba(0,180,255,0.55);
    background: rgba(0,180,255,0.1);
    color: rgba(0,200,255,0.9);
    box-shadow: 0 0 8px rgba(0,180,255,0.25);
}
.sb-saber-btn[data-saber="red"] {
    border-color: rgba(210,50,50,0.55);
    background: rgba(200,40,40,0.1);
    color: rgba(230,80,80,0.9);
    box-shadow: 0 0 8px rgba(210,50,50,0.25);
}

/* Ping button */
.sb-ping-btn {
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,255,229,0.3);
    background: rgba(0,255,229,0.05);
    color: rgba(0,255,229,0.7);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 56px;
    text-align: center;
}
.sb-ping-btn:hover {
    border-color: rgba(0,255,229,0.7);
    box-shadow: 0 0 10px rgba(0,255,229,0.3);
    color: #00FFE5;
}
.sb-ping-btn.sb-ping--flash {
    background: rgba(0,255,229,0.18);
    box-shadow: 0 0 16px rgba(0,255,229,0.5);
    color: #00FFE5;
}

/* Anchor button */
.sb-anchor-btn {
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(150,160,170,0.3);
    background: transparent;
    color: rgba(150,160,170,0.45);
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 56px;
    text-align: center;
}
.sb-anchor-btn[data-on="1"] {
    border-color: rgba(0,180,255,0.55);
    background: rgba(0,180,255,0.1);
    color: rgba(0,200,255,0.9);
    box-shadow: 0 0 8px rgba(0,180,255,0.25);
}

/* header must be position:relative for panel to anchor */
header { position: relative; }
