/* "Vale a pena o concurso?" — shortcode [gq_vale_concurso]. Mesmo desenho dos
 * outros boxes de ferramenta (onde-estou.css, liquido.css): alinhado à
 * esquerda, largura do miolo, cores do design system com fallback. */
/* .gq-pc é "PJ ou CLT?" (pj-clt.js). Não pode ganhar a classe .gq-cc: o
 * concurso.js monta a outra ferramenta em tudo que é .gq-cc. Por isso o
 * estilo é compartilhado por seletor, aqui e nos inputs abaixo. */
.gq-cc,
.gq-pc {
    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-cc-titulo {
    font-size: 19px;
    font-weight: 500;
    margin: 0 0 1rem;
}
/* Mesmo motivo do .gq-oe-titulo/.gq-lq-titulo: o tema dá margem de topo
 * grande a títulos dentro de .entry-content. */
body:not(.home) .entry-content .gq-cc h3.gq-cc-titulo {
    margin: 0 0 1rem !important;
}
.gq-cc-colunas,
.gq-cc-comparacao {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.gq-cc-lado {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--gq-border, rgba(128, 128, 128, 0.25));
    border-radius: 10px;
    background: var(--gq-bg, #fff);
}
.gq-cc-lado legend {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    padding: 0 0.3rem;
}
.gq-cc-rotulo {
    font-size: 14px;
    font-weight: 600;
    margin-top: 0.35rem;
}
.gq-cc-campo-cargo {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.gq-cc-campo-cargo[hidden],
.gq-cc-so-pj[hidden],
.gq-cc-edital[hidden] {
    display: none;
}
.gq-cc-so-pj {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.gq-cc input[type="text"],
.gq-cc input[type="number"],
.gq-cc select,
.gq-pc input[type="text"],
.gq-pc input[type="number"] {
    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;
}
/* Formulário do "PJ ou CLT?": quatro campos, dois por linha. */
.gq-pc .gq-cc-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem 1.2rem;
}
.gq-pc-campo {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.gq-pc-campo .gq-cc-rotulo { margin-top: 0; }
.gq-pc .gq-cc-saida:not(:empty) {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--gq-border, rgba(128, 128, 128, 0.25));
}
.gq-cc-comum {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 1.2rem;
    row-gap: 0.45rem;
    margin-top: 1rem;
    align-items: end;
}
.gq-cc-comum .gq-cc-rotulo { grid-row: 1; }
.gq-cc-comum input { grid-row: 2; }
.gq-cc-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gq-cc-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    font-weight: 400 !important;
    margin: 0 !important;
}
.gq-cc-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gq-cc-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-cc-chip input:checked + span {
    background: var(--gq-accent, #1a5c3a);
    border-color: var(--gq-accent, #1a5c3a);
    color: #fff;
}
.gq-cc-chip input:focus-visible + span {
    outline: 2px solid var(--gq-accent, #1a5c3a);
    outline-offset: 2px;
}
.gq-cc-ajuda {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.45;
    margin: 0.2rem 0 0;
}

.gq-cc-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-cc-frase {
    font-size: 19px;
    line-height: 1.45;
    margin: 0 0 0.4rem;
}
.gq-cc-mais,
.gq-cc-menos {
    font-family: var(--gq-font-display, inherit);
    font-size: 1.25em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.gq-cc-mais {
    color: var(--gq-accent-strong, var(--gq-accent, #1a5c3a));
}
.gq-cc-menos {
    color: #b42318;
}
.gq-cc-sub {
    font-size: 15px;
    margin: 0 0 0.4rem;
}
.gq-cc-comparacao {
    margin: 1rem 0;
}
.gq-cc-coluna-titulo {
    font-size: 14px !important;
    font-weight: 600;
    margin: 0 0 0.4rem !important;
}
.gq-cc-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.gq-cc-tabela td {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gq-border, rgba(128, 128, 128, 0.2));
    vertical-align: top;
}
.gq-cc-tabela td.num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    padding-left: 1rem;
}
.gq-cc-total td {
    font-weight: 600;
}
.gq-cc-extra td {
    font-size: 13px;
    opacity: 0.7;
    border-bottom: 0;
}
.gq-cc-nota {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.72;
    margin: 0 0 0.5rem;
}
.gq-cc-erro {
    color: #b42318;
}
@media (max-width: 520px) {
    .gq-cc,
    .gq-pc {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}
