/* ── Blog & Article styles ── */
*, *::before, *::after { box-sizing: border-box; }

/* NAV overrides for blog pages */
.blog-nav { background: #fff; border-bottom: 1px solid #e8e7e3; padding: 0 24px; height: 52px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.blog-nav-logo { font-size: 14px; font-weight: 600; color: #1a1a1a; letter-spacing: -.02em; text-decoration: none; }
.blog-nav-logo span { color: #f97316; }
.blog-nav-links { display: flex; align-items: center; gap: 20px; }
.blog-nav-link { font-size: 13px; color: #666; text-decoration: none; }
.blog-nav-link:hover { color: #1a1a1a; }
.blog-nav-link.active { color: #1a1a1a; font-weight: 500; }
.blog-nav-right { display: flex; align-items: center; gap: 8px; }
.btn-nav-dark { padding: 6px 14px; background: #1a1a1a; border: none; border-radius: 8px; font-size: 12px; color: #fff; cursor: pointer; font-family: inherit; font-weight: 500; text-decoration: none; transition: opacity .15s; }
.btn-nav-dark:hover { opacity: .85; }

/* LAYOUT */
.blog-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 60px; }
.article-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.article-main { min-width: 0; }
.article-aside { position: sticky; top: 72px; }

/* BLOG HERO */
.blog-eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #f97316; margin-bottom: .5rem; }
.blog-title { font-size: 32px; font-weight: 600; color: #1a1a1a; line-height: 1.2; margin-bottom: .5rem; letter-spacing: -.02em; }
.blog-sub { font-size: 15px; color: #666; line-height: 1.6; max-width: 520px; margin-bottom: 32px; }

/* TAGS ROW */
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-tag { padding: 6px 14px; border-radius: 999px; border: 1px solid #e8e7e3; background: #fff; font-size: 12px; color: #666; cursor: pointer; transition: all .15s; text-decoration: none; display: inline-block; }
.blog-tag:hover { border-color: #bbb; color: #1a1a1a; }
.blog-tag.active { background: #1a1a1a; color: #fff; border-color: transparent; }

/* FEATURED */
.featured-card { background: #fff; border-radius: 16px; border: 1px solid #e8e7e3; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; text-decoration: none; transition: border-color .15s; }
.featured-card:hover { border-color: #bbb; }
.featured-img { min-height: 240px; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.featured-body { padding: 28px; }
.featured-tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #f97316; margin-bottom: .5rem; }
.featured-title { font-size: 20px; font-weight: 600; color: #1a1a1a; line-height: 1.3; margin-bottom: .6rem; }
.featured-excerpt { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 1rem; }
.featured-meta { font-size: 11px; color: #bbb; }
.featured-meta b { color: #999; }

/* ARTICLES GRID */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card { background: #fff; border-radius: 12px; border: 1px solid #e8e7e3; overflow: hidden; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.article-card:hover { border-color: #bbb; transform: translateY(-2px); }
.article-card-img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.article-card-body { padding: 16px; }
.article-card-tag { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #f97316; margin-bottom: .35rem; }
.article-card-title { font-size: 14px; font-weight: 500; color: #1a1a1a; line-height: 1.4; margin-bottom: .4rem; }
.article-card-excerpt { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: .75rem; }
.article-card-meta { font-size: 11px; color: #bbb; display: flex; align-items: center; justify-content: space-between; }

/* EMPTY STATE */
.blog-empty { text-align: center; padding: 80px 20px; color: #999; font-size: 15px; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e8e7e3; background: #fff; font-size: 13px; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; text-decoration: none; transition: all .15s; }
.page-btn:hover { border-color: #bbb; color: #1a1a1a; }
.page-btn.active { background: #1a1a1a; color: #fff; border-color: transparent; }
.page-btn.disabled { opacity: .3; cursor: default; pointer-events: none; }

/* NEWSLETTER */
.newsletter { background: #fff; border-radius: 16px; border: 1px solid #e8e7e3; padding: 32px; text-align: center; margin-top: 40px; }
.newsletter-title { font-size: 20px; font-weight: 500; color: #1a1a1a; margin-bottom: .4rem; }
.newsletter-sub { font-size: 13px; color: #666; margin-bottom: 1.25rem; }
.newsletter-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.newsletter-email { flex: 1; padding: 10px 14px; border: 1px solid #e8e7e3; border-radius: 10px; font-size: 13px; font-family: inherit; color: #1a1a1a; }
.newsletter-email:focus { outline: none; border-color: #1a1a1a; }
.newsletter-email::placeholder { color: #bbb; }
.btn-primary-dark { padding: 10px 20px; background: #1a1a1a; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; transition: opacity .15s; }
.btn-primary-dark:hover { opacity: .85; }

/* ── ARTICLE PAGE ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #bbb; margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #1a1a1a; }
.breadcrumb-sep { font-size: 10px; }

.article-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #f97316; margin-bottom: .5rem; }
.article-h1 { font-size: 28px; font-weight: 700; color: #1a1a1a; line-height: 1.25; margin-bottom: .75rem; letter-spacing: -.02em; }
.article-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f0efe9; flex-wrap: wrap; }
.meta-item { font-size: 12px; color: #999; }
.meta-item b { color: #666; }
.share-row { display: flex; gap: 6px; margin-left: auto; }
.share-btn { padding: 5px 12px; border: 1px solid #e8e7e3; border-radius: 6px; font-size: 11px; color: #666; background: #fff; cursor: pointer; font-family: inherit; transition: background .15s; }
.share-btn:hover { background: #f9f9f9; }

.article-cover { height: 260px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 80px; margin-bottom: 28px; }

/* ARTICLE BODY */
.article-body { font-size: 15px; line-height: 1.75; color: #333; }
.article-body h2 { font-size: 20px; font-weight: 600; color: #1a1a1a; margin: 2rem 0 .75rem; letter-spacing: -.01em; }
.article-body h3 { font-size: 17px; font-weight: 600; color: #1a1a1a; margin: 1.5rem 0 .5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .35rem; }
.article-body strong { color: #1a1a1a; font-weight: 600; }
.article-body a { color: #f97316; text-decoration: underline; text-decoration-color: rgba(249,115,22,.3); }
.article-body a:hover { text-decoration-color: #f97316; }
.article-body blockquote { border-left: 3px solid #f97316; padding: .5rem 1rem; margin: 1.25rem 0; background: #fff7ed; border-radius: 0 8px 8px 0; font-style: italic; color: #666; }
.article-body .tip-box { background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 14px 16px; margin: 1.25rem 0; font-size: 14px; }
.article-body .tip-box strong { color: #16a34a; }
.article-body code { background: #f5f4f0; padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: 'Courier New', monospace; color: #1a1a1a; }

/* CTA BOX */
.cta-box { background: #1a1a1a; border-radius: 14px; padding: 24px; text-align: center; margin: 2rem 0; }
.cta-box-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: .4rem; }
.cta-box-sub { font-size: 13px; color: #aaa; margin-bottom: 1rem; }
.btn-orange-cta { padding: 11px 24px; background: #f97316; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn-orange-cta:hover { opacity: .88; }

/* TAGS CHIPS */
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid #f0efe9; }
.article-tag-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid #e8e7e3; background: #fff; font-size: 12px; color: #666; }

/* RELATED */
.related-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 2rem; }
.related-card { background: #fff; border-radius: 10px; border: 1px solid #e8e7e3; padding: 14px; text-decoration: none; display: block; transition: border-color .15s; }
.related-card:hover { border-color: #bbb; }
.related-card-tag { font-size: 10px; color: #f97316; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.related-card-title { font-size: 13px; font-weight: 500; color: #1a1a1a; line-height: 1.4; margin-bottom: .3rem; }
.related-card-meta { font-size: 11px; color: #bbb; }

/* SIDEBAR */
.aside-card { background: #fff; border-radius: 12px; border: 1px solid #e8e7e3; padding: 18px; margin-bottom: 14px; }
.aside-title { font-size: 13px; font-weight: 500; color: #1a1a1a; margin-bottom: 12px; }
.aside-list { display: flex; flex-direction: column; gap: 10px; }
.aside-item { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; }
.aside-item:hover .aside-item-title { color: #f97316; }
.aside-num { font-size: 18px; font-weight: 700; color: #f0efe9; flex-shrink: 0; line-height: 1; }
.aside-item-title { font-size: 12px; font-weight: 500; color: #1a1a1a; line-height: 1.4; margin-bottom: 1px; }
.aside-item-meta { font-size: 10px; color: #bbb; }
.aside-cta { background: #fff7ed; border: 1px solid #fed7aa; }
.aside-cta-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: .35rem; }
.aside-cta-sub { font-size: 12px; color: #666; margin-bottom: .85rem; line-height: 1.5; }
.aside-newsletter-input { width: 100%; padding: 8px 10px; border: 1px solid #e8e7e3; border-radius: 8px; font-size: 12px; font-family: inherit; color: #1a1a1a; margin-bottom: 8px; display: block; }
.aside-newsletter-input:focus { outline: none; border-color: #1a1a1a; }
.aside-newsletter-input::placeholder { color: #bbb; }
.btn-aside-primary { width: 100%; padding: 9px; background: #1a1a1a; color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.btn-aside-primary:hover { opacity: .85; }

/* TOC */
.toc-list { display: flex; flex-direction: column; gap: 6px; }
.toc-item { font-size: 12px; color: #666; cursor: pointer; padding: 4px 0 4px 10px; border-left: 2px solid #f0efe9; transition: all .15s; }
.toc-item:hover { color: #1a1a1a; border-left-color: #f97316; }
.toc-item.active { color: #f97316; border-left-color: #f97316; font-weight: 500; }

/* MOBILE */
/* BOTTOM CTA */
.bottom-cta {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1f3d 100%);
  border-radius: 24px;
  padding: 56px 40px 48px;
  text-align: center;
  margin-top: 48px;
  overflow: hidden;
}
.bottom-cta-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bcta-sticker {
  position: absolute;
  font-size: 48px;
  opacity: 0.12;
  line-height: 1;
}
.bcta-s1 { top: 18px; left: 28px; transform: rotate(-18deg); font-size: 56px; }
.bcta-s2 { top: 12px; right: 36px; transform: rotate(14deg); font-size: 52px; }
.bcta-s3 { bottom: 20px; left: 44px; transform: rotate(10deg); font-size: 44px; }
.bcta-s4 { bottom: 16px; right: 32px; transform: rotate(-12deg); font-size: 50px; }
.bottom-cta-eyebrow {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 12px;
  font-weight: 500;
}
.bottom-cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.bottom-cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 28px;
}
.bottom-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #f97316;
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  letter-spacing: -.01em;
}
.bottom-cta-btn:hover { opacity: .88; transform: translateY(-1px); }
.bottom-cta-hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* SITE FOOTER */
.site-footer { background: #f5f4f0; border-top: 1px solid #e8e7e3; padding: 24px 24px 20px; }
.site-footer-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.site-footer-row1 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer-brand { font-size: 13px; font-weight: 600; color: #1a1a1a; letter-spacing: -.02em; }
.site-footer-brand span { color: #f97316; }
.site-footer-links { display: flex; gap: 16px; }
.site-footer-links a { font-size: 12px; color: #888; text-decoration: none; }
.site-footer-links a:hover { color: #1a1a1a; }
.site-footer-row2 { font-size: 11px; color: #bbb; line-height: 1.6; }
.site-footer-row2 a { color: #bbb; text-decoration: none; }
.site-footer-row2 a:hover { color: #888; }

@media (max-width: 760px) {
  .article-wrap { grid-template-columns: 1fr; gap: 24px; }
  .article-aside { position: static; }
  .article-h1 { font-size: 22px; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-nav-links { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 160px; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .blog-title { font-size: 24px; }
  .newsletter-form { flex-direction: column; }
  .share-row { margin-left: 0; }
}
@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr; }
  .bottom-cta { padding: 40px 20px 36px; border-radius: 18px; }
  .bottom-cta-title { font-size: 26px; }
  .bottom-cta-sub { font-size: 14px; }
  .bcta-s1, .bcta-s2, .bcta-s3, .bcta-s4 { font-size: 36px; }
}
