:root{
    --hep-res-navy:#0b1b2d;
    --hep-res-navy-2:#123252;
    --hep-res-blue:#1f63a8;
    --hep-res-orange:#ff7425;
    --hep-res-green:#20bf8b;
    --hep-res-purple:#8d7cff;
    --hep-res-text:#12345f;
    --hep-res-muted:#687d96;
    --hep-res-border:#dbe6f0;
    --hep-res-soft:#f5f9fd;
}

body.hep-public-resources-page{
    margin:0;
    background:#fff;
    color:var(--hep-res-text);
}

.hep-res-main{
    min-height:70vh;
}

.hep-res-hero{
    position:relative;
    overflow:hidden;
    padding:72px 0 54px;
    background:
        radial-gradient(circle at 80% 20%,rgba(31,99,168,.12),transparent 30%),
        radial-gradient(circle at 66% 80%,rgba(255,116,37,.10),transparent 28%),
        linear-gradient(180deg,#fff 0%,#f8fbff 100%);
}

.hep-res-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
    align-items:center;
    gap:58px;
}

.hep-res-kicker{
    display:inline-block;
    margin-bottom:12px;
    color:var(--hep-res-orange);
    font-size:12px;
    font-weight:950;
    letter-spacing:.11em;
    text-transform:uppercase;
}

.hep-res-hero h1{
    max-width:760px;
    margin:0;
    color:#0d3268;
    font-size:clamp(38px,5vw,68px);
    line-height:1.02;
    letter-spacing:-.045em;
    font-weight:950;
}

.hep-res-lead{
    max-width:720px;
    margin:24px 0 0;
    color:#617894;
    font-size:19px;
    line-height:1.7;
}

.hep-res-trust{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:24px;
}

.hep-res-trust span{
    padding:8px 11px;
    border:1px solid #dce7f1;
    border-radius:999px;
    background:#fff;
    color:#31597f;
    font-size:12px;
    font-weight:850;
    box-shadow:0 6px 18px rgba(15,53,106,.05);
}

.hep-res-hero-visual{
    display:flex;
    justify-content:center;
}

.hep-res-stack{
    position:relative;
    width:330px;
    height:260px;
}

.hep-res-sheet{
    position:absolute;
    display:flex;
    align-items:flex-start;
    justify-content:flex-end;
    width:210px;
    height:145px;
    padding:18px;
    border-radius:22px;
    color:#fff;
    font-weight:950;
    letter-spacing:.06em;
    box-shadow:0 20px 44px rgba(15,53,106,.18);
}

.hep-res-sheet-a{
    left:18px;
    top:64px;
    transform:rotate(-8deg);
    background:linear-gradient(145deg,#1d65ad,#103d70);
}

.hep-res-sheet-b{
    right:16px;
    top:36px;
    transform:rotate(7deg);
    background:linear-gradient(145deg,#20bf8b,#0c7b5a);
}

.hep-res-sheet-c{
    left:72px;
    top:18px;
    transform:rotate(-1deg);
    background:linear-gradient(145deg,#ff8a31,#ff6515);
}

.hep-res-core{
    position:absolute;
    left:50%;
    top:50%;
    z-index:5;
    display:grid;
    place-items:center;
    width:92px;
    height:92px;
    transform:translate(-50%,-38%);
    border:8px solid rgba(255,255,255,.94);
    border-radius:28px;
    background:#0d3268;
    color:#fff;
    font-size:27px;
    font-weight:950;
    box-shadow:0 18px 34px rgba(7,28,57,.25);
}

.hep-res-section{
    padding:64px 0;
}

.hep-res-section-soft{
    background:var(--hep-res-soft);
}

.hep-res-section-head{
    max-width:760px;
    margin-bottom:26px;
}

.hep-res-section-head h2{
    margin:0;
    color:#10396f;
    font-size:34px;
    line-height:1.15;
    letter-spacing:-.03em;
    font-weight:950;
}

.hep-res-section-head p{
    margin:12px 0 0;
    color:var(--hep-res-muted);
    font-size:16px;
    line-height:1.7;
}

.hep-res-filterbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:30px;
}

.hep-res-filter{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 15px;
    border:1px solid var(--hep-res-border);
    border-radius:13px;
    background:#fff;
    color:#214f7a;
    font-size:13px;
    font-weight:900;
    text-decoration:none !important;
    box-shadow:0 5px 14px rgba(15,53,106,.05);
    transition:.16s ease;
}

.hep-res-filter:hover{
    transform:translateY(-1px);
    border-color:#a9bfd4;
    color:#0d4580;
    box-shadow:0 9px 20px rgba(15,53,106,.09);
}

.hep-res-filter.active{
    border-color:#174c82;
    background:linear-gradient(180deg,#1d5d9c 0%,#123f72 100%);
    color:#fff !important;
    box-shadow:inset 0 -3px 0 var(--hep-res-orange),0 10px 22px rgba(15,53,106,.16);
}

.hep-res-card-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.hep-res-card{
    position:relative;
    overflow:hidden;
    min-height:250px;
    padding:26px;
    border:1px solid var(--hep-res-border);
    border-radius:22px;
    background:#fff;
    box-shadow:0 12px 28px rgba(15,53,106,.07);
}

.hep-res-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg,#1f63a8,#ff7425);
}

.hep-res-card:nth-child(2)::before{
    background:linear-gradient(90deg,#ff7425,#ffc15e);
}
.hep-res-card:nth-child(3)::before{
    background:linear-gradient(90deg,#20bf8b,#6ee0bb);
}
.hep-res-card:nth-child(4)::before{
    background:linear-gradient(90deg,#8d7cff,#c7b7ff);
}

.hep-res-card-icon{
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    margin-bottom:18px;
    border-radius:16px;
    background:#eef5fb;
    font-size:26px;
}

.hep-res-card h3{
    margin:0;
    color:#123c70;
    font-size:20px;
    font-weight:950;
}

.hep-res-card p{
    margin:12px 0 22px;
    color:#6b7f95;
    line-height:1.65;
}

.hep-res-link{
    color:#e8661f !important;
    font-weight:900;
    text-decoration:none !important;
}

.hep-res-empty{
    padding:52px 28px;
    border:1px dashed #c8d8e7;
    border-radius:24px;
    background:#fff;
    text-align:center;
}

.hep-res-empty-icon{
    margin-bottom:12px;
    font-size:46px;
}

.hep-res-empty h3{
    margin:0;
    color:#173f70;
    font-size:24px;
    font-weight:950;
}

.hep-res-empty p{
    max-width:720px;
    margin:12px auto 0;
    color:#6f8298;
    line-height:1.7;
}

.hep-res-admin-note{
    max-width:680px;
    margin:22px auto 0;
    padding:12px 14px;
    border-radius:13px;
    background:#fff5ec;
    color:#a5531c;
    font-size:13px;
    font-weight:850;
}

.hep-res-final{
    padding:0 0 70px;
    background:var(--hep-res-soft);
}

.hep-res-final-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:34px 38px;
    border-radius:26px;
    background:linear-gradient(135deg,#102f54 0%,#0b1b2d 100%);
    box-shadow:0 20px 44px rgba(6,24,46,.16);
}

.hep-res-final-box h2{
    margin:0;
    color:#fff;
    font-size:30px;
    font-weight:950;
}

.hep-res-final-box p{
    margin:10px 0 0;
    color:#c8d7e7;
    line-height:1.6;
}

.hep-res-primary{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:14px;
    background:linear-gradient(180deg,#ff8a31,#ff6d1c);
    color:#fff !important;
    font-weight:950;
    text-decoration:none !important;
    box-shadow:0 12px 24px rgba(255,116,37,.24);
}

html[data-hep-theme="dark"] body.hep-public-resources-page{
    background:#0d2138;
    color:#f3f8fd;
}

html[data-hep-theme="dark"] .hep-res-hero{
    background:
        radial-gradient(circle at 80% 20%,rgba(60,136,209,.14),transparent 30%),
        radial-gradient(circle at 66% 80%,rgba(255,116,37,.10),transparent 28%),
        linear-gradient(180deg,#102742 0%,#0e2239 100%);
}

html[data-hep-theme="dark"] .hep-res-hero h1,
html[data-hep-theme="dark"] .hep-res-section-head h2{
    color:#f7fbff;
}

html[data-hep-theme="dark"] .hep-res-lead,
html[data-hep-theme="dark"] .hep-res-section-head p,
html[data-hep-theme="dark"] .hep-res-card p,
html[data-hep-theme="dark"] .hep-res-empty p{
    color:#bdccdc;
}

html[data-hep-theme="dark"] .hep-res-trust span,
html[data-hep-theme="dark"] .hep-res-filter,
html[data-hep-theme="dark"] .hep-res-card,
html[data-hep-theme="dark"] .hep-res-empty{
    border-color:#315271;
    background:#142f4e;
    color:#eaf3fb;
}

html[data-hep-theme="dark"] .hep-res-card h3,
html[data-hep-theme="dark"] .hep-res-empty h3{
    color:#fff;
}

html[data-hep-theme="dark"] .hep-res-section-soft,
html[data-hep-theme="dark"] .hep-res-final{
    background:#0d2138;
}

html[data-hep-theme="dark"] .hep-res-admin-note{
    background:#3a2a1e;
    color:#ffd0ae;
}

@media(max-width:980px){
    .hep-res-hero-grid{
        grid-template-columns:1fr;
    }
    .hep-res-hero-visual{
        display:none;
    }
    .hep-res-card-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:640px){
    .hep-res-hero{
        padding:42px 0 34px;
    }
    .hep-res-hero h1{
        font-size:40px;
    }
    .hep-res-card-grid{
        grid-template-columns:1fr;
    }
    .hep-res-section{
        padding:42px 0;
    }
    .hep-res-final-box{
        align-items:flex-start;
        flex-direction:column;
        padding:28px 24px;
    }
}