/* Agenda da cidade — complementa news-extra.css / Tailwind */

/*
 * RESET DE COMPATIBILIDADE COM O PORTAL PMF
 * O Tailwind CDN (cdn.tailwindcss.com), mesmo com preflight: false e
 * corePlugins.preflight: false, injeta estilos base que sobrescrevem
 * o font-size do <html>. O Header e o Rodapé do portal foram construídos
 * com rem baseado no padrão do browser (1rem = 16px). Este bloco garante
 * que o font-size base seja restaurado para o valor correto, impedindo
 * que Header e Rodapé apareçam com zoom/tamanho incorreto.
 */
html {
    font-size: 16px !important;
}

.agenda-hero {
    position: relative;
    margin-top: 0.2rem;
    margin-bottom: 1.3rem;
    min-height: 0;
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    background: linear-gradient(145deg, #ffffff 0%, #f2f7fb 50%, #e8f4fa 100%);
    box-shadow: 0 10px 36px rgb(0 48 99 / 0.07);
    padding: 1.55rem 1.8rem;
}

@media (min-width: 768px) {
    .agenda-hero {
        padding: 1.55rem 1.8rem;
    }
}

.agenda-layout-main .page-breadcrumb {
    margin-bottom: 1.375rem;
}

@media (min-width: 1024px) {
    .agenda-sidebar {
        margin-top: 2.75rem;
    }
}

.agenda-back-wrap {
    margin: 0;
}

.agenda-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-primary-soft);
    text-decoration: none;
    padding: 0.35rem 0.2rem;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.agenda-back-link:hover {
    color: var(--brand-accent-hover);
}

.agenda-back-link:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
}

.agenda-back-link__icon {
    flex-shrink: 0;
    color: var(--brand-accent);
}

.agenda-evento-back {
    margin-top: 1rem;
    text-decoration: none;
}

.agenda-hero__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--border-soft);
    color: var(--brand-accent);
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px rgb(0 48 99 / 0.06);
}

.agenda-hero__title {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-primary);
    margin: 0 0 0.45rem;
}

.agenda-hero__lead {
    margin: 0;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.agenda-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.agenda-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-soft);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.agenda-stat-pill strong {
    color: var(--brand-accent-hover);
    font-weight: 800;
}

.agenda-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid var(--border-soft);
    background: #fff;
    box-shadow: 0 4px 16px rgb(0 48 99 / 0.045);
}

.agenda-filter-field {
    flex: 1 1 11rem;
    min-width: 0;
}

.agenda-filter-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.agenda-filter-field input,
.agenda-filter-field select {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid var(--border-soft);
    background: var(--brand-primary-tint);
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    color: var(--brand-primary);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.agenda-filter-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003063' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 0.85rem;
    padding-right: 2rem;
    cursor: pointer;
}

.agenda-filter-field select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgb(0 177 235 / 0.15);
}

.agenda-filter-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-image: none;
}

.agenda-filter-field select option {
    color: var(--brand-primary);
    background: #fff;
}

.agenda-search-input {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid var(--border-soft);
    background: #fff;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    color: var(--brand-primary);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.agenda-search-input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgb(0 177 235 / 0.15);
}

.agenda-search-input::placeholder {
    color: rgb(95 115 138 / 0.75);
}

.agenda-month-highlight {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgb(0 177 235 / 0.35);
    background: var(--brand-accent-soft);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.agenda-event-list-heading {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
    margin: 0 0 1rem;
}

.agenda-event-card {
    display: flex;
    gap: 1rem;
    border-radius: 1.15rem;
    border: 1px solid var(--border-soft);
    background: #fff;
    padding: 1rem 1.05rem;
    box-shadow: 0 4px 16px rgb(0 48 99 / 0.045);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agenda-event-card:hover {
    border-color: rgb(0 177 235 / 0.45);
    box-shadow: 0 8px 22px rgb(0 48 99 / 0.07);
}

.agenda-event-card__date {
    flex-shrink: 0;
    width: 3.35rem;
    text-align: center;
    padding: 0.45rem 0.35rem;
    border-radius: 0.85rem;
    background: linear-gradient(165deg, var(--brand-primary) 0%, var(--brand-primary-soft) 100%);
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-event-card__date small {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.92;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.agenda-event-card__thumb {
    display: none;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.85rem;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .agenda-event-card__thumb {
        display: block;
    }
}

.agenda-event-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-event-card__body {
    flex: 1;
    min-width: 0;
}

.agenda-event-card__cat {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-accent-hover);
}

.agenda-event-card__title {
    margin: 0.2rem 0 0.35rem;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
    line-height: 1.25;
}

.agenda-event-card__desc {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.agenda-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.agenda-event-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.agenda-event-card__cta {
    display: inline-flex;
    margin-top: 0.55rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--brand-accent-hover);
    text-decoration: none;
}

.agenda-event-card__cta:hover {
    text-decoration: underline;
}

.agenda-side-card {
    border-radius: 1.15rem;
    border: 1px solid var(--border-soft);
    background: #fff;
    padding: 1.1rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgb(0 48 99 / 0.04);
}

.agenda-side-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.agenda-next-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.agenda-next-list li+li {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgb(217 230 240 / 0.65);
}

.agenda-next-list a {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-accent-hover);
    text-decoration: none;
}

.agenda-next-list a:hover {
    text-decoration: underline;
}

.agenda-next-list time {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.agenda-mini-cal__month {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.65rem;
    color: var(--brand-primary);
}

.agenda-mini-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.agenda-mini-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.28rem;
}

.agenda-mini-cal__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 0.45rem;
    color: var(--brand-primary);
    background: var(--brand-primary-tint);
    border: 1px solid transparent;
}

.agenda-mini-cal__day--muted {
    opacity: 0.35;
    background: transparent;
}

.agenda-mini-cal__day--dot::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    margin: 2px auto 0;
}

.agenda-mini-cal__day--dot.cult::after {
    background: #00b1eb;
}

.agenda-mini-cal__day--dot.sport::after {
    background: #003063;
}

.agenda-mini-cal__day--dot.com::after {
    background: #5f738a;
}

.agenda-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.agenda-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.agenda-legend i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.agenda-layout-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .agenda-split {
        display: flex;
        flex-direction: row-reverse;
        gap: 2rem;
        align-items: flex-start;
    }

    .agenda-split__aside {
        width: 300px;
        flex-shrink: 0;
        position: sticky;
        top: 5.5rem;
    }

    .agenda-split__main {
        flex: 1;
        min-width: 0;
    }
}

/* —— Detalhe do evento —— */
.evento-hero {
    border-radius: 1.35rem;
    border: 1px solid var(--border-soft);
    background: linear-gradient(145deg, #fff 0%, #f2f7fb 100%);
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 10px 32px rgb(0 48 99 / 0.06);
}

.evento-hero__pretitle {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-accent-hover);
}

.evento-hero__title {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0.5rem 0 0.65rem;
    color: var(--brand-primary);
}

.evento-hero__lead {
    margin: 0 0 1rem;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.evento-hero__media {
    margin-top: 1rem;
    border-radius: 1.15rem;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.evento-hero__media img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 22rem;
    object-fit: cover;
}

.evento-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.evento-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.45rem 1.2rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(165deg, var(--brand-accent), var(--brand-accent-hover));
    border: none;
    text-decoration: none;
    box-shadow: 0 8px 22px rgb(0 177 235 / 0.25);
    cursor: pointer;
}

.evento-btn-primary:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

.evento-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: #fff;
    border: 1px solid var(--border-soft);
    text-decoration: none;
}

.evento-btn-secondary:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
}

.evento-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.evento-prose-card {
    border-radius: 1.2rem;
    border: 1px solid var(--border-soft);
    background: #fff;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 4px 16px rgb(0 48 99 / 0.045);
}

.evento-prose-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.evento-prose-card p,
.evento-prose-card li {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.evento-prose-card ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.evento-side-card {
    border-radius: 1.1rem;
    border: 1px solid var(--border-soft);
    background: #fff;
    padding: 1.15rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgb(0 48 99 / 0.04);
}

.evento-side-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.evento-side-dl {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.evento-side-dl div+div {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border-soft);
}

.evento-side-dl dt {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-primary);
}

.evento-side-dl dd {
    margin: 0.1rem 0 0;
}

.evento-related-grid {
    display: grid;
    gap: 0.6rem;
}

.evento-related-card {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border-soft);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-accent-hover);
    text-decoration: none;
}

.evento-related-card:hover {
    border-color: var(--brand-accent);
    background: var(--brand-accent-soft);
}

@media (min-width: 1024px) {
    .evento-split-aside {
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
    }
}

/* —— Paleta institucional (mock Notícias) —— */
:root {
    --portal-container: 1320px;
    --portal-header-container: 1320px;
    --brand-primary: #003063;
    --brand-accent: #00b1eb;
    --brand-primary-soft: #0f4a7a;
    --brand-accent-hover: #0098c8;
    --brand-accent-soft: #e8f8fd;
    --brand-primary-tint: #f2f7fb;
    --border-soft: #d9e6f0;
    --text-muted: #5f738a;
    --surface-white: #ffffff;
    --page-bg: #f7f9fc;
}

.news-page-body {
    background-color: var(--page-bg);
    color: var(--brand-primary);
    font-family: "Outfit", system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display,
.news-title,
.sidebar-section-head__title {
    font-family: "Montserrat", system-ui, sans-serif;
}

/* —— Faixa institucional + header refinado —— */
.top-band {
    position: relative;
    z-index: 510;
    width: 100%;
    overflow: visible;
    background: linear-gradient(167deg, #003063 0%, #00264c 62%, #001c38 100%);
}

.top-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 0.75rem 0.85rem 0.9rem;
    overflow: visible;
}

@media (min-width: 1024px) {
    .top-band__inner {
        padding: 0.9rem 1.2rem 1.05rem;
    }
}

.top-band__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 120% 85% at 50% -35%, rgb(0 177 235 / 0.15), transparent 55%),
        radial-gradient(ellipse 65% 52% at 13% 55%, rgb(255 255 255 / 0.06), transparent 70%);
}

.site-header {
    position: relative;
    z-index: 500;
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

.site-header.is-search-open {
    z-index: 700;
}

.primary-nav-card,
.primary-nav,
.primary-nav__search-wrap {
    overflow: visible;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.primary-nav-card {
    position: relative;
    background: rgb(255 255 255 / 0.98);
    border: 1px solid rgb(217 230 240 / 0.8);
    border-radius: 1.1rem;
    padding: 0.52rem 0.72rem 0.56rem;
    box-shadow:
        0 8px 28px rgb(0 48 99 / 0.11),
        0 2px 6px rgb(0 48 99 / 0.05),
        inset 0 1px 0 rgb(255 255 255 / 0.95);
}


@media (min-width: 1024px) {
    .primary-nav-card {
        border-radius: 1.2rem;
        padding: 0.58rem 1rem 0.62rem;
    }
}

.primary-nav {
    display: grid;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0.35rem 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
}

.primary-nav__left,
.primary-nav__right {
    min-width: 0;
}

.primary-nav__left {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem clamp(0.35rem, 1.8vw, 0.72rem);
}

.primary-nav__left-links {
    display: contents;
}

.primary-nav__right {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem clamp(0.35rem, 1.8vw, 0.72rem);
}

.primary-nav__right-links {
    display: contents;
}

.primary-nav__socials {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    order: -1;
    width: 100%;
    justify-content: center;
}

.primary-nav__social {
    width: 2.05rem;
    height: 2.05rem;
    flex: 0 0 auto;
    border-radius: 0.72rem;
    border: 1px solid rgb(0 48 99 / 0.16);
    color: #003063;
    background: rgb(255 255 255 / 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.primary-nav__social svg {
    width: 1rem;
    height: 1rem;
    display: block;
    flex-shrink: 0;
    fill: currentColor;
}

@media (hover: hover) {
    .primary-nav__social:hover {
        color: #00b1eb;
        border-color: rgb(0 177 235 / 0.45);
        background: #e8f8fd;
    }
}

.primary-nav__social:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}


.primary-nav__logo {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    padding: 0.28rem 0;
    margin: 0;
}

.primary-nav__search-wrap {
    position: static;
    flex-shrink: 0;
}

.primary-nav__search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.4rem;
    padding: 0 0.9rem;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgb(0 48 99 / 0.16);
    background: rgb(255 255 255 / 0.72);
    color: #003063;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: clamp(0.62rem, 1.55vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.primary-nav__search-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

@media (hover: hover) {
    .primary-nav__search-btn:hover {
        color: #00b1eb;
        border-color: rgb(0 177 235 / 0.45);
        background: #e8f8fd;
    }
}

.primary-nav__search-btn:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

.primary-nav__search-btn[aria-expanded="true"] {
    color: #00b1eb;
    border-color: rgb(0 177 235 / 0.45);
    background: #e8f8fd;
}

@media (max-width: 900px) {
    .primary-nav__socials {
        display: none;
    }

    .primary-nav__search-btn span {
        display: none;
    }

    .primary-nav__search-btn {
        width: 2.4rem;
        min-height: 2.4rem;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .primary-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: auto;
        gap: clamp(0.65rem, 2vw, 1.35rem);
        align-items: center;
    }

    .primary-nav__left,
    .primary-nav__right {
        width: 100%;
        flex-wrap: nowrap;
    }

    .primary-nav__left {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: clamp(1.2rem, 2vw, 2.4rem);
        min-width: 0;
    }

    .primary-nav__socials {
        flex: 0 0 auto;
        order: 0;
        width: auto;
        justify-content: flex-start;
    }

    .primary-nav__left-links {
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: clamp(1.1rem, 1.8vw, 2rem);
        min-width: 0;
    }

    .primary-nav__logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        padding: 0;
    }

    .primary-nav__right {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: clamp(1.2rem, 2vw, 2.4rem);
        min-width: 0;
    }

    .primary-nav__right-links {
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: clamp(1.1rem, 1.8vw, 2rem);
        min-width: 0;
    }

    .primary-nav__search-wrap {
        flex: 0 0 auto;
        margin-left: clamp(1.2rem, 2vw, 2.2rem);
    }
}

.nav-link {
    max-width: 100%;
    font-size: clamp(0.56rem, 1.45vw, 0.69rem);
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.2;
    color: #003063;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.18s ease;
    cursor: default;
}

@media (min-width: 1024px) {
    .nav-link {
        font-size: clamp(0.6rem, 0.72vw, 0.74rem);
    }
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--brand-accent);
    }
}

.nav-link__chev {
    margin-left: 0.05rem;
    font-size: 0.52em;
    color: var(--text-muted);
    vertical-align: 0.08em;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: default;
}

.brand-logo__crest {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo__img {
    display: block;
    width: auto;
    height: auto;
    max-height: 2.35rem;
    max-width: min(10.35rem, 49vw);
    object-fit: contain;
}

@media (min-width: 1024px) {
    .brand-logo__img {
        max-height: 2.55rem;
        max-width: min(11rem, 15vw);
    }
}

/* —— Busca contextual (painel sob o nav) —— redes apenas no footer —— */
.portal-search-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: clamp(0.65rem, 3vw, 2rem);
    left: auto;
    transform: none;
    z-index: 850;
    width: min(34rem, calc(100vw - 2rem));
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.portal-search-panel[hidden] {
    display: none !important;
}

.portal-search-panel__shell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.45rem 0.55rem 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgb(217 230 240 / 0.95);
    background: rgb(255 255 255 / 0.98);
    box-shadow:
        0 18px 42px rgb(0 48 99 / 0.18),
        0 4px 14px rgb(0 48 99 / 0.08),
        inset 0 1px 0 rgb(255 255 255 / 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portal-search-panel__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.35rem 0.35rem 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.portal-search-panel__input::placeholder {
    color: rgb(95 115 138 / 0.75);
}

.portal-search-panel__input:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.portal-search-panel__close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgb(247 251 253 / 0.85);
    color: rgb(95 115 138 / 0.95);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.16s ease,
        color 0.16s ease;
}

@media (hover: hover) {
    .portal-search-panel__close:hover {
        background: rgb(232 248 253 / 0.95);
        color: var(--brand-primary);
    }
}

.portal-search-panel__close:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

.accessibility-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    width: 3rem;
    height: 3rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0.85rem;
    background: #1f7ae0;
    color: #fff;
    box-shadow: 0 12px 28px rgb(0 48 99 / 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.accessibility-float:focus-visible {
    outline: 3px solid rgb(255 255 255 / 0.95);
    outline-offset: 2px;
}

@media (hover: hover) {
    .accessibility-float:hover {
        background: #1a6bcf;
        box-shadow: 0 14px 32px rgb(0 48 99 / 0.28);
        transform: translateY(-2px);
    }
}

@media (max-width: 1023px) {
    body.has-mobile-filter-fab .accessibility-float {
        bottom: calc(1.25rem + 56px + 12px);
    }
}

/* —— Sidebar: cabeçalhos + listas curtas (sem rolagem interna) —— */
.sidebar-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}

.sidebar-section-head__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.sidebar-section-head__hint {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--brand-accent);
    opacity: 0.88;
    line-height: 0;
}

/* Sidebar: chevron só ▼ quando recolhido, ▲ quando expandido (SVG com dois polylines).
   Vale para filtros em Notícias/Serviços e sumário na Secretarias (.sidebar-filter-card). */
.sidebar-filter-card:not(.is-expanded) .sidebar-section-head__hint svg polyline:first-child {
    opacity: 1;
}

.sidebar-filter-card:not(.is-expanded) .sidebar-section-head__hint svg polyline:last-child {
    opacity: 0;
}

.sidebar-filter-card.is-expanded .sidebar-section-head__hint svg polyline:first-child {
    opacity: 0;
}

.sidebar-filter-card.is-expanded .sidebar-section-head__hint svg polyline:last-child {
    opacity: 1;
}

.sidebar-filter-card .sidebar-section-head__hint svg polyline {
    transition: opacity 0.2s ease;
}

.sidebar-filter-card .sidebar-section-head__hint svg {
    display: block;
}

.sidebar-filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Expansão suave — grid 0fr → 1fr (sem scrollbar) */
.sidebar-filter-expand {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.42s cubic-bezier(0.32, 0.72, 0.32, 1);
}

.sidebar-filter-card.is-expanded .sidebar-filter-expand {
    grid-template-rows: 1fr;
}

.sidebar-filter-expand__inner {
    min-height: 0;
    overflow: hidden;
}

.sidebar-filter-expand__inner ul {
    margin: 0;
    padding-bottom: 0.05rem;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-filter-expand {
        transition-duration: 0.01ms;
    }

    .sidebar-filter-toggle__chev {
        transition-duration: 0.01ms;
    }

    .sidebar-filter-card .sidebar-section-head__hint svg polyline,
    .sidebar-filter-toggle__chev svg polyline {
        transition-duration: 0.01ms;
    }
}

.sidebar-filter-toggle {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.48rem;
    padding: 0.55rem 0 0;
    border: 0;
    border-top: 1px solid var(--border-soft);
    background: none;
    font: inherit;
    cursor: pointer;
    color: var(--brand-primary);
    transition: color 0.18s ease;
}

@media (hover: hover) {
    .sidebar-filter-toggle:hover {
        color: var(--brand-accent);
    }

    .sidebar-filter-toggle:hover .sidebar-filter-toggle__chev {
        color: var(--brand-accent);
    }
}

.sidebar-filter-toggle__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.sidebar-filter-toggle__chev {
    display: inline-flex;
    line-height: 0;
    color: rgb(0 177 235 / 0.9);
    transition: color 0.18s ease;
}

.sidebar-filter-toggle:not(.is-expanded) .sidebar-filter-toggle__chev svg polyline:first-child {
    opacity: 1;
}

.sidebar-filter-toggle:not(.is-expanded) .sidebar-filter-toggle__chev svg polyline:last-child {
    opacity: 0;
}

.sidebar-filter-toggle.is-expanded .sidebar-filter-toggle__chev svg polyline:first-child {
    opacity: 0;
}

.sidebar-filter-toggle.is-expanded .sidebar-filter-toggle__chev svg polyline:last-child {
    opacity: 1;
}

.sidebar-filter-toggle__chev svg polyline {
    transition: opacity 0.2s ease;
}

/* —— Footer: redes institucionais em branco —— */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.footer-social__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(255 255 255 / 0.25);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: default;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.footer-social .footer-social__icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

@media (hover: hover) {
    .footer-social__icon:hover {
        border-color: rgb(255 255 255 / 0.45);
        background-color: rgb(255 255 255 / 0.08);
    }
}

/* Cards lista / destaque — sombra institucional leve */
.news-card-main {
    box-shadow:
        0 4px 28px rgb(0 48 99 / 0.07),
        0 1px 6px rgb(0 48 99 / 0.04);
}

.news-card-main .news-card-main__media {
    display: block;
}

.news-card-grid {
    box-shadow: 0 2px 16px rgb(0 48 99 / 0.05);
}

/* —— Editorial: título em azul institucional #003063 —— */
.news-title {
    color: #003063;
}

.news-date-badge {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 3.05rem;
    padding: 0.45rem 0.55rem 0.38rem;
    border-radius: 0.625rem;
    border: 1px solid rgb(217 230 240 / 0.95);
    background: var(--surface-white);
    box-shadow:
        0 6px 22px rgb(0 48 99 / 0.1),
        0 2px 6px rgb(0 48 99 / 0.05);
    text-align: center;
    pointer-events: none;
}

.news-date-badge__day {
    display: block;
    font-size: 1.3125rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #003063;
}

.news-date-badge__month {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.546875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgb(95 115 138 / 0.88);
    text-transform: uppercase;
}

.news-date-badge--sm {
    right: 0.5rem;
    bottom: 0.5rem;
    min-width: 2.4rem;
    padding: 0.3rem 0.42rem 0.28rem;
    border-radius: 0.5rem;
}

.news-date-badge--sm .news-date-badge__day {
    font-size: 1rem;
}

.news-date-badge--sm .news-date-badge__month {
    margin-top: 0.22rem;
    font-size: 0.4921875rem;
}

.news-card-teaser-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* —— Blocos editoriais de continuidade —— */
.news-flow-head__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

@media (hover: hover) {
    .news-flow-head__link:hover {
        color: var(--brand-accent);
    }
}

.news-now {
    box-shadow:
        0 8px 30px rgb(0 48 99 / 0.07),
        inset 0 1px 0 rgb(255 255 255 / 0.85);
}

.news-now__grid {
    display: grid;
    gap: 0.75rem 1rem;
}

@media (min-width: 1024px) {
    .news-now__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.news-now-item {
    display: flex;
    gap: 0.72rem;
    align-items: stretch;
    min-width: 0;
    padding: 0.48rem;
    border: 1px solid rgb(217 230 240 / 0.92);
    border-radius: 0.85rem;
    background: rgb(255 255 255 / 0.88);
    box-shadow: 0 2px 10px rgb(0 48 99 / 0.04);
}

.news-now-item__thumb {
    width: 5.35rem;
    border-radius: 0.7rem;
    object-fit: cover;
    flex-shrink: 0;
}

.news-now-item__body {
    min-width: 0;
}

.news-now-item__meta {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.news-now-item__title {
    margin: 0.28rem 0 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.28;
    font-weight: 600;
    color: #003063;
}

.news-most-grid {
    display: grid;
    gap: 1.15rem;
}

@media (min-width: 900px) {
    .news-most-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.news-most-card {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: var(--surface-white);
    box-shadow:
        0 6px 24px rgb(0 48 99 / 0.07),
        0 1px 5px rgb(0 48 99 / 0.04);
}

.news-most-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-most-card__body {
    padding: 1rem 1rem 1.05rem;
}

.news-most-card__meta {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.news-most-card__excerpt {
    margin: 0.52rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* —— Fechamento editorial: Últimas no Instagram —— */
.news-ig-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .news-ig-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.news-ig-card {
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--surface-white);
    box-shadow:
        0 6px 22px rgb(0 48 99 / 0.06),
        0 1px 5px rgb(0 48 99 / 0.04);
}

.news-ig-card__img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.news-ig-card__body {
    padding: 0.92rem 1rem 1rem;
}

.news-ig-card__meta {
    margin: 0 0 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.news-ig-card__icon {
    color: var(--brand-accent);
    font-size: 0.74rem;
    line-height: 1;
}

/* Listagens: cards como links sem alterar o layout */
a.news-card-main {
    color: inherit;
    text-decoration: none;
}

a.news-card-main:hover .news-title {
    color: var(--brand-accent);
}

a.news-card-grid {
    color: inherit;
    text-decoration: none;
}

a.news-now-item {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.news-now-item:hover {
    border-color: rgb(0 177 235 / 0.45);
    box-shadow: 0 4px 14px rgb(0 48 99 / 0.08);
}

a.news-ig-card {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s ease;
}

a.news-ig-card:hover {
    border-color: rgb(0 177 235 / 0.4);
}

.sidebar-filter-card {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
}

/* Painel filtros: drawer em telas < lg */
@media (max-width: 1023px) {
    #sidebar.filters-panel.is-open {
        transform: translateX(0);
    }
}

/* Checkbox só visual */
.filter-row-static {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.35rem 0;
    line-height: 1.35;
}

.filter-checkbox {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 2px;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
    background: var(--surface-white);
    box-sizing: border-box;
}

.filter-checkbox--on {
    border-color: var(--brand-accent);
    background-color: var(--brand-accent);
    box-shadow: inset 0 0 0 2px var(--surface-white);
}

/* —— Paginação (protótipo editorial) —— */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.85rem;
    padding-top: 2.15rem;
    border-top: 1px solid rgb(217 230 240 / 0.85);
}

.news-pagination__shell {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.news-pagination__nums {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.news-pagination__num {
    display: inline-flex;
    min-width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border: 1px solid rgb(217 230 240 / 1);
    border-radius: 0.65rem;
    background: var(--surface-white);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #003063;
    cursor: default;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow:
        0 1px 4px rgb(0 48 99 / 0.04),
        inset 0 1px 0 rgb(255 255 255 / 0.92);
}

.news-pagination__num--current {
    border-color: #003063;
    background: #003063;
    color: var(--surface-white);
    box-shadow:
        0 5px 18px rgb(0 48 99 / 0.2),
        0 1px 5px rgb(0 48 99 / 0.12),
        inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.news-pagination__ellipsis {
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    color: rgb(95 115 138 / 0.72);
    cursor: default;
    user-select: none;
}

.news-pagination__arrow {
    display: inline-flex;
    height: 2.5rem;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.95rem;
    border: 1px solid rgb(217 230 240 / 1);
    border-radius: 999px;
    background: var(--surface-white);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #003063;
    cursor: default;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow:
        0 1px 4px rgb(0 48 99 / 0.04),
        inset 0 1px 0 rgb(255 255 255 / 0.94);
}

.news-pagination__arrow svg {
    flex-shrink: 0;
    opacity: 0.88;
}

.news-pagination__arrow-label {
    padding-top: 0.02rem;
}

@media (hover: hover) {
    .news-pagination__num:not(.news-pagination__num--current):hover {
        border-color: rgb(0 177 235 / 0.42);
        background: var(--brand-accent-soft);
        color: #003063;
        box-shadow:
            0 3px 14px rgb(0 177 235 / 0.1),
            inset 0 1px 0 rgb(255 255 255 / 0.96);
    }

    .news-pagination__arrow:hover {
        border-color: rgb(0 177 235 / 0.45);
        background: var(--brand-accent-soft);
        color: #003063;
        box-shadow: 0 3px 14px rgb(0 177 235 / 0.08);
    }

    .news-pagination__arrow:hover svg {
        color: var(--brand-accent);
        opacity: 1;
    }
}

@media (max-width: 520px) {
    .news-pagination__shell {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }

    .news-pagination__arrow-label {
        display: none;
    }

    .news-pagination__arrow {
        gap: 0;
        padding: 0 0.95rem;
        text-transform: none;
    }

    .news-pagination__nums {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ═══ Páginas internas: header mais compacto, alinhamento 1320px, breadcrumb leve ═══ */

.internal-page .top-band,
.top-band--internal {
    background: linear-gradient(167deg, #003063 0%, #00264c 62%, #001c38 100%);
}

.internal-page .top-band__inner,
.top-band--internal .top-band__inner {
    padding: 0.72rem 1rem 0.78rem;
}

@media (min-width: 1024px) {

    .internal-page .top-band__inner,
    .top-band--internal .top-band__inner {
        padding: 0.75rem 1.25rem 0.85rem;
    }
}

.internal-page .site-header,
.site-header--internal {
    max-width: var(--portal-header-container);
}

.internal-page .primary-nav-card,
.site-header--internal .primary-nav-card {
    border-radius: 1rem;
    padding: 0.42rem 0.62rem;
    box-shadow:
        0 8px 24px rgb(0 48 99 / 0.12),
        0 2px 6px rgb(0 48 99 / 0.05),
        inset 0 1px 0 rgb(255 255 255 / 0.95);
}

@media (min-width: 1024px) {

    .internal-page .primary-nav-card,
    .site-header--internal .primary-nav-card {
        border-radius: 1.05rem;
        padding: 0.46rem 0.82rem;
    }
}

.internal-page .brand-logo__img,
.site-header--internal .brand-logo__img {
    max-height: 2.35rem;
    width: auto;
}

.internal-page .site-header .nav-link,
.site-header--internal .nav-link {
    font-size: clamp(0.64rem, 0.72vw, 0.76rem);
    letter-spacing: 0.045em;
}

.internal-page .primary-nav__search-btn,
.site-header--internal .primary-nav__search-btn {
    min-height: 2.25rem;
    padding-inline: 0.85rem;
}

@media (min-width: 1024px) {

    .internal-page .primary-nav__search-btn,
    .site-header--internal .primary-nav__search-btn {
        min-height: 2.35rem;
    }
}

/* Redes menos carregadas no desktop até ~1400px; mobile já oculta em ≤900px */
@media (max-width: 1400px) and (min-width: 1024px) {

    .internal-page .primary-nav__socials,
    .site-header--internal .primary-nav__socials {
        display: none;
    }
}

@media (min-width: 1024px) {

    .internal-page .primary-nav,
    .site-header--internal .primary-nav {
        gap: clamp(0.55rem, 1.4vw, 1rem);
    }

    .internal-page .primary-nav__left,
    .internal-page .primary-nav__right,
    .site-header--internal .primary-nav__left,
    .site-header--internal .primary-nav__right {
        gap: clamp(0.45rem, 1vw, 0.75rem);
    }
}

.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid rgb(217 230 240 / 0.85);
}

.breadcrumb-bar__inner {
    box-sizing: border-box;
    max-width: var(--portal-container);
    margin-inline: auto;
    padding: 0.58rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .breadcrumb-bar__inner {
        padding-inline: 1.5rem;
    }
}

.breadcrumb-bar a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

@media (hover: hover) {
    .breadcrumb-bar a:hover {
        color: var(--brand-accent);
    }
}

.breadcrumb-bar span {
    vertical-align: middle;
}

.breadcrumb-bar__separator {
    margin-inline: 0.38rem;
    color: var(--border-soft);
}

.breadcrumb-bar__current {
    font-weight: 600;
    color: var(--brand-primary);
}

@media (max-width: 767px) {

    .internal-page .top-band__inner,
    .top-band--internal .top-band__inner {
        padding: 0.55rem 0.75rem 0.62rem;
    }

    .internal-page .primary-nav-card,
    .site-header--internal .primary-nav-card {
        border-radius: 0.9rem;
        padding: 0.42rem 0.58rem;
    }

    .internal-page .brand-logo__img,
    .site-header--internal .brand-logo__img {
        max-height: 2.15rem;
    }

    .breadcrumb-bar__inner {
        padding-block: 0.48rem;
    }
}

/* Ajuste UI: header interno mais encaixado nas páginas internas */
.internal-page .top-band__inner {
    padding-top: 0.68rem;
    padding-bottom: 0.72rem;
}

@media (min-width: 1024px) {
    .internal-page .top-band__inner {
        padding-top: 0.72rem;
        padding-bottom: 0.78rem;
    }
}

.internal-page .site-header {
    max-width: 1320px;
}

.internal-page .primary-nav-card {
    border-radius: 1rem;
    box-shadow:
        0 8px 24px rgb(0 48 99 / 0.12),
        0 2px 6px rgb(0 48 99 / 0.05),
        inset 0 1px 0 rgb(255 255 255 / 0.95);
}

@media (min-width: 1024px) {
    .internal-page .primary-nav-card {
        padding-top: 0.46rem;
        padding-bottom: 0.5rem;
    }
}

/* Breadcrumb interno de página */
.page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin: 0 0 0.95rem;
    font-size: 0.78rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s ease;
}

.page-breadcrumb a:hover {
    color: var(--brand-accent);
}

.page-breadcrumb span {
    color: var(--border-soft);
}

.page-breadcrumb span[aria-current="page"],
.page-breadcrumb #secretariaBreadcrumb {
    color: var(--brand-primary);
    font-weight: 700;
}

.page-breadcrumb--wide {
    margin-bottom: 1.35rem;
}

/* —— Paginação reutilizável (portal) —— */
.portal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    flex-wrap: wrap;
}

.portal-pagination__list {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-pagination__item,
.portal-pagination__control {
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid #d9e6f0;
    background: #ffffff;
    color: #003063;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.portal-pagination__item:hover,
.portal-pagination__control:hover {
    color: #00b1eb;
    border-color: rgb(0 177 235 / 0.45);
    background: #e8f8fd;
}

.portal-pagination__item--active {
    background: #003063;
    border-color: #003063;
    color: #ffffff;
}

.portal-pagination__item--active:hover {
    background: #003063;
    border-color: #003063;
    color: #ffffff;
}

.portal-pagination__control--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.portal-pagination__ellipsis {
    min-width: 2rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f738a;
    font-weight: 700;
}

.radio-archive__count {
    margin: 0.75rem 0 0;
    text-align: center;
    color: #5f738a;
    font-size: 0.88rem;
}

@media (max-width: 640px) {
    .portal-pagination {
        gap: 0.5rem;
    }

    .portal-pagination__control {
        width: 100%;
    }

    .portal-pagination__list {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   LIGHTBOX — Visualizador de imagem do evento
   ===================================================== */

/* Wrapper da imagem: necessário para posicionar o botão lupa */
.evento-img-wrap {
    position: relative;
    cursor: zoom-in;
}

/* Botão lupa no canto superior direito da imagem */
.evento-img-zoom-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    opacity: 0.82;
    z-index: 2;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.evento-img-zoom-btn:hover,
.evento-img-zoom-btn:focus-visible {
    background: rgba(0, 48, 99, 0.82);
    border-color: rgba(0, 177, 235, 0.6);
    opacity: 1;
    transform: scale(1.08);
    outline: none;
}

.evento-img-zoom-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 177, 235, 0.5);
}

/* Lightbox — overlay de fundo */
.evento-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-lightbox[hidden] {
    display: none;
}

.evento-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 10, 30, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

/* Caixa central com a imagem */
.evento-lightbox__box {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
    background: #0a0f1a;
    animation: lbFadeIn 0.22s ease;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Imagem dentro do lightbox — mostra inteira, sem cortar */
.evento-lightbox__img {
    display: block;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
}

/* Botão fechar (X) */
.evento-lightbox__close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.evento-lightbox__close:hover {
    background: rgba(220, 30, 30, 0.75);
    transform: scale(1.1);
}

.evento-lightbox__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 177, 235, 0.55);
}