/* Tier 5 (ranks 21–25) — journeys, community hub, coverage, cultural browse, insights */

.tier5-hero {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(8, 145, 178, 0.08) 50%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.tier5-hero h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.tier5-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.tier5-hub-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    min-height: 140px;
}

.tier5-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: inherit;
}

.tier5-hub-card .hub-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(145deg, var(--primary-light), var(--primary));
    color: #fff;
}

.tier5-hub-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.tier5-hub-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.tier5-journey-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    background: var(--bg-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
}

.tier5-journey-card:hover {
    border-color: var(--primary-light);
}

.tier5-journey-card .title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.tier5-journey-tabs .nav-pills .nav-link {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tier5-journey-tabs .nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.tier5-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier5-step-list li {
    position: relative;
    padding: 0.65rem 0 0.65rem 2rem;
    border-bottom: 1px solid var(--border);
}

.tier5-step-list li:last-child {
    border-bottom: none;
}

.tier5-step-list li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier5-step-list {
    counter-reset: step;
}

.tier5-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tier5-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}

.tier5-chip:hover,
.tier5-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tier5-insight-band {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.tier5-insight-band.low {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.tier5-insight-band.moderate {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.tier5-insight-band.elevated {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.tier5-insight-band.none {
    background: var(--border);
    color: var(--text-secondary);
}

.chew-mode {
    font-size: 1.2rem;
    line-height: 1.65;
}

.chew-mode h1 {
    font-size: 1.75rem;
}

.chew-mode h2 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
}

.chew-mode .check-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
}

.outbreak-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
}

.outbreak-card.sev-alert {
    border-left: 4px solid #dc2626;
}

.outbreak-card.sev-watch {
    border-left: 4px solid #d97706;
}

.outbreak-card.sev-info {
    border-left: 4px solid var(--primary);
}

.coverage-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.25rem;
    height: 100%;
    background: var(--bg-card);
}

.coverage-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* Dark mode: insight bands — brighter text on tinted panels */
[data-bs-theme="dark"] .tier5-insight-band.low {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

[data-bs-theme="dark"] .tier5-insight-band.moderate {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
}

[data-bs-theme="dark"] .tier5-insight-band.elevated {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}
