/* ============================================================
   ACRÓPOLE — Artigos
   acropole-artigos.css
   ============================================================ */

/* ──────────────────────────────────────────
   PAGE HEADER
────────────────────────────────────────── */
.ac-art-header {
  background: var(--ac-white);
  border-bottom: 1px solid var(--ac-line);
}
.ac-art-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 40px;
}
.ac-art-label {
  font-family: var(--fonte-ui);
  font-size: var(--text-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cor-dourado);
  margin: 0 0 10px;
}
.ac-art-title {
  font-family: var(--fonte-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--cor-texto);
  margin: 0 0 12px;
}
.ac-art-dek {
  font-family: var(--fonte-corpo);
  font-size: 17px;
  line-height: 1.55;
  font-style: normal;
  color: var(--cor-texto-leve);
  font-weight: 400;
  margin: 0;
  max-width: 560px;
}

/* ──────────────────────────────────────────
   FILTER TABS
────────────────────────────────────────── */
.ac-art-filter {
  background: var(--ac-white);
  border-bottom: 2px solid var(--ac-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ac-art-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ac-art-filter-inner::-webkit-scrollbar { display: none; }

.ac-art-tab {
  padding: 13px 18px;
  font-family: var(--fonte-ui);
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cor-texto-leve);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.ac-art-tab:hover { color: var(--ac-ink); }
.ac-art-tab.is-active {
  color: var(--ac-ink);
  border-bottom-color: var(--ac-gold);
  font-weight: 600;
}

/* ──────────────────────────────────────────
   GRID SECTION
────────────────────────────────────────── */
.ac-art-section {
  background: var(--ac-paper);
  min-height: 60vh;
}
.ac-art-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.ac-art-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ──────────────────────────────────────────
   CARD
────────────────────────────────────────── */

/* className lands on <ul> — card styles target > li */
.ac-art-card { background: transparent; }

.ac-art-query .wp-block-post-template > li {
  background: var(--ac-white);
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 1px 4px rgba(10,37,64,.06), 0 4px 16px rgba(10,37,64,.04);
  overflow: hidden;
}
.ac-art-query .wp-block-post-template > li:hover {
  box-shadow: 0 4px 18px rgba(10,37,64,.12), 0 12px 32px rgba(10,37,64,.08);
}

/* — imagem com altura fixa 220px — */
.ac-art-card-img {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  height: 220px;
}
.ac-art-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.ac-art-card-img:not(:has(img)):empty {
  height: 220px;
  background:
    repeating-linear-gradient(135deg, rgba(27,42,107,.05) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, rgba(27,42,107,.09), rgba(27,42,107,.02));
}

/* — corpo — */
.ac-art-card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* — badge de categoria — */
.ac-art-card-cat { display: block; }
.ac-art-card-cat a {
  display: inline-block;
  background: none;
  font-family: var(--fonte-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1260B5;
  border-left: 2px solid #1260B5;
  padding-left: 8px;
  font-variant-caps: normal;
  padding: 0;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s ease;
}
.ac-art-card-cat a:hover { color: #0D4FA0; }

/* — título — */
.ac-art-card-title {
  font-family: var(--fonte-display);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  color: var(--cor-texto);
  margin: 0;
  flex: 1;
  transition: color .15s;
}
.ac-art-card-title a { color: inherit; text-decoration: none; }
.ac-art-query .wp-block-post-template > li:hover .ac-art-card-title { color: var(--ac-gold-deep); }

/* — excerpt 2 linhas — */
.ac-art-card-excerpt {
  font-family: var(--fonte-corpo);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cor-texto-leve);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* — autor e data — */
.ac-art-card-meta {
  font-family: var(--fonte-ui);
  font-size: var(--text-sm);
  letter-spacing: .04em;
  color: var(--cor-texto-leve);
  display: flex !important;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ac-line-soft);
}

/* — estados vazios — */
.ac-art-empty,
.ac-art-no-results {
  text-align: center;
  padding: 64px 0;
  font-family: var(--fonte-corpo);
  font-size: 18px;
  font-style: normal;
  color: var(--cor-texto-leve);
  grid-column: 1 / -1;
}

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ac-art-query .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .ac-art-header-inner { padding: 32px 20px 28px; }
  .ac-art-filter-inner { padding: 0 20px; }
  .ac-art-tab { padding: 12px 14px; }
  .ac-art-wrap { padding: 28px 20px 56px; }
  .ac-art-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
