/* ==========================================
              BLOG PAGES
========================================== */

.blog-hero {
  background: var(--fashion-cream);
}

/* ---------- LIST PAGE ---------- */

.blog-listing {
  max-width: var(--container);
  margin: auto;
  padding: var(--space-7) var(--space-4);
}

.blog-listing > h2 {
  margin-bottom: var(--space-5);
}

.blog-grid {
  display: grid;
  gap: var(--space-5);
}

.blog-card {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--fashion-beige);
}

.blog-card-body {
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.blog-card-body span {
  color: var(--fashion-gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card-body h2 {
  font-size: 1.35rem;
}

.blog-card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- ARTICLE / DETAIL PAGE ---------- */

.blog-post-page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-7) 0;
}

.blog-post-header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.blog-post-header span {
  color: var(--fashion-gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.blog-post-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.blog-post-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  background: var(--fashion-beige);
}

.blog-post-body {
  display: grid;
  gap: var(--space-4);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
}

.blog-post-body h2 {
  font-size: 1.6rem;
  margin-top: var(--space-4);
}

.blog-post-body h3 {
  font-size: 1.3rem;
  margin-top: var(--space-3);
}

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

.blog-post-body img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.4em;
  list-style: revert;
}

/* ==========================================
              TABLET
========================================== */

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

/* ==========================================
              DESKTOP
========================================== */

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

/* ---------- BLOG POST ELEMENTS ---------- */

.blog-post-figure {
  margin: 24px 0;
}

.blog-post-figure figcaption {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-top: 8px;
}

.blog-post-author-bio {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e6e9ee;
}

.related-posts h2 {
  margin-bottom: 16px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.related-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.related-post-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.related-post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.related-post-card__body {
  padding: 12px 14px;
}

.related-post-card__body span {
  font-size: 12px;
  color: #8a8f98;
}

.related-post-card__body h3 {
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.35;
}

/* ---------- TABLE OF CONTENTS ---------- */

.blog-toc {
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #f9f8fc;
  padding: 18px 20px;
  margin: 24px 0 32px;
}

.blog-toc__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fashion-gold, #b48a3f);
  margin-bottom: 10px;
}

.blog-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.blog-toc a {
  text-decoration: none;
  color: var(--text-main, #1a1a1a);
  font-size: 14.5px;
  line-height: 1.4;
}

.blog-toc a:hover {
  text-decoration: underline;
  color: var(--fashion-gold, #b48a3f);
}

.toc-item--h3 {
  padding-left: 18px;
  font-size: 13.5px;
}

/* Offset anchored scroll position so headings aren't hidden under a sticky navbar */

.blog-post-body h2[id],
.blog-post-body h3[id] {
  scroll-margin-top: 90px;
}

/* Prevent accidentally-pasted H1 tags inside the article body
   from rendering at oversized browser-default size. */

.blog-post-body h1 {
  font-size: 1.6rem;
  margin-top: var(--space-4);
}
/* ---------- BLOG POST SKELETON (reduces layout shift while loading) ---------- */

.blog-post-skeleton {
  padding: var(--space-7) 0;
}

.skeleton-line,
.skeleton-image {
  background: linear-gradient(90deg, #eceef1 25%, #f5f6f8 37%, #eceef1 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm, 6px);
}

.skeleton-line--eyebrow {
  width: 140px;
  height: 14px;
  margin-bottom: var(--space-3);
}

.skeleton-line--title {
  width: 100%;
  height: 44px;
  margin-bottom: 10px;
}

.skeleton-line--title-short {
  width: 60%;
  margin-bottom: var(--space-3);
}

.skeleton-line--meta {
  width: 180px;
  height: 14px;
  margin-bottom: var(--space-6);
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: var(--space-6);
}

.skeleton-line--text {
  width: 100%;
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line--text-short {
  width: 70%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
