/* ==========================================================================
   DIGITA GOV — Portal público da unidade (mobile first)
   Cores vindas da unidade: --p (principal) --s (secundária) --bg (fundo) --tx (texto)
   ========================================================================== */

:root {
  --p: #1D5FAE; --s: #0F2438; --bg: #F5F7FA; --tx: #16212E;
  --line: #DCE3EB; --muted: #5A6B7E; --card: #fff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --fs: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--fs-scale, 1)); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--tx); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--p); }
a:hover { color: var(--s); }
:focus-visible { outline: 3px solid #F5B82E; outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); color: var(--s); line-height: 1.2; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.pt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: .6rem 1rem; background: #fff; color: var(--s); font-weight: 700; border-radius: 6px; }
.pt-skip:focus { left: 8px; }

.pt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.1rem; }

/* Barra utilitária -------------------------------------------------------- */
.pt-util { background: var(--s); color: #D5E0EC; font-size: .8rem; }
.pt-util__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding-top: .4rem; padding-bottom: .4rem; }
.pt-util__date { display: none; }
.pt-util__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; margin-left: auto; }
.pt-util__tools button, .pt-util__tools a {
  border: 0; background: none; color: inherit; font: inherit; padding: .3rem .5rem; border-radius: 4px; cursor: pointer; text-decoration: none; min-height: 32px;
}
.pt-util__tools button:hover, .pt-util__tools a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.pt-util__tools button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .18); }
.pt-util__tools a { font-weight: 700; border-left: 1px solid rgba(255, 255, 255, .2); margin-left: .35rem; padding-left: .75rem; border-radius: 0; }

/* Masthead ---------------------------------------------------------------- */
.pt-mast { background: #fff; border-bottom: 1px solid var(--line); }
.pt-mast__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.pt-mast__id { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--s); min-width: 0; }
.pt-mast__seal { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.pt-mast__id > span { display: flex; flex-direction: column; min-width: 0; }
.pt-mast__title { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1.05; letter-spacing: -.01em; }
.pt-mast__unit { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pt-menu-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--s); font: 600 .9rem var(--sans); cursor: pointer;
}
.pt-menu-btn i { font-size: 1.3rem; }

.pt-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.pt-nav.is-open { display: block; }
.pt-nav ul { list-style: none; margin: 0; padding-top: .35rem; padding-bottom: .5rem; }
.pt-nav a { display: block; padding: .7rem .25rem; color: var(--s); text-decoration: none; font-weight: 600; border-bottom: 1px solid #EEF2F6; }
.pt-nav li:last-child a { border-bottom: 0; }
.pt-nav a[aria-current="page"] { color: var(--p); box-shadow: inset 3px 0 0 var(--p); padding-left: .75rem; }

/* Hero -------------------------------------------------------------------- */
.pt-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.pt-hero__in { display: grid; gap: 1.5rem; padding-top: 2rem; padding-bottom: 2.25rem; }
.pt-hero__title { font-size: clamp(1.9rem, 6.5vw, 3.1rem); font-weight: 700; margin: 0 0 .75rem; letter-spacing: -.015em; }
.pt-hero__lead { color: var(--muted); font-size: 1.02rem; max-width: 52ch; margin: 0 0 1.25rem; }

.pt-search { display: flex; gap: .4rem; padding: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 36, 56, .06); max-width: 620px; }
.pt-search:focus-within { border-color: var(--p); }
.pt-search input { flex: 1; min-width: 0; border: 0; background: none; font: 1rem var(--sans); color: var(--tx); padding: .6rem .7rem; }
.pt-search input:focus { outline: none; }
.pt-search button { display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: 9px; background: var(--p); color: #fff; font: 700 .95rem var(--sans); padding: 0 1rem; min-height: 44px; cursor: pointer; }
.pt-search button:hover { background: var(--s); }
.pt-search button span { display: none; }

.pt-edition {
  position: relative; overflow: hidden; align-self: start;
  background: var(--s); color: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: 0 18px 40px rgba(15, 36, 56, .18);
}
.pt-edition::after { content: ""; position: absolute; top: -70px; right: -70px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.pt-edition__label { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.pt-edition__num { margin: .35rem 0 .1rem; font-family: var(--serif); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.pt-edition__num small { font-size: .9rem; font-family: var(--sans); padding: .15rem .5rem; border-radius: 4px; background: #F5B82E; color: #3B2A00; vertical-align: middle; }
.pt-edition__empty { margin: .5rem 0 .25rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.pt-edition__date { margin: 0 0 1.1rem; color: rgba(255, 255, 255, .78); font-size: .92rem; }
.pt-edition .pt-btn { position: relative; z-index: 1; display: flex; justify-content: center; background: #fff; color: var(--s); }
.pt-edition .pt-btn:hover { background: #EAF1FA; }

/* Botões ------------------------------------------------------------------ */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: 0 1.1rem; border-radius: 9px; border: 1px solid transparent;
  background: var(--p); color: #fff; font: 700 .92rem var(--sans); text-decoration: none; cursor: pointer;
}
.pt-btn:hover { background: var(--s); color: #fff; }
.pt-btn--ghost { background: transparent; color: var(--p); border-color: var(--line); min-height: 40px; }
.pt-btn--ghost:hover { background: var(--p); color: #fff; border-color: var(--p); }

/* Seções ------------------------------------------------------------------ */
.pt-section { padding: 2.25rem 0; }
.pt-section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pt-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.pt-section__head h2 { margin: 0; font-size: 1.45rem; }
.pt-section__head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.pt-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.pt-editions { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pt-editions li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .6rem 1rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pt-editions__date { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: .35rem .5rem; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: .75rem; line-height: 1.2; }
.pt-editions__date strong { font-family: var(--serif); font-size: 1.6rem; color: var(--s); line-height: 1; }
.pt-editions__info { font-weight: 700; color: var(--s); }
.pt-editions__info small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.pt-editions .pt-btn { grid-column: 1 / -1; }

.pt-facts { display: grid; grid-template-columns: 1fr; gap: 0; }
.pt-facts > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pt-facts > div:last-child { border-bottom: 0; }
.pt-facts__v { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--s); line-height: 1.1; }
.pt-facts__l { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }

.pt-about h2 { font-size: 1.45rem; margin-top: 0; }
.pt-about__text { max-width: 72ch; font-size: 1.02rem; }

.pt-soon { text-align: center; padding-top: 3rem; padding-bottom: 3rem; max-width: 640px; }
.pt-soon h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 .75rem; }
.pt-soon p { color: var(--muted); margin: 0 0 1.5rem; }

/* Rodapé ------------------------------------------------------------------ */
.pt-foot { background: var(--s); color: #C9D6E4; font-size: .95rem; line-height: 1.6; margin-top: 2.5rem; }
.pt-foot__in { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2.75rem; }
.pt-foot__in > div { min-width: 0; }
.pt-foot p { margin: 0 0 .55rem; }
.pt-foot p i { margin-right: .35rem; opacity: .8; }
.pt-foot a { color: #fff; }
.pt-foot__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: .75rem !important; }
.pt-foot__text { margin-top: .75rem !important; opacity: .85; }
.pt-foot__h { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: .9rem !important; padding-bottom: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pt-social { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; }
.pt-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 1.1rem; text-decoration: none; }
.pt-social a:hover { background: #fff; color: var(--s); }
.pt-foot__base { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0 1.3rem; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.pt-foot__base .pt-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.pt-foot__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; line-height: 1.4; }
.pt-foot__sep { opacity: .6; }
.pt-foot__aside { display: flex; flex-direction: column; align-items: flex-start; }
.pt-radar { display: inline-block; margin-top: 1.25rem; border-radius: 7px; transition: transform .15s, box-shadow .15s; }
.pt-radar img { display: block; width: 130px; height: auto; border-radius: 7px; }
.pt-radar:hover, .pt-radar:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
@media (min-width: 992px) { .pt-foot__aside { align-items: flex-end; text-align: right; } .pt-foot__aside .pt-foot__h { align-self: stretch; } .pt-foot__aside .pt-social { justify-content: flex-end; } }
.pt-foot__base a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.pt-foot__base a:hover { color: #fff; text-decoration: underline; }

/* Tablet ------------------------------------------------------------------ */
@media (min-width: 640px) {
  .pt-util__date { display: inline; }
  .pt-search button span { display: inline; }
  .pt-editions li { grid-template-columns: auto 1fr auto; }
  .pt-editions .pt-btn { grid-column: auto; }
  .pt-facts { grid-template-columns: repeat(3, 1fr); }
  .pt-facts > div { border-bottom: 0; border-right: 1px solid var(--line); padding: .5rem 1.5rem; }
  .pt-facts > div:first-child { padding-left: 0; }
  .pt-facts > div:last-child { border-right: 0; }
  .pt-foot__in { grid-template-columns: 1.4fr 1fr; }
}

/* Desktop ----------------------------------------------------------------- */
@media (min-width: 992px) {
  .pt-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .pt-mast__in { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .pt-mast__seal { width: 72px; height: 72px; }
  .pt-mast__title { font-size: 2.3rem; }
  .pt-mast__unit { font-size: 1rem; }
  .pt-menu-btn { display: none; }
  .pt-nav { display: block; }
  .pt-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25rem; padding-top: 0; padding-bottom: 0; }
  .pt-nav a { white-space: nowrap; }
  .pt-nav a { padding: .8rem .8rem; border-bottom: 3px solid transparent; font-size: .92rem; }
  .pt-nav a:hover { color: var(--p); }
  .pt-nav a[aria-current="page"] { box-shadow: none; padding-left: .8rem; border-bottom-color: var(--p); }
  .pt-hero__in { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .pt-section { padding: 3rem 0; }
  .pt-section--tight { padding-top: 2rem; }
  .pt-foot__in { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-top: 3.5rem; padding-bottom: 3rem; }
}

/* Alto contraste --------------------------------------------------------- */
html.pt-contrast body, html.pt-contrast .pt-mast, html.pt-contrast .pt-nav, html.pt-contrast .pt-hero,
html.pt-contrast .pt-section--alt, html.pt-contrast .pt-editions li, html.pt-contrast .pt-search,
html.pt-contrast .pt-empty, html.pt-contrast .pt-editions__date, html.pt-contrast .pt-menu-btn {
  background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
html.pt-contrast h1, html.pt-contrast h2, html.pt-contrast h3, html.pt-contrast .pt-mast__id, html.pt-contrast .pt-mast__unit,
html.pt-contrast .pt-nav a, html.pt-contrast .pt-editions__info, html.pt-contrast .pt-editions__date strong,
html.pt-contrast .pt-facts__v, html.pt-contrast .pt-facts__l, html.pt-contrast .pt-hero__lead, html.pt-contrast .pt-editions__info small,
html.pt-contrast .pt-search input, html.pt-contrast .pt-menu-btn { color: #fff !important; }
html.pt-contrast a, html.pt-contrast .pt-section__head a { color: #FFE500 !important; }
html.pt-contrast .pt-btn, html.pt-contrast .pt-search button { background: #FFE500 !important; color: #000 !important; border-color: #FFE500 !important; }
html.pt-contrast .pt-edition, html.pt-contrast .pt-util, html.pt-contrast .pt-foot { background: #000 !important; border: 1px solid #fff; }
html.pt-contrast .pt-mast__seal { background: #fff; border-radius: 6px; }


/* ==========================================================================
   FASE 3 — Diário Oficial: pesquisa, edições e documentos
   ========================================================================== */

.pt-pagehead { background: #fff; border-bottom: 1px solid var(--line); padding: 1.25rem 0 1.5rem; }
.pt-pagehead h1 { margin: .15rem 0 .4rem; font-size: clamp(1.7rem, 5.5vw, 2.6rem); letter-spacing: -.015em; }
.pt-pagehead__lead { margin: 0; color: var(--muted); max-width: 70ch; }
.pt-pagehead__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.pt-kicker { margin: .75rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--p); }
.pt-crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .82rem; color: var(--muted); }
.pt-crumbs a { color: var(--muted); }
.pt-crumbs a:hover { color: var(--p); }
.pt-doc-title { font-size: clamp(1.35rem, 4.5vw, 2.1rem) !important; max-width: 60ch; }
.pt-section--tight { padding-top: 1.5rem; }

/* Filtro */
.pt-input { width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--tx); font: 1rem var(--sans); }
.pt-input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 20%, transparent); }
.pt-filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin-bottom: 1.25rem; }
.pt-filter__main { display: flex; gap: .5rem; }
.pt-filter__main .pt-input { flex: 1; min-width: 0; }
.pt-filter__more { margin-top: .6rem; }
.pt-filter__more > summary { cursor: pointer; width: max-content; padding: .25rem 0; font-weight: 600; font-size: .9rem; color: var(--p); }
.pt-filter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.pt-filter__grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.pt-filter__actions { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.pt-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: .75rem; }
.pt-results-head p { margin: 0; }
.pt-export { font-size: .85rem; color: var(--muted); }

/* Lista de edições */
.pt-edlist, .pt-acts, .pt-toc, .pt-top, .pt-recent { list-style: none; margin: 0; padding: 0; }
.pt-edlist { display: grid; gap: .75rem; }
.pt-edcard { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pt-edcard__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; padding: .5rem 0; border-radius: 10px; background: var(--s); color: #fff; text-decoration: none; line-height: 1.1; }
.pt-edcard__date strong { font-family: var(--serif); font-size: 1.8rem; }
.pt-edcard__date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.pt-edcard__title { margin: 0; font-size: 1.2rem; }
.pt-edcard__title a { color: var(--s); text-decoration: none; }
.pt-edcard__title a:hover { color: var(--p); text-decoration: underline; }
.pt-edcard__sub { margin: .15rem 0 .5rem; color: var(--muted); font-size: .88rem; }
.pt-edcard__toc { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.pt-edcard__toc li { margin-bottom: .2rem; }
.pt-edcard__more { list-style: none; margin-left: -1.1rem; color: var(--muted); font-size: .84rem; }
.pt-edcard__go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; }
.mt-edition { margin-top: .9rem; }
.pt-tag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--p) 12%, #fff); color: var(--p); font: 600 .75rem var(--sans); text-decoration: none; vertical-align: middle; }
.pt-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }

/* Resultado de atos */
.pt-acts { display: grid; gap: .75rem; }
.pt-act { padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-left: 4px solid var(--p); }
.pt-act__meta { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-act__title { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.pt-act__title a { color: var(--s); }
.pt-act__desc { margin: .4rem 0 0; font-size: .92rem; }
.pt-act__foot { margin: .5rem 0 0; font-size: .84rem; color: var(--muted); }

.pt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 1.5rem 0 0; }
.pt-pager a, .pt-pager span { min-width: 42px; min-height: 42px; padding: 0 .75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--s); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pt-pager a:hover { border-color: var(--p); color: var(--p); }
.pt-pager .is-current { background: var(--p); border-color: var(--p); color: #fff; }
.pt-pager [aria-disabled="true"] { color: #A9B6C4; }

.pt-top { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.pt-top a { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--tx); }
.pt-top a:hover { border-color: var(--p); }
.pt-top i { grid-row: span 2; font-size: 1.6rem; color: var(--p); }
.pt-top strong { font-family: var(--serif); color: var(--s); }
.pt-top span { font-size: .84rem; color: var(--muted); }

.pt-recent { display: grid; gap: 0; }
.pt-recent a { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.pt-recent li:last-child a { border-bottom: 0; }
.pt-recent__title { color: var(--s); font-weight: 600; }
.pt-recent a:hover .pt-recent__title { color: var(--p); text-decoration: underline; }

/* Página da edição */
.pt-edition-page, .pt-doc { display: grid; gap: 1.5rem; }
.pt-toc__group { font-size: .78rem !important; font-family: var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; margin: 1.5rem 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.pt-toc__group:first-child { margin-top: 0; }
.pt-toc__item { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pt-toc__n { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: color-mix(in srgb, var(--p) 55%, #fff); min-width: 2ch; }
.pt-toc__title { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.pt-toc__title a { color: var(--s); }
.pt-toc__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: .5rem 0 0; font-size: .88rem; font-weight: 600; }

.pt-aside { display: grid; gap: 1rem; align-content: start; }
.pt-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.pt-box--seal { border-top: 4px solid var(--p); }
.pt-box__label { margin: 0 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pt-box__note { margin: .75rem 0 0; font-size: .8rem; color: var(--muted); }
.pt-dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .92rem; }
.pt-dl dt { color: var(--muted); }
.pt-dl dd { margin: 0; font-weight: 600; }
.pt-dl--stack { grid-template-columns: 1fr; gap: .15rem; }
.pt-dl--stack dd { margin-bottom: .5rem; }
.pt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
.pt-hash { word-break: break-all; font-weight: 400 !important; font-size: .76rem; }
.pt-edition-nav { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; font-size: .9rem; }

.pt-doc__summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; font-size: 1.02rem; }
.pt-doc__summary p { margin: 0; }
.pt-pdf { display: block; width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: #525659; }
.pt-pdf__fallback { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }

@media (min-width: 640px) {
  .pt-filter__grid { grid-template-columns: repeat(4, 1fr); }
  .pt-edcard { grid-template-columns: auto 1fr auto; align-items: start; }
  .pt-edcard__go { grid-column: auto; }
  .pt-top { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .pt-pagehead { padding: 1.75rem 0 2rem; }
  .pt-edition-page, .pt-doc { grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; }
  .pt-aside { position: sticky; top: 1rem; }
  .pt-top { grid-template-columns: repeat(4, 1fr); }
}

html.pt-contrast .pt-pagehead, html.pt-contrast .pt-filter, html.pt-contrast .pt-edcard, html.pt-contrast .pt-act,
html.pt-contrast .pt-box, html.pt-contrast .pt-top a, html.pt-contrast .pt-input, html.pt-contrast .pt-pager a,
html.pt-contrast .pt-pager span, html.pt-contrast .pt-doc__summary {
  background: #000 !important; color: #fff !important; border-color: #fff !important;
}
html.pt-contrast .pt-act__meta, html.pt-contrast .pt-edcard__sub, html.pt-contrast .pt-crumbs, html.pt-contrast .pt-kicker,
html.pt-contrast .pt-box__label, html.pt-contrast .pt-dl dt, html.pt-contrast .pt-toc__n, html.pt-contrast .pt-pagehead__lead,
html.pt-contrast .pt-edcard__title a, html.pt-contrast .pt-toc__title a, html.pt-contrast .pt-act__title a { color: #fff !important; }
html.pt-contrast .pt-edcard__date, html.pt-contrast .pt-pager .is-current, html.pt-contrast .pt-tag { background: #FFE500 !important; color: #000 !important; }

.pt-box__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; }
.pt-box__actions .pt-btn { min-height: 38px; font-size: .85rem; }


/* ==========================================================================
   FASE 5 — Banners, publicações e transparência
   ========================================================================== */
.pt-slider { position: relative; background: var(--s); overflow: hidden; }
.pt-slider__track { position: relative; aspect-ratio: 16 / 5; max-height: 520px; width: 100%; }
.pt-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.pt-slide.is-active { opacity: 1; visibility: visible; }
.pt-slide a { display: block; height: 100%; color: #fff; }
.pt-slide picture, .pt-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-slide__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1.1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: .95rem; }
.pt-slide__cap strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.pt-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--s); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.pt-slider__btn--prev { left: .75rem; } .pt-slider__btn--next { right: .75rem; }
.pt-slider__btn:hover { background: #fff; }
.pt-slider__dots { position: absolute; right: 1rem; bottom: .75rem; display: flex; gap: .35rem; align-items: center; }
.pt-slider__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.pt-slider__dots button[aria-current="true"] { background: #fff; }
.pt-slider__dots .pt-slider__pause { width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; border: 0; }
@media (max-width: 640px) {
  .pt-slider__track { aspect-ratio: 1 / 1; max-height: 70vh; }
  .pt-slider__btn { display: none; }
}

.pt-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pt-news__item { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pt-news__img { display: block; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--p) 10%, #fff); }
.pt-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-news__img span { display: grid; place-items: center; height: 100%; font-size: 2.2rem; color: var(--p); }
.pt-news__body { padding: 1rem 1.1rem 1.2rem; }
.pt-news__title { margin: .1rem 0 .4rem; font-size: 1.15rem; line-height: 1.3; }
.pt-news__title a { color: var(--s); }
.pt-news__sum { margin: 0; color: var(--muted); font-size: .92rem; }

.pt-article { max-width: 780px; }
.pt-article__img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.pt-article__body { font-size: 1.06rem; line-height: 1.7; }
.pt-article__body p { margin: 0 0 1.1rem; }
.pt-article__src { color: var(--muted); font-size: .9rem; }
.pt-files { list-style: none; margin: 0; padding: 0; }
.pt-files li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.pt-files li:last-child { border-bottom: 0; }
.pt-files i { color: var(--p); font-size: 1.2rem; }
.pt-files span { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.pt-more { margin-top: 2rem; }
.pt-more h2 { font-size: 1.2rem; }

.pt-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .75rem; }
.pt-cats a { display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--tx); min-height: 76px; }
.pt-cats a:hover { border-color: var(--p); box-shadow: 0 6px 18px rgba(15, 36, 56, .06); }
.pt-cats i { grid-row: span 2; font-size: 1.6rem; color: var(--p); }
.pt-cats strong { color: var(--s); line-height: 1.25; }
.pt-cats span { font-size: .82rem; color: var(--muted); }
.pt-cats a.is-empty { opacity: .7; }
.pt-tags--head { margin-top: .75rem; }

.pt-input--auto { width: auto; flex: 0 0 auto; }
.pt-tfiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pt-tfiles li { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pt-tfiles li > i { font-size: 1.5rem; color: var(--p); }
.pt-tfiles__title { font-weight: 700; color: var(--s); }
.pt-tfiles__meta { margin: .2rem 0 0; font-size: .84rem; color: var(--muted); }

@media (min-width: 640px) {
  .pt-news__item { grid-template-columns: 240px 1fr; }
  .pt-news--grid .pt-news__item { grid-template-columns: 1fr; }
  .pt-news--grid { grid-template-columns: repeat(2, 1fr); }
  .pt-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .pt-news--grid { grid-template-columns: repeat(3, 1fr); }
  .pt-cats { grid-template-columns: repeat(3, 1fr); }
}
html.pt-contrast .pt-news__item, html.pt-contrast .pt-cats a, html.pt-contrast .pt-tfiles li { background: #000 !important; border-color: #fff !important; color: #fff !important; }
html.pt-contrast .pt-news__title a, html.pt-contrast .pt-cats strong, html.pt-contrast .pt-tfiles__title { color: #FFE500 !important; }


/* ==========================================================================
   Módulos: institucional, licitações, contratos, legislação, contato
   ========================================================================== */
.mb-0 { margin-bottom: 0 !important; }
.dg-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font: 700 .72rem var(--sans); letter-spacing: .02em; text-transform: none; background: #E6E8EB; color: #2C3440; vertical-align: middle; }
.dg-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dg-badge--ok { background: #E4F4EC; color: #1E7F4F; } .dg-badge--warn { background: #FFF3D6; color: #9A6400; }
.dg-badge--danger { background: #FDECEA; color: #B42318; } .dg-badge--info { background: #E6EFFA; color: #1D5FAE; }
.dg-badge--muted { background: #E9EEF3; color: #5A6B7E; } .dg-badge--dark { background: #2C3440; color: #fff; }
.pt-cats--pages a { min-height: 92px; }

/* Carta de serviços */
.pt-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.pt-chip { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--tx); font-size: .85rem; text-decoration: none; }
.pt-chip:hover { border-color: var(--p); color: var(--p); }
.pt-chip.is-active { background: var(--p); border-color: var(--p); color: #fff; }
.pt-cats--services { margin-bottom: 1.5rem; }
.pt-cats--services a { min-height: 84px; }
.pt-service__block { padding-bottom: .5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.pt-service__block:last-of-type { border-bottom: 0; }
.pt-service__block h2 { font-size: 1.1rem; color: var(--s); margin: 0 0 .6rem; }
.pt-article__body ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.pt-article__body li { margin-bottom: .3rem; }
.pt-article--intro { margin-bottom: 1.5rem; }
.pt-box--contact { margin-top: 1.5rem; max-width: 640px; }
.pt-sidenav { list-style: none; margin: 0; padding: 0; }
.pt-sidenav a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.pt-sidenav li:last-child a { border-bottom: 0; }
.pt-sidenav a[aria-current="page"] { font-weight: 700; color: var(--s); }

.pt-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; }
.pt-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--s); }
.pt-form__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pt-form textarea.pt-input { min-height: 150px; resize: vertical; }
.pt-form .pt-btn { justify-self: start; }
.pt-check { flex-direction: row !important; align-items: flex-start; gap: .5rem !important; font-weight: 400 !important; color: var(--tx) !important; }
.pt-check input { margin-top: .25rem; width: 18px; height: 18px; }
.pt-req { color: #B42318; margin-left: 2px; }
.pt-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pt-input.is-invalid { border-color: #B42318; }
.invalid-feedback { color: #B42318; font-size: .82rem; font-weight: 400; }
.pt-alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.pt-alert--ok { background: #E4F4EC; color: #145A38; border: 1px solid #A9DCC0; }
.pt-alert--error { background: #FDECEA; color: #8A1C12; border: 1px solid #F3B8B1; }
.dg-badge--primary { background: #E3E9FB; color: #2B3FA6; }
@media (min-width: 640px) { .pt-form__grid { grid-template-columns: 1fr 1fr; } }
html.pt-contrast .pt-form, html.pt-contrast .pt-box { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.pt-contrast .pt-form label { color: #fff !important; }

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

@media print {
  .pt-util, .pt-nav, .pt-menu-btn, .pt-search, .pt-foot__base, .pt-filter, .pt-pager, .pt-pdf, .pt-pagehead__actions { display: none !important; }
  body { background: #fff; }
}

/* ------------------------------------------------------------------ Ouvidoria */
.ouv-subnav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.ouv-subnav a, .ouv-subnav button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--s); font: 600 .85rem var(--sans); text-decoration: none; cursor: pointer; }
.ouv-subnav a:hover, .ouv-subnav button:hover { border-color: var(--p); color: var(--p); }
.ouv-subnav form { margin: 0; }
.ouv-flash { padding-top: 1rem; }
.ouv-narrow { max-width: 860px; }
.ouv-narrow--sm { max-width: 520px; }
.ouv-h2 { font-size: 1.35rem; color: var(--s); margin: 2rem 0 1rem; }
.ouv-cta { display: grid; gap: .75rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ouv-cta__main { justify-content: center; }
.ouv-cta__track { display: flex; gap: .5rem; }
.ouv-cta__track .pt-input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ouv-types { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
.ouv-type { --c: var(--p); display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.15rem 1rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); text-decoration: none; color: var(--tx); transition: transform .15s, box-shadow .15s; }
.ouv-type:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 36, 56, .08); }
.ouv-type strong { color: var(--c); font-size: 1.1rem; }
.ouv-type span { font-size: .88rem; color: var(--muted); flex: 1; }
.ouv-type em { font-style: normal; font-weight: 700; font-size: .84rem; color: var(--c); }
.ouv-type--denuncia { --c: #C0262D; } .ouv-type--reclamacao { --c: #C2560C; } .ouv-type--sugestao { --c: #1F5FBF; }
.ouv-type--elogio { --c: #0F7B57; } .ouv-type--solicitacao { --c: #0B7F7A; }
.ouv-tipo { background: #EEF1F5; color: #2C3440; }
.ouv-tipo--denuncia { background: #FDECEC; color: #A61E25; } .ouv-tipo--reclamacao { background: #FFF1E6; color: #A84A0A; }
.ouv-tipo--sugestao { background: #E8F0FC; color: #1B4F9E; } .ouv-tipo--elogio { background: #E3F5EE; color: #0D6B4B; }
.ouv-tipo--solicitacao { background: #E1F4F3; color: #0A6B67; }
.ouv-rights { margin-top: 2.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--s); color: #fff; display: grid; gap: 1.25rem; }
.ouv-rights__intro i { font-size: 1.8rem; opacity: .85; }
.ouv-rights__intro h2 { font-size: 1.3rem; margin: .4rem 0; color: #fff; }
.ouv-rights__intro p { margin: 0; opacity: .85; }
.ouv-rights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ouv-rights li { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; }
.ouv-rights li i { grid-row: span 2; font-size: 1.3rem; opacity: .9; }
.ouv-rights li span { font-size: .88rem; opacity: .85; }
.ouv-form { gap: 1.4rem; }
.ouv-step { border: 0; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ouv-step legend { font: 700 1.05rem var(--sans); color: var(--s); margin-bottom: .6rem; padding: 0; }
.ouv-pick { display: grid; gap: .5rem; grid-template-columns: 1fr; }
.ouv-pick__item, .ouv-ident__item { position: relative; flex-direction: row !important; font-weight: 400 !important; }
.ouv-pick__item input, .ouv-ident__item input { position: absolute; opacity: 0; pointer-events: none; }
.ouv-pick__item > span, .ouv-ident__item > span { display: flex; flex-direction: column; gap: .15rem; width: 100%; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.ouv-pick__item strong { color: var(--c, var(--s)); }
.ouv-pick__item small, .ouv-ident__item small { color: var(--muted); font-size: .8rem; }
.ouv-pick__item input:checked + span { border-color: var(--c, var(--p)); background: color-mix(in srgb, var(--c, var(--p)) 7%, #fff); }
.ouv-pick__item input:focus-visible + span, .ouv-ident__item input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--p) 35%, transparent); outline-offset: 2px; }
.ouv-ident { display: grid; gap: .5rem; grid-template-columns: 1fr; }
.ouv-ident__item i { font-size: 1.25rem; color: var(--p); }
.ouv-ident__item strong { color: var(--s); }
.ouv-ident__item input:checked + span { border-color: var(--s); background: #F4F7FA; }
.ouv-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.ouv-opt { font-weight: 400; color: var(--muted); }
.ouv-done { text-align: center; padding: 2rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ouv-done__icon { font-size: 3rem; color: #1E7F4F; }
.ouv-done__keys { display: grid; gap: .75rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
.ouv-done__keys div { padding: .9rem; border-radius: 10px; background: #F4F7FA; }
.ouv-done__keys dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ouv-done__keys dd { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 700; color: var(--s); }
.ouv-done__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.ouv-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.ouv-meta { margin: .5rem 0 0; font-size: .84rem; color: var(--muted); }
.ouv-answer { border-left: 4px solid #1E7F4F; }
.ouv-timeline { list-style: none; margin: 0 0 1.5rem; padding: 0 0 0 1.25rem; border-left: 2px solid var(--line); }
.ouv-timeline li { position: relative; padding: 0 0 1.1rem .5rem; }
.ouv-timeline__dot { position: absolute; left: -1.72rem; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 3px #fff; }
.ouv-timeline__meta { margin: 0 0 .3rem; font-size: .8rem; color: var(--muted); }
.ouv-timeline__msg p { margin: 0 0 .5rem; }
.ouv-file { margin: .2rem 0; font-size: .88rem; }
.ouv-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .88rem; }
.ouv-stars { font-size: 1.6rem; color: #D99A00; letter-spacing: .1em; margin: 0; }
.ouv-rate fieldset { border: 0; margin: 0; padding: 0; }
.ouv-rate legend { font-weight: 600; margin-bottom: .4rem; }
.ouv-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.ouv-rate__stars input { position: absolute; opacity: 0; }
.ouv-rate__stars label { font-size: 2rem; color: #C9D2DC; cursor: pointer; line-height: 1; }
.ouv-rate__stars input:checked ~ label, .ouv-rate__stars label:hover, .ouv-rate__stars label:hover ~ label { color: #D99A00; }
.ouv-rate__stars input:focus-visible + label { outline: 2px solid var(--p); border-radius: 4px; }
.ouv-rate__comment { display: flex; flex-direction: column; gap: .35rem; margin: .75rem 0; font-weight: 600; }
@media (min-width: 640px) {
  .ouv-cta { grid-template-columns: auto 1fr; align-items: center; }
  .ouv-types { grid-template-columns: repeat(2, 1fr); }
  .ouv-pick { grid-template-columns: repeat(2, 1fr); }
  .ouv-ident { grid-template-columns: 1fr 1fr; }
  .ouv-done__keys { grid-template-columns: repeat(3, 1fr); }
  .ouv-rights ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .ouv-types { grid-template-columns: repeat(5, 1fr); }
  .ouv-rights { grid-template-columns: 1fr 2fr; padding: 2rem; }
  /* Menu numa única linha, centralizado na largura total; se não couber, rola na horizontal (nunca quebra) */
  .pt-nav ul.pt-wrap { max-width: none; flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; scrollbar-width: thin; }
  .pt-nav a, .pt-nav a[aria-current="page"] { padding-left: .6rem; padding-right: .6rem; }
}
@media (min-width: 992px) and (max-width: 1365px) {
  .pt-nav a, .pt-nav a[aria-current="page"] { font-size: .84rem; padding-left: .42rem; padding-right: .42rem; }
}
@media (min-width: 992px) and (max-width: 1099px) {
  .pt-nav a, .pt-nav a[aria-current="page"] { font-size: .8rem; padding-left: .32rem; padding-right: .32rem; }
}
@media print {
  .ouv-subnav, .ouv-done__actions { display: none !important; }
}

/* Rótulos de formulário: asterisco e "(opcional)" na mesma linha do texto */
.pt-form label:not(.pt-check):not(.ouv-pick__item):not(.ouv-ident__item), .ouv-rate__comment { display: block; }
.pt-form label:not(.pt-check) > .pt-input, .ouv-rate__comment > .pt-input { display: block; margin-top: .35rem; }
.pt-form label .ouv-opt { font-size: .8rem; }
.ouv-forgot { margin: -.4rem 0 0; font-size: .85rem; text-align: right; }
.cid-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cid-list li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.cid-list li:last-child { border-bottom: 0; }
.cid-list a { color: var(--s); font-weight: 600; text-decoration: none; }
.cid-list a:hover { color: var(--p); }
.mt-3 { margin-top: 1rem; } .mb-0 { margin-bottom: 0; }

/* -------------------------------------------------------------------- E-Sic */
.esic-hero { background: var(--s); color: #fff; }
.esic-hero__in { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.esic-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: .5rem 0 1rem; color: #fff; max-width: 18ch; }
.esic-hero__kicker { margin: 1rem 0 0; font: 700 .75rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #F2B84B; }
.esic-hero__lead { max-width: 52ch; opacity: .85; font-size: 1.02rem; line-height: 1.6; margin: 0; }
.esic-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.pt-crumbs--light, .pt-crumbs--light a { color: rgba(255, 255, 255, .75); }
.esic-btn-accent { background: #F2B84B; border-color: #F2B84B; color: #1B2733; }
.esic-btn-accent:hover { background: #fff; border-color: #fff; color: #1B2733; }
.esic-btn-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.esic-btn-light:hover { background: #fff; color: var(--s); border-color: #fff; }
.esic-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; align-content: end; }
.esic-facts li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; }
.esic-facts i { color: #F2B84B; font-size: 1.15rem; }
.esic-facts strong { display: block; }
.esic-facts span { font-size: .88rem; opacity: .8; }
.esic-steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.esic-steps > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.esic-steps span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--p); color: #fff; font-weight: 700; margin-bottom: .5rem; }
.esic-steps strong { display: block; color: var(--s); margin-bottom: .25rem; }
.esic-steps p { margin: 0 0 .35rem; font-size: .9rem; color: var(--muted); }
.esic-bodies { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; grid-template-columns: 1fr; }
.esic-bodies li { display: flex; gap: .75rem; align-items: baseline; padding: .7rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.esic-bodies strong { color: var(--p); min-width: 4.5rem; }
.esic-bodies span { font-size: .9rem; }
.esic-info { background: #E6EFFA; color: #1D4170; border: 1px solid #BFD4F0; }
.esic-decision { margin-top: .5rem; padding: .75rem .9rem; background: #F4F7FA; border-radius: 8px; font-size: .92rem; }
.esic-cpf { display: block; margin: .75rem 0 0; font-weight: 600; font-size: .88rem; color: var(--s); }
.esic-cpf > .pt-input { display: block; margin-top: .35rem; }
.esic-light { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 4px; font: 700 .72rem var(--sans); white-space: nowrap; vertical-align: middle; }
.esic-light::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.esic-light--verde { background: #0F7B57; color: #fff; } .esic-light--amarelo { background: #F2B84B; color: #1B2733; }
.esic-light--vermelho { background: #C0262D; color: #fff; } .esic-light--vencido { background: #7A1218; color: #fff; }
.esic-light--encerrada { background: #E2E8F0; color: #475569; }
.esic-year { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-weight: 600; }
.esic-kpis { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.esic-kpis li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.esic-kpis strong { display: block; font-size: 1.8rem; color: var(--s); line-height: 1.1; }
.esic-kpis span { font-size: .84rem; color: var(--muted); }
.esic-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.esic-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.esic-table th, .esic-table td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: right; }
.esic-table th:first-child, .esic-table td:first-child { text-align: left; }
.esic-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.esic-scroll { overflow-x: auto; }
@media (min-width: 640px) {
  .esic-steps { grid-template-columns: repeat(3, 1fr); }
  .esic-bodies { grid-template-columns: 1fr 1fr; }
  .esic-kpis { grid-template-columns: repeat(4, 1fr); }
  .esic-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .esic-hero__in { grid-template-columns: 1.3fr 1fr; padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
html.pt-contrast .esic-hero { background: #000 !important; }

[hidden], .pt-form [hidden] { display: none !important; }
.pt-foot__dg { display: inline-flex; align-items: center; gap: .4rem; line-height: 1; }
.pt-foot__dg img { display: block; width: 18px; height: 18px; padding: 2px; border-radius: 4px; background: #fff; }
.pt-radar:first-child { margin-top: 0; }

/* Notícias: carrossel da página inicial, lista, página da notícia e galeria ---------- */
.pt-newsband { background: #fff; border-bottom: 1px solid var(--line); }
.pt-newsband .pt-section__head { align-items: center; }
.pt-carousel__nav { display: flex; align-items: center; gap: .4rem; }
.pt-carousel__nav a { margin-right: .5rem; font-size: .92rem; }
.pt-carousel__btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--s); font-size: 1rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.pt-carousel__btn:hover:not(:disabled) { background: var(--p); border-color: var(--p); color: #fff; }
.pt-carousel__btn:disabled { opacity: .35; cursor: default; }
.pt-carousel {
  list-style: none; margin: 0; padding: .25rem .1rem 1rem; display: grid; grid-auto-flow: column;
  grid-auto-columns: 82%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
.pt-carousel > li { scroll-snap-align: start; }
.pt-carousel:focus-visible { outline-offset: 4px; }

.pt-ncard { min-width: 0; }
.pt-ncard__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--tx);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pt-ncard__link:hover { color: var(--tx); border-color: color-mix(in srgb, var(--p) 40%, var(--line)); box-shadow: 0 10px 28px rgba(15, 36, 56, .12); transform: translateY(-2px); }
.pt-ncard__img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--p) 10%, #eef2f6); color: var(--p); font-size: 2rem; overflow: hidden; }
.pt-ncard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pt-ncard__link:hover .pt-ncard__img img { transform: scale(1.04); }
.pt-ncard__body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1.1rem; }
.pt-ncard__date { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.pt-ncard__title { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--s);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-ncard__link:hover .pt-ncard__title { color: var(--p); }
.pt-ncard__sum { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.pt-ngrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }

.pt-newsdoc__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: .6rem 0 0; color: var(--muted); font-size: .92rem; }
.pt-newsdoc__meta i { margin-right: .35rem; color: var(--p); }
.pt-newsdoc__cover { margin: 0 0 1.5rem; }
.pt-newsdoc__cover figcaption, .pt-lightbox__fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .45rem; }
.pt-newsdoc__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e9eef3; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.pt-newsdoc__zoom img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.pt-newsdoc__zoomicon { position: absolute; right: .75rem; bottom: .75rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 36, 56, .7); color: #fff; opacity: .85; }
.pt-gallery { margin-top: 2rem; }
.pt-gallery h2 { font-size: 1.2rem; }
.pt-gallery h2 small { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .4rem; }
.pt-gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.pt-gallery__grid button { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #e9eef3; aspect-ratio: 16 / 10; }
.pt-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.pt-gallery__grid button:hover img { transform: scale(1.05); opacity: .92; }

/* Visualizador em tela cheia */
.pt-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(6, 12, 20, .97); padding: 3.5rem .5rem 3rem; }
.pt-lightbox[hidden] { display: none !important; }
.pt-lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.pt-lightbox__fig img { max-width: min(calc(100vw - 1rem), 1600px); max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.pt-lightbox__fig figcaption { color: #cfd8e2; text-align: center; max-width: 900px; }
.pt-lightbox__count { position: absolute; top: 1rem; left: 1rem; margin: 0; color: #cfd8e2; font-size: .9rem; }
.pt-lightbox__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; cursor: pointer; }
.pt-lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.pt-lightbox__close { top: .7rem; right: .7rem; }
.pt-lightbox__prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.pt-lightbox__next { right: .5rem; top: 50%; transform: translateY(-50%); }
body.pt-noscroll { overflow: hidden; }

html.pt-contrast .pt-newsband, html.pt-contrast .pt-ncard__link, html.pt-contrast .pt-carousel__btn { background: #000 !important; border-color: #fff !important; }
html.pt-contrast .pt-ncard__title, html.pt-contrast .pt-carousel__btn { color: #FFE500 !important; }
html.pt-contrast .pt-ncard__date, html.pt-contrast .pt-ncard__sum { color: #fff !important; }

@media (min-width: 576px) {
  .pt-carousel { grid-auto-columns: calc((100% - 1rem) / 2); }
  .pt-ngrid { grid-template-columns: repeat(2, 1fr); }
  .pt-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .pt-carousel { grid-auto-columns: calc((100% - 2rem) / 3); }
  .pt-ngrid { grid-template-columns: repeat(3, 1fr); }
  .pt-lightbox__fig img { max-width: min(calc(100vw - 9rem), 1600px); }
  .pt-lightbox__prev { left: 1.2rem; }
  .pt-lightbox__next { right: 1.2rem; }
}
@media (min-width: 1200px) {
  .pt-carousel { grid-auto-columns: calc((100% - 3rem) / 4); }
  .pt-ngrid:not(.pt-ngrid--3) { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-carousel { scroll-behavior: auto; }
  .pt-ncard__link, .pt-ncard__img img, .pt-gallery__grid img { transition: none; }
}

/* "Leia mais": textos longos recolhidos após N linhas (sem JS, o texto aparece inteiro) */
.pt-readmore.is-collapsed { position: relative; max-height: calc(var(--rm-lines, 20) * 1.7em); overflow: hidden; }
.pt-readmore.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5.5em; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.pt-readmore__btn {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem; padding: .55rem 1.1rem; min-height: 44px;
  border: 1px solid var(--p); border-radius: 999px; background: #fff; color: var(--p); font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.pt-readmore__btn:hover { background: var(--p); color: #fff; }
.pt-readmore__btn i { transition: transform .2s; }
.pt-readmore__btn[aria-expanded="true"] i { transform: rotate(180deg); }
.pt-readmore__btn[hidden] { display: none !important; }
html.pt-contrast .pt-readmore.is-collapsed::after { background: linear-gradient(to bottom, transparent, #000); }
html.pt-contrast .pt-readmore__btn { background: #000 !important; color: #FFE500 !important; border-color: #FFE500 !important; }

/* Subcategorias da transparência em formato de botões */
.pt-subcats { margin-top: 1.1rem; }
.pt-subcats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .45rem; }
@media (max-width: 575.98px) { .pt-subcat { min-height: 46px; padding-top: .45rem; padding-bottom: .45rem; } .pt-subcat__icon { width: 28px; height: 28px; } }
.pt-subcat {
  display: flex; align-items: center; gap: .65rem; height: 100%; min-height: 52px; padding: .6rem .8rem .6rem .75rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--p); border-radius: 10px;
  color: var(--s); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.3;
  box-shadow: 0 1px 2px rgba(15, 36, 56, .05); transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.pt-subcat:hover, .pt-subcat:focus-visible { background: var(--p); border-color: var(--p); color: #fff; box-shadow: 0 6px 16px rgba(15, 36, 56, .14); transform: translateY(-1px); }
.pt-subcat__icon { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--p) 12%, #fff); color: var(--p); font-size: 1rem; transition: inherit; }
.pt-subcat:hover .pt-subcat__icon, .pt-subcat:focus-visible .pt-subcat__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.pt-subcat__name { flex: 1 1 auto; min-width: 0; }
.pt-subcat__count { flex: 0 0 auto; min-width: 1.7rem; padding: .1rem .45rem; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .75rem; font-weight: 700; text-align: center; }
.pt-subcat:hover .pt-subcat__count, .pt-subcat:focus-visible .pt-subcat__count { background: rgba(255, 255, 255, .2); color: #fff; }
.pt-subcat__go { flex: 0 0 auto; color: var(--muted); font-size: .8rem; transition: transform .15s, color .15s; }
.pt-subcat:hover .pt-subcat__go, .pt-subcat:focus-visible .pt-subcat__go { color: #fff; transform: translateX(2px); }
html.pt-contrast .pt-subcat { background: #000 !important; color: #FFE500 !important; border-color: #FFE500 !important; }
html.pt-contrast .pt-subcat__icon, html.pt-contrast .pt-subcat__count { background: #000 !important; color: #fff !important; }
@media (min-width: 576px) { .pt-subcats ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pt-subcats ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .pt-subcats ul { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pt-subcat, .pt-subcat__go { transition: none; } }

/* Páginas institucionais: blocos de imagem e texto */
.pt-blocks { display: grid; gap: 2rem; margin-top: 1.75rem; }
.pt-block { display: grid; gap: 1rem; align-items: start; }
.pt-block__fig { margin: 0; }
.pt-block__zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #e9eef3; cursor: zoom-in; }
.pt-block__zoom img { display: block; width: 100%; height: auto; transition: transform .35s; }
.pt-block__zoom:hover img { transform: scale(1.02); }
.pt-block__fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .45rem; }
.pt-block__text > :last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .pt-block--esquerda, .pt-block--direita { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; }
  .pt-block--direita { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .pt-block--direita .pt-block__fig { order: 2; }
}
@media (prefers-reduced-motion: reduce) { .pt-block__zoom img { transition: none; } }

/* Acervo anterior do Diário Oficial (sistema antigo) */
.pt-legacy {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem 1rem; align-items: center;
  margin: 0 0 1.25rem; padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, var(--p) 25%, var(--line));
  border-left: 4px solid var(--p); border-radius: var(--radius); background: color-mix(in srgb, var(--p) 6%, #fff);
}
.pt-legacy__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--p) 14%, #fff); color: var(--p); font-size: 1.3rem; }
.pt-legacy__text { display: grid; gap: .15rem; min-width: 0; }
.pt-legacy__text strong { color: var(--s); }
.pt-legacy__text span { color: var(--muted); font-size: .92rem; }
.pt-legacy__btn { grid-column: 1 / -1; justify-content: center; gap: .45rem; white-space: nowrap; }
@media (min-width: 700px) {
  .pt-legacy { grid-template-columns: auto 1fr auto; }
  .pt-legacy__btn { grid-column: auto; }
}
.pt-legacy__aside {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35rem;
  margin-top: .6rem; padding: .55rem .8rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px;
  color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none;
}
.pt-legacy__aside:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pt-legacy__aside small { font-weight: 400; opacity: .85; }
.pt-legacy__hint { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }
.pt-legacy__hint i:first-child { color: var(--p); margin-right: .25rem; }
.pt-empty .pt-legacy__hint { margin-top: .75rem; }
html.pt-contrast .pt-legacy { background: #000 !important; border-color: #FFE500 !important; }
html.pt-contrast .pt-legacy__text strong, html.pt-contrast .pt-legacy__text span { color: #fff !important; }
