/* "Onde eu estou?" — shortcode [gq_onde_estou]. Cores do design system do
 * Customizer (--gq-*) com fallback, mesmo critério do pagina-orgao.css. */
/* Alinhado à esquerda e na largura do miolo, como as tabelas da página de
 * cargo (pedido de 19/09/2026: centralizado em 720px ele destoava da coluna). */
.gq-oe {
    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-oe-titulo {
    font-size: 21px;
    font-weight: 500;
    margin: 0 0 1rem;
}
/* Na página de cargo, o h2 de seção leva `margin: 2.2em 0 .5em !important`
 * (pagina-orgao.css) -- dentro do box isso virava 53px em branco acima do
 * título. Mesmo peso de seletor + uma classe, pra ganhar dele. */
body:not(.home) .entry-content .gq-cargo-geral .gq-oe h2.gq-oe-titulo {
    margin: 0 0 1rem !important;
}
.gq-oe-form {
    display: grid;
    gap: 1rem;
}
.gq-oe-campo {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.gq-oe-campo[hidden] {
    display: none;
}
.gq-oe-campo label,
.gq-oe-campo legend {
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.35rem;
}
.gq-oe-campo select,
.gq-oe-valor {
    font: inherit;
    font-size: 16px; /* 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;
}
.gq-oe-valor {
    font-variant-numeric: tabular-nums;
    max-width: 16rem;
}
.gq-oe-fontes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gq-oe-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    font-weight: 400 !important;
    margin: 0 !important;
}
.gq-oe-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gq-oe-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-oe-chip input:checked + span {
    background: var(--gq-accent, #1a5c3a);
    border-color: var(--gq-accent, #1a5c3a);
    color: #fff;
}
.gq-oe-chip input:focus-visible + span {
    outline: 2px solid var(--gq-accent, #1a5c3a);
    outline-offset: 2px;
}

.gq-oe-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-oe-frase {
    font-size: 19px;
    line-height: 1.45;
    margin: 0 0 0.6rem;
}
.gq-oe-pct {
    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-oe-detalhes {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 15px;
    line-height: 1.5;
}

/* Faixa: p10–p90 clara, p25–p75 escura, traço na mediana, marcador "você". */
.gq-oe-faixa {
    margin: 2.2rem 0 0.4rem;
}
.gq-oe-trilho {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: rgba(128, 128, 128, 0.12);
}
.gq-oe-larga,
.gq-oe-miolo {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 7px;
}
.gq-oe-larga {
    background: var(--gq-accent-tint, rgba(26, 92, 58, 0.22));
}
.gq-oe-miolo {
    background: var(--gq-accent, #1a5c3a);
    opacity: 0.55;
}
.gq-oe-mediana {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    margin-left: -1px;
    background: var(--gq-text, currentColor);
}
.gq-oe-voce {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: #d9480f;
    border: 2px solid var(--gq-bg, #fff);
    box-shadow: 0 0 0 1px #d9480f;
}
.gq-oe-voce-rotulo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #d9480f;
    white-space: nowrap;
}
.gq-oe-eixo {
    position: relative;
    height: 2.6rem;
    margin-top: 0.4rem;
}
.gq-oe-marca {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}
.gq-oe-marca-nivel {
    opacity: 0.65;
}
.gq-oe-marca-valor {
    font-variant-numeric: tabular-nums;
}
.gq-oe-rodape {
    margin-top: 1rem;
}
.gq-oe-nota {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.72;
    margin: 0 0 0.5rem;
}
.gq-oe-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    margin: 0.8rem 0 0;
    font-size: 14px;
}
.gq-oe-copiar {
    font: inherit;
    font-size: 14px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--gq-border, rgba(128, 128, 128, 0.45));
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.gq-oe-erro {
    color: #b42318;
}

@media (max-width: 520px) {
    .gq-oe {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    .gq-oe-frase {
        font-size: 17px;
    }
    .gq-oe-valor {
        max-width: none;
    }
}
