/* Blog styles */
:root { --accent: #fe5f0a; }

.blog-index,
.blog-article {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(254, 95, 10, 0.05), transparent 34rem),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.blog-breadcrumbs {
  margin: 0 auto 1.25rem;
  max-width: 80rem;
  padding: 1rem 1rem 0;
}

.blog-breadcrumbs__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.blog-breadcrumbs__sep {
  color: #cbd5e1;
}

.blog-breadcrumbs__current {
  color: #0f172a;
  font-weight: 600;
}

.blog-hero-shell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.blog-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.09);
}

.blog-panel--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #fff;
}

.blog-panel__sidebar {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 1.5rem;
  background: rgba(248, 250, 252, 0.9);
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.73rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
 }

.blog-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article-body {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.82;
  color: #334155;
}

.article-body .article-section + .article-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.article-body .article-section:first-child {
  margin-top: 0;
}

.article-body .article-section:first-child p:first-of-type {
  font-size: 1.16rem;
  line-height: 1.84;
  color: #1e293b;
}

.article-body h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 1.15rem 0;
}

.article-body strong {
  color: #0f172a;
  font-weight: 650;
}

.article-body ul {
  margin: 1.25rem 0 1.5rem 0.4rem;
  padding-left: 1rem;
  list-style: none;
}

.article-body ul li {
  position: relative;
  margin-bottom: 1.05rem;
  padding-left: 1.5rem;
}

.article-figure-wrap {
  margin: 2.25rem 0 0.75rem;
}

.article-figure {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98)),
    #f8fafc;
  box-shadow: 0 28px 75px rgba(15, 23, 42, 0.1);
}

.article-figure img {
  display: block;
  width: 100%;
}

.article-figure__caption {
  padding: 0.95rem 1.1rem 1.05rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(254, 95, 10, 0.12);
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

.article-quote {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  border: 1px solid rgba(254, 215, 170, 0.65);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.article-quote::before {
  content: "“";
  position: absolute;
  top: -1rem;
  right: 1rem;
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.05;
  font-family: serif;
  pointer-events: none;
}

.article-quote blockquote {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: #1e293b;
  position: relative;
  z-index: 1;
}

.article-quote__author {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  font-style: normal;
}

.article-quote__role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
  font-style: normal;
}

.article-section {
  scroll-margin-top: 8rem; /* Increased scroll margin for sticky headers */
}

@media (max-width: 640px) {
  .blog-breadcrumbs {
    margin-bottom: 1rem;
    padding-top: 0.85rem;
  }

  .blog-breadcrumbs__list {
    display: flex;
    width: 100%;
    border-radius: 1.25rem;
    padding: 0.75rem 0.9rem;
  }

  .blog-meta-chip {
    width: 100%;
    justify-content: center;
  }

  .article-body {
    font-size: 1.05rem;
    line-height: 1.72;
  }

  .article-body .article-section:first-child p:first-of-type {
    font-size: 1.08rem;
    line-height: 1.74;
  }

  .article-body .article-section + .article-section {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
  }

  .article-body h2 {
    font-size: 1.6rem;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
  }

  .article-body p {
    margin: 1rem 0;
  }

  .article-body ul {
    margin: 1rem 0 1rem .25rem;
    padding-left: .85rem;
  }

  .article-quote {
    padding: 1.25rem;
    margin: 2rem 0;
  }

  .article-quote blockquote {
    font-size: 1.08rem;
  }

  .article-figure-wrap {
    margin-top: 1.5rem;
  }

  .article-figure__caption {
    padding: 0.85rem 0.95rem 0.95rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

@supports (text-wrap: balance) {
  .article-body h2,
  .blog-article h1,
  .blog-article h2,
  .blog-article h3 {
    text-wrap: balance;
  }
}
