/*!
 * pn-hub-eleicoes.css — Hub Editorial de Eleições PIRANOT
 * Escopo: .pn-ele
 */

.pn-ele {
  background: #f8fafc;
  color: #0c1b33;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  padding-bottom: 56px;
}

.pn-ele a {
  color: inherit;
  text-decoration: none;
}

.pn-ele-wrap,
.pn-ele-jgrid {
  max-width: 1160px;
  margin: 0 auto;
}

.pn-ele-wrap {
  padding: 0 20px;
}

.pn-ele-jbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

.pn-ele-jgrid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
  scrollbar-width: none;
}

.pn-ele-jlink {
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #0c1b33;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 7px 15px;
  text-transform: uppercase;
}

.pn-ele-jlink:hover {
  border-color: #0a7d3c;
  color: #0a7d3c;
}

.pn-ele-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 18px;
  padding: 20px 0 16px;
}

.pn-ele-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
  background: #fff;
  border-top: 6px solid #0a7d3c;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(12,27,51,.06);
}

.pn-ele-hero__content {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.pn-ele-hero__kicker,
.pn-ele-kicker {
  display: inline-block;
  color: #0a7d3c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.pn-ele-hero__kicker {
  width: fit-content;
  background: #0a7d3c;
  color: #fff;
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.pn-ele-hero__title {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 900;
  line-height: 1.06;
  margin: 0;
}

.pn-ele-hero__title a:hover {
  color: #0a7d3c;
}

.pn-ele-hero__lead {
  color: #475569;
  font-size: 17px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.pn-ele-hero__date {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-top: 18px;
  text-transform: uppercase;
}

.pn-ele-hero__img {
  background: #0c1b33;
  min-height: 330px;
}

.pn-ele-hero__img img,
.pn-ele-news-card__img img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pn-ele-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.pn-ele-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.pn-ele-card h2,
.pn-ele-card h3 {
  color: #0c1b33;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 8px;
}

.pn-ele-card p {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.pn-ele-card__head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pn-ele-badge {
  background: #f1f5f9;
  border-radius: 4px;
  color: #0c1b33;
  font-size: 12px;
  font-weight: 900;
  height: fit-content;
  padding: 5px 8px;
}

.pn-ele-rank {
  display: grid;
  gap: 14px;
}

.pn-ele-rank__line {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
}

.pn-ele-rank__line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-ele-rank__line span {
  color: #0a7d3c;
  font-weight: 900;
}

.pn-ele-rank__bar,
.pn-ele-progress {
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  margin: 6px 0;
}

.pn-ele-rank__bar i,
.pn-ele-progress i {
  display: block;
  background: #0a7d3c;
  border-radius: inherit;
  height: 100%;
}

.pn-ele-rank small,
.pn-ele-source {
  color: #64748b;
  font-size: 11px;
}

.pn-ele-callout {
  background: #f0fbf4;
  border-color: #c6e9d4;
  border-left: 4px solid #0a7d3c;
}

.pn-ele-cidades,
.pn-ele-news-section,
.pn-ele-service {
  padding: 16px 0;
}

.pn-ele-search {
  margin-top: 16px;
}

.pn-ele-search label {
  display: block;
  color: #0a7d3c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pn-ele-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.pn-ele-search select,
.pn-ele-search button {
  border-radius: 4px;
  font: inherit;
  min-height: 44px;
}

.pn-ele-search select {
  border: 1px solid #e2e8f0;
  color: #0c1b33;
  padding: 0 12px;
}

.pn-ele-search button {
  background: #0c1b33;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.pn-ele-search button:hover {
  background: #0a7d3c;
}

.pn-ele-section-head {
  align-items: end;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.pn-ele-section-head h2 {
  color: #0c1b33;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.pn-ele-section-head > a {
  color: #0c1b33;
  font-size: 14px;
  font-weight: 900;
}

.pn-ele-section-head > a:hover {
  color: #0a7d3c;
}

.pn-ele-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.pn-ele-news-grid,
.pn-ele-service-grid {
  display: grid;
  gap: 18px;
}

.pn-ele-news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pn-ele-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pn-ele-news-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.pn-ele-news-card:hover {
  box-shadow: 0 10px 30px rgba(12,27,51,.08);
}

.pn-ele-news-card__img {
  aspect-ratio: 16 / 9;
  background: #0c1b33;
}

.pn-ele-news-card__img span {
  align-items: end;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 100%;
  letter-spacing: .1em;
  padding: 16px;
  text-transform: uppercase;
}

.pn-ele-news-card__body {
  padding: 16px;
}

.pn-ele-news-card__meta {
  color: #0a7d3c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.pn-ele-news-card h3 {
  color: #0c1b33;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.pn-ele-news-card h3:hover {
  color: #0a7d3c;
}

.pn-ele-news-card__body p:last-child {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
}

.pn-ele-most-read {
  align-content: start;
  display: grid;
  gap: 12px;
}

.pn-ele-most-read a {
  border-top: 1px solid #e2e8f0;
  color: #0c1b33;
  font-size: 14px;
  font-weight: 800;
  padding-top: 12px;
}

.pn-ele-most-read a:hover {
  color: #0a7d3c;
}

.pn-ele-subheader {
  background: linear-gradient(135deg, #053d1e 0%, #0a7d3c 58%, #12a84e 100%);
  border-radius: 18px;
  color: #fff;
  margin: 20px 0;
  padding: 34px;
}

.pn-ele-subheader h1 {
  color: #fff;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 8px;
}

.pn-ele-subheader p {
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.pn-ele-apuracao-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.pn-ele-progress-head,
.pn-ele-result-row__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pn-ele-progress-head {
  color: #0c1b33;
  font-weight: 900;
  margin-bottom: 8px;
}

.pn-ele-progress {
  height: 12px;
  margin-bottom: 20px;
}

.pn-ele-results {
  display: grid;
  gap: 14px;
}

.pn-ele-result-row {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 12px;
}

.pn-ele-result-row__photo {
  align-items: center;
  background: #f1f5f9;
  border-radius: 10px;
  color: #0a7d3c;
  display: flex;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.pn-ele-result-row h2 {
  font-size: 17px;
  margin: 0;
}

.pn-ele-result-row strong {
  color: #0a7d3c;
}

.pn-ele-result-row p {
  color: #64748b;
  font-size: 13px;
  margin: 4px 0 6px;
}

.pn-ele-empty {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .pn-ele-top,
  .pn-ele-news-layout,
  .pn-ele-apuracao-page {
    grid-template-columns: 1fr;
  }

  .pn-ele-hero {
    grid-template-columns: 1fr;
  }

  .pn-ele-hero__img {
    min-height: 220px;
    order: -1;
  }

  .pn-ele-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pn-ele-wrap {
    padding: 0 12px;
  }

  .pn-ele-jgrid {
    padding: 9px 12px;
  }

  .pn-ele-hero__content,
  .pn-ele-subheader {
    padding: 24px;
  }

  .pn-ele-news-grid,
  .pn-ele-service-grid,
  .pn-ele-search__row {
    grid-template-columns: 1fr;
  }

  .pn-ele-section-head {
    align-items: start;
    flex-direction: column;
  }
}
