/* Calculadora de salário líquido — shortcode [gq_liquido]. Mesmo desenho do
 * box "Onde eu estou?" (onde-estou.css): alinhado à esquerda, largura do miolo,
 * cores do design system (--gq-*) com fallback. */
.gq-lq {
    margin: 2rem 0;
    padding: 1.4rem 1.4rem 1.2rem;
    border: 1px solid var(--gq-border, rgba(128, 128, 128, 0.28));
    border-radius: 12px;
    background: var(--gq-surface, rgba(128, 128, 128, 0.05));
}
.gq-lq-titulo {
    font-size: 19px;
    font-weight: 500;
    margin: 0 0 1rem;
}
/* Mesmo motivo do .gq-oe-titulo: o tema dá margem de topo grande a títulos
 * dentro de .entry-content, e dentro do box isso vira espaço em branco. */
body:not(.home) .entry-content .gq-lq h3.gq-lq-titulo {
    margin: 0 0 1rem !important;
}
/* Na página de cargo o "Compare o seu salário" (h2) sai com 24px/600 pela
 * regra de h2 de seção (pagina-orgao.css). Este é h3 e ficava em 19px/500,
 * visivelmente menor: iguala aos dois. */
body:not(.home) .entry-content .gq-cargo-geral .gq-lq h3.gq-lq-titulo {
    font-size: 24px !important;
    font-weight: 600;
}
.gq-lq-form {
    display: grid;
    gap: 1.1rem;
}
.gq-lq-campo {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.gq-lq-campo[hidden] {
    display: none;
}
.gq-lq-campo > label,
.gq-lq-campo > legend {
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.35rem;
}
.gq-lq-linha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.gq-lq input[type="text"],
.gq-lq input[type="number"],
.gq-lq select {
    font: inherit;
    font-size: 16px; /* evita o zoom automático do iOS */
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gq-border, rgba(128, 128, 128, 0.45));
    border-radius: 8px;
    background: var(--gq-bg, #fff);
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}
.gq-lq-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gq-lq-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    font-weight: 400 !important;
    margin: 0 !important;
}
.gq-lq-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gq-lq-chip span {
    font-size: 14px;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--gq-border, rgba(128, 128, 128, 0.45));
    border-radius: 999px;
}
.gq-lq-chip input:checked + span {
    background: var(--gq-accent, #1a5c3a);
    border-color: var(--gq-accent, #1a5c3a);
    color: #fff;
}
.gq-lq-chip input:focus-visible + span {
    outline: 2px solid var(--gq-accent, #1a5c3a);
    outline-offset: 2px;
}
.gq-lq-ajuda {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.45;
    margin: 0.3rem 0 0;
}
.gq-lq-mais summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.gq-lq-resultado:not(:empty) {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--gq-border, rgba(128, 128, 128, 0.25));
}
.gq-lq-frase {
    font-size: 19px;
    margin: 0 0 0.3rem;
}
.gq-lq-valor {
    font-family: var(--gq-font-display, inherit);
    font-size: 1.5em;
    font-weight: 600;
    color: var(--gq-accent-strong, var(--gq-accent, #1a5c3a));
    font-variant-numeric: tabular-nums;
}
.gq-lq-sub {
    font-size: 15px;
    margin: 0 0 1rem;
}
.gq-lq-barra {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 0 1rem;
    background: rgba(128, 128, 128, 0.12);
}
.gq-lq-seg {
    display: block;
    height: 100%;
}
.gq-lq-seg-liquido {
    background: var(--gq-accent, #1a5c3a);
}
.gq-lq-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 0 0 1rem;
}
.gq-lq-tabela td {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--gq-border, rgba(128, 128, 128, 0.2));
    vertical-align: top;
}
.gq-lq-tabela td.num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    padding-left: 1rem;
}
.gq-lq-tabela .gq-lq-total td {
    font-weight: 600;
    border-bottom: 0;
}
.gq-lq-cor {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.5rem;
}
.gq-lq-nota-linha {
    display: block;
    font-size: 12.5px;
    opacity: 0.65;
    margin-left: 1.1rem;
}
.gq-lq-nota {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.72;
    margin: 0 0 0.5rem;
}
.gq-lq-erro {
    color: #b42318;
}
@media (max-width: 520px) {
    .gq-lq {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}
