/* ═══════════════════════════════════════════════════
   BLOG — INOVAMENTE PSICOLOGIA E SAÚDE
   ═══════════════════════════════════════════════════ */

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

.skeleton {
  background: linear-gradient(90deg, #eaeaea 25%, #f5f5f5 50%, #eaeaea 75%);
  background-size: 700px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
  display: block;
}

/* ─── BLOG CARD (shared) ──────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__img-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.blog-card:hover .blog-card__img { transform: scale(1.05); }

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

.blog-card__placeholder svg { opacity: .4; }

.blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-size: .72rem;
  color: var(--text-light);
  margin-bottom: .45rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .5rem;
}

.blog-card__excerpt {
  font-size: .87rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.blog-card__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: color var(--ease);
}

.blog-card__link:hover { color: var(--teal-dark); }

.blog-card__read-time {
  font-size: .72rem;
  color: var(--text-light);
}

/* Skeleton card */
.blog-card--sk .sk-img {
  width: 100%;
  aspect-ratio: 16/9;
}

.blog-card--sk .blog-card__body > * { margin-bottom: .55rem; }
.blog-card--sk .sk-date  { height: 11px; width: 70px; }
.blog-card--sk .sk-t1    { height: 16px; width: 90%; }
.blog-card--sk .sk-t2    { height: 16px; width: 65%; }
.blog-card--sk .sk-e1    { height: 12px; width: 100%; }
.blog-card--sk .sk-e2    { height: 12px; width: 78%; margin-bottom: auto; }
.blog-card--sk .sk-link  { height: 12px; width: 80px; margin-top: 1rem; }

/* ─── HOME PREVIEW SECTION ────────────────────────── */
.blog-preview {
  background: var(--off-white);
  padding: var(--gap-2xl) 0;
}

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

.blog-preview__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.blog-preview__label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .65rem;
}

.blog-preview__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .7rem;
  line-height: 1.25;
}

.blog-preview__desc {
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: .95rem;
}

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

.blog-preview__grid[data-count="1"] {
  grid-template-columns: minmax(0, 420px);
}

.blog-preview__grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 460px));
}

.blog-preview__grid .blog-card__img-wrap { aspect-ratio: 4/3; }

.blog-preview__cta {
  text-align: center;
  margin-top: var(--gap-lg);
}

@media (max-width: 900px) {
  .blog-preview__grid,
  .blog-preview__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .blog-preview__grid,
  .blog-preview__grid[data-count="2"] { grid-template-columns: 1fr; }
  .blog-preview__grid[data-count="1"]  { grid-template-columns: 1fr; }
}

/* ─── HEADER OVERRIDE (blog pages) ───────────────── */
.header--solid {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm) !important;
}

.header--solid .nav__link {
  color: #0c2424 !important;
}

.header--solid .nav__link:hover,
.header--solid .nav__link.active {
  color: var(--teal) !important;
}

.header--solid .header__logo-img { filter: none !important; }

.header--solid .hamburger span { background: #0c2424 !important; }

.header--solid .nav__close-btn { color: #0c2424; }

/* Force mobile nav background on blog pages */
@media (max-width: 960px) {
  .header--solid .nav {
    background: var(--white) !important;
  }
  .header--solid .nav__link { color: #0c2424 !important; }
}

/* ─── BLOG HERO ──────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #005f5f 0%, var(--teal) 100%);
  color: white;
  padding: calc(var(--header-height) + 3.5rem) 0 3.5rem;
  text-align: center;
}

.blog-hero__label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
}

.blog-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 700;
  margin-bottom: .75rem;
  line-height: 1.2;
}

.blog-hero__desc {
  font-size: .97rem;
  opacity: .82;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── BLOG LISTING MAIN ──────────────────────────── */
.blog-main {
  background: var(--off-white);
  padding: var(--gap-xl) 0 var(--gap-2xl);
  min-height: 50vh;
}

/* ─── FEATURED POST ──────────────────────────────── */
.blog-featured {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: var(--gap-xl);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease);
}

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

.blog-featured__img-wrap { overflow: hidden; min-height: 280px; }

.blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.blog-featured:hover .blog-featured__img { transform: scale(1.04); }

.blog-featured__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, var(--teal-soft) 0%, var(--teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured__body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 20px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-featured__meta {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: .65rem;
}

.blog-featured__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured__excerpt {
  color: var(--text-light);
  line-height: 1.65;
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-featured__read-time {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: .4rem;
}

@media (max-width: 860px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__img-wrap { aspect-ratio: 4/3; min-height: unset; }
  .blog-featured__body { padding: 1.75rem 1.5rem; }
}

/* ─── POSTS GRID ──────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-grid .blog-card__img-wrap { aspect-ratio: 16/9; }

.blog-grid .blog-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease, transform .5s ease, box-shadow var(--ease);
}

.blog-grid .blog-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ─── BLOG STATES ─────────────────────────────────── */
.blog-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-light);
}

.blog-state svg { display: block; margin: 0 auto 1.25rem; opacity: .35; }

.blog-state h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: .5rem;
}

.blog-state p { margin-bottom: 1.5rem; font-size: .9rem; }

/* ─── PAGINATION ──────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: var(--gap-xl);
  flex-wrap: wrap;
}

.blog-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  font-family: var(--font-sans);
  line-height: 1;
  min-width: 40px;
  justify-content: center;
}

.blog-pagination__btn:hover:not(:disabled):not(.blog-pagination__btn--active) {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.blog-pagination__btn--active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  cursor: default;
}

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

.blog-pagination__dots {
  color: var(--text-light);
  font-size: .83rem;
  padding: 0 .2rem;
  user-select: none;
}

/* ─── BACK TO TOP ────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 5.8rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: opacity .25s ease, transform .25s ease, background var(--ease);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  z-index: 800;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--teal-dark); }

/* ─── POST PAGE ──────────────────────────────────── */
.post-main {
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: var(--gap-2xl);
  background: var(--white);
  min-height: 60vh;
}

/* ─── BREADCRUMB ──────────────────────────────────── */
.breadcrumb {
  padding: .75rem 0 1.25rem;
  font-size: .78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--ease);
}

.breadcrumb a:hover { color: var(--teal-dark); }

.breadcrumb__sep {
  margin: 0 .45rem;
  opacity: .5;
}

.breadcrumb__current {
  color: var(--text);
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

/* ─── POST LAYOUT ────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar { display: none; }
}

/* ─── READING PROGRESS BAR ────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--teal);
  z-index: 2000;
  transition: width .08s linear;
  pointer-events: none;
}

/* ─── POST FEATURED IMAGE ────────────────────────── */
.post-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 1.75rem;
}

/* ─── POST TITLE ─────────────────────────────────── */
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.22;
  margin-bottom: 1.25rem;
}

/* ─── POST META ──────────────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.post-meta__sep { opacity: .35; }

.post-like {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .28rem .75rem;
  font-size: .78rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--ease);
  font-family: var(--font-sans);
  margin-left: auto;
}

.post-like:hover { border-color: #e05555; color: #e05555; background: #fef2f2; }
.post-like.liked { border-color: #e05555; color: #e05555; background: #fef2f2; }
.post-like.liked .like-icon { fill: #e05555; stroke: #e05555; }

/* ─── TOC ─────────────────────────────────────────── */
.toc-box {
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
}

.toc-box__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .7rem;
}

.toc-box ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc-box li {
  font-size: .82rem;
  margin-bottom: .32rem;
  line-height: 1.45;
  color: var(--text);
}

.toc-box a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--ease);
}

.toc-box a:hover { color: var(--teal); }

.toc-box .toc-h3 { padding-left: 1rem; font-size: .78rem; }

/* ─── POST CONTENT ────────────────────────────────── */
.post-content {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.25rem 0 .7rem;
  line-height: 1.3;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 .55rem;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.4rem 0 .45rem;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-content p { margin-bottom: 1.2rem; }
.post-content p:last-child { margin-bottom: 0; }

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.post-content li { margin-bottom: .4rem; }

.post-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  padding: 1rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--text-light);
}

.post-content blockquote p { margin-bottom: 0; }

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

.post-content .aligncenter { margin: 1.25rem auto; }
.post-content .alignleft   { float: left; margin: .5rem 1.5rem .5rem 0; }
.post-content .alignright  { float: right; margin: .5rem 0 .5rem 1.5rem; }

.post-content pre {
  background: #1a2e2e;
  color: #a8d8d8;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: .845rem;
  line-height: 1.65;
  margin: 1.4rem 0;
  -webkit-overflow-scrolling: touch;
}

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

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

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

.post-content figure { margin: 1.5rem 0; }

.post-content figcaption {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .45rem;
}

.post-content a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

/* ─── POST FOOTER ────────────────────────────────── */
.post-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2.25rem;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ease);
  font-family: var(--font-sans);
}

.post-share-btn:hover { border-color: var(--teal); color: var(--teal); }
.post-share-btn.copied { border-color: #1a7a1a; color: #1a7a1a; }

/* ─── TEXT SELECTION POPUP ────────────────────────── */
.selection-popup {
  position: fixed;
  background: #1a2e2e;
  color: white;
  border-radius: var(--radius-sm);
  padding: .35rem .5rem;
  display: none;
  gap: .4rem;
  z-index: 1500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}

.selection-popup.is-active { display: flex; }

.selection-popup__btn {
  background: none;
  border: 1px solid rgba(255,255,255,.22);
  color: white;
  border-radius: 4px;
  padding: .2rem .55rem;
  font-size: .72rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background var(--ease);
  line-height: 1.5;
}

.selection-popup__btn:hover { background: rgba(255,255,255,.15); }

/* ─── RELATED POSTS ──────────────────────────────── */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.35rem;
  color: var(--text);
}

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

.related-posts__grid .blog-card__img-wrap { aspect-ratio: 16/9; }

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

/* ─── SIDEBAR ─────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1px solid var(--border);
}

.sidebar-widget__title {
  font-family: var(--font-serif);
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-cta { background: var(--teal-soft); border-color: var(--teal-mid); }

.sidebar-cta__desc {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

/* ─── COMMENTS ───────────────────────────────────── */
.post-comments {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-comments__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: .25rem;
}

.post-comments__count {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: block;
}

.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }

.comment-item {
  display: flex;
  gap: .9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--teal-mid);
}

.comment-meta {
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: .35rem;
}

.comment-author {
  font-weight: 600;
  color: var(--text);
  margin-right: .5rem;
}

.comment-text {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text);
}

.comment-form-box {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.comment-form-box__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.15rem;
}

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

@media (max-width: 520px) {
  .comment-row { grid-template-columns: 1fr; }
}

.comment-form-box label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .32rem;
}

.comment-form-box input,
.comment-form-box textarea {
  width: 100%;
  padding: .58rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease);
  box-sizing: border-box;
  -webkit-appearance: none;
}

.comment-form-box input:focus,
.comment-form-box textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.comment-form-box textarea {
  resize: vertical;
  min-height: 100px;
}

.comment-msg {
  font-size: .82rem;
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: .75rem;
  display: none;
}

.comment-msg.success { background: #e6f4ea; color: #1a6e2e; display: block; }
.comment-msg.error   { background: var(--red-soft); color: var(--red-dark); display: block; }
