/* ============================================================
   resources.css — Resources list + Article page styles
   List page: teal hero (base), 3x2 article card grid on cream.
   Article page: teal hero with meta, full-bleed photo, sticky
   social sidebar + article body, related articles on cream.
   ============================================================ */

/* ------------------------------------------------------------
   Article card grid (resources.html, article.html "related")
   ------------------------------------------------------------ */
.resource-list {
    background: var(--cream);
    padding: var(--section-py) 0 120px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 24px;
}

.article-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.article-card h3 {
    margin-top: 26px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--ink);
}

.article-card .text-link {
    margin-top: 14px;
}

.resource-list .btn {
    margin-top: 72px;
}

/* ------------------------------------------------------------
   Article page — hero meta line
   ------------------------------------------------------------ */
.article-hero .article-meta {
    font-size: 15px;
    color: var(--on-teal-soft);
    margin-bottom: 20px;
}

.article-hero .article-meta .divider {
    margin: 0 10px;
    opacity: 0.6;
}

/* Full-bleed photo under the hero */
.article-photo img {
    width: 100%;
    height: clamp(320px, 44vw, 630px);
    object-fit: cover;
}

/* ------------------------------------------------------------
   Article body — sticky social card + content
   ------------------------------------------------------------ */
.article-body {
    padding: var(--section-py) 0 120px;
}

.article-body .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 96px;
    align-items: start;
}

.article-aside {
    position: sticky;
    top: 128px;
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 28px 24px 32px;
}

.article-aside h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.article-aside p {
    margin-top: 6px;
    font-size: 15px;
    color: var(--grey);
}

.article-socials {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-socials img {
    width: 22px;
    height: 22px;
    transition: opacity var(--transition);
}

.article-socials a:hover img {
    opacity: 0.6;
}

/* Content column */
.article-content section {
    margin-bottom: 64px;
}

.article-content section:last-child {
    margin-bottom: 0;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 24px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content ul {
    list-style: disc;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-body .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .article-aside {
        position: static;
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .resource-list .btn {
        margin-top: 48px;
    }
}
