/* Blog Post - full-width hero + 3-column layout with sticky sidebars
   =====================================================================
   Color philosophy: purple (#9C73FF) is the brand accent - use SPARINGLY
   for interactive elements (buttons, links, progress bar). Everything
   else uses neutrals (#1B1B1B, #374151, #6B7280, #8A8A8A, #D4D4D4).
   Hero tags use soft lavender (#C9A9FF) against dark backgrounds.
   CTA cards use dark buttons (#1B1B1B) not purple.
   ===================================================================== */

/* -- Reading Progress Bar ------------------------------------------------- */
.blog-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #9C73FF;
  z-index: 9999;
  transition: width 50ms linear;
  pointer-events: none;
}

/* -- Full-width wrapper --------------------------------------------------- */
.blog-post {
  padding-top: 76px;
}

/* -- Hero Header (full-width, image behind) ------------------------------- */
.blog-post__hero {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1B1B1B;
}

.blog-post__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.4;
  transition: transform 1.2s ease;
}

.blog-post__hero:hover .blog-post__hero-img {
  transform: scale(1.02);
}

.blog-post__hero-overlay {
  position: relative;
  width: 100%;
  padding: 80px 0 48px;
  background: linear-gradient(to top, rgba(27, 27, 27, 0.94) 0%, rgba(27, 27, 27, 0.65) 50%, transparent 100%);
  z-index: 2;
}

.blog-post__hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumb */
.blog-post__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 400;
}

.blog-post__breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}

.blog-post__breadcrumb-link:hover { color: #fff; }

.blog-post__breadcrumb-link--tag {
  color: #C9A9FF;
}

.blog-post__breadcrumb-link--tag:hover {
  text-decoration: underline;
  color: #C9A9FF;
}

.blog-post__breadcrumb-sep { color: rgba(255, 255, 255, 0.3); }

/* Tags in hero */
.blog-post__tag-row { display: flex; gap: 10px; margin-bottom: 14px; }

.blog-post__tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C9A9FF;
  text-decoration: none;
  transition: opacity 0.15s;
}

.blog-post__tag:hover { opacity: 0.7; }

/* Title - clear, bold, readable against dark bg */
.blog-post__title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 720px;
}

/* Meta */
.blog-post__meta {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-post__meta-dot { opacity: 0.4; }
.blog-post__author { color: rgba(255, 255, 255, 0.75); font-weight: 400; }
.blog-post__updated { color: #C9A9FF; font-weight: 400; }

/* -- 3-Column Grid -------------------------------------------------------- */
.blog-post__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 740px) 260px;
  gap: 48px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

/* -- Sidebars ------------------------------------------------------------- */
.blog-post__sidebar {
  position: relative;
}

.blog-post__sidebar-sticky {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* -- TOC ------------------------------------------------------------------ */
.toc {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.toc__details { list-style: none; }
.toc__details summary::-webkit-details-marker { display: none; }

.toc__toggle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A8A8A;
  cursor: pointer;
  margin-bottom: 12px;
  display: block;
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc__item { margin: 0; }

.toc__link {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  line-height: 1.45;
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.toc__link:hover {
  color: #1B1B1B;
  border-left-color: #1B1B1B;
}

/* -- Pillar Links --------------------------------------------------------- */
.pillar-links {
  border-top: 1px solid #E5E5E5;
  padding-top: 20px;
  margin: 0;
}

.pillar-links__heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A8A8A;
  margin-bottom: 12px;
}

.pillar-links__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-links__card {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #E5E5E5;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.pillar-links__card:hover {
  border-color: #1B1B1B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pillar-links__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1B1B1B;
  margin: 0 0 2px;
}

.pillar-links__desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: #8A8A8A;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -- Key Takeaways -------------------------------------------------------- */
.key-takeaways {
  background: #FAFAFA;
  border-left: 3px solid #1B1B1B;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.key-takeaways__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1B1B1B;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.key-takeaways__text {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: #374151;
  margin: 0;
}

/* -- Sidebar CTA (dual cards) --------------------------------------------- */
.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-cta__card {
  padding: 18px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #E5E5E5;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sidebar-cta__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.sidebar-cta__card--diy {
  background: #F0ECFF;
  border-color: #E0DAFF;
}

.sidebar-cta__card--dfy {
  background: #FCE4EE;
  border-color: #F5C6D8;
}

.sidebar-cta__label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
}

.sidebar-cta__card--dfy .sidebar-cta__label {
  color: #8A8A8A;
}

.sidebar-cta__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: #1B1B1B;
}

.sidebar-cta__desc {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6B7280;
  margin: 0 0 4px;
}

.sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sidebar-cta__btn--diy {
  background: #1B1B1B;
  color: #fff;
}

.sidebar-cta__btn--diy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-cta__btn--dfy {
  background: #374151;
  color: #fff;
}

.sidebar-cta__btn--dfy:hover {
  background: #1F2937;
  transform: translateY(-1px);
}

.sidebar-cta__fine {
  font-size: 0.625rem;
  font-weight: 400;
  color: #9CA3AF;
}

/* -- Expert Quote --------------------------------------------------------- */
.expert-quote {
  margin-bottom: 36px;
}

.expert-quote__inner {
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.expert-quote__icon {
  color: #D4D4D4;
  margin-bottom: 12px;
}

.expert-quote__text {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 16px;
  quotes: none;
  border: none;
  padding: 0;
}

.expert-quote__attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.expert-quote__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1B1B1B;
  font-style: normal;
}

.expert-quote__role {
  font-size: 0.75rem;
  font-weight: 400;
  color: #8A8A8A;
  font-style: normal;
}

/* -- Sidebar Related ------------------------------------------------------ */
.sidebar-related {
  border-top: 1px solid #E5E5E5;
  padding-top: 20px;
}

.sidebar-related__heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A8A8A;
  margin: 0 0 14px;
}

.sidebar-related__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-related__item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.sidebar-related__item:hover { opacity: 0.75; }

.sidebar-related__img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-related__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sidebar-related__tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
}

.sidebar-related__title {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1B1B1B;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -- Blog Bottom CTA (dual cards) ----------------------------------------- */
.blog-bottom-cta {
  margin-top: 56px;
  padding: 48px 0 40px;
  border-top: 1px solid #E5E5E5;
}

.blog-bottom-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.blog-bottom-cta__heading {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1B1B1B;
  margin: 0 0 6px;
}

.blog-bottom-cta__subtext {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #6B7280;
  margin: 0 0 28px;
}

.blog-bottom-cta__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.blog-bottom-cta__card {
  padding: 24px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #E5E5E5;
}

.blog-bottom-cta__card--diy {
  background: #F0ECFF;
  border-color: #E0DAFF;
}

.blog-bottom-cta__card--dfy {
  background: #FCE4EE;
  border-color: #F5C6D8;
}

.blog-bottom-cta__label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
}

.blog-bottom-cta__card--dfy .blog-bottom-cta__label {
  color: #8A8A8A;
}

.blog-bottom-cta__card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1B1B1B;
  margin: 0;
}

.blog-bottom-cta__price {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
  font-weight: 400;
}

.blog-bottom-cta__price strong {
  color: #1B1B1B;
  font-weight: 600;
}

.blog-bottom-cta__card-desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.5;
  margin: 0 0 8px;
}

.blog-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  align-self: flex-start;
}

.blog-bottom-cta__btn--primary {
  background: #1B1B1B;
  color: #fff;
}

.blog-bottom-cta__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-bottom-cta__btn--ghost {
  background: #374151;
  color: #fff;
}

.blog-bottom-cta__btn--ghost:hover {
  background: #1F2937;
  transform: translateY(-1px);
}

.blog-bottom-cta__fine {
  font-size: 0.625rem;
  font-weight: 400;
  color: #9CA3AF;
}

.blog-bottom-cta__proof {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9CA3AF;
  margin-top: 20px;
  text-align: center;
}

.blog-bottom-cta__proof a {
  color: #6B7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-bottom-cta__proof a:hover {
  color: #1B1B1B;
}

/* -- Main Content Column -------------------------------------------------- */
.blog-post__main {
  min-width: 0;
}

/* Mobile-only CTA */
.blog-post__mobile-cta {
  display: none;
}

/* Footer nav */
.blog-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #E5E5E5;
  flex-wrap: wrap;
  gap: 16px;
}

/* Bottom CTA cards responsive */
@media (max-width: 520px) {
  .blog-bottom-cta__cards {
    grid-template-columns: 1fr;
  }
}

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8A8A8A;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-post__back:hover { color: #1B1B1B; }

.blog-post__category-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1B1B1B;
  text-decoration: none;
}

.blog-post__category-link:hover { text-decoration: underline; }

/* ==========================================================================
   PROSE - Article Content Typography
   ==========================================================================
   First principles for long-form reading on screen:
   - Font size: 17px (1.0625rem) - research-backed for screen reading
   - Line height: 1.8 - generous for sans-serif at this size
   - Max width: ~680px (60-72 chars/line) - optimal reading measure
   - Paragraph spacing: 1.5em - clear separation between ideas
   - Color: #374151 (gray-700) - softer than black, reduces eye strain
   - Headings: clear weight + size hierarchy, anchored with top margin
   - Strong: 600 weight - visible contrast against 400 body
   ========================================================================== */

.blog-prose {
  color: #374151;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  max-width: 680px;
}

/* Headings: strong hierarchy, generous spacing above */
.blog-prose h2 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #1B1B1B;
  letter-spacing: -0.01em;
}

.blog-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: #1B1B1B;
}

.blog-prose h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: #1B1B1B;
}

/* Body text */
.blog-prose p {
  margin-bottom: 1.5em;
  line-height: 1.8;
  color: #374151;
  font-weight: 400;
  font-size: inherit;
}

.blog-prose strong {
  font-weight: 600;
  color: #1B1B1B;
}

/* Lists */
.blog-prose ul,
.blog-prose ol {
  margin-bottom: 1.5em;
  padding-left: 1.375rem;
}

.blog-prose li {
  margin-bottom: 0.625rem;
  line-height: 1.75;
  color: #374151;
  font-weight: 400;
}

.blog-prose li::marker {
  color: #D4D4D4;
}

/* Images */
.blog-prose img {
  margin: 2rem 0;
  border-radius: 10px;
  width: 100%;
  height: auto;
}

/* Iframes */
.blog-prose iframe {
  margin: 2rem 0;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
}

/* Tables - readable with proper weight */
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9375rem;
}

.blog-prose thead tr {
  background-color: #FAFAFA;
}

.blog-prose th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1B1B1B;
}

.blog-prose th:first-child { border-top-left-radius: 10px; }
.blog-prose th:last-child { border-top-right-radius: 10px; }

.blog-prose tbody tr {
  border-top: 1px solid #F3F4F6;
  background-color: white;
}

.blog-prose td {
  padding: 0.875rem 1rem;
  color: #374151;
  font-weight: 400;
}

.blog-prose tbody tr:last-child td:first-child { border-bottom-left-radius: 10px; }
.blog-prose tbody tr:last-child td:last-child { border-bottom-right-radius: 10px; }

/* Links - subtle, not screaming purple */
.blog-prose a {
  color: #1B1B1B;
  text-decoration: underline;
  text-decoration-color: #D4D4D4;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.blog-prose a:hover {
  color: #1B1B1B;
  text-decoration-color: #1B1B1B;
}

/* Code */
.blog-prose code {
  background-color: #F3F4F6;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: #374151;
  font-weight: 400;
}

.blog-prose pre {
  background-color: #1B1B1B;
  color: #E5E7EB;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Blockquotes */
.blog-prose blockquote {
  border-left: 3px solid #D4D4D4;
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: #6B7280;
  font-style: italic;
  font-weight: 400;
}

.blog-prose blockquote p {
  color: inherit;
}

/* Horizontal rules */
.blog-prose hr {
  border: none;
  border-top: 1px solid #E5E5E5;
  margin: 2.5rem 0;
}

/* -- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .blog-post__grid {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
  }

  .blog-post__sidebar--right {
    display: none;
  }

  .blog-post__mobile-cta {
    display: block;
    margin-top: 36px;
  }
}

@media (max-width: 768px) {
  .blog-post {
    padding-top: 60px;
  }

  .blog-post__hero {
    min-height: 300px;
  }

  .blog-post__hero-overlay {
    padding: 60px 0 32px;
  }

  .blog-post__hero-inner {
    padding: 0 20px;
  }

  .blog-post__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 20px 48px;
  }

  .blog-post__sidebar--left {
    display: none;
  }

  .blog-post__sidebar--right {
    display: none;
  }

  .blog-post__mobile-cta {
    display: block;
    margin-top: 36px;
  }

  .blog-post__footer {
    padding-top: 24px;
    margin-top: 32px;
  }

  /* Mobile prose: 16px base, still readable */
  .blog-prose {
    font-size: 1rem;
  }

  .blog-prose h2 {
    font-size: 1.375rem;
    margin-top: 2.5rem;
  }

  .blog-prose h3 {
    font-size: 1.125rem;
    margin-top: 2rem;
  }

  .blog-prose iframe {
    height: 250px;
  }

  .blog-bottom-cta__heading {
    font-size: 1.25rem;
  }
}
