/* =============================================
   BLOG.CSS — Shoplabs Blog Template
   Imports all design tokens + components from the industry page,
   then adds blog-specific layout and components on top.
   ============================================= */

@import "styles-base.css";

/* =============================================
   1. BLOG LAYOUT — 3-column flex
   ============================================= */
.blog-page-wrap {
  background: var(--surface);
  min-height: 100vh;
}

.blog-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--spacing-sm);
}

/* =============================================
   2. LEFT — TOC COLUMN
   ============================================= */
/* The sticky column is a scroll container (overflow-y: auto), which
   clips the CTA card's hover lift + drop shadow. Give the scrollport
   inner padding for the shadow to paint into, then pull the box back
   with negative margins so the layout doesn't shift. */
.blog-toc {
  width: 248px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-22) transparent;
  padding: 0 14px 48px;
  margin: 0 -14px;
}

.blog-toc::-webkit-scrollbar { width: 3px; }
.blog-toc::-webkit-scrollbar-thumb { background: var(--primary-22); border-radius: 2px; }

.toc-label {
  font-family: var(--font-body);
  font-size: var(--fs-ui-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

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

.toc-list a {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--charcoal-60);
  line-height: 1.5;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              font-weight var(--duration-base) var(--ease-smooth);
}

.toc-list a:hover {
  background: var(--primary-08);
  color: var(--primary);
  text-decoration: none;
}

.toc-list a.toc-active {
  color: var(--primary);
  font-weight: 600;
  border-left-color: transparent;
  background: transparent;
}

/* TOC CTA card — flow layout, type on the site scale, with the
   signature arrow-slide button kept as the moment of delight */
.toc-cta-card {
  position: relative;
  margin-top: var(--spacing-xl);
  width: 100%;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(26, 26, 26, 0.07);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
  transition: transform 0.35s var(--ease-smooth, ease),
              box-shadow 0.35s var(--ease-smooth, ease);
}

.toc-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.10);
}

.toc-cta-heading {
  font-family: 'Manrope', var(--font-display), sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  margin: 0;
}

.toc-cta-heading em {
  font-style: italic;
  color: #4b2a63;
}

.toc-cta-btn {
  position: relative;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  padding-right: 52px;
  background: #9bcf6a;
  border-radius: 9999px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: padding 0.5s var(--ease-smooth, ease);
}

.toc-cta-btn:hover,
.toc-cta-btn:focus-visible {
  padding-left: 48px;
  padding-right: 24px;
  text-decoration: none;
}

.toc-cta-btn-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #1a1a1a;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.toc-cta-btn-arrow {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 14, 37, 0.12);
  border-radius: 9999px;
  color: #1a1a1a;
  transition: right 0.5s var(--ease-smooth, ease), transform 0.5s var(--ease-smooth, ease);
  z-index: 0;
}

.toc-cta-btn:hover .toc-cta-btn-arrow {
  right: calc(100% - 40px);
  transform: rotate(45deg);
}

/* =============================================
   3. CENTRE — BLOG CONTENT COLUMN
   ============================================= */
.blog-content {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

/* =============================================
   4. BLOG HEADER
   ============================================= */
.blog-header {
  margin-bottom: var(--spacing-xl);
}

.blog-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-ui-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.blog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.blog-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: 400;
  color: var(--charcoal-60);
  max-width: 640px;
  margin-top: 12px;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.blog-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  color: var(--charcoal-60);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-meta-sep {
  color: var(--charcoal-60);
  opacity: 0.4;
}

.blog-read-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-08);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =============================================
   5. HERO IMAGE PLACEHOLDER
   ============================================= */
.blog-hero-img {
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
}

img.blog-hero-img {
  object-fit: cover;
  height: auto;
  display: block;
}

/* =============================================
   6. AI SUMMARY BLOCK
   ============================================= */
/* Tinted cream surface, green→purple spine, gentle dot pulse,
   hairline dividers between rows — editorial, not interactive */
.blog-summary {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(75, 42, 99, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 32px 28px 42px;
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.blog-summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--primary);
}

/* — Header row ——————————————————————————————— */
.blog-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.blog-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  flex-shrink: 0;
}

/* Slow pulse — editorial freshness signal, not a UI live indicator */
.blog-summary-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: tldr-dot-pulse 3.2s ease-in-out infinite;
}

@keyframes tldr-dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.blog-summary-rule {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(75, 42, 99, 0.20) 0 4px, transparent 4px 9px);
  background-size: 9px 1px;
  background-repeat: repeat-x;
}

/* — Takeaway list ———————————————————————————— */
.blog-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.blog-summary-list li {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  color: var(--charcoal-75);
  line-height: 1.6;
  padding: 10px 6px 10px 26px;
  position: relative;
}

.blog-summary-list li + li {
  border-top: 1px solid rgba(75, 42, 99, 0.07);
}

/* Lucide arrow-right icon — purple, 13px */
.blog-summary-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 13px;
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%234b2a63' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

@media (max-width: 640px) {
  .blog-summary {
    padding: 22px 20px 22px 28px;
  }
  .blog-summary-list li { padding-left: 22px; }
}

/* =============================================
   7. BLOG BODY — SCOPED MARKDOWN STYLES
   ============================================= */
.blog-body {
  margin-bottom: var(--spacing-2xl);
}

.blog-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 48px;
  margin-bottom: 12px;
  scroll-margin-top: 96px;
  letter-spacing: -0.02em;
}

.blog-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 32px;
  margin-bottom: 8px;
  scroll-margin-top: 96px;
}

.blog-body p {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.5em;
  margin-bottom: 20px;
}

.blog-body li {
  line-height: 1.65;
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: var(--fs-body-md);
}

.blog-body strong {
  font-weight: 700;
  color: var(--charcoal);
}

.blog-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--primary-08);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Blog inline table — inherits comparison-table styles */
.blog-body .blog-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body-sm);
  background: var(--white);
  min-width: 560px;
}

.blog-body thead tr {
  background: var(--primary);
  color: var(--white);
}

.blog-body th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  letter-spacing: -0.01em;
  color: var(--white);
}

.blog-body th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.blog-body th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.blog-body td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--charcoal-07);
  vertical-align: top;
  line-height: 1.5;
  color: var(--charcoal-60);
  font-size: 14px;
}

.blog-body td:first-child {
  font-weight: 600;
  color: var(--charcoal);
}

.blog-body tbody tr:nth-child(even) td {
  background: rgba(75, 42, 99, 0.025);
}

.blog-body tbody tr:last-child td { border-bottom: none; }

/* Final take ending paragraph */
.blog-final-take {
  background: var(--primary-08);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.blog-final-take p {
  color: var(--primary);
  font-weight: 500;
  margin: 0;
}

/* =============================================
   8. FAQ SECTION (blog-scoped, no full-width bg)
   ============================================= */
.blog-faq {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: var(--border-light);
}

.blog-faq-header {
  margin-bottom: var(--spacing-lg);
}

.blog-faq-header .section-label {
  margin-bottom: 8px;
}

.blog-faq-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

/* =============================================
   9. RELATED BLOGS — HORIZONTAL SCROLL STRIP
   ============================================= */
.blog-related {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: var(--border-light);
}

.blog-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.blog-related-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Breathing dot — signals "live" editorial curation */
.blog-related-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: relatedDotPulse 2.8s ease-in-out infinite;
}

@keyframes relatedDotPulse {
  0%, 100% { opacity: 0.9; transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.88); }
}

.blog-related-header h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.01em;
}

.blog-related-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

/* Track: scroll container clips overflow — give lift + shadow breathing
   room via inset padding, then pull back with negative margins */
.blog-related-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 14px 4px 32px;
  margin: -14px -4px -20px;
  scroll-padding-left: 4px;
}

.blog-related-track::-webkit-scrollbar { display: none; }

/* ---- Card ---- */
.blog-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  border: 1px solid rgba(75, 42, 99, 0.09);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(75, 42, 99, 0.05),
              0 4px 16px rgba(75, 42, 99, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  transition: transform 280ms cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 280ms cubic-bezier(0.25, 1, 0.5, 1),
              border-color 280ms ease;
}

/* Accent bar that sweeps in from the left on hover */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary-45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(75, 42, 99, 0.08),
              0 10px 28px rgba(75, 42, 99, 0.05);
  border-color: rgba(75, 42, 99, 0.13);
  text-decoration: none;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

/* ---- Image wrapper — clips zoom, constrains height ---- */
.blog-card-img-wrap {
  overflow: hidden;
  height: 136px;
  flex-shrink: 0;
  position: relative;
  background: rgba(75, 42, 99, 0.04);
}

/* Faint tonal gradient at image bottom for continuity */
.blog-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(75, 42, 99, 0.07));
  pointer-events: none;
}

.blog-card-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-hero {
  transform: scale(1.03);
}

/* ---- Body ---- */
.blog-card-body {
  padding: 13px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.42;
  letter-spacing: -0.01em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Pills ---- */
.blog-card-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}

.blog-card-pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  background: rgba(75, 42, 99, 0.05);
  border: 1px solid rgba(75, 42, 99, 0.08);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
}

.blog-card:hover .blog-card-pill {
  background: rgba(75, 42, 99, 0.08);
  color: rgba(26, 26, 26, 0.62);
}

/* "New" pill — solid brand color, white text, no pulse */
.bx-pill-new {
  background: var(--primary-70) !important;
  border-color: transparent !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ---- Arrow buttons ---- */
.blog-scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(75, 42, 99, 0.11);
  box-shadow: 0 1px 4px rgba(75, 42, 99, 0.06);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease,
              transform 200ms cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-scroll-btn:hover {
  background: var(--primary-08);
  border-color: rgba(75, 42, 99, 0.16);
  box-shadow: 0 2px 8px rgba(75, 42, 99, 0.10);
  transform: scale(1.06);
}

.blog-scroll-btn:active {
  transform: scale(0.93);
  transition-duration: 80ms;
}

.blog-scroll-btn:disabled { opacity: 0.25; pointer-events: none; }
.blog-scroll-btn svg { width: 14px; height: 14px; }

/* Honour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .blog-related-dot  { animation: none; opacity: 0.7; }
  .blog-card-hero    { transition: none; }
  .blog-card::before { transition: none; }
}

/* =============================================
   10. AUTHOR CARD
   ============================================= */
.blog-author-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(26, 26, 26, 0.07);
}

.blog-author-avatar {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(75, 42, 99, 0.07);
  border: 1px solid rgba(75, 42, 99, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-author-initials {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
  user-select: none;
}

.blog-author-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 6px;
}

.blog-author-byline {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.36);
  margin-bottom: 4px;
}

.blog-author-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.blog-author-bio {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(26, 26, 26, 0.52);
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
}

.blog-author-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.blog-author-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 26, 26, 0.28);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-author-social:hover {
  color: var(--primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.blog-author-social svg {
  width: 15px;
  height: 15px;
}

/* =============================================
   11. FULL-WIDTH CTA SECTION (below blog content)
   Background image: set via inline style or replace
   `background: var(--surface-dark)` below with
   `background-image: url('/path/to/image.png')` once ready.
   ============================================= */
.blog-cta-full {
  position: relative;
  min-height: 320px;
  background: var(--surface-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.blog-cta-full-inner {
  position: relative;
  z-index: 1;
  padding: 48px clamp(24px, 6vw, 96px);
}

.blog-cta-full-btn {
  font-size: var(--fs-body-sm);
  padding: 14px 36px;
  box-shadow: var(--shadow-btn-lg);
}

/* =============================================
   12. MOBILE STICKY TOC BAR
   (shown below nav on < 1024px, hidden on desktop)
   ============================================= */
.mobile-toc-bar {
  display: none;
  position: sticky;
  top: 56px;
  z-index: 80;
  background: var(--surface);
  border-bottom: var(--border-light);
  padding: 8px var(--spacing-sm);
}

.mobile-toc-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   13. RESPONSIVE — 1024px COLLAPSE
   ============================================= */
@media (max-width: 1024px) {
  .blog-toc     { display: none; }
  .mobile-toc-bar { display: block; }

  .blog-layout {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .blog-content {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    padding: var(--spacing-xl) var(--spacing-sm);
  }

  .blog-cta-full {
    min-height: 260px;
    align-items: flex-end;
    justify-content: center;
  }

  .blog-cta-full-inner {
    padding: 32px var(--spacing-sm);
    text-align: center;
  }

  .blog-cta-full-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   14. RESPONSIVE — 768px
   ============================================= */
@media (max-width: 768px) {
  .blog-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .blog-header h1 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .blog-body h2 {
    font-size: 20px;
  }

  .blog-card {
    flex: 0 0 260px;
  }
}

/* =============================================
   15. RESPONSIVE — 375px
   ============================================= */
@media (max-width: 375px) {
  .blog-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .blog-card {
    flex: 0 0 220px;
  }
}

/* =============================================
   PAGE-LOAD ENTRANCE — on load only, no scroll
   triggers. Mirrors the industry page's hero
   entrance (fadeUp, --ease-soft, 600ms).
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  @keyframes blogEnter {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .blog-content { animation: blogEnter 600ms var(--ease-soft) both; }
  .blog-toc     { animation: blogEnter 600ms 140ms var(--ease-soft) both; }

  /* header elements land in sequence inside the article column */
  .blog-header .blog-eyebrow  { animation: blogEnter 500ms 80ms var(--ease-soft) both; }
  .blog-header h1             { animation: blogEnter 500ms 160ms var(--ease-soft) both; }
  .blog-header .blog-subtitle { animation: blogEnter 500ms 240ms var(--ease-soft) both; }
  .blog-header .blog-meta     { animation: blogEnter 500ms 320ms var(--ease-soft) both; }
}
