.resources-page,
.resource-article-page {
    color: var(--white);
    background: var(--bg);
}

.resources-shell,
.article-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 28px 0 96px;
}

.resource-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 52px;
    color: var(--muted);
    font-size: 13px;
}

.resource-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.resource-breadcrumbs a:hover {
    color: var(--accent);
}

.resource-kicker {
    display: block;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.resources-hero {
    max-width: 860px;
    padding: 32px 0 70px;
}

.resources-hero h1,
.article-header h1 {
    max-width: 950px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.resources-hero p,
.article-lead {
    max-width: 760px;
    margin-top: 24px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.resource-card {
    min-width: 0;
    background: rgba(13, 17, 23, 0.88);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 255, 0, 0.65);
}

.resource-card > a {
    min-height: 330px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 30px;
    color: inherit;
    text-decoration: none;
}

.resource-card-number {
    color: rgba(215, 255, 0, 0.48);
    font-size: 13px;
    font-weight: 800;
}

.resource-card-meta,
.article-meta {
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.resource-card h2 {
    margin-top: 18px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.resource-card h2 + p {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.65;
}

.resource-card-action {
    display: inline-flex;
    gap: 8px;
    margin-top: 28px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.resources-empty {
    grid-column: 1 / -1;
    padding: 48px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.resources-empty p {
    margin-top: 10px;
    color: var(--muted);
}

.resources-cta {
    display: flex;
    justify-content: space-between;
    gap: 36px;
    align-items: center;
    margin-top: 72px;
    padding: 36px;
    background: linear-gradient(135deg, rgba(215, 255, 0, 0.08), rgba(13, 17, 23, 0.94) 48%);
    border: 1px solid rgba(215, 255, 0, 0.3);
    border-radius: 12px;
}

.resources-cta h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.resources-cta p {
    max-width: 650px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.resources-cta > a {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 9px;
    align-items: center;
    min-height: 48px;
    padding: 13px 18px;
    color: #06080b;
    background: var(--accent);
    border-radius: 7px;
    font-weight: 800;
    text-decoration: none;
}

.article-shell {
    width: min(100% - 40px, 1040px);
}

.article-header {
    padding: 28px 0 58px;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    margin-top: 30px;
}

.article-content {
    width: min(100%, 790px);
    margin: 54px auto 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.78;
}

.article-content h2 {
    margin: 58px 0 20px;
    color: var(--white);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.article-content h3 {
    margin: 36px 0 14px;
    color: var(--white);
    font-size: 23px;
    line-height: 1.3;
}

.article-content p + p,
.article-content ul + p,
.article-content ol + p {
    margin-top: 20px;
}

.article-content ul,
.article-content ol {
    display: grid;
    gap: 10px;
    margin: 20px 0 24px 24px;
}

.article-content strong {
    color: var(--white);
}

.article-content a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 22px 24px;
    color: var(--white);
    background: rgba(215, 255, 0, 0.06);
    border-left: 3px solid var(--accent);
}

.article-content pre {
    overflow-x: auto;
    margin: 24px 0;
    padding: 20px;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.related-guides {
    margin-top: 88px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-guides-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.related-guides-grid > a {
    padding: 24px;
    color: var(--white);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 9px;
    text-decoration: none;
}

.related-guides-grid h3 {
    font-size: 20px;
    line-height: 1.3;
}

.related-guides-grid p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.related-guides-grid span {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .resources-grid,
    .related-guides-grid {
        grid-template-columns: 1fr;
    }

    .resources-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .resources-shell,
    .article-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 20px;
    }

    .resource-breadcrumbs {
        margin-bottom: 30px;
    }

    .resources-hero,
    .article-header {
        padding-top: 20px;
    }

    .resource-card > a {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .resources-cta {
        padding: 26px;
    }

    .article-content {
        font-size: 16px;
    }
}
