/* ============================================================
   BLOG ARTICLE — Reusable skeleton for all blog posts
   Clinique LaBeldent · 2026
   ============================================================ */


/* ── HERO ─────────────────────────────────── */

.ba-hero {
  padding: calc(var(--nav-height, 72px) + var(--space-12)) 0 var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

/* Hero with cover image */
.ba-hero--cover {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}
.ba-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ba-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.ba-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.65) 50%, rgba(28, 25, 23, 0.2) 100%);
}
.ba-hero--cover .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.ba-hero--cover .ba-hero-inner {
  padding: var(--space-10) 0 var(--space-12);
}
.ba-hero--cover .ba-hero-title {
  color: #FFFFFF;
}
.ba-hero--cover .ba-hero-title em {
  color: #FFFFFF;
  opacity: 0.7;
}
.ba-hero--cover .ba-hero-sub {
  color: rgba(255, 255, 255, 0.8);
}
.ba-hero--cover .ba-hero-meta {
  color: rgba(255, 255, 255, 0.5);
}

/* Light breadcrumb + eyebrow on dark bg */
.breadcrumb--light a {
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb--light a:hover {
  color: #FFFFFF;
}
.breadcrumb--light span[aria-current] {
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumb--light span[aria-hidden] {
  color: rgba(255, 255, 255, 0.3);
}
.eyebrow--light {
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .ba-hero--cover {
    min-height: 560px;
  }
}

.ba-hero-inner {
  max-width: 720px;
}

.ba-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-4);
}

.ba-hero-meta .ba-readtime::before {
  content: '·';
  margin-right: var(--space-3);
}

.ba-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  font-variation-settings: 'opsz' 36, 'WONK' 0;
  margin-bottom: var(--space-5);
}

.ba-hero-title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
}

@media (min-width: 768px) {
  .ba-hero-title {
    font-size: var(--text-5xl);
    font-variation-settings: 'opsz' 48, 'WONK' 0;
  }
}

.ba-hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 58ch;
}


/* ── ARTICLE BODY ─────────────────────────── */

.ba-body {
  padding: var(--space-16) 0;
}

.ba-content {
  max-width: 720px;
  margin: 0 auto;
}

/* ── FIGURES ── */
.ba-figure {
  margin: var(--space-8) 0;
}
.ba-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.ba-figure figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-top: var(--space-3);
  line-height: var(--line-height-relaxed);
}


/* ── PROSE — All body text inside .ba-content ── */

.ba-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  font-variation-settings: 'opsz' 28, 'WONK' 0;
  margin: var(--space-16) 0 var(--space-6);
}

.ba-content h2:first-child {
  margin-top: 0;
}

@media (min-width: 768px) {
  .ba-content h2 {
    font-size: var(--text-3xl);
    font-variation-settings: 'opsz' 32, 'WONK' 0;
  }
}

.ba-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  font-variation-settings: 'opsz' 22, 'WONK' 0;
  margin: var(--space-10) 0 var(--space-4);
}

.ba-content p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  max-width: 65ch;
  margin-bottom: var(--space-5);
}

.ba-content p.ba-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.ba-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast) var(--ease-out);
}

.ba-content a:hover {
  color: var(--color-accent-hover);
}

.ba-content ul,
.ba-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.ba-content li {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2);
}

.ba-content strong {
  font-weight: var(--font-weight-semibold);
}


/* ── COMPARISON TABLE ─────────────────────── */

.ba-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.ba-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.ba-table thead {
  background: var(--color-bg-alt);
}

.ba-table th {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.ba-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}

.ba-table tbody tr:last-child td {
  border-bottom: none;
}

.ba-table .ba-highlight {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}


/* ── CALLOUT BOX ──────────────────────────── */

.ba-callout {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.ba-callout p {
  margin-bottom: var(--space-2);
}

.ba-callout p:last-child {
  margin-bottom: 0;
}

.ba-callout-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}


/* ── CHECKLIST ────────────────────────────── */

.ba-checklist {
  list-style: none;
  padding-left: 0;
  margin: var(--space-6) 0;
}

.ba-checklist li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-4);
}

.ba-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
}


/* ── KEY FIGURE (inline stat) ─────────────── */

.ba-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.ba-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
  line-height: 1;
  font-variation-settings: 'opsz' 36, 'WONK' 0;
}

.ba-stat-label {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}


/* ── FAQ ACCORDION ────────────────────────── */

.ba-faq {
  padding: var(--space-16) 0;
  background: var(--color-bg-alt);
}

.ba-faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ba-faq-list {
  margin-top: var(--space-10);
}

.ba-faq-item {
  border-bottom: 1px solid var(--color-border);
}

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

.ba-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  line-height: var(--line-height-snug);
  font-variation-settings: 'opsz' 20, 'WONK' 0;
  transition: color var(--transition-fast) var(--ease-out);
}

.ba-faq-question:hover {
  color: var(--color-accent);
}

.ba-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--color-text-muted);
  transition: transform var(--transition-base) var(--ease-out);
}

.ba-faq-item[open] .ba-faq-icon {
  transform: rotate(45deg);
}

.ba-faq-answer {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  padding: 0 0 var(--space-6);
  max-width: 60ch;
}


/* ── AUTHOR BOX ───────────────────────────── */

.ba-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-12);
}

.ba-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.ba-author-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.ba-author-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}


/* ── RELATED ARTICLES ─────────────────────── */

.ba-related {
  padding: var(--space-16) 0 var(--space-20);
  border-top: 1px solid var(--color-border);
}

.ba-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

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

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