:root {
  /* Unified palette — matches styles.css (executive-coaching reference) */
  --bg: #050608;
  --panel: #0c0f14;
  --panel-2: #0f131a;
  --line: #1d2633;
  --text: #e8edf5;
  --muted: #a9b4c7;
  --blue: #0f7bff;
  --blue-soft: rgba(15, 123, 255, 0.18);
  /* Softer body text: calm, easy on the eyes (consultant-over-coffee feel) */
  --text-body: #d0daea;
  --block-bg: rgba(12, 20, 34, 0.55);
  --block-border: rgba(56, 130, 235, 0.15);
  /* Section spacing: visual reset between major sections */
  --section-gap: 4.5rem;
  --heading-float: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -8%, rgba(22, 94, 255, 0.19), transparent 40%),
    radial-gradient(circle at 84% 8%, rgba(15, 123, 255, 0.13), transparent 30%),
    var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

.mega-header,
.uf-footer {
  box-sizing: border-box;
}

.blog-page {
  width: min(1480px, calc(100% - 0.9rem));
  margin: 0 auto 1.3rem;
  display: grid;
  gap: 0.9rem;
}

.blog-hero {
  margin-bottom: var(--section-gap);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 100%, rgba(15, 123, 255, 0.2), transparent 48%),
    repeating-linear-gradient(to right,
      transparent 0,
      transparent 62px,
      rgba(255, 255, 255, 0.02) 63px,
      transparent 64px),
    linear-gradient(160deg, rgba(15, 22, 34, 0.94), rgba(7, 10, 16, 0.98));
}

.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.blog-breadcrumbs a {
  color: #8dc6ff;
  text-decoration: none;
}

.blog-hero h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.55rem, 8.5vw, 4rem);
  line-height: 1.2;
  font-weight: 600;
  color: #e4ecf8;
}

.blog-hero p {
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.15vw, 18px);
  line-height: 1.75;
  font-weight: 400;
  max-width: 980px;
}

.blog-meta {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.blog-meta span {
  border: 1px solid rgba(67, 146, 255, 0.35);
  background: rgba(16, 32, 53, 0.5);
  color: #d6e8ff;
  border-radius: 999px;
  padding: 0.42rem 0.66rem;
  font-size: 0.81rem;
}

.blog-hero-media {
  margin: 0.85rem 0 0;
  border: 1px solid rgba(68, 147, 255, 0.35);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 13, 22, 0.85);
}

.blog-hero-media img {
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}

.blog-hero-media figcaption {
  padding: 0.55rem 0.72rem;
  border-top: 1px solid rgba(68, 147, 255, 0.2);
  color: #b0c4de;
  font-size: 0.8rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-gap);
}

.blog-toc-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(12, 16, 24, 0.92), rgba(9, 13, 21, 0.96));
  overflow: hidden;
}

.blog-toc-header {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(64, 146, 255, 0.2);
  background: rgba(10, 24, 40, 0.55);
  color: #edf5ff;
  text-align: left;
  padding: 0.74rem 0.88rem;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-toc {
  margin: 0;
  padding: 0.6rem 0.88rem 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.blog-toc a {
  text-decoration: none;
  color: #c1d7f4;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
}

.blog-toc a:hover,
.blog-toc a.active {
  color: #76b8ff;
}

.blog-toc a.blog-toc-sub {
  padding-left: 1rem;
  font-size: 0.82rem;
  color: #a8c5eb;
  border-left: 2px solid rgba(64, 146, 255, 0.25);
  margin-left: 0.25rem;
}

.blog-toc a.blog-toc-sub:hover,
.blog-toc a.blog-toc-sub.active {
  color: #76b8ff;
}

.blog-article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(11, 16, 24, 0.95), rgba(7, 10, 16, 0.98));
  padding: 1rem;
}

/* Body text: 1.75 line-height — calmer, slower, more premium reading */
.blog-article p,
.blog-article li {
  color: var(--text-body);
  font-size: clamp(17px, 1.15vw, 18px);
  line-height: 1.75;
  font-weight: 400;
}

/* Lead paragraph: stands out as intro */
.blog-article .blog-lead,
.blog-article>p:first-of-type {
  font-size: clamp(17px, 1.2vw, 18px);
  line-height: 1.75;
  font-weight: 400;
  color: #d8e0ee;
  max-width: 42em;
}

.blog-article h2 {
  margin: var(--heading-float) 0 0.65rem;
  font-size: clamp(28px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #e4ecf8;
  scroll-margin-top: 100px;
}

.blog-article h2:first-of-type {
  margin-top: 2rem;
}

.blog-article h3 {
  margin: 1.2rem 0 0.45rem;
  padding: 0.5rem 0.9rem;
  font-size: clamp(22px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: #dce6f4;
  background: var(--block-bg);
  border: 1px solid var(--block-border);
  border-radius: 12px;
  scroll-margin-top: 100px;
}

/* Breathing room: space between paragraphs and around lists */
.blog-article p+p {
  margin-top: 1.25rem;
}

.blog-article ul,
.blog-article ol {
  margin: 1rem 0 1.25rem;
  padding-left: 1.35rem;
}

.blog-article li {
  margin-bottom: 0.35rem;
}

/* List block: bullets as a visual "content block" for eye relief */
.blog-list-block {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--block-bg);
  border: 1px solid var(--block-border);
  border-radius: 14px;
}

.blog-list-block ul,
.blog-list-block ol {
  margin: 0;
  padding-left: 1.35rem;
}

.blog-list-block li {
  margin-bottom: 0.4rem;
}

.blog-list-block strong {
  color: #e8eef8;
}

.section-divider {
  border: 0;
  border-top: 1px solid rgba(64, 146, 255, 0.2);
  margin: 1.3rem 0;
}

/* Soft background block: visual reset for long articles */
.blog-content-block {
  margin: 1.25rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--block-bg);
  border: 1px solid var(--block-border);
  border-radius: 16px;
}

.blog-content-block p:first-child {
  margin-top: 0;
}

.blog-content-block p:last-child {
  margin-bottom: 0;
}

/* TL;DR summary box: quick-scan relief */
.blog-tldr {
  margin: 1.1rem 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(145deg, rgba(14, 28, 48, 0.85), rgba(10, 20, 36, 0.9));
  border: 1px solid rgba(64, 146, 255, 0.25);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
}

.blog-tldr-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #7eb8ff;
}

.blog-tldr p,
.blog-tldr ul {
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  font-weight: 400;
  color: var(--text-body);
}

.blog-tldr ul {
  padding-left: 1.2rem;
}

.blog-tldr li+li {
  margin-top: 0.25rem;
}

.blog-tldr a {
  color: #7eb8ff;
  text-decoration: none;
}

.blog-tldr a:hover {
  text-decoration: underline;
}

/* —— Scan anchors: bold summary lines + light boxes (every 300–400 words) —— */
.content-highlight {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  background: rgba(18, 35, 58, 0.5);
  border: 1px solid rgba(64, 146, 255, 0.2);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  font-size: clamp(17px, 1.15vw, 18px);
  line-height: 1.75;
  font-weight: 400;
  color: var(--text-body);
}

.content-highlight strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95em;
  font-weight: 600;
  color: #d4e0f2;
}

.content-highlight strong+* {
  margin-top: 0;
}

/* Pull-quote: standout line for skimmers */
.pull-quote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: rgba(14, 28, 48, 0.45);
  border-left: 4px solid rgba(120, 180, 255, 0.6);
  border-radius: 0 12px 12px 0;
  font-size: clamp(18px, 1.2vw, 20px);
  line-height: 1.5;
  font-weight: 500;
  font-style: italic;
  color: #c8d4e6;
}

.pull-quote p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Highlight / key takeaway box */
.blog-highlight,
.callout {
  border: 1px solid rgba(66, 145, 255, 0.35);
  border-left-width: 4px;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  background: rgba(13, 30, 49, 0.5);
}

.blog-highlight p:first-child,
.callout p:first-child {
  margin-top: 0;
}

.blog-highlight p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.callout h4,
.blog-highlight-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #88c3ff;
}

.blog-highlight p,
.callout p {
  margin: 0.35rem 0 0;
  font-size: inherit;
}

.contextual-cta {
  margin: 1.2rem 0;
  border: 1px solid rgba(76, 154, 255, 0.45);
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(165deg, rgba(12, 22, 35, 0.9), rgba(8, 12, 19, 0.97));
}

.contextual-cta h3,
.final-cta h3,
.author-block h3,
.related h2,
.faq h2 {
  margin: 0;
}

.contextual-cta p,
.final-cta p,
.author-block p {
  margin: 0.45rem 0 0;
}

.soft-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.soft-actions a {
  text-decoration: none;
  color: #e8f2ff;
  background: linear-gradient(140deg, rgba(16, 62, 124, 0.9), rgba(10, 22, 44, 0.95));
  border: 1px solid rgba(26, 137, 255, 0.6);
  border-radius: 999px;
  padding: 0.5rem 0.84rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq {
  margin-top: var(--section-gap);
}

.faq details {
  border: 1px solid rgba(58, 141, 255, 0.3);
  border-radius: 12px;
  background: rgba(10, 20, 34, 0.45);
  padding: 0.62rem 0.72rem;
}

.faq details+details {
  margin-top: 0.48rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
  color: #eef5ff;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0.45rem 0 0;
}

.related {
  margin-top: var(--section-gap);
}

.related-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.related-card {
  border: 1px solid rgba(58, 140, 255, 0.28);
  border-radius: 14px;
  padding: 0.78rem;
  text-decoration: none;
  color: inherit;
  background: rgba(9, 15, 24, 0.8);
}

.related-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #edf4ff;
}

.related-card p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #aec0d8;
  line-height: 1.7;
}

.final-cta,
.author-block {
  margin-top: 1.2rem;
  border: 1px solid rgba(58, 141, 255, 0.3);
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(160deg, rgba(11, 16, 24, 0.94), rgba(8, 12, 19, 0.98));
}

.author-brand {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.author-brand img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(78, 154, 255, 0.38);
  background: rgba(8, 13, 20, 0.9);
}

.author-signals {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.author-signals span {
  border: 1px solid rgba(64, 146, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  color: #bfd8f5;
  background: rgba(14, 30, 49, 0.45);
}

/* —— Mobile: max width 90%, min font size, no edge-to-edge —— */
@media (max-width: 899px) {
  .blog-page {
    width: 90%;
    max-width: 100%;
  }

  body,
  .blog-article p,
  .blog-article li {
    font-size: max(17px, 1rem);
  }

  .blog-hero p,
  .blog-article .blog-lead,
  .blog-article>p:first-of-type {
    font-size: max(17px, 1.0625rem);
  }
}

@media (min-width: 900px) {
  .blog-page {
    width: min(1600px, calc(100% - 1.8rem));
    gap: 1rem;
  }

  .blog-hero {
    padding: 1.25rem;
  }

  .blog-meta {
    grid-template-columns: repeat(4, minmax(0, max-content));
  }

  .blog-layout {
    grid-template-columns: 1fr 290px;
    align-items: start;
  }

  .blog-layout .blog-article {
    order: 1;
  }

  .blog-layout .blog-toc-wrap {
    order: 2;
    position: sticky;
    top: 16px;
  }

  .blog-toc-header {
    pointer-events: none;
  }

  .blog-toc {
    display: grid !important;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— Sticky CTA bar (location blog pages) —— */
.blog-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(160deg, rgba(15, 22, 34, 0.98), rgba(7, 10, 16, 0.98));
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.blog-sticky-cta-text {
  margin: 0;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.blog-sticky-cta-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bg);
  background: var(--blue);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.blog-sticky-cta-btn:hover {
  background: #2a9aff;
  transform: translateY(-1px);
}

/* Prevent sticky CTA from covering article content */
.blog-page {
  padding-bottom: 5rem;
}