/* ============================================================
   LIBRETH ARCHIVE :: GRECO-ROMAN DIVISION
   Greek and Roman Mythology — Alexandrian Alchemy and Its
   Transmission
   ------------------------------------------------------------
   Self-contained stylesheet for the Greco-Roman hub.
   Ported from the Antiquity stylesheet (antiquity-style.css),
   itself ported from the Egyptology wiki stylesheet: every
   class name and its meaning are preserved identically for
   full visual kinship between the divisions, so pages written
   against the Antiquity class set render identically here.
   Antiquity additions carried over unchanged (tier badges,
   timeline, article index) are defined near the end of this
   file, followed by one Greco-Roman flavour rule (a divider
   ornament, absolutely positioned and out of flow, so it
   cannot alter layout). No other section's stylesheet is
   imported or referenced.
   ============================================================ */

/* EGYPTIAN HIEROGLYPH FONT (Supports Unicode 12.0+ Formatting Controls) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Egyptian+Hieroglyphs&display=swap');

:root {
    --gold: #d4af37;
    --gold-dim: #8a6e1e;
    --gold-glow: rgba(212,175,55,0.15);
    --cyan: #00d1ff;
    --cyan-dim: #006f87;
    --bg: #080808;
    --bg2: #0d0d0d;
    --text: #ccc8b8;
    --text-bright: #f0e68c;
    --violet: #c77dff;
    --violet-dim: #7b4ba8;
    --violet-glow: rgba(199,125,255,0.15);
    --magenta: #e056c8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 18px;
    line-height: 1.8;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(0,80,160,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(212,175,55,0.05) 0%, transparent 60%);
    background-attachment: fixed;
    text-align: center;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* LAYOUT */
.page-wrap { 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem 1rem 6rem; 
}

/* HEADER */
.page-header {
    text-align: center;
    padding: clamp(3rem, 10vw, 5rem) 0 clamp(2rem, 8vw, 4rem);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    margin-bottom: 4rem;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.page-header::before {
    display: block;
    font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif; /* ADDED FONT */
    font-weight: 400; /* Force normal weight so ligatures don't break */
    font-size: clamp(2rem, 6vw, 3rem); /* Bumped up slightly for Noto Sans */
    color: var(--gold-dim);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5rem; /* Still adds nice spacing between completed quadrats */
    opacity: 0.7;
}
.page-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.9rem, 6.5vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212,175,55,0.4), 0 0 60px rgba(212,175,55,0.1);
    letter-spacing: 0.02em;
    line-height: 1.1;
    word-break: keep-all;
    overflow-wrap: normal;
    word-wrap: normal;
    padding: 0 5px;
    text-transform: uppercase;
}
.page-subtitle {
    font-family: 'VT323', monospace;
    font-size: clamp(0.8rem, 3.5vw, 1.05rem);
    color: var(--cyan-dim);
    margin-top: 1rem;
    letter-spacing: 0.1em;
    padding: 0 1rem;
    text-transform: uppercase;
}
.page-epithet {
    font-style: italic;
    color: rgba(212,175,55,0.6);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
    line-height: 1.6;
}

/* NAV */
.breadcrumb {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: var(--cyan-dim);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--cyan); text-decoration: none; }
.breadcrumb a:hover { color: #00ffae; }

/* TOC */
.toc-block {
    border: 1px solid rgba(212,175,55,0.25);
    background: rgba(20,18,10,0.8);
    padding: 1.2rem 1.5rem;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.toc-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.8;
}
.toc-list { list-style: none; }
.toc-list li { margin: 0.3rem 0; }
.toc-list a {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.toc-list a:hover { color: #00ffae; }
.toc-list .toc-sub { padding-left: 1.2rem; opacity: 0.8; font-size: 0.85rem; }

/* SECTION HEADERS */
h2.section-head {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    color: var(--gold);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    padding-bottom: 0.5rem;
    margin: 3.5rem 0 1.5rem;
    letter-spacing: 0.05em;
}
h3.sub-head {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    color: var(--text-bright);
    margin: 2rem 0 1.2rem;
    letter-spacing: 0.03em;
}
h4.mini-head {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* BODY TEXT */
p { margin-bottom: 1.1rem; }
b, strong { color: var(--text-bright); font-weight: 600; }
em, i { color: rgba(240,230,140,0.8); }

/* PULL QUOTE */
.pull-quote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(212,175,55,0.04);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-bright);
}
.pull-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-family: 'VT323', monospace;
    letter-spacing: 0.08em;
}

/* INFO CARDS */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media(max-width:640px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media(max-width:780px) { .card-grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px) { .card-grid-3 { grid-template-columns: 1fr; } }

.info-card {
    background: rgba(15,13,8,0.9);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 1.2rem;
    transition: border-color 0.3s;
}
.info-card:hover { border-color: rgba(212,175,55,0.5); }
.info-card h4 { color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.9rem; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.info-card p { font-size: 0.92rem; margin: 0; opacity: 0.88; }

.info-card.cyan-accent { border-color: rgba(0,180,220,0.25); }
.info-card.cyan-accent h4 { color: var(--cyan); }
.info-card.cyan-accent:hover { border-color: rgba(0,180,220,0.5); }

/* TABLE */
.data-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 500px;
}
.data-table th {
    background: rgba(212,175,55,0.12);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0.6rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(212,175,55,0.3);
}
.data-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: top;
}
.data-table tr:hover td { background: rgba(212,175,55,0.03); }

/* DIVIDER */
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,175,55,0.4), transparent);
    margin: 3rem 0;
}

/* GLYPH MARKER */
.glyph-marker {
    font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif; /* ADDED FONT */
    font-weight: 400;
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold-dim);
    opacity: 0.4;
    letter-spacing: 0.5rem;
    margin: 2rem 0;
}

/* HIEROGLYPH UTILITY CLASS (For your inline text and Transliterator tool) */
.hieroglyph {
    font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
}

/* SIDEBAR NOTE */
.sidebar-note {
    float: right;
    width: 260px;
    margin: 0 0 1.5rem 2rem;
    padding: 1rem;
    border: 1px solid rgba(0,180,220,0.2);
    background: rgba(0,20,30,0.7);
    font-size: 0.88rem;
    text-align: left;
}
.sidebar-note .note-title {
    font-family: 'VT323', monospace;
    color: var(--cyan);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
@media(max-width:700px) { .sidebar-note { float: none; width: 100%; margin: 1rem 0; } }

/* PRACTICAL NOTE */
.practical-note {
    border: 1px solid rgba(0,210,100,0.2);
    background: rgba(0,30,15,0.6);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    text-align: left;
}
.practical-note .pn-title {
    font-family: 'Cinzel', serif;
    color: #00e87a;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}
.practical-note p { font-size: 0.93rem; margin: 0; }

/* WARNING/CAUTION */
.caution-note {
    border: 1px solid rgba(200,100,0,0.3);
    background: rgba(30,15,0,0.7);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    text-align: left;
}
.caution-note .cn-title {
    font-family: 'Cinzel', serif;
    color: #e8800a;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* RELATED LINKS */
.related-links {
    background: rgba(15,13,8,0.9);
    border: 1px solid rgba(212,175,55,0.15);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    text-align: left;
}
.related-links h3 {
    font-family: 'VT323', monospace;
    color: var(--gold-dim);
    letter-spacing: 0.15em;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.related-links ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
@media(max-width:600px) { .related-links ul { grid-template-columns: 1fr; } }
.related-links a { color: var(--cyan); text-decoration: none; font-size: 0.92rem; }
.related-links a:hover { color: #00ffae; }
.related-links a::before { content: '→ '; opacity: 0.5; }

/* BACK BTN */
.back-btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 2rem;
}
.back-btn:hover {
    background: rgba(212,175,55,0.1);
    border-color: var(--gold);
}

.nav-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(20,18,10,0.4);
    text-transform: uppercase;
}
.nav-btn:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212,175,55,0.2);
}
.nav-btn.terminal {
    border-color: var(--cyan-dim);
    color: var(--cyan);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}
.nav-btn.terminal:hover {
    background: rgba(0, 209, 255, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.2);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 3rem 0 2rem;
    font-family: 'VT323', monospace;
    color: rgba(212,175,55,0.2);
    letter-spacing: 0.2em;
    font-size: 1rem;
    border-top: 1px solid rgba(212,175,55,0.08);
    margin-top: 4rem;
}

/* NAV LINK INLINE */
a.nl { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
a.nl:hover { color: #00ffae; }

/* ANIMATION */
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.page-header { animation: fadeIn 0.8s ease forwards; }

/* WIKI INDEX SPECIFIC */
.wiki-link-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.wiki-link-item {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(0,180,220,0.2);
    background: rgba(0,20,30,0.7);
    transition: all 0.2s ease-out;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.wiki-link-item:hover {
    border-color: var(--cyan);
    background: rgba(0,180,220,0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,209,255,0.1);
}
.wiki-link-item .title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    display: block;
}
.wiki-link-item .description {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    line-height: 1.4;
    display: block;
}
.category-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    width: 100%;
}

/* PAGE-SPECIFIC THEMING */

/* OSIRIS PAGE */
body[data-page="osiris"] {
    --osiris-green: #2e8b57;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(46,139,87,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(212,175,55,0.04) 0%, transparent 60%);
}
body[data-page="osiris"] ::-webkit-scrollbar-thumb { background: #2e8b57; }
body[data-page="osiris"] .page-header { border-bottom: 1px solid rgba(46,139,87,0.3); }
body[data-page="osiris"] .page-header::before { content: '𓊨 𓁹 𓀭 𓋴 𓐍 𓅓'; color: #2e8b57; }
body[data-page="osiris"] h2.section-head { border-bottom: 1px solid rgba(46,139,87,0.3); }
body[data-page="osiris"] .divider { background: linear-gradient(to right, transparent, rgba(46,139,87,0.4), transparent); }
body[data-page="osiris"] .toc-block { border: 1px solid rgba(46,139,87,0.3); background: rgba(10,20,15,0.8); }
body[data-page="osiris"] footer { color: rgba(46,139,87,0.3); border-top: 1px solid rgba(46,139,87,0.1); }

/* ISIS PAGE */
body[data-page="isis"] {
    --isis-rose: #c41e3a;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(196,30,58,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(212,175,55,0.04) 0%, transparent 60%);
}
body[data-page="isis"] ::-webkit-scrollbar-thumb { background: #c41e3a; }
body[data-page="isis"] .page-header { border-bottom: 1px solid rgba(196,30,58,0.3); }
body[data-page="isis"] .page-header::before { content: '𓊨 𓏏 𓆇 𓁐'; color: #c41e3a; }
body[data-page="isis"] h2.section-head { border-bottom: 1px solid rgba(196,30,58,0.3); }
body[data-page="isis"] .divider { background: linear-gradient(to right, transparent, rgba(196,30,58,0.4), transparent); }
body[data-page="isis"] .toc-block { border: 1px solid rgba(196,30,58,0.3); background: rgba(20,10,15,0.8); }
body[data-page="isis"] footer { color: rgba(196,30,58,0.3); border-top: 1px solid rgba(196,30,58,0.1); }

/* PANTHEON PAGE */
body[data-page="pantheon"] {
    --pantheon-gold: #d4af37;
    --pantheon-dark: rgba(212, 175, 55, 0.9);
    --pantheon-light: rgba(212, 175, 55, 0.2);
    --pantheon-dim: rgba(212, 175, 55, 0.05);
}
body[data-page="pantheon"] .page-header { border-bottom: 2px solid #d4af37; box-shadow: 0 4px 12px rgba(212, 175, 55, 0.05); }
body[data-page="pantheon"] .page-header::before { content: '𓊹 𓊹 𓊹 𓊹 𓊹 𓊹'; color: #d4af37; }
body[data-page="pantheon"] .page-title { color: #d4af37; text-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
body[data-page="pantheon"] h2.section-head { border-bottom: 2px solid #d4af37; color: rgba(212, 175, 55, 0.9); }
body[data-page="pantheon"] .divider { border-color: #d4af37; }
body[data-page="pantheon"] .toc-block { border-left: 4px solid #d4af37; background: rgba(212, 175, 55, 0.05); }
body[data-page="pantheon"] .info-card { border-left: 4px solid #d4af37; }
body[data-page="pantheon"] .blue-block { background: rgba(212, 175, 55, 0.05); border-left: 4px solid #d4af37; }
body[data-page="pantheon"] .glyph-marker { color: #d4af37; }
body[data-page="pantheon"] ::-webkit-scrollbar-thumb { background-color: #d4af37; }

/* APEP PAGE */
body[data-page="apep"] {
    --apep-crimson: #8b0000;
    --apep-fire: #ff4500;
    --apep-dark: rgba(139,0,0,0.9);
    --apep-light: rgba(139,0,0,0.15);
    --apep-dim: rgba(139,0,0,0.03);
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(139,0,0,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(212,175,55,0.04) 0%, transparent 60%);
}
body[data-page="apep"] ::-webkit-scrollbar-thumb { background: #ff4500; }
body[data-page="apep"] .page-header { border-bottom: 2px solid #8b0000; box-shadow: 0 4px 12px rgba(139,0,0,0.03); }
body[data-page="apep"] .page-header::before { content: '𓉺 𓊪 𓊪 𓆙'; color: #ff4500; }
body[data-page="apep"] .page-title { color: #ff4500; text-shadow: 0 0 30px rgba(139,0,0,0.5), 0 0 60px rgba(139,0,0,0.2); }
body[data-page="apep"] .page-subtitle { color: #8b0000; }
body[data-page="apep"] .page-epithet { color: rgba(139,0,0,0.15); }
body[data-page="apep"] .toc-block { border-left: 4px solid #8b0000; background: rgba(139,0,0,0.03); }
body[data-page="apep"] .toc-title { color: #ff4500; }
body[data-page="apep"] h2.section-head { color: #ff4500; border-bottom: 2px solid #8b0000; }
body[data-page="apep"] .pull-quote { border-left: 4px solid #8b0000; background: rgba(139,0,0,0.03); }
body[data-page="apep"] .info-card { border-left: 4px solid #8b0000; background: rgba(139,0,0,0.03); }
body[data-page="apep"] .info-card h4 { color: #ff4500; }
body[data-page="apep"] .blue-block { background: rgba(139,0,0,0.03); border-left: 4px solid #8b0000; }
body[data-page="apep"] .divider { border-color: #8b0000; }
body[data-page="apep"] .glyph-marker { color: #ff4500; }
body[data-page="apep"] footer { color: #8b0000; border-top: 1px solid rgba(139,0,0,0.03); }

/* MA'AT & ISFET PAGE */
body[data-page="maat-isfet"] {
    --maat-green: #2d5a3d;
    --maat-emerald: #52b788;
    --isfet-storm: #4a4a5a;
    --maat-light: rgba(82, 183, 136, 0.2);
    --isfet-dark: rgba(74, 74, 90, 0.1);
    --balance-gold: #d4a574;
}
body[data-page="maat-isfet"] .page-header { border-bottom: 2px solid #2d5a3d; box-shadow: 0 4px 12px rgba(82, 183, 136, 0.2); }
body[data-page="maat-isfet"] .page-header::before { content: '𓐙 𓂝 𓏏 𓁐 · 𓇋 𓊃 𓆑 𓏏 𓏱 𓍢'; color: #52b788; }
body[data-page="maat-isfet"] .page-title { color: #52b788; text-shadow: 0 0 10px rgba(82, 183, 136, 0.2); }
body[data-page="maat-isfet"] .page-subtitle { color: #2d5a3d; }
body[data-page="maat-isfet"] h2.section-head { color: #52b788; border-bottom: 2px solid #2d5a3d; }
body[data-page="maat-isfet"] .divider { border-color: #2d5a3d; }
body[data-page="maat-isfet"] .toc-block { border-left: 4px solid #2d5a3d; background: rgba(82, 183, 136, 0.2); }
body[data-page="maat-isfet"] .toc-title { color: #52b788; }
body[data-page="maat-isfet"] .info-card { border-left: 4px solid #2d5a3d; }
body[data-page="maat-isfet"] .info-card h4 { color: #52b788; }
body[data-page="maat-isfet"] .blue-block { background: rgba(82, 183, 136, 0.2); border-left: 4px solid #2d5a3d; }
body[data-page="maat-isfet"] .pull-quote { border-left: 4px solid #2d5a3d; }
body[data-page="maat-isfet"] .glyph-marker { color: #52b788; }
body[data-page="maat-isfet"] ::-webkit-scrollbar-thumb { background-color: #2d5a3d; }

/* COSMOLOGICAL DEITIES PAGE */
body[data-page="cosmological-deities"] {
    --cosmos-blue: #1a3a52;
    --cosmos-cyan: #0d7377;
    --cosmos-gold: #d4af37;
    --cosmos-light: rgba(13, 115, 119, 0.15);
    --cosmos-dark: rgba(26, 58, 82, 0.08);
    --cosmos-accent: #f4e4c1;
}
body[data-page="cosmological-deities"] .page-header { background: linear-gradient(135deg, #1a3a52 0%, #0d7377 100%); border-bottom: 4px solid #d4af37; }
body[data-page="cosmological-deities"] .page-header::before { content: '𓇯 𓇃 𓇶 𓆣'; }
body[data-page="cosmological-deities"] .page-title { color: #f4e4c1; text-shadow: 2px 2px 8px rgba(26, 58, 82, 0.6); }
body[data-page="cosmological-deities"] .page-subtitle { color: #f4e4c1; opacity: 0.85; }
body[data-page="cosmological-deities"] h2.section-head { color: #0d7377; border-bottom: 3px solid #d4af37; padding-bottom: 0.5rem; }
body[data-page="cosmological-deities"] .divider { background: linear-gradient(90deg, #1a3a52 0%, #d4af37 50%, #1a3a52 100%); height: 3px; }
body[data-page="cosmological-deities"] .toc-block { background-color: rgba(13, 115, 119, 0.15); border-left: 6px solid #0d7377; }
body[data-page="cosmological-deities"] .toc-title { color: #1a3a52; font-weight: 600; }
body[data-page="cosmological-deities"] .toc-list li a { color: #0d7377; }
body[data-page="cosmological-deities"] .toc-list li a:hover { color: #d4af37; }
body[data-page="cosmological-deities"] .info-card { border-left: 4px solid #0d7377; background-color: rgba(13, 115, 119, 0.15); }
body[data-page="cosmological-deities"] .info-card h4 { color: #1a3a52; font-weight: 600; }
body[data-page="cosmological-deities"] .blue-block { background-color: rgba(26, 58, 82, 0.08); border-left: 4px solid #d4af37; }
body[data-page="cosmological-deities"] .blue-block .bb-title { color: #0d7377; }
body[data-page="cosmological-deities"] .pull-quote { border-left: 4px solid #d4af37; color: #1a3a52; }
body[data-page="cosmological-deities"] .glyph-marker { color: #0d7377; opacity: 0.4; }
body[data-page="cosmological-deities"] ::-webkit-scrollbar-thumb { background: #0d7377; }

/* HOUSE OF LIFE PAGE */
body[data-page="house-of-life"] {
    --holife-gold: #d4af37;
    --holife-amber: #cc771f;
    --holife-papyrus: #e8dcc4;
    --holife-light: rgba(212, 175, 55, 0.12);
    --holife-dark: rgba(51, 40, 20, 0.08);
    --holife-accent: #4a3728;
}
body[data-page="house-of-life"] .page-header { background: linear-gradient(135deg, #3a2a15 0%, #5a4a30 100%); border-bottom: 4px solid #d4af37; }
body[data-page="house-of-life"] .page-header::before { content: '𓉐 𓂋 𓅱 𓏤 𓇯'; }
body[data-page="house-of-life"] .page-title { color: #d4af37; text-shadow: 2px 2px 8px rgba(58, 42, 21, 0.6); }
body[data-page="house-of-life"] .page-subtitle { color: #e8dcc4; opacity: 0.9; }
body[data-page="house-of-life"] .page-epithet { color: #cc771f; font-style: italic; opacity: 0.85; }
body[data-page="house-of-life"] h2.section-head { color: #cc771f; border-bottom: 3px solid #d4af37; padding-bottom: 0.5rem; }
body[data-page="house-of-life"] .divider { background: linear-gradient(90deg, #4a3728 0%, #d4af37 50%, #4a3728 100%); height: 3px; }
body[data-page="house-of-life"] .toc-block { background-color: rgba(212, 175, 55, 0.12); border-left: 6px solid #cc771f; }
body[data-page="house-of-life"] .toc-title { color: #4a3728; font-weight: 600; }
body[data-page="house-of-life"] .toc-list li a { color: #cc771f; }
body[data-page="house-of-life"] .toc-list li a:hover { color: #d4af37; }
body[data-page="house-of-life"] .info-card { border-left: 4px solid #cc771f; background-color: rgba(212, 175, 55, 0.12); }
body[data-page="house-of-life"] .info-card h4 { color: #4a3728; font-weight: 600; }
body[data-page="house-of-life"] .blue-block { background-color: rgba(51, 40, 20, 0.08); border-left: 4px solid #d4af37; }
body[data-page="house-of-life"] .blue-block .bb-title { color: #cc771f; }
body[data-page="house-of-life"] .pull-quote { border-left: 4px solid #d4af37; color: #4a3728; }
body[data-page="house-of-life"] .glyph-marker { color: #cc771f; opacity: 0.4; }
body[data-page="house-of-life"] ::-webkit-scrollbar-thumb { background: #cc771f; }

/* FUNERARY TEXTS PAGE */
body[data-page="funerary-texts"] {
    --funerary-purple: #4a2a6a;
    --funerary-gold: #d4af37;
    --funerary-dark: #2a1840;
    --funerary-light: rgba(74, 42, 106, 0.12);
    --funerary-dust: #8b7a6b;
    --funerary-accent: #c9a961;
}
body[data-page="funerary-texts"] .page-header { background: linear-gradient(135deg, #1a0f30 0%, #4a2a6a 100%); border-bottom: 4px solid #d4af37; }
body[data-page="funerary-texts"] .page-header::before { content: '𓉐 𓂋 𓏏 𓅓 𓉔 𓂋 𓅱'; }
body[data-page="funerary-texts"] .page-title { color: #d4af37; text-shadow: 2px 2px 8px rgba(26, 15, 48, 0.8); }
body[data-page="funerary-texts"] .page-subtitle { color: #c9a961; opacity: 0.9; }
body[data-page="funerary-texts"] h2.section-head { color: #c9a961; border-bottom: 3px solid #d4af37; padding-bottom: 0.5rem; }
body[data-page="funerary-texts"] .divider { background: linear-gradient(90deg, #2a1840 0%, #d4af37 50%, #2a1840 100%); height: 3px; }
body[data-page="funerary-texts"] .toc-block { background-color: rgba(74, 42, 106, 0.12); border-left: 6px solid #4a2a6a; }
body[data-page="funerary-texts"] .toc-title { color: #4a2a6a; font-weight: 600; }
body[data-page="funerary-texts"] .toc-list li a { color: #4a2a6a; }
body[data-page="funerary-texts"] .toc-list li a:hover { color: #d4af37; }
body[data-page="funerary-texts"] .info-card { border-left: 4px solid #4a2a6a; background-color: rgba(74, 42, 106, 0.12); }
body[data-page="funerary-texts"] .info-card h4 { color: #4a2a6a; font-weight: 600; }
body[data-page="funerary-texts"] .blue-block { background-color: rgba(42, 24, 64, 0.08); border-left: 4px solid #d4af37; }
body[data-page="funerary-texts"] .blue-block .bb-title { color: #c9a961; }
body[data-page="funerary-texts"] .pull-quote { border-left: 4px solid #d4af37; color: #4a2a6a; }
body[data-page="funerary-texts"] .glyph-marker { color: #d4af37; opacity: 0.4; }
body[data-page="funerary-texts"] ::-webkit-scrollbar-thumb { background: #4a2a6a; }

/* ============================================================
   GRECO-ROMAN DIVISION — ADDITIONS (carried over from Antiquity)
   Tier badges, timeline, and article index.
   Designed in the same gold/cyan-on-dark aesthetic as above.
   ============================================================ */

/* TIER LINE — centred row directly under the page header */
.tier-line {
    text-align: center;
    margin: -2rem auto 2.5rem;
    max-width: 1000px;
    padding: 0 1rem;
}

/* TIER BADGE — small-caps pill/badge, letter-spaced */
.tier-badge {
    display: inline-block;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.35rem 1.1rem 0.3rem;
    border: 1px solid var(--gold-dim);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(20,18,10,0.8);
    white-space: nowrap;
}
.tier-badge.tier-a,
.tier-a {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(212,175,55,0.06);
    box-shadow: 0 0 12px rgba(212,175,55,0.08);
}
.tier-badge.tier-b,
.tier-b {
    border-color: var(--cyan-dim);
    color: var(--cyan);
    background: rgba(0,209,255,0.05);
    box-shadow: 0 0 12px rgba(0,209,255,0.08);
}
.tier-badge.tier-c,
.tier-c {
    border-color: var(--violet-dim);
    color: var(--violet);
    background: rgba(199,125,255,0.05);
    box-shadow: 0 0 12px rgba(199,125,255,0.08);
}

/* TIMELINE — chronological entries: date column + body */
.timeline {
    max-width: 900px;
    margin: 2rem auto;
    text-align: left;
    border-left: 1px solid rgba(212,175,55,0.2);
    padding-left: 0;
}
.tl-entry {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1.1rem 0 1.1rem 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tl-entry:last-child { border-bottom: none; }
.tl-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 1.55rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--gold-dim);
}
.tl-entry:hover::before { background: var(--gold); border-color: var(--gold); }
.tl-date {
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    color: var(--gold-dim);
    letter-spacing: 0.08em;
    line-height: 1.5;
    padding-top: 0.15rem;
    text-align: right;
    word-break: keep-all;
}
.tl-body { min-width: 0; }
.tl-body h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--text-bright);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.tl-body p { font-size: 0.93rem; margin-bottom: 0.6rem; opacity: 0.9; }
.tl-body p:last-child { margin-bottom: 0; }
@media(max-width:640px) {
    .timeline { border-left: none; margin: 1.5rem 0; }
    .tl-entry {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: 1rem 0 1rem 1.2rem;
        border-left: 1px solid rgba(212,175,55,0.2);
    }
    .tl-entry::before { left: -5px; top: 1.35rem; }
    .tl-date { text-align: left; padding-top: 0; }
}

/* ARTICLE INDEX — grid of link cards for the hub index */
.article-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}
@media(max-width:640px) { .article-index { grid-template-columns: 1fr; } }
.ai-card {
    display: block;
    background: rgba(15,13,8,0.9);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 1.2rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.3s, background 0.3s, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.ai-card:hover {
    border-color: rgba(212,175,55,0.5);
    background: rgba(20,18,10,0.95);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.08);
}
.ai-card .ai-title {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.ai-card .tier-line {
    text-align: left;
    margin: 0 0 0.6rem;
    padding: 0;
    max-width: none;
}
.ai-card .ai-desc,
.ai-card p {
    display: block;
    font-size: 0.92rem;
    margin: 0;
    opacity: 0.88;
    line-height: 1.6;
}
.ai-card .tier-badge { font-size: 0.8rem; padding: 0.2rem 0.8rem 0.15rem; }


/* ============================================================
   GRECO-ROMAN DIVISION — FLAVOUR
   A single meander-key ornament centred on the divider rule.
   The ornament is absolutely positioned (out of flow) on a
   background-matched ground, so the divider keeps its exact
   height, margins, and gradient — layout is unchanged.
   ============================================================ */
.divider { position: relative; }
.divider::after {
    content: '· Ω ·';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 0 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.3rem;
    line-height: 1;
    color: var(--gold-dim);
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================================
   HUB NAVIGATION — cross-hub menu on the hub index pages.
   Navigation pass: one furniture block in the house style —
   gold-ruled box, VT323 link row, cyan links, gold current hub.
   ============================================================ */
.hub-nav {
    border: 1px solid rgba(212,175,55,0.25);
    background: rgba(20,18,10,0.8);
    padding: 1rem 1.5rem 1.1rem;
    margin: 0 auto 2.5rem;
    max-width: 800px;
    text-align: center;
}
.hub-nav-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.6rem;
}
.hub-nav-title:not(:first-child) { margin-top: 1.1rem; }
.hub-nav-row {
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    line-height: 1.7;
}
.hub-nav-row a { color: var(--cyan); text-decoration: none; }
.hub-nav-row a:hover { color: #00ffae; }
.hub-nav-current { color: var(--gold); }
.hub-nav-sep { color: var(--gold-dim); margin: 0 0.55rem; }

/* ============================================================
   SITE SEARCH BAR — the .site-search form at the top of every
   page in every hub (see egyptology/GEMINI.md, Technical
   Conventions §4). One identical block in each hub stylesheet.
   ============================================================ */
.site-search {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}
.site-search input {
    flex: 1;
    min-width: 0;
    background: var(--bg2);
    border: 1px solid var(--gold-dim);
    color: var(--text-bright);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1rem;
    padding: 0.55rem 0.9rem;
}
.site-search input::placeholder { color: var(--text); opacity: 0.55; }
.site-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}
.site-search button {
    background: rgba(20,18,10,0.4);
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
}
.site-search button:hover { background: var(--gold-glow); border-color: var(--gold); }
