/* -------------------------------------------------- */
/* TYPOGRAPHY (GLOBAL LIGHT THEME)                    */
/* -------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* -------------------------------------------------- */
/* LAYOUT                                             */
/* -------------------------------------------------- */

header {
    display: flex;
    justify-content: space-between;
    padding: 24px 40px;
    border-bottom: 1px solid #e5e5e5;
}

.nav-left {
    font-size: 20px;
    font-weight: 600;
}

.nav-right a {
    margin-left: 24px;
    text-decoration: none;
    color: #111111;
    font-weight: 500;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* -------------------------------------------------- */
/* HERO (GENERIC)                                     */
/* -------------------------------------------------- */

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.preamble {
    font-size: 20px;
    max-width: 600px;
    opacity: 0.85;
}

/* -------------------------------------------------- */
/* ARTIFACTS (GENERIC)                                */
/* -------------------------------------------------- */

.artifacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
}

.artifact h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.artifact p {
    opacity: 0.8;
}

/* -------------------------------------------------- */
/* DOCTRINE (GENERIC)                                 */
/* -------------------------------------------------- */

.doctrine {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.doctrine h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.doctrine p {
    max-width: 700px;
    opacity: 0.85;
}

/* -------------------------------------------------- */
/* FOOTER                                             */
/* -------------------------------------------------- */

footer {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
    font-size: 14px;
}

/* -------------------------------------------------- */
/* PROTOCOL PAGE — BASE LIGHT THEME                   */
/* -------------------------------------------------- */

.protocol-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.protocol-preamble {
    font-size: 20px;
    max-width: 650px;
    opacity: 0.85;
}

.protocol-overview {
    margin-top: 60px;
}

.protocol-overview h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.protocol-overview p {
    max-width: 750px;
    opacity: 0.85;
}

/* -------------------------------------------------- */
/* PROTOCOL ARTIFACTS — FIXED (NO GRID OVERRIDE)      */
/* -------------------------------------------------- */

.protocol-artifacts {
    margin-top: 80px;
}

.protocol-block h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.protocol-block p {
    opacity: 0.85;
    margin-bottom: 12px;
}

.protocol-link {
    text-decoration: none;
    font-weight: 600;
    color: #111111;
    opacity: 0.9;
}

.protocol-link:hover {
    opacity: 1;
}

.protocol-doctrine {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.protocol-doctrine h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.protocol-doctrine p {
    max-width: 750px;
    opacity: 0.85;
}

/* -------------------------------------------------- */
/* ACTIVE NAV STATE                                   */
/* -------------------------------------------------- */

.nav-right .active {
    font-weight: 700;
    opacity: 1;
}

/* -------------------------------------------------- */
/* SABER‑FORCE PROTOCOL SURFACE — FINAL VERSION (B)   */
/* -------------------------------------------------- */

/* Page substrate — matte black sinking into obsidian */
.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-repeat: no-repeat;
    background-position: center top;
}

/* Protocol panels — floating above the substrate */
.protocol-hero,
.protocol-overview,
.protocol-artifacts,
.protocol-doctrine {
    background: #050608; /* deep matte black */
    color: #dff8ff;      /* cold pale cyan */
    border: 1px solid rgba(0,180,255,0.18);
    border-radius: 12px;
    padding: 2.5rem;
}

/* Headings — radial‑core glow */
.protocol-hero h1,
.protocol-overview h2,
.protocol-doctrine h2 {
    color: #7feaff;
    text-shadow: 0 0 6px rgba(0,200,255,0.45);
    letter-spacing: 0.5px;
}

/* Body text — cold clarity */
.protocol-preamble,
.protocol-overview p,
.protocol-doctrine p {
    opacity: 0.92;
    color: #c9e9f2;
}

/* Saber‑Force Grid Integration */
.sf-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,200,255,0.18);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

/* Hover — energy pulse */
.sf-card:hover {
    border-color: rgba(0,200,255,0.55);
    background: rgba(0,200,255,0.06);
}

/* Links — precision vector */
.sf-open {
    color: #8feaff;
    border-bottom: 1px solid rgba(0,200,255,0.35);
    padding-bottom: 2px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.sf-open:hover {
    color: #dffcff;
    border-bottom-color: rgba(0,200,255,0.9);
}

.sf-open:hover {
    color: #dffcff;
    border-bottom-color: rgba(0,200,255,0.9);
}

/* -------------------------------------------------- */
/* ARTIFACT PAGES                                     */
/* -------------------------------------------------- */

.artifact-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.artifact-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.artifact-preamble {
    font-size: 20px;
    max-width: 650px;
    opacity: 0.85;
}

.artifact-body {
    margin-top: 60px;
}

.artifact-body h2 {
    font-size: 24px;
    margin-bottom: 8px;
    margin-top: 32px;
}

.artifact-body p {
    max-width: 750px;
    opacity: 0.85;
}

/* -------------------------------------------------- */
/* SURFACES PAGE                                      */
/* -------------------------------------------------- */

.surfaces-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.surfaces-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.surfaces-preamble {
    font-size: 20px;
    max-width: 650px;
    opacity: 0.85;
}

.surfaces-body {
    margin-top: 60px;
}

.surfaces-body h2 {
    font-size: 26px;
    margin-bottom: 12px;
    margin-top: 40px;
}

.surface-block {
    margin-top: 32px;
}

.surface-block h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.surface-block p {
    max-width: 750px;
    opacity: 0.85;
}

.surfaces-doctrine {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.surfaces-doctrine h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.surfaces-doctrine p {
    max-width: 750px;
    opacity: 0.85;
}

/* -------------------------------------------------- */
/* NAVIGATION REFINEMENT                              */
/* -------------------------------------------------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid #e5e5e5;
}

.nav-left a {
    text-decoration: none;
    color: #111111;
    font-size: 20px;
    font-weight: 600;
}

.nav-right a {
    margin-left: 28px;
    text-decoration: none;
    color: #111111;
    font-weight: 500;
    opacity: 0.85;
}

.nav-right a:hover {
    opacity: 1;
}

.nav-right .active {
    font-weight: 700;
    opacity: 1;
}

/* -------------------------------------------------- */
/* TYPOGRAPHY & RHYTHM — SABER‑FORCE (Protocol only)  */
/* -------------------------------------------------- */

.protocol-page body,
.protocol-page {
    color: #dfe7ef;
}

.protocol-page h1 {
    color: #e8faff;
}

.protocol-page h2 {
    color: #c9e9f2;
}

.protocol-page h3 {
    color: #b8d7e4;
}

.protocol-page p {
    color: #c9d7e0;
}

.protocol-page a {
    color: #7feaff;
}

/* -------------------------------------------------- */
/* LINKS                                              */
/* -------------------------------------------------- */

a {
    color: #7feaff; /* unify with Saber‑Force cyan */
    text-decoration: none;
}

a:hover {
    opacity: 0.75;
}

/* -------------------------------------------------- */
/* FOOTER FRAME                                       */
/* -------------------------------------------------- */

footer {
    margin-top: 120px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    opacity: 0.6;
    text-align: center;
}

.artifact-image {
    max-width: 100%;
    border-radius: 6px;
    margin: 1.5rem 0;
    display: block;
}

/* -------------------------------------------------- */
/* GRID SYSTEM (SABER‑FORCE CARDS)                    */
/* -------------------------------------------------- */

.sf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.sf-card {
    padding: 1.75rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.sf-card:hover {
    border-color: rgba(0,200,255,0.35);
    background: rgba(255,255,255,0.04);
}

.sf-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.sf-card p {
    margin-bottom: 1.25rem;
    line-height: 1.55;
    opacity: 0.9;
}

.sf-open {
    text-decoration: none;
    border-bottom: 1px solid rgba(0,200,255,0.25);
    padding-bottom: 2px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.sf-open:hover {
    border-bottom-color: rgba(0,200,255,0.9);
    color: #fff;
}

/* -------------------------------------------------- */
/* GILDED SENTINEL SANDBOX — EVIDENCE SLAB            */
/* -------------------------------------------------- */

.sentinel-slab {
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.sentinel-image {
    width: 100%;
    border: 8px solid rgba(0,200,255,0.35);
    border-radius: 12px;
    box-shadow: 0 0 22px rgba(0,200,255,0.25);
}

.sentinel-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.65;
    letter-spacing: 0.5px;
    color: #9feaff;
}

/* -------------------------------------------------- */
/* TRIAD GEOMETRY — OPERATIONAL LAYOUT                */
/* -------------------------------------------------- */

.triad-layout {
    margin: 3.5rem 0 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.75rem 1.5rem;
    background: radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 55%);
}

.triad-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.triad-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    opacity: 0.8;
}

.triad-column li + li {
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .triad-layout {
        grid-template-columns: 1fr;
    }
}
