/* ==========================================================================
   Blog: posts em destaque
   ========================================================================== */
.blog-preview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
}

.blog-preview__grid {
  display: grid;
  gap: clamp(2rem, 1.5rem + 1.5vw, 2.5rem) var(--gutter);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48em) { .blog-preview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .blog-preview__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card__inner {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
  height: 100%;
}

.post-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-carbon);
  margin-bottom: var(--space-xs);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.post-card__cat {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--color-signal);
  border-radius: 999px;
  color: var(--accent);
}

.post-card__title {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.25;
}

.post-card__title a { color: inherit; text-decoration: none; }

.post-card__more {
  justify-self: start;
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--color-signal);
  text-underline-offset: 0.35em;
  transition: color var(--dur-fast);
}

@media (hover: hover) {
  .post-card:hover .post-card__media img { transform: scale(1.04); }
  .post-card__title a:hover, .post-card__more:hover { color: var(--accent); }
}

.post-card__title a:focus-visible, .post-card__more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 64em) { .blog-preview__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Trilha de navegação ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Índice do blog ---------- */
.blog-hero { padding-top: calc(var(--header-h) + var(--space-2xl)); padding-bottom: var(--space-xl); }
.blog-hero__title { font-size: var(--fs-h2); line-height: var(--lh-tight); }
.blog-filters { margin-top: var(--space-lg); justify-content: flex-start; }
.section.blog-list { border-top: 0; padding-top: 0; }

/* ---------- Post ---------- */
.post { padding-top: calc(var(--header-h) + var(--space-2xl)); }

.post__header { max-width: 46rem; }
.post__header .post-card__meta { margin-bottom: var(--space-md); }

.post__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 1.1;
}

.post__lead {
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.post__cover { margin-block: var(--space-2xl); }
.post__cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 12px;
}

.post__content {
  max-width: 46rem;
  padding-bottom: var(--space-section);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.post__content > p,
.post__content > ul { margin-bottom: 1.25em; }
.post__content > p { color: rgba(242, 240, 235, 0.86); }
.post__content strong { color: var(--text); font-weight: 600; }

.post__content > h2,
.post__faq > h2 {
  margin: 2.25em 0 0.75em;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.2;
}

.post__content > h3 {
  margin: 1.75em 0 0.5em;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.3;
}

.post__content > ul { padding-left: 1.25rem; }
.post__content > ul li { margin-bottom: 0.5em; padding-left: 0.25rem; }
.post__content > ul li::marker { color: var(--accent); }

.post-summary {
  margin-bottom: var(--space-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--border);
  border-left: 3px solid var(--color-signal);
  border-radius: 12px;
  background: var(--color-carbon);
}
.post-summary__title { font-size: 1.375rem; margin-bottom: var(--space-sm); }
.post-summary ul { padding-left: 1.25rem; font-size: var(--fs-small); }
.post-summary li { margin-bottom: 0.35em; }
.post-summary li::marker { color: var(--accent); }

.post-cta {
  display: grid;
  justify-items: start;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
  padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.25rem);
  border: 1.5px solid var(--color-signal);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 253, 0, 0.15);
}
.post-cta__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.2;
}
.post-cta__text { font-size: var(--fs-small); color: var(--text-muted); max-width: 34rem; }
.post-cta .button { margin-top: var(--space-xs); }

.post__faq .faq__item { font-size: var(--fs-body); }

/* ---------- Disposição do post (modelo de referência) ---------- */
.post__cat { margin-bottom: var(--space-md); font-size: 0.8125rem; }
.post__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.post__byline span:first-child { color: var(--text); }
.post__content h2[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.post-toc {
  margin-bottom: var(--space-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.post-toc__title { font-size: 1.375rem; margin-bottom: var(--space-sm); }
.post-toc ol { padding-left: 1.4rem; font-size: var(--fs-small); }
.post-toc li { margin-bottom: 0.4em; }
.post-toc li::marker { color: var(--accent); }
.post-toc a { color: var(--text); text-decoration: none; }
.post-toc a:hover { color: var(--accent); }

.post-cta--top { margin-top: 0; }

.post__see-also {
  padding-left: 1rem;
  border-left: 2px solid var(--color-signal);
  font-size: var(--fs-small);
}
.post__see-also a, .post__content > p a { color: var(--accent); }

.post-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}
.post-tags li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.post-author {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-top: var(--space-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: 12px;
  background: var(--color-carbon);
}
.post-author__logo { flex: none; width: 3.5rem; height: 3.5rem; }
.post-author__name { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.2; }
.post-author__bio { margin: 0.35rem 0 0.6rem; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6; }

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-small);
}
.post-share__label { color: var(--text-muted); }
.post-share a {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.post-share a:hover { border-color: var(--color-signal); color: var(--accent); }

.post__content { padding-bottom: var(--space-2xl); }
.post-related__eyebrow { font-size: var(--fs-small); color: var(--accent); margin-bottom: var(--space-xs); }

.post-final__inner { display: grid; justify-items: center; gap: var(--space-md); text-align: center; }
.post-final__title { font-size: var(--fs-h2); line-height: var(--lh-tight); max-width: 18ch; }
.post-final__inner .section-head__intro { margin-top: 0; }
.post-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }

/* ---------- Post em 2 colunas (sumário fixo + texto) ---------- */
.post__header { max-width: 60rem; }
.post__layout {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}
.post__layout .post__content { max-width: 46rem; padding: 0; margin: 0; }

@media (min-width: 64em) {
  .post__layout {
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 46rem);
    justify-content: center;
    gap: clamp(3rem, 2rem + 3vw, 5.5rem);
    align-items: start;
  }
  .post__aside { align-self: stretch; }
  .post__sticky {
    position: sticky;
    top: calc(var(--header-h) + var(--space-lg));
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .post__header { max-width: calc(20rem + 46rem + 5.5rem); }
}

.post__sticky { display: grid; gap: var(--space-lg); }

.post-toc { margin: 0; padding: 0; border: 0; }
.post-toc__title {
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
  color: var(--accent);
}
.post-toc ol {
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}
.post-toc li { margin: 0; }
.post-toc a {
  display: block;
  margin-left: -1px;
  padding: 0.45rem 0 0.45rem 1rem;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  line-height: 1.45;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.post-toc a.is-active { color: var(--text); border-left-color: var(--color-signal); }

.post-cta--side { margin: 0; padding: 1.5rem; box-shadow: none; background: var(--color-carbon); border-width: 1px; }
.post-cta--side .post-cta__title { font-size: 1.5rem; }
.post-cta--side .button { width: 100%; }

.post-summary { border-left-width: 3px; }
.post-summary__title { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--accent); }
.post-summary ul { font-size: 1rem; }

@media (max-width: 63.99em) {
  .post-toc { padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; }
}

/* ---------- Vídeo no post ---------- */
.post-video { margin: 2.25em 0; }
.post-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.post-video__frame img,
.post-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.post-video__frame img { transition: transform 0.8s var(--ease-out), filter 0.4s; filter: brightness(0.8); }
.post-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.post-video__play span {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--color-signal);
  box-shadow: 0 0 40px rgba(0, 253, 0, 0.35);
  transition: transform var(--dur-base) var(--ease-out);
}
.post-video__play span::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 16px solid var(--color-on-signal);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.post-video__frame:hover img { transform: scale(1.03); filter: brightness(0.9); }
.post-video__frame:hover .post-video__play span { transform: scale(1.08); }
.post-video__play:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 12px; }
.post-video figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.post-video figcaption a { color: var(--accent); margin-left: 0.25rem; }

/* ---------- Páginas de erro ---------- */
.error-page { min-height: 70vh; display: grid; align-content: center; }
.error-page .blog-hero__title { margin-top: var(--space-md); max-width: 16ch; }
.error-page__actions { justify-content: flex-start !important; margin-top: var(--space-xl); }
.error-page + .blog-list .section-head__title { margin-bottom: var(--space-xl); }

/* ---------- Páginas de cidade ---------- */
.post-city__actions { margin-top: var(--space-lg); }
.city-list { margin-top: 2.5em; }
.city-list h2 { margin: 0 0 .75em; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.2; }
.city-list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .75rem; list-style: none; margin: 0; padding: 0; }
.city-list__grid a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.city-list__name { font-family: "Source Serif 4", Georgia, serif; font-weight: 300; font-size: 1.3rem; line-height: 1.25; }
.city-list__uf { font-size: .75rem; letter-spacing: .14em; color: var(--text-muted); text-transform: uppercase; }
.city-list__grid a:hover, .city-list__grid a:focus-visible { border-color: var(--color-signal); background: rgba(0, 253, 0, .04); }
.city-list__grid a:hover .city-list__uf { color: var(--accent); }
.adm-hint-public { margin-top: 1rem; font-size: var(--fs-small); color: var(--text-muted); }
.adm-hint-public a { color: var(--accent); }
