/*
 * Shortcode [alertas_defesa_civil] (inc/defesa-civil.php).
 * A cor do topo acompanha o alerta mais grave para a cidade.
 */

.uel-defesa-civil {
    --uel-dc-cor: #2E7D32;          /* sem alerta */
    --uel-dc-cor-texto: #fff;

    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #E3E3E3;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    overflow: hidden;
    font-family: "Inter", sans-serif;
}

.uel-defesa-civil--baixa      { --uel-dc-cor: #1E88E5; }
.uel-defesa-civil--moderada   { --uel-dc-cor: #F2B705; --uel-dc-cor-texto: #3A2C00; }
.uel-defesa-civil--alta       { --uel-dc-cor: #E67E22; }
.uel-defesa-civil--muito-alta { --uel-dc-cor: #C0392B; }

.uel-defesa-civil p {
    margin: 0;
}

.uel-defesa-civil__topo {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.25rem;
    color: var(--uel-dc-cor-texto);
    background: var(--uel-dc-cor);
}

.uel-defesa-civil__icone {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
}

.uel-defesa-civil__titulo {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
}

.uel-defesa-civil__local {
    font-size: .75rem;
    opacity: .85;
}

.uel-defesa-civil__corpo {
    flex: 1 1 auto;
    padding: 1rem 1.25rem;
    font-size: .88rem;
    line-height: 1.45;
    color: #1D1717;
}

.uel-defesa-civil__vazio strong {
    color: #2E7D32;
}

.uel-defesa-civil__estado {
    margin-top: .5rem !important;
    font-size: .8rem;
    color: #5F5F5F;
}

/* Especificidade maior que ".pagina ul" do tema (padding de 175px em telas grandes) */
.uel-defesa-civil ul.uel-defesa-civil__lista {
    margin: 0;
    padding: 0;
    list-style: none;
}

.uel-defesa-civil__alerta + .uel-defesa-civil__alerta {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #EEE;
}

.uel-defesa-civil__severidade {
    display: inline-block;
    margin-bottom: .35rem;
    padding: .15rem .55rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--uel-dc-alerta, #1E88E5);
    border-radius: 999px;
}

.uel-defesa-civil__alerta--moderada   { --uel-dc-alerta: #C99700; }
.uel-defesa-civil__alerta--alta       { --uel-dc-alerta: #E67E22; }
.uel-defesa-civil__alerta--muito-alta { --uel-dc-alerta: #C0392B; }

.uel-defesa-civil__evento {
    font-weight: 700;
    line-height: 1.3;
}

.uel-defesa-civil__periodo {
    margin-top: .15rem !important;
    font-size: .78rem;
    font-weight: 600;
    color: #5F5F5F;
}

.uel-defesa-civil__descricao {
    margin-top: .35rem !important;
    font-size: .82rem;
    color: #3F3F3F;
}

.uel-defesa-civil__rodape {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .75rem 1.25rem;
    font-size: .75rem;
    color: #5F5F5F;
    background: #F7F7F7;
    border-top: 1px solid #EEE;
}

.uel-defesa-civil__rodape a,
.uel-defesa-civil__rodape a:hover {
    font-weight: 700;
    color: #00753B;
}

