/* ============================================================
   BLOG — index + article styles (loaded only on /blog/ pages)
   ============================================================ */

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { opacity: .6; }
.breadcrumbs span[aria-current] { opacity: 1; color: var(--ivory); }

/* ---------- Blog index ---------- */
.blog-hero { padding-top: 165px; padding-bottom: 30px; }
.blog-hero h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 860px; margin-bottom: 14px; }
.blog-hero .lede { max-width: 720px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px 0 70px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.blog-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.blog-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__meta { font-size: 12.5px; color: var(--muted); }
.blog-card h2 { font-size: 21px; line-height: 1.3; }
.blog-card h2 a:hover { color: var(--gold); }
.blog-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.blog-card__link { margin-top: auto; color: var(--gold); font-size: 14px; font-weight: 600; }

/* ---------- Article ---------- */
.post-wrap { max-width: 800px; margin: 0 auto; padding: 165px 24px 40px; }
.post-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.2; margin: 6px 0 16px; }
.post-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.post-hero { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 30px; display: block; }
.post-wrap .lead p { font-size: 18px; line-height: 1.8; color: rgba(245,240,230,.92); margin-bottom: 18px; }

.takeaways, .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0; }
.takeaways { border-left: 4px solid var(--gold); }
.box-title { font-family: var(--font-display); font-size: 18px; color: var(--gold-light); margin-bottom: 12px; font-weight: 600; }
.takeaways ul { list-style: none; display: grid; gap: 10px; }
.takeaways li { position: relative; padding-left: 20px; line-height: 1.65; font-size: 15.5px; }
.takeaways li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 5px; }
.toc ol { padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: var(--ivory); opacity: .88; }
.toc a:hover { color: var(--gold); opacity: 1; }

.post-body h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.25; margin: 48px 0 16px; scroll-margin-top: 150px; }
.post-body h3 { font-size: 19px; margin: 26px 0 8px; color: var(--gold-light); font-family: var(--font-body); font-weight: 600; }
.post-body p { font-size: 16.5px; line-height: 1.85; color: rgba(245,240,230,.86); margin-bottom: 16px; }
.post-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,161,94,.5); }
.post-body a:hover { color: var(--gold-light); }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; display: grid; gap: 9px; font-size: 16.5px; line-height: 1.75; color: rgba(245,240,230,.86); }
.post-body ul { list-style: none; margin-left: 0; }
.post-body ul li { position: relative; padding-left: 24px; }
.post-body ul li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 6px; }
.post-body strong { color: var(--ivory); }

.table-wrap { overflow-x: auto; margin: 20px 0 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.post-body th { text-align: left; background: var(--surface-2); color: var(--gold-light); padding: 12px 16px; font-weight: 600; white-space: nowrap; }
.post-body td { padding: 12px 16px; border-top: 1px solid var(--border); color: rgba(245,240,230,.88); vertical-align: top; }
.post-body tr.is-current td { background: rgba(201,161,94,.10); color: var(--ivory); font-weight: 500; }

.post-cta { background: linear-gradient(135deg, rgba(124,92,252,.18), rgba(242,73,92,.16)); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 34px 30px; text-align: center; margin: 54px 0 20px; }
.post-cta h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }
.post-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 20px; line-height: 1.7; }
.post-cta .btn { margin: 4px 6px; }
.post-cta a:not(.btn) { color: var(--gold); }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.related { margin: 40px 0 10px; }
.related h2 { font-size: 26px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s ease; }
.related-card:hover { border-color: var(--gold); }
.related-card img { width: 110px; height: auto; object-fit: cover; flex-shrink: 0; }
.related-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 0; }
.related-body strong { font-size: 14.5px; line-height: 1.35; color: var(--ivory); }
.related-body span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .blog-hero, .post-wrap { padding-top: 130px; }
  .blog-grid { grid-template-columns: 1fr; padding-bottom: 50px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-wrap { padding-left: 18px; padding-right: 18px; }
  .post-wrap .lead p, .post-body p, .post-body ul, .post-body ol { font-size: 16px; }
  .takeaways, .toc { padding: 18px 18px; }
  .post-cta { padding: 28px 20px; }
}
