:root {
    --navy-950: #031423;
    --navy-900: #05233c;
    --navy-850: #07304f;
    --navy-800: #093c64;
    --blue-600: #1684ae;
    --blue-500: #1a93c2;
    --blue-100: #e9f7fc;
    --gold-500: #f5be23;
    --gold-400: #ffd246;
    --text: #102a43;
    --muted: #5b6f82;
    --line: #dce8f1;
    --bg: #f4f8fb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(5, 35, 60, .12);
    --shadow-soft: 0 10px 28px rgba(5, 35, 60, .08);
    --radius-lg: 28px;
    --radius-md: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

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

.skipbar {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.skipbar__inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.topbar {
    background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
    color: #fff;
}

.topbar__inner {
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    font-size: 15px;
}

.topbar__legislature {
    color: var(--gold-400);
    font-weight: 800;
}

.topbar__restricted {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(26, 147, 194, .35);
    border: 1px solid rgba(255, 255, 255, .16);
    font-weight: 700;
    white-space: nowrap;
}

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

.site-header__inner {
    min-height: 124px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto auto;
    gap: 28px;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.brand__logo {
    width: 164px;
    height: 78px;
    object-fit: contain;
}

.brand__text strong {
    display: block;
    color: var(--navy-900);
    font-size: 31px;
    line-height: 1.05;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.brand__text small {
    display: block;
    margin-top: 6px;
    color: var(--blue-600);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--navy-900);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn,
.header-actions a,
.more-options button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.btn--light {
    color: var(--blue-600);
    background: var(--blue-100);
    border: 1px solid #cdebf6;
}

.btn--primary {
    color: #fff;
    background: var(--blue-600);
}

.hero {
    position: relative;
    min-height: 620px;
    background-image:
        linear-gradient(90deg, rgba(3, 20, 35, .86) 0%, rgba(3, 20, 35, .62) 48%, rgba(3, 20, 35, .22) 100%),
        linear-gradient(180deg, rgba(3, 20, 35, .10), rgba(3, 20, 35, .66)),
        url('../img/hero-roraima-alrr.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.hero__inner {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 770px) 320px;
    gap: 80px;
    align-items: center;
}

.hero__eyebrow {
    margin: 0 0 18px;
    color: var(--gold-400);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(46px, 5.2vw, 76px);
    line-height: .97;
    letter-spacing: -.055em;
}

.hero h1 span {
    display: block;
    margin-top: 8px;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 500;
    letter-spacing: -.035em;
}

.hero__description {
    max-width: 720px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .92);
    font-size: 21px;
    line-height: 1.55;
}

.hero-search {
    width: min(100%, 840px);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
}

.hero-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    padding: 0 8px 0 18px;
    font-size: 17px;
}

.hero-search input::placeholder {
    color: #6d7f8f;
}

.hero-search button {
    min-width: 148px;
    height: 58px;
    border: 0;
    border-radius: 20px;
    color: var(--navy-900);
    background: var(--gold-500);
    font-weight: 900;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: var(--navy-900);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

.hero-card {
    align-self: center;
    padding: 34px;
    border-radius: 28px;
    color: var(--text);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.hero-card strong {
    display: block;
    margin-bottom: 18px;
    color: var(--navy-900);
    font-size: 31px;
    letter-spacing: -.035em;
}

.hero-card p {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.hero-card span {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-600);
    font-weight: 800;
}

.vlibras-float {
    position: fixed;
    z-index: 50;
    right: 22px;
    top: 54%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vlibras-float span {
    padding: 11px 14px;
    border-radius: 14px;
    background: #2b7ce9;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.vlibras-float strong {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #2b7ce9;
    color: #fff;
    font-size: 25px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.section {
    padding: 76px 0;
}

.section-heading {
    margin-bottom: 46px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-size: 42px;
    letter-spacing: -.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.service-card {
    position: relative;
    min-height: 172px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 20px;
    padding: 28px 24px 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 4px;
    background: var(--gold-500);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 22px;
    font-weight: 900;
}

.service-card strong {
    display: block;
    margin: 2px 0 9px;
    color: var(--navy-900);
    font-size: 20px;
    line-height: 1.15;
}

.service-card small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
    font-size: 15px;
}

.more-options {
    margin-top: 40px;
    text-align: center;
}

.more-options button {
    min-width: 270px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), #0b6ea7);
    box-shadow: 0 14px 30px rgba(22, 132, 174, .28);
}

.highlights {
    background: #fff;
    border-top: 1px solid #edf3f7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 44px;
}

.stat-card {
    min-height: 116px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fbfdfe;
    box-shadow: var(--shadow-soft);
}

.stat-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--navy-900);
    font-size: 18px;
}

.stat-card span {
    color: var(--blue-600);
    font-weight: 800;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.info-card {
    position: relative;
    min-height: 205px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.info-card::after {
    content: '';
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0;
    height: 4px;
    background: var(--blue-600);
}

.info-card h3 {
    margin: 0 0 16px;
    color: var(--navy-900);
    font-size: 24px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

.site-footer {
    color: #dceaf4;
    background: radial-gradient(circle at top right, #073e68, #051c30 52%);
    padding-top: 74px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 70px;
    align-items: start;
    margin-bottom: 62px;
}

.footer-brand {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    align-items: start;
}

.footer-brand img {
    max-width: 150px;
    height: auto;
}

.footer-brand h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 22px;
}

.footer-brand p {
    max-width: 620px;
    margin: 0 0 14px;
    line-height: 1.5;
}

.footer-brand strong {
    display: inline-flex;
    margin: 8px 0 18px;
    color: var(--gold-400);
    font-weight: 900;
    font-size: 24px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(26, 147, 194, .35);
    color: #fff;
    font-weight: 900;
}

.footer-pntp {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: #020a11;
}

.footer-pntp img {
    width: 280px;
    max-width: 100%;
    height: auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 54px;
}

.footer-links h3 {
    margin: 0 0 14px;
    color: var(--gold-400);
    font-size: 16px;
}

.footer-links a {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
}

.subfooter {
    background: var(--navy-950);
}

.subfooter__inner {
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    color: #a8bdcd;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .site-header__inner {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 70px 0;
    }

    .hero-card {
        max-width: 430px;
    }

    .service-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, 1280px);
    }

    .skipbar__inner {
        gap: 14px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .topbar__inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 0;
        text-align: center;
    }

    .topbar__restricted {
        justify-self: center;
    }

    .brand {
        align-items: flex-start;
    }

    .brand__logo {
        width: 120px;
        height: auto;
    }

    .brand__text strong {
        white-space: normal;
        font-size: 26px;
    }

    .brand__text small {
        white-space: normal;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero h1 span {
        font-size: 26px;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .hero-search button {
        width: 100%;
    }

    .service-grid,
    .stats-grid,
    .info-grid,
    .footer-links,
    .footer-brand {
        grid-template-columns: 1fr;
    }

    .vlibras-float span {
        display: none;
    }

    .subfooter__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
    }
}

/* Assets finais da home */
.footer-pntp {
    display: flex;
}

.footer-main {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.brand__logo {
    width: 230px;
    height: 88px;
    object-fit: contain;
}

.footer-brand > img {
    width: 140px;
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

.footer-pntp img {
    width: 300px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero {
    background-position: center center;
}

@media (max-width: 760px) {
    .brand__logo {
        width: 155px;
        height: auto;
    }

    .footer-brand > img {
        width: 120px;
        max-width: 120px;
    }

    .footer-pntp img {
        width: 240px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

/* Ajuste fino 01 — remove card lateral do hero */
.hero__inner {
    grid-template-columns: minmax(0, 860px);
    justify-content: flex-start;
    gap: 0;
}

.hero__content {
    max-width: 900px;
}

.hero-search {
    width: min(100%, 860px);
}

@media (max-width: 1180px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__content {
        max-width: 100%;
    }
}

/* Ajuste fino 02 — header, submenus, avaliação e hero */
.site-header__inner {
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr) auto;
    gap: 24px;
}

.brand__logo {
    width: 205px;
    height: 82px;
}

.brand__text strong {
    font-size: 28px;
}

.brand__text small {
    font-size: 15px;
}

.main-nav {
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    color: var(--navy-900);
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.has-submenu:hover > a {
    background: var(--blue-100);
    color: var(--blue-600);
}

.has-submenu > a::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    color: var(--blue-600);
}

.submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 80;
    min-width: 250px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(5, 35, 60, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.submenu a:hover {
    background: var(--blue-100);
    color: var(--blue-600);
}

.header-actions {
    gap: 10px;
}

.btn-evaluate {
    gap: 8px;
    min-width: 205px;
}

.btn-evaluate span {
    color: var(--gold-500);
    font-size: 18px;
    line-height: 1;
}

.hero h1 span {
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.2;
    letter-spacing: -.03em;
}

.hero__description {
    max-width: 780px;
}

.modal-open {
    overflow: hidden;
}

.evaluation-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.evaluation-modal.is-open {
    display: flex;
}

.evaluation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 20, 35, .72);
    backdrop-filter: blur(4px);
}

.evaluation-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding: 34px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.evaluation-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: var(--blue-100);
    color: var(--navy-900);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.evaluation-modal__eyebrow {
    margin: 0 0 10px;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.evaluation-modal h2 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-size: 34px;
    letter-spacing: -.04em;
}

.evaluation-modal__text {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.rating-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.rating-options label {
    cursor: pointer;
}

.rating-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-options span {
    display: grid;
    place-items: center;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfe;
    color: var(--navy-900);
    font-weight: 900;
}

.rating-options input:checked + span {
    border-color: var(--blue-600);
    background: var(--blue-100);
    color: var(--blue-600);
    box-shadow: inset 0 -3px 0 var(--gold-500);
}

.field-label {
    display: block;
    margin-bottom: 10px;
    color: var(--navy-900);
    font-weight: 800;
}

.evaluation-form textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    color: var(--text);
    outline: 0;
}

.evaluation-form textarea:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(22, 132, 174, .12);
}

.evaluation-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

@media (max-width: 1280px) {
    .site-header__inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 0;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .btn-evaluate {
        min-width: auto;
    }

    .evaluation-modal__dialog {
        padding: 28px 22px;
    }

    .rating-options {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .evaluation-form__actions {
        flex-direction: column;
    }
}

/* ===== Ajuste fino do header: logo + menu + avaliação ===== */
.site-header__inner{
    grid-template-columns: 220px minmax(0,1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand{
    gap: 0;
}

.brand__text{
    display: none !important;
}

.brand__logo{
    width: 190px;
    height: auto;
    display: block;
}

.main-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.main-nav .nav-item > a{
    padding: 0 12px;
    min-height: 44px;
    white-space: nowrap;
}

.header-actions{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

.btn-evaluate{
    min-width: 240px;
    justify-content: center;
}

/* garantia extra: se sobrar algum botão primário no header, esconde */
.site-header .header-actions .btn--primary{
    display: none !important;
}

@media (max-width: 1280px){
    .site-header__inner{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .brand{
        justify-content: center;
    }

    .main-nav{
        justify-content: center;
    }

    .header-actions{
        justify-content: center;
        margin-left: 0;
    }
}

/* ===== Acessibilidade real ===== */
.skipbar__contrast {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.skipbar__contrast:hover,
.skipbar a:hover {
    color: #fff;
    text-decoration: underline;
}

#conteudo:focus,
#menu-principal:focus,
#busca:focus {
    outline: 4px solid var(--gold-500);
    outline-offset: 6px;
}

.high-contrast-enabled body {
    background: #000;
    color: #fff;
}

.high-contrast-enabled .skipbar,
.high-contrast-enabled .topbar,
.high-contrast-enabled .site-header,
.high-contrast-enabled .services,
.high-contrast-enabled .highlights,
.high-contrast-enabled .site-footer,
.high-contrast-enabled .subfooter {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast-enabled a,
.high-contrast-enabled button,
.high-contrast-enabled .main-nav a,
.high-contrast-enabled .section-heading h2,
.high-contrast-enabled .service-card strong,
.high-contrast-enabled .stat-card strong,
.high-contrast-enabled .info-card h3 {
    color: #fff !important;
}

.high-contrast-enabled .service-card,
.high-contrast-enabled .stat-card,
.high-contrast-enabled .info-card,
.high-contrast-enabled .hero-search,
.high-contrast-enabled .submenu,
.high-contrast-enabled .evaluation-modal__dialog {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.high-contrast-enabled .hero {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .78)),
        url('../img/hero-roraima-alrr.webp') !important;
}

.high-contrast-enabled .btn,
.high-contrast-enabled .hero-search button,
.high-contrast-enabled .more-options button,
.high-contrast-enabled .topbar__restricted,
.high-contrast-enabled .btn-evaluate {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

.high-contrast-enabled .hero-search input,
.high-contrast-enabled textarea {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast-enabled .hero-search input::placeholder {
    color: #fff !important;
}

/* Página simples */
.page-simple {
    min-height: 100vh;
    padding: 72px 0;
    background: var(--bg);
}

.page-simple .container {
    max-width: 920px;
    padding: 48px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.page-simple__back {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--blue-600);
    font-weight: 800;
}

.page-simple h1 {
    margin: 0 0 22px;
    color: var(--navy-900);
    font-size: 44px;
    letter-spacing: -.04em;
}

.page-simple h2 {
    margin: 34px 0 12px;
    color: var(--navy-900);
    font-size: 24px;
}

.page-simple p,
.page-simple li {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.page-simple ul {
    padding-left: 22px;
}

/* ===== Ajuste fino: atalhos ampliados de acessibilidade ===== */
.skipbar__inner {
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.skipbar a,
.skipbar__contrast {
    line-height: 1.4;
    white-space: nowrap;
}

#conteudo:focus,
#menu-principal:focus,
#busca:focus,
#consultas-rapidas:focus,
#transparencia-destaque:focus,
#contato-rodape:focus {
    outline: 4px solid var(--gold-500);
    outline-offset: 6px;
}

@media (max-width: 900px) {
    .skipbar__inner {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding: 8px 0;
    }
}

/* ===== Página de acessibilidade aprimorada ===== */
.accessibility-page {
    min-height: 100vh;
    padding: 72px 0;
    background:
        radial-gradient(circle at top left, rgba(22, 132, 174, .12), transparent 34%),
        var(--bg);
}

.accessibility-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 35, 60, .12);
}

.accessibility-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 42px;
}

.accessibility-back,
.accessibility-contrast,
.accessibility-action-primary,
.accessibility-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.accessibility-back {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), #0b6ea7);
    box-shadow: 0 12px 28px rgba(22, 132, 174, .24);
}

.accessibility-contrast {
    border: 1px solid #cdebf6;
    color: var(--blue-600);
    background: var(--blue-100);
}

.accessibility-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
    align-items: stretch;
    margin-bottom: 42px;
}

.accessibility-eyebrow {
    margin: 0 0 12px;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.accessibility-hero h1 {
    margin: 0 0 18px;
    color: var(--navy-900);
    font-size: 52px;
    line-height: .98;
    letter-spacing: -.055em;
}

.accessibility-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.68;
}

.accessibility-libras {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(135deg, #e9f7fc, #ffffff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.accessibility-libras__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #2b7ce9;
    color: #fff;
    font-size: 32px;
}

.accessibility-libras strong {
    color: var(--navy-900);
    font-size: 22px;
}

.accessibility-libras span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.accessibility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 44px;
}

.accessibility-grid article {
    position: relative;
    min-height: 170px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fbfdfe;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accessibility-grid article::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 4px;
    background: var(--gold-500);
}

.accessibility-grid article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    color: var(--blue-600);
    background: var(--blue-100);
    font-weight: 950;
}

.accessibility-grid h2,
.accessibility-section h2 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-size: 23px;
    letter-spacing: -.025em;
}

.accessibility-grid p,
.accessibility-section p,
.accessibility-section li {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.62;
}

.accessibility-section {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.accessibility-section + .accessibility-section {
    margin-top: 34px;
}

.accessibility-section ul {
    margin: 0;
    padding-left: 22px;
}

.accessibility-section li + li {
    margin-top: 8px;
}

.accessibility-contact-box {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(135deg, #fbfdfe, #eef7fb);
}

.accessibility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.accessibility-action-primary {
    color: #fff;
    background: var(--blue-600);
}

.accessibility-action-secondary {
    color: var(--blue-600);
    background: #fff;
    border: 1px solid #cdebf6;
}

.high-contrast-enabled .accessibility-page,
.high-contrast-enabled .accessibility-card,
.high-contrast-enabled .accessibility-libras,
.high-contrast-enabled .accessibility-grid article,
.high-contrast-enabled .accessibility-contact-box {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.high-contrast-enabled .accessibility-hero h1,
.high-contrast-enabled .accessibility-grid h2,
.high-contrast-enabled .accessibility-section h2,
.high-contrast-enabled .accessibility-libras strong,
.high-contrast-enabled .accessibility-hero p,
.high-contrast-enabled .accessibility-grid p,
.high-contrast-enabled .accessibility-section p,
.high-contrast-enabled .accessibility-section li,
.high-contrast-enabled .accessibility-libras span {
    color: #fff !important;
}

.high-contrast-enabled .accessibility-back,
.high-contrast-enabled .accessibility-contrast,
.high-contrast-enabled .accessibility-action-primary,
.high-contrast-enabled .accessibility-action-secondary {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

@media (max-width: 900px) {
    .accessibility-card {
        padding: 34px 22px;
    }

    .accessibility-card__top,
    .accessibility-hero {
        grid-template-columns: 1fr;
    }

    .accessibility-card__top {
        flex-direction: column;
        align-items: stretch;
    }

    .accessibility-grid {
        grid-template-columns: 1fr;
    }

    .accessibility-hero h1 {
        font-size: 42px;
    }
}

/* ===== Mini footer da página de acessibilidade ===== */
.accessibility-mini-footer {
    background: var(--navy-950);
    color: #dceaf4;
}

.accessibility-mini-footer__inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
}

.high-contrast-enabled .accessibility-mini-footer {
    background: #000 !important;
    color: #fff !important;
    border-top: 1px solid #fff;
}

@media (max-width: 760px) {
    .accessibility-mini-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 18px 0;
    }
}

/* ===== Topbar dinâmica: data real, legislatura e presidente ===== */
.topbar__president {
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    margin-left: 6px;
}

@media (max-width: 900px) {
    .topbar__legislature {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .topbar__president {
        margin-left: 0;
        font-size: 13px;
    }
}

/* ===== Ajuste fino: selo da legislatura no topo ===== */
.topbar__legislature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 18px;
    border: 1px solid rgba(255, 210, 70, .55);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 210, 70, .18), rgba(255, 255, 255, .06));
    color: var(--gold-400);
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    white-space: nowrap;
}

.topbar__legislature::before {
    content: '●';
    margin-right: 9px;
    color: var(--gold-400);
    font-size: 9px;
    line-height: 1;
}

.topbar__president {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .28);
}

@media (max-width: 900px) {
    .topbar__legislature {
        white-space: normal;
        padding: 8px 16px;
        line-height: 1.3;
    }

    .topbar__legislature::before {
        display: none;
    }

    .topbar__president {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

/* ===== Ajuste fino: selo da legislatura mais quadrado e suspenso ===== */
.topbar,
.topbar .container,
.topbar__inner {
    overflow: visible;
}

.topbar__legislature {
    position: relative;
    top: 10px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 210, 70, .65);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(18, 63, 104, .98) 0%, rgba(11, 48, 82, .98) 100%);
    color: var(--gold-400);
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.topbar__legislature::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 2px;
    background: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(255, 210, 70, .12);
    flex: 0 0 auto;
}

.topbar__president {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .24);
}

@media (max-width: 900px) {
    .topbar__legislature {
        top: 6px;
        min-height: 36px;
        padding: 8px 14px;
        border-radius: 8px;
        white-space: normal;
        line-height: 1.25;
    }

    .topbar__president {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

/* ===== Ajuste fino: descer mais o selo da legislatura ===== */
.topbar__legislature {
    top: 16px;
}

@media (max-width: 900px) {
    .topbar__legislature {
        top: 8px;
    }
}

/* ===== Ajuste fino: legislatura no header no lugar da avaliação ===== */
.topbar__inner {
    grid-template-columns: 1fr auto;
}

.topbar__legislature--hidden {
    display: none !important;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-legislature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 190, 35, .75);
    border-radius: 12px;
    background: linear-gradient(180deg, #073e68 0%, #052f50 100%);
    color: var(--gold-400);
    font-weight: 950;
    font-size: 16px;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(5, 35, 60, .16);
}

.header-legislature-badge__icon {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(255, 210, 70, .14);
}

@media (max-width: 1280px) {
    .topbar__inner {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .header-legislature-badge {
        width: 100%;
        min-height: 44px;
    }
}

/* ===== Ajuste fino: links reais do menu e submenus ===== */
.submenu--right {
    left: auto;
    right: 0;
}

.main-nav .nav-item > a {
    cursor: pointer;
}

.submenu a {
    min-width: 100%;
}

@media (max-width: 1280px) {
    .submenu,
    .submenu--right {
        left: 0;
        right: auto;
    }
}

/* ===== Busca real e páginas provisórias ===== */
.search-page {
    min-height: 100vh;
    padding: 72px 0;
    background:
        radial-gradient(circle at top left, rgba(22, 132, 174, .12), transparent 34%),
        var(--bg);
}

.search-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 35, 60, .12);
}

.search-card__top {
    margin-bottom: 34px;
}

.search-card h1 {
    margin: 0 0 24px;
    color: var(--navy-900);
    font-size: 48px;
    line-height: 1;
    letter-spacing: -.05em;
}

.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fbfdfe;
    margin-bottom: 28px;
}

.search-page-form input {
    min-height: 56px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 16px;
    color: var(--text);
}

.search-page-form button {
    min-width: 150px;
    border: 0;
    border-radius: 18px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 950;
    cursor: pointer;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 17px;
}

.search-summary strong,
.search-summary span {
    color: var(--blue-600);
    font-weight: 950;
}

.search-results {
    display: grid;
    gap: 18px;
}

.search-result {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-result span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 950;
}

.search-result h2 {
    margin: 0 0 10px;
    color: var(--navy-900);
    font-size: 24px;
}

.search-result p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.search-result a {
    color: var(--blue-600);
    font-weight: 950;
}

.empty-search {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fbfdfe;
}

.empty-search h2 {
    margin: 0 0 10px;
    color: var(--navy-900);
}

.empty-search p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.high-contrast-enabled .search-page,
.high-contrast-enabled .search-card,
.high-contrast-enabled .search-page-form,
.high-contrast-enabled .search-result,
.high-contrast-enabled .empty-search {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.high-contrast-enabled .search-card h1,
.high-contrast-enabled .search-result h2,
.high-contrast-enabled .empty-search h2,
.high-contrast-enabled .search-result p,
.high-contrast-enabled .empty-search p,
.high-contrast-enabled .search-summary,
.high-contrast-enabled .search-page-form input {
    color: #fff !important;
}

@media (max-width: 760px) {
    .search-card {
        padding: 32px 22px;
    }

    .search-page-form {
        grid-template-columns: 1fr;
    }

    .search-page-form button {
        min-height: 52px;
    }

    .search-card h1 {
        font-size: 38px;
    }
}

/* ===== Bloco funcional: atalhos da home vindos do banco ===== */
.service-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 132, 174, .45);
    box-shadow: 0 22px 46px rgba(5, 35, 60, .14);
}

.service-card:focus {
    outline: 4px solid rgba(245, 190, 35, .55);
    outline-offset: 4px;
}

.service-card--extra {
    display: none;
}

.service-grid.services-expanded .service-card--extra {
    display: grid;
}

.service-card__icon {
    font-family: Arial, Helvetica, sans-serif;
}

.more-options button {
    transition: transform .18s ease, box-shadow .18s ease;
}

.more-options button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(22, 132, 174, .34);
}

.high-contrast-enabled .service-card:hover {
    border-color: #fff !important;
}

/* ===== Ícones profissionais dos atalhos ===== */
.service-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e9f7fc 0%, #dff3fb 100%);
    color: var(--blue-600);
    font-size: 24px;
    box-shadow: inset 0 -2px 0 rgba(22, 132, 174, .08);
}

.service-card__icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, var(--blue-600), #0b6ea7);
    color: #fff;
    transform: scale(1.04);
}

.high-contrast-enabled .service-card__icon {
    background: #fff !important;
    color: #000 !important;
}

.high-contrast-enabled .service-card:hover .service-card__icon {
    background: #fff !important;
    color: #000 !important;
}

/* ===== Ícones SVG inline dos atalhos ===== */
.service-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e9f7fc 0%, #dff3fb 100%);
    color: var(--blue-600);
    box-shadow: inset 0 -2px 0 rgba(22, 132, 174, .10);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, var(--blue-600), #0b6ea7);
    color: #fff;
    transform: scale(1.04);
}

.service-card:hover .service-card__icon svg {
    stroke: currentColor;
}

.high-contrast-enabled .service-card__icon {
    background: #fff !important;
    color: #000 !important;
}

.high-contrast-enabled .service-card__icon svg {
    stroke: #000 !important;
}

/* ===== Transparência em destaque dinâmica ===== */
.section-kicker {
    margin: 0 0 10px !important;
    color: var(--blue-600) !important;
    font-size: 13px !important;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.stats-grid--dynamic {
    align-items: stretch;
}

.stat-card--link,
.info-card--link {
    display: block;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stat-card--link {
    min-height: 132px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: center;
}

.stat-card--link:hover,
.info-card--link:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 132, 174, .45);
    box-shadow: 0 22px 46px rgba(5, 35, 60, .14);
}

.highlight-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: var(--blue-600);
    background: linear-gradient(135deg, #e9f7fc 0%, #dff3fb 100%);
    box-shadow: inset 0 -2px 0 rgba(22, 132, 174, .10);
}

.highlight-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.highlight-icon--large {
    margin-bottom: 22px;
    width: 62px;
    height: 62px;
    border-radius: 20px;
}

.highlight-icon--large svg {
    width: 31px;
    height: 31px;
}

.stat-card__content strong {
    display: block;
    margin-bottom: 8px;
}

.info-grid--dynamic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card--link {
    min-height: 265px;
}

.info-card--link h3 {
    margin-bottom: 14px;
}

.info-card__cta {
    display: inline-flex;
    margin-top: 22px;
    color: var(--blue-600);
    font-weight: 950;
}

.info-card__cta::after {
    content: ' →';
    margin-left: 4px;
}

.info-card--link:hover .highlight-icon,
.stat-card--link:hover .highlight-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), #0b6ea7);
}

.high-contrast-enabled .highlight-icon {
    background: #fff !important;
    color: #000 !important;
}

.high-contrast-enabled .highlight-icon svg {
    stroke: #000 !important;
}

@media (max-width: 1180px) {
    .info-grid--dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .stat-card--link {
        grid-template-columns: 1fr;
    }

    .info-grid--dynamic {
        grid-template-columns: 1fr;
    }
}

/* ===== Ajuste fino do footer ===== */
.footer-legal-name {
    margin: 0 0 12px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.45;
}

.footer-pntp {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    justify-content: center;
}

.footer-pntp img {
    width: 220px;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    opacity: .96;
}

.footer-links a,
.social-links a {
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.footer-links a:hover {
    color: var(--gold-400);
    text-decoration: underline;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: rgba(245, 190, 35, .28);
}

@media (max-width: 760px) {
    .footer-pntp {
        justify-content: flex-start;
    }

    .footer-pntp img {
        width: 190px;
        max-width: 190px;
    }
}

/* ===== Links institucionais do footer ===== */
.footer-pntp a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-pntp a:hover img {
    transform: translateY(-2px);
    opacity: 1;
}

.footer-pntp img {
    transition: transform .18s ease, opacity .18s ease;
}

.keepdo-link {
    color: var(--gold-400);
    font-weight: 900;
    text-decoration: none;
}

.keepdo-link:hover {
    color: #fff;
    text-decoration: underline;
}

.high-contrast-enabled .keepdo-link {
    color: #fff !important;
    text-decoration: underline;
}

/* Documentos públicos */
.documents-page {
    background: #f5f8fc;
}

.documents-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.documents-hero {
    padding: 48px 0 34px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 34%),
        linear-gradient(135deg, #063b78 0%, #0a58a8 55%, #0d6fc7 100%);
    color: #fff;
}

.documents-hero-compact {
    padding-bottom: 42px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255,255,255,.78);
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.documents-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 28px;
    align-items: end;
}

.documents-hero h1 {
    max-width: 760px;
    margin: 8px 0 12px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.documents-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.55;
}

.documents-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.documents-summary div {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
}

.documents-summary strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.documents-summary span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 700;
}

.documents-content {
    padding: 28px 0 56px;
}

.documents-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) 260px 160px auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-top: -52px;
    margin-bottom: 22px;
    border: 1px solid #d9e5f3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .14);
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #24364f;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd9e8;
    border-radius: 12px;
    padding: 0 13px;
    color: #1a2a42;
    background: #fff;
    font-size: 15px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-actions button,
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    background: #0a58a8;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.filter-actions a,
.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border: 1px solid #cdd9ea;
    border-radius: 12px;
    padding: 0 16px;
    background: #fff;
    color: #0a58a8;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.btn-disabled {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border-radius: 12px;
    padding: 0 16px;
    background: #eef1f6;
    color: #768399;
    font-size: 14px;
    font-weight: 800;
}

.documents-result-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: #5d6b80;
    font-size: 14px;
}

.documents-list {
    display: grid;
    gap: 12px;
}

.document-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.document-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    color: #65758c;
    font-size: 13px;
    font-weight: 700;
}

.document-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.document-card h2 a {
    color: #12233d;
    text-decoration: none;
}

.document-card h2 a:hover {
    color: #0a58a8;
}

.document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    background: #eef4ff;
    color: #174b8f;
    font-size: 12px;
    font-weight: 800;
}

.tag-success {
    background: #e7f7ee;
    color: #146c43;
}

.tag-warning {
    background: #fff4df;
    color: #946200;
}

.document-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.documents-pagination {
    margin-top: 22px;
}

.empty-state {
    padding: 28px;
    border: 1px dashed #cbd7e7;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: #667085;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    align-items: start;
}

.detail-card {
    padding: 22px;
    border: 1px solid #dbe5f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.detail-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.document-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 700;
}

.file-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5edf7;
}

.file-row:first-of-type {
    padding-top: 0;
}

.file-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.document-info {
    margin: 0;
}

.document-info dt {
    margin-top: 14px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.document-info dd {
    margin: 4px 0 0;
    color: #17233a;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.document-info code {
    white-space: normal;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .documents-hero-grid,
    .documents-filter,
    .document-card,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .document-actions {
        justify-content: flex-start;
    }

    .file-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Documentos - ajuste visual v2 */
.documents-page-v2 {
    background: #f3f7fb;
}

.documents-hero-v2 {
    padding: 52px 0 72px;
    background:
        radial-gradient(circle at 82% 10%, rgba(19, 139, 190, .14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
    border-bottom: 1px solid #dfe9f3;
}

.breadcrumb-light {
    color: #6b7b90;
    margin-bottom: 28px;
}

.breadcrumb-light a {
    color: #0b7fab;
}

.breadcrumb-light strong {
    color: #082641;
}

.documents-hero-grid-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 34px;
    align-items: center;
}

.documents-title-block h1 {
    max-width: 720px;
    margin: 8px 0 14px;
    color: #05243f;
    font-size: clamp(38px, 4.2vw, 64px);
    line-height: .98;
    letter-spacing: -.055em;
}

.documents-title-block p {
    max-width: 700px;
    margin: 0;
    color: #53647a;
    font-size: 18px;
    line-height: 1.58;
}

.documents-summary-v2 {
    display: grid;
    gap: 12px;
}

.summary-card {
    padding: 18px 20px;
    border: 1px solid #d7e6f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}

.summary-card span {
    display: block;
    margin-bottom: 8px;
    color: #5e7087;
    font-size: 13px;
    font-weight: 800;
}

.summary-card strong {
    display: block;
    color: #057eaa;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}

.documents-filter-v2 {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 260px 150px auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin: 34px 0 -112px;
    border: 1px solid #d7e6f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 56px rgba(16, 24, 40, .12);
    position: relative;
    z-index: 2;
}

.documents-content-v2 {
    padding: 86px 0 70px;
}

.documents-result-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    color: #617189;
    font-size: 15px;
}

.documents-result-header-v2 strong {
    color: #05243f;
}

.documents-list-v2 {
    display: grid;
    gap: 14px;
}

.document-card-v2 {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid #dce8f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.document-card-v2:hover {
    transform: translateY(-2px);
    border-color: #b8dbea;
    box-shadow: 0 18px 36px rgba(16, 24, 40, .09);
}

.document-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf8fd;
    color: #0b86af;
    font-size: 20px;
    font-weight: 900;
}

.document-meta-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
}

.document-meta-v2 span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    background: #f1f6fb;
    color: #617189;
    font-size: 12px;
    font-weight: 800;
}

.document-card-v2 h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.document-card-v2 h2 a {
    color: #05243f;
    text-decoration: none;
}

.document-card-v2 h2 a:hover {
    color: #0b7fab;
}

.document-actions-v2 {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 210px;
}

.documents-pagination-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 30px 0 0;
    padding: 18px;
}

.documents-pagination-v2 .page-btn,
.documents-pagination-v2 .page-numbers a,
.documents-pagination-v2 .page-numbers span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #d6e3ef;
    border-radius: 12px;
    background: #fff;
    color: #0a4a78;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.documents-pagination-v2 .page-btn {
    padding: 0 15px;
    min-width: 96px;
}

.documents-pagination-v2 .page-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.documents-pagination-v2 .page-numbers .active {
    background: #0b7fab;
    border-color: #0b7fab;
    color: #fff;
}

.documents-pagination-v2 .disabled {
    opacity: .45;
    cursor: not-allowed;
}

.documents-pagination-v2 svg {
    width: 16px !important;
    height: 16px !important;
}

@media (max-width: 980px) {
    .documents-hero-grid-v2,
    .documents-filter-v2,
    .document-card-v2 {
        grid-template-columns: 1fr;
    }

    .documents-summary-v2 {
        grid-template-columns: repeat(3, 1fr);
    }

    .document-actions-v2 {
        min-width: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .documents-summary-v2 {
        grid-template-columns: 1fr;
    }

    .documents-filter-v2 {
        margin-bottom: -96px;
    }

    .documents-content-v2 {
        padding-top: 104px;
    }

    .documents-result-header-v2,
    .documents-pagination-v2 {
        flex-direction: column;
        align-items: flex-start;
    }

    .documents-pagination-v2 .page-numbers {
        flex-wrap: wrap;
    }
}

/* Documentos: ícones reais por categoria */
.document-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf8fd;
    color: #0b86af;
    font-size: 19px;
    font-weight: 900;
    flex-shrink: 0;
}

.document-icon i {
    line-height: 1;
}

.document-icon-default {
    background: #eaf8fd;
    color: #0b86af;
}

.document-icon-licitacoes {
    background: #eaf8fd;
    color: #0b86af;
}

.document-icon-contratos {
    background: #eef4ff;
    color: #0a58a8;
}

.document-icon-diarias {
    background: #eefcf6;
    color: #15803d;
}

.document-icon-servidores {
    background: #f3e8ff;
    color: #6d28d9;
}

.document-icon-repasses {
    background: #fff7ed;
    color: #c2410c;
}

.document-icon-fiscal {
    background: #ecfeff;
    color: #0e7490;
}

.document-icon-contas {
    background: #f0fdf4;
    color: #166534;
}

.document-icon-legislativo {
    background: #eaf8fd;
    color: #087da4;
}

.document-icon-verbas {
    background: #fff1f2;
    color: #be123c;
}

.document-icon-dados {
    background: #f0f9ff;
    color: #0369a1;
}

.document-icon-warning {
    background: #fff4df;
    color: #b7791f;
}

.document-card-v2:hover .document-icon {
    transform: translateY(-1px);
}

/* Documentos: SVG inline nos ícones */
.document-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.document-icon-warning svg {
    stroke-width: 2.3;
}

/* Correção final dos ícones SVG em /documentos */
.document-card-v2 .document-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
}

.document-card-v2 .document-icon svg {
    width: 23px !important;
    height: 23px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.15 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Modal PDF - documentos */
button.btn-outline,
button.btn-primary {
    font-family: inherit;
    cursor: pointer;
}

.document-actions-v2 {
    min-width: 310px;
}

.btn-open-pdf {
    white-space: nowrap;
}

.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.pdf-modal.is-open {
    display: block;
}

.pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 24, 43, .72);
    backdrop-filter: blur(4px);
}

.pdf-modal-dialog {
    position: absolute;
    inset: 32px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-bottom: 1px solid #dbe7f2;
    background: #f7fbfe;
}

.pdf-modal-header span {
    display: block;
    margin-bottom: 4px;
    color: #0b7fab;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pdf-modal-header h2 {
    margin: 0;
    color: #05243f;
    font-size: 20px;
    line-height: 1.25;
}

.pdf-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eaf3fb;
    color: #05243f;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

.pdf-modal-close:hover {
    background: #d8ebf8;
}

.pdf-modal-body {
    min-height: 0;
    background: #0b1220;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    display: block;
    border: 0;
    background: #fff;
}

.pdf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #dbe7f2;
    background: #fff;
}

body.pdf-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .document-actions-v2 {
        min-width: 0;
    }

    .pdf-modal-dialog {
        inset: 14px;
        border-radius: 18px;
    }

    .pdf-modal-body iframe {
        min-height: 68vh;
    }

    .pdf-modal-footer {
        flex-direction: column;
    }

    .pdf-modal-footer .btn-outline,
    .pdf-modal-footer .btn-primary {
        width: 100%;
    }
}

/* Links funcionais da home */
.hero-chip,
.hero-tags a,
.hero-badges a {
    text-decoration: none;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    color: #05243f;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hero-chip:hover {
    transform: translateY(-1px);
    background: #f4fbff;
    box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.quick-card,
.area-card,
.home-card,
.search-card {
    text-decoration: none;
}

.quick-card:hover,
.area-card:hover,
.home-card:hover,
.search-card:hover {
    transform: translateY(-2px);
}

/* Home: cards clicáveis */
.is-clickable-card {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.is-clickable-card:hover {
    transform: translateY(-2px);
    border-color: #b7dce9;
    box-shadow: 0 18px 38px rgba(16, 24, 40, .10);
}

.is-clickable-card:focus {
    outline: 3px solid rgba(11, 127, 171, .25);
    outline-offset: 4px;
}

.is-clickable-card a {
    text-decoration: none;
}

/* Ajuste fino: título da página de detalhe do documento */
.documents-hero-compact h1 {
    max-width: 760px;
    font-size: clamp(30px, 3.1vw, 48px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.documents-hero-compact .breadcrumb {
    margin-bottom: 18px;
}

.documents-hero-compact .section-kicker {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .documents-hero-compact h1 {
        font-size: 30px;
    }
}

/* Ajuste fino: detalhe de documento */
.documents-hero-compact h1 {
    max-width: 920px;
    font-size: clamp(30px, 2.65vw, 42px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.documents-hero-compact {
    padding-top: 48px;
    padding-bottom: 54px;
}

.documents-hero-compact .breadcrumb {
    margin-bottom: 18px;
}

.documents-hero-compact .section-kicker {
    margin-bottom: 8px;
}

.file-row strong {
    display: block;
    max-width: 560px;
    color: #05243f;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

@media (min-width: 1100px) {
    .documents-hero-compact h1 {
        max-width: 860px;
    }
}

@media (max-width: 768px) {
    .documents-hero-compact h1 {
        font-size: 29px;
    }
}

/* Footer assinatura institucional */
.footer-heart {
    display: inline-block;
    transform: translateY(1px);
}

/* VLibras oficial */
.vlibras-float {
    display: none !important;
}

/* Garante que o widget oficial fique acima do layout */
div[vw].enabled {
    z-index: 99999 !important;
}

/* Ajuste fino do botão oficial no desktop */
div[vw-access-button] {
    margin-right: 12px;
}
