/* Suite Porecatu 1.1.50: a vitrine Noticias compartilha o mesmo eixo visual
   de Licitacoes e Gestao, sem modificar o arquivo de noticias ou os singles.
   A classe prn-unified e aplicada apenas na pagina inicial quando habilitada. */
.prn-home-news.prn-unified {
  --prn-unified-ink: var(--phi-ink, #172641);
  --prn-unified-muted: #647087;
  --prn-unified-line: #e5e6ee;
  box-sizing: border-box;
  container: prn-home-vitrine / inline-size;
  width: 100%;
  max-width: min(100%, var(--porecatu-home-width, var(--phi-width, 1320px)));
  min-width: 0;
  margin: 28px auto;
  padding: 16px 0 18px;
  color: var(--prn-unified-ink);
  background: transparent;
}
.prn-home-news.prn-unified *,
.prn-home-news.prn-unified *::before,
.prn-home-news.prn-unified *::after { box-sizing: border-box; }

/* Cabecalho com as mesmas medidas dos modulos de Licitacoes e Gestao. */
.prn-home-news.prn-unified .prn-home-toolbar,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 18px;
  min-height: 62px;
  margin: 0 0 19px;
  padding: 0;
  border: 0;
  background: transparent;
}
.prn-home-news.prn-unified .prn-home-toolbar .prn-news-heading,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-home-toolbar .prn-news-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 270px;
  min-width: 0;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}
.prn-home-news.prn-unified .prn-unified-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--prn-accent);
  background: #eeeafa;
  background: color-mix(in srgb, var(--prn-accent) 9%, #fff);
}
.prn-home-news.prn-unified .prn-unified-heading-icon svg { display: block; width: 23px; height: 23px; }
.prn-home-news.prn-unified .prn-unified-heading-copy { min-width: 0; }
.prn-home-news.prn-unified .prn-news-heading h2,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-news-heading h2 {
  margin: 0 !important;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 760;
  line-height: 1.26;
  letter-spacing: -.025em;
  color: var(--prn-unified-ink);
}
.prn-home-news.prn-unified .prn-unified-heading-copy p {
  margin: 5px 0 0 !important;
  font-size: 13px;
  line-height: 1.5;
  color: var(--prn-unified-muted);
}
.prn-home-news.prn-unified .prn-heading-mark,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-heading-mark {
  display: block;
  width: 45px;
  height: 3px;
  margin: 10px 0 0;
  border-radius: 4px;
  background: var(--prn-accent);
}
.prn-home-news.prn-unified .prn-home-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.prn-home-news.prn-unified .prn-home-filter,
body.pcs-public-v3 .prn-home-news.prn-unified .prn-news-filters.prn-home-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.prn-home-news.prn-unified .prn-home-filter select {
  width: min(245px, 100%);
  min-width: 150px;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 6px 30px 6px 12px;
  border: 1px solid #dedfea;
  border-radius: 10px;
  background-color: #fff;
  color: var(--prn-unified-ink);
  font-size: 12px;
  line-height: 1.3;
}
.prn-home-news.prn-unified .prn-home-all,
.prn-home-news.prn-unified .prn-home-all:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--prn-accent);
  border-radius: 10px;
  background: transparent;
  color: var(--prn-accent);
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}
.prn-home-news.prn-unified .prn-home-all:hover {
  background: var(--prn-accent);
  color: #fff;
  filter: none;
}

/* Cartoes: mesmo acabamento, cantos, respiros e largura util das vitrines.
   As imagens continuam obedecendo as proporcoes configuradas no modulo. */
.prn-home-news.prn-unified .prn-news-grid,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-news-grid {
  display: grid;
  grid-template-columns: repeat(var(--prn-columns, 4), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  padding: 3px 2px 12px;
  min-width: 0;
}
.prn-home-news.prn-unified .prn-news-card,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--prn-unified-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(28, 24, 71, .07);
}
.prn-home-news.prn-unified.prn-style-outlined .prn-news-card { box-shadow: none; }
.prn-home-news.prn-unified .prn-news-card:hover,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-news-card:hover {
  border-color: color-mix(in srgb, var(--prn-accent) 30%, #e5e6ee);
  box-shadow: 0 9px 23px rgba(30, 32, 70, .11);
}
.prn-home-news.prn-unified.prn-style-outlined .prn-news-card:hover { box-shadow: none; }
.prn-home-news.prn-unified .prn-news-image { overflow: hidden; background: #f0eef7; }
.prn-home-news.prn-unified .prn-news-body { padding: 17px 16px 15px; }
.prn-home-news.prn-unified .prn-news-category,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-news-category {
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--prn-accent) 9%, #fff);
  color: var(--prn-accent);
  font-size: 10px;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: .02em;
}
.prn-home-news.prn-unified .prn-news-card h3,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-news-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--prn-unified-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.43;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.prn-home-news.prn-unified .prn-news-excerpt,
body.porecatu-home-identity.phi-news-editorial .prn-home-news.prn-unified .prn-news-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--prn-unified-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.prn-home-news.prn-unified .prn-news-card-footer {
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding-top: 11px;
  border-top: 1px solid var(--prn-unified-line);
}
.prn-home-news.prn-unified .prn-news-meta { color: var(--prn-unified-muted); font-size: 10.5px; }
.prn-home-news.prn-unified .prn-news-meta svg { stroke: var(--prn-accent); }
.prn-home-news.prn-unified .prn-read-more,
.prn-home-news.prn-unified .prn-read-more:visited {
  min-height: 27px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--prn-accent);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.prn-home-news.prn-unified .prn-read-more:hover { text-decoration: underline; }
.prn-home-news.prn-unified .prn-news-actions { margin-top: 15px; }
.prn-home-news.prn-unified .prn-load-more {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: none;
}
.prn-home-news.prn-unified .prn-load-more:hover { box-shadow: none; }
.prn-home-news.prn-unified :is(a,button,select,input):focus-visible {
  outline: 3px solid var(--prn-accent);
  outline-offset: 3px;
}

/* O grid externo do gerenciador pode dar apenas metade da linha ao modulo. */
.porecatu-home-manager--columns .prn-home-news.prn-unified,
.porecatu-home-block--unified-vitrine .prn-home-news.prn-unified {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-block: 0;
}
@container prn-home-vitrine (max-width: 1040px) {
  .prn-home-news.prn-unified .prn-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .prn-home-news.prn-unified .prn-home-toolbar { align-items: stretch; }
  .prn-home-news.prn-unified .prn-home-controls { flex: 1 1 100%; justify-content: flex-start; }
}
@container prn-home-vitrine (max-width: 510px) {
  .prn-home-news.prn-unified .prn-news-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .prn-home-news.prn-unified .prn-home-toolbar .prn-news-heading { flex-basis: 100%; }
  .prn-home-news.prn-unified .prn-home-controls { flex-wrap: wrap; gap: 8px; }
  .prn-home-news.prn-unified .prn-home-filter { flex: 1 1 100%; }
  .prn-home-news.prn-unified .prn-home-filter select { width: 100%; flex: 1 1 100%; }
  .prn-home-news.prn-unified .prn-home-all { flex: 0 1 auto; }
  .prn-home-news.prn-unified .prn-news-card h3 { font-size: 15px; }
}
@media (max-width: 767px) {
  .prn-home-news.prn-unified { padding: 12px 0 14px; margin: 18px auto; }
  .prn-home-news.prn-unified .prn-home-toolbar { margin-bottom: 14px; }
  .prn-home-news.prn-unified .prn-unified-heading-icon { flex-basis: 42px; width: 42px; height: 42px; }
  .prn-home-news.prn-unified .prn-news-grid { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .prn-home-news.prn-unified .prn-news-card,
  .prn-home-news.prn-unified .prn-news-image img { transition: none; }
}
@media (forced-colors: active) {
  .prn-home-news.prn-unified .prn-home-all { border: 1px solid ButtonText; }
  .prn-home-news.prn-unified .prn-news-card { border: 1px solid CanvasText; }
}
