/**
 * MMC Recommended Reading — page-specific styles.
 *
 * Loaded ONLY on /recommended-reading/ via the existing per-template
 * stylesheet pattern. Reuses the pillar-page hero rules from mmc-pillar.css
 * (so we don't restyle the hero here) and adds the card grid + sections.
 *
 * Loaded after mmc-pillar.css to inherit + extend.
 *
 * @since 2026-05-01 — MMC Citations Phase 3
 */

/* ── Sections ────────────────────────────────────────────────────────────── */
.mmc-rr-section {
    padding: 64px 24px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.mmc-rr-section:nth-of-type(odd) { background: #fafaf7; }
.mmc-rr-section--institutions { background: #f7f4ee; border-bottom: none; }

.mmc-rr-section__inner { max-width: 1200px; margin: 0 auto; }
.mmc-rr-section__header { text-align: center; margin-bottom: 36px; }
.mmc-rr-section__h2 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; color: #1a1a1a; font-weight: 700; }
.mmc-rr-section__intro { max-width: 640px; margin: 0 auto; color: #57606a; font-size: 16px; line-height: 1.6; }

/* ── Card grid ──────────────────────────────────────────────────────────── */
.mmc-rr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.mmc-rr-card {
    background: #fff;
    border: 1px solid #e8e3d8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mmc-rr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-color: #d4c894;
}

.mmc-rr-card__cover {
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, #e8e3d8 0%, #d4c894 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mmc-rr-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmc-rr-card__cover--placeholder span {
    font-size: 56px;
    opacity: .6;
}

.mmc-rr-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mmc-rr-card__title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; color: #1a1a1a; }
.mmc-rr-card__title cite { font-style: italic; }
.mmc-rr-card__title a { color: inherit; text-decoration: none; transition: color .15s; }
.mmc-rr-card__title a:hover { color: #997a13; }
.mmc-rr-card__author { margin: 0; font-size: 14px; color: #57606a; }
.mmc-rr-card__blurb { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: #333; }
.mmc-rr-card__used-on { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed #eee; font-size: 12px; color: #57606a; line-height: 1.7; }
.mmc-rr-card__used-on-label { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; color: #888; }
.mmc-rr-card__used-on-pill {
    display: inline-block;
    background: #efeae0;
    color: #5a4f2c;
    padding: 2px 10px;
    border-radius: 999px;
    margin: 2px 4px 2px 0;
    text-decoration: none;
    font-size: 12px;
    transition: background .15s;
}
.mmc-rr-card__used-on-pill:hover { background: #d4c894; color: #1a1a1a; }

/* ── Type-specific tinting (subtle visual taxonomy) ─────────────────────── */
.mmc-rr-card--peer_reviewed .mmc-rr-card__cover {
    background: linear-gradient(135deg, #e0e8e0 0%, #94c8a8 100%);
}
.mmc-rr-card--book .mmc-rr-card__cover {
    background: linear-gradient(135deg, #e8e3d8 0%, #d4c894 100%);
}
.mmc-rr-card--practitioner .mmc-rr-card__cover {
    background: linear-gradient(135deg, #f0e0e8 0%, #c898b4 100%);
}
.mmc-rr-card--framework .mmc-rr-card__cover {
    background: linear-gradient(135deg, #e0d8e8 0%, #a894c8 100%);
}

/* ── Institutions block (research + credentialing anchors) ──────────────── */
.mmc-rr-institutions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.mmc-rr-institution {
    background: #fff;
    border: 1px solid #e8e3d8;
    border-radius: 10px;
    padding: 20px;
    transition: border-color .18s, box-shadow .18s;
}
.mmc-rr-institution:hover { border-color: #d4c894; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.mmc-rr-institution__name { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.mmc-rr-institution__name a { color: #1a1a1a; text-decoration: none; }
.mmc-rr-institution__name a:hover { color: #997a13; text-decoration: underline; }
.mmc-rr-institution__blurb { margin: 0; font-size: 14px; line-height: 1.5; color: #57606a; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mmc-rr-section { padding: 40px 16px; }
    .mmc-rr-section__h2 { font-size: 24px; }
    .mmc-rr-grid { grid-template-columns: 1fr; gap: 16px; }
    .mmc-rr-card__cover { aspect-ratio: 16 / 9; }
    .mmc-rr-institutions { grid-template-columns: 1fr; }
}
