/* ===================================================================
   NEXIS blog article system
   Nexis-branded, readable long-form styling for blog posts.
   Scope everything under .nx-article so it only affects our blog content
   (enqueued for is_singular('post')). Uses global.css design tokens.
=================================================================== */

.nx-article {
  --nx-maxw: 760px;
  font-family: var(--primary_font, "Poppins", sans-serif);
  color: var(--color_body_text, #3C3939);
  font-size: 18px;
  line-height: 1.75;
}
.nx-article > * { max-width: var(--nx-maxw); margin-left: auto; margin-right: auto; }
.nx-article .nx-bleed { max-width: 980px; }

/* ---------- eyebrow + title + meta ---------- */
.nx-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color_pink_opacity_16, #EF3A5D29);
  color: var(--color_pink, #EF3A5D);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.nx-article h1, .nx-title {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--color_black, #111);
  margin: 0 0 16px;
}
.nx-title span, .nx-article h2 span, .nx-article h3 span { color: var(--color_pink, #EF3A5D); }
.nx-dek {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color_body_text_grey, #777);
  margin: 0 0 22px;
}
.nx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 14px;
  color: var(--color_body_text_grey, #777);
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border_color, #00000014);
}
.nx-meta strong { color: var(--color_black, #111); font-weight: 600; }
.nx-meta .nx-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color_pink, #EF3A5D); }

/* ---------- body typography ---------- */
.nx-article h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--color_black, #111);
  line-height: 1.25;
  margin: 48px 0 14px;
  scroll-margin-top: 90px;
}
.nx-article h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--color_black, #111);
  margin: 32px 0 10px;
}
.nx-article p { margin: 0 0 18px; }
.nx-article a { color: var(--color_pink, #EF3A5D); text-decoration: underline; text-underline-offset: 2px; }
.nx-article a:hover { color: var(--color_pink_700, #a3243d); }
.nx-article strong { color: var(--color_black, #111); }
.nx-article ul, .nx-article ol { margin: 0 0 20px; padding-left: 22px; }
.nx-article li { margin-bottom: 8px; }
.nx-article img { max-width: 100%; height: auto; border-radius: var(--border_radius, 16px); }
.nx-figure { margin: 28px auto; }
.nx-figure figcaption { font-size: 14px; color: var(--color_body_text_grey, #777); text-align: center; margin-top: 8px; }

/* responsive 16:9 video embed */
.nx-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin: 34px auto 10px;
  border-radius: var(--border_radius, 16px);
  overflow: hidden;
  background: #000;
}
.nx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nx-video-cap { text-align: center; font-size: 14px; color: var(--color_body_text_grey, #777); margin: 0 auto 30px; }

/* ---------- table of contents ---------- */
.nx-toc {
  background: var(--color_light_brown, #F7F0E7);
  border-radius: var(--radius, 20px);
  padding: 22px 26px;
  margin: 30px auto;
}
.nx-toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--color_black, #111); margin-bottom: 10px; }
.nx-toc ol { margin: 0; padding-left: 20px; }
.nx-toc li { margin-bottom: 6px; }
.nx-toc a { color: var(--color_body_text, #3C3939); text-decoration: none; }
.nx-toc a:hover { color: var(--color_pink, #EF3A5D); text-decoration: underline; }

/* ---------- key takeaways ---------- */
.nx-takeaways {
  background: var(--color_black, #111);
  color: #fff;
  border-radius: var(--radius, 20px);
  padding: 28px 30px;
  margin: 34px auto;
}
.nx-takeaways h2, .nx-takeaways .nx-tk-title {
  color: #fff;
  font-size: 18px;
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.nx-takeaways .nx-tk-title::before { content: "★"; color: var(--color_lemon_yellow, #D5FE00); }
.nx-takeaways ul { list-style: none; padding: 0; margin: 0; }
.nx-takeaways li { position: relative; padding-left: 30px; margin-bottom: 12px; color: rgba(255,255,255,0.88); }
.nx-takeaways li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color_lemon_yellow, #D5FE00); color: var(--color_black, #111);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- stat cards ---------- */
.nx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px auto;
}
.nx-stat {
  background: var(--color_brown_100, #FFFBF6);
  border: 1px solid var(--border_color, #00000014);
  border-radius: var(--border_radius, 16px);
  padding: 22px 18px;
  text-align: center;
}
.nx-stat b { display: block; font-size: 34px; font-weight: 800; color: var(--color_pink, #EF3A5D); line-height: 1; }
.nx-stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--color_body_text, #3C3939); }

/* ---------- callout / note ---------- */
.nx-callout {
  border-left: 4px solid var(--color_pink, #EF3A5D);
  background: var(--color_pink_opacity_16, #EF3A5D14);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 28px auto;
}
.nx-callout p:last-child { margin-bottom: 0; }
.nx-callout .nx-callout-label { font-weight: 700; color: var(--color_pink, #EF3A5D); display: block; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- pull quote ---------- */
.nx-pullquote {
  border: none;
  margin: 34px auto;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--color_lemon_yellow, #D5FE00);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color_black, #111);
}
.nx-pullquote cite { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; font-style: normal; color: var(--color_body_text_grey, #777); }

/* ---------- CTA block ---------- */
.nx-cta {
  background: var(--color_black, #111);
  color: #fff;
  border-radius: var(--radius, 24px);
  padding: 34px 32px;
  margin: 40px auto;
  text-align: center;
}
.nx-cta h3 { color: #fff; font-size: 24px; margin: 0 0 8px; }
.nx-cta p { color: rgba(255,255,255,0.82); margin: 0 0 22px; }
.nx-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nx-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 15px;
  transition: var(--common_transition, all .25s ease);
}
.nx-btn-pink { background: var(--color_pink, #EF3A5D); color: #fff !important; }
.nx-btn-pink:hover { background: var(--color_pink_700, #a3243d); color: #fff !important; }
.nx-btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.4); }
.nx-btn-ghost:hover { background: rgba(255,255,255,0.1); color:#fff !important; }
/* beat the theme's `.ast-article-single a { color: pink !important }` so button labels stay white */
.nx-article a.nx-btn-pink, .nx-article a.nx-btn-pink:hover,
.nx-article a.nx-btn-ghost, .nx-article a.nx-btn-ghost:hover { color: #fff !important; }

/* ---------- FAQ (native details, no JS) ---------- */
.nx-faq { margin: 30px auto; }
.nx-faq details {
  border: 1px solid var(--border_color, #00000014);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--color_white, #fff);
}
.nx-faq details[open] { border-color: var(--color_pink, #EF3A5D); }
.nx-faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--color_black, #111);
  padding: 14px 0;
  position: relative;
  padding-right: 28px;
}
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 12px;
  font-size: 22px; font-weight: 400; color: var(--color_pink, #EF3A5D);
}
.nx-faq details[open] summary::after { content: "–"; }
.nx-faq details > *:not(summary) { margin-bottom: 14px; }

/* ---------- related links ---------- */
.nx-related {
  background: var(--color_light_brown, #F7F0E7);
  border-radius: var(--radius, 20px);
  padding: 24px 28px;
  margin: 36px auto;
}
.nx-related .nx-tk-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; color: var(--color_black,#111); }
.nx-related ul { list-style: none; padding: 0; margin: 0; }
.nx-related li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.nx-related li::before { content: "→"; position: absolute; left: 0; color: var(--color_pink, #EF3A5D); }

/* ---------- author / source note ---------- */
.nx-source {
  font-size: 14px;
  color: var(--color_body_text_grey, #777);
  border-top: 1px solid var(--border_color, #00000014);
  margin-top: 40px;
  padding-top: 18px;
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .nx-article { font-size: 16.5px; }
  .nx-dek { font-size: 18px; }
  .nx-stats { grid-template-columns: 1fr; }
  .nx-pullquote { font-size: 20px; }
  .nx-cta { padding: 28px 22px; }
}
