/* ── God pages (names-strip families) ─────────────────────────────
   Shared styles for the god/aspect pages: Hera, Hermes, and the
   goetic daemon family. Extracted verbatim from HP's page exports;
   previously duplicated inline in each page.                       */

/* Linear B glyphs (Noto Sans Linear B is linked per-page) */
.linear-b {
            font-family: 'Noto Sans Linear B', sans-serif;
        }

/* Hieratic data boxes */
/* Only what -base.css doesn't already provide */
    .hieratic-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5em;
        margin: 2em 0;
    }

    .hieratic-box {
        border: 1px solid var(--border-container-small);
        padding: 1.2em 1.4em;
        border-radius: 6px;
        background: var(--bg-container-small);
    }

    .hieratic-box h3 {
        margin-top: 0;
        border-bottom: 1px solid var(--border-container-small);
        padding-bottom: 0.5em;
        margin-bottom: 0.8em;
        border-top: none;
    }

    /* .hieratic-box ul { */
    /*     list-style: none; */
    /*     padding: 0; */
    /*     margin: 0; */
    /* } */

    /* .hieratic-box li { */
    /*     padding: 0.25em 0; */
    /* } */

    .source-note {
        font-size: 0.9em;
        color: var(--text-faded);
        margin-top: 0.3em;
    }

/* The Names in the Aeons strip */
.names-strip {
        --strip-item-min: 122px;
        --strip-aspect: 3 / 4;
        --strip-title-size: 12px;

        display: grid;
        position: relative;
        max-width: var(--pageWidth);
        margin: 2.2rem auto 2.6rem;
        padding: 1.4rem 1.2rem 1.2rem;
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(var(--strip-item-min), 1fr));
        justify-content: center;
        border: 1px solid var(--border-container-small);
        border-radius: 16px;
        background-color: var(--bg-container-small);
    }

    .names-strip-heading {
        grid-column: 1 / -1;
        margin: 0 0 0.4rem;
        padding: 0 0 0.85rem;
        border: 0;
        font-family: Mate, serif;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 3px;
        text-align: center;
        text-transform: uppercase;
        color: transparent;
        background-image: var(--shimmer-gold-text);
        -webkit-background-clip: text;
        background-clip: text;
        background-size: 200% auto;
    }

    .names-strip-divider {
        grid-column: 1 / -1;
        height: 1px;
        margin: 0 0 0.9rem;
        background: linear-gradient(
            to right,
            transparent 0%,
            var(--border-color) 20%,
            var(--border-color) 80%,
            transparent 100%
        );
    }

    .names-strip .strip-cell {
        position: relative;
        aspect-ratio: var(--strip-aspect);
        border-radius: 6px;
        background-color: #000;
        transition: box-shadow 0.35s ease, transform 0.35s ease;
    }

    .names-strip .strip-cell:hover {
        z-index: 20;
        box-shadow: 0 4px 22px 2px rgba(219, 166, 67, 0.35), 0 0 12px rgba(234, 206, 153, 0.25);
        transform: translateY(-2px);
    }

    .names-strip .strip-link {
        display: block;
        position: relative;
        overflow: hidden;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        border: 1px solid var(--border-container-small);
        border-radius: inherit;
        color: var(--secondary);
        text-decoration: none;
        background-image: none;
        transition: border-color 0.35s ease;
    }

    .names-strip .strip-cell:hover .strip-link,
    .names-strip .strip-cell.current .strip-link {
        border-color: var(--secondary-dark);
    }

    .names-strip .strip-link:hover {
        color: var(--secondary);
        background-image: none;
    }

    .names-strip .strip-link::after { display: none; }

    .names-strip .strip-image {
        position: absolute;
        inset: 0;
        background-repeat: no-repeat;
        background-position: var(--bg-position, 50% 50%);
        background-size: cover;
        opacity: 0.95;
        transform: scale(1);
        transition: transform 0.6s ease, opacity 0.35s ease, filter 0.35s ease;
        filter: saturate(0.85) brightness(0.85);
        will-change: transform;
    }

    .names-strip .strip-image.fit {
        /* fill the cell like every other thumb — no letterbox bars
           (was `contain`, which produced black borders around
           odd-aspect thumbnails) */
        background-size: cover;
        background-color: #0a0a0a;
    }

    .names-strip .strip-cell:hover .strip-image {
        opacity: 1;
        transform: scale(1.04);
        filter: saturate(1.05) brightness(1);
    }

    .names-strip .strip-scrim {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.65) 28%,
            rgba(0, 0, 0, 0.15) 60%,
            rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
    }

    .names-strip .strip-title {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px 8px 10px;
        font-family: Cinzel, serif;
        font-size: var(--strip-title-size);
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--secondary);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    }

    .names-strip .strip-cell.current {
        box-shadow: 0 4px 22px 2px rgba(219, 166, 67, 0.35), 0 0 12px rgba(234, 206, 153, 0.25);
    }

    .names-strip .strip-cell.current .strip-image {
        opacity: 1;
        filter: saturate(1.1) brightness(1);
    }

    .names-strip .strip-cell.current .strip-title {
        color: transparent;
        background-image: var(--shimmer-gold-text);
        -webkit-background-clip: text;
        background-clip: text;
        background-size: 200% auto;
        animation: textGradient 4s ease-out 1;
    }

    /* Hover popover */
    .names-strip .strip-pop {
        position: absolute;
        left: 50%;
        bottom: calc(100% + 10px);
        width: 280px;
        max-width: 85vw;
        padding: 12px 14px 13px;
        border: 1px solid var(--secondary-dark);
        border-radius: 6px;
        background: rgba(10, 10, 10, 0.96);
        box-shadow: 0 6px 28px 2px rgba(219, 166, 67, 0.35), 0 0 14px rgba(234, 206, 153, 0.22);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 4px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        pointer-events: none;
        z-index: 30;
    }

    .names-strip .strip-pop::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 10px;
        height: 10px;
        transform: translateX(-50%) rotate(45deg);
        background: rgba(10, 10, 10, 0.96);
        border-right: 1px solid var(--secondary-dark);
        border-bottom: 1px solid var(--secondary-dark);
    }

    .names-strip .strip-pop .strip-pop-name {
        font-family: Cinzel, serif;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.04em;
        color: var(--secondary-dark);
        text-transform: uppercase;
    }

    .names-strip .strip-pop .strip-pop-culture {
        margin-top: 2px;
        font-family: Poppins, sans-serif;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-faded);
    }

    .names-strip .strip-pop .strip-pop-desc {
        margin-top: 7px;
        font-family: Poppins, sans-serif;
        font-size: 12.5px;
        line-height: 1.5;
        color: var(--text-color);
    }

    .names-strip .strip-cell:hover .strip-pop {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    /* Edge-aware popover: first column anchors left, last column anchors right */
    .names-strip .strip-cell.edge-left .strip-pop { left: 0; transform: translate(0, 4px); }
    .names-strip .strip-cell.edge-left:hover .strip-pop { transform: translate(0, 0); }
    .names-strip .strip-cell.edge-left .strip-pop::after { left: 24px; }

    .names-strip .strip-cell.edge-right .strip-pop { left: auto; right: 0; transform: translate(0, 4px); }
    .names-strip .strip-cell.edge-right:hover .strip-pop { transform: translate(0, 0); }
    .names-strip .strip-cell.edge-right .strip-pop::after { left: auto; right: 24px; transform: rotate(45deg); }

    /* When near top of strip, flip popover below instead of above */
    .names-strip .strip-cell.flip-down .strip-pop { bottom: auto; top: calc(100% + 10px); }
    .names-strip .strip-cell.flip-down .strip-pop::after {
        bottom: auto; top: -6px;
        border: 0;
        border-left: 1px solid var(--secondary-dark);
        border-top: 1px solid var(--secondary-dark);
    }

    @media (max-width: 768px) {
        .names-strip {
            --strip-item-min: 96px;
            --strip-title-size: 10.5px;
            padding: 1rem 0.8rem 0.9rem;
            gap: 7px;
        }
        .names-strip-heading { font-size: 13px; letter-spacing: 2px; }
        .names-strip .strip-pop { width: 240px; font-size: 12px; }
    }

/* Egyptian hieroglyphs (e.g. Thoth's name in the hieratic boxes).
   Shadow face for the body font, active only for the hieroglyph
   codepoints — everything else keeps the real Poppins. */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/notosansegyptianhieroglyphs/v30/vEF42-tODB8RrNDvZSUmRhcQHzx1s7y_F9-j3qSzEcbEYintdVi99Rg.woff2) format('woff2');
    unicode-range: U+13000-13455, U+13460-143FA;
}
