/* ============================================================
   ANNA IGNATENKO — SHARED ARTICLE COMPONENTS
   Loaded alongside each article page's own inline <style> block.
   Relies on the design-token custom properties (--blue, --lavender,
   --sage + -light/-deep variants, --font-heading, --font-body,
   --radius-*, --card-shadow) already defined at :root by that
   page's inline stylesheet — CSS custom properties resolve from
   whichever :root declaration is in the cascade, so nothing here
   needs to redeclare them.
   ============================================================ */

/* ----- RELATED READING ----- */
.related-reading {
    max-width: var(--measure, 680px);
    margin: 3.5rem auto 0;
}
.related-label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.related-card {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 28px;
    background: var(--bg-white, #fff);
    border-radius: var(--radius-md, 20px);
    box-shadow: var(--card-shadow, 0 2px 20px rgba(0,0,0,0.03), 0 0 0 0.5px rgba(0,0,0,0.02));
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.03);
}
.related-card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--blue);
}
.related-card.accent-blue .related-card-accent { background: var(--blue); }
.related-card.accent-lavender .related-card-accent { background: var(--lavender); }
.related-card.accent-sage .related-card-accent { background: var(--sage); }

.related-eyebrow {
    display: inline-flex; align-items: center;
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 600; color: var(--lavender-deep);
    background: var(--lavender-light);
    padding: 5px 12px; border-radius: var(--radius-pill, 100px);
    margin-bottom: 0.9rem;
}
.related-card.accent-blue .related-eyebrow { color: var(--blue-deep); background: var(--blue-light); }
.related-card.accent-sage .related-eyebrow { color: var(--sage-deep); background: var(--sage-light); }

.related-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 21px;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.related-standfirst {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.related-meta {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .related-reading { padding-left: 1.5rem; padding-right: 1.5rem; }
    .related-grid { grid-template-columns: 1fr; }
}

/* ----- FAQ ----- */
.faq {
    max-width: var(--measure, 680px); margin: 4rem auto 0;
    padding: 2.25rem 2.5rem 2.5rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius-lg, 28px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 0 8px 32px rgba(0,0,0,0.05);
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.faq.over-globe { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.faq h2 {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 400;
    color: var(--text-primary); margin-bottom: 1.5rem;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    padding: 1.25rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }

.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer; list-style: none;
    font-family: var(--font-body);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
    font-family: var(--font-heading); font-weight: 400; font-size: 18px;
    color: var(--text-primary); line-height: 1.4; margin: 0;
}
.faq-item summary::after {
    content: '+'; flex-shrink: 0;
    font-family: var(--font-heading); font-size: 22px; font-weight: 400;
    line-height: 1; color: var(--lavender-deep);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { margin-top: 0.9rem; }
.faq-answer p { font-size: 15.5px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .faq-item summary::after { transition: none; }
}
@media (max-width: 768px) {
    .faq { padding: 1.75rem 1.5rem 2rem; }
}
