/* ============================================================
   RESOURCES — Landing, Article, Author, Category
   Loaded via pageCSS front matter on all /resources/ pages.
   All values reference design tokens from variables.css.
   ============================================================ */

/* ---------- DRAFT indicators (preview-only renders) ---------- */
.draft-banner {
    background: var(--color-accent-secondary);
    color: #fff;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--text-small);
    letter-spacing: 0.02em;
}
.draft-banner strong {
    font-weight: var(--weight-bold);
    margin-right: var(--space-xs);
}
.draft-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-accent-secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    pointer-events: none;
}
.resources-card,
.resources-featured-card {
    position: relative;
}
.resources-card--draft {
    outline: 2px dashed var(--color-accent-secondary);
    outline-offset: -2px;
}

/* ============================================================
   Shared Resources banner system — used by landing, article,
   author, and category. 128px top padding + breadcrumb + 1200
   container, all left-aligned. The banner image (or featured
   block) straddles the gradient/content boundary 50/50.
   ============================================================ */
/* ============================================================
   Shared Resources banner system — landing, article, author,
   category. Banner contains a 1200 text column and (optionally)
   a 1200 image or featured-card "straddle" element that visually
   bridges the banner and the content below.

   Straddle is achieved with a two-tone background on the banner:
   gradient on top, white at the bottom. The white strip's height
   equals half the rendered straddle element's height, so the
   image's vertical middle aligns with the gradient→white seam.
   No negative margins, no JS, no clearance padding on the next
   section — sections just stack normally.
   ============================================================ */
.resources-banner {
    --banner-white-strip: 0px;
    background:
        linear-gradient(to bottom,
            transparent 0% calc(100% - var(--banner-white-strip)),
            var(--color-bg) calc(100% - var(--banner-white-strip)) 100%
        ),
        var(--gradient-banner);
    padding: 8rem 0 0;
    position: relative;
}
/* Article banner image is 1200×630 → half-height = 26.25% of width.
   Featured card uses aspect-ratio 1200/420 → half-height = 17.5% of width.
   The +8rem inside calc adds 128px of breathing room below the
   straddling element (a matching padding-bottom on the banner extends
   the banner into a white area below the image/card). min() caps the
   straddle calculation at 1200px (max container width minus side gutters). */
.resources-banner--with-image,
.resources-banner--with-card {
    padding-bottom: 8rem;
}
.resources-banner--with-image {
    --banner-white-strip: calc(min(1200px - 5rem, 100vw - 5rem) * 0.2625 + 8rem);
}
.resources-banner--with-card {
    --banner-white-strip: calc(min(1200px - 5rem, 100vw - 5rem) * 0.175 + 8rem);
}
.resources-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) 2.5rem var(--space-3xl);
    text-align: left;
}
.resources-banner__breadcrumb {
    margin-bottom: var(--space-lg);
}
.resources-banner__breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: var(--text-small);
    color: var(--color-text-secondary);
}
.resources-banner__breadcrumb li + li::before {
    content: "›";
    margin: 0 var(--space-sm);
    color: var(--color-text-muted);
}
.resources-banner__breadcrumb a {
    color: var(--color-accent-primary);
    text-decoration: none;
}
.resources-banner__breadcrumb a:hover {
    text-decoration: underline;
}
.resources-banner__breadcrumb [aria-current="page"] {
    color: var(--color-text-muted);
}
.resources-banner .eyebrow {
    margin-bottom: 0;
}
.resources-banner h1 {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    line-height: var(--leading-tight);
    margin: var(--space-sm) 0 var(--space-md);
    max-width: 80%;
}
.resources-banner__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    max-width: 70%;
}
.resources-banner__byline {
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: var(--space-md);
    max-width: 70%;
}
.resources-banner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: center;
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    margin-top: var(--space-md);
}
.resources-banner__meta-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}
.resources-banner__meta-author:hover .resources-banner__meta-author-name {
    color: var(--color-accent-primary);
    text-decoration: underline;
}
.resources-banner__meta-author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-grey-100);
}
.resources-banner__meta-author-name {
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
}

/* "Featured" label that sits in the banner above the straddling card. */
.resources-banner__feature-label {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-grey-400);
    margin-bottom: var(--space-lg);
}

/* Straddle wrapper — the image/card sits naturally at the bottom of
   the banner. No negative margin; the visual straddle comes from the
   banner's two-tone background. */
.resources-banner__straddle {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
}

/* Section labels — small dark-grey eyebrow labels above each section
   of the Resources landing/article/category pages. ~24px above their
   target content. Use on .resources-section-label. */
.resources-section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-grey-400);
    margin-bottom: var(--space-lg);
}
.resources-banner__image {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 991px) {
    .resources-banner { padding-top: 6rem; }
    .resources-banner h1 { max-width: 100%; font-size: var(--text-h2); }
    .resources-banner__subtitle, .resources-banner__byline { max-width: 100%; }
}
@media (max-width: 767px) {
    .resources-banner__inner { padding: var(--space-md) var(--space-md) var(--space-2xl); }
    .resources-banner__straddle { padding: 0 var(--space-md); }
    .resources-banner h1 { font-size: var(--text-h3); }
}

/* ---------- Featured card (sits at bottom of banner) ----------
   Fixed aspect-ratio 1200/420 so the card's half-height matches the
   banner's --banner-white-strip (17.5% of width). Image fills its
   column at the same height. */
.resources-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    aspect-ratio: 1200 / 420;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    box-shadow: var(--shadow-lg);
}
.resources-featured-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.16);
    transform: translateY(-2px);
}
.resources-featured-card__media {
    position: relative;
    overflow: hidden;
}
.resources-featured-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.resources-featured-card__body {
    padding: var(--space-xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--color-surface);
    overflow: hidden;
}
.resources-featured-card__eyebrow {
    color: var(--color-accent-primary);
    margin-bottom: 0;
}
.resources-featured-card__body h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    line-height: var(--leading-tight);
    margin: 0;
}
.resources-featured-card__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}
@media (max-width: 991px) {
    .resources-featured-card { grid-template-columns: 1fr; }
    .resources-featured-card__media { aspect-ratio: 1200 / 630; min-height: 0; }
}

/* ---------- Filter pills ----------
   72px gap from the bottom of the filters to the next section. */
.resources-filters {
    padding: 0 2.5rem;
    margin-bottom: 4.5rem;
}
.resources-filters .container {
    max-width: 1200px;
    margin: 0 auto;
}
.resources-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}
.resources-filter-pill {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-xs);
    background: transparent;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.resources-filter-pill:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent-primary);
}
.resources-filter-pill.is-active {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: #fff;
}
.resources-filter-pill__count {
    font-size: var(--text-caption);
    color: inherit;
    opacity: 0.7;
}
.resources-filter-pill.is-active .resources-filter-pill__count {
    opacity: 0.85;
}

/* ---------- Spacing — list close to filters ---------- */
.resources-list {
    padding: 0 2.5rem var(--space-3xl);
}
.resources-list .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Article card grid ---------- */
.resources-card-grid {
    margin-top: 0;
}
.resources-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.resources-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.resources-card__media {
    aspect-ratio: 600 / 315;
    background: var(--color-grey-100);
}
.resources-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.resources-card__body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex-grow: 1;
}
.resources-card__body h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h6);
    line-height: var(--leading-snug);
}
.resources-card__excerpt {
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    line-height: var(--leading-normal);
    flex-grow: 1;
}
.resources-card-category {
    font-family: var(--font-heading);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-primary);
}
.resources-card-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* ---------- Pagination ---------- */
.resources-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    font-family: var(--font-heading);
    font-size: var(--text-small);
}
.resources-pagination a {
    color: var(--color-accent-primary);
    text-decoration: none;
    font-weight: var(--weight-medium);
}
.resources-pagination a:hover {
    text-decoration: underline;
}
.resources-pagination__current {
    color: var(--color-text-muted);
}

/* ---------- Article header ---------- */
/* ---------- Article layout: TOC + body ----------
   Centered 1200 container, sidebar uses a thin right-side rule to
   separate from the body. Body column shrinks to fit when the
   container is narrowed (no fixed max-width on the body column). */
.resource-article__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-section-x);
    align-items: start;
}
.resource-article__toc {
    position: sticky;
    top: 100px;
}
.resource-article__toc-inner {
    border-right: 1px solid var(--color-border);
    padding-right: var(--space-xl);
}
.resource-article__toc-label {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-primary);
    margin-bottom: var(--space-lg);
}
.resource-article__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: var(--text-small);
}
.resource-article__toc-list a {
    color: var(--color-text-secondary);
    text-decoration: none;
    line-height: var(--leading-snug);
    display: block;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}
.resource-article__toc-list a:hover {
    color: var(--color-accent-primary);
}
.resource-article__toc-list a.is-active {
    color: var(--color-accent-primary);
    font-weight: var(--weight-medium);
}

/* Article body column — fills the remaining grid track inside the 1200
   layout container. */
.resource-article__body {
    min-width: 0;
}

/* ---------- Key takeaways ----------
   A subtle orange "comet" traces the rounded rectangle's perimeter.
   Two-layer background trick:
     - Padding-box gets a solid grey (the visible card surface)
     - Border-box gets a rotating conic-gradient with a single short
       orange wedge against transparent
   The 2px transparent border lets the conic show only as a thin ring
   around the perimeter — that's the comet trail.
   @property allows the conic angle to animate smoothly; falls back
   gracefully to a static border on older engines. */
@property --kt-comet-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.key-takeaways {
    position: relative;
    background:
        linear-gradient(var(--color-grey-100), var(--color-grey-100)) padding-box,
        conic-gradient(
            from var(--kt-comet-angle),
            transparent 0deg,
            transparent 330deg,
            var(--color-accent-secondary) 350deg,
            var(--color-accent-secondary) 358deg,
            transparent 360deg
        ) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    animation: kt-comet 14s linear infinite;
}
@keyframes kt-comet {
    to { --kt-comet-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
    .key-takeaways { animation: none; }
}
.key-takeaways h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-primary);
    margin-bottom: var(--space-md);
}
.key-takeaways ul {
    list-style: disc;
    padding-left: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.key-takeaways li {
    line-height: var(--leading-normal);
}

/* ---------- Article body content ----------
   16px to match Key Takeaways and other lists/special styles. */
.resource-article__content {
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
}
.resource-article__content p {
    margin-bottom: var(--space-lg);
}
.resource-article__content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    line-height: var(--leading-tight);
    margin: var(--space-2xl) 0 var(--space-md);
    scroll-margin-top: 100px;
}
.resource-article__content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h5);
    line-height: var(--leading-snug);
    margin: var(--space-xl) 0 var(--space-sm);
    scroll-margin-top: 100px;
}
.resource-article__content ul,
.resource-article__content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.resource-article__content a {
    color: var(--color-accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.resource-article__content a:hover {
    color: var(--color-accent-primary-hover);
}
.resource-article__content strong {
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

/* ---------- FAQ ---------- */
.resource-article__faq {
    margin-top: var(--space-3xl);
}
.resource-article__faq h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    margin-bottom: var(--space-lg);
}
.resource-article__faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}
.resource-article__faq-item summary {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    cursor: pointer;
    list-style: none;
    padding-right: var(--space-xl);
    position: relative;
}
.resource-article__faq-item summary::-webkit-details-marker { display: none; }
.resource-article__faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: var(--text-h5);
    color: var(--color-accent-primary);
    transition: transform var(--transition-fast);
}
.resource-article__faq-item[open] summary::after {
    content: "\2212";
}
.resource-article__faq-answer {
    padding-top: var(--space-md);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

/* ---------- Share + Author block (between FAQ and Related) ---------- */
.resource-article__share-author {
    padding: var(--space-section-y) var(--space-section-x);
}
.resource-article__share-author-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.resource-article__share {
    margin: 0 auto var(--space-2xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.resource-article__author-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding-top: var(--space-lg);
}
.resource-article__author-card-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-grey-100);
}
.resource-article__author-card-body h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h5);
    margin-bottom: var(--space-xs);
}
.resource-article__author-card-role {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    margin-bottom: var(--space-md);
}
.resource-article__author-card-bio p {
    margin-bottom: var(--space-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}
.resource-article__author-card-link {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--color-accent-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
}
.resource-article__author-card-link:hover {
    text-decoration: underline;
}
@media (max-width: 767px) {
    .resource-article__author-card { grid-template-columns: 1fr; }
}

/* ---------- Author page ----------
   Banner uses the shared .resources-banner with a 2-column inner:
   text on the left, author photo on the right.
   Bio and expertise live in a 1200-wide container (70/30 cols, double gutter). */
.resource-author__banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: center;
}
.resource-author__banner-photo img {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-grey-100);
    box-shadow: var(--shadow-lg);
}
.resource-author__linkedin {
    margin-top: var(--space-md);
}
.resource-author__linkedin .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}
.resource-author__linkedin-icon {
    flex-shrink: 0;
}
.resource-author__content {
    padding: var(--space-section-y) var(--space-section-x);
}
.resource-author__content-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: calc(var(--space-3xl) * 2);
}
.resource-author__bio p {
    margin-bottom: var(--space-md);
    line-height: var(--leading-relaxed);
}
.resource-author__expertise-col h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h5);
    margin-bottom: var(--space-md);
}
.resource-author__expertise {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: 0;
}
.resource-author__expertise li {
    background: var(--color-grey-100);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--text-small);
    color: var(--color-text-secondary);
}
@media (max-width: 991px) {
    .resource-author__banner-inner { grid-template-columns: 1fr; text-align: left; }
    .resource-author__banner-photo { order: -1; }
    .resource-author__banner-photo img { width: 160px; height: 160px; }
    .resource-author__content-inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

/* ---------- Category page ----------
   Banner uses the shared .resources-banner system; per-category Featured
   uses the shared .resources-featured-card straddle. */
.resource-category__description {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-top: var(--space-md);
    max-width: 70%;
}
@media (max-width: 991px) {
    .resource-category__description { max-width: 100%; }
}

/* Related categories — 3 cards directly on the page bg, no container. */
.resource-related-categories {
    padding: var(--space-section-y) var(--space-section-x);
}
.resource-related-categories__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.resource-related-categories__inner h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    margin: var(--space-sm) 0 var(--space-xl);
}
.resource-related-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
@media (max-width: 991px) {
    .resource-related-categories__grid { grid-template-columns: 1fr; }
}
.resource-related-category {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
    padding: var(--space-xl) 0;
    border-top: 2px solid var(--color-border);
    transition: border-color var(--transition-fast);
}
.resource-related-category:hover {
    border-top-color: var(--color-accent-primary);
}
.resource-related-category__icon {
    font-size: 2rem;
    color: var(--color-accent-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}
.resource-related-category h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h5);
    line-height: var(--leading-snug);
}
.resource-related-category p {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
    flex-grow: 1;
}
.resource-related-category__cta {
    color: var(--color-accent-primary);
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-small);
}
.resource-related-category:hover .resource-related-category__cta {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .resource-article__layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: var(--space-2xl);
    }
}
@media (max-width: 991px) {
    .resources-category-grid { grid-template-columns: repeat(2, 1fr); }
    .resources-card-grid { grid-template-columns: repeat(2, 1fr); }
    .resources-featured-card { grid-template-columns: 1fr; }
    .resources-featured-card__body { padding: var(--space-xl); }
    .resource-article__layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .resource-article__toc {
        position: static;
        order: 2;
        margin-top: var(--space-2xl);
        padding-top: var(--space-lg);
        border-top: 1px solid var(--color-border);
    }
}
@media (max-width: 767px) {
    .resources-category-grid { grid-template-columns: 1fr; }
    .resources-card-grid { grid-template-columns: 1fr; }
    .resource-author__header { grid-template-columns: 1fr; text-align: center; }
    .resource-author__photo { margin: 0 auto; }
    .resource-article__header h1 { font-size: var(--text-h3); }
    .resource-article__content { font-size: var(--text-body); }
}
