/* Response Team - Disaster Response Coordination Hub
   Design System: "Grounded Hope"

   Theme Philosophy:
   - Navy/slate blues = trust, authority, stability (you're in capable hands)
   - Warm amber/copper = urgency, action, community warmth
   - Earth tones = rebuilding, grounded, real work
   - Clean whites/grays = clarity when chaos surrounds you

   This isn't a cheerful nonprofit site. It's a serious resource for people
   in crisis who need clear, actionable information. The design should feel
   like a trusted field manual, not a marketing brochure.
*/

:root {
    /* ========================================
       PRIMARY PALETTE - Trust & Authority
       ======================================== */
    --primary: #1e3a5f;           /* Deep navy - main brand color */
    --primary-light: #2d5a8a;     /* Lighter navy for hovers */
    --primary-dark: #0f2744;      /* Darkest navy for headers */
    --primary-muted: #3d5a7a;     /* Muted for secondary text on dark */

    /* Slate variation - for softer contrast */
    --slate: #475569;
    --slate-light: #64748b;
    --slate-dark: #334155;

    /* ========================================
       ACCENT PALETTE - Urgency & Warmth
       ======================================== */
    --accent: #d97706;            /* Amber - primary action color */
    --accent-hover: #b45309;      /* Darker amber for hover */
    --accent-light: #fbbf24;      /* Light amber for highlights */

    /* Copper - secondary warmth (community, hope) */
    --copper: #b87333;
    --copper-light: #d4a574;

    /* ========================================
       SEMANTIC COLORS - Status & Alerts
       ======================================== */
    /* Disaster status indicators */
    --status-active: #dc2626;     /* Red - active emergency */
    --status-watch: #ea580c;      /* Orange - watch/warning */
    --status-recovery: #16a34a;   /* Green - in recovery */
    --status-resolved: #6b7280;   /* Gray - resolved/closed */

    /* Callout/alert backgrounds */
    --callout-info-bg: #eff6ff;
    --callout-info-border: #3b82f6;
    --callout-warning-bg: #fffbeb;
    --callout-warning-border: #f59e0b;
    --callout-danger-bg: #fef2f2;
    --callout-danger-border: #ef4444;
    --callout-success-bg: #f0fdf4;
    --callout-success-border: #22c55e;
    --callout-quote-bg: #f8fafc;
    --callout-quote-border: var(--copper);

    /* ========================================
       NEUTRALS - Clean & Readable
       ======================================== */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;      /* Slightly cooler gray */
    --bg-tertiary: #f1f5f9;       /* For nested elements */
    --bg-dark: var(--primary-dark);

    --text-primary: #1e293b;      /* Near black, easier on eyes than pure black */
    --text-secondary: #64748b;    /* Slate gray for secondary text */
    --text-tertiary: #94a3b8;     /* Light gray for captions */
    --text-light: #ffffff;
    --text-on-accent: #ffffff;

    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* ========================================
       TYPOGRAPHY
       ======================================== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;

    /* Type scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */

    /* ========================================
       SPACING
       ======================================== */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */

    /* ========================================
       LAYOUT
       ======================================== */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --max-width-wide: 1400px;
    --header-height: 70px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 { font-size: 2.5rem; margin-bottom: var(--spacing-lg); }
h2 { font-size: 2rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.5rem; margin-bottom: var(--spacing-md); }
h4 { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

/* Header */
.header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo:hover {
    color: var(--text-light);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text-light);
    border-bottom-color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-link:hover {
    color: var(--accent-hover);
}

/* Alert banner for active disasters */
.alert-banner {
    background: var(--alert-active);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
}

.alert-banner a {
    color: var(--text-light);
    text-decoration: underline;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--spacing-sm);
}

/* Feature list */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: var(--spacing-sm) 0;
    padding-left: 2rem;
    position: relative;
}

.feature-list li::before {
    content: "\2713";
    color: var(--alert-recovery);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: var(--spacing-sm);
}

.footer a {
    color: rgba(255,255,255,0.7);
}

.footer a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 var(--spacing-sm);
}

/* Content pages */
.content-header {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border);
}

.content-header h1 {
    margin-bottom: var(--spacing-sm);
}

.content-header .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
}

.content-body {
    padding: var(--spacing-xl) 0;
}

.content-body p {
    max-width: 700px;
}

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

/* Image styling */
.img-rounded {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: var(--spacing-md);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-toggle {
        display: block;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .two-col.reverse {
        direction: ltr;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Print styles for playbook pages */
@media print {
    .header, .footer, .nav, .btn {
        display: none;
    }

    .hero {
        background: none;
        color: var(--text-primary);
        padding: var(--spacing-md) 0;
    }

    .hero h1 {
        color: var(--text-primary);
        font-size: 1.5rem;
    }
}

/* ============================================
   COMPONENT LIBRARY
   ============================================ */

/* --------------------------------------------
   QUOTE BLOCKS - Survivor testimonials, expert quotes
   -------------------------------------------- */
.quote-block {
    background: var(--callout-quote-bg);
    border-left: 4px solid var(--copper);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
}

.quote-block::before {
    content: "\201C";
    font-size: 4rem;
    color: var(--copper-light);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}

.quote-block p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--slate-dark);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.quote-block p:last-of-type {
    margin-bottom: 0;
}

.quote-attribution {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
    padding-left: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.quote-attribution span {
    font-weight: 400;
    color: var(--text-secondary);
    display: block;
    font-size: var(--text-sm);
}

/* Large featured quote */
.quote-block.featured {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-left: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
}

.quote-block.featured::before {
    color: rgba(255,255,255,0.2);
}

.quote-block.featured p {
    color: rgba(255,255,255,0.95);
    font-size: var(--text-xl);
}

.quote-block.featured .quote-attribution {
    color: var(--accent-light);
}

.quote-block.featured .quote-attribution span {
    color: rgba(255,255,255,0.7);
}

/* --------------------------------------------
   CALLOUT BOXES - Info, Warning, Danger, Success
   -------------------------------------------- */
.callout {
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.callout-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: var(--text-base);
    margin-bottom: var(--spacing-sm);
}

.callout-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.callout-info {
    background: var(--callout-info-bg);
    border-color: var(--callout-info-border);
}

.callout-info .callout-title {
    color: #1e40af;
}

.callout-warning {
    background: var(--callout-warning-bg);
    border-color: var(--callout-warning-border);
}

.callout-warning .callout-title {
    color: #92400e;
}

.callout-danger {
    background: var(--callout-danger-bg);
    border-color: var(--callout-danger-border);
}

.callout-danger .callout-title {
    color: #991b1b;
}

.callout-success {
    background: var(--callout-success-bg);
    border-color: var(--callout-success-border);
}

.callout-success .callout-title {
    color: #166534;
}

/* Key takeaway callout - amber/copper */
.callout-key {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: var(--accent);
}

.callout-key .callout-title {
    color: var(--accent-hover);
}

/* --------------------------------------------
   FAQ ACCORDION
   -------------------------------------------- */
.faq-section {
    margin: var(--spacing-2xl) 0;
}

.faq-section h2 {
    margin-bottom: var(--spacing-lg);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-secondary);
    border: none;
    padding: var(--spacing-lg);
    text-align: left;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question::after {
    content: "+";
    font-size: var(--text-xl);
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-inner {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-secondary);
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------
   TIMELINE - For disaster phases, project progress
   -------------------------------------------- */
.timeline {
    position: relative;
    padding-left: var(--spacing-2xl);
    margin: var(--spacing-xl) 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--copper) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--spacing-2xl) + 2px);
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--accent);
    border-color: var(--accent);
}

.timeline-item.completed::before {
    background: var(--status-recovery);
    border-color: var(--status-recovery);
}

.timeline-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-content {
    color: var(--text-secondary);
}

/* --------------------------------------------
   PARTNER/ORGANIZATION CARDS
   -------------------------------------------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.partner-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.2s ease;
}

.partner-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.partner-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.partner-logo {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 36px;
    max-height: 36px;
}

.partner-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.partner-type {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.partner-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-md);
}

.partner-services {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.partner-tag {
    background: var(--bg-tertiary);
    color: var(--slate);
    font-size: var(--text-xs);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.partner-tag.primary {
    background: var(--primary);
    color: var(--text-light);
}

/* --------------------------------------------
   CHECKLIST - Actionable items
   -------------------------------------------- */
.checklist {
    list-style: none;
    margin: var(--spacing-lg) 0;
}

.checklist li {
    padding: var(--spacing-md);
    padding-left: var(--spacing-2xl);
    position: relative;
    border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
}

.checklist li.completed::before {
    background: var(--status-recovery);
    border-color: var(--status-recovery);
}

.checklist li.completed::after {
    content: "\2713";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
}

.checklist li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.checklist li span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* --------------------------------------------
   ARTICLE LAYOUT - Playbook pages
   -------------------------------------------- */
.article {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.article h2 {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

.article h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article h3 {
    margin-top: var(--spacing-xl);
    color: var(--slate-dark);
}

.article > p,
.article > ul,
.article > ol {
    font-size: var(--text-lg);
    line-height: 1.7;
}

.article ul,
.article ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.article li {
    margin-bottom: var(--spacing-sm);
}

/* Table of contents */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.toc-title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.toc ul {
    list-style: none;
    margin: 0;
}

.toc li {
    margin: var(--spacing-sm) 0;
}

.toc a {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.toc a:hover {
    color: var(--accent);
}

.toc a::before {
    content: "→";
    color: var(--text-tertiary);
}

/* Read time / meta info */
.article-meta {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* --------------------------------------------
   STATS HIGHLIGHT - Key numbers
   -------------------------------------------- */
.stat-highlight {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.stat-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
}

.stat-highlight-item .number {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-highlight-item .label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --------------------------------------------
   ROLE/RESPONSIBILITY TABLE
   -------------------------------------------- */
.role-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    font-size: var(--text-sm);
}

.role-table th,
.role-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.role-table th {
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-table tr:hover td {
    background: var(--bg-secondary);
}

.role-table .org-name {
    font-weight: 600;
    color: var(--primary);
}

.role-table .phase-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.phase-tag.response {
    background: #fee2e2;
    color: #991b1b;
}

.phase-tag.recovery {
    background: #fef3c7;
    color: #92400e;
}

.phase-tag.rebuild {
    background: #d1fae5;
    color: #166534;
}

/* --------------------------------------------
   INLINE LABELS / BADGES
   -------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-primary {
    background: var(--primary);
    color: var(--text-light);
}

.badge-accent {
    background: var(--accent);
    color: var(--text-light);
}

.badge-success {
    background: var(--status-recovery);
    color: var(--text-light);
}

.badge-warning {
    background: var(--status-watch);
    color: var(--text-light);
}

.badge-danger {
    background: var(--status-active);
    color: var(--text-light);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-secondary);
}

/* --------------------------------------------
   CTA SECTION - Bottom of articles
   -------------------------------------------- */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-2xl) 0;
}

.cta-box h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

/* --------------------------------------------
   RESPONSIVE ADJUSTMENTS FOR NEW COMPONENTS
   -------------------------------------------- */
@media (max-width: 768px) {
    .quote-block {
        padding: var(--spacing-lg);
    }

    .quote-block::before {
        font-size: 3rem;
    }

    .quote-block p {
        font-size: var(--text-base);
        padding-left: var(--spacing-md);
    }

    .timeline {
        padding-left: var(--spacing-xl);
    }

    .stat-highlight-item .number {
        font-size: var(--text-2xl);
    }

    .role-table {
        font-size: var(--text-xs);
    }

    .role-table th,
    .role-table td {
        padding: var(--spacing-sm);
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CRISIS MODE - First 72 Hours Styling
   For people actively responding to disaster
   ============================================ */

/* Crisis banner - appears at top of crisis pages */
.crisis-banner {
    background: #7f1d1d;
    color: white;
    padding: var(--spacing-sm) 0;
    font-size: var(--text-sm);
    text-align: center;
}

.crisis-banner strong {
    color: #fca5a5;
}

/* Crisis phase sections */
.crisis-phase {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--border-color);
}

.crisis-phase:last-of-type {
    border-bottom: none;
}

.crisis-phase-header {
    margin-bottom: var(--spacing-lg);
}

.crisis-time {
    display: inline-block;
    background: var(--status-active);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
}

.crisis-phase-header h2 {
    color: var(--primary-dark);
    margin-bottom: 0;
}

/* Action cards - numbered steps */
.action-card {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
}

.action-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-lg);
}

.action-content p {
    margin-bottom: var(--spacing-sm);
}

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

.action-detail {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
    border: 1px solid var(--border-color);
}

.action-detail strong {
    color: var(--primary);
}

.action-script {
    background: var(--callout-quote-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--copper);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Quick list - compact bullet list for immediate needs */
.quick-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xs);
}

.quick-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
}

.quick-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Crisis reference section */
.crisis-reference {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--border-color);
}

.crisis-reference h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.reference-card {
    background: var(--bg-alt);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--primary);
}

.reference-card h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-base);
}

.reference-card ul,
.reference-card ol {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.reference-card li {
    margin-bottom: var(--spacing-xs);
    font-size: var(--text-sm);
}

.reference-card a {
    color: var(--accent);
}

.reference-card a:hover {
    color: var(--accent-hover);
}

/* Mobile adjustments for crisis pages */
@media (max-width: 768px) {
    .action-card {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .action-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }

    .quick-list {
        grid-template-columns: 1fr;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }
}

/* Crisis alert banner - top of homepage */
.crisis-alert-banner {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
    padding: var(--spacing-sm) 0;
}

.crisis-alert-banner a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: white;
    text-decoration: none;
    font-size: var(--text-sm);
}

.crisis-alert-banner strong {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
}

.crisis-alert-banner span {
    color: rgba(255,255,255,0.9);
}

.crisis-alert-banner a:hover {
    text-decoration: none;
}

.crisis-alert-banner a:hover span {
    text-decoration: underline;
}

/* Danger button style */
.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white;
}

@media (max-width: 768px) {
    .crisis-alert-banner a {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
}
