/* ================================================================
   SINGLE INSIGHT POST TEMPLATE
   Overrides and extensions for the single post view.
   Depends on: insights.css (ni-hero base styles)
   ================================================================ */


/* ================================================================
   S1 — HERO — single-post modifier
   Taller card and tighter heading since there is no body paragraph.
   ================================================================ */

/* Make the card taller — a title-only hero needs more visual mass */
.ni-hero--single .ni-hero__card {
  padding: 140px 20px;
}

/* Left-align the title on single posts — reads better as an article headline */
.ni-hero--single .ni-hero__content {
  align-items: flex-start;
  text-align: left;
  max-width: 900px;
}

.ni-hero--single .ni-hero__gradient {
  background: var(--hero-gradient);
}

/* ── Responsive — laptop ≤1366px ─────────────────────────────── */



/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .ni-hero--single .ni-hero__card {
    min-height: 380px;
    padding: 80px 20px;
  }
}

/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {
  .ni-hero--single .ni-hero__card {
    min-height: 280px;
    padding: var(--site-py, 60px) var(--site-px, 20px);
  }

  .ni-hero--single .ni-hero__content {
    align-items: flex-start;
    text-align: left;
  }
}


/* ================================================================
   S2 — CONTENT SECTION
   Figma: node 2069:2130
   #E8EDF6 inset card — excerpt · author · wysiwyg body · footer
   ================================================================ */

/* ── Outer wrapper ───────────────────────────────────────────── */

.si-content {
  max-width: 1440px;
  margin: -60px auto 0;
  padding: 0 var(--site-px, 80px) 60px;
  z-index: 2;
  position: relative;
}

/* ── #E8EDF6 rounded card ────────────────────────────────────── */

.si-content__card {
  background: var(--color-stroke, #E8EDF6);
  border-radius: 32px;
  padding: 64px;
}

/* ── Inner content column (max 1076px — matches Figma) ────────── */

.si-content__inner {
  max-width: 1076px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Excerpt ─────────────────────────────────────────────────── */

.si-excerpt {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text, #1E153D);
  margin: 0;
}

/* ── Author block ────────────────────────────────────────────── */

.si-author-block {
  display: flex;
  flex-direction: column;
}

.si-author-block__rule {
  height: 1px;
  background: #C2CDE1;
}

.si-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 16px;
}

/* Avatar circle */
.si-author__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Info column */
.si-author__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.si-author__name {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-h5);
  font-weight: var(--fw-h5);
  color: var(--color-text, #1E153D);
  line-height: var(--lh-h5);
  margin: 0;
}

.si-author__role {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-body-s);
  color: #5a5f6e;
  line-height: 1;
  margin: 0;
}

.si-author__link {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-h5);
  color: var(--color-teal, #4FBEBE);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.si-author__link:hover { opacity: 0.8; }

/* ── Post body (WYSIWYG output) ──────────────────────────────── */

.si-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-text, #1E153D);
}

/* Headings */
.si-body h2 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  color: var(--color-text, #1E153D);
  margin: 8px 0 0;
}

.si-body h3 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text, #1E153D);
  margin: 8px 0 0;
}

.si-body h4 {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-h5);
  font-weight: var(--fw-h5);
  color: var(--color-text, #1E153D);
  margin: 8px 0 0;
}

/* Paragraphs */
.si-body p {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-overhead);
  font-weight: var(--fw-action);
  line-height: var(--lh-body);
  color: var(--color-text, #1E153D);
  margin: 0;
}

/* Lists */
.si-body ul,
.si-body ol {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-overhead);
  font-weight: var(--fw-action);
  line-height: 1.6;
  color: var(--color-text, #1E153D);
  padding-left: 24px;
  margin: 0;
}

.si-body li { margin-bottom: 4px; }

/* Inline links */
.si-body a {
  color: var(--color-teal, #4FBEBE);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.si-body a:hover { opacity: 0.8; }

/* Strong / em */
.si-body strong { font-weight: 600; }
.si-body em     { font-style: italic; }

/* Two images side-by-side in one paragraph — lay them out as an even row
   instead of stacking full-width on top of each other */
.si-body p:has(img ~ img) {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.si-body p:has(img ~ img) img {
  min-width: 0;
}

/* Images — border-radius 12px */
.si-body img {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
}

/* Figures with captions */
.si-body figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.si-body figcaption {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: 13px;
  color: #5a5f6e;
  text-align: center;
}

/* Blockquote — rendered as legal disclaimer box (Figma: node 2069:2517) */
.si-body blockquote {
  background: #f0fbfb;
  border-left: 3px solid var(--color-teal, #4FBEBE);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.si-body blockquote p,
.si-body blockquote {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body-s);
  font-style: italic;
  font-weight: var(--fw-body-s);
  color: #5a5f6e;
  line-height: 1.5;
  margin: 0;
}

/* Horizontal rule */
.si-body hr {
  border: none;
  border-top: 1px solid #C2CDE1;
  margin: 8px 0;
}

/* ── Footer: published + share ───────────────────────────────── */

.si-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #C2CDE1;
  border-bottom: 1px solid #C2CDE1;
}

/* Published column */
.si-footer__published {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.si-footer__published-label {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5a5f6e;
  line-height: 1;
  margin: 0;
}

.si-footer__published-date {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text, #1E153D);
  line-height: 1;
  margin: 0;
}

/* Share row */
.si-footer__share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.si-footer__share-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.si-footer__share-title {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text, #1E153D);
  line-height: 1;
}

.si-footer__share-sub {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: 11px;
  font-weight: 400;
  color: #5a5f6e;
  line-height: 1;
}

.si-footer__divider {
  width: 1px;
  height: 28px;
  background: var(--color-stroke);
  flex-shrink: 0;
}

/* Social share circles */
.si-footer__share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary, #071D49);
  color: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.si-footer__share-btn svg {
    width: 16px;
    height: 16px;
}

.si-footer__share-btn:hover { opacity: 0.8; transform: scale(1.08); }

/* Copy-link — flash confirmation */
.si-footer__share-btn--copy.is-copied {
  background: var(--color-teal, #4FBEBE);
}

/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .si-content { padding: 0 var(--site-px, 40px) 48px; }

  .si-content__card { padding: 48px 40px; }

  .si-content__card figure {
    width: 100% !important;
  }

  .si-excerpt { font-size: 16px; }

  .si-body h2 { font-size: 22px; }
}

/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {
  .si-content { padding: 0; margin-top: -30px; }

  .si-content__card {
    border-radius: 32px 32px 0 0;
    padding: var(--site-py) var(--site-px);
  }

  

  .si-content__inner { gap: 24px; }

  .si-excerpt { font-size: 15px; }

  .si-author__name { font-size: 16px; }

  .si-body h2 { font-size: 20px; }

  /* Hide share label text — icons only on mobile */
  .si-footer__share-label,
  .si-footer__divider { display: none; }

  .si-footer__share { gap: 8px; }
}


/* ================================================================
   S3 — MORE NEWS & INSIGHTS CAROUSEL
   Figma: node 2069:2163
   White background, no pill. Heading left + prev/next nav right.
   Cards rendered by [insights_carousel] shortcode.
   ================================================================ */

.si-related {
  background: var(--color-accent);
  padding: 48px 0 64px;
}

.si-related__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--site-px, 80px);
}

/* Header row: heading left, nav right */
.si-related__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}

.si-related__heading {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h2, 44px);
  font-weight: var(--fw-h2, 600);
  line-height: var(--lh-h2, 1.1);
  letter-spacing: var(--ls-h2, 0.03em);
  color: var(--color-text, #1E153D);
  margin: 0;
}

/* Prev / next circle arrows */
.si-related__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.si-related__arrow {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.si-related__arrow:hover { opacity: 1; }

.si-related__arrow.swiper-button-disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Hide bullet pagination — nav arrows take its role */
.si-related .insights-carousel-pagination {
  display: none;
}

/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .si-related { padding: 40px 0 48px; }

  .si-related__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

    .si-related__inner { padding-right: 0; }

  .si-related__heading { font-size: var(--fs-h2-mob, 32px); }
}

/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {
  .si-related { padding: 32px 0 40px; }

  /* Hide custom arrows — swipe gesture takes over */
  .si-related__nav { display: none; }

  /* Restore bullet pagination on mobile */
  .si-related .insights-carousel-pagination {
    display: flex;
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 24px;
    bottom: auto;
    left: auto;
  }
}