/* =============================================================================
   Health / Afya — condition library
   ============================================================================= */

.health-view {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-main, #fbfaf7);
}

.health-hero {
    padding: 48px 32px 36px;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(18, 138, 107, 0.22), transparent 55%),
        linear-gradient(160deg, #0f3d34 0%, #128a6b 48%, #1a5c4a 100%);
    color: #f7faf8;
}

.health-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.health-title {
    margin: 0 0 8px;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.health-subtitle {
    margin: 0 0 16px;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.92;
}

.health-seo-en {
    margin: 0;
    max-width: 640px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(247, 250, 248, 0.78);
}

.health-tabs {
    display: flex;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-light, #e5e2d9);
    background: var(--bg-main, #fbfaf7);
}

.health-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary, #3d3d38);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.health-tab:hover {
    color: var(--nk-accent, #128a6b);
}

.health-tab.active {
    color: var(--nk-accent, #128a6b);
    border-bottom-color: var(--nk-accent, #128a6b);
}

.health-tab-count {
    font-weight: 500;
    font-size: 0.85em;
    opacity: 0.85;
}

.health-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 32px 56px;
}

.health-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 28px;
}

.health-az-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 6px;
    border: 1px solid var(--border-light, #e5e2d9);
    color: var(--nk-accent, #128a6b);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
}

.health-az-link:hover {
    background: rgba(18, 138, 107, 0.08);
    border-color: var(--nk-accent, #128a6b);
}

.health-az-block {
    margin: 0 0 28px;
    scroll-margin-top: 80px;
}

.health-az-heading {
    margin: 0 0 10px;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nk-accent, #128a6b);
    border-bottom: 1px solid var(--border-light, #e5e2d9);
    padding-bottom: 6px;
}

.health-az-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 16px;
}

.health-az-item {
    display: block;
    padding: 8px 0;
    color: var(--text-primary, #141412);
    font-weight: 550;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.health-az-item:hover {
    color: var(--nk-accent, #128a6b);
    border-bottom-color: rgba(18, 138, 107, 0.35);
}

.health-az-block.is-empty {
    display: none;
}

.health-disclaimer {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-left: 3px solid var(--nk-accent, #128a6b);
    background: rgba(18, 138, 107, 0.08);
    color: var(--text-secondary, #3d3d38);
    font-size: 0.92rem;
    line-height: 1.5;
}

.health-disclaimer--detail {
    margin: 0 0 28px;
}

.health-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.health-search-input {
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    border: 1px solid var(--border-light, #e5e2d9);
    border-radius: 2px;
    background: #fff;
    font-size: 1rem;
    color: var(--text-primary, #141412);
}

.health-search-input:focus {
    outline: 2px solid rgba(18, 138, 107, 0.35);
    outline-offset: 1px;
    border-color: var(--nk-accent, #128a6b);
}

.health-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.health-filter-chip {
    padding: 7px 12px;
    border: 1px solid var(--border-light, #e5e2d9);
    border-radius: 2px;
    background: transparent;
    color: var(--text-secondary, #3d3d38);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.health-filter-chip:hover {
    border-color: var(--nk-accent, #128a6b);
    color: var(--nk-accent, #128a6b);
}

.health-filter-chip.active {
    background: var(--nk-accent, #128a6b);
    border-color: var(--nk-accent, #128a6b);
    color: #fff;
}

.health-section-title {
    margin: 0 0 14px;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 650;
    color: var(--text-primary, #141412);
}

.health-featured {
    margin-bottom: 36px;
}

.health-featured-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.health-featured-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border-light, #e5e2d9);
    border-radius: 2px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(18, 138, 107, 0.06), transparent 70%);
    transition: border-color 0.15s, transform 0.15s;
}

.health-featured-card:hover {
    border-color: var(--nk-accent, #128a6b);
    transform: translateY(-1px);
}

.health-featured-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #141412);
}

.health-featured-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary, #3d3d38);
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.health-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-top: 1px solid var(--border-light, #e5e2d9);
    border-bottom: 1px solid var(--border-light, #e5e2d9);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}

.health-card:hover {
    background: rgba(18, 138, 107, 0.05);
    border-color: rgba(18, 138, 107, 0.35);
}

.health-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nk-accent, #128a6b);
}

.health-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #141412);
    line-height: 1.3;
}

.health-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary, #3d3d38);
}

.health-news-link-wrap {
    margin: 36px 0 0;
}

.health-news-link {
    color: var(--nk-accent, #128a6b);
    font-weight: 600;
    text-decoration: none;
}

.health-news-link:hover {
    text-decoration: underline;
}

/* Detail */
.health-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 28px 64px;
}

.health-detail-back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--nk-accent, #128a6b);
    font-weight: 600;
    text-decoration: none;
}

.health-detail-back:hover {
    text-decoration: underline;
}

.health-detail-header {
    margin-bottom: 20px;
}

.health-detail-cat {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nk-accent, #128a6b);
}

.health-detail-header h1 {
    margin: 0 0 8px;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #141412);
}

.health-detail-aliases {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: var(--text-secondary, #3d3d38);
}

.health-detail-aliases span {
    font-weight: 600;
}

.health-detail-seo-en {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary, #3d3d38);
}

.health-detail-section {
    margin: 0 0 28px;
    padding-top: 4px;
    border-top: 1px solid var(--border-light, #e5e2d9);
}

.health-detail-section h2 {
    margin: 18px 0 10px;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--text-primary, #141412);
}

.health-detail-section p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary, #141412);
}

.health-detail-section--urgent {
    padding: 4px 0 4px 14px;
    border-top: none;
    border-left: 3px solid #b45309;
    background: rgba(180, 83, 9, 0.06);
}

.health-detail-section--urgent h2 {
    margin-top: 14px;
    color: #92400e;
}

.health-symptom-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 6px;
}

.health-symptom-list li {
    line-height: 1.5;
    color: var(--text-primary, #141412);
}

.health-faq {
    margin: 0;
}

.health-faq-item {
    margin: 0 0 16px;
}

.health-faq-item dt {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--text-primary, #141412);
}

.health-faq-item dd {
    margin: 0;
    line-height: 1.55;
    color: var(--text-secondary, #3d3d38);
}

.health-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.health-related-list a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--border-light, #e5e2d9);
    color: var(--nk-accent, #128a6b);
    font-weight: 600;
    text-decoration: none;
}

.health-related-list a:hover {
    border-color: var(--nk-accent, #128a6b);
    background: rgba(18, 138, 107, 0.06);
}

@media (max-width: 720px) {
    .health-hero {
        padding: 36px 20px 28px;
    }

    .health-tabs {
        padding: 0 20px;
    }

    .health-body {
        padding: 22px 20px 48px;
    }

    .health-detail {
        padding: 24px 20px 48px;
    }

    .health-card {
        padding: 16px 4px;
    }

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