/* ===============================
   BLOG POST PAGE
================================= */

.blog-post-page {
  min-height: 100vh;
  overflow-x: clip;
  color: #fff;
  background: #000;
}

.blog-post-page *,
.blog-post-page *::before,
.blog-post-page *::after {
  box-sizing: border-box;
}

/* ===============================
   PROGRESS BAR
================================= */

.blog-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.blog-progress-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #a88627, #d4af37, #f0d77a);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
  transition: width 0.08s linear;
}

/* ===============================
   BREADCRUMBS
================================= */

.site-breadcrumbs {
  width: min(
    var(--page-max-width, 1200px),
    calc(100% - (var(--page-gutter, 5%) * 2))
  );
  margin-inline: auto;
  padding-top: 92px;
}

.site-breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.site-breadcrumbs-item:not(:last-child) {
  flex: 0 0 auto;
}

.site-breadcrumbs-item:last-child {
  flex: 1 1 auto;
  overflow: hidden;
}

.site-breadcrumbs-item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(212, 175, 55, 0.52);
  font-weight: 500;
}

.site-breadcrumbs-link {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.site-breadcrumbs-link:hover,
.site-breadcrumbs-link:focus-visible {
  color: #f0d77a;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  outline: none;
}

.site-breadcrumbs-current {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #d4af37;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===============================
   HERO
================================= */

.blog-post-hero {
  padding: 96px 5% 48px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.site-breadcrumbs + .blog-post-hero {
  padding-top: clamp(30px, 4vw, 46px);
}

.blog-post-hero-inner {
  max-width: 820px;
  margin: auto;
}

.post-category {
  margin: 0 0 16px;
  color: #d4af37;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-title {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.post-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.post-meta-link {
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    text-shadow 0.25s ease;
}

.post-meta-link:hover,
.post-meta-link:focus-visible {
  color: #f0d77a;
  border-bottom-color: rgba(240, 215, 122, 0.85);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.22);
  outline: none;
}

/* ===============================
   ARTICLE
================================= */

.blog-post-container {
  padding: var(--section-spacing-desktop, 72px) 5%;
}

.blog-post-content {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-post-content h2 {
  margin: 36px 0 16px;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.blog-post-content h3 {
  margin: 28px 0 14px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.blog-post-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.blog-post-content li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.blog-post-content li:last-child {
  margin-bottom: 0;
}

.blog-post-content a {
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    text-shadow 0.25s ease;
}

.blog-post-content a:hover,
.blog-post-content a:focus-visible {
  color: #f0d77a;
  border-bottom-color: rgba(240, 215, 122, 0.85);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.22);
  outline: none;
}

.blog-post-content a:visited {
  color: #c9a94a;
}

/* ===============================
   TLDR / CALLOUTS
================================= */

.blog-tldr-box,
.blog-key-takeaways,
.blog-formula-panel,
.blog-link-callout {
  margin: 0 0 34px;
  padding: 26px 26px 22px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(212, 175, 55, 0.08),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(255, 255, 255, 0.015);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.blog-key-takeaways {
  margin-top: 34px;
}

.blog-tldr-label {
  margin: 0 0 14px;
  color: #d4af37;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-tldr-list,
.blog-key-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.blog-tldr-list li,
.blog-key-takeaways li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.blog-tldr-list li:last-child,
.blog-key-takeaways li:last-child {
  margin-bottom: 0;
}

.blog-key-takeaways h2,
.blog-formula-panel h2,
.blog-link-callout h2 {
  margin: 0 0 12px;
}

.blog-key-takeaways p:last-child,
.blog-formula-panel p:last-child,
.blog-link-callout p:last-child {
  margin-bottom: 0;
}

.blog-formula-panel code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  color: #f0d77a;
  font-size: 0.98rem;
  line-height: 1.6;
  white-space: normal;
  background: rgba(0, 0, 0, 0.34);
}

.blog-link-callout .primary-cta,
.blog-link-callout .secondary-cta,
.blog-key-takeaways .primary-cta,
.blog-key-takeaways .secondary-cta {
  border-bottom: 0;
}

/* ===============================
   FEATURE IMAGE
================================= */

.blog-feature-figure {
  width: 100%;
  margin: 32px auto 36px;
}

.blog-post-feature-image {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.blog-feature-figure figcaption {
  max-width: 680px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

/* Support older articles without a figure wrapper. */
.blog-post-content > .blog-post-feature-image {
  margin: 32px auto 36px;
}

/* ===============================
   SCENARIO CARDS
================================= */

.blog-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 30px 0 34px;
}

.blog-scenario-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(255, 255, 255, 0.018);
}

.blog-scenario-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.32;
}

.blog-scenario-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ===============================
   FAQ ACCORDION
================================= */

.blog-faq-section {
  margin-top: 42px;
}

.blog-faq-section > h2 {
  margin-top: 0;
}

.blog-faq-accordion {
  display: grid;
  gap: 12px;
}

.blog-faq-item {
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(255, 255, 255, 0.014);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.blog-faq-item:hover,
.blog-faq-item:focus-within,
.blog-faq-item[open] {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.07);
}

.blog-faq-item[open] {
  background:
    linear-gradient(
      180deg,
      rgba(212, 175, 55, 0.07),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(255, 255, 255, 0.014);
}

.blog-faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 18px 52px 18px 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.blog-faq-item summary::-webkit-details-marker {
  display: none;
}

.blog-faq-item summary::before,
.blog-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #d4af37;
  transform: translateY(-50%);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.blog-faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.blog-faq-item[open] summary::after {
  opacity: 0;
  transform: translateY(-50%);
}

.blog-faq-item summary:focus-visible {
  outline: 2px solid rgba(240, 215, 122, 0.75);
  outline-offset: -4px;
}

.blog-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ===============================
   AUTHOR
================================= */

.author-box {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.author-box-label {
  margin: 0 0 10px;
  color: #d4af37;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-box h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.author-box h3 a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.author-box h3 a:hover,
.author-box h3 a:focus-visible {
  color: #d4af37;
  border-bottom-color: rgba(212, 175, 55, 0.6);
  outline: none;
}

.author-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ===============================
   RELEVANT READING
================================= */

.blog-inline-links {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.blog-inline-links p {
  margin-bottom: 12px;
}

.blog-inline-links ul {
  margin: 0;
  padding-left: 20px;
}

.blog-inline-links li {
  margin-bottom: 8px;
}

.blog-inline-links li:last-child {
  margin-bottom: 0;
}

/* ===============================
   CTA
================================= */

.blog-post-cta {
  padding: 76px 5%;
}

.blog-post-cta-inner {
  max-width: 800px;
  margin: auto;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
}

.blog-post-cta-inner h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.25;
}

.blog-post-cta-inner p {
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===============================
   GSAP STATES
================================= */

.blog-reveal {
  will-change: transform, opacity;
}

.blog-reveal-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .blog-progress-bar-fill {
    transition: none;
  }

  .blog-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    will-change: auto;
  }

  .blog-faq-item,
  .blog-faq-item summary::before,
  .blog-faq-item summary::after {
    transition: none;
  }
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 900px) {
  .blog-scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-breadcrumbs {
    width: calc(100% - 32px);
    padding-top: 78px;
  }

  .site-breadcrumbs-list {
    gap: 6px;
  }

  .site-breadcrumbs-item {
    font-size: 0.72rem;
  }

  .site-breadcrumbs-item:not(:last-child)::after {
    margin-left: 6px;
  }

  .blog-post-hero {
    padding: 84px 5% 40px;
  }

  .site-breadcrumbs + .blog-post-hero {
    padding-top: 26px;
  }

  .blog-post-container {
    padding: var(--mobile-section-spacing, 52px) 5%;
  }

  .blog-post-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .blog-tldr-box,
  .blog-key-takeaways,
  .blog-formula-panel,
  .blog-link-callout {
    margin-bottom: 28px;
    padding: 22px 20px 18px;
    border-radius: 14px;
  }

  .blog-tldr-list,
  .blog-key-takeaways ul {
    padding-left: 18px;
  }

  .blog-feature-figure {
    margin: 28px auto;
  }

  .blog-post-content > .blog-post-feature-image {
    margin: 28px auto;
  }

  .blog-post-content h2 {
    margin-top: 32px;
    font-size: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.2rem;
  }

  .blog-scenario-card {
    padding: 18px;
  }

  .blog-faq-item summary {
    padding: 16px 48px 16px 18px;
  }

  .blog-faq-item summary::before,
  .blog-faq-item summary::after {
    right: 18px;
  }

  .blog-faq-item p {
    padding: 0 18px 16px;
  }

  .author-box,
  .blog-inline-links {
    margin-top: 34px;
    padding: 20px;
  }

  .blog-post-cta {
    padding: 56px 5%;
  }

  .blog-post-cta-inner {
    padding: 30px 22px;
    border-radius: 14px;
  }

  .blog-post-cta-inner h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .site-breadcrumbs {
    width: calc(100% - 28px);
  }

  .site-breadcrumbs-item:nth-child(2) {
    display: none;
  }

  .site-breadcrumbs-item:first-child::after {
    content: "/";
  }

  .post-title {
    font-size: 2rem;
  }

  .blog-post-container {
    padding-inline: 16px;
  }

  .blog-tldr-box,
  .blog-key-takeaways,
  .blog-formula-panel,
  .blog-link-callout,
  .author-box,
  .blog-inline-links {
    padding-inline: 18px;
  }
}
