/* report.css — Shared styles for all report pages (Tier 2)
 *
 * Colors reference CSS custom properties from styles.css (Tier 1).
 * Per-report styles go in each report's {% block report_styles %} (Tier 3).
 */

/* ─── Compact wordmark header ─── */

.report-wordmark {
    background: var(--warm-white);
    padding: 12px 20px;
    text-align: center;
    border-bottom: 3px solid;
    border-image: linear-gradient(
        to right,
        var(--coral) 25%, var(--turquoise) 25%,
        var(--turquoise) 50%, var(--gold) 50%,
        var(--gold) 75%, var(--soft-pink) 75%
    ) 1;
}
.report-wordmark-link {
    text-decoration: none;
}
.report-wordmark-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--deep-teal);
}

/* ─── Report body container ─── */

.report-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ─── Section structure ─── */

.report-section { margin-bottom: 3rem; }
.report-section[id] { scroll-margin-top: 80px; }

.report-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--coral);
}

.report-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-teal);
    margin: 1.5rem 0 0.75rem;
}

/* ─── Prose typography ─── */

.prose { font-size: 0.95rem; line-height: 1.7; color: #495057; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #212529; }
.prose em { color: var(--deep-teal); font-style: normal; font-weight: 600; }

/* ─── Callout boxes ─── */

.callout {
    border-left: 4px solid var(--coral);
    background: white;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.callout-best { border-left-color: var(--turquoise); background: #f0fafa; }
.callout-warn { border-left-color: var(--coral); background: #fff5f4; }
.callout-info { border-left-color: var(--gold); background: #fffcf0; }
.callout-quote { border-left-color: var(--slate); background: #f8f9fc; }
.callout h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem;
}
.callout-best h4 { color: var(--deep-teal); }
.callout-warn h4 { color: var(--coral); }
.callout-info h4 { color: #b8860b; }
.callout p { font-size: 0.9rem; line-height: 1.6; color: #495057; margin: 0; }
.callout cite { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--slate); font-style: normal; }

/* ─── Stat blocks ─── */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-block {
    background: white;
    padding: 1rem 1.25rem;
    text-align: center;
    border-left: 4px solid var(--coral);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-block:nth-child(2) { border-left-color: var(--turquoise); }
.stat-block:nth-child(3) { border-left-color: var(--gold); }
.stat-block:nth-child(4) { border-left-color: var(--soft-pink); }
.stat-label {
    font-size: 0.6rem; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--charcoal); opacity: 0.6;
    font-family: 'Space Grotesk', sans-serif;
}
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700; margin-top: 0.25rem;
}

.two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0;
}
.two-col .stat-block { text-align: left; }

/* ─── Chart cards ─── */

.chart-card {
    background: white; border: 1px solid #eee; border-radius: 8px;
    padding: 1.5rem; margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
}
.chart-card .chart-label {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--charcoal); opacity: 0.6; margin-bottom: 0.25rem;
}
.chart-context {
    font-size: 0.8rem; line-height: 1.5; color: #6c757d;
    margin-bottom: 0.75rem; font-style: italic;
}
.chart-wrap { position: relative; width: 100%; }
.chart-brand {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; padding-top: 8px; border-top: 1px solid #eee;
}
.chart-brand-name {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--coral); opacity: 0.7;
}

/* ─── Share button ─── */

.share-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600;
    color: var(--slate); background: var(--light-gray); border: none; border-radius: 4px;
    padding: 4px 10px; cursor: pointer; transition: all 0.15s;
    text-decoration: none;
}
.share-btn:hover { background: var(--coral); color: white; }
.share-btn svg { width: 12px; height: 12px; }

/* ─── Images ─── */

.report-img {
    width: 100%; border-radius: 8px; display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.report-img-caption {
    font-size: 0.8rem; color: var(--slate); margin-top: 0.5rem;
    line-height: 1.5; font-style: italic;
}
.report-img-float {
    float: left; max-width: 40%; margin: 0 1.5rem 1rem 0; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.float-clear { clear: both; }
.report-img-accent {
    max-width: 70%; display: block; margin: 0 auto 0.5rem;
}

/* ─── Photo credits ─── */

.photo-credit {
    font-size: 0.7rem; color: #aab0c0; margin-top: 0.25rem;
    font-style: normal;
}
.photo-credit a { color: #aab0c0; text-decoration: underline; text-decoration-color: rgba(170,176,192,0.4); }
.photo-credit a:hover { color: var(--deep-teal); }
.photo-credits-section { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--light-gray); border-radius: 8px; }
.photo-credits-section h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 700; color: #495057; margin: 0 0 0.75rem; }
.photo-credits-section ul { list-style: none; padding: 0; margin: 0; }
.photo-credits-section li { font-size: 0.75rem; color: #6c757d; line-height: 1.8; }
.photo-credits-section a { color: var(--deep-teal); text-decoration: none; }
.photo-credits-section a:hover { text-decoration: underline; }

/* ─── Tables ─── */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.75rem 0; }
.table-scroll table { min-width: 520px; }

/* ─── Inline data source callout (report-specific version) ─── */

.report-body .data-source-callout {
    background: var(--light-gray); border-radius: 6px; padding: 1rem 1.25rem;
    font-size: 0.8rem; color: #6c757d; margin-top: 2rem; line-height: 1.6;
}
.report-body .data-source-callout strong { color: #495057; }
.report-body .data-source-callout a { color: var(--deep-teal); }

/* ─── Mobile responsive ─── */

@media (max-width: 600px) {
    .report-body { padding: 1rem; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .chart-card { padding: 1rem 0.75rem; }
    .callout { padding: 1rem; }
    .report-img-float {
        float: none; max-width: 100%; width: 100%;
        margin: 0 0 0.5rem 0;
    }
    .report-img-float + .prose { margin-top: 0; }
    .report-img-caption, .photo-credit { max-width: 100% !important; }
    .report-img-accent { max-width: 100%; }
}
