/* ── Post-specific tokens ────────────────────────────────── */

:root {
  --post-body-color: #505050;
  --post-heading-color: #111827;
  --post-heading-alt: #1f2937;
  --post-muted-color: #6b7280;
  --post-link-color: #7B3626;
  --post-link-hover: #5c2819;
  --post-border-light: #e5e7eb;
  --post-code-bg: #f3f4f6;
  --post-line-height: 1.8;
}

/* ── Floating share bar ──────────────────────────────────── */

.post-float-share {
  position: fixed;
  left: max(12px, calc(50% - 720px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.post-float-share.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .post-float-share { display: none; }
}

.post-float-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--post-muted-color);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.post-float-btn {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.post-float-btn:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

/* ── Page shell ──────────────────────────────────────────── */

.post-page {
  background: var(--color-bg);
  min-height: 60vh;
  padding: 48px 0 80px;
}

.post-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── 2-col grid: article + sidebar ──────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
  }
}

/* ── Main article ────────────────────────────────────────── */

.post-article {
  min-width: 0;
  position: relative;
}

@media (min-width: 1024px) {
  .post-article {
    padding-right: 40px;
  }
  .post-article::after {
    content: "";
    position: absolute;
    right: 0;
    top: 96px;
    bottom: 0;
    width: 1px;
    background: #f3f3f3;
  }
}

/* ── Category badge ──────────────────────────────────────── */

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.post-category-badge {
  display: inline-block;
  background: #f7ede8;
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.post-category-badge:hover { background: #eedad2; }

/* ── Breadcrumb ──────────────────────────────────────────── */

.post-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.post-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.post-breadcrumb a:hover {
  color: var(--color-text);
}

.post-breadcrumb svg {
  flex-shrink: 0;
  color: #c9a898;
}

.post-breadcrumb-current {
  color: #c9a898;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Title ───────────────────────────────────────────────── */

.post-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 56rem;
}

@media (min-width: 640px) {
  .post-title { font-size: var(--text-3xl); }
}

@media (min-width: 1024px) {
  .post-title { font-size: var(--text-4xl); }
}

/* ── Author / meta bar ───────────────────────────────────── */

.post-meta-bar {
  border-top: 1px solid var(--post-border-light);
  padding-top: 24px;
  margin-bottom: 32px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--post-border-light);
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-author-info {
  flex: 1;
  min-width: 0;
}

.post-author-name {
  display: block;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.post-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--post-muted-color);
  margin-top: 4px;
}

.post-author-role {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  background: #f7ede8;
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.post-meta-dot {
  font-weight: var(--weight-semibold);
  color: #c9a898;
}

.post-action-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.post-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #6b7280;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.post-chip--love:hover,
.post-chip--love.is-active   { background: #fff0f0; color: #f87171; }
.post-chip--love.is-active svg { fill: currentColor; }
.post-chip--save:hover,
.post-chip--save.is-active   { background: #f7ede8; color: var(--post-link-color); }
.post-chip--save.is-active svg { fill: currentColor; }
.post-chip--share:hover  { background: #f7ede8; color: var(--post-link-color); }
.post-chip--love,
.post-chip--save,
.post-chip--comment      { gap: 6px; width: auto; padding: 0 10px 0 6px; border-radius: 999px; }
.post-chip--comment:hover { background: #f7ede8; color: var(--post-link-color); }

.post-chip-count,
.post-chip-like-count,
.post-chip-save-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
  min-width: 1rem;
  text-align: left;
}

/* ── Featured image ──────────────────────────────────────── */

.post-hero-img {
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-surface);
}

.post-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: none !important;
  aspect-ratio: unset !important;
}

/* ── Content body ────────────────────────────────────────── */

.post-body {
  font-size: var(--post-body-size, 1rem);
  color: var(--post-body-color);
  line-height: var(--post-line-height);
  max-width: 700px;
  margin-bottom: 48px;
  padding: 0 20px;
}

.post-body h2 {
  color: var(--post-heading-color);
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.post-body h3 {
  color: var(--post-heading-alt);
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.post-body h4 {
  color: var(--post-heading-alt);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.post-body h2[id],
.post-body h3[id],
.post-body h4[id] {
  scroll-margin-top: 6.5rem;
}

.post-body p { margin: 1.25rem 0; }

.post-body ul {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
  list-style: outside;
}

.post-body ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
  list-style: decimal;
}

.post-body li { margin: 0.5rem 0; }

.post-body li > ul,
.post-body li > ol { margin: 0.375rem 0; }

.post-body strong {
  color: var(--post-heading-color);
  font-weight: 700;
}

.post-body em { font-style: italic; }

.post-body a {
  color: var(--post-link-color);
  text-decoration: underline;
}

.post-body a:hover { color: var(--post-link-hover); }

.post-body img {
  border-radius: 12px;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  display: block;
}

.post-body figure {
  max-width: 100%;
  margin: 2rem 0;
  overflow: hidden;
}

.post-body figcaption {
  color: var(--post-muted-color);
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.post-body blockquote {
  color: var(--post-muted-color);
  border-left: 4px solid var(--post-link-color);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-style: italic;
}

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

.post-body pre {
  background: var(--post-code-bg);
  border-radius: 8px;
  margin: 1.5rem 0;
  padding: 1rem;
  font-size: 0.875rem;
  overflow-x: auto;
}

.post-body code {
  background: var(--post-code-bg);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  font-size: 0.875em;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

.post-body table {
  border-collapse: collapse;
  max-width: 100%;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
}

.post-body td,
.post-body th {
  border: 1px solid var(--post-border-light);
  padding: 0.5rem 0.75rem;
}

.post-body iframe { max-width: 100%; }

/* ── Baca Juga ───────────────────────────────────────────── */

.post-baca-juga {
  background: var(--color-surface);
  border-left: 3px solid var(--post-link-color);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 2rem 0;
}

.post-baca-juga-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--post-heading-alt);
  margin-bottom: 10px;
}

.post-baca-juga ul {
  margin: 0 !important;
  padding-left: 1.1rem !important;
  list-style: disc !important;
}

.post-baca-juga li {
  margin: 0.3rem 0 !important;
}

.post-baca-juga a {
  color: var(--post-link-color) !important;
  font-weight: 500;
  text-decoration: none !important;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.post-baca-juga a:hover {
  text-decoration: underline !important;
  color: var(--post-link-hover) !important;
}

/* ── TOC ─────────────────────────────────────────────────── */

.post-toc {
  background: var(--color-surface);
  border: 1px solid var(--post-border-light);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 2rem;
}

.post-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #374151;
  user-select: none;
}

.post-toc-header::-webkit-details-marker { display: none; }

.post-toc-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--post-link-color);
}

.post-toc-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--post-link-color);
}

details.post-toc[open] .post-toc-chevron {
  transform: rotate(180deg);
}

.post-toc-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--post-border-light);
}

.post-toc-list li { margin: 0; }

.post-toc-h2 { padding-left: 0; }
.post-toc-h3 { padding-left: 1rem; }
.post-toc-h4 { padding-left: 2rem; }

.post-toc-list a {
  display: block;
  padding: 5px 0;
  font-size: var(--text-sm);
  color: var(--post-muted-color);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.post-toc-list a:hover { color: var(--post-link-color); }

/* ── Promo banner ────────────────────────────────────────── */

.post-promo-banner {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.post-promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
  transition: opacity 0.2s;
}

.post-promo-banner:hover img { opacity: 0.92; }

/* ── Tags ────────────────────────────────────────────────── */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.post-tag {
  display: inline-block;
  border: 1px solid var(--post-border-light);
  background: #fff;
  color: var(--color-muted);
  font-size: var(--text-sm);
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.post-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Share bar ───────────────────────────────────────────── */

.post-sharebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--post-border-light);
}

.post-sharebar-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.post-sharebar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-share-btn {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.post-share-btn:hover { opacity: 0.8; }

/* ── Prev / Next navigation ──────────────────────────────── */

.post-prevnext {
  border-top: 1px solid var(--post-border-light);
  padding-top: 24px;
  margin-bottom: 48px;
}

.post-prevnext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  divide-x: 1px solid var(--post-border-light);
}

.post-prevnext-prev {
  padding-right: 24px;
  border-right: 1px solid var(--post-border-light);
}

.post-prevnext-next {
  padding-left: 24px;
}

.post-prevnext-link {
  display: block;
  text-decoration: none;
}

.post-prevnext-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--post-link-color);
  margin-bottom: 8px;
}

.post-prevnext-label--right {
  justify-content: flex-end;
}

.post-prevnext-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.post-prevnext-title--right { text-align: right; }

.post-prevnext-link:hover .post-prevnext-title { color: var(--post-link-color); }

/* ── Related articles ────────────────────────────────────── */

.post-related {
  border-top: 1px solid var(--post-border-light);
  padding-top: 40px;
}

.post-related-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin: 0 0 24px;
}

.post-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .post-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-rel-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--post-border-light);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-rel-card:hover {
  box-shadow: 0 6px 20px rgba(108, 78, 49, 0.12);
  transform: translateY(-2px);
}

.post-rel-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
  flex-shrink: 0;
}

.post-rel-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s;
}

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

.post-rel-placeholder {
  width: 100%;
  height: 100%;
  background: #f7ede8;
}

.post-rel-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-rel-date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
}

.post-rel-heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.post-rel-card:hover .post-rel-heading { color: var(--color-primary); }

/* ── Sidebar ─────────────────────────────────────────────── */

.post-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .post-sidebar {
    display: block;
  }
}

.post-sidebar-inner {
  position: sticky;
  top: 96px;
}

.post-sidebar-section-head {
  margin-bottom: 14px;
}

.post-sidebar-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 6px;
  display: block;
}

.post-sidebar-title-bar {
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--post-link-color);
}

/* ── Follow Us ───────────────────────────────────────────── */

.post-sidebar-follow {
  margin-bottom: 32px;
}

.post-follow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.post-follow-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--post-border-light);
  border-radius: 12px;
  padding: 10px 12px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.post-follow-card:hover {
  border-color: #d1d5db;
  background: #f9f9f9;
}

.post-follow-icon {
  flex-shrink: 0;
  display: flex;
}

.post-follow-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.post-follow-count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.post-follow-name {
  font-size: 0.75rem;
  color: var(--post-muted-color);
  white-space: nowrap;
}

.post-sidebar-list {
  display: flex;
  flex-direction: column;
}

.post-sidebar-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--post-border-light);
  text-decoration: none;
  transition: none;
}

.post-sidebar-row:last-child { border-bottom: none; }

.post-sidebar-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
}

.post-sidebar-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s;
}

.post-sidebar-row:hover .post-sidebar-thumb img { transform: scale(1.06); }

.post-sidebar-placeholder {
  width: 100%;
  height: 100%;
  background: #f7ede8;
}

.post-sidebar-info {
  flex: 1;
  min-width: 0;
}

.post-sidebar-heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.post-sidebar-row:hover .post-sidebar-heading { color: var(--color-primary); }

.post-sidebar-date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
}

/* ── Comments ────────────────────────────────────────────── */

.post-comments {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--post-border-light);
}

.post-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post-comments-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--post-heading-color);
  margin: 0;
}

.post-comments-count { color: var(--post-link-color); margin-left: 4px; }

.post-comments-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-comments-policy {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--post-muted-color);
  text-decoration: none;
}
.post-comments-policy:hover { color: var(--post-link-color); }

.post-comments-wa {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.post-comments-wa:hover { opacity: 0.9; }

.post-comments-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}
.post-comments-intro img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
}
.post-comments-intro p {
  font-size: 0.875rem;
  color: var(--post-muted-color);
  margin: 0;
  line-height: 1.5;
}

/* form */
.post-comment-form { margin-bottom: 40px; }

.post-comment-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7ede8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--post-muted-color);
  margin-bottom: 12px;
}
.post-comment-reply-bar[hidden] { display: none; }
.post-comment-reply-bar strong { color: var(--post-heading-color); }

.post-comment-reply-cancel {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--post-muted-color);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
}
.post-comment-reply-cancel:hover { color: var(--post-heading-color); }

.post-comment-form-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post-comment-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--post-link-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s;
}

.post-comment-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-comment-label {
  font-size: 0.875rem;
  color: var(--post-muted-color);
  margin: 0 0 2px;
}

.post-comment-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.post-comment-input,
.post-comment-textarea {
  width: 100%;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--post-heading-color);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: background 0.15s;
}
.post-comment-input:focus,
.post-comment-textarea:focus { background: #ececec; }
.post-comment-input::placeholder,
.post-comment-textarea::placeholder { color: #aaa; }

.post-comment-textarea { resize: none; min-height: 90px; }

.post-comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-left: 50px;
}

.post-comment-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin: 0;
  flex: 1;
}

.post-comment-submit {
  background: var(--post-link-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.post-comment-submit:hover { opacity: 0.88; }
.post-comment-submit:disabled { opacity: 0.5; cursor: default; }

/* toggle sembunyikan nama */
.post-comment-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.post-comment-toggle-label {
  font-size: 0.8125rem;
  color: var(--post-muted-color);
}

.post-comment-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.post-comment-toggle-track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.post-comment-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.post-comment-toggle-input:checked + .post-comment-toggle-track {
  background: var(--post-link-color);
}

.post-comment-toggle-input:checked + .post-comment-toggle-track::after {
  transform: translateX(16px);
}

/* list */
.post-comment-list { border-top: 1px solid var(--post-border-light); }

.post-comment-empty {
  font-size: 0.875rem;
  color: var(--post-muted-color);
  padding: 24px 0;
}

.post-comment-item {
  display: flex;
  gap: 12px;
  padding: 18px 0;
}

.post-comment-item-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.post-comment-item-body { flex: 1; min-width: 0; }

.post-comment-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.post-comment-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--post-heading-color);
}

.post-comment-item-date {
  font-size: 0.75rem;
  color: var(--post-muted-color);
}

.post-comment-item-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-comment-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.post-comment-love-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--post-muted-color);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.15s;
}
.post-comment-love-btn:hover { color: #f87171; }
.post-comment-love-btn.is-active { color: #f87171; }

.post-comment-reply-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--post-muted-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.post-comment-reply-btn:hover { color: var(--post-link-color); }

.post-comment-replies {
  margin-left: 48px;
  border-left: 1px solid var(--post-border-light);
  padding-left: 20px;
  margin-top: 0;
}

.post-comment-replies .post-comment-replies {
  margin-left: 36px;
  padding-left: 0;
}

.post-comment-item--reply {
  padding: 14px 0;
}

.post-comment-item--reply:last-child {
  padding-bottom: 4px;
}

/* skeleton */
.post-comment-skeleton {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--post-border-light);
}
.post-comment-skeleton-avatar {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  animation: cmtskel 1.5s ease infinite;
}
.post-comment-skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.post-comment-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: #f0f0f0;
  animation: cmtskel 1.5s ease infinite;
}
@keyframes cmtskel {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.post-comment-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 24px auto 0;
  padding: 9px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--post-link-color);
  background: none;
  border: 1.5px solid var(--post-link-color);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.post-comment-load-more:hover {
  background: var(--post-link-color);
  color: #fff;
}
.post-comment-load-more[hidden] { display: none; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
  .post-page { padding: 32px 0 64px; }
  .post-wrap { padding: 0 20px; }
  .post-comment-name-row { grid-template-columns: 1fr; }
  .post-comment-form-actions { padding-left: 0; }
}
