body {
  background-color: #f4f5ff;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Mulish', system-ui, sans-serif;
  background-image:
    radial-gradient(60% 40% at 80% -10%, hsl(263, 73%, 52%, 0.10), transparent 60%),
    radial-gradient(40% 30% at 0% 30%, hsl(263, 73%, 52%, 0.05), transparent 60%);
  background-attachment: fixed;
}

.article-wrap {
  max-width: 665px;
}

.post-hero {
  padding-top: 9.55rem;
  padding-bottom: 2.4rem;
}

.service-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: hsl(263, 18%, 44%, 0.68);
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 2.25rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-quart);
}

.service-back-link:hover {
  color: var(--primary);
}

.post-hero .d-flex {
  gap: 0.9rem !important;
  margin-bottom: 1.35rem !important;
}

.eyebrow,
.category,
.meta,
.text-bg-brand {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.meta {
  color: hsl(263, 16%, 46%, 0.64);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.text-bg-brand {
  align-items: center;
  background: hsl(263, 90%, 68%, 0.11) !important;
  border: 1px solid hsl(263, 90%, 68%, 0.58);
  border-radius: 999px;
  color: var(--primary-light) !important;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.62rem 0.9rem;
}

.post-hero h1 {
  color: var(--navy-deep);
  font-size: clamp(3rem, 4.08vw, 4.08rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 1.45rem;
}

.post-hero p {
  color: #1b0f2ed9;
  font-size: 1.18rem;
  line-height: 1.5;
  margin: 0;
  max-width: 710px;
}

.cover-image {
  aspect-ratio: 16 / 10;
  border: 1px solid hsl(263, 90%, 68%, 0.45);
  border-radius: 14px;
  display: block;
  margin: 0 auto;
  max-height: 720px;
  max-width: 900px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.article-body {
  padding-bottom: 3rem;
}

.article-body p,
.article-body li {
  color: #1b0f2ed9;
  font-size: 18px;
  line-height: 1.72;
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-lead {
  color: hsl(263, 26%, 29%, 0.82) !important;
  font-size: 1.32rem !important;
  line-height: 1.38 !important;
  margin-bottom: 2.35rem !important;
}

.article-body h2,
.article-body h3 {
  color: var(--navy-deep);
  font-weight: 700;
}

.article-body h2 {
  font-size: clamp(1.8rem, 2.45vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 3.2rem 0 1.45rem;
}

.article-body h3 {
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  margin: 2.25rem 0 1.55rem;
}

.article-body ul,
.article-body ol {
  margin: 1.6rem 0 0;
  padding-left: 0;
}

.article-body ul {
  list-style: none;
}

.article-body ul li {
  margin-bottom: .5rem;
  padding-left: 1.55rem;
  position: relative;
}

.article-body ul li::before {
  background: var(--primary-light);
  border-radius: 50%;
  content: "";
  height: 0.42rem;
  left: 0.1rem;
  position: absolute;
  top: 0.78rem;
  width: 0.42rem;
}

.article-body ol {
  counter-reset: article-steps;
  list-style: none;
}

.article-body ol li {
  counter-increment: article-steps;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 2rem 1fr;
  margin-bottom: .5rem;
  padding-left: 0;
}

.article-body ol li::before {
  color: var(--primary-light);
  content: counter(article-steps, decimal-leading-zero);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.callout {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 2.55rem 0;
  padding: 1.9rem 2.15rem 1.9rem 4.2rem;
  position: relative;
}

.callout strong {
  color: var(--primary);
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.callout p {
  color: hsl(263, 22%, 34%, 0.8);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.callout::before {
  font-family: bootstrap-icons;
  font-size: 1.2rem;
  left: 2rem;
  line-height: 1;
  position: absolute;
  top: 2rem;
}

.callout-summary {
  background: hsl(46, 100%, 58%, 0.13);
  border-color: hsl(42, 92%, 59%, 0.58);
}

.callout-summary::before {
  color: #c78610;
  content: "\f1a2";
}

.callout-warning {
  background: hsl(42, 100%, 58%, 0.11);
  border-color: hsl(42, 92%, 59%, 0.55);
}

.callout-warning::before {
  color: #c78610;
  content: "\f33a";
}

.callout-tip {
  background: hsl(173, 74%, 53%, 0.12);
  border-color: hsl(166, 72%, 54%, 0.46);
}

.callout-tip strong {
  color: #059d8c;
}

.callout-tip::before {
  color: #059d8c;
  content: "\f468";
}

.article-image {
  margin: 3rem 0 3rem;
}

.article-image img {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0 0 12px 12px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.article-image figcaption {
  color: hsl(263, 15%, 45%, 0.66);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.quote-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px -36px hsl(263, 50%, 20%, 0.35);
  margin: 2.9rem 0 2.6rem;
  padding: 3rem;
}

.quote-card::before {
  color: var(--primary-light);
  content: "\201D";
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 0.7;
}

.quote-card blockquote {
  color: hsl(263, 22%, 24%, 0.88);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0;
}

.quote-card figcaption {
  border-top: 1px solid var(--border);
  color: hsl(263, 15%, 45%, 0.7);
  font-size: 0.95rem;
  margin-top: 2.1rem;
  padding-top: 1.5rem;
}

.quote-card figcaption::before {
  content: "\2014  ";
}

.keep-reading {
  border-color: var(--border) !important;
  padding: 4rem 0;
}

.keep-reading .container-xxl,
.cta-section .container-xxl {
  max-width: 1320px;
}

.section-heading {
  color: var(--navy-deep);
  font-size: clamp(2.3rem, 3.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.article-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  display: flex;
  flex-direction: column;
  min-height: 185px;
  padding: 1.8rem 2rem;
  transition: border-color 0.2s var(--ease-quart), transform 0.2s var(--ease-quart), background 0.2s var(--ease-quart);
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: hsl(263, 73%, 52%, 0.35);
  transform: translateY(-2px);
}

.article-card .category {
  display: none;
}

.article-card h2 {
  color: var(--navy-deep);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0 0 1.2rem !important;
}

.article-card p {
  color: hsl(263, 16%, 42%, 0.68);
  font-size: 1rem;
  line-height: 1.62;
  margin: 0;
}

.cta-section {
  padding: 0 0 5rem;
}

.cta-panel {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, hsl(263, 50%, 14%) 100%);
  border: 1px solid hsl(263, 40%, 35%);
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  padding: clamp(4.3rem, 6.5vw, 6.5rem) clamp(4rem, 7vw, 8rem);
  position: relative;
}

.cta-panel::before {
  background-image:
    linear-gradient(hsl(263, 25%, 88%, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(263, 25%, 88%, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
  position: absolute;
}

.cta-panel::after {
  background: hsl(263, 73%, 52%, 0.28);
  border-radius: 50%;
  content: "";
  filter: blur(110px);
  height: 500px;
  pointer-events: none;
  position: absolute;
  right: -150px;
  top: -200px;
  width: 500px;
}

.cta-panel>* {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.cta-panel .eyebrow {
  color: hsl(263, 73%, 80%, 0.64);
  font-weight: 500;
  font-size: .8rem;
}

.cta-panel h2 {
  color: #fff;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 2.2rem;
}

.cta-panel h2 span {
  background: linear-gradient(135deg, hsl(263, 73%, 52%) 0%, hsl(263, 90%, 68%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.cta-panel p {
  color: hsl(0, 0%, 100%, 0.68);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 3rem;
  max-width: 650px;
}

.btn-brand {
  align-items: center;
  background: linear-gradient(135deg, hsl(263, 73%, 52%) 0%, hsl(263deg 83.21% 56.63%) 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: #120922;
  display: inline-flex;
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  gap: 8px;
  min-width: 242px;
  padding: 1.05rem 2.2rem;
}

.btn-brand:hover {
  background: linear-gradient(135deg, hsl(263, 90%, 68%) 0%, hsl(263, 73%, 58%) 100%);
  color: #120922;
}

.btn-outline-light {
  align-items: center;
  background: transparent;
  border: 1px solid hsl(0, 0%, 100%, 0.18);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  min-width: 210px;
  padding: 1.05rem 2.2rem;
}

.btn-outline-light:hover {
  background: hsl(0, 0%, 100%, 0.08);
  border-color: hsl(0, 0%, 100%, 0.32);
  color: #fff;
}

@media (max-width: 991.98px) {
  .post-hero {
    padding-top: 10rem;
  }

  .post-hero h1 {
    font-size: clamp(3rem, 9vw, 4.4rem);
  }

  .cover-image {
    aspect-ratio: 4 / 3;
  }

  .keep-reading {
    padding: 4rem 0 4rem;
  }
}

@media (max-width: 575.98px) {
  .post-hero {
    padding-top: 7.5rem;
    padding-bottom: 2.4rem;
  }

  .service-back-link {
    margin-bottom: 2rem;
  }

  .post-hero .d-flex {
    gap: 0.75rem !important;
  }

  .post-hero h1 {
    font-size: 36px;
  }

  .post-hero p,
  .article-lead {
    font-size: 1.25rem !important;
  }

  .article-body p,
  .article-body li {
    font-size: 1.05rem;
  }

  .callout,
  .quote-card,
  .cta-panel {
    padding: 1.5rem;
  }

  .callout {
    padding-left: 3.2rem;
  }

  .callout::before {
    left: 1.35rem;
    top: 1.65rem;
  }

  .article-image {
    margin: 2rem 0;
  }

  .cta-panel h2 {
    font-size: 3rem;
  }
}
/* ═══════════════════════════════════════════════════════════════
   MISSING CLASS ALIASES
   Template (single.php) uses post-* class names;
   original CSS used article-* — aliases added below.
═══════════════════════════════════════════════════════════════ */

/* H1 — CSS had .post-hero h1 (descendant); template uses .post-h1 (direct) */
.post-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 12px 0 20px;
}

/* Post meta row (CSS had .meta) */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: hsl(263, 50%, 12%, 0.5);
}

.post-author { font-weight: 500; }
.post-date   { }
.post-read-time { }

/* Featured image — CSS had .cover-image */
.post-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--border);
}

.post-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* Body content — CSS had .article-body; template uses .post-content */
.post-content { /* inherits .wysiwyg styles from common.css */ }

/* Override with richer blog-specific typography */
.post-content p,
.post-content li {
  font-size: 1.05rem;
  color: hsl(263, 50%, 12%, 0.75);
  line-height: 1.85;
}

.post-content p { margin-bottom: 20px; }

.post-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.post-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  margin: 32px 0 12px;
}

.post-content ul { list-style: none; padding: 0; margin-bottom: 20px; }
.post-content ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content ol li { margin-bottom: 8px; }

.post-content strong { color: var(--foreground); font-weight: 600; }
.post-content a { color: var(--primary); text-decoration: underline; text-decoration-color: hsl(263, 73%, 52%, 0.4); }
.post-content a:hover { text-decoration-color: var(--primary); }

.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  background: hsl(263, 73%, 52%, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: hsl(263, 50%, 12%, 0.7);
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(263, 50%, 12%, 0.6);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.post-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Post navigation (prev/next) */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 45%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.post-nav-link:hover { color: var(--primary); }

.post-nav-prev { justify-content: flex-start; }
.post-nav-next { justify-content: flex-end; margin-left: auto; text-align: right; }

/* Wrappers */
.post-body-section    { border-top: 1px solid var(--border); }
.post-related-section { border-top: 1px solid var(--border); }
