/* Estilos das páginas geradas em /blog. Reaproveita os tokens de main.css
   e as classes de home.css (siteFooter, faq, ctaBlock). */

.page--blog {
  max-width: var(--home-max);
}

/* .page--post fica com a largura padrão de .page (var(--maxw), já centralizada
   via margin:auto em main.css) — o artigo é de leitura, não precisa da largura
   ampliada da listagem. */

/* ------------------------------------------------------------- blog hero */

.blogHero {
  margin: 0.5rem 0 clamp(2rem, 5vw, 2.75rem);
  max-width: 44rem;
}

.blogHero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.75rem;
}

.blogHero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------- post grid */

.postGrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.postCard {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.postCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}

.postCard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.postCard__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.postCard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postCard__body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.postCard__tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.postCard__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}

.postCard__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.postCard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.postCard__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.postCard__meta .icon {
  width: 0.9rem;
  height: 0.9rem;
}

/* ------------------------------------------------------------ pagination */

.postPagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  flex-wrap: wrap;
}

.postPagination__status {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ breadcrumb */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* --------------------------------------------------------------- artigo */

.postArticle {
  max-width: var(--maxw);
}

.postArticle__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.postMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.postMeta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.postMeta .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.postMeta__author {
  color: var(--text);
  font-weight: 600;
}

.postMeta__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
}

.postMeta__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.postMeta__tag .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.postArticle__cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.postSummary {
  border-radius: var(--radius);
  border: 1px dashed rgba(126, 195, 255, 0.35);
  background: rgba(126, 195, 255, 0.06);
  padding: 1rem 1.2rem;
  margin: 0 0 1.75rem;
}

.postSummary__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}

.postSummary p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.postBody {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
}

.postBody h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  margin: 2rem 0 0.85rem;
  line-height: 1.3;
}

.postBody h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
}

.postBody p {
  margin: 0 0 1.1rem;
}

.postBody ul,
.postBody ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
  color: var(--text);
}

.postBody li {
  margin-bottom: 0.4rem;
}

.postBody a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(126, 195, 255, 0.4);
}

.postBody strong {
  color: var(--text);
}

.postBody blockquote {
  margin: 1.25rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.tableWrap {
  margin: 0 0 1.4rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.postBody table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}

.postBody th,
.postBody td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.postBody thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  white-space: nowrap;
}

.postBody tbody td {
  color: var(--muted);
}

.postBody tbody td strong {
  color: var(--text);
}

.postBody tbody tr:last-child th,
.postBody tbody tr:last-child td {
  border-bottom: 0;
}

.postArticle__cta {
  margin-top: clamp(2rem, 5vw, 2.75rem);
}

/* ------------------------------------------------------------ relacionados */

.relatedPosts {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 3.25rem) 0;
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
}

.relatedPosts__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.9rem;
}

.relatedPosts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.relatedPosts__list a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.relatedPosts__list a:hover {
  text-decoration: underline;
}

/* faq/ctaBlock dentro do artigo herdam de home.css; só restringe a largura */
.page--post .faq {
  max-width: var(--maxw);
}
