.resource-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.resource-heading {
    padding: 44px 0 34px;
    background: linear-gradient(135deg, #f8fafc 0%, #f4f1fb 100%);
    border-bottom: 1px solid #e5e7eb;
}

.resource-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 24px;
    color: #64748b;
    font-size: .88rem;
}

.resource-breadcrumb a { color: #3b3289; text-decoration: none; font-weight: 700; }
.resource-breadcrumb a:hover { text-decoration: underline; }

.resource-heading__grid {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.resource-heading__cover {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 210px;
    padding: 12px;
    border-radius: 18px;
    background: #102c45;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.resource-heading__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    background: white;
}

.resource-heading__symbol {
    width: 180px;
    height: 180px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    font-size: 5rem;
    background: linear-gradient(135deg, #241f75, #64239a);
    box-shadow: 0 18px 45px rgba(39, 30, 108, .2);
}

.resource-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-kicker {
    color: #ff6b35;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.resource-access {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: white;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.resource-access--public { background: #0e7490; }
.resource-access--member { background: #d97706; }
.resource-access--soldier { background: #c2410c; }
.resource-access--elder { background: #991b1b; }

.resource-heading h1 {
    max-width: 950px;
    margin: 10px 0 14px;
    color: #183f42;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.04;
}

.resource-heading__summary {
    max-width: 900px;
    margin: 0;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.75;
}

.resource-heading__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    color: #64748b;
    font-size: .86rem;
}

.resource-heading__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.resource-btn,
.resource-reader__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border: 0;
    border-radius: 9px;
    text-decoration: none;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.resource-btn:hover,
.resource-reader__tool:hover { transform: translateY(-1px); }
.resource-btn--primary { background: #241f75; color: white; box-shadow: 0 8px 20px rgba(36, 31, 117, .16); }
.resource-btn--primary:hover { background: #3f2d91; }
.resource-btn--secondary { background: white; color: #241f75; border: 1px solid #cbd5e1; }

.resource-reader-section {
    padding: 34px 0 58px;
    background: #eef2f6;
}

.resource-reader {
    overflow: hidden;
    border: 1px solid #d9e0e8;
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.resource-reader__toolbar {
    min-height: 66px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.resource-reader__toolbar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.resource-reader__toolbar strong { color: #183f42; }
.resource-reader__toolbar span { color: #64748b; font-size: .78rem; }
.resource-reader__toolbar-actions { display: flex; gap: 8px; }
.resource-reader__tool { min-height: 36px; padding: 8px 12px; background: #f1f5f9; color: #334155; }

.resource-reader__stage {
    position: relative;
    height: clamp(650px, calc(100vh - 155px), 1050px);
    background: #374151;
}

.resource-reader__stage:fullscreen,
.resource-reader__stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #374151;
}

.resource-reader__pdf {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
}

.resource-reader__fallback {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 15px;
    padding: 30px;
    color: white;
    text-align: center;
}

.resource-reader__mobile-note {
    padding: 12px 16px;
    color: #64748b;
    background: #f8fafc;
    font-size: .78rem;
    border-top: 1px solid #e5e7eb;
}

.resource-access-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #d9e0e8;
    border-radius: 16px;
    background: white;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.resource-access-panel__icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #f1f5f9;
    font-size: 2rem;
}

.resource-access-panel h2 { margin: 8px 0 10px; color: #183f42; }
.resource-access-panel p { max-width: 760px; color: #64748b; line-height: 1.7; }

.resource-media-player {
    padding: clamp(28px, 5vw, 50px);
    border-radius: 16px;
    background: white;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.resource-media-player h2 { color: #183f42; margin: 8px 0 24px; }
.resource-media-player audio { width: 100%; }
.resource-media-player video { display: block; width: 100%; max-height: 75vh; background: #0f172a; border-radius: 12px; }

.resource-article {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 16px;
    background: white;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.9;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.resource-related {
    padding: 52px 0 62px;
    background: white;
}

.resource-related__heading h2 { margin: 7px 0 24px; color: #183f42; font-size: 2rem; }
.resource-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-related-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: #f8fafc;
    transition: transform .18s ease, box-shadow .18s ease;
}
.resource-related-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(15, 23, 42, .08); }
.resource-related-card__cover { height: 112px; display: grid; place-items: center; background: #102c45; border-radius: 8px; overflow: hidden; }
.resource-related-card__cover img { width: 100%; height: 100%; object-fit: contain; }
.resource-related-card__icon { height: 92px; display: grid; place-items: center; border-radius: 12px; background: #ebe9f7; font-size: 2.4rem; }
.resource-related-card span { color: #ff6b35; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.resource-related-card h3 { margin: 5px 0 0; color: #183f42; font-size: 1rem; line-height: 1.35; }

.resource-state-page { min-height: 60vh; display: grid; place-items: center; padding: 60px 0; background: #f8fafc; }
.resource-state-card { max-width: 650px; padding: 42px; border-radius: 16px; background: white; text-align: center; box-shadow: 0 16px 45px rgba(15, 23, 42, .08); }
.resource-state-card h1 { color: #183f42; margin: 10px 0; }
.resource-state-card p { color: #64748b; line-height: 1.7; margin-bottom: 22px; }

@media (max-width: 820px) {
    .resource-shell { width: min(100% - 24px, 1240px); }
    .resource-heading { padding: 28px 0; }
    .resource-heading__grid { grid-template-columns: 1fr; gap: 22px; }
    .resource-heading__cover { width: min(240px, 70vw); margin: 0 auto; }
    .resource-heading__symbol { width: 120px; height: 120px; font-size: 3.5rem; }
    .resource-reader-section { padding: 18px 0 36px; }
    .resource-reader__toolbar { align-items: flex-start; flex-direction: column; }
    .resource-reader__stage { height: 72vh; min-height: 520px; }
    .resource-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .resource-heading h1 { font-size: 1.8rem; }
    .resource-heading__actions { flex-direction: column; align-items: stretch; }
    .resource-btn { width: 100%; }
    .resource-access-panel { grid-template-columns: 1fr; }
    .resource-reader__toolbar-actions { width: 100%; }
    .resource-reader__tool { flex: 1; }
    .resource-reader__stage { height: 68vh; min-height: 480px; }
    .resource-related-card { grid-template-columns: 76px minmax(0, 1fr); }
    .resource-related-card__cover { height: 96px; }
}
