/* ==========================================================================
   row-empire.html page styles (loaded after /style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: full-bleed key art, content anchored bottom-left over a scrim
   -------------------------------------------------------------------------- */

.re-hero {
    position: relative;
    min-height: max(620px, 100svh);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.re-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 26%;
}

.re-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--bg-dark) 0%, rgba(13, 13, 17, 0.9) 16%, rgba(13, 13, 17, 0.4) 48%, rgba(13, 13, 17, 0.34) 100%),
        linear-gradient(to right, rgba(13, 13, 17, 0.78) 0%, rgba(13, 13, 17, 0.42) 40%, rgba(13, 13, 17, 0.04) 72%);
}

.re-hero-content {
    position: relative;
    width: 100%;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: clamp(64px, 10vh, 112px);
}

.re-hero-content h1 {
    max-width: 14ch;
    margin-bottom: 0.4em;
}

.re-hero-content .lede {
    max-width: 44ch;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Faction duo: figures inside the shot grid
   -------------------------------------------------------------------------- */

.re-duo figure {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Era strip: three stages, each opening with a gold tick on a shared rule
   -------------------------------------------------------------------------- */

.re-eras {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4.5vw, 56px);
    margin-top: clamp(40px, 6vw, 64px);
}

.re-era {
    position: relative;
    padding-top: 24px;
}

.re-era::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.re-era::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 38px;
    height: 3px;
    background: var(--accent);
}

.re-era h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35em;
}

.re-era p {
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Raft vs trireme: two stacked entries inside one panel
   -------------------------------------------------------------------------- */

.re-boat {
    padding: clamp(24px, 3.2vw, 34px) clamp(24px, 3.5vw, 38px);
}

.re-boat + .re-boat {
    border-top: 1px solid var(--line);
}

.re-boat h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4em;
}

.re-boat p {
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Siege rows: sparse two-column hairline grid
   -------------------------------------------------------------------------- */

.re-siege {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(36px, 5.5vw, 80px);
    margin-top: clamp(28px, 4.5vw, 44px);
}

.re-siege > div {
    border-top: 1px solid var(--line);
    padding-block: 20px 26px;
}

.re-siege h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3em;
}

.re-siege p {
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Wilderness / economy pair: two uneven columns under gold rules
   -------------------------------------------------------------------------- */

.re-pair {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 5.5vw, 80px);
}

.re-pair > div {
    border-top: 2px solid var(--accent);
    padding-top: 26px;
}

.re-pair p {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Opponent doctrine: staggered display-type statements
   -------------------------------------------------------------------------- */

.re-doctrine {
    list-style: none;
    margin: clamp(36px, 5vw, 56px) 0 0;
    padding: 0;
    display: grid;
    gap: clamp(22px, 3.2vw, 32px);
}

.re-doctrine li {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.9vw, 1.4rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 46ch;
    border-left: 2px solid var(--accent);
    padding-left: clamp(16px, 2.5vw, 28px);
}

.re-doctrine li:nth-child(2) {
    margin-left: min(6vw, 72px);
}

.re-doctrine li:nth-child(3) {
    margin-left: min(12vw, 144px);
}

.re-doctrine li:nth-child(4) {
    margin-left: min(18vw, 216px);
}

/* --------------------------------------------------------------------------
   Status section
   -------------------------------------------------------------------------- */

.re-contact .lede {
    margin-bottom: 30px;
}

.re-next {
    margin-top: clamp(48px, 7vw, 80px);
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .re-hero {
        min-height: max(560px, 94svh);
    }

    .re-hero-art {
        object-position: 57% 24%;
    }

    .re-hero-scrim {
        background:
            linear-gradient(to top, var(--bg-dark) 0%, rgba(13, 13, 17, 0.78) 26%, rgba(13, 13, 17, 0.3) 58%, rgba(13, 13, 17, 0.46) 100%);
    }

    .re-eras {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .re-siege {
        grid-template-columns: minmax(0, 1fr);
    }

    .re-pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .re-doctrine li:nth-child(2),
    .re-doctrine li:nth-child(3),
    .re-doctrine li:nth-child(4) {
        margin-left: 0;
    }
}
