:root {
    --bg: #ffffff;
    --bg-soft: #f3f8fb;
    --ink: #1b2830;
    --muted: #3f5160;
    --blue: #0f7a3a;
    --blue-strong: #0b5c2c;
    --bar: #0f7a3a;
    --card: #ffffff;
    --line: #d5e2eb;
    --title: #0b5c2c;
    --focus: #0b5c2c;
    --green: #0d6b3a;
    --danger: #8d1d1d;
    --shadow: 0 10px 28px rgba(16, 54, 82, .08);
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

html[data-font="-2"] { font-size: 87.5%; }
html[data-font="-1"] { font-size: 93.75%; }
html[data-font="1"] { font-size: 112.5%; }
html[data-font="2"] { font-size: 125%; }
html[data-font="3"] { font-size: 137.5%; }
html[data-font="4"] { font-size: 150%; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-strong); }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus { outline: none; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 80;
    background: #000;
    color: #fff;
    padding: .55rem .9rem;
    border-radius: 4px;
}

.skip:focus { top: .6rem; }

.wrap {
    width: min(var(--wrap), calc(100% - 2rem));
    margin-inline: auto;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

.a11y-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bar);
    color: #fff;
}

.a11y-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    min-height: 3.1rem;
    flex-wrap: wrap;
    padding: .4rem 0;
}

.a11y-tools, .a11y-links { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

.a11y-tools button {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: var(--blue-strong);
    font-weight: 700;
}

.a11y-tools button[aria-pressed="true"] {
    background: #07263c;
    color: #fff;
}

.a11y-links a { color: #fff; font-weight: 700; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }

.header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
    min-width: 0;
}

.brand img { height: 68px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.brand-text strong { font-size: 1.15rem; }

.search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
    min-width: min(280px, 100%);
    overflow: hidden;
}

.search input {
    border: 0;
    background: transparent;
    padding: .65rem .9rem;
    width: 100%;
    min-width: 0;
}

.search input:focus-visible { outline-offset: -3px; }

.search button {
    border: 0;
    background: transparent;
    color: var(--blue);
    width: 2.7rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    padding: .45rem .7rem;
    font-weight: 700;
}

.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 1rem;
    height: 2px;
    background: var(--ink);
    position: relative;
}

.nav-toggle-bars::before, .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav ul, .submenu, .footer-grid ul, .crumbs ol, .edital-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .15rem;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .84rem;
    padding: .85rem .6rem;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }

.nav > ul > li > a[aria-current="page"],
.has-sub.is-current > a { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }

.has-sub { position: relative; }

.submenu {
    display: none;
    position: absolute;
    z-index: 20;
    min-width: 15rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .35rem 0;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu { display: block; }

.submenu a {
    display: block;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    padding: .55rem .9rem;
}

.hero {
    position: relative;
    background: linear-gradient(105deg, #064422 0%, #0f7a3a 58%, #1a9a4a 100%);
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 78px;
    background: url("../img/skyline.svg") center bottom / 1200px auto no-repeat;
    pointer-events: none;
}

.hero-slide { display: none; }

.hero-slide.is-active {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 1.5rem;
    align-items: center;
    min-height: 390px;
    padding: 2.5rem 0 5.5rem;
}

.eyebrow {
    margin: 0 0 .4rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .85rem;
}

.hero h2 {
    margin: 0 0 .7rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
    max-width: 16ch;
}

.hero p { margin: 0 0 1.1rem; max-width: 42rem; font-size: 1.12rem; }

.hero-art { display: grid; place-items: center; }
.hero-art svg { width: min(280px, 100%); height: auto; }

.hero-ui {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 4.6rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .45rem;
}

.hero-ui button {
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--blue-strong);
    display: grid;
    place-items: center;
}

.hero-dots { display: flex; gap: .35rem; }

.hero-dots button {
    width: .7rem;
    height: .7rem;
    padding: 0;
    background: rgba(255, 255, 255, .55);
}

.hero-dots button[aria-selected="true"] {
    background: #fff;
    width: 1.4rem;
    border-radius: 999px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    background: #fff;
    margin-top: 1.5rem;
}

.service-grid a {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.15rem 1.2rem;
    text-decoration: none;
    color: var(--ink);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-grid a:hover { background: var(--bg-soft); }

.service-ico {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e7f6ec;
    color: var(--blue);
}

.service-grid small { display: block; color: var(--muted); }
.service-grid strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: .04em;
}

.section { padding: 1rem 0 2.4rem; }

.section-head { text-align: center; margin: 2.2rem 0 1.2rem; }

.section-head h2 {
    margin: 0;
    color: var(--title);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: .06em;
}

.section-head p {
    margin: .35rem 0 0;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 700;
}

.section-head h2::after, .page-hero h1::after {
    content: "";
    display: block;
    width: 3rem;
    height: 2px;
    background: #b7dcc6;
    margin: .65rem auto 0;
}

.page-hero h1::after { margin-left: 0; }

.news-grid, .card-grid, .file-grid, .unit-grid, .hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.news-card, .edital-card, .file-card, .unit-card, .hub-card, .panel, .latest-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.news-card { display: flex; flex-direction: column; overflow: hidden; min-height: 100%; }

.news-cover {
    display: flex;
    align-items: flex-end;
    min-height: 148px;
    padding: .8rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.28), transparent 36%),
        linear-gradient(145deg, #0f7a3a, #064422);
}

.tema-saude { background: linear-gradient(145deg, #0f7a3a, #064422); }
.tema-saudemental { background: linear-gradient(145deg, #2a6f8f, #12384d); }
.tema-transparencia { background: linear-gradient(145deg, #1d6b58, #0e3d38); }
.tema-gestao { background: linear-gradient(145deg, #1a5f8a, #123049); }
.tema-ouvidoria { background: linear-gradient(145deg, #0f6e78, #0c3948); }
.tema-isthiv { background: linear-gradient(145deg, #1a6ea4, #123456); }

.news-body, .file-card, .unit-card, .hub-card { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.news-body h3, .edital-card h3, .file-card h3, .unit-card h3, .hub-card h3 { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.news-body h3 a, .edital-card h3 a { color: var(--ink); text-decoration: none; }
.news-body h3 a:hover, .edital-card h3 a:hover { text-decoration: underline; }
.news-body p, .file-card p, .unit-card p { margin: 0; color: var(--muted); }
.news-fotos { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1rem; }
.news-fotos img { width: 180px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

.kicker { color: var(--blue) !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }

.meta, .edital-card ul, .file-type {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    color: var(--muted);
    font-size: .95rem;
}

.meta span, .edital-card li, .file-type, address p {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.more, .btn, .btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.7rem;
    padding: .45rem .9rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.more { margin-top: auto; color: var(--blue-strong); justify-content: flex-start; padding-left: 0; }

.btn {
    border: 2px solid transparent;
    background: var(--blue);
    color: #fff;
}

.btn:hover { background: var(--blue-strong); }

.btn-line {
    border: 1px solid #b7dcc6;
    background: #fff;
    color: var(--blue-strong);
    width: 100%;
}

.btn-line:hover { border-color: var(--blue); }

.band {
    background: var(--bar) url("../img/skyline.svg") center bottom / 1100px auto no-repeat;
    color: #fff;
    padding: 1.5rem 0 3.2rem;
    margin-top: 1rem;
}

.band .section-head h2, .band .section-head p { color: #fff; }
.band .section-head h2::after { background: rgba(255,255,255,.45); }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .8rem;
}

.quick-card {
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    border-radius: 8px;
    min-height: 168px;
    padding: 1rem .7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .45rem;
}

.quick-card .service-ico { background: #e7f6ec; }
.quick-card strong { font-size: 1rem; }
.quick-card span { margin-top: auto; color: var(--blue-strong); font-weight: 700; font-size: .85rem; }

.diary-layout, .split {
    display: grid;
    grid-template-columns: 1.45fr .8fr;
    gap: 1rem;
    align-items: start;
}

.calendar {
    background: var(--bar);
    color: #fff;
    border-radius: 8px;
    padding: 1rem 1rem 1.2rem;
}

.calendar-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .5rem;
    margin-bottom: .8rem;
}

.calendar-head p { margin: 0; text-align: center; font-size: 1.25rem; font-weight: 700; }
.calendar-head span { display: block; font-weight: 600; opacity: .9; }
.cal-nav { color: #fff; font-weight: 700; }
.calendar-head .cal-nav:last-child { justify-self: end; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .25rem;
    text-align: center;
}

.cal-dow { font-size: .78rem; letter-spacing: .04em; font-weight: 700; padding-bottom: .3rem; }

.cal-grid a, .cal-grid .day, .cal-grid .cal-empty {
    min-height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
}

.cal-grid a.has { background: rgba(0, 0, 0, .22); font-weight: 700; }
.cal-grid .is-today { outline: 2px solid #fff; outline-offset: -2px; }

.latest-card, .panel { padding: 1.1rem; }
.latest-card p, .panel p { margin: .35rem 0; }
.latest-label { margin: 0; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.latest-card h3, .panel h3 { margin: .2rem 0 .6rem; font-size: 1.45rem; }

.edital-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.edital-home .edital-card:first-child { grid-column: 1 / -1; }

.edital-card { padding: 1rem 1rem .4rem; display: flex; flex-direction: column; gap: .45rem; }
.edital-card header { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted); }
.edital-card ul { flex-direction: column; gap: .25rem; margin: 0; }
.edital-card .more { border-top: 1px solid var(--line); margin-top: .4rem; padding: .75rem 0; }

.status {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.status.is-open { color: var(--green); }
.status.is-done { color: var(--blue-strong); }
.status.is-paused { color: #8a4b00; }
.status.is-closed { color: var(--muted); }

.file-type { font-weight: 700; color: var(--blue-strong); }
.file-card .btn { margin-top: auto; }
.hero-ui [data-hero="prev"] .icon { transform: rotate(90deg); }
.hero-ui [data-hero="next"] .icon { transform: rotate(-90deg); }
.panel h2 { color: var(--title); font-size: 1.2rem; }

.lic-sheet { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.15rem .4rem; }
.lic-line { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); gap: .45rem .75rem; align-items: start; margin-bottom: .75rem; }
.lic-line.cols-2 { grid-template-columns: 8.2rem minmax(0, 1fr) 8.2rem minmax(0, 1fr); }
.lic-line.cols-3 { grid-template-columns: 8.2rem minmax(0, 1fr) 8.2rem minmax(0, 1fr) 8.2rem minmax(0, 1fr); }
.lic-label { font-weight: 700; padding-top: .45rem; }
.lic-box { background: #f3f5f4; border: 1px solid #d7e0da; border-radius: 6px; min-height: 2.4rem; padding: .45rem .65rem; overflow-wrap: anywhere; }
.lic-titulo { min-height: 5.5rem; white-space: pre-wrap; }
.lic-downloads { display: flex; gap: .4rem; align-items: center; min-height: 2.4rem; }
.lic-baixar { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-strong); background: #fff; }
.lic-baixar:hover { background: #e7f6ec; }
.lic-secao { color: var(--title); font-size: 1.25rem; margin: 1.4rem 0 .6rem; }
.lic-col-acao { width: 4.2rem; text-align: center; }
@media (max-width: 900px) {
    .lic-line.cols-2, .lic-line.cols-3 { grid-template-columns: 8.2rem minmax(0, 1fr); }
}
.panel ul { padding-left: 1.2rem; }
[id] { scroll-margin-top: 4.5rem; }
.site-footer a:focus-visible,
.a11y-links a:focus-visible,
.cal-nav:focus-visible,
.hero a:focus-visible { outline-color: #fff; }

.page-hero {
    background: linear-gradient(180deg, #e7f6ec, #fff);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0 1.2rem;
}

.page-hero h1 {
    margin: 0;
    color: var(--title);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: .04em;
}

.page-hero .lede { margin: .7rem 0 0; max-width: 46rem; color: var(--muted); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem; padding: 0; margin: 0 0 .7rem; }
.crumbs li { display: flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 .4rem; color: #8aa0b0; }
.crumbs a { color: var(--muted); }

.page { padding: 1.3rem 0 3rem; }

.prose { max-width: 48rem; }
.prose h2 { color: var(--title); margin: 1.6rem 0 .4rem; font-size: 1.35rem; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul { padding-left: 1.2rem; }

.demo-note, .empty, .success, .result-box {
    border-left: 4px solid var(--blue);
    background: var(--bg-soft);
    padding: .8rem 1rem;
    margin: 0 0 1rem;
}

.empty { border-left-color: #8a4b00; }

.filters, .form-grid { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.form-grid { align-items: start; }

.field { display: flex; flex-direction: column; gap: .3rem; min-width: min(220px, 100%); flex: 1; }
.field[hidden] { display: none; }
.field-wide { flex: 1 0 100%; }
.field span, .filters label span { font-weight: 700; }

input, select, textarea {
    border: 1px solid #b7dcc6;
    border-radius: 4px;
    background: #fff;
    padding: .6rem .7rem;
    min-height: 2.7rem;
    width: 100%;
}

textarea { min-height: 8rem; resize: vertical; }

.field-error { color: var(--danger); margin: 0; font-size: .92rem; }
.form-alert { border-left: 4px solid var(--danger); background: var(--bg-soft); padding: .8rem 1rem; margin: 0 0 1rem; }
.field-hint { margin: -.2rem 0 .2rem; color: var(--muted); font-size: .92rem; }
.check { flex-direction: row; align-items: center; gap: .5rem; }
.check input { width: 1.1rem; min-height: 1.1rem; }

.success { border-left-color: var(--green); }
.protocol { font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; margin: .3rem 0; }

.captcha { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.captcha img { border: 1px solid #b7dcc6; border-radius: 4px; background: #e8f6ec; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--bg-soft); }
.data-table tbody tr:nth-child(even) { background: #f7fbf8; }
.data-table tr:last-child td { border-bottom: 0; }
.licit-table { min-width: 880px; }
.licit-table td:nth-child(3) { min-width: 18rem; }
.licit-table th:nth-child(1),
.licit-table td:nth-child(1),
.licit-table th:nth-child(2),
.licit-table td:nth-child(2),
.licit-table th:nth-child(4),
.licit-table td:nth-child(4),
.licit-table th:nth-child(5),
.licit-table td:nth-child(5),
.licit-table th:nth-child(6),
.licit-table td:nth-child(6) { white-space: nowrap; }

.pager { display: flex; gap: .8rem; align-items: center; justify-content: center; margin-top: 1.2rem; }
.pager a, .pager-gap { font-weight: 700; }
.pager-gap { color: #8aa0b0; }

.hub-card { text-decoration: none; color: inherit; min-height: 150px; }
.hub-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.hub-card .service-ico { margin-bottom: .3rem; }

.mun-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1rem 0; padding: 0; }
.mun-grid li {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .8rem;
    background: #fff;
    font-weight: 700;
}
.mun-grid small { display: block; font-weight: 600; color: var(--muted); }

.edition-list { display: flex; flex-direction: column; gap: .7rem; }
.edition-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
}
.edition-list a:hover { border-color: var(--blue); }
.edition-list strong { display: block; }

.pdf-leitura { display: flex; flex-direction: column; gap: .8rem; }
.pdf-barra { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pdf-barra p { margin: 0; }
.pdf-visor {
    width: 100%;
    height: 78vh;
    min-height: 36rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 700px) {
    .pdf-visor { height: 70vh; min-height: 24rem; }
}

.search-group { margin: 1.3rem 0; }
.search-group h2 { margin: 0 0 .6rem; color: var(--title); font-size: 1.25rem; }
.search-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.search-group li a { font-weight: 700; }

.site-footer {
    background: #0c6b34;
    color: #fff;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr 1.3fr;
    gap: 1.5rem;
    padding: 2rem 0 1.4rem;
}

.site-footer h2 { margin: 0 0 .6rem; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .3rem; }
.footer-brand img { background: #fff; border-radius: 8px; padding: .35rem .5rem; }
.footer-brand p { max-width: 22rem; }
address { font-style: normal; }
address p { margin: 0 0 .45rem; }

.footer-base { border-top: 1px solid rgba(255,255,255,.25); padding: .9rem 0 1.2rem; }
.footer-base .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-base p { margin: 0; max-width: 50rem; }

.cookie {
    position: fixed;
    z-index: 60;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: #10212c;
    color: #fff;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

html.cookies-ok .cookie { display: none; }

.cookie p { margin: 0; }
.cookie a { color: #fff; }
.cookie button {
    border: 0;
    background: #fff;
    color: #10212c;
    font-weight: 700;
    border-radius: 4px;
    padding: .65rem 1rem;
    white-space: nowrap;
}

[vw-access-button] { z-index: 30 !important; }

html.links-on:not(.contrast) a {
    text-decoration: underline !important;
    text-underline-offset: .15em;
    background-color: #fff3a0;
    color: #000 !important;
    outline: 1px solid #000;
}

html.contrast.links-on a {
    text-decoration: underline !important;
    text-underline-offset: .15em;
    outline: 2px solid #ffe14a;
    background: transparent !important;
}

html.contrast {
    --bg: #000;
    --bg-soft: #000;
    --ink: #fff;
    --muted: #fff;
    --blue: #ffe14a;
    --blue-strong: #ffe14a;
    --bar: #000;
    --card: #000;
    --line: #fff;
    --title: #ffe14a;
    --focus: #ffe14a;
    --green: #ffe14a;
    --danger: #ffe14a;
}

html.contrast body,
html.contrast .site-header,
html.contrast .a11y-bar,
html.contrast .nav-bar,
html.contrast .hero,
html.contrast .band,
html.contrast .page-hero,
html.contrast .news-card,
html.contrast .edital-card,
html.contrast .file-card,
html.contrast .unit-card,
html.contrast .hub-card,
html.contrast .lic-sheet,
html.contrast .lic-box,
html.contrast .lic-baixar,
html.contrast .panel,
html.contrast .latest-card,
html.contrast .calendar,
html.contrast .service-grid,
html.contrast .site-footer,
html.contrast .submenu,
html.contrast .cookie {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

html.contrast .pdf-visor { border-color: #ffe14a !important; background: #000 !important; }
html.contrast .captcha img { border-color: #ffe14a !important; background: #000 !important; }
html.contrast a,
html.contrast .nav a,
html.contrast .kicker,
html.contrast .status { color: #ffe14a !important; }

html.contrast .a11y-tools button,
html.contrast .btn,
html.contrast .nav-toggle,
html.contrast .hero-ui button,
html.contrast .cookie button,
html.contrast .quick-card,
html.contrast .service-ico,
html.contrast .footer-brand img {
    background: #ffe14a !important;
    color: #000 !important;
    border-color: #ffe14a !important;
}

html.contrast .nav-toggle-bars,
html.contrast .nav-toggle-bars::before,
html.contrast .nav-toggle-bars::after { background: #000; }

html.contrast .btn-line,
html.contrast input,
html.contrast select,
html.contrast textarea,
html.contrast .search,
html.contrast .data-table th,
html.contrast .data-table tbody tr:nth-child(even) {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

html.contrast .news-cover,
html.contrast .hero::after,
html.contrast .band { background-image: none !important; }

html.contrast .a11y-tools button[aria-pressed="true"] { outline: 3px solid #fff; }
html.contrast .cal-grid a.has { background: #ffe14a !important; color: #000 !important; }
html.contrast .cal-grid .is-today { outline-color: #ffe14a; }

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .header-row { flex-wrap: wrap; }
    .search { order: 3; flex: 1 0 100%; }
    .nav-bar { display: none; }
    .nav-bar.is-open { display: block; border-top: 1px solid var(--line); }
    .nav > ul { flex-direction: column; align-items: stretch; padding: .4rem 0 1rem; }
    .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 .4rem 1rem; }
    .hero-slide.is-active, .diary-layout, .split, .footer-grid, .quick-grid { grid-template-columns: 1fr 1fr; }
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid, .card-grid, .file-grid, .unit-grid, .hub-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .hero-slide.is-active,
    .service-grid,
    .news-grid,
    .card-grid,
    .file-grid,
    .unit-grid,
    .hub-grid,
    .edital-home,
    .diary-layout,
    .split,
    .quick-grid,
    .mun-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .hero-slide.is-active { min-height: 0; padding-bottom: 5rem; }
    .cookie { flex-direction: column; align-items: stretch; }
    .brand img { height: 54px; }
    .edital-home .edital-card:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
