/* ══════════════════════════════════════════════════════════
   Blog Single Post  ·  sbl-* namespace
   ══════════════════════════════════════════════════════════ */

.sbl-page {
  background: var(--bg, #fffdf4);
}

/* ── Reading progress bar ─────────────────────────────── */
.sbl-progress-wrap {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(29, 34, 38, 0.08);
  z-index: 998;
}

.sbl-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow, #fcd206), var(--purple, #752092));
  transition: width 0.06s linear;
  border-radius: 0 3px 3px 0;
}

/* ══════════════════════════════════════════════════════════
   HERO  —  two columns: copy (left) + image (right)
   ══════════════════════════════════════════════════════════ */

.sbl-hero {
  padding: 52px 0 44px;
  background:
    radial-gradient(ellipse 75% 110% at -6% -5%,  rgba(252, 210, 6, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 60% 90%  at 108% 10%, rgba(117, 32, 146, 0.11) 0%, transparent 55%),
    linear-gradient(180deg, var(--white, #fff) 0%, var(--bg, #fffdf4) 100%);
  position: relative;
}

.sbl-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border, #e8e2d6), transparent);
}

.sbl-hero-inner {
  display: grid;
  align-items: center;
  gap: 44px;
}

.sbl-hero-inner.has-image {
  grid-template-columns: 1fr 0.85fr;
}

.sbl-hero-inner.no-image {
  grid-template-columns: 1fr;
  max-width: 820px;
}

/* ── Back link ───────────────────────────────────────── */
.sbl-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
  color: var(--purple, #752092);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  transition: gap 0.15s, color 0.15s;
}

.sbl-back:hover {
  gap: 8px;
  color: var(--charcoal, #1d2226);
}

.sbl-back svg { flex-shrink: 0; }

/* ── Category + read-time chips ────────────────────── */
.sbl-hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.sbl-cat-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--yellow, #fcd206);
  color: var(--charcoal, #1d2226);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11.5px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background 0.15s;
}

.sbl-cat-chip:hover { background: #e8be00; }

.sbl-read-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1.5px solid var(--border, #e8e2d6);
  background: var(--white, #fff);
  color: var(--text-muted, #5a6370);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
}

/* ── Title ───────────────────────────────────────────── */
.sbl-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--charcoal, #1d2226);
  margin-bottom: 18px;
}

/* ── Excerpt ─────────────────────────────────────────── */
.sbl-excerpt {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-muted, #5a6370);
  margin-bottom: 24px;
}

.sbl-excerpt p { margin: 0; }

/* ── Author row ──────────────────────────────────────── */
.sbl-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sbl-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid var(--border, #e8e2d6);
}

.sbl-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sbl-author-name {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 900;
  color: var(--charcoal, #1d2226);
}

.sbl-author-meta {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12.5px;
  color: var(--text-muted, #5a6370);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sbl-dot { color: var(--border, #e8e2d6); }

/* ── Hero image ──────────────────────────────────────── */
.sbl-hero-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 24px -8px rgba(29, 34, 38, 0.15),
    0 24px 64px -16px rgba(29, 34, 38, 0.12);
  animation: sbl-slide-right 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.sbl-hero-img img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   CONTENT SECTION
   ══════════════════════════════════════════════════════════ */

.sbl-content-section {
  padding: 48px 0 80px;
}

.sbl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: start;
}

/* ── Main article body ───────────────────────────────── */
.sbl-body {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e2d6);
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: 0 2px 16px -6px rgba(29, 34, 38, 0.08);
  animation: sbl-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Typography inside content */
.sbl-body h2,
.sbl-body h3,
.sbl-body h4 {
  font-family: var(--font-main, 'Outfit', sans-serif);
  color: var(--charcoal, #1d2226);
  letter-spacing: -0.3px;
  margin-top: 36px;
  margin-bottom: 14px;
}

.sbl-body h2 { font-size: 26px; line-height: 1.22; }
.sbl-body h3 { font-size: 21px; line-height: 1.3; }
.sbl-body h4 { font-size: 18px; line-height: 1.35; }

.sbl-body h2:first-child,
.sbl-body h3:first-child,
.sbl-body h4:first-child { margin-top: 0; }

.sbl-body p,
.sbl-body li {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 17px;
  line-height: 1.88;
  color: var(--text-muted, #5a6370);
}

.sbl-body p { margin-bottom: 22px; }
.sbl-body p:last-child { margin-bottom: 0; }

.sbl-body ul,
.sbl-body ol {
  padding-left: 24px;
  margin: 18px 0;
}

.sbl-body li { margin-bottom: 6px; }

.sbl-body a {
  color: var(--purple, #752092);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(117, 32, 146, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.sbl-body a:hover { text-decoration-color: var(--purple, #752092); }

.sbl-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}

.sbl-body blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--yellow, #fcd206);
  background: var(--bg, #fffdf4);
  border-radius: 0 12px 12px 0;
}

.sbl-body blockquote p {
  margin-bottom: 0;
  color: var(--charcoal, #1d2226);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.65;
}

.sbl-body pre {
  background: #1a1e22;
  color: #e4e8ed;
  border-radius: 12px;
  padding: 22px 24px;
  overflow-x: auto;
  margin: 26px 0;
  font-size: 14px;
  line-height: 1.72;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.sbl-body code {
  background: rgba(117, 32, 146, 0.08);
  color: var(--purple, #752092);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 14px;
}

.sbl-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.sbl-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border, #e8e2d6);
}

.sbl-body th,
.sbl-body td {
  padding: 11px 16px;
  border: 1px solid var(--border, #e8e2d6);
  text-align: left;
  vertical-align: top;
}

.sbl-body th {
  background: var(--charcoal, #1d2226);
  color: var(--white, #fff);
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.2px;
}

.sbl-body td { color: var(--text-muted, #5a6370); }
.sbl-body tr:nth-child(even) td { background: var(--bg, #fffdf4); }

/* ── Page links (paginated posts) ─────────────────── */
.sbl-page-links {
  margin-top: 20px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 700;
}

/* ── Tags ────────────────────────────────────────────── */
.sbl-tags {
  margin-top: 24px;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e2d6);
  border-top: 3px solid var(--yellow, #fcd206);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px -4px rgba(29, 34, 38, 0.07);
}

.sbl-tags h2 {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 18px;
  color: var(--charcoal, #1d2226);
  margin-bottom: 14px;
}

.sbl-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sbl-tag-list a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(117, 32, 146, 0.08);
  color: var(--purple, #752092);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sbl-tag-list a:hover {
  background: var(--purple, #752092);
  color: var(--white, #fff);
}

/* ── Post navigation ────────────────────────────────── */
.sbl-post-nav {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sbl-prev,
.sbl-next { display: flex; }

.sbl-next { justify-content: flex-end; }

.sbl-prev a,
.sbl-next a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e2d6);
  box-shadow: 0 2px 10px -4px rgba(29, 34, 38, 0.07);
  color: var(--charcoal, #1d2226);
  text-decoration: none;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.4;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.sbl-prev a::before {
  content: '← Previous';
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted, #5a6370);
  letter-spacing: 0.3px;
}

.sbl-next a {
  text-align: right;
}

.sbl-next a::before {
  content: 'Next →';
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted, #5a6370);
  letter-spacing: 0.3px;
}

.sbl-prev a:hover,
.sbl-next a:hover {
  color: var(--purple, #752092);
  border-color: rgba(117, 32, 146, 0.2);
  box-shadow: 0 8px 28px -8px rgba(29, 34, 38, 0.14);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */

.sbl-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Table of Contents ───────────────────────────────── */
.sbl-toc-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e2d6);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px -4px rgba(29, 34, 38, 0.07);
}

.sbl-toc-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.sbl-toc-header svg {
  color: var(--purple, #752092);
  flex-shrink: 0;
}

.sbl-toc-header h2 {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--purple, #752092);
  margin: 0;
}

.sbl-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: 340px;
  overflow-y: auto;
}

.sbl-toc-list::-webkit-scrollbar { width: 5px; }
.sbl-toc-list::-webkit-scrollbar-thumb {
  background: rgba(117, 32, 146, 0.25);
  border-radius: 999px;
}

.sbl-toc-list li { margin: 0; }

.sbl-toc-list a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid var(--border, #e8e2d6);
  color: var(--text-muted, #5a6370);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.13s, border-color 0.13s, background 0.13s;
  border-radius: 0 6px 6px 0;
}

.sbl-toc-list a.lvl-3 {
  padding-left: 22px;
  font-size: 12.5px;
  font-weight: 600;
}

.sbl-toc-list a:hover,
.sbl-toc-list a.is-active {
  color: var(--charcoal, #1d2226);
  border-left-color: var(--yellow, #fcd206);
  background: var(--bg, #fffdf4);
}

/* ── CTA card ────────────────────────────────────────── */
.sbl-sidebar-cta {
  background: var(--charcoal, #1d2226);
  border-radius: 14px;
  padding: 26px 24px;
  border-top: 4px solid var(--yellow, #fcd206);
  position: relative;
  overflow: hidden;
}

.sbl-sidebar-cta::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(252, 210, 6, 0.05);
  pointer-events: none;
}

.sbl-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(252, 210, 6, 0.15);
  color: var(--yellow, #fcd206);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  width: fit-content;
}

.sbl-cta-title {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 18px;
  line-height: 1.25;
  color: var(--white, #fff);
  margin-bottom: 10px;
  position: relative;
}

.sbl-cta-desc {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
  position: relative;
}

.sbl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--yellow, #fcd206);
  color: var(--charcoal, #1d2226);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  position: relative;
  transition: background 0.15s, transform 0.15s, gap 0.15s;
  box-shadow: 0 3px 12px -4px rgba(252, 210, 6, 0.45);
}

.sbl-cta-btn:hover {
  background: #e8be00;
  transform: translateY(-2px);
  gap: 8px;
}

/* ── Categories card ─────────────────────────────────── */
.sbl-sidebar-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e2d6);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px -4px rgba(29, 34, 38, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sbl-sidebar-card h2 {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted, #5a6370);
  margin-bottom: 4px;
}

.sbl-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg, #fffdf4);
  border: 1px solid var(--border, #e8e2d6);
  color: var(--charcoal, #1d2226);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sbl-sidebar-link::after {
  content: '→';
  color: var(--purple, #752092);
  font-size: 13px;
  transition: transform 0.15s, color 0.15s;
}

.sbl-sidebar-link:hover {
  background: var(--charcoal, #1d2226);
  border-color: var(--charcoal, #1d2226);
  color: var(--white, #fff);
}

.sbl-sidebar-link:hover::after {
  color: var(--yellow, #fcd206);
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════
   RELATED ARTICLES
   ══════════════════════════════════════════════════════════ */

.sbl-related {
  padding: 0 0 80px;
}

.sbl-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sbl-related-head .tag { display: inline-flex; }

.sbl-related-head h2 {
  margin-top: 8px;
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.1;
  color: var(--charcoal, #1d2226);
  letter-spacing: -0.6px;
}

.sbl-related-all {
  flex-shrink: 0;
  color: var(--purple, #752092);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 900;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  transition: color 0.15s;
}

.sbl-related-all:hover {
  color: var(--charcoal, #1d2226);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sbl-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sbl-related-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e2d6);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px -4px rgba(29, 34, 38, 0.07);
  animation: sbl-fade-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sbl-related-card:nth-child(2) { animation-delay: 0.07s; }
.sbl-related-card:nth-child(3) { animation-delay: 0.14s; }

.sbl-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(29, 34, 38, 0.16);
}

.sbl-related-img {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.sbl-related-img img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.sbl-related-card:hover .sbl-related-img img { transform: scale(1.05); }

.sbl-related-placeholder {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(117, 32, 146, 0.12), rgba(252, 210, 6, 0.20));
}

.sbl-related-placeholder span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal, #1d2226);
  color: var(--yellow, #fcd206);
  font-weight: 900;
  font-size: 17px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.sbl-related-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.sbl-related-date {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(252, 210, 6, 0.18);
  color: var(--charcoal, #1d2226);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 800;
  width: fit-content;
}

.sbl-related-body h3 {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin: 0;
}

.sbl-related-body h3 a {
  color: var(--charcoal, #1d2226);
  text-decoration: none;
  transition: color 0.15s;
}

.sbl-related-body h3 a:hover { color: var(--purple, #752092); }

.sbl-related-body p {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: var(--text-muted, #5a6370);
  font-size: 13.5px;
  line-height: 1.62;
  flex: 1;
  margin: 0;
}

.sbl-related-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--purple, #752092);
  text-decoration: none;
  font-weight: 900;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  margin-top: auto;
  transition: gap 0.15s, color 0.15s;
}

.sbl-related-link:hover {
  gap: 7px;
  color: var(--charcoal, #1d2226);
}

/* ══════════════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════════════ */

@keyframes sbl-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sbl-slide-right {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .sbl-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .sbl-hero-inner.has-image {
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .sbl-hero-inner.has-image {
    grid-template-columns: 1fr;
  }

  .sbl-hero-img {
    max-height: 320px;
    overflow: hidden;
  }

  .sbl-hero-img img {
    max-height: 320px;
  }

  .sbl-layout {
    grid-template-columns: 1fr;
  }

  .sbl-sidebar {
    position: static;
  }

  .sbl-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sbl-progress-wrap {
    top: 56px;
  }

  .sbl-hero {
    padding: 36px 0 32px;
  }

  .sbl-title {
    font-size: clamp(24px, 7vw, 38px);
    letter-spacing: -1.5px;
  }

  .sbl-body {
    padding: 26px 22px;
  }

  .sbl-content-section {
    padding: 32px 0 56px;
  }

  .sbl-post-nav {
    grid-template-columns: 1fr;
  }

  .sbl-next { justify-content: flex-start; }
  .sbl-next a { text-align: left; }
  .sbl-next a::before { content: 'Next →'; }

  .sbl-related-grid {
    grid-template-columns: 1fr;
  }

  .sbl-related-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .sbl-hero {
    padding: 28px 0 24px;
  }

  .sbl-body {
    padding: 22px 18px;
  }

  .sbl-tags,
  .sbl-sidebar-cta,
  .sbl-sidebar-card,
  .sbl-toc-card {
    border-radius: 12px;
    padding: 18px;
  }
}
