/* Suíte Porecatu 1.1.67 — par de vitrines da home; não afeta o acervo ou outras páginas. */
.pshp-row { min-width: 0; width: 100%; }
.porecatu-home-manager--columns > .pshp-row { grid-column: 1 / -1; }
.pshp-pair {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 510px), 1fr));
  align-items: stretch; gap: 16px; width: 100%; max-width: var(--pshp-width, var(--phi-width, 1320px));
  min-width: 0; box-sizing: border-box; margin: 28px auto; flex: 0 0 100%; grid-column: 1 / -1;
}
.porecatu-home-manager--columns .pshp-pair { margin-block: 0; }
.pshp-pair > .pshl-licitacoes,
.pshp-pair > .pshl-licitacoes.pshl-unified.pshl-background--integrated {
  display: flex; flex-direction: column; align-items: stretch; align-self: stretch;
  width: 100%; max-width: 100%; min-width: 0; margin: 0 !important; padding: 22px 24px 15px;
  border: 1px solid var(--pshl-border, #e5e3ee); border-radius: 19px;
  box-shadow: 0 4px 14px rgba(28,24,71,.045);
  container-type: inline-size; container-name: pshl-vitrine;
}
.pshp-pair > .pshl-background--integrated { background: var(--phi-background, #f6f7fb); }
.pshp-pair > .pshl-licitacoes .pshl-heading {
  flex: 0 0 auto; align-items: flex-start; flex-wrap: nowrap; gap: 12px; min-height: 96px;
  margin: 0 0 16px; padding: 0;
}
.pshp-pair .pshl-heading-label { align-items: flex-start; gap: 12px; }
.pshp-pair .pshl-heading-icon { flex-basis: 44px; width: 44px; height: 44px; margin-top: 3px; }
.pshp-pair .pshl-heading h2 { font-size: clamp(20px, 2vw, 26px); line-height: 1.24; font-weight: 760; }
.pshp-pair .pshl-heading p { font-size: 12px; line-height: 1.45; margin-top: 4px !important; }
.pshp-pair .pshl-all { margin: 4px 0 0; min-height: 38px; padding: 8px 12px; white-space: nowrap; }
.pshp-pair .pshl-underline { width: 42px; margin-top: 10px; }
.pshp-pair .pshl-carousel-frame { min-width: 0; margin-inline: 6px; }
/* JS agrupa os cartões em páginas na ordem original de leitura. Sem JS, o trilho legado continua acessível. */
.pshp-pair > .pshl-licitacoes[data-pshp-active="1"] .pshl-cards {
  display: grid !important; grid-template-columns: none !important; grid-auto-flow: column !important;
  grid-auto-columns: 100% !important; grid-template-rows: auto; align-items: stretch;
  gap: 12px !important; padding: 3px 0 9px !important; min-width: 0; width: 100%;
  overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory !important;
  scroll-padding-inline: 0; scroll-behavior: auto !important; scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.pshp-pair .pshl-cards::-webkit-scrollbar { display: none; }
.pshp-pair .pshp-page {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 270px);
  gap: 12px; min-width: 0; width: 100%; padding: 0 2px; scroll-snap-align: start;
  scroll-snap-stop: always; box-sizing: border-box;
}
.pshp-pair [data-pshp-size="1"] .pshp-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: 270px; }
.pshp-pair .pshp-page > .pshl-card {
  min-width: 0; width: 100%; height: 100%; min-height: 0; max-height: none; overflow: hidden;
  padding: 15px 14px 12px; border-radius: 14px; scroll-snap-align: none; transform: none;
}
.pshp-pair .pshp-page .pshl-card-top { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; min-height: 30px; }
.pshp-pair .pshp-page .pshl-mini-icon { flex-basis: 29px; width: 29px; height: 29px; }
.pshp-pair .pshp-page .pshl-modality {
  display: block; min-width: 0; min-height: 23px; max-width: 100%; padding: 5px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; line-height: 1.3;
}
.pshp-pair .pshp-page .pshl-number { flex: 0 0 auto; margin-left: auto; white-space: nowrap; font-size: 10px; padding: 4px 7px; }
.pshp-pair .pshp-page .pshl-object {
  flex: 0 0 auto; min-height: 0; max-height: calc(5 * 1.38em); overflow: hidden; -webkit-line-clamp: 5;
  font-size: 14px; line-height: 1.38; font-weight: 600; margin: 12px 0 9px !important;
}
.pshp-pair .pshp-page .pshd-copy { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 10px 0 8px; gap: 6px; }
.pshp-pair .pshp-page .pshd-copy .pshl-object { flex: 0 0 auto; margin: 0 !important; max-height: calc(3 * 1.38em); -webkit-line-clamp: 3; font-weight: 740; }
.pshp-pair .pshp-page .pshd-section-name { flex: 0 0 auto; min-height: 0; max-height: calc(3 * 1.35em); -webkit-line-clamp: 3; font-size: 12.5px; line-height: 1.35; }
.pshp-pair .pshp-page .pshl-card-bottom { flex: 0 0 auto; min-height: 40px; margin-top: auto; padding: 8px 0; gap: 5px; }
.pshp-pair .pshp-page .pshl-meta { font-size: 10.5px; }
.pshp-pair .pshp-page .pshl-status { font-size: 10px; padding: 4px 7px; }
.pshp-pair .pshp-page .pshl-details { flex: 0 0 auto; min-height: 27px; font-size: 13px; font-weight: 750; }
.pshp-pair > .pshl-licitacoes[data-pshp-active="1"] .pshl-navigation {
  display: flex; position: absolute; top: 50%; inset-inline: -20px; transform: translateY(-50%); padding: 0;
  align-items: center; justify-content: space-between; gap: 0;
}
.pshp-pair > .pshl-licitacoes .pshl-navigation[hidden], .pshp-pair > .pshl-hide-arrows .pshl-navigation { display: none !important; }
.pshp-pair .pshl-navigation button { display: grid; place-items: center; width: 36px; height: 36px; font-size: 25px; padding: 0; line-height: 1; }
.pshp-pair > .pshl-licitacoes .pshl-bottom-controls {
  position: relative; flex: 0 0 auto; min-height: 38px; margin-top: auto; padding: 9px 0 0;
  border-top: 1px solid var(--pshl-border); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.pshp-pair .pshp-dots { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px; max-width: 180px; }
.pshp-pair .pshp-dot { display: grid; place-items: center; width: 18px; height: 25px; min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; border-radius: 8px; cursor: pointer; box-shadow: none !important; }
.pshp-pair .pshp-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #d2d6e2; }
.pshp-pair .pshp-dot[aria-current="true"]::after { background: var(--pshl-accent); width: 8px; height: 8px; }
.pshp-pair .pshl-counter { grid-column: 3; justify-self: end; white-space: nowrap; padding: 3px 10px; border: 1px solid var(--pshl-border); border-radius: 20px; color: var(--pshl-accent); font-weight: 750; font-variant-numeric: tabular-nums; font-size: 11px; }
.pshp-pair .pshl-empty { margin: 0 0 12px; }
@container pshl-vitrine (max-width: 525px) {
  .pshp-pair > .pshl-licitacoes .pshl-heading { flex-wrap: wrap; min-height: 128px; align-content: start; }
  .pshp-pair > .pshl-licitacoes .pshl-heading-label { flex: 1 1 100%; }
  .pshp-pair > .pshl-licitacoes .pshl-all { margin-left: 56px; margin-top: 0; min-height: 32px; }
}
@media (max-width: 767px) {
  .pshp-pair { width: calc(100% - 2 * var(--pshp-gutter, 16px)); margin-block: 18px; gap: 20px; }
  .porecatu-home-manager--columns .pshp-pair { width: 100%; }
  .pshp-pair > .pshl-licitacoes,
  .pshp-pair > .pshl-licitacoes.pshl-unified.pshl-background--integrated { padding: 16px 15px 12px; }
  .pshp-pair > .pshl-licitacoes .pshl-heading { min-height: 0; gap: 10px; margin-bottom: 14px; }
  .pshp-pair .pshl-heading-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .pshp-pair .pshl-carousel-frame { margin-inline: 4px; }
  .pshp-pair > .pshl-licitacoes[data-pshp-active="1"] .pshl-navigation { inset-inline: -13px; }
  .pshp-pair .pshl-navigation button { width: 34px; height: 34px; }
  .pshp-pair .pshp-dots { max-width: 130px; }
  .pshp-pair .pshp-dot { width: 16px; }
}
@media (forced-colors: active) { .pshp-pair .pshp-dot::after { border: 1px solid ButtonText; } .pshp-pair .pshp-dot[aria-current="true"]::after { background: ButtonText; } }

.pshp-pair .pshp-dots[hidden] { display: none !important; }
