/* =============================================================================
   Blog styles — CMS-rendered blog (index, post, category).
   Loaded only on /blog/* pages. Reuses the design-system variables from
   style.css (--color-*, --font-*) and falls back to literals where needed.
   ========================================================================== */

/* ── Blog index / category grid ──────────────────────────────────────────── */
/* Title sits in the standard .page-header banner (clears the fixed header);
   the grid lives in .blog-list below it. */
.page-header .blog-eyebrow { margin-bottom: 0.5rem; }
.page-header .blog-eyebrow a { color: var(--color-text-muted, #6b6b6b); text-decoration: none; }
.page-header p.blog-sub { max-width: 600px; margin: 0 auto; color: var(--color-text-muted, #6b6b6b); }
.blog-list { padding-top: 3rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}
.blog-card { background: #fff; border: 1px solid var(--color-border, #e5e5e5); border-radius: 4px; overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.blog-card:hover { box-shadow: 0 18px 40px rgba(17,17,17,0.10); transform: translateY(-3px); }
.blog-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.blog-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-bg-secondary, #f4f1ea); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.blog-card-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-hero-navy, #1d2545); font-weight: 600; }
.blog-card-title { font-family: var(--font-heading, 'Cormorant Garamond', serif); font-weight: 500; font-size: 1.5rem; line-height: 1.25; color: var(--color-text-main, #111); margin: 0; }
.blog-card-excerpt { color: var(--color-text-muted, #555); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.blog-card-meta { margin-top: auto; display: flex; gap: 1rem; flex-wrap: wrap; color: #999; font-size: 0.8rem; }

.blog-pagination { margin-top: 3.5rem; text-align: center; }
.blog-empty { color: var(--color-text-muted, #666); font-size: 1.1rem; padding: 3rem 0; }

/* ── Single post ─────────────────────────────────────────────────────────── */
.blog-post { background: #fff; }
.luxury-article { max-width: 800px; margin: 0 auto; padding: 160px 20px 96px; }
.luxury-article .post-eyebrow { display: flex; gap: 0.5rem; align-items: center; justify-content: center; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #999; margin-bottom: 1.5rem; }
.luxury-article .post-eyebrow a { color: var(--color-hero-navy, #1d2545); text-decoration: none; }
.luxury-article .post-title { font-family: var(--font-heading, 'Cormorant Garamond', serif); font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 500; text-align: center; margin-bottom: 2rem; color: #111; line-height: 1.2; }
.luxury-article .post-hero { margin: 0 0 3rem; }
.luxury-article .post-hero img { width: 100%; height: auto; border-radius: 4px; display: block; }
.luxury-article .post-hero figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: #888; text-align: center; }

.luxury-article h2 { font-family: var(--font-heading, 'Cormorant Garamond', serif); font-size: 2.1rem; font-weight: 500; margin: 3.5rem 0 1.25rem; color: #111; line-height: 1.3; }
.luxury-article h3 { font-family: var(--font-heading, 'Cormorant Garamond', serif); font-size: 1.7rem; font-weight: 500; margin: 2.5rem 0 1rem; color: #111; line-height: 1.3; }
.luxury-article p { font-family: var(--font-body, 'Inter', sans-serif); font-size: 1.1rem; color: #444; line-height: 1.95; letter-spacing: 0.01em; margin-bottom: 1.75rem; }
.luxury-article a { color: #0a58ca; text-decoration: underline; text-underline-offset: 2px; }
.luxury-article ul, .luxury-article ol { margin: 0 0 1.75rem 1.5rem; color: #444; line-height: 1.9; }
.luxury-article li { margin-bottom: 0.5rem; }
.luxury-article img { max-width: 100%; height: auto; border-radius: 4px; }
.luxury-article blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 4px solid var(--color-border, #e5e5e5); color: #555; font-style: italic; }

/* ── Byline (auto-injected at top of body_html) ──────────────────────────── */
.post-byline { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; padding: 1rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--color-border, #e5e5e5); font-size: 0.9rem; color: #555; }
.post-byline .byline-author { font-style: normal; font-weight: 600; color: #111; }
.post-byline .byline-author a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.post-byline .byline-published::before { content: "\00b7"; margin-right: 0.5rem; color: #ccc; }
.post-byline .byline-updated, .post-byline .byline-reading-time { color: #888; }
.post-byline .byline-bio { flex-basis: 100%; margin: 0.5rem 0 0; font-size: 0.85rem; color: #666; }

/* ── Sources / citations (auto-injected at end if citations exist) ───────── */
.citations { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border, #e5e5e5); }
.citations h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.citations-list { padding-left: 1.5rem; }
.citations-list li { margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.5; }
.citation-quote { margin-top: 0.25rem; padding-left: 0.75rem; border-left: 3px solid #eee; font-style: italic; color: #666; }
.citation-backref { margin-left: 0.5rem; text-decoration: none; color: #999; }
.citation-ref { font-size: 0.75em; }
.citation-ref a { color: #0a58ca; text-decoration: none; }

/* ── FAQ block ───────────────────────────────────────────────────────────── */
.faq-block { padding: 1.5rem; margin: 2rem 0; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
.faq-block .faq-heading { margin-top: 0; font-size: 1.15rem; }
.faq-block dt { font-weight: 600; margin-top: 1rem; }
.faq-block dd { margin: 0.25rem 0 0; color: #475569; }

/* ── Stat / callout block ────────────────────────────────────────────────── */
.stat-block { padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 0 0.25rem 0.25rem 0; }
.stat-block blockquote { margin: 0; font-size: 1.1rem; font-weight: 500; border: 0; padding: 0; font-style: normal; }
.stat-block figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: #78716c; }

/* ── Definition block ────────────────────────────────────────────────────── */
.definition-block { padding: 1rem 1.25rem; margin: 1.5rem 0; background: #f0f9ff; border-left: 4px solid #3b82f6; border-radius: 0 0.25rem 0.25rem 0; }
.definition-block dt { font-weight: 700; }
.definition-block dd { margin: 0.25rem 0 0; color: #475569; }

/* ── Comparison table ────────────────────────────────────────────────────── */
.comparison-table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 0.75rem 1rem; border: 1px solid #e5e7eb; text-align: left; }
.comparison-table th { background: #f9fafb; font-weight: 600; }

/* ── Related ─────────────────────────────────────────────────────────────── */
.blog-related { border-top: 1px solid var(--color-border, #e5e5e5); background: var(--color-bg-secondary, #f4f1ea); }
.blog-related-heading { font-family: var(--font-heading, 'Cormorant Garamond', serif); font-weight: 500; font-size: 2rem; margin-bottom: 2rem; color: var(--color-hero-navy, #1d2545); }

@media (max-width: 768px) {
  .luxury-article { padding: 110px 20px 64px; }
  .luxury-article .post-title { font-size: 2.1rem; }
  .luxury-article h2 { font-size: 1.7rem; }
  .luxury-article h3 { font-size: 1.4rem; }
  .luxury-article p { font-size: 1rem; }
}
