/* ============================================
   CLÍNICA ESSENTIA — Blog Styles
   Importado em: index.html, blog.html, post.html
   ============================================ */

/* ---- BLOG HEADER (branco, sempre visível) ---- */
.header--blog {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(0,0,0,.08);
  padding-block: 1rem;
}

.header--blog .logo__name { color: var(--forest); }
.header--blog .logo__sub  { color: var(--gold); }
.header--blog .logo__emblem { color: var(--gold); }

.header--blog .nav__link {
  color: rgba(26,46,28,.65);
}

.header--blog .nav__link:hover,
.header--blog .nav__link.active {
  color: var(--forest);
}

.header--blog .nav__link::after { background: var(--gold); }
.header--blog .hamburger span   { background: var(--forest); }

.header--blog.scrolled {
  background: rgba(255,255,255,0.97) !important;
}

/* ---- SKELETON SHIMMER ---- */
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position:  700px 0; }
}

.skeleton-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
}

.skeleton-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(90deg,
    var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 700px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-card__img--compact { aspect-ratio: 16/7; }

.skeleton-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.skeleton-card__line {
  height: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
    var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 700px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-card__line--short  { width: 38%; }
.skeleton-card__line--medium { width: 65%; }
.skeleton-card__line--full   { width: 100%; }

/* ---- POST CARDS ---- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,.12);
}

.post-card__img-wrap {
  overflow: hidden;
  flex-shrink: 0;
  background: var(--forest-mid);
  display: block;
  height: 220px;
}

.post-card__img-wrap--compact { height: 200px; }

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.post-card:hover .post-card__img { transform: scale(1.04); }

.post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--forest-mid), var(--forest-lt));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__placeholder svg {
  width: 40px;
  height: 40px;
  fill: rgba(192,154,91,.3);
}

.post-card__body {
  padding: 1.375rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .625rem;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: .625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: .875rem;
  color: var(--charcoal-lt);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .875rem;
  border-top: 1px solid var(--cream-dark);
  margin-top: 1rem;
}

.post-card__link {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FAF7F0 !important;
  background: #80685C !important;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  text-decoration: none;
}

.post-card__link:hover {
  background: #6a5248 !important;
  color: #FAF7F0 !important;
}

.post-card__link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-card__read-time {
  font-size: .75rem;
  color: var(--stone);
}

/* ---- FADE-UP ANIMATION ---- */
.card-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

.card-animate.visible {
  opacity: 1;
  transform: none;
}

/* ---- BLOG PREVIEW (index.html) ---- */
.blog-preview {
  background: var(--cream);
  padding-block: clamp(5rem, 9vw, 8rem);
}

.blog-preview__header {
  text-align: center;
}

.blog-preview__header .section__subtitle {
  text-align: center;
  margin-inline: auto;
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.blog-preview__footer {
  text-align: center;
  margin-top: 3rem;
}

/* ---- BLOG HERO ---- */
.blog-hero {
  background: var(--forest);
  padding-top: calc(clamp(5rem, 9vw, 7rem) + 72px);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(47,82,51,.55) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-block: .75rem 1rem;
}

.blog-hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  color: rgba(245,238,228,.7);
  line-height: 1.8;
}

/* ---- BLOG MAIN ---- */
.blog-main {
  background: var(--warm-white);
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

/* ---- FEATURED POST ---- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: box-shadow var(--t) var(--ease);
}

.featured-post:hover { box-shadow: var(--shadow-lg); }

.featured-post__img-wrap {
  overflow: hidden;
  position: relative;
}

.featured-post__img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
  filter: brightness(.82);
}

.featured-post:hover .featured-post__img { transform: scale(1.04); }

.featured-post__placeholder {
  min-height: 360px;
  background: linear-gradient(135deg, var(--forest-mid), var(--forest-lt));
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-post__placeholder svg {
  width: 56px;
  height: 56px;
  fill: rgba(192,154,91,.25);
}

.featured-post__content {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.featured-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.featured-post__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-post__excerpt {
  font-size: .9375rem;
  color: rgba(245,238,228,.65);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.featured-post__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .75rem;
  color: rgba(245,238,228,.45);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Botão visual dentro do link — sem hover que conflita com o <a> pai */
.featured-post__read-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--forest);
  padding: .875rem 1.875rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background var(--t);
}

.featured-post:hover .featured-post__read-btn {
  background: var(--gold-lt);
}

/* ---- BLOG GRID ---- */
.blog-grid__section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding-block: 1rem;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: .75rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--charcoal-lt);
  border: 1px solid var(--cream-dark);
  background: var(--warm-white);
  cursor: pointer;
  transition: var(--t) var(--ease);
  font-family: var(--font-body);
  gap: .375rem;
}

.pagination__btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pagination__btn:hover:not(:disabled):not(.pagination__btn--active) {
  border-color: var(--forest);
  color: var(--forest);
}

.pagination__btn--active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.pagination__btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.pagination__dots {
  font-size: .9rem;
  color: var(--stone);
  padding-inline: .25rem;
  user-select: none;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 85;
  width: 44px;
  height: 44px;
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), background var(--t);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover { background: var(--forest-mid); }

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- STATE CARDS (error/empty) ---- */
.state-card {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
}

.state-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }

.state-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: .625rem;
}

.state-card__text {
  font-size: .9375rem;
  color: var(--charcoal-lt);
  margin-bottom: 1.5rem;
}

/* ---- POST PAGE ---- */
.post-page {
  background: var(--warm-white);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

/* Breadcrumb — deve vir logo após o header fixo */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--charcoal-lt);
  flex-wrap: wrap;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-top: calc(72px + 1.25rem);
  padding-bottom: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
}

.breadcrumb a { color: var(--charcoal-lt); transition: color var(--t); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb__sep { color: var(--stone); font-size: .6rem; }
.breadcrumb__current {
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Post header */
.post-header__img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: block;
}

.post-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .8125rem;
  color: var(--stone);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--cream-dark);
}

.post-header__meta-item {
  display: flex;
  align-items: center;
  gap: .375rem;
}

.post-header__meta-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

/* Like button */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-full);
  padding: .375rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--charcoal-lt);
  cursor: pointer;
  transition: var(--t);
  font-family: var(--font-body);
}

.like-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: var(--t);
}

.like-btn:hover,
.like-btn.liked {
  border-color: #e05a7a;
  color: #e05a7a;
}

.like-btn.liked svg {
  fill: #e05a7a;
  stroke: #e05a7a;
}

/* Post content */
.post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--charcoal);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-block: 2.5rem 1rem;
  line-height: 1.25;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--charcoal);
  margin-block: 2rem .875rem;
  line-height: 1.3;
}

.post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--charcoal);
  text-transform: uppercase;
  margin-block: 1.75rem .75rem;
}

.post-content p { margin-bottom: 1.5rem; color: var(--charcoal-lt); }

.post-content ul,
.post-content ol {
  margin-block: .75rem 1.5rem;
  padding-left: 1.75rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: .5rem;
  color: var(--charcoal-lt);
  line-height: 1.75;
}

.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.75rem;
  margin-block: 2rem;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--charcoal);
  margin-bottom: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-block: 1.5rem;
  display: block;
}

.post-content img.aligncenter { margin-inline: auto; }
.post-content img.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.post-content img.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

.post-content figure { margin-block: 2rem; }

.post-content figcaption {
  font-size: .8125rem;
  color: var(--stone);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}

.post-content pre {
  background: var(--charcoal);
  color: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.65;
  margin-block: 1.5rem;
}

.post-content code {
  background: var(--cream-dark);
  color: var(--forest);
  padding: .15em .4em;
  border-radius: 3px;
  font-size: .875em;
  font-family: 'Courier New', monospace;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--cream-dark);
  margin-block: 2.5rem;
}

.post-content a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}

.post-content a:hover { color: var(--gold); }

.post-content::after { content: ''; display: table; clear: both; }

/* TOC inline (antes do primeiro H2) */
.post-toc-inline {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.post-toc__title {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .875rem;
}

.post-toc__list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.post-toc__item { font-size: .875rem; }

.post-toc__item a {
  color: var(--charcoal-lt);
  text-decoration: none;
  transition: color var(--t);
  display: block;
  line-height: 1.5;
}

.post-toc__item a:hover { color: var(--forest); }
.post-toc__item--h3 { padding-left: 1rem; }

/* Post footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-footer__share {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.post-footer__share-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--t);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  text-decoration: none;
}

.share-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.share-btn--wa  { background: #25D366; color: #fff; }
.share-btn--wa:hover  { background: #1ebe5d; }
.share-btn--li  { background: #0A66C2; color: #fff; }
.share-btn--li:hover  { background: #0958a8; }
.share-btn--copy {
  background: var(--warm-white);
  color: var(--charcoal);
  border-color: var(--cream-dark);
}
.share-btn--copy:hover { border-color: var(--forest); color: var(--forest); }

.post-footer__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  transition: color var(--t);
  text-decoration: none;
}

.post-footer__back:hover { color: var(--forest); }

.post-footer__back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  z-index: 200;
  pointer-events: none;
  transition: width .08s linear;
}

/* Text selection share popup */
.selection-popup {
  position: fixed;
  z-index: 150;
  background: var(--charcoal);
  border-radius: var(--radius-sm);
  padding: .375rem;
  display: flex;
  gap: .25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  box-shadow: var(--shadow-lg);
}

.selection-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.selection-popup__btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--cream);
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--t);
  font-family: var(--font-body);
}

.selection-popup__btn:hover { background: rgba(255,255,255,.1); }
.selection-popup__btn svg { width: 13px; height: 13px; fill: currentColor; }

/* ---- SIDEBAR ---- */
.post-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-cta {
  background: var(--forest);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.sidebar-cta__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: .625rem;
}

.sidebar-cta__text {
  font-size: .875rem;
  color: rgba(245,238,228,.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.sidebar-toc {
  background: var(--warm-white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 1.375rem 1.25rem;
}

.sidebar-toc__title {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .875rem;
}

.sidebar-toc__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sidebar-toc__item { font-size: .8125rem; }

.sidebar-toc__item a {
  color: var(--charcoal-lt);
  text-decoration: none;
  display: block;
  padding-block: .2rem;
  padding-left: .625rem;
  border-left: 2px solid transparent;
  transition: border-color var(--t), color var(--t);
  line-height: 1.45;
}

.sidebar-toc__item a:hover,
.sidebar-toc__item a.toc-active {
  color: var(--forest);
  border-left-color: var(--gold);
}

.sidebar-toc__item--h3 a { padding-left: 1.375rem; }

.sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  transition: color var(--t);
  text-decoration: none;
}

.sidebar-back:hover { color: var(--forest); }

.sidebar-back svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- COMMENTS ---- */
.comments-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-dark);
}

.comments-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.comment {
  display: flex;
  gap: 1rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--cream-dark);
}

.comment:last-child { border-bottom: none; }

.comment__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-lt);
  flex-shrink: 0;
  user-select: none;
}

.comment__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .375rem;
}

.comment__author {
  font-size: .875rem;
  font-weight: 700;
  color: var(--charcoal);
}

.comment__date {
  font-size: .75rem;
  color: var(--stone);
}

.comment__text {
  font-size: .9375rem;
  color: var(--charcoal-lt);
  line-height: 1.75;
}

.comment-form {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-md);
}

.comment-form__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.375rem;
}

.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-form__group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1rem;
}

.comment-form__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.comment-form__label span { color: var(--gold); }

.comment-form__input {
  padding: .75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9375rem;
  color: var(--charcoal);
  background: var(--warm-white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  width: 100%;
}

.comment-form__input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(26,46,28,.08);
}

.comment-form__input.error { border-color: #c0392b; }

.comment-form__textarea { resize: vertical; min-height: 110px; }

.comment-form__error {
  font-size: .75rem;
  color: #c0392b;
}

.comment-form__note {
  font-size: .8rem;
  color: var(--charcoal-lt);
  margin-top: .75rem;
}

.comment-success {
  padding: 1.125rem 1.5rem;
  background: rgba(26,46,28,.08);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--forest);
  font-weight: 700;
  text-align: center;
  margin-top: 1rem;
}

/* ---- RELATED POSTS ---- */
.related-posts {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-dark);
}

.related-posts__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---- MOBILE MENU (blog pages) ---- */
@media (max-width: 768px) {
  .header--blog .nav {
    background: var(--warm-white) !important;
  }
  /* Override style-v2 que coloca links em --cream no mobile */
  .header--blog .nav .nav__link {
    color: var(--charcoal) !important;
  }
  .header--blog .nav .nav__link:hover {
    color: var(--forest) !important;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__img { min-height: 260px; height: 260px; }
  .featured-post__placeholder { min-height: 260px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr 260px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-preview__grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .sidebar-toc { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .comment-form__row { grid-template-columns: 1fr; }
  .post-footer { flex-direction: column; align-items: flex-start; }
  .breadcrumb__current { max-width: 200px; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Aviso do índice do blog: só aparece se os artigos novos da plataforma
   não puderem ser carregados. O acervo continua listado abaixo. */
.blog-aviso {
  margin: 0 0 2rem;
  padding: .875rem 1.125rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  background: var(--champagne);
  color: var(--charcoal-lt);
  font-size: .9375rem;
}

.blog-aviso a { color: var(--brown); text-decoration: underline; }
