/* Class 9 Kaveri chapter pages */
.kaveri-hero {
    background: linear-gradient(135deg, #f8fbff 0%, #fff7ed 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 34px);
    margin-bottom: 24px;
}

.kaveri-hero .eyebrow {
    color: #2563eb;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.kaveri-hero h1 {
    margin: 10px 0 12px;
    color: #111827;
    line-height: 1.14;
}

.kaveri-hero p {
    max-width: 780px;
    color: #475569;
    line-height: 1.75;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.fact-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.fact-card span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.fact-card strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    line-height: 1.35;
}

.toc-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 30px;
}

.toc-strip a {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.kaveri-note {
    border-left: 4px solid #f97316;
    background: #fff7ed;
    border-radius: 8px;
    padding: 16px;
    color: #7c2d12;
    line-height: 1.7;
}

.kaveri-list {
    padding-left: 1.2rem;
    line-height: 1.8;
}

.kaveri-list li {
    margin-bottom: 8px;
}

.chapter-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.chapter-nav-grid a {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: #1f2937;
    background: #ffffff;
    font-weight: 700;
}

.chapter-nav-grid a.active,
.chapter-nav-grid a:hover {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
}

@media (max-width: 640px) {
    .kaveri-hero {
        padding: 18px;
    }

    .toc-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .toc-strip a {
        text-align: center;
        border-radius: 8px;
    }

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