/* ThoughtfulMom — Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Personalization FOUC Prevention ─── */
[data-tm-personalizable] { opacity: 0; transition: opacity 0.3s ease; }
[data-tm-personalizable].tm-ready { opacity: 1; }

:root {
    --warm-bg: #FBF8F4;
    --cream: #F5EDE3;
    --text: #2C2420;
    --text-light: #6B5E54;
    --accent: #8B6F4E;
    --accent-light: #C4A97D;
    --green: #5C7A5E;
    --green-light: #E8F0E8;
    --coral: #C4756A;
    --coral-light: #FEF0EE;
    --blue: #4A7B9D;
    --blue-light: #EBF3F8;
    --yellow: #C4A03E;
    --yellow-light: #FDF8E8;
    --max-width: 1200px;
    --content-width: 800px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--warm-bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7A6043; }

img { max-width: 100%; height: auto; }

*:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ─── Header / Nav ─── */
header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: var(--text);
    text-decoration: none;
}
.logo span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}
nav a:hover { color: var(--accent); background: var(--cream); }
nav a.active { color: var(--accent); font-weight: 600; }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: #7A6043 !important; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}
.mobile-toggle svg { display: block; }

/* ─── Hero ─── */
.hero {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Hero ZIP Input ─── */
.hero-zip {
    max-width: 560px;
    margin: 0 auto;
}

.hero-zip-row {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44, 36, 32, 0.08), 0 1px 3px rgba(44, 36, 32, 0.06);
    overflow: hidden;
    border: 2px solid var(--cream);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-zip-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(44, 36, 32, 0.08), 0 0 0 3px rgba(139, 111, 78, 0.15);
}

.hero-zip-input {
    flex: 1;
    padding: 20px 24px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--text);
    min-width: 0;
}

.hero-zip-input:focus { outline: none; }
.hero-zip-input::placeholder { color: var(--accent-light); }

.hero-zip-btn {
    padding: 20px 32px;
    background: var(--accent);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.hero-zip-btn:hover { background: #7A6043; }
.hero-zip-btn:active { background: #6B5438; }

.hero-zip-sub {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

.hero-zip-sub a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #7A6043; color: white; }

.btn-secondary { background: white; color: var(--accent); border: 2px solid var(--cream); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #4A6A4C; color: white; }

.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: #B3645A; color: white; }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ─── Sections ─── */
.section {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 24px;
}

.section-wide {
    max-width: var(--max-width);
    margin: 60px auto 0;
    padding: 0 24px;
}

.section-narrow {
    max-width: var(--content-width);
    margin: 60px auto 0;
    padding: 0 24px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    margin-bottom: 16px;
}

.section .section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ─── Tools Showcase (Homepage) ─── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.tool-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: var(--text);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}
.tool-icon.water { background: var(--blue-light); }
.tool-icon.air { background: var(--coral-light); }
.tool-icon.pollen { background: var(--yellow-light); }
.tool-icon.uv { background: #FFF3E0; }
.tool-icon.safety { background: var(--green-light); }

/* ─── Product Safety Score ─── */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.category-tab {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--cream);
    border-radius: 8px;
    background: var(--warm-bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.category-tab:hover { border-color: var(--accent-light); color: var(--text); }
.category-tab.active { border-color: var(--accent); color: var(--accent); background: white; }

.score-display {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    transition: background-color 0.3s;
}
.score-circle .score-value {
    font-size: 38px;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.score-circle .score-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.ingredient-analysis { margin-top: 24px; }
.ingredient-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream);
}
.ingredient-row:last-child { border-bottom: none; }

.ingredient-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}
.ingredient-icon.safe { background: var(--green-light); color: var(--green); }
.ingredient-icon.caution { background: var(--yellow-light); color: var(--yellow); }
.ingredient-icon.danger { background: var(--coral-light); color: var(--coral); }

.ingredient-info { flex: 1; min-width: 0; }
.ingredient-name { font-size: 15px; font-weight: 500; color: var(--text); }
.ingredient-detail { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-top: 2px; }
.ingredient-source { font-size: 11px; color: var(--accent-light); margin-top: 4px; }

.recall-alert {
    background: var(--coral-light);
    border: 2px solid var(--coral);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}
.recall-alert h3 { color: var(--coral); font-size: 16px; margin-bottom: 8px; }
.recall-alert p { color: var(--text); font-size: 14px; line-height: 1.6; margin-bottom: 0; }

.lookup-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--warm-bg);
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 100px;
}
.lookup-textarea:focus { outline: none; border-color: var(--accent); }
.lookup-textarea::placeholder { color: var(--accent-light); }

.tool-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.tool-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ─── Featured Product Card ─── */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.product-image {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    min-height: 400px;
}

.product-image img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.product-image-placeholder {
    width: 200px;
    height: 260px;
    background: var(--warm-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.product-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    width: fit-content;
}

.product-info h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-info .price {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.price-installment {
    font-size: 14px;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 16px;
}

.product-info .desc {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.stat { text-align: center; }
.stat-number { font-size: 28px; font-weight: 600; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Fact Cards ─── */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fact-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.fact-card .icon {
    width: 48px;
    height: 48px;
    background: var(--coral-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
    color: var(--coral);
}

.fact-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.fact-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.fact-card .source { font-size: 12px; color: var(--accent-light); margin-top: 12px; }

/* ─── Mini Product Cards (Grid) ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mini-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.mini-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.mini-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.mini-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.mini-card .coming-soon { font-size: 13px; color: var(--accent-light); font-weight: 500; }
.mini-card .card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

/* ─── Tool Pages ─── */
.tool-hero {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
    text-align: center;
}

.tool-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.tool-hero p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lookup-box {
    max-width: 520px;
    margin: 0 auto 48px;
    background: white;
    border-radius: 20px;
    padding: 40px 36px 36px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.lookup-prompt {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 24px;
}

.lookup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lookup-input-wrap {
    position: relative;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.lookup-input-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.25);
}

.lookup-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--cream);
    border-radius: 12px;
    font-size: 20px;
    font-family: inherit;
    letter-spacing: 0.04em;
    color: var(--text);
    background: var(--warm-bg);
    text-align: center;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.lookup-input:focus {
    outline: none;
    border-color: var(--accent);
}

.lookup-input::placeholder {
    color: var(--accent-light);
    letter-spacing: 0.01em;
}

.lookup-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.lookup-btn:hover {
    background: #245A42;
}

.lookup-btn:active {
    transform: scale(0.985);
}

/* Legacy support for lookup-input-group (product-safety) */
.lookup-input-group {
    display: flex;
    gap: 12px;
}

/* ─── Results Area ─── */
.results-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: none;
}
.results-area.visible { display: block; }

.result-summary {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.result-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.status-good { background: var(--green-light); color: var(--green); }
.status-moderate { background: var(--yellow-light); color: var(--yellow); }
.status-bad { background: var(--coral-light); color: var(--coral); }

.result-summary h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
}

.result-summary p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.result-detail-item {
    background: var(--warm-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.result-detail-item .detail-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.result-detail-item .detail-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Product Recommendations (Tool Pages) ─── */
.recommendations {
    margin-top: 48px;
}

.recommendations h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 8px;
}

.recommendations .rec-subtitle {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 32px;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rec-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.rec-card .rec-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.rec-badge.top-pick { background: var(--green-light); color: var(--green); }
.rec-badge.budget { background: var(--blue-light); color: var(--blue); }
.rec-badge.premium { background: var(--yellow-light); color: var(--yellow); }

.rec-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.rec-card .rec-price { font-size: 16px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.rec-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.rec-card .rec-cert { font-size: 12px; color: var(--green); margin-bottom: 16px; }

/* ─── Review Pages ─── */
.review-hero {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
}

.review-hero .breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.review-hero .breadcrumb a { color: var(--accent); }

.review-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.review-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.review-content {
    max-width: var(--content-width);
    margin: 40px auto 0;
    padding: 0 24px;
}

.review-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin: 40px 0 16px;
}

.review-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.review-content > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.review-content ul, .review-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.review-content li {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
}

.review-verdict {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin: 40px 0;
}

.review-verdict h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

.pros h3 { color: var(--green); }
.cons h3 { color: var(--coral); }

.pros li::marker { color: var(--green); }
.cons li::marker { color: var(--coral); }

.review-cta {
    background: var(--cream);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.review-cta .price {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.review-cta p {
    text-align: center;
    margin-bottom: 20px;
}

/* ─── Blog ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: var(--text);
}

.blog-card-body { padding: 28px; }
.blog-card .blog-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 12px;
}
.blog-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.blog-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ─── Newsletter ─── */
.newsletter {
    background: var(--cream);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 700px;
    margin: 80px auto 0;
}

.newsletter h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
}

.newsletter p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: white;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* ─── Footer ─── */
footer {
    max-width: 1000px;
    margin: 80px auto 0;
    padding: 40px 24px;
    border-top: 1px solid var(--cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--cream);
}
.footer-bottom p { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.footer-bottom .disclosure {
    font-size: 12px;
    color: var(--accent-light);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* ─── Loading Spinner ─── */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--cream);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
    text-align: center;
    padding: 40px;
    display: none;
}
.loading-state.visible { display: block; }
.loading-state p { color: var(--text-light); font-size: 15px; margin-top: 16px; }

/* ─── Error State ─── */
.error-state {
    background: var(--coral-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: none;
}
.error-state.visible { display: block; }
.error-state p { color: var(--coral); font-size: 15px; }

/* ─── About Page ─── */
.about-hero {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
}

.about-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-content {
    max-width: var(--content-width);
    margin: 40px auto 0;
    padding: 0 24px;
}

.about-content p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin: 48px 0 16px;
    color: var(--text);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.value-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.value-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ─── Page Header (for inner pages) ─── */
.page-header {
    background: var(--cream);
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .product-card { grid-template-columns: 1fr; }
    .product-image { min-height: 240px; padding: 32px; }
    .product-info { padding: 28px; }
    .facts-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .rec-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .values-grid { grid-template-columns: 1fr; }
    .newsletter { padding: 32px 24px; }
    .newsletter-form { flex-direction: column; }
    .lookup-input-group { flex-direction: column; }
    .lookup-box { padding: 28px 20px 24px; margin-left: 16px; margin-right: 16px; border-radius: 16px; }
    .lookup-prompt { font-size: 19px; }
    .lookup-input { font-size: 18px; padding: 16px; }
    .lookup-btn { padding: 15px 20px; font-size: 16px; }
    .score-display { flex-direction: column; text-align: center; }
    .category-tabs { flex-direction: column; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 0 0 12px 12px;
        z-index: 100;
    }
    nav.open { display: flex; }
    nav a { padding: 12px 16px; }

    .mobile-toggle { display: block; }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-zip-row {
        flex-direction: column;
        border-radius: 14px;
    }
    .hero-zip-input { padding: 18px 20px; font-size: 17px; text-align: center; }
    .hero-zip-btn { padding: 16px 24px; border-radius: 0 0 12px 12px; }
    .result-details { grid-template-columns: repeat(2, 1fr); }

    /* Extracted component responsive */
    .who-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .quick-verdict .verdict-actions { flex-direction: column; }
    .quick-verdict .rating { font-size: 40px; }
    .concern-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .filter-detail .filter-specs { grid-template-columns: 1fr; }
    .aqi-display { flex-direction: column; text-align: center; }
    .aqi-scale { grid-template-columns: repeat(2, 1fr); }
    .sun-safety-grid { grid-template-columns: 1fr; }
    /* Berkey review */
    .comparison-table { font-size: 13px; }
    .comparison-table thead th, .comparison-table tbody td { padding: 12px 14px; }
    .related-reviews { grid-template-columns: 1fr; }
    .rating-number { font-size: 44px; }
    /* AquaTru vs Berkey */
    .advantage-grid { grid-template-columns: 1fr; }
    .comparison-header, .comparison-row { grid-template-columns: 1.2fr 1fr 1fr; }
    .comparison-header span, .comparison-row span { padding: 12px 12px; font-size: 13px; }
    /* Water quality report */
    .sample-table { font-size: 13px; }
    .sample-table th, .sample-table td { padding: 10px 12px; }
    /* Pregnancy */
    .contaminant-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .contaminant-row .contaminant-epa,
    .contaminant-row .contaminant-risk { text-align: left; }
    /* Nursery */
    .tip-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    /* Sunscreen */
    .uv-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    /* Pollen */
    .tips-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .tools-grid { grid-template-columns: 1fr; }
    .result-details { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .aqi-scale { grid-template-columns: 1fr; }
    .pollutant-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Photo + Barcode buttons row */
.lookup-buttons-row {
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .lookup-buttons-row {
        display: flex;
        gap: 12px;
    }
    .lookup-buttons-row > div {
        flex: 1;
    }
}

/* ─── Quick Verdict (Reviews) ─── */
.quick-verdict {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent);
}
.quick-verdict--caution { border-left-color: var(--yellow); }
.quick-verdict--caution .rating { color: var(--yellow); }
.quick-verdict--positive { border-left-color: var(--green); }
.quick-verdict--positive .rating { color: var(--green); }

.quick-verdict .rating {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.quick-verdict .rating-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.quick-verdict .summary {
    font-size: 17px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 16px;
}
.quick-verdict .verdict-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.verdict-price .price-installment {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--green);
    margin-top: 4px;
}
.quick-verdict .verdict-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Cost Table (Reviews) ─── */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cost-table th, .cost-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 15px;
}
.cost-table th {
    background: var(--cream);
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cost-table td {
    border-bottom: 1px solid var(--cream);
    color: var(--text-light);
}
.cost-table tr:last-child td {
    border-bottom: none;
}
.cost-table--highlight-total tr:last-child td {
    font-weight: 600;
    color: var(--green);
}

/* ─── Comparison Card (Reviews) ─── */
.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.comparison-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.comparison-card p {
    font-size: 15px;
    margin-bottom: 0;
}

/* ─── Who Grid (Reviews) ─── */
.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}
.who-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.who-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.who-card.buy h3 { color: var(--green); }
.who-card.skip h3 { color: var(--coral); }
.who-card li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ─── Related Grid (Reviews/Articles) ─── */
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.related-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    display: block;
}
.related-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: var(--text);
}
.related-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.related-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.related-card .card-link { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ─── FAQ Accordion ─── */
.faq-section { margin-top: 48px; }
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
}
.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    line-height: inherit;
}
.faq-question:hover { color: var(--accent); }
.faq-question .faq-toggle {
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    padding: 0 24px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 24px 20px;
}
.faq-answer p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ─── Brita-Specific Components ─── */
.removes-list {
    background: var(--green-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.removes-list li {
    color: var(--text) !important;
    font-weight: 500;
}
.removes-list li span {
    color: var(--text-light);
    font-weight: 400;
}
.not-removes-list {
    background: var(--coral-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.not-removes-list li {
    color: var(--text) !important;
    font-weight: 500;
}
.not-removes-list li span {
    color: var(--text-light);
    font-weight: 400;
}
.filter-type-card {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.filter-type-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.filter-type-card .filter-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}
.filter-type-card p {
    font-size: 15px;
    margin-bottom: 0;
}
.reality-check {
    background: var(--yellow-light);
    border-left: 4px solid var(--yellow);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
}
.reality-check h3 {
    color: var(--yellow);
    font-size: 16px;
    margin-bottom: 8px;
}
.reality-check p {
    color: var(--text) !important;
    font-size: 15px !important;
}
.concern-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--cream);
}
.concern-row:last-child { border-bottom: none; }
.concern-row .question {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.concern-row .answer-yes {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
}
.concern-row .answer-no {
    font-size: 14px;
    font-weight: 600;
    color: var(--coral);
}
.concern-row .answer-partial {
    font-size: 14px;
    font-weight: 600;
    color: var(--yellow);
}
.concerns-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin: 24px 0;
}
.better-options {
    background: var(--green-light);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
}
.better-options h2 {
    color: var(--green);
    margin-top: 0;
}
.rec-mini {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.rec-mini h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rec-mini .rec-meta { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.rec-mini p { font-size: 15px; margin-bottom: 12px; }

/* ─── AquaTru-Specific Components ─── */
.contaminant-list {
    background: var(--green-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.contaminant-list li {
    color: var(--text) !important;
    font-weight: 500;
}
.contaminant-list li span {
    color: var(--text-light);
    font-weight: 400;
}
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}
.cert-badge {
    background: white;
    border: 2px solid var(--green);
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ─── PFAS Article Components ─── */
.answer-box {
    background: var(--coral-light);
    border-left: 4px solid var(--coral);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
}
.answer-box p {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 17px !important;
    margin-bottom: 0;
}
.answer-box strong {
    color: var(--coral);
}
.answer-box--green { background: var(--green-light); border-left-color: var(--green); }
.answer-box--green strong { color: var(--green); }
.answer-box--blue { background: var(--blue-light); border-left-color: var(--accent); }
.answer-box--blue strong { color: var(--accent); }
.answer-box--yellow { background: var(--yellow-light); border-left-color: var(--yellow); }
.answer-box--yellow strong { color: var(--yellow); }
.filter-comparison {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.filter-comparison h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.filter-comparison p {
    margin-bottom: 0;
}
.filter-detail {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent);
}
.filter-detail.top-pick { border-top-color: var(--green); }
.filter-detail.budget { border-top-color: var(--accent); }
.filter-detail.under-sink { border-top-color: #6366f1; }
.filter-detail .filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.filter-detail.top-pick .filter-label { color: var(--green); }
.filter-detail.budget .filter-label { color: var(--accent); }
.filter-detail.under-sink .filter-label { color: #6366f1; }
.filter-detail h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    margin-bottom: 4px;
}
.filter-detail .filter-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.filter-detail .filter-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    background: var(--cream);
    border-radius: 12px;
    padding: 20px;
}
.filter-detail .spec-item {
    font-size: 14px;
}
.filter-detail .spec-item .spec-label {
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}
.filter-detail .spec-item .spec-value {
    color: var(--text-light);
}
.filter-detail .personal-note {
    background: var(--green-light);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-top: 16px;
    font-style: italic;
}
/* Pros/cons variant for article filter cards (uses h5 + custom markers) */
.filter-detail .pros-cons {
    gap: 20px;
    margin: 20px 0;
}
.filter-detail .pros-cons h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.filter-detail .pros-cons .pros h5 { color: var(--green); }
.filter-detail .pros-cons .cons h5 { color: var(--coral); }
.filter-detail .pros-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-detail .pros-cons li {
    font-size: 14px;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.filter-detail .pros .pros-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--green);
}
.filter-detail .cons .cons-list li::before {
    content: "\2013";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--coral);
}
.criteria-list {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.criteria-list li {
    padding: 6px 0;
    font-size: 15px;
}
.skip-list {
    background: var(--coral-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.skip-list h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--coral);
}
.skip-list li {
    color: var(--text) !important;
    font-size: 15px;
    padding: 4px 0;
}
.cert-callout {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--green);
    padding: 24px 28px;
    margin: 24px 0;
    text-align: center;
}
.cert-callout .cert-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.cert-callout .cert-name {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 8px;
}
.cert-callout p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.water-cta {
    background: var(--blue-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}
.water-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
    margin-top: 0;
}
.water-cta p {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Air Quality Components ─── */
.aqi-display {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.aqi-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
}
.aqi-number .value {
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.aqi-number .label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.aqi-info h2 {
    margin-bottom: 4px;
}
.aqi-info .aqi-category {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.aqi-info .aqi-location {
    font-size: 14px;
    color: var(--text-light);
}
.health-advice {
    background: var(--warm-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}
.health-advice h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.health-advice ul {
    list-style: none;
    padding: 0;
}
.health-advice li {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.health-advice li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 600;
}
.pollutant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.pollutant-item {
    background: var(--warm-bg);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.pollutant-item .pollutant-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.pollutant-item .pollutant-name {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pollutant-item .pollutant-unit {
    font-size: 11px;
    color: var(--accent-light);
}
.aqi-scale {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 24px 0;
}
.aqi-scale-item {
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
}
.aqi-scale-item .scale-range {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}
.aqi-scale-item .scale-label {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}

/* ─── UV Index Components ─── */
.uv-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto 20px;
    border: 6px solid var(--cream);
}
.uv-gauge .uv-number {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    line-height: 1;
    font-weight: 400;
}
.uv-gauge .uv-label-small {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.uv-low { border-color: var(--green); }
.uv-low .uv-number, .uv-low .uv-label-small { color: var(--green); }
.uv-moderate { border-color: #C4A03E; }
.uv-moderate .uv-number, .uv-moderate .uv-label-small { color: #C4A03E; }
.uv-high { border-color: #D4874D; }
.uv-high .uv-number, .uv-high .uv-label-small { color: #D4874D; }
.uv-very-high { border-color: var(--coral); }
.uv-very-high .uv-number, .uv-very-high .uv-label-small { color: var(--coral); }
.uv-extreme { border-color: #8B5CF6; }
.uv-extreme .uv-number, .uv-extreme .uv-label-small { color: #8B5CF6; }
.sun-safety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.safety-tip {
    background: var(--warm-bg);
    border-radius: 10px;
    padding: 20px;
}
.safety-tip h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.safety-tip p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}
.safety-alert {
    background: var(--coral-light);
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;
}
.safety-alert h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--coral);
}
.safety-alert p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ─── Filter Buttons (Reviews Index) ─── */
.filter-btn {
    background: white;
    border: 1.5px solid var(--cream);
    border-radius: 20px;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    margin: 4px;
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ─── Ask Page Components ─── */
.topic-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.topic-badge--water { background: var(--blue-light); color: var(--blue); }
.topic-badge--safety { background: var(--green-light); color: var(--green); }
.topic-badge--air { background: var(--coral-light); color: var(--coral); }
.topic-badge--food { background: var(--yellow-light); color: var(--yellow); }

.qa-card {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.qa-card__question {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.5;
}
.qa-card__answer {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ─── Tools Index Card Overrides ─── */
.tools-grid--page {
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.tools-grid--page .tool-card {
    padding: 40px 28px;
}
.tools-grid--page .tool-icon {
    width: 64px;
    height: 64px;
    font-size: 30px;
}
.tools-grid--page .tool-card .card-link {
    display: block;
    margin-top: 16px;
}

/* ─── Review Index Card Badges ─── */
.review-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.review-card-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ─── Thinkbaby Review Components ─── */
.ingredient-list {
    background: var(--green-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.ingredient-list li {
    color: var(--text) !important;
    font-weight: 500;
}
.ingredient-list li span {
    color: var(--text-light);
    font-weight: 400;
}
.warning-list {
    background: #FFF5F5;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.warning-list li {
    color: var(--text) !important;
    font-weight: 500;
}
.warning-list li span {
    color: var(--text-light);
    font-weight: 400;
}

/* ─── Berkey Review Components ─── */
.review-tldr {
    background: var(--coral-light);
    border-left: 4px solid var(--coral);
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin: 32px 0;
}
.review-tldr h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--coral);
}
.review-tldr p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}
.callout-box {
    background: var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin: 32px 0;
}
.callout-box h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--green);
}
.callout-box p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 16px;
}
.callout-box p:last-child { margin-bottom: 0; }
.warning-box {
    background: var(--yellow-light);
    border-left: 4px solid var(--yellow);
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin: 32px 0;
}
.warning-box h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--yellow);
}
.warning-box p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}
.rating-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}
.rating-number {
    font-family: 'DM Serif Display', serif;
    font-size: 56px;
    color: var(--coral);
    line-height: 1;
}
.rating-bar-container {
    flex: 1;
    max-width: 200px;
}
.rating-bar {
    height: 10px;
    background: var(--cream);
    border-radius: 5px;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    background: var(--coral);
    border-radius: 5px;
    width: 40%;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin: 24px 0;
}
.comparison-table thead th {
    background: var(--cream);
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.comparison-table tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--cream);
    line-height: 1.5;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table .check { color: var(--green); font-weight: 600; }
.comparison-table .cross { color: var(--coral); font-weight: 600; }
.comparison-table .highlight-col { background: var(--green-light); }
.alt-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.alt-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}
.alt-card .alt-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}
.alt-card .alt-cert {
    font-size: 13px;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 12px;
}
.alt-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}
.alt-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.alt-badge.pick { background: var(--green-light); color: var(--green); }
.alt-badge.value { background: var(--blue-light); color: var(--blue); }
.alt-badge.home { background: var(--yellow-light); color: var(--yellow); }
.related-reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}
/* Berkey FAQ variant (display toggle instead of max-height) */
.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

/* ─── AquaTru vs Berkey Components ─── */
.comparison-header {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    background: var(--text);
    color: white;
    font-weight: 600;
    font-size: 15px;
}
.comparison-header span {
    padding: 16px 20px;
}
.comparison-header span:nth-child(2) {
    background: rgba(255,255,255,0.08);
}
.comparison-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    border-bottom: 1px solid var(--cream);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row span {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
}
.comparison-row span:first-child {
    font-weight: 600;
    font-size: 14px;
}
.comparison-row span:nth-child(2) {
    background: rgba(76, 175, 80, 0.04);
}
.check-green {
    color: var(--green);
    font-weight: 600;
}
.check-green::before {
    content: "\2713 ";
    font-weight: 700;
}
.x-coral {
    color: var(--coral);
    font-weight: 600;
}
.x-coral::before {
    content: "\2717 ";
    font-weight: 700;
}
.neutral-text {
    color: var(--text-light);
}
.winner-callout {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}
.advantage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}
.advantage-card {
    border-radius: 12px;
    padding: 24px 28px;
}
.advantage-card.aquatru {
    background: var(--green-light);
    border: 2px solid var(--green);
}
.advantage-card.berkey {
    background: white;
    border: 2px solid var(--cream);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.advantage-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}
.advantage-card.aquatru h3 { color: var(--green); }
.advantage-card.berkey h3 { color: var(--text); }
.advantage-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.advantage-card ul li {
    font-size: 15px;
    color: var(--text);
    padding: 6px 0;
    line-height: 1.5;
}
.advantage-card.aquatru ul li::before {
    content: "\2713 ";
    color: var(--green);
    font-weight: 700;
    margin-right: 6px;
}
.advantage-card.berkey ul li::before {
    content: "\2713 ";
    color: var(--text-light);
    font-weight: 700;
    margin-right: 6px;
}
.epa-callout {
    background: var(--coral-light);
    border-left: 4px solid var(--coral);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
}
.epa-callout h4 {
    color: var(--coral);
    font-size: 16px;
    margin-bottom: 8px;
}
.epa-callout p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ─── Water Quality Report Components ─── */
.term-card {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.term-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.term-card .term-abbr {
    display: inline-block;
    background: var(--blue-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.term-card p {
    margin-bottom: 0;
}
.sample-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin: 24px 0;
    font-size: 15px;
}
.sample-table thead {
    background: var(--cream);
}
.sample-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sample-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--cream);
    color: var(--text);
}
.sample-table tr:last-child td {
    border-bottom: none;
}
.status-ok { color: var(--green); font-weight: 600; }
.status-watch { color: var(--yellow); font-weight: 600; }
.status-concern { color: var(--coral); font-weight: 600; }
.watchlist-item {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-left: 4px solid var(--accent);
}
.watchlist-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.watchlist-item .limit-info {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}
.watchlist-item p {
    margin-bottom: 0;
}
.context-box {
    background: var(--green-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
}
.context-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--green);
}
.context-box p {
    margin-bottom: 0;
}
.caution-box {
    background: var(--coral-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
}
.caution-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--coral);
}
.caution-box p {
    margin-bottom: 0;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}
.step-heading {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.step-heading h3 {
    margin-bottom: 0;
}

/* ─── Pregnancy Article Components ─── */
.study-callout {
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--blue);
    padding: 20px 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.study-callout .study-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.study-callout p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}
.study-callout strong {
    color: var(--text);
}
.contaminant-summary {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin: 24px 0;
}
.contaminant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--cream);
}
.contaminant-row:last-child { border-bottom: none; }
.contaminant-row .contaminant-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.contaminant-row .contaminant-epa {
    font-size: 14px;
    color: var(--text-light);
    flex: 1;
    text-align: center;
}
.contaminant-row .contaminant-risk {
    font-size: 14px;
    font-weight: 600;
    color: var(--coral);
    flex: 1;
    text-align: right;
}
.contaminant-row.header-row {
    background: var(--cream);
}
.contaminant-row.header-row .contaminant-name,
.contaminant-row.header-row .contaminant-epa,
.contaminant-row.header-row .contaminant-risk {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.guidance-card {
    background: var(--green-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
}
.guidance-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 8px;
}
.guidance-card p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0;
}
.warning-card {
    background: var(--coral-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
}
.warning-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--coral);
    margin-bottom: 8px;
}
.warning-card p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ─── Air Purifier Nursery Components ─── */
.purifier-card {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.purifier-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.purifier-card p {
    margin-bottom: 0;
}
.spec-list {
    background: var(--green-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.spec-list li {
    color: var(--green) !important;
    font-weight: 500;
}
.avoid-list {
    background: var(--coral-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.avoid-list li {
    color: var(--coral) !important;
    font-weight: 500;
}
.noise-callout {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--green);
    padding: 24px 28px;
    margin: 24px 0;
    text-align: center;
}
.noise-callout .callout-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.noise-callout .callout-value {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 8px;
}
.noise-callout p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.tips-box {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin: 24px 0;
}
.tip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--cream);
}
.tip-row:last-child { border-bottom: none; }
.tip-row .tip-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.tip-row .tip-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
}
.air-cta {
    background: var(--blue-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}
.air-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
    margin-top: 0;
}
.air-cta p {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Sunscreen Article Components ─── */
.sunscreen-detail {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sunscreen-detail h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.sunscreen-detail p {
    margin-bottom: 0;
}
.safe-list {
    background: var(--green-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.safe-list li {
    color: var(--green) !important;
    font-weight: 500;
}
.uv-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin: 24px 0;
}
.uv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--cream);
}
.uv-row:last-child { border-bottom: none; }
.uv-row .uv-level {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.uv-row .uv-action {
    font-size: 14px;
    color: var(--text-light);
    text-align: right;
}
.uv-cta {
    background: var(--yellow-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}
.uv-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
    margin-top: 0;
}
.uv-cta p {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.btn-yellow {
    background: var(--yellow);
    color: white;
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-yellow:hover {
    opacity: 0.9;
    color: white;
}

/* ─── Pollen Article Components ─── */
.pollen-card {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-top: 4px solid var(--yellow);
}
.pollen-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.pollen-card .pollen-timing {
    font-size: 14px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 10px;
}
.pollen-card p {
    margin-bottom: 0;
}
.pollen-card ul {
    margin-bottom: 8px;
}
.pollen-card ul li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}
.pollen-card .culprits {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}
.symptom-list {
    background: var(--yellow-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}
.symptom-list li {
    color: var(--text) !important;
    font-weight: 500;
}
.stat-callout {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--yellow);
    padding: 24px 28px;
    margin: 24px 0;
    text-align: center;
}
.stat-callout .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.stat-callout .stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 8px;
}
.stat-callout p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.tip-card {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.tip-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.tip-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}
.pollen-cta {
    background: var(--yellow-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}
.pollen-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
    margin-top: 0;
}
.pollen-cta p {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Share Bar (Blog Articles) ─── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
}
.share-bar--bottom {
    margin: 48px 0 0;
    padding-top: 32px;
    border-top: 1px solid var(--cream);
}
.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.share-buttons {
    display: flex;
    gap: 8px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    background: var(--cream);
    color: var(--text-light);
    padding: 0;
    font-family: inherit;
}
.share-btn:hover {
    transform: scale(1.1);
}
.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.share-btn--facebook:hover { background: #1877F2; color: white; }
.share-btn--twitter:hover { background: #000; color: white; }
.share-btn--pinterest:hover { background: #E60023; color: white; }
.share-btn--email:hover { background: var(--accent); color: white; }
.share-btn--copy:hover { background: var(--green); color: white; }
.share-btn--copy.copied { background: var(--green); color: white; }

/* ═══════════════════════════════════════════════════════════════
   Tool: Dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ─── Dashboard Hero ─── */
.dash-hero {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
    text-align: center;
}
.dash-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}
.dash-hero .subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ─── ZIP Form ─── */
.dash-zip-form {
    display: flex;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 12px;
    align-items: stretch;
}
.dash-zip-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid var(--cream);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}
.dash-zip-input:focus {
    outline: none;
    border-color: var(--accent);
}
.dash-zip-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.dash-zip-btn:hover {
    background: #7A6043;
}
.dash-privacy {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ─── Location Banner ─── */
.dash-location {
    display: none;
    max-width: 900px;
    margin: 0 auto 8px;
    padding: 0 24px;
    text-align: center;
}
.dash-location.visible {
    display: block;
}
.dash-location-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
}
.dash-location-inner strong {
    color: var(--text);
}
.dash-location-change {
    color: var(--accent);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    text-decoration: underline;
    padding: 0;
}

/* ─── Dashboard Grid ─── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 24px;
}
@media (max-width: 700px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .dash-hero h1 {
        font-size: 32px;
    }
    .dash-zip-form {
        flex-direction: column;
    }
}

/* ─── Dashboard Card ─── */
.dash-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
    transition: box-shadow 0.2s;
}
.dash-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.dash-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.dash-card-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.dash-card-icon.water { background: var(--blue-light); }
.dash-card-icon.air { background: var(--green-light); }
.dash-card-icon.pollen { background: var(--yellow-light); }
.dash-card-icon.uv { background: var(--coral-light); }

.dash-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--text);
}

/* Status Badge */
.dash-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.dash-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-status.green { background: #e8f5e9; color: #2e7d32; }
.dash-status.green .dash-status-dot { background: #4caf50; }
.dash-status.yellow { background: #fff8e1; color: #f9a825; }
.dash-status.yellow .dash-status-dot { background: #fbc02d; }
.dash-status.orange { background: #fff3e0; color: #e65100; }
.dash-status.orange .dash-status-dot { background: #ff9800; }
.dash-status.red { background: #ffebee; color: #c62828; }
.dash-status.red .dash-status-dot { background: #f44336; }
.dash-status.gray { background: var(--cream); color: var(--text-light); }
.dash-status.gray .dash-status-dot { background: #bbb; }

/* Value Display */
.dash-value {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 4px;
}
.dash-value-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Delta / Change */
.dash-delta {
    font-size: 13px;
    padding: 6px 0;
    border-top: 1px solid var(--cream);
    margin-top: 8px;
    color: var(--text-light);
}
.dash-delta.improved { color: #2e7d32; }
.dash-delta.worsened { color: #c62828; }

/* Detail Link */
.dash-detail-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.dash-detail-link:hover {
    color: #7A6043;
}

/* ─── Skeleton Loading ─── */
.dash-skeleton {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.skel-bar {
    background: var(--cream);
    border-radius: 6px;
    height: 16px;
    margin-bottom: 10px;
}
.skel-bar.wide { width: 80%; }
.skel-bar.medium { width: 50%; }
.skel-bar.narrow { width: 30%; }
.skel-bar.tall { height: 36px; width: 40%; margin-bottom: 6px; }

/* ─── Card Error ─── */
.dash-card-error {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}
.dash-card-error .retry-btn {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    padding: 0;
    text-decoration: underline;
}

/* ─── What Changed Section ─── */
.dash-changes {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 24px;
}
.dash-changes-box {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.dash-changes-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 16px;
}
.dash-changes-list {
    list-style: none;
    padding: 0;
}
.dash-changes-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--cream);
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.dash-changes-list li:last-child {
    border-bottom: none;
}
.change-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
}
.change-icon.up { background: #ffebee; color: #c62828; }
.change-icon.down { background: #e8f5e9; color: #2e7d32; }
.change-icon.same { background: var(--cream); color: var(--text-light); }
.dash-no-changes {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ─── Recommendations Section ─── */
.dash-recs {
    max-width: 900px;
    margin: 32px auto 0;
    padding: 0 24px;
}
.dash-recs-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 16px;
}
.dash-rec-item {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}
.dash-rec-icon {
    flex-shrink: 0;
    font-size: 20px;
    margin-top: 1px;
}
.dash-rec-item a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.dash-rec-item a:hover {
    text-decoration: underline;
}

/* ─── Share Section ─── */
.dash-share {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 24px;
    text-align: center;
}
.dash-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.dash-share-btn:hover {
    background: #7A6043;
}
.dash-share-btn svg {
    width: 18px;
    height: 18px;
}
.dash-share-copied {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}
.dash-share-copied.visible {
    display: block;
}

/* ─── Visit Counter ─── */
.dash-visit-count {
    max-width: 900px;
    margin: 12px auto 0;
    padding: 0 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ─── Hidden by default ─── */
.dash-results-wrap {
    display: none;
}
.dash-results-wrap.visible {
    display: block;
}

/* ─── Pollen sub-items ─── */
.pollen-breakdown {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.pollen-item {
    font-size: 13px;
    color: var(--text-light);
}
.pollen-item strong {
    color: var(--text);
}

/* ─── Newsletter override ─── */
.dash-newsletter {
    max-width: 700px;
    margin: 48px auto 0;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════
   Tool: Family Protection Score
   ═══════════════════════════════════════════════════════════════ */

/* ─── Score Ring ─── */
.family-score-page .score-display {
    text-align: center;
    margin: 48px auto 16px;
    max-width: var(--content-width);
    padding: 0 24px;
}

.score-ring-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
}

.score-ring-svg {
    width: 220px;
    height: 220px;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: var(--cream);
    stroke-width: 14;
}

.score-ring-fill {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.score-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-family: 'DM Serif Display', serif;
    font-size: 56px;
    line-height: 1;
    color: var(--text);
}

.score-total {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

.family-score-page .score-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.family-score-page .score-label.score-red { color: var(--coral); }
.family-score-page .score-label.score-orange { color: #C48A4E; }
.family-score-page .score-label.score-yellow { color: var(--yellow); }
.family-score-page .score-label.score-green { color: var(--green); }

.score-description {
    font-size: 15px;
    color: var(--text-light);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Category Sections ─── */
.categories {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--cream);
}

.category-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}

.category-card summary:hover {
    background: var(--warm-bg);
}

.category-card summary::-webkit-details-marker { display: none; }
.category-card summary::marker { display: none; content: ''; }

.category-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.category-icon.water { background: var(--blue-light); }
.category-icon.air { background: #F0EBF8; }
.category-icon.food { background: var(--green-light); }
.category-icon.sun { background: var(--yellow-light); }
.category-icon.home { background: var(--coral-light); }

.category-title {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--text);
}

.category-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-score-badge {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--warm-bg);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.category-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.category-card[open] .category-chevron {
    transform: rotate(180deg);
}

.category-items {
    padding: 0 24px 20px;
    border-top: 1px solid var(--cream);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--warm-bg);
}

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

.checklist-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border: 2px solid var(--accent-light);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
    background: white;
}

.checklist-item input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
}

.checklist-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checklist-item input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.checklist-label {
    flex: 1;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    line-height: 1.5;
}

.checklist-item input[type="checkbox"]:checked + .checklist-label {
    color: var(--text-light);
}

.checklist-pts {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--warm-bg);
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── What To Do Next ─── */
.next-steps {
    max-width: var(--content-width);
    margin: 56px auto 0;
    padding: 0 24px;
}

.next-steps h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    margin-bottom: 8px;
    text-align: center;
}

.next-steps-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.next-step-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--cream);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.next-step-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    color: var(--text);
}

.next-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.next-step-info {
    flex: 1;
}

.next-step-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.next-step-category {
    font-size: 13px;
    color: var(--text-light);
}

.next-step-pts {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
}

.next-step-arrow {
    color: var(--accent-light);
    flex-shrink: 0;
}

.all-done-message {
    text-align: center;
    padding: 32px 24px;
    background: var(--green-light);
    border-radius: 12px;
    color: var(--green);
    font-weight: 600;
    font-size: 16px;
}

/* ─── Progress Over Time ─── */
.progress-section {
    max-width: var(--content-width);
    margin: 56px auto 0;
    padding: 0 24px;
    text-align: center;
}

.progress-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    margin-bottom: 16px;
}

.progress-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--cream);
    max-width: 500px;
    margin: 0 auto;
}

.progress-stat {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
}

.progress-stat strong {
    color: var(--green);
}

.progress-first-visit {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
}

/* ─── Share Section (Family Score) ─── */
.share-section {
    max-width: var(--content-width);
    margin: 56px auto 0;
    padding: 0 24px;
    text-align: center;
}

.share-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 8px;
}

.share-section p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.family-score-page .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    background: var(--accent);
    color: white;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.family-score-page .share-btn:hover {
    background: #7A6043;
}

.family-score-page .share-btn svg {
    width: 18px;
    height: 18px;
}

.share-toast {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--green);
}

.share-toast.visible {
    display: block;
}

/* ─── Responsive (Family Score) ─── */
@media (max-width: 768px) {
    .score-ring-wrap {
        width: 180px;
        height: 180px;
    }

    .score-ring-svg {
        width: 180px;
        height: 180px;
    }

    .score-number {
        font-size: 44px;
    }

    .score-total {
        font-size: 16px;
    }

    .category-card summary {
        padding: 16px 18px;
    }

    .category-title {
        font-size: 17px;
    }

    .category-items {
        padding: 0 18px 16px;
    }

    .checklist-item {
        padding: 12px 0;
    }

    .next-steps h2,
    .progress-section h2,
    .share-section h2 {
        font-size: 26px;
    }

    .progress-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .category-header-left {
        gap: 10px;
    }

    .category-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .category-title {
        font-size: 16px;
    }

    .category-score-badge {
        font-size: 12px;
        padding: 3px 8px;
    }

    .next-step-card {
        padding: 16px 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Tool: Town Report Card
   ═══════════════════════════════════════════════════════════════ */

/* ─── Report Card Page Styles ─── */

.rc-hero {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
    text-align: center;
}
.rc-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}
.rc-hero p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ─── Loading & Error ─── */
.rc-loading {
    display: none;
    text-align: center;
    padding: 40px 24px;
    max-width: 480px;
    margin: 0 auto 32px;
}
.rc-loading.visible { display: block; }
.rc-loading p { color: var(--text-light); font-size: 15px; margin-top: 16px; }

.rc-error {
    display: none;
    max-width: 480px;
    margin: 0 auto 32px;
    text-align: center;
}
.rc-error.visible { display: block; }
.rc-error p { color: var(--coral); font-size: 15px; }

/* ─── The Report Card ─── */
.report-card-wrapper {
    display: none;
    max-width: 540px;
    margin: 0 auto 48px;
    padding: 0 24px;
}
.report-card-wrapper.visible { display: block; }

.report-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 2px solid var(--cream);
}

/* Card header stripe */
.rc-card-header {
    background: var(--text);
    color: white;
    padding: 24px 28px 20px;
    position: relative;
}
.rc-card-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1.3;
    color: white;
}
.rc-card-header .rc-date {
    font-size: 13px;
    opacity: 0.7;
}
.rc-card-header .rc-watermark {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    opacity: 0.4;
    text-align: right;
    line-height: 1.3;
}

/* Overall grade circle */
.rc-overall {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-bottom: 2px solid var(--cream);
}
.rc-overall-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid;
}
.rc-overall-letter {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
}
.rc-overall-info h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    margin-bottom: 4px;
}
.rc-overall-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Grade colors */
.grade-a { color: #2E7D32; }
.grade-a-bg { background: #E8F5E9; border-color: #2E7D32; }
.grade-b { color: #558B2F; }
.grade-b-bg { background: #F1F8E9; border-color: #558B2F; }
.grade-c { color: #F9A825; }
.grade-c-bg { background: #FFFDE7; border-color: #F9A825; }
.grade-d { color: #EF6C00; }
.grade-d-bg { background: #FFF3E0; border-color: #EF6C00; }
.grade-f { color: #C62828; }
.grade-f-bg { background: #FFEBEE; border-color: #C62828; }

/* Grade table */
.rc-grades {
    padding: 0;
}
.rc-grade-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid var(--cream);
    gap: 16px;
}
.rc-grade-row:last-child {
    border-bottom: none;
}
.rc-subject {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}
.rc-subject-detail {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    line-height: 1.4;
}
.rc-grade-letter {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    width: 48px;
    text-align: center;
}
.rc-grade-score {
    font-size: 13px;
    color: var(--text-light);
    width: 50px;
    text-align: right;
}

/* Card footer */
.rc-card-footer {
    background: var(--warm-bg);
    padding: 16px 28px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}
.rc-card-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* ─── Share Section ─── */
.rc-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.rc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.rc-share-btn.primary {
    background: var(--accent);
    color: white;
}
.rc-share-btn.primary:hover { background: #7A6043; }
.rc-share-btn.secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--cream);
}
.rc-share-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.rc-share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rc-share-toast {
    display: none;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
}
.rc-share-toast.visible { display: block; }

/* ─── Grading Criteria ─── */
.rc-criteria {
    max-width: 540px;
    margin: 0 auto 48px;
    padding: 0 24px;
}
.rc-criteria h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}
.rc-criteria-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rc-criteria-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.rc-criteria-grade {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    font-weight: 400;
    width: 28px;
    flex-shrink: 0;
    text-align: center;
}
.rc-criteria-text {
    color: var(--text-light);
}
.rc-criteria-text strong {
    color: var(--text);
}

/* ─── Recommendations ─── */
.rc-recs {
    max-width: 540px;
    margin: 0 auto 48px;
    padding: 0 24px;
    display: none;
}
.rc-recs.visible { display: block; }
.rc-recs h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
}
.rc-rec-card {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    border-left: 4px solid var(--accent);
}
.rc-rec-card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Comparison CTA ─── */
.rc-compare {
    max-width: 540px;
    margin: 0 auto 48px;
    padding: 0 24px;
    text-align: center;
}
.rc-compare-box {
    background: var(--cream);
    border-radius: 12px;
    padding: 28px 24px;
}
.rc-compare-box p {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text);
}

/* ─── Print Styles ─── */
@media print {
    header, footer, .lookup-box, .rc-hero, .rc-share,
    .rc-criteria, .rc-recs, .rc-compare, .newsletter,
    .rc-loading, .rc-error { display: none !important; }
    .report-card-wrapper { margin: 0 auto; }
    .report-card { box-shadow: none; border: 2px solid #ddd; }
}

/* ─── Responsive (Report Card) ─── */
@media (max-width: 600px) {
    .rc-hero h1 { font-size: 32px; }
    .rc-card-header h2 { font-size: 18px; }
    .rc-card-header .rc-watermark { display: none; }
    .rc-overall { flex-direction: column; text-align: center; padding: 24px 20px; }
    .rc-overall-circle { width: 88px; height: 88px; }
    .rc-overall-letter { font-size: 40px; }
    .rc-grade-row { padding: 14px 20px; gap: 10px; }
    .rc-grade-letter { font-size: 24px; width: 40px; }
    .rc-share { flex-direction: column; }
    .rc-share-btn { justify-content: center; }
    .report-card-wrapper { padding: 0 16px; }
}
