/* Camada visual compartilhada pelas páginas internas do Gabinete Digital */
:root {
    --primary: #0b4f91;
    --accent: #edb84e;
    --bg: #f3f6fb;
    --text: #15243a;
    --site-muted: #66758a;
    --site-border: #e2e8f0;
    --site-shadow: 0 14px 34px rgba(9,34,69,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', 'Segoe UI', Arial, sans-serif !important;
    background: linear-gradient(180deg,#f7f9fc,#eef3f9) !important;
    color: var(--text) !important;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { width: min(100% - 40px, 1120px); margin-inline: auto; }
.download-hero {
    position: relative; overflow: hidden;
    padding: 32px 0 54px !important;
    background: radial-gradient(circle at 85% 0%,rgba(57,133,197,.28),transparent 31%),linear-gradient(125deg,#071b38,#0b4f91) !important;
    text-align: center;
}
.download-hero::after { content:''; position:absolute; width:360px; height:360px; right:-180px; bottom:-270px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.02); pointer-events:none; }
.nav-simple { position: relative; z-index: 1; text-align: left; }
.btn-back {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px !important;
    border: 1px solid rgba(255,255,255,.35) !important; border-radius: 999px !important;
    color: #fff !important; text-decoration: none; font-size: .78rem !important; font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}
.btn-back:hover { background: rgba(255,255,255,.14) !important; transform: translateX(-2px); }
.hero-text { position: relative; z-index: 1; max-width: 800px; margin-top: 30px; }
.hero-text h1 { margin: 0 0 10px !important; color: #fff; font-size: clamp(1.9rem,4vw,3rem) !important; line-height: 1.16; font-weight: 800; letter-spacing: -.045em; }
.hero-text p { margin: 0; color: rgba(255,255,255,.78); font-size: .93rem; }
main.container { padding-top: 10px; padding-bottom: 35px; }
.section-label { padding-bottom: 12px !important; border-bottom: 1px solid #dce5ef !important; color: #0b3b70 !important; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.cards-wrapper { gap: 18px !important; }
.poll-card-featured, .poll-card-past, .form-container-box, .dl-card, .timeline-card, .postinho-card, .map-controls {
    border: 1px solid var(--site-border); border-radius: 17px !important; box-shadow: var(--site-shadow) !important;
}
.poll-card-featured, .poll-card-past, .form-container-box, .dl-card, .timeline-card, .postinho-card { background: #fff !important; }
.poll-card-featured { border-top: 4px solid var(--accent) !important; }
.poll-card-past { border-left: 4px solid #d7e3f1 !important; }
.poll-card-past h3, .dl-content h3, .postinho-card h3, .timeline-card h3 { color: #0b3b70 !important; }
.poll-unavailable {
    display: grid; justify-items: center; gap: 8px; min-height: 230px; padding: 35px 20px;
    border: 1px dashed #c8d7e8; border-radius: 14px; background: #f7faff; text-align: center;
}
.poll-unavailable-icon { font-size: 2rem; }
.poll-unavailable h3 { margin: 0; color: #0b3b70; font-size: 1.08rem; }
.poll-unavailable p { max-width: 520px; margin: 0; color: var(--site-muted); font-size: .84rem; }
.main-footer { margin-top: 25px; padding: 28px 16px !important; background: linear-gradient(115deg,#071b38,#0b376b) !important; color: rgba(255,255,255,.74) !important; }
.main-footer p { margin: 0; font-size: .78rem; }
.dl-card { align-items: center; transition: transform .22s ease, box-shadow .22s ease; }
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(9,34,69,.12) !important; }
.dl-button { border-radius: 999px !important; background: var(--accent) !important; color: #172a45 !important; }
.dl-unavailable { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; margin-left:auto; padding:9px 13px; border:1px solid #e4e8ef; border-radius:999px; background:#f3f5f8; color:#748196; font-size:.72rem; font-weight:800; }
.file-size { color:#8290a3 !important; }
input, select, textarea { border:1px solid #d6deea !important; border-radius:10px !important; background:#fbfcfe !important; font:inherit; }
input:focus, select:focus, textarea:focus { outline:none; border-color:#4383bb !important; box-shadow:0 0 0 4px rgba(11,79,145,.10) !important; }
.btn-next, .btn-submit { border-radius:10px !important; font-family:inherit; font-weight:800; }
.btn-next { background:#0b4f91 !important; }
.btn-submit { background:#18845b !important; }
.btn-prev { border-radius:10px !important; }
.step-active { color:#0b4f91 !important; }
.step-active::after { background:#edb84e !important; }
.timeline-container::after { background:#d7e1ed !important; }
.timeline-badge { border-color:#0b4f91 !important; box-shadow:0 0 0 6px rgba(11,79,145,.08); }
.timeline-date { color:#c18a2b !important; }
.map-controls { background:#fff !important; }
.filter-select-box select { border:1px solid #d6deea !important; border-radius:10px !important; }
.map-wrapper, #map { border-radius:17px !important; }
.postinho-card { border-left:4px solid #0b4f91 !important; }
.btn-location { border-radius:9px !important; background:#0b4f91 !important; }
.btn-location:hover { background:#083a70 !important; }
.map-load-error { padding:25px; color:#8a3b30; text-align:center; }
.form-status { margin:14px 0 0; color:#718097; font-size:.76rem; }
.form-status.is-warning { color:#9a5b13; }
.form-status.is-success { color:#18744d; }
a:focus-visible, button:focus-visible { outline:3px solid rgba(237,184,78,.9); outline-offset:3px; }
@media (max-width: 768px) {
    .container { width: min(100% - 30px, 1120px); }
    .download-hero { padding:25px 0 42px !important; }
    .hero-text { margin-top:24px; }
    .hero-text h1 { font-size:clamp(1.7rem,8vw,2.4rem) !important; }
    .map-controls, .search-filter-section { flex-direction:column; align-items:stretch; }
    .content-grid { grid-template-columns:1fr !important; height:auto !important; }
    #map { min-height:350px; }
    .list-column { order:2; overflow:visible !important; }
    .map-column { order:1; }
    .timeline-container::after { left:21px !important; }
    .timeline-item { width:100% !important; left:0 !important; padding:10px 0 10px 58px !important; text-align:left !important; }
    .timeline-item .timeline-badge { left:1px !important; right:auto !important; }
    .dl-card { flex-wrap:wrap; }
    .dl-unavailable { margin-left:auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior:auto; }
    *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
    .animate-hidden { opacity:1; transform:none; }
}
