/* ===== Imprensa ===== */
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.press-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.press-card:focus-visible { outline: 3px solid var(--blue-1); outline-offset: 3px; }
.press-img { display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.press-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-img.sem { display: grid; place-items: center; background: var(--g-blue); color: #fff; padding: 16px; text-align: center; font-size: 1.05rem; }
.press-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.press-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .78rem; color: var(--ink-soft); }
.press-src { background: var(--mist); color: var(--blue-2); font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.press-body strong { font-size: 1.02rem; line-height: 1.3; color: var(--blue-2); }
.press-sum { font-size: .9rem; line-height: 1.45; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.press-go { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: .88rem; color: var(--blue-1); }
#imprensa .doc-foot { margin-top: 24px; }

/* ===== Gabinete Online ===== */
.gab-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gab-wrap .section-head { margin-bottom: 0; }
.gab-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.gab-steps li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.gab-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--g-yellow); color: var(--blue-2); }
.gab-form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); display: grid; gap: 16px; }
.gab-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.gab-form legend { font-weight: 800; color: var(--blue-2); font-size: 1.05rem; margin-bottom: 4px; padding: 0; }
.gab-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); min-width: 0; }
.gab-form input:not([type=checkbox]), .gab-form select, .gab-form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--mist);
  border: 1.5px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.gab-form textarea { resize: vertical; min-height: 110px; }
.gab-form :is(input, select, textarea):focus { outline: none; border-color: var(--blue-1); background: #fff; box-shadow: 0 0 0 3px rgba(39,125,194,.2); }
.gab-form [aria-invalid="true"] { border-color: #c62828 !important; background: #fff5f5 !important; }
.gab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gab-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; line-height: 1.4; cursor: pointer; }
.gab-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--blue-2); }
.gab-send { width: 100%; min-height: 54px; font-size: 1.02rem; }
.gab-erro { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fff5f5; color: #b71c1c; font-weight: 600; font-size: .92rem; }
.gab-ok { margin: 0; padding: 10px 14px; border-radius: 10px; background: #edf7ee; color: #1b5e20; font-weight: 600; font-size: .92rem; }
.gab-ok a { color: inherit; text-decoration: underline; }

@media (max-width: 1024px) {
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gab-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .press-grid { grid-template-columns: 1fr; }
  .gab-row { grid-template-columns: 1fr; }
}

/* ===== Emendas: abas por ano ===== */
.emenda-anos { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.ano-tab { display: grid; gap: 2px; text-align: left; font: inherit; font-weight: 800; font-size: 1rem; color: var(--blue-2); background: #fff; border: 2px solid var(--line-soft); border-radius: 14px; padding: 10px 18px; min-height: 52px; cursor: pointer; transition: border-color .2s, background .2s; }
.ano-tab small { font-weight: 500; font-size: .78rem; color: var(--ink-soft); }
.ano-tab:hover { border-color: var(--blue-1); }
.ano-tab.active { background: var(--g-blue); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.ano-tab.active small { color: rgba(255,255,255,.85); }
.ano-tab:focus-visible { outline: 3px solid var(--blue-1); outline-offset: 3px; }
.emenda .doc-link { display: inline-block; margin-top: 10px; font-size: .84rem; font-weight: 700; color: var(--blue-1); }
@media (max-width: 600px) { .ano-tab { flex: 1 1 0; min-width: 0; padding: 10px 12px; font-size: .95rem; } }
/* correção: as barras do gráfico de emendas precisam ser bloco para ter largura */
.bar-row .fill, .hood .bar i { display: block; }
#emenda-total { font-size: clamp(1.9rem, 3.2vw, 3rem); white-space: nowrap; }

/* ---------- Opinião sobre o mandato ---------- */
#opiniao { background: #fff; }
.op-notas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.op-notas label { display: block !important; cursor: pointer; }
.op-notas input { position: absolute; opacity: 0; pointer-events: none; }
.op-notas span { display: grid; place-items: center; min-height: 48px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid var(--line-soft); background: var(--mist); font-size: .8rem; font-weight: 700; text-align: center; color: var(--ink-soft); transition: .15s; }
.op-notas input:checked + span { background: var(--g-blue); border-color: transparent; color: #fff; }
.op-notas input:focus-visible + span { outline: 3px solid rgba(39,125,194,.35); outline-offset: 2px; }
.op-contato { display: grid; gap: 12px; }
.op-nota-lgpd { margin: 0; font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 520px) { .op-notas { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; } .op-notas span { font-size: .68rem; min-height: 44px; } }

/* ---------- rodapé: aviso de medição e acesso discreto ---------- */
.foot-priv { display: inline-flex; align-items: center; gap: 10px; opacity: .75; }
.foot-bola { display: inline-grid; place-items: center; width: 18px; height: 18px; opacity: .28; transition: opacity .2s; }
.foot-bola:hover, .foot-bola:focus-visible { opacity: .8; }
.foot-bola svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }

.op-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gab-aviso{margin:10px 0 0;font-size:.82rem;opacity:.85;text-align:center}

/* ---------- Destaque das seções de serviço ---------- */
.servico-tag { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; justify-self: start; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(232,226,62,.16); border: 1.5px solid rgba(232,226,62,.55); color: var(--yellow-1); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.servico-tag i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulso 1.8s infinite; }
.servico-tag.claro { background: #fff8d6; border-color: #e8d34a; color: var(--blue-2); }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (prefers-reduced-motion: reduce) { .servico-tag i { animation: none; } }

.gab-atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.gab-atalhos button { border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.gab-atalhos button:hover, .gab-atalhos button.on { background: var(--g-yellow); color: var(--blue-2); border-color: transparent; transform: translateY(-2px); }
#gabinete-online .gab-steps { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 18px; font-size: .9rem; }
#gabinete-online .gab-form { border-top: 6px solid var(--yellow-1); position: relative; }
.gab-rapido { margin: 0 0 2px; display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: #edf7ee; color: #1b5e20; font-weight: 800; font-size: .8rem; }
.gab-rapido svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.op-sec { background: linear-gradient(180deg, #fffbe6 0%, #fff 100%); border-top: 1px solid #f1e7a8; }
.op-sec .op-form { border-top: 6px solid var(--blue-1); }
.op-contato[hidden] { display: none !important; }
.op-notas span { gap: 2px; }
.op-notas span b { font-size: 1.35rem; font-weight: 900; line-height: 1; }
.op-notas .n1 span b { color: #d1453b; } .op-notas .n2 span b { color: #e8833a; } .op-notas .n3 span b { color: #c9a227; } .op-notas .n4 span b { color: #6aa84f; } .op-notas .n5 span b { color: #1e8e5a; }
.op-notas .n1 input:checked + span { background: #d1453b; } .op-notas .n2 input:checked + span { background: #e8833a; } .op-notas .n3 input:checked + span { background: #c9a227; } .op-notas .n4 input:checked + span { background: #6aa84f; } .op-notas .n5 input:checked + span { background: #1e8e5a; }
.op-notas input:checked + span b { color: #fff !important; }
.op-notas label:hover span { border-color: var(--blue-1); transform: translateY(-2px); }
.op-notas span { transition: transform .15s, background .15s; }

.channel-wa { background: linear-gradient(135deg, #1faa59 0%, #128c4a 60%, #0b6b38 100%); }
.channel-wa::after { border-color: rgba(255,255,255,.22); }
.channel-wa .ic { background: #fff; color: #1faa59; }
.canal-tag { display: inline-block; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.canal-btn { background: #fff; color: #0b6b38; font-weight: 800; }
.canal-btn:hover { background: #eafff2; }

@media (max-width: 900px) {
  #gabinete-online .gab-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gab-atalhos button { padding: 8px 12px; font-size: .82rem; }
  .op-notas span b { font-size: 1.15rem; }
}
.gab-gps { display: grid; gap: 4px; }
.gab-gps button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--blue-1); background: #f1f7fd; color: var(--blue-2); border-radius: 12px; padding: 11px 14px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.gab-gps button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.gab-gps button.on { border-style: solid; border-color: #1e8e5a; background: #edf7ee; color: #1b5e20; }
.gab-gps small { color: var(--ink-soft); font-size: .78rem; }
/* rodapé: espaço para o botão flutuante do WhatsApp não cobrir a linha final (onde fica a bolinha) */
.site-footer .foot-bottom { padding-bottom: 76px; }
.foot-bola { opacity: .45; }
/* correção: os botões de nota (invisíveis) não podem empurrar a largura da página */
.op-notas label { position: relative; }
.op-notas input { position: absolute !important; inset: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.op-hp { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
