/* ================================================================
   Smart Posts Display Pro — Single Post Styles
   ================================================================ */

/* ----------------------------------------------------------------
   Progress bar — uses --spd-btn CSS var set inline
   ---------------------------------------------------------------- */
.spd-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  z-index: 9999;
  background: var(--spd-btn, var(--spd-accent, #6366f1));
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ----------------------------------------------------------------
   Single wrapper
   ---------------------------------------------------------------- */
.spd-single {
  --spd-content-w: 760px;
  font-family: inherit;
}
.spd-single__inner {
  max-width: calc(var(--spd-content-w) + 80px);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .spd-single__inner { padding: 0 20px; } }
@media (max-width: 480px) { .spd-single__inner { padding: 0 16px; } }

/* ================================================================
   HERO — SPLIT (image gauche / contenu droite)
   ================================================================ */
.spd-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  margin-bottom: 0;
  background: #fff;
}
@media (max-width: 860px) {
  .spd-hero--split { grid-template-columns: 1fr; }
}

/* Image column */
.spd-hero--split__img-col {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  min-height: 420px;
}
@media (max-width: 860px) { .spd-hero--split__img-col { min-height: 300px; } }

.spd-hero--split__img-wrap {
  position: absolute;
  inset: 0;
}
.spd-hero--split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 6s ease;
}
.spd-hero--split:hover .spd-hero--split__img { transform: scale(1.03); }

.spd-hero--split__no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

/* Content column */
.spd-hero--split__content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  background: #ffffff;
}
@media (max-width: 1100px) { .spd-hero--split__content-col { padding: 48px 40px; } }
@media (max-width: 860px)  { .spd-hero--split__content-col { padding: 40px 24px; } }

.spd-hero--split__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.spd-hero--split__cat {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1.5px solid;
  transition: all 0.15s;
}
.spd-hero--split__cat:hover { opacity: 0.75; }

.spd-hero--split__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  color: #0f172a !important;
  margin: 0 0 24px !important;
  letter-spacing: -0.025em !important;
}

/* Meta row */
.spd-hero--split__meta { margin-bottom: 0; }
.spd-hero--split__author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spd-hero--split__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}
.spd-hero--split__author-info { display: flex; flex-direction: column; gap: 4px; }
.spd-hero--split__author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}
.spd-hero--split__meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.spd-hero--split__date,
.spd-hero--split__reading {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #64748b;
}

.spd-hero--split__excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin: 18px 0 0;
}

/* ----------------------------------------------------------------
   HERO — Fullwidth
   ---------------------------------------------------------------- */
.spd-hero--fullwidth {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 60px;
}
@media (max-width: 768px) { .spd-hero--fullwidth { min-height: 460px; margin-bottom: 40px; } }

.spd-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.04);
  transition: transform 8s ease;
  filter: brightness(0.7);
}
.spd-hero--fullwidth:hover .spd-hero__bg { transform: scale(1); }

.spd-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.94) 0%,
    rgba(0,0,0,0.72) 38%,
    rgba(0,0,0,0.42) 65%,
    rgba(0,0,0,0.18) 100%
  );
}

.spd-hero__content {
  position: relative;
  z-index: 3;
  padding: 60px;
  max-width: 820px;
  color: #ffffff !important;
}
@media (max-width: 768px) { .spd-hero__content { padding: 32px 24px; } }

.spd-hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.spd-hero__cat {
  color: var(--spd-btn-text, #fff) !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
}
.spd-hero__cat:hover { opacity: 0.88; }

.spd-hero__title {
  font-size: clamp(1.7rem, 4vw, 2.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  margin: 0 0 22px !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
}

.spd-hero__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.spd-hero__author-wrap { display: flex; align-items: center; gap: 12px; }
.spd-hero__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.7); object-fit: cover;
}
.spd-hero__author { display: block; font-size: 0.9rem; font-weight: 700; color: #fff !important; }
.spd-hero__date   { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.75) !important; margin-top: 2px; }
.spd-hero__reading {
  display: flex; align-items: center; gap: 6px; font-size: 0.82rem;
  color: rgba(255,255,255,0.9) !important;
  background: rgba(255,255,255,0.15);
  padding: 7px 16px; border-radius: 100px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ----------------------------------------------------------------
   HERO — Contained / Minimal
   ---------------------------------------------------------------- */
.spd-hero--contained,
.spd-hero--minimal { padding: 60px 0 0; }

.spd-post__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: #94a3b8; margin-bottom: 20px; flex-wrap: wrap;
}
.spd-post__breadcrumb a { color: #94a3b8; text-decoration: none; }
.spd-post__breadcrumb a:hover { color: var(--spd-btn); }

.spd-post__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.spd-post__cat {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
}
.spd-post__cat:hover { text-decoration: underline; }

.spd-post__title {
  font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.18;
  color: #0f172a; margin: 0 0 28px; letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------
   Post Meta (contained/minimal)
   ---------------------------------------------------------------- */
.spd-post__meta {
  display: flex; align-items: center;
  padding: 20px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
  margin-bottom: 36px;
}
.spd-post__meta-author { display: flex; align-items: center; gap: 14px; }
.spd-post__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.spd-post__author { display: block; font-size: 0.92rem; font-weight: 700; color: #1e293b; }
.spd-post__meta-sub { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 3px; }
.spd-post__date,
.spd-post__reading,
.spd-post__words { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: #64748b; }

.spd-hero__img-wrap { margin: 32px 0 0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.spd-hero__img { width: 100%; display: block; aspect-ratio: 16/8; object-fit: cover; }

/* ----------------------------------------------------------------
   Content body
   ---------------------------------------------------------------- */
.spd-single__body { padding: 48px 0 60px; }
.spd-single__content-col { max-width: var(--spd-content-w); margin: 0 auto; }

/* ----------------------------------------------------------------
   TOC
   ---------------------------------------------------------------- */
.spd-toc {
  background: #f8fafc; border: 2px solid #e2e8f0;
  border-left: 4px solid var(--spd-btn); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 36px;
}
.spd-toc__header {
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 800;
  color: #1e293b; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.spd-toc__list { margin: 0; padding: 0 0 0 20px; list-style: decimal; }
.spd-toc__item { margin: 4px 0; }
.spd-toc__item a { font-size: 0.875rem; color: #475569; text-decoration: none; transition: color 0.15s; }
.spd-toc__item a:hover { color: var(--spd-btn); }
.spd-toc__item--h3 { margin-left: 16px; }
.spd-toc__item--h4 { margin-left: 32px; }

/* ----------------------------------------------------------------
   Prose
   ---------------------------------------------------------------- */
.spd-prose { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.spd-prose h2, .spd-prose h3, .spd-prose h4 {
  font-weight: 800; color: #0f172a; margin: 2em 0 0.6em; line-height: 1.25; scroll-margin-top: 80px;
}
.spd-prose h2 { font-size: 1.6rem; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }
.spd-prose h3 { font-size: 1.25rem; }
.spd-prose h4 { font-size: 1.05rem; }
.spd-prose p  { margin: 0 0 1.4em; }
.spd-prose a  { color: var(--spd-accent, var(--spd-btn)); text-decoration: underline; text-underline-offset: 3px; }
.spd-prose a:hover { opacity: 0.8; }
.spd-prose blockquote {
  border-left: 4px solid var(--spd-btn); margin: 2em 0; padding: 16px 24px;
  background: #f8fafc; border-radius: 0 10px 10px 0; font-style: italic; color: #475569;
}
.spd-prose blockquote p:last-child { margin: 0; }
.spd-prose ul, .spd-prose ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.spd-prose li { margin-bottom: 0.4em; }
.spd-prose img { max-width: 100%; border-radius: 12px; margin: 1.5em 0; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.spd-prose figure { margin: 2em 0; }
.spd-prose figcaption { font-size: 0.82rem; color: #94a3b8; text-align: center; margin-top: 8px; }
.spd-prose code { background: #f1f5f9; color: #7c3aed; padding: 2px 7px; border-radius: 4px; font-size: 0.88em; }
.spd-prose pre { background: #1e293b; color: #e2e8f0; padding: 20px 24px; border-radius: 12px; overflow-x: auto; margin: 1.8em 0; font-size: 0.88rem; }
.spd-prose pre code { background: none; color: inherit; padding: 0; }
.spd-prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.9rem; }
.spd-prose th { background: var(--spd-btn); color: var(--spd-btn-text, #fff); font-weight: 700; padding: 10px 14px; text-align: left; }
.spd-prose td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; }
.spd-prose tr:nth-child(even) td { background: #f8fafc; }
.spd-prose hr { border: none; height: 2px; background: #f1f5f9; margin: 2.5em 0; }

/* ----------------------------------------------------------------
   Tags
   ---------------------------------------------------------------- */
.spd-post__tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 36px 0; padding: 20px; background: #f8fafc; border-radius: 10px;
  font-size: 0.82rem; color: #64748b;
}
.spd-post__tag {
  display: inline-block; padding: 4px 12px; border: 1.5px solid;
  border-radius: 100px; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.15s;
}
.spd-post__tag:hover { background: var(--spd-btn); color: var(--spd-btn-text, #fff) !important; border-color: var(--spd-btn); }

/* ----------------------------------------------------------------
   Share buttons — use --spd-btn color
   ---------------------------------------------------------------- */
.spd-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.spd-share--bottom { margin-top: 36px; }
.spd-share__label { font-size: 0.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
.spd-share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.spd-share__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border-radius: 8px; font-size: 0.8rem; font-weight: 700; text-decoration: none;
  color: var(--btn-color); border: 2px solid var(--btn-color);
  background: transparent; cursor: pointer; transition: all 0.15s;
}
.spd-share__btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.spd-share__btn:hover { background: var(--btn-color); color: #fff; }
.spd-share__btn.copied { background: #10b981; border-color: #10b981; color: #fff; }

/* ----------------------------------------------------------------
   Author box — uses --spd-btn
   ---------------------------------------------------------------- */
.spd-author-box {
  display: flex; gap: 24px; background: linear-gradient(135deg,#f8fafc,#fff);
  border: 2px solid #e2e8f0; border-radius: 16px; padding: 28px; margin: 48px 0 36px; align-items: flex-start;
}
@media (max-width: 600px) { .spd-author-box { flex-direction: column; gap: 16px; padding: 20px; } }
.spd-author-box__avatar-wrap { flex-shrink: 0; }
.spd-author-box__avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--spd-btn); object-fit: cover; }
.spd-author-box__eyebrow { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--spd-btn); margin: 0 0 4px; }
.spd-author-box__name { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; }
.spd-author-box__name a { text-decoration: none; color: var(--spd-btn); }
.spd-author-box__name a:hover { text-decoration: underline; }
.spd-author-box__bio { font-size: 0.88rem; line-height: 1.65; color: #475569; margin: 0 0 16px; }
.spd-author-box__links { display: flex; gap: 10px; flex-wrap: wrap; }
.spd-author-box__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border-radius: 100px; font-size: 0.8rem; font-weight: 700;
  background: var(--spd-btn); color: var(--spd-btn-text, #fff) !important;
  text-decoration: none; transition: opacity 0.15s;
}
.spd-author-box__link:hover { opacity: 0.88; }
.spd-author-box__link--ghost {
  background: transparent; border: 2px solid #e2e8f0; color: #475569 !important; padding: 5px 14px;
}
.spd-author-box__link--ghost:hover { border-color: var(--spd-btn); color: var(--spd-btn) !important; }

/* ----------------------------------------------------------------
   Post nav prev/next — uses --spd-btn
   ---------------------------------------------------------------- */
.spd-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 48px 0; padding: 28px 0; border-top: 2px solid #f1f5f9;
}
@media (max-width: 600px) { .spd-post-nav { grid-template-columns: 1fr; } }
.spd-post-nav__item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px;
  text-decoration: none; transition: all 0.2s; overflow: hidden;
}
.spd-post-nav__item:hover {
  border-color: var(--spd-btn); background: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.spd-post-nav__item--next { text-align: right; justify-content: flex-end; }
.spd-post-nav__thumb { width: 56px; height: 56px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; }
.spd-post-nav__dir {
  display: flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin-bottom: 4px;
}
.spd-post-nav__item--next .spd-post-nav__dir { justify-content: flex-end; }
.spd-post-nav__title {
  display: -webkit-box; font-size: 0.88rem; font-weight: 700; color: #1e293b;
  line-height: 1.35; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ----------------------------------------------------------------
   Related
   ---------------------------------------------------------------- */
.spd-related { padding: 60px 0; background: #f8fafc; border-top: 2px solid #e2e8f0; }
.spd-section-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.spd-section-head__title { font-size: 1.5rem; font-weight: 900; color: #0f172a; margin: 0; }
.spd-section-head__line { width: 48px; height: 4px; border-radius: 2px; }

/* ----------------------------------------------------------------
   Page links
   ---------------------------------------------------------------- */
.spd-page-links { margin: 36px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.88rem; color: #64748b; }
.spd-page-links span a {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 6px; background: #f1f5f9; color: #1e293b; text-decoration: none; font-weight: 600; transition: all 0.15s;
}
.spd-page-links span a:hover { background: var(--spd-btn); color: var(--spd-btn-text, #fff); }

/* ----------------------------------------------------------------
   Full-width wrapper (used outside split hero)
   ---------------------------------------------------------------- */
.spd-single__wide {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .spd-single__wide { padding: 0 20px; } }
@media (max-width: 480px) { .spd-single__wide { padding: 0 16px; } }

/* ----------------------------------------------------------------
   Two-column layout: content left + sidebar right
   ---------------------------------------------------------------- */
.spd-single__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  padding: 52px 0 72px;
  align-items: start;
}
@media (max-width: 1100px) {
  .spd-single__layout { grid-template-columns: 1fr 280px; gap: 36px; }
}
@media (max-width: 768px) {
  .spd-single__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ----------------------------------------------------------------
   Main content column
   ---------------------------------------------------------------- */
.spd-single__main { min-width: 0; }

/* ----------------------------------------------------------------
   SIDEBAR — Articles récents
   ---------------------------------------------------------------- */
.spd-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (max-width: 768px) {
  .spd-sidebar {
    position: static;
    order: 1; /* sidebar below content on mobile */
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
    margin-top: 40px;
  }
}

.spd-sidebar__block {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
}

.spd-sidebar__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  margin: 0 0 20px;
}
.spd-sidebar__title-bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Article list */
.spd-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.spd-sidebar__item {
  border-bottom: 1px solid #f1f5f9;
}
.spd-sidebar__item:last-child { border-bottom: none; }

.spd-sidebar__link {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  align-items: flex-start;
  transition: opacity 0.15s;
}
.spd-sidebar__link:hover { opacity: 0.75; }

.spd-sidebar__thumb-wrap { flex-shrink: 0; }
.spd-sidebar__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 1.5px solid #f1f5f9;
}
.spd-sidebar__thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.spd-sidebar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.spd-sidebar__cat {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.spd-sidebar__item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spd-sidebar__date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.spd-sidebar__all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  background: transparent;
}
.spd-sidebar__all-btn:hover {
  background: var(--spd-btn);
  color: var(--spd-btn-text, #fff) !important;
  border-color: var(--spd-btn);
}
.spd-sidebar__empty {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  text-align: center;
  padding: 12px 0;
}

/* Categories widget */
.spd-sidebar__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spd-sidebar__cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid;
  transition: all 0.15s;
}
.spd-sidebar__cat-pill:hover {
  background: var(--spd-btn) !important;
  color: var(--spd-btn-text, #fff) !important;
  border-color: var(--spd-btn) !important;
}
.spd-sidebar__cat-count {
  font-size: 0.68rem;
  opacity: 0.7;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   Admin: single settings specific
   ---------------------------------------------------------------- */
.spd-section-title {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: #64748b; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1.5px solid #e2e8f0;
}
.spd-divider { height: 1px; background: #e2e8f0; margin: 28px 0; }
.spd-hint { font-size: .75rem; color: #94a3b8; margin: 6px 0 0; line-height: 1.5; }

.spd-single-preview-diagram { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.spd-diagram-block { background: #fff; border: 1px solid #bbf7d0; border-radius: 7px; padding: 7px 12px; font-size: .75rem; color: #065f46; }
.spd-diagram-block--hero    { background: #d1fae5; font-weight: 700; }
.spd-diagram-block--content { background: #ecfdf5; }
.spd-diagram-block--related { background: #d1fae5; font-weight: 700; }
.spd-diagram-block--toc     { border-style: dashed; color: #047857; }
.spd-type-picker--hero { grid-template-columns: repeat(4, 1fr); }
.spd-toggle--lg { font-size: .95rem !important; }
.spd-edit-grid--single { grid-template-columns: 1fr 300px; }
@media (max-width: 960px) { .spd-edit-grid--single { grid-template-columns: 1fr; } }

