.igl-foundation-post {
  --kg-ink: #2f2348;
  --kg-ink-deep: #241a38;
  --kg-heading: #2f2348;
  --kg-text: #334155;
  --kg-muted: #5b667a;
  --kg-primary: #5c3c9d;
  --kg-primary-strong: #462d7e;
  --kg-ground: #f3f5f8;
  --kg-line: #d8dee8;
  --kg-white: #ffffff;
  color: var(--kg-text);
  font-family: "Plus Jakarta Sans", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  left: 50%;
  line-height: 1.72;
  margin: 0;
  overflow: clip;
  position: relative;
  text-align: left;
  transform: translateX(-50%);
  width: 100vw;
}

body.single-post {
  overflow-x: hidden;
}

body.single-post .page-header,
body.single-post article > .entry-header,
body.single-post .post-thumbnail,
body.single-post .elementor-location-single .elementor-widget-theme-post-title,
body.single-post .elementor-location-single .elementor-widget-post-info,
body.single-post .elementor-location-single .elementor-widget-theme-post-featured-image,
body.single-post .elementor-location-single .elementor-widget-theme-post-excerpt {
  display: none !important;
}

/* Foundation articles own their visible H1/byline inside the article hero.
   Collapse the now-empty shared title/meta container so it cannot leave a
   decorative band of whitespace above the article. */
body.kristy-foundation-post-page .elementor-element-e731578 {
  display: none !important;
}

body.kristy-foundation-post-page .elementor-element-73a0c971 {
  margin-top: 0 !important;
}

/* The shared template receives a dedicated Post Content widget; foundation
   HTML owns its H1 and byline while legacy posts keep the template chrome. */

body.single-post .site-main,
body.single-post .content-area,
body.single-post .entry-content {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.single-post .elementor-location-single > .e-con.e-parent:has(.igl-foundation-post) > .e-con-inner {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.igl-foundation-post *,
.igl-foundation-post *::before,
.igl-foundation-post *::after {
  box-sizing: border-box;
}

.igl-foundation-post ::selection {
  background: #eee8f7;
  color: var(--kg-ink-deep);
}

.igl-foundation-post a {
  color: var(--kg-primary-strong);
  text-decoration-color: rgba(92, 60, 157, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.igl-foundation-post a:hover {
  color: var(--kg-ink);
  text-decoration-color: var(--kg-primary);
}

.igl-foundation-post :focus-visible {
  outline: 3px solid #9b83d1;
  outline-offset: 4px;
}

.igl-post-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(92, 60, 157, 0.4), transparent 31%),
    linear-gradient(135deg, var(--kg-ink-deep) 0%, var(--kg-ink) 64%, #4a3374 100%);
  color: var(--kg-white);
  padding: clamp(54px, 7vw, 92px) 24px clamp(68px, 8vw, 108px);
}

.igl-post-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(38px, 6vw, 76px);
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  margin: 0 auto;
  max-width: 1180px;
}

.igl-post-hero__inner > *,
.igl-reading-layout > * {
  min-width: 0;
}

.igl-breadcrumbs {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.01em;
  margin: 0 0 27px;
}

.igl-breadcrumbs a {
  color: #e7def4;
  text-decoration: none;
}

.igl-breadcrumbs a:hover {
  color: var(--kg-white);
}

.igl-post-hero h1 {
  color: var(--kg-white);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.04;
  margin: 0 0 24px;
  max-width: 900px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.igl-post-dek {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.58;
  margin: 0 0 29px;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.igl-post-meta {
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 10px 13px;
  margin: 0;
}

.igl-post-meta strong {
  color: var(--kg-white);
}

.igl-post-meta__dot {
  color: #e7def4;
}

.igl-hero-media {
  margin: 0;
  position: relative;
}

.igl-hero-media::before {
  background: var(--kg-primary);
  border-radius: 8px;
  content: "";
  inset: 16px -16px -16px 16px;
  opacity: 0.95;
  position: absolute;
}

.igl-hero-media img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: 0 28px 68px rgba(2, 7, 33, 0.42);
  display: block;
  height: auto;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.igl-article-zone {
  background: linear-gradient(180deg, #f5f2f9 0, var(--kg-ground) 260px, var(--kg-ground) 100%);
  padding: clamp(52px, 7vw, 88px) 24px 92px;
}

.igl-reading-layout {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 790px) minmax(250px, 300px);
  justify-content: center;
  margin: 0 auto;
  max-width: 1180px;
}

.igl-prose {
  background: var(--kg-white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(47, 35, 72, 0.1);
  min-width: 0;
  padding: clamp(32px, 5vw, 62px);
}

.igl-prose > :first-child {
  margin-top: 0;
}

.igl-prose > :last-child {
  margin-bottom: 0;
}

.igl-prose p,
.igl-prose ul,
.igl-prose ol {
  margin-bottom: 1.2em;
  margin-top: 0;
}

.igl-prose p,
.igl-prose li {
  max-width: 72ch;
}

.igl-prose h2 {
  color: var(--kg-ink);
  font-size: clamp(27px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.2;
  margin: 2.15em 0 0.55em;
  scroll-margin-top: 32px;
  text-wrap: balance;
}

.igl-prose h3 {
  color: var(--kg-ink);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 1.7em 0 0.45em;
}

.igl-prose strong {
  color: var(--kg-heading);
}

.igl-prose li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}

.igl-prose li::marker {
  color: var(--kg-primary);
  font-weight: 800;
}

.igl-toc {
  background: #f5f2f9;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #e0d9eb;
  margin: 36px 0 44px;
  padding: 24px 28px 18px;
}

.igl-toc h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.igl-toc ol {
  columns: 2;
  column-gap: 34px;
  margin-bottom: 0;
  padding-left: 21px;
}

.igl-takeaways {
  background: var(--kg-ink);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  margin: 34px 0 40px;
  padding: 28px 30px 18px;
}

.igl-takeaways h2 {
  color: var(--kg-white);
  font-size: 24px;
  margin: 0 0 13px;
}

.igl-takeaways strong {
  color: var(--kg-white);
}

.igl-takeaways li::marker {
  color: #e7def4;
}

.igl-note,
.igl-formula {
  background: #f5f2f9;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #e0d9eb;
  margin: 30px 0;
  padding: 21px 24px 9px;
}

.igl-note h3,
.igl-formula h3 {
  margin-top: 0;
}

.igl-formula p:first-of-type {
  color: var(--kg-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.igl-table-wrap {
  margin: 32px 0 42px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--kg-primary) #f5f2f9;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.igl-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.igl-table-wrap::-webkit-scrollbar-thumb {
  background: var(--kg-primary);
  border: 2px solid #f5f2f9;
  border-radius: 8px;
}

.igl-prose table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  min-width: 650px;
  width: 100%;
}

.igl-prose caption {
  color: var(--kg-ink);
  font-size: 18px;
  font-weight: 800;
  padding: 0 0 12px;
  text-align: left;
}

.igl-prose th,
.igl-prose td {
  border-bottom: 1px solid var(--kg-line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.igl-prose thead th {
  background: var(--kg-ink);
  color: var(--kg-white);
  font-weight: 800;
}

.igl-prose thead th:first-child {
  border-radius: 8px 0 0;
}

.igl-prose thead th:last-child {
  border-radius: 0 8px 0 0;
}

.igl-prose tbody tr:nth-child(even) {
  background: #f8f6fb;
}

.igl-prose tbody th {
  color: var(--kg-ink);
  font-weight: 800;
}

.igl-prose details {
  border-bottom: 1px solid var(--kg-line);
  padding: 0;
}

.igl-prose details:first-of-type {
  border-top: 1px solid var(--kg-line);
}

.igl-prose summary {
  color: var(--kg-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  padding: 18px 42px 18px 0;
  position: relative;
}

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

.igl-prose summary::after {
  color: var(--kg-primary);
  content: "+";
  font-size: 26px;
  line-height: 1;
  position: absolute;
  right: 8px;
  top: 18px;
}

.igl-prose details[open] summary::after {
  content: "−";
}

.igl-prose details p {
  padding-right: 38px;
}

.igl-article-cta {
  background: var(--kg-ink);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  margin: 44px 0;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.igl-article-cta::after {
  background: var(--kg-primary);
  border-radius: 50%;
  content: "";
  height: 170px;
  opacity: 0.22;
  position: absolute;
  right: -84px;
  top: -96px;
  width: 170px;
}

.igl-article-cta h2 {
  color: var(--kg-white);
  font-size: clamp(24px, 3vw, 31px);
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.igl-article-cta p {
  position: relative;
  z-index: 1;
}

.igl-cta-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 0;
}

.igl-cta-button {
  align-items: center;
  border: 2px solid #7a5cbb;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 56px;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.igl-cta-button--primary {
  background: var(--kg-primary);
  border-color: var(--kg-primary);
  color: var(--kg-white) !important;
}

.igl-cta-button--primary:hover {
  background: #7455b8;
  border-color: #7455b8;
  color: var(--kg-white) !important;
}

.igl-cta-button--secondary {
  background: transparent;
  color: var(--kg-white) !important;
}

.igl-cta-button--secondary:hover {
  background: rgba(92, 60, 157, 0.16);
  border-color: #a58cda;
  color: var(--kg-white) !important;
}

.igl-rail {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 32px;
}

.igl-rail-card {
  background: var(--kg-white);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(47, 35, 72, 0.1);
  overflow: hidden;
  padding: 24px;
}

.igl-author-card__image {
  aspect-ratio: 1 / 1;
  border: 4px solid #eee8f7;
  border-radius: 50%;
  box-sizing: border-box;
  display: block;
  height: 84px;
  margin: 4px 0 20px;
  object-fit: cover;
  width: 84px;
}

.igl-author-card h2 {
  color: var(--kg-ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.igl-author-card p {
  color: var(--kg-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 17px;
}

.igl-author-card__links {
  display: grid;
  gap: 9px;
}

.igl-author-card__links a {
  align-items: center;
  background: #f5f2f9;
  border-radius: 8px;
  color: var(--kg-ink);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  text-decoration: none;
}

.igl-author-card__links a:hover {
  background: #eee8f7;
}

.igl-google-card {
  color: var(--kg-ink) !important;
  display: grid;
  gap: 8px;
  text-decoration: none !important;
}

.igl-google-card__label {
  color: var(--kg-primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.igl-google-card__stars {
  display: inline-flex;
  gap: 2px;
  color: #f4b400;
}

.igl-google-card__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.igl-google-card strong {
  font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
  .igl-cta-button:hover {
    transform: translateY(-1px);
  }

  .igl-google-card:hover {
    box-shadow: 0 20px 54px rgba(47, 35, 72, 0.15);
  }
}

.igl-rail-cta {
  background: var(--kg-ink);
  color: rgba(255, 255, 255, 0.8);
}

.igl-rail-cta h2 {
  color: var(--kg-white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

.igl-rail-cta p {
  font-size: 14px;
  line-height: 1.58;
  margin: 0 0 17px;
}

.igl-rail-cta .igl-cta-button {
  min-height: 48px;
  width: 100%;
}

.igl-rail-cta .igl-cta-button + .igl-cta-button {
  margin-top: 10px;
}

.igl-final-cta {
  background: var(--kg-ink);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  grid-column: 1 / -1;
  margin-top: 10px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 52px);
  position: relative;
}

.igl-final-cta::before {
  background: var(--kg-primary);
  border-radius: 50%;
  content: "";
  height: 280px;
  opacity: 0.25;
  position: absolute;
  right: -105px;
  top: -145px;
  width: 280px;
}

.igl-final-cta__inner {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
  position: relative;
}

.igl-final-cta h2 {
  color: var(--kg-white);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 10px;
  text-wrap: balance;
}

.igl-final-cta p {
  margin: 0;
  max-width: 620px;
}

.igl-final-cta .igl-cta-actions {
  grid-template-columns: 1fr;
  margin: 0;
}

.igl-related,
.igl-sources {
  border-top: 1px solid var(--kg-line);
  margin-top: 48px;
  padding-top: 26px;
}

.igl-related h2,
.igl-sources h2 {
  font-size: 24px;
  margin-top: 0;
}

.igl-sources {
  color: var(--kg-muted);
  font-size: 14px;
}

.igl-sources li {
  margin-bottom: 0.7em;
}

.igl-disclosure {
  border-top: 1px solid var(--kg-line);
  color: var(--kg-muted);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 44px;
  padding-top: 26px;
}

@media (max-width: 980px) {
  .igl-post-hero__inner {
    grid-template-columns: 1fr;
  }

  .igl-hero-media {
    max-width: 760px;
  }

  .igl-reading-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .igl-rail {
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
  }

  .igl-final-cta {
    grid-row: 3;
  }

  .igl-rail-card {
    height: 100%;
  }
}

@media (max-width: 720px) {
  .igl-foundation-post {
    font-size: 16px;
  }

  .igl-post-hero {
    padding: 48px 18px 64px;
  }

  .igl-post-hero h1 {
    font-size: clamp(35px, 10.5vw, 46px);
  }

  .igl-hero-media::before {
    inset: 10px -8px -10px 8px;
  }

  .igl-article-zone {
    padding: 46px 12px 64px;
  }

  .igl-prose {
    border-radius: 8px;
    padding: 28px 18px;
  }

  .igl-toc {
    padding: 21px 18px 15px;
  }

  .igl-toc ol {
    columns: 1;
  }

  .igl-takeaways {
    padding: 23px 18px 13px;
  }

  .igl-prose table {
    min-width: 600px;
  }

  .igl-cta-actions,
  .igl-final-cta__inner,
  .igl-rail {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .igl-foundation-post *,
  .igl-foundation-post *::before,
  .igl-foundation-post *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
