/* ==================================================
🜁 BEACONCORE + SABER‑FORCE — FINAL CLEAN SYSTEM
================================================== */


/* --------------------------------------------------
🜁 STRUCTURAL BASELINE
-------------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #111111;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid #e2e2e2;
}

.nav-left a,
.nav-right a {
    text-decoration: none;
    color: inherit;
}

.nav-left a {
    font-size: 20px;
    font-weight: 600;
}

.nav-right a {
    margin-left: 24px;
    opacity: 0.85;
}

.nav-right .active {
    font-weight: 700;
    opacity: 1;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}


/* --------------------------------------------------
PANELS
-------------------------------------------------- */

.protocol-hero,
.protocol-overview,
.protocol-artifacts,
.protocol-doctrine,
.surfaces-hero,
.surfaces-body,
.surfaces-doctrine {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    background: transparent;
}

/* ==================================================
🜁 ARTIFACT IMAGES — CONTROLLED SIZE
================================================== */

.artifact-image {
    display: block;
    max-width: 500px;      /* 👈 main size control */
    width: 100%;
    height: auto;
    margin: 24px auto;     /* centers nicely */
    border-radius: 8px;
}

/* --------------------------------------------------
TRIAD
-------------------------------------------------- */

.triad-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 2.5rem 0;
    border: 1px solid #e2e2e2;
}

.triad-column {
    padding: 16px;
    border-left: 1px solid #e2e2e2;
}

.triad-column:first-child {
    border-left: none;
}

.triad-column h4 {
    margin-bottom: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.triad-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: monospace;
    font-size: 0.8rem;
}


/* ==================================================
🜁 SABER‑FORCE PRESENTATION
================================================== */


/* NAV */

html.saber-on .nav-right a {
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

html.saber-on .nav-right a:hover {
    opacity: 1;
}


/* ==================================================
✅ HEADER SYSTEM (FINAL — SIMPLE + WORKING)
================================================== */

/* Header always follows page color */
html.saber-on header {
    color: inherit;
}

/* Links follow header */
html.saber-on header a {
    color: inherit !important;
}


/* ==================================================
PROTOCOL PAGE (BLUE)
================================================== */

html.saber-on body.protocol-page {
    background:
        linear-gradient(
            to bottom,
            #050608 0%,
            #050608 40%,
            rgba(10, 12, 14, 0.95) 60%,
            rgba(12, 14, 16, 0.98) 75%,
            rgba(15, 17, 19, 1) 100%
        ),
        url('/obsidian-texture.png');

    background-size: cover;
    background-attachment: fixed;
    background-position: center top;

    color: #dfe7ef;
}


/* ==================================================
SURFACES PAGE (RED)
✅ THIS IS WHAT FIXES YOUR PROBLEM
================================================== */

html.saber-on body.surfaces-page {
    background:
        linear-gradient(
            to bottom,
            #080404 0%,
            #0a0505 40%,
            rgba(20, 4, 4, 0.95) 60%,
            rgba(28, 6, 6, 0.98) 75%,
            rgba(32, 8, 8, 1) 100%
        ),
        url('/obsidian-texture.png');

    background-size: cover;
    background-attachment: fixed;
    background-position: center top;

    color: #ffeaea; /* ← header now inherits this */
}

/* Optional red header line */
html.saber-on body.surfaces-page header {
    border-bottom: 1px solid rgba(255, 60, 60, 0.18);
}


/* ==================================================
PRESENTATION PANELS
================================================== */

html.saber-on .protocol-hero,
html.saber-on .protocol-overview,
html.saber-on .protocol-artifacts,
html.saber-on .protocol-doctrine {
    background: #050608;
    color: #dff8ff;
    border: 1px solid rgba(0,180,255,0.16);
    border-radius: 10px;
}

html.saber-on .surfaces-hero,
html.saber-on .surfaces-body,
html.saber-on .surfaces-doctrine {
    background: #0a0505;
    border: 1px solid rgba(255, 40, 40, 0.20);
    border-radius: 12px;
}