/* Gestao municipal - scoped, inherits the existing home theme palette. */
.pgh-gestao{--pgh-accent:var(--phi-primary,#4625a9);--pgh-ink:var(--phi-ink,#172641);--pgh-muted:#647087;--pgh-bg:transparent;--pgh-card:#fff;--pgh-border:#e5e6ee;--pgh-gap:16px;--pgh-radius:16px;--pgh-visible:3;box-sizing:border-box;position:relative;max-width:min(100%,var(--porecatu-home-width,var(--phi-width,1320px)));width:100%;min-width:0;margin:28px auto;padding:16px 0 18px;background:var(--pgh-bg);font-family:inherit;color:var(--pgh-ink)}
.pgh-gestao *,.pgh-gestao *::before,.pgh-gestao *::after{box-sizing:border-box}
.pgh-palette--purple{--pgh-accent:#4625a9}.pgh-palette--blue{--pgh-accent:#1264a3}
.pgh-bg--soft{--pgh-bg:var(--phi-background,#f6f7fb);padding:25px;border-radius:22px}
.pgh-bg--white{--pgh-bg:#fff;padding:25px;border:1px solid var(--pgh-border);border-radius:22px}
.pgh-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}
.pgh-head-title{display:flex;align-items:flex-start;gap:14px;min-width:0}.pgh-head-icon{flex:0 0 46px;height:46px;display:grid;place-items:center;background:color-mix(in srgb,var(--pgh-accent) 10%,white);color:var(--pgh-accent);border-radius:13px}.pgh-head-title h2{margin:0!important;font-size:clamp(21px,2.3vw,27px);color:var(--pgh-ink);font-weight:780;letter-spacing:-.025em;line-height:1.22}.pgh-head-title p{margin:5px 0 0!important;color:var(--pgh-muted);font-size:13px;line-height:1.5}.pgh-head-rule{display:block;width:45px;height:3px;border-radius:3px;background:var(--pgh-accent);margin:10px 0 0}
.pgh-all-link{flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;min-height:39px;padding:9px 14px;border:1px solid var(--pgh-accent);border-radius:10px;color:var(--pgh-accent)!important;text-decoration:none!important;font-size:12px;font-weight:750;background:transparent}.pgh-all-link:hover{background:var(--pgh-accent);color:#fff!important}
.pgh-slider-shell{position:relative;min-width:0}.pgh-track{display:flex;gap:var(--pgh-gap);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:smooth;scroll-padding:2px;padding:3px 2px 12px}.pgh-track::-webkit-scrollbar{display:none}
.pgh-card{flex:0 0 calc((100% - (var(--pgh-visible) - 1) * var(--pgh-gap))/var(--pgh-visible));min-width:0;min-height:225px;display:flex;overflow:hidden;background:var(--pgh-card);border:1px solid var(--pgh-border);border-radius:var(--pgh-radius);box-shadow:0 5px 18px rgba(28,24,71,.07);scroll-snap-align:start;transition:box-shadow .2s ease,transform .2s ease}
.pgh-card:hover{box-shadow:0 10px 25px rgba(28,24,71,.12);transform:translateY(-2px)}.pgh-card--official{border-color:color-mix(in srgb,var(--pgh-accent) 28%,#fff)}
.pgh-portrait{display:grid;place-items:center;flex:0 0 37%;min-width:0;background:color-mix(in srgb,var(--pgh-accent) 10%,#edf2f9);color:var(--pgh-accent);overflow:hidden;align-self:stretch;position:relative}.pgh-portrait img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 28%;display:block}.pgh-portrait>span{font-size:35px;font-weight:800;opacity:.6}.pgh-portrait--hidden{display:none!important}
.pgh-card-content{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;padding:18px 16px 15px}.pgh-eyebrow{display:inline-flex;border-radius:7px;padding:5px 8px;background:color-mix(in srgb,var(--pgh-accent) 12%,white);color:var(--pgh-accent);font-size:10px;line-height:1.2;font-weight:790;letter-spacing:.02em;text-transform:uppercase}.pgh-card h3{font-size:15px;line-height:1.3;color:var(--pgh-ink);margin:11px 0 10px!important;font-weight:760;overflow-wrap:anywhere}.pgh-person{margin:auto 0 13px!important;display:flex;flex-direction:column;gap:3px;font-size:12px;line-height:1.35}.pgh-person span{color:var(--pgh-muted);font-size:10.5px}.pgh-person strong{font-size:12px;color:var(--pgh-ink);font-weight:700}.pgh-contact{margin:0 0 8px!important;font-size:11px;color:var(--pgh-muted)}
.pgh-card-link{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding:10px 0 0;border:0;border-top:1px solid var(--pgh-border);width:100%;color:var(--pgh-accent)!important;background:none;text-decoration:none!important;cursor:pointer;text-align:left;font-family:inherit;font-weight:750;font-size:12px}.pgh-card-link:hover{text-decoration:underline!important}.pgh-card-link span{font-size:17px}
.pgh-nav{position:absolute;z-index:2;top:42%;width:39px;height:39px;display:grid;place-items:center;border:1px solid #e0e4ec;border-radius:50%;background:#fff;color:var(--pgh-accent);box-shadow:0 3px 12px rgba(12,32,73,.13);cursor:pointer;font-size:20px;transition:transform .15s}.pgh-nav:hover{transform:scale(1.06);background:#f8f7ff}.pgh-nav-prev{left:-18px}.pgh-nav-next{right:-18px}.pgh-nav[disabled]{opacity:.4;cursor:default}
.pgh-bottom-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:4px;font-size:11px;color:var(--pgh-muted)}.pgh-counter{font-variant-numeric:tabular-nums}.pgh-autoplay-toggle{border:1px solid var(--pgh-border);border-radius:8px;background:transparent;color:var(--pgh-ink);font-family:inherit;font-size:11px;padding:6px 10px;cursor:pointer}.pgh-autoplay-toggle:hover{border-color:var(--pgh-accent)}.pgh-autoplay-toggle:disabled{opacity:.4}
.pgh-cards--compact .pgh-card{min-height:185px}.pgh-cards--compact .pgh-portrait{flex-basis:30%}.pgh-cards--compact .pgh-card-content{padding:13px}.pgh-cards--compact .pgh-card h3{font-size:13px}
.pgh-gestao a:focus-visible,.pgh-gestao button:focus-visible,.pgh-track:focus-visible{outline:3px solid var(--pgh-accent);outline-offset:3px}
.pgh-modal[hidden]{display:none!important}.pgh-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:18px}.pgh-modal-backdrop{position:absolute;inset:0;background:rgba(15,22,42,.64);backdrop-filter:blur(3px);cursor:pointer}.pgh-modal-dialog{z-index:1;position:relative;width:min(100%,740px);max-height:calc(100vh - 36px);overflow-y:auto;background:#fff;color:#172641;padding:30px;border-radius:19px;box-shadow:0 20px 70px rgba(0,0,0,.24)}.pgh-modal-close{position:absolute;top:12px;right:13px;width:35px;height:35px;display:grid;place-items:center;border:1px solid #e0e4ec;border-radius:50%;background:#fff;color:#172641;font-size:25px;line-height:1;cursor:pointer;z-index:1}
.pgh-modal-profile{display:grid;grid-template-columns:minmax(130px,190px) 1fr;gap:24px}.pgh-modal-photo{display:grid;place-items:center;overflow:hidden;border-radius:14px;aspect-ratio:4/5;background:#eef1fa;color:var(--pgh-accent);font-size:36px;font-weight:800}.pgh-modal-photo img{width:100%;height:100%;object-fit:cover;object-position:center 25%}.pgh-modal-info{min-width:0;padding-top:10px}.pgh-modal-info h2{font-size:24px;line-height:1.25;margin:14px 0!important;color:#172641}.pgh-modal-name{font-size:17px;font-weight:700;color:#263750;margin:0 0 22px!important}.pgh-modal-line{font-size:13px;margin:10px 0!important;overflow-wrap:anywhere}.pgh-modal-line a{color:var(--pgh-accent)}.pgh-visit{display:inline-flex;align-items:center;min-height:40px;margin-top:16px;padding:10px 15px;color:#fff!important;background:var(--pgh-accent);border-radius:9px;text-decoration:none!important;font-size:13px;font-weight:750}
@media(max-width:1080px){.pgh-card{flex-basis:calc((100% - var(--pgh-gap))/2)}.pgh-gestao{--pgh-visible:2!important}}
@media(max-width:690px){.pgh-gestao{width:calc(100% - 24px);margin:18px auto;padding:12px 0}.pgh-bg--white,.pgh-bg--soft{padding:16px 10px}.pgh-section-head{align-items:flex-start;gap:10px}.pgh-head-title{gap:9px}.pgh-head-icon{flex-basis:35px;height:35px;border-radius:10px}.pgh-head-icon svg{width:19px}.pgh-head-title h2{font-size:19px}.pgh-head-title p{font-size:11.5px}.pgh-all-link{padding:8px 9px;font-size:10px;min-height:34px}.pgh-gestao{--pgh-visible:1!important}.pgh-card{flex-basis:min(86%,350px);min-height:225px}.pgh-portrait{flex-basis:38%}.pgh-nav-prev{left:-10px}.pgh-nav-next{right:-10px}.pgh-nav{width:33px;height:33px}.pgh-modal-dialog{padding:19px 16px}.pgh-modal-profile{grid-template-columns:1fr;gap:15px}.pgh-modal-photo{width:130px;aspect-ratio:1;justify-self:start}.pgh-modal-info h2{font-size:21px}.pgh-modal-info{padding-top:0}}
@media(prefers-reduced-motion:reduce){.pgh-track{scroll-behavior:auto}.pgh-card,.pgh-nav{transition:none}}
@supports not (background:color-mix(in srgb, red, white)){.pgh-head-icon,.pgh-eyebrow{background:#eeeafb}.pgh-portrait{background:#e9ebf7}.pgh-card--official{border-color:#ccc2e8}}


/* v1.1.47 — Mesmo desenho de cartões, cabeçalho e navegação das Licitações. */
.pgh-gestao.pgh-unified {
  --pgh-border: #e5e6ee;
  --pgh-muted: #647087;
  --pgh-radius: 16px;
  container: pgh-vitrine / inline-size;
  padding-top: 16px;
  padding-bottom: 18px;
  margin-block: 28px;
}
.pgh-unified .pgh-section-head { min-height: 55px; align-items: center; margin-bottom: 19px; gap: 14px; }
.pgh-unified .pgh-head-title { align-items: center; gap: 14px; }
.pgh-unified .pgh-head-icon { flex-basis: 46px; height: 46px; border-radius: 13px; }
.pgh-unified .pgh-head-title h2 { font-size: clamp(21px, 2vw, 26px); font-weight: 760; letter-spacing: -.025em; }
.pgh-unified .pgh-head-title p { font-size: 13px; margin-top: 5px !important; }
.pgh-unified .pgh-head-rule { width: 45px; margin-top: 10px; }
.pgh-unified .pgh-all-link { min-height: 39px; border-radius: 10px; font-size: 12px; }
.pgh-unified .pgh-track { padding: 3px 2px 12px; }
.pgh-unified .pgh-card {
  min-height: 250px;
  border: 1px solid var(--pgh-border);
  border-radius: var(--pgh-radius);
  background: var(--pgh-card);
  box-shadow: 0 5px 18px rgba(28, 24, 71, .07);
}
.pgh-unified .pgh-card--official { border-color: var(--pgh-border); }
.pgh-unified .pgh-card-content { padding: 17px 16px 15px; flex: 1; }
.pgh-unified .pgh-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 32px; width: 100%; }
.pgh-unified .pgh-mini-icon {
  display: grid; flex: 0 0 33px; height: 33px; place-items: center;
  overflow: hidden; border-radius: 9px;
  color: var(--pgh-accent);
  background: color-mix(in srgb, var(--pgh-accent) 9%, white);
}
.pgh-unified .pgh-mini-icon svg { width: 19px; height: 19px; }
.pgh-unified .pgh-mini-icon--photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.pgh-unified .pgh-eyebrow { min-height: 24px; padding: 5px 9px; border-radius: 7px; font-size: 10px; }
.pgh-unified .pgh-card h3 {
  margin: 13px 0 10px !important;
  color: var(--pgh-ink); font-size: 14px; font-weight: 680; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.pgh-unified .pgh-person { margin: 0 0 10px !important; font-size: 12px; line-height: 1.4; }
.pgh-unified .pgh-person strong { font-size: 12px; }
.pgh-unified .pgh-contact { margin: 0 0 8px !important; }
.pgh-unified .pgh-card-link { margin-top: auto; min-height: 40px; padding-top: 10px; font-size: 12px; }
.pgh-unified .pgh-nav { top: 50%; width: 39px; height: 39px; font-size: 20px; }
.pgh-unified .pgh-nav-prev { left: -16px; }
.pgh-unified .pgh-nav-next { right: -16px; }
.pgh-unified .pgh-bottom-controls { min-height: 25px; padding-top: 3px; margin-top: 0; }
.pgh-unified .pgh-counter { font-size: 11px; font-variant-numeric: tabular-nums; }
.pgh-unified.pgh-cards--compact .pgh-card { min-height: 212px; }
/* Organiza o modal com o mesmo titulo superior e botao de fechamento das Licitacoes. */
.pgh-modal--unified .pgh-modal-dialog { padding: 0; border: 1px solid #e5e6ee; border-radius: 18px; }
.pgh-modal--unified .pgh-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 22px; background: #fff; border-top: 4px solid var(--pgh-accent);
  border-bottom: 1px solid #e5e6ee;
}
.pgh-modal--unified .pgh-modal-head > span { color: var(--pgh-accent); font-size: 10px; letter-spacing: .11em; font-weight: 800; }
.pgh-modal--unified .pgh-modal-close {
  position: static; width: auto; height: auto; min-height: 37px;
  padding: 7px 11px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 9px; background: #f7f9fd; font-family: inherit; font-size: 13px;
}
.pgh-modal--unified .pgh-modal-close > span { font-size: 12px; }
.pgh-modal--unified .pgh-modal-body { padding: 24px; }
/* Quando a pagina inicial usa 2 ou 3 colunas, reduzir cards dentro da propria secao. */
@container pgh-vitrine (max-width: 840px) {
  .pgh-card { flex-basis: calc((100% - var(--pgh-gap)) / 2); }
  .pgh-nav-prev { left: 0; }
  .pgh-nav-next { right: 0; }
}
@container pgh-vitrine (max-width: 510px) {
  .pgh-card { flex-basis: min(86%, 350px); }
  .pgh-section-head { flex-wrap: wrap; }
  .pgh-card h3 { font-size: 13px; }
  .pgh-nav-prev { left: 0; }
  .pgh-nav-next { right: 0; }
}
@media(max-width:690px) {
  .pgh-gestao.pgh-unified { margin-block: 18px; padding-top: 12px; padding-bottom: 12px; }
  .pgh-unified .pgh-section-head { min-height: 0; align-items: flex-start; gap: 10px; }
  .pgh-unified .pgh-head-title { gap: 10px; }
  .pgh-unified .pgh-head-icon { flex-basis: 36px; height: 36px; }
  .pgh-unified .pgh-head-title h2 { font-size: 20px; }
  .pgh-unified .pgh-head-title p { font-size: 12px; }
  .pgh-unified .pgh-nav { width: 34px; height: 34px; }
  .pgh-modal--unified .pgh-modal-head { padding: 14px; }
  .pgh-modal--unified .pgh-modal-body { padding: 16px; }
}
@supports not (background:color-mix(in srgb, red, white)) {
  .pgh-unified .pgh-mini-icon { background: #f0edfc; }
}
