﻿
:root {
    /* ─── Color tokens ─── */
    --blue: #153481;
    --blue-dark: #0E2360;
    --blue-hover: #1c4096;
    --orange: #f69b2f;
    --navy-text: #1A2340;
    --body-text: #3D4860;
    --muted-text: #5C6478;
    --border: #C8D0DF;
    --border-soft: #DDE3EE;
    --surface: #F4F6FB;
    --pill-bg: #E8EDF5;
    --white: #FFFFFF;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    /* ─── Spacing scale (snap-to) ─── */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 12px;
    --sp-lg: 16px;
    --sp-xl: 20px;
    --sp-2xl: 24px;
    --sp-3xl: 32px;
    --sp-4xl: 40px;
    --sp-5xl: 48px;
    --sp-6xl: 64px;
    /* ─── Radius scale ─── */
    --radius-card: 12px;
    --radius-nested: 8px;
    --radius-chip: 6px;
    --radius-pill: 9999px;
    --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #153481;
}

.policy-escape *,
.policy-escape *::before,
.policy-escape *::after {
    box-sizing: border-box;
}

.policy-escape {
    font-family: var(--font);
    color: var(--navy-text);
    background: var(--white);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

    /* ── HARD RESET ── */
    .policy-escape ul,
    .policy-escape ol,
    .policy-escape li {
        list-style: none !important;
        list-style-type: none !important;
        list-style-image: none !important;
    }

    .policy-escape ul,
    .policy-escape ol {
        padding-left: 0 !important;
        margin: 0 !important;
    }

    .policy-escape li {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

        .policy-escape li::marker {
            content: '' !important;
            display: none !important;
        }

    .policy-escape a {
        text-decoration: none;
    }

    .policy-escape h1,
    .policy-escape h2,
    .policy-escape h3,
    .policy-escape h4 {
        font-family: var(--font);
        font-weight: 700;
        color: var(--navy-text);
        margin: 0;
        padding: 0;
    }

    .policy-escape p {
        margin: 0;
        padding: 0;
    }

/* ══════════════ Hero ══════════════
           Padding-X matches page gutter at every breakpoint so breadcrumb aligns with content below. */
.nrgr-hero {
    background-color: var(--blue);
    padding: var(--sp-4xl) var(--sp-2xl);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nrgr-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    z-index: 1;
}

.nrgr-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    border-radius: 50%;
    opacity: .18;
    z-index: 2;
    filter: blur(20px);
    pointer-events: none;
}

.nrgr-hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange);
    z-index: 4;
}

.nrgr-hero-content {
    position: relative;
    z-index: 3;
}

.nrgr-hero-crumb {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.02em;
    margin-bottom: var(--sp-sm);
    line-height: 1.4;
}

    .nrgr-hero-crumb  a {
        color: rgba(255, 255, 255, 0.62);
        text-decoration: none;
        transition: color .15s;
    }

        .nrgr-hero-crumb  a:hover {
            color: rgba(255, 255, 255, 0.95);
        }

.nrgr-hero-crumb__sep {
    margin: 0 var(--sp-sm);
    opacity: 0.55;
}

.nrgr-hero h1 {
    font-size: 30px !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: var(--white) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

.nrgr-hero p.nrgr-hero-subtitle {
    margin-top: var(--sp-sm) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.5 !important;
    max-width: 640px;
}

/* Defensive: sticky breaks if any ancestor has overflow:hidden.
           Force visible on our own wrappers to immunize against host CSS. */
.policy-escape {
    overflow: visible;
}

.policy-page {
    background: var(--white);
    padding: var(--sp-3xl) var(--sp-2xl) var(--sp-4xl);
    width: 100%;
    overflow: visible;
}

/* Body grid — gap is the same as gap between sidebar cards */
.nrgr-page-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
    align-items: start;
}

/* ══════════════ Sidebar ══════════════ */
.nrgr-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.nrgr-sidebar-card {
    border-radius: var(--radius-card);
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--sp-lg);
}

/* On This Page — white card, SAME border as content card. Matches the page. */
.nrgr-sidebar-card--anchors {
    background: var(--white);
    border: 1px solid var(--border);
}

    .nrgr-sidebar-card--anchors .nrgr-sidebar-label {
        color: var(--blue);
        border-bottom-color: var(--pill-bg);
    }

/* Explore — tinted blue surface */
.nrgr-sidebar-card--pages {
    background: var(--pill-bg);
    border: 1px solid var(--border-soft);
}

    .nrgr-sidebar-card--pages .nrgr-sidebar-label {
        color: var(--blue);
        border-bottom-color: rgba(21, 52, 129, 0.12);
    }

.nrgr-sidebar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: var(--sp-md);
    padding-bottom: var(--sp-md);
    border-bottom: 1px solid;
}

/* On This Page nav — tinted chip pills */
.nrgr-sidebar-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
}

    .nrgr-sidebar-nav li {
        margin: 0;
    }

    .nrgr-sidebar-nav  a {
        display: inline-flex;
        align-items: center;
        gap: var(--sp-sm);
        font-size: 12px;
        font-weight: 500;
        color: var(--navy-text);
        text-decoration: none;
        padding: 5px 10px;
        border-radius: var(--radius-chip);
        background: var(--surface);
        border: 1px solid transparent;
        line-height: 1.35;
        transition: background .15s, color .15s, border-color .15s;
    }

        .nrgr-sidebar-nav  a:hover {
            background: var(--pill-bg);
            color: var(--blue);
        }

        .nrgr-sidebar-nav  a:focus-visible {
            outline: none;
            box-shadow: var(--focus-ring);
        }

        .nrgr-sidebar-nav  a.active {
            background: var(--blue);
            color: var(--white);
            border-color: var(--blue);
            font-weight: 600;
        }

/* Explore list — page-link style on tinted blue card */
.nrgr-sidebar-card--pages  .list-group-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-text);
    background: transparent;
    border-radius: var(--radius-nested) !important;
    padding: var(--sp-sm) !important;
    min-height: 36px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}

    .nrgr-sidebar-card--pages  .list-group-item::before {
        content: '';
        width: 4px;
        height: 4px;
        background: rgba(21, 52, 129, 0.28);
        border-radius: 50%;
        flex-shrink: 0;
        margin-right: var(--sp-md);
        transition: background .15s, transform .15s, width .15s, height .15s;
    }

    .nrgr-sidebar-card--pages  .list-group-item:hover {
        background: rgba(255, 255, 255, 0.6);
        color: var(--blue);
        text-decoration: none;
    }

        .nrgr-sidebar-card--pages  .list-group-item:hover::before {
            background: var(--blue);
        }

    .nrgr-sidebar-card--pages  .list-group-item.active {
        background: var(--white) !important;
        color: var(--blue) !important;
        font-weight: 700;
        border-color: transparent !important;
        box-shadow: 0 1px 2px rgba(21, 52, 129, 0.06);
    }

        .nrgr-sidebar-card--pages  .list-group-item.active::before {
            background: var(--blue);
            width: 5px;
            height: 5px;
        }

    .nrgr-sidebar-card--pages  .list-group-item:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

/* External link items in the Resources Explore sidebar */
.nrgr-sidebar-card--pages  .list-group-item--external {
    justify-content: space-between;
    color: var(--body-text);
}

    .nrgr-sidebar-card--pages  .list-group-item--external::before {
        display: none;
    }

    .nrgr-sidebar-card--pages  .list-group-item--external:hover {
        color: var(--blue);
    }

.nrgr-external-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.5;
    color: currentColor;
    transition: opacity .15s;
}

.list-group-item--external:hover .nrgr-external-icon {
    opacity: 1;
}

/* Divider between internal and external links in sidebar */
.nrgr-sidebar-divider {
    height: 1px;
    background: rgba(21, 52, 129, 0.12);
    margin: var(--sp-sm) 0;
}

/* ══════════════ Content card ══════════════
           max-width caps the card so paragraphs don't sprawl on very wide monitors.
           Card sits flush-left in its grid cell. */
.nrgr-content-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    max-width: 1100px;
}


/* Section vertical rhythm — uniform gap of sp-2xl between section content */
.nrgr-policy-section {
    padding: var(--sp-2xl);
}

    .nrgr-policy-section + .nrgr-policy-section {
        padding-top: 0;
    }

    .nrgr-policy-section:last-child {
        padding-bottom: var(--sp-2xl);
    }

/* Section internal rhythm — icon→title→body all = sp-xl */
.nrgr-section-header {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
}

.nrgr-section-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}

    .nrgr-section-icon svg {
        width: 20px;
        height: 20px;
    }

.nrgr-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--blue) !important;
    line-height: 1.4;
    margin: 0 !important;
}

/* ══════════════ Body text ══════════════ */
.nrgr-policy-text {
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.7;
    margin-bottom: var(--sp-md);
}

    .nrgr-policy-text:last-child {
        margin-bottom: 0;
    }

    .nrgr-policy-text strong {
        color: var(--navy-text);
        font-weight: 600;
    }

    .nrgr-policy-text a {
        color: var(--blue);
        font-weight: 500;
        text-decoration: none;
    }

        .nrgr-policy-text a:hover {
            text-decoration: underline;
        }

    .nrgr-policy-text em {
        font-style: italic;
    }

/* ══════════════ Bullet list ══════════════ */
.nrgr-policy-list {
    margin: var(--sp-md) 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

    .nrgr-policy-list li {
        display: flex;
        align-items: baseline;
        gap: var(--sp-md);
        font-size: 14px;
        color: var(--body-text);
        line-height: 1.7;
        margin: 0 !important;
        padding: 0 !important;
    }

        .nrgr-policy-list li::before {
            content: '' !important;
            width: 5px;
            height: 5px;
            min-width: 5px;
            background: var(--orange);
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: var(--sp-sm);
            display: block !important;
        }

        .nrgr-policy-list li .nrgr-list-text {
            flex: 1;
            min-width: 0;
        }

        .nrgr-policy-list li strong {
            color: var(--navy-text);
            font-weight: 600;
        }

        .nrgr-policy-list li a {
            color: var(--blue);
            font-weight: 500;
            text-decoration: none;
            display: inline;
        }

            .nrgr-policy-list li a:hover {
                text-decoration: underline;
            }

/* ══════════════ Callout ══════════════ */
.nrgr-callout {
    background: var(--surface);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius-chip) var(--radius-chip) 0;
    padding: var(--sp-md) var(--sp-lg);
    margin-top: var(--sp-lg);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.nrgr-callout-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--blue);
}

.nrgr-callout p {
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.nrgr-callout strong {
    color: var(--navy-text);
    font-weight: 600;
}

.nrgr-callout a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
}

    .nrgr-callout a:hover {
        text-decoration: underline;
    }

/* ══════════════ Photo: side-by-side pair ══════════════
       Full-bleeds out to match the content card edges. Margins are negative
       padding values so it always lines up regardless of breakpoint. */
.nrgr-photo-pair {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 200px;
    width: calc(100% + (var(--sp-2xl) * 2));
    margin: 0 calc(var(--sp-2xl) * -1) var(--sp-xl);
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-nested);
}

    .nrgr-photo-pair::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent, var(--white));
        z-index: 2;
        pointer-events: none;
    }

.nrgr-photo-pair-item {
    overflow: hidden;
}

    .nrgr-photo-pair-item:first-child {
        border-right: 2px solid var(--white);
    }

    .nrgr-photo-pair-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: saturate(0.82) brightness(0.96);
        transition: filter .35s ease;
    }

    .nrgr-photo-pair-item:hover img {
        filter: saturate(1) brightness(1);
    }

/* ══════════════ Photo: full-bleed single ══════════════ */
.nrgr-photo-fullbleed {
    width: calc(100% + (var(--sp-2xl) * 2));
    margin: 0 calc(var(--sp-2xl) * -1) var(--sp-xl);
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-nested);
}

    .nrgr-photo-fullbleed::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent, var(--white));
        pointer-events: none;
    }

    .nrgr-photo-fullbleed img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: saturate(0.82) brightness(0.96);
    }

.nrgr-photo-fullbleed--tall {
    height: 240px;
}

.nrgr-photo-fullbleed--medium {
    height: 190px;
}

/* ══════════════ Responsive ══════════════
       Spacing scale doesn't change values — only WHICH tokens are used.
       This keeps the rhythm visually proportional at every breakpoint. */

@media (max-width: 767px) {
    .nrgr-hero {
        padding: var(--sp-3xl) var(--sp-2xl) var(--sp-2xl);
        min-height: 0;
    }

        .nrgr-hero::after {
            top: -100px;
            right: -160px;
            width: 380px;
            height: 380px;
        }

        .nrgr-hero h1 {
            font-size: 24px !important;
        }

    .nrgr-hero-crumb {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .nrgr-hero {
        padding: var(--sp-5xl) var(--sp-3xl);
    }

    .nrgr-page-body {
        gap: var(--sp-2xl);
    }

    .nrgr-sidebar {
        gap: var(--sp-md);
    }

    .nrgr-sidebar-card {
        flex: 1 1 200px;
    }

    .policy-page {
        padding: var(--sp-4xl) var(--sp-3xl) var(--sp-5xl);
    }

    .nrgr-policy-section {
        padding: var(--sp-3xl);
    }

        .nrgr-policy-section:last-child {
            padding-bottom: var(--sp-3xl);
        }

    .nrgr-photo-pair {
        width: calc(100% + (var(--sp-3xl) * 2));
        margin: 0 calc(var(--sp-3xl) * -1) var(--sp-2xl);
        height: 220px;
    }

    .nrgr-photo-fullbleed {
        width: calc(100% + (var(--sp-3xl) * 2));
        margin: 0 calc(var(--sp-3xl) * -1) var(--sp-2xl);
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .nrgr-hero {
        padding: var(--sp-6xl) var(--sp-4xl) var(--sp-5xl);
    }

    .nrgr-page-body {
        grid-template-columns: 220px 1fr;
        gap: var(--sp-3xl);
    }

    .nrgr-sidebar {
        position: sticky;
        top: 88px; /* host's fixed header ~70px + 16px breathing room */
        flex-direction: column;
        gap: var(--sp-md);
        max-height: calc(100vh - 104px); /* viewport minus header offset minus small bottom buffer */
        overflow-y: auto; /* if sidebar is taller than viewport, scroll inside */
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

        .nrgr-sidebar::-webkit-scrollbar {
            width: 4px;
        }

        .nrgr-sidebar::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 2px;
        }

    .nrgr-sidebar-card {
        flex: none;
    }

    .nrgr-sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: var(--sp-xs);
    }

        .nrgr-sidebar-nav li {
            width: 100%;
        }

        .nrgr-sidebar-nav a {
            width: 100%;
            font-size: 13px;
            min-height: 32px;
        }

    .policy-page {
        padding: var(--sp-5xl) var(--sp-2xl);
    }

    .nrgr-policy-section {
        padding: var(--sp-4xl);
    }

        .nrgr-policy-section:last-child {
            padding-bottom: var(--sp-4xl);
        }

    .nrgr-photo-pair {
        width: calc(100% + (var(--sp-4xl) * 2));
        margin: 0 calc(var(--sp-4xl) * -1) var(--sp-2xl);
        height: 240px;
    }

    .nrgr-photo-fullbleed {
        width: calc(100% + (var(--sp-4xl) * 2));
        margin: 0 calc(var(--sp-4xl) * -1) var(--sp-2xl);
        height: 220px;
    }

    .nrgr-photo-fullbleed--tall {
        height: 280px;
    }

    .nrgr-photo-fullbleed--medium {
        height: 200px;
    }
}

@media (min-width: 1280px) {
    .nrgr-page-body {
        grid-template-columns: 240px 1fr;
        gap: var(--sp-4xl);
    }
}


/* ── Anchor scroll offset for top-level sections AND phase blocks ── */
.policy-escape [id="nimh-guidance"],
.policy-escape [id="submission-budget"],
.policy-escape [id="phase-1"],
.policy-escape [id="phase-2"],
.policy-escape [id="phase-3"],
.policy-escape [id="phase-4"] {
    scroll-margin-top: 88px;
}
