/* ==========================================================================
   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; gap: .5rem 1.5rem; }
.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; }
.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; }
@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; }
}
