/************************************************************
 * PHOENIX — SEGMENT PAGE (CLUSTER HUB)
 * DESKTOP ONLY — FINAL / GRAPH SAFE
 ************************************************************/

/* =========================================================
   STICKY ENABLEMENT — REQUIRED
========================================================= */

body.single-segment-page,
body.single-segment-page html,
body.single-segment-page main,
body.single-segment-page #content,
body.single-segment-page .phoenix-main,
body.single-segment-page .phoenix-leaf {
    overflow: visible !important;
}

body.single-segment-page #content {
    padding-top: 0;
}

/* =========================================================
   SEGMENT HERO (AUTHORITATIVE, NON-STICKY)
========================================================= */

body.single-segment-page .phoenix-segment-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Overlay — deterministic layout */
body.single-segment-page .phoenix-segment-hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    padding: 64px 56px;

    background: linear-gradient(
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.55)
    );
}

/* =========================================================
   HERO LOGO — FINAL VISUAL POLISH
   (Brand reinforcement, not dominant)
========================================================= */

body.single-segment-page .phoenix-segment-hero-logo {
    position: absolute;
    top: 32px;
    right: 40px;
    z-index: 3;

    padding: 10px 14px;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0.9;
    pointer-events: none;
}

body.single-segment-page .phoenix-segment-hero-logo img {
    height: 44px;          /* visually correct size */
    width: auto;
    display: block;

    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Title — bottom left */
body.single-segment-page .phoenix-segment-title {
    margin-top: auto;

    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 900px;
}

/* =========================================================
   PAGE LAYOUT — EDITORIAL FIRST
========================================================= */

body.single-segment-page .row {
    display: flex;
    align-items: flex-start;
}

/* LEFT COLUMN */
body.single-segment-page .column.left {
    width: calc(100% - 340px);
    padding-top: 56px;
}

/* =========================================================
   RIGHT COLUMN — FLOW + STICKY CARD
========================================================= */

body.single-segment-page .column.right {
    width: 260px;
    margin-left: 80px;
    padding-top: 56px;
}

/* Sticky behavior applies to the CARD */
body.single-segment-page .phoenix-segment-cta {
    position: sticky;
    top: 140px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 18px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    z-index: 10;
}

/* =========================================================
   RIGHT COLUMN CARD CONTENT
========================================================= */

body.single-segment-page .phoenix-segment-cta::before {
    content: "SEGMENT COVERAGE";
    display: block;
    margin-bottom: 14px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

/* CTA button */
body.single-segment-page .phoenix-coverage-btn {
    width: 100%;
    padding: 14px 18px;

    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: #ffffff;

    border: none;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 6px 16px rgba(0,91,181,0.25);
    transition: transform 0.15s ease;
}

body.single-segment-page .phoenix-coverage-btn:hover {
    transform: translateY(-1px);
}

/* =========================================================
   EDITORIAL CONTENT — READABILITY
========================================================= */

body.single-segment-page .phoenix-segment-content {
    max-width: 760px;
}

body.single-segment-page .phoenix-segment-content p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 20px;
    color: #1f2937;
}

body.single-segment-page .phoenix-segment-content h2 {
    font-size: 24px;
    margin-top: 52px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #0b5cff;
    color: #0f172a;
}

body.single-segment-page .phoenix-segment-content h3 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #111827;
}

body.single-segment-page .phoenix-segment-content ul,
body.single-segment-page .phoenix-segment-content ol {
    margin: 22px 0 30px 24px;
}

body.single-segment-page .phoenix-segment-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* =========================================================
   OFF-CANVAS COVERAGE PANEL
========================================================= */

body.single-segment-page .phoenix-segment-panel {
    position: fixed;
    top: 0;
    right: 0;

    width: 440px;
    height: 100vh;

    background: #ffffff;
    box-shadow: -18px 0 36px rgba(0,0,0,0.2);

    z-index: 1200;

    transform: translateX(100%);
    transition: transform 0.35s ease;

    display: flex;
    flex-direction: column;
}

body.segment-panel-open .phoenix-segment-panel {
    transform: translateX(0);
}

/* =========================================================
   FOOTER GAP — HARD KILL
========================================================= */

body.single-segment-page main,
body.single-segment-page .phoenix-main,
body.single-segment-page .phoenix-leaf,
body.single-segment-page .row {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.single-segment-page footer,
body.single-segment-page .phoenix-footer {
    margin-top: 0 !important;
}


/* =========================================================
   EDITORIAL CONTENT — POLISH PASS
========================================================= */

body.single-segment-page .phoenix-segment-content {
    max-width: 760px;
    font-size: 17px;
}

body.single-segment-page .phoenix-segment-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #1f2937;
}

body.single-segment-page .phoenix-segment-content h2 {
    font-size: 26px;
    margin-top: 72px;
    margin-bottom: 20px;

    padding-left: 14px;
    border-left: 4px solid #0b5cff;

    color: #0f172a;
    letter-spacing: 0.01em;
}

body.single-segment-page .phoenix-segment-content h3 {
    font-size: 19px;
    margin-top: 40px;
    margin-bottom: 14px;
    color: #111827;
}

body.single-segment-page .phoenix-segment-content ul,
body.single-segment-page .phoenix-segment-content ol {
    margin: 24px 0 36px 28px;
}

body.single-segment-page .phoenix-segment-content li {
    margin-bottom: 12px;
    line-height: 1.65;
}


/* =========================================================
   COVERAGE PANEL — POLISH
========================================================= */

body.single-segment-page .phoenix-segment-panel {
    padding: 32px 28px;
    overflow-y: auto;
}

body.single-segment-page .phoenix-segment-panel-inner {
    max-width: 100%;
}

/* Panel title */
body.single-segment-page .phoenix-coverage-title {
    font-size: 22px;
    margin-bottom: 24px;
    color: #0f172a;
}


body.single-segment-page .phoenix-coverage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.single-segment-page .phoenix-coverage-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

body.single-segment-page .phoenix-coverage-item a {
    text-decoration: none;
    color: #0b5cff;
    font-size: 15px;
    line-height: 1.5;
}

body.single-segment-page .phoenix-coverage-item a:hover {
    text-decoration: underline;
}


body.single-segment-page .phoenix-panel-close {
    position: sticky;
    top: 0;

    align-self: flex-end;

    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;

    margin-bottom: 16px;
    color: #374151;
}

body.single-segment-page .phoenix-panel-close:hover {
    color: #111827;
}






/* =========================================================
   MOBILE OVERRIDES — SEGMENT PAGE
   ≤ 768px ONLY — FINAL / LOCKED
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       GLOBAL FLOW RESET
    ===================================================== */

    body.single-segment-page .row {
        display: block;
    }

    body.single-segment-page .column.left,
    body.single-segment-page .column.right {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* =====================================================
       HERO — MOBILE SCALE
    ===================================================== */

    body.single-segment-page .phoenix-segment-hero {
        min-height: 300px;
    }

    body.single-segment-page .phoenix-segment-hero-overlay {
        padding: 40px 20px;
    }

    body.single-segment-page .phoenix-segment-title {
        font-size: 28px;
        max-width: 100%;
    }

    body.single-segment-page .phoenix-segment-hero-logo {
        top: 16px;
        right: 16px;
        opacity: 0.55;
    }

    body.single-segment-page .phoenix-segment-hero-logo img {
        height: 32px;
        width: auto;
    }

    /* =====================================================
       EDITORIAL CONTENT — MOBILE RHYTHM
    ===================================================== */

    body.single-segment-page .phoenix-segment-content {
        padding: 32px 20px;
        max-width: 100%;
    }

    body.single-segment-page .phoenix-segment-content h2 {
        font-size: 22px;
        margin-top: 44px;
    }

    body.single-segment-page .phoenix-segment-content h3 {
        font-size: 18px;
    }

    body.single-segment-page .phoenix-segment-content p {
        font-size: 16px;
    }

    /* =====================================================
       COVERAGE CTA — INLINE
    ===================================================== */

    body.single-segment-page .phoenix-segment-cta {
        position: static;
        margin: 24px 20px 0;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    body.single-segment-page .phoenix-coverage-btn {
        font-size: 16px;
        padding: 14px 16px;
    }

    /* =====================================================
       COVERAGE PANEL — BOTTOM DRAWER
    ===================================================== */

    body.single-segment-page .phoenix-segment-panel {
        position: fixed;
        left: 0;
        bottom: 0;
        top: auto;

        width: 100%;
        height: 85vh;

        background: #ffffff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -12px 30px rgba(0,0,0,0.25);

        transform: translateY(100%);
        transition: transform 0.35s ease;

        z-index: 1400;
        overflow: hidden;

        display: flex;
        flex-direction: column;
    }

    body.segment-panel-open .phoenix-segment-panel {
        transform: translateY(0);
    }

    /* =====================================================
       PANEL INNER — SCROLL AREA
    ===================================================== */

    body.single-segment-page .phoenix-segment-panel-inner {
        position: relative;
        flex: 1;
        overflow-y: auto;

        padding: 64px 20px 32px;
        -webkit-overflow-scrolling: touch;
    }

    body.single-segment-page .phoenix-segment-panel-inner::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto 16px;
        background: #d1d5db;
        border-radius: 2px;
    }

    /* =====================================================
       CLOSE BUTTON — SIMPLE FIX (SHIFT LEFT)
    ===================================================== */

    body.single-segment-page .phoenix-panel-close {
        position: absolute;
        top: 16px;

        /* 👇 this is the only fix */
        right: 32px; /* ~0.5 cm inward */

        width: 40px;
        height: 40px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 24px;
        line-height: 1;

        border: none;
        border-radius: 50%;
        background: #ffffff;

        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        color: #374151;
        cursor: pointer;

        z-index: 10;
    }

    body.single-segment-page .phoenix-panel-close:hover {
        color: #111827;
    }

    /* =====================================================
       PANEL CONTENT
    ===================================================== */

    body.single-segment-page .phoenix-coverage-title {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #0f172a;
    }

    body.single-segment-page .phoenix-coverage-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    body.single-segment-page .phoenix-coverage-item {
        padding: 14px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    body.single-segment-page .phoenix-coverage-item a {
        font-size: 15px;
        line-height: 1.5;
        color: #0b5cff;
        text-decoration: none;
        display: block;
    }

    body.single-segment-page .phoenix-coverage-item a:hover {
        text-decoration: underline;
    }

}

























