/* Hunger Crises — IPC phase colours follow the IPC's own scale. */
:root {
    --hg-p1: #cdfacd;
    --hg-p2: #fae61e;
    --hg-p3: #e67800;
    --hg-p4: #c80000;
    --hg-p5: #640000;
}
[data-theme="dark"] {
    --hg-p1: #9fd69f;
    --hg-p2: #e8d31a;
    --hg-p3: #f08a1c;
    --hg-p4: #e23b3b;
    --hg-p5: #a01818;
}
.hg-legend-panel { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.hg-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--fs-sm); font-weight: 600; }
.hg-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hg-sw { display: inline-block; width: 0.95rem; height: 0.95rem; border-radius: 3px; }
.hg-p1 { background: var(--hg-p1); } .hg-p2 { background: var(--hg-p2); } .hg-p3 { background: var(--hg-p3); } .hg-p4 { background: var(--hg-p4); } .hg-p5 { background: var(--hg-p5); }
.hg-legend-text { margin: var(--space-2) 0 0; font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.5; }
.hg-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-2) 0 var(--space-3); }
.hg-label { font-size: var(--fs-sm); color: var(--text-secondary); }
.hg-select { max-width: 100%; min-height: 2.25rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); font: inherit; }
.hg-text { margin: var(--space-2) 0 var(--space-3); line-height: 1.55; }
.hg-table { min-width: 40rem; }
.hg-table td, .hg-table th { vertical-align: top; }
.hg-bar-col { width: 32%; }
.hg-bar { display: flex; height: 0.9rem; border-radius: 3px; overflow: hidden; margin-top: 0.2rem; min-width: 8rem; }
.hg-bar i { display: block; height: 100%; }
.hg-sub { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 0.15rem; line-height: 1.4; }
.hg-tag { display: inline-block; padding: 0.02rem 0.4rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--status-amber-bg); color: var(--text-primary); white-space: nowrap; margin-top: 0.2rem; }
.hg-nowrap { white-space: nowrap; }
