
/* Impel Talent headless content integration
   Scoped to dynamic Insights and Case Study components. */

.impel-library {
  position: relative;
  overflow: hidden;
}

.impel-library::before {
  content: "";
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  top: -240px;
  right: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,220,253,.12), transparent 68%);
  pointer-events: none;
}

.impel-library__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.impel-library__header-copy {
  max-width: 720px;
}

.impel-library__header h2 {
  margin-top: .75rem;
  max-width: 17ch;
}

.impel-library__header p {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--text-muted);
}

.impel-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.6rem;
}

.impel-filter__button {
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-body);
  font: 600 .82rem var(--font-display);
  transition:
    color var(--t-base) var(--ease-out),
    background var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.impel-filter__button:hover {
  transform: translateY(-1px);
  border-color: rgba(65,184,252,.5);
}

.impel-filter__button.is-active {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: #fff;
}

.impel-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.impel-content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(42,44,56,.06);
  transition:
    transform var(--t-slow) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}

.impel-content-card:hover {
  transform: translateY(-5px);
  border-color: rgba(65,184,252,.38);
  box-shadow: 0 22px 48px rgba(42,44,56,.12);
}

.impel-content-card__media {
  position: relative;
  display: block;
  aspect-ratio: 14 / 9.2;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(42,251,158,.22), transparent 38%),
    linear-gradient(135deg, rgba(65,184,252,.16), rgba(169,129,220,.12));
}

.impel-content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}

.impel-content-card:hover .impel-content-card__media img {
  transform: scale(1.035);
}

.impel-content-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-navy);
  font: 800 1.1rem var(--font-display);
  letter-spacing: -.03em;
}

.impel-content-card__type {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: .45rem .7rem;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  background: rgba(42,44,56,.82);
  color: #fff;
  font: 700 .67rem var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.impel-content-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.impel-content-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  margin-bottom: .75rem;
  color: var(--text-subtle);
  font-size: .76rem;
}

.impel-content-card h3 {
  font-size: clamp(1.15rem, 1rem + .45vw, 1.42rem);
  line-height: 1.24;
  letter-spacing: -.025em;
}

.impel-content-card h3 a {
  color: var(--text-strong);
}

.impel-content-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.impel-content-card__excerpt {
  margin-top: .8rem;
  color: var(--text-muted);
  font-size: .91rem;
  line-height: 1.65;
}

.impel-content-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.impel-content-card__topic {
  overflow: hidden;
  color: var(--brand-navy);
  font: 600 .73rem var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.impel-content-card__arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wash-blue);
  color: var(--brand-navy);
  transition: transform var(--t-base) var(--ease-out);
}

.impel-content-card:hover .impel-content-card__arrow {
  transform: translateX(2px);
}

.impel-library__status {
  min-height: 24px;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}

.impel-library__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.impel-load-more[hidden] {
  display: none;
}

.impel-loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.impel-skeleton {
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: #fff;
}

.impel-skeleton::before {
  content: "";
  display: block;
  height: 205px;
  background:
    linear-gradient(
      100deg,
      rgba(231,239,242,.7) 20%,
      rgba(255,255,255,.96) 38%,
      rgba(231,239,242,.7) 56%
    );
  background-size: 200% 100%;
  animation: impelShimmer 1.35s linear infinite;
}

.impel-skeleton::after {
  content: "";
  display: block;
  width: 74%;
  height: 90px;
  margin: 1.3rem;
  border-radius: 10px;
  background:
    linear-gradient(
      100deg,
      rgba(231,239,242,.68) 20%,
      rgba(255,255,255,.95) 38%,
      rgba(231,239,242,.68) 56%
    );
  background-size: 200% 100%;
  animation: impelShimmer 1.35s linear infinite;
}

@keyframes impelShimmer {
  to { background-position-x: -200%; }
}

.impel-error,
.impel-empty {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-alt);
  text-align: center;
}

.impel-error h3,
.impel-empty h3 {
  font-size: 1.2rem;
}

.impel-error p,
.impel-empty p {
  margin-top: .55rem;
  color: var(--text-muted);
}

.impel-featured-podcast {
  min-height: 260px;
}

.impel-featured-podcast__card {
  display: grid;
  grid-template-columns: minmax(170px, .72fr) minmax(0, 1fr);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.impel-featured-podcast__image {
  min-height: 250px;
  background: var(--wash-blue);
}

.impel-featured-podcast__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impel-featured-podcast__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.impel-featured-podcast__body h3 {
  margin-top: .55rem;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem);
}

.impel-featured-podcast__body p {
  margin-top: .8rem;
  color: var(--text-muted);
}

.impel-featured-podcast__body .link-arrow {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

/* Case-study filter and cards */
.impel-case-library {
  background:
    linear-gradient(180deg, #fff, rgba(231,239,242,.32));
}

.impel-case-card .impel-content-card__media {
  aspect-ratio: 14 / 9.2;
}

.impel-case-card__logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 70px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: .45rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(42,44,56,.12);
}

.impel-case-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Individual content pages */
.impel-detail {
  min-height: 70vh;
}

.impel-detail__loading {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 3rem 1rem;
  text-align: center;
}

.impel-detail__loading span {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(65,184,252,.2);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: impelSpin .8s linear infinite;
}

@keyframes impelSpin {
  to { transform: rotate(360deg); }
}

.impel-detail-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.6rem, 6vw, 6rem);
  background:
    radial-gradient(circle at 86% 8%, rgba(38,220,253,.18), transparent 31%),
    radial-gradient(circle at 8% 92%, rgba(42,251,158,.12), transparent 33%),
    linear-gradient(145deg, #fefeff, #f4f9fc);
  border-bottom: 1px solid var(--border-subtle);
}

.impel-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 5.5rem);
}

.impel-detail-hero__copy h1 {
  max-width: 15ch;
  margin-top: 1rem;
  font-size: clamp(2.35rem, 1.75rem + 3vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -.052em;
}

.impel-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: .86rem;
}

.impel-detail-hero__excerpt {
  max-width: 60ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.impel-detail-hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(42,44,56,.08);
  border-radius: 28px;
  background: var(--wash-blue);
  box-shadow: 0 28px 70px rgba(42,44,56,.15);
}

.impel-detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impel-detail-hero__logo {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: min(160px, 34%);
  max-height: 88px;
  padding: .8rem;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(42,44,56,.14);
}

.impel-detail-hero__logo img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.impel-detail-body {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.impel-detail-body__layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.impel-rich-content {
  min-width: 0;
  color: var(--text-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.08rem);
  line-height: 1.82;
}

.impel-rich-content > * + * {
  margin-top: 1.2rem;
}

.impel-rich-content h2,
.impel-rich-content h3,
.impel-rich-content h4 {
  margin-top: 2.2rem;
  scroll-margin-top: 100px;
}

.impel-rich-content h2 {
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.35rem);
}

.impel-rich-content h3 {
  font-size: clamp(1.3rem, 1.15rem + .55vw, 1.75rem);
}

.impel-rich-content ul,
.impel-rich-content ol {
  display: grid;
  gap: .55rem;
  padding-left: 1.3rem;
}

.impel-rich-content ul {
  list-style: disc;
}

.impel-rich-content ol {
  list-style: decimal;
}

.impel-rich-content blockquote {
  padding: 1.5rem;
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 16px 16px 0;
  background: var(--surface-alt);
  color: var(--brand-navy);
  font: 600 1.08rem/1.7 var(--font-display);
}

.impel-rich-content img,
.impel-rich-content iframe,
.impel-rich-content video {
  max-width: 100%;
  border-radius: 16px;
}

.impel-rich-content iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.impel-rich-content a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-decoration-color: rgba(65,184,252,.55);
  text-underline-offset: 3px;
}

.impel-detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 1rem;
}

.impel-detail-sidebar__card {
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-alt);
}

.impel-detail-sidebar__card h3 {
  font-size: 1rem;
}

.impel-detail-sidebar__card p {
  margin-top: .55rem;
  color: var(--text-muted);
  font-size: .88rem;
}

.impel-detail-sidebar__terms {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .9rem;
}

.impel-detail-sidebar__term {
  padding: .4rem .6rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-navy);
  font: 600 .69rem var(--font-display);
}

.impel-detail-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.4rem;
  color: var(--brand-navy);
  font: 600 .84rem var(--font-display);
}

.impel-detail-error {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 4rem 1rem;
  text-align: center;
}

.impel-detail-error__inner {
  max-width: 620px;
}

.impel-detail-error h1 {
  margin-top: .8rem;
}

.impel-detail-error p {
  margin: 1rem auto 0;
  color: var(--text-muted);
}

/* Existing case-study hero correction */
.case-studies-live .hero-stat-list__num {
  color: var(--brand-blue);
}

@media (max-width: 1050px) {
  .impel-content-grid,
  .impel-loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impel-detail-hero__grid {
    grid-template-columns: 1fr;
  }

  .impel-detail-hero__copy {
    max-width: 760px;
  }

  .impel-detail-hero__media {
    max-width: 850px;
  }
}

@media (max-width: 820px) {
  .impel-library__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .impel-detail-body__layout {
    grid-template-columns: 1fr;
  }

  .impel-detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .impel-content-grid,
  .impel-loading-grid {
    grid-template-columns: 1fr;
  }

  .impel-featured-podcast__card {
    grid-template-columns: 1fr;
  }

  .impel-featured-podcast__image {
    min-height: 210px;
  }

  .impel-detail-hero {
    padding-block: 3rem 3.5rem;
  }

  .impel-detail-hero__media {
    border-radius: 20px;
  }

  .impel-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .impel-rich-content iframe {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impel-skeleton::before,
  .impel-skeleton::after,
  .impel-detail__loading span {
    animation: none;
  }
}


/* ==========================================================================
   INSIGHTS INTEGRATION ROUND 2
   Editorial hero, homepage live cards and profile Insight states.
========================================================================== */

.insights-editorial-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.25rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 88% 4%, rgba(38,220,253,.18), transparent 32%),
    radial-gradient(circle at 4% 96%, rgba(42,251,158,.13), transparent 30%),
    linear-gradient(145deg, #fefeff 10%, #f5fbfe 58%, #f7f5fb);
  border-bottom: 1px solid var(--border-soft);
}

.insights-editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: radial-gradient(rgba(59,62,122,.12) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 62%, #000);
  pointer-events: none;
}

.insights-editorial-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.insights-editorial-hero__copy h1 {
  max-width: 12ch;
  margin-top: 1rem;
  font-size: clamp(2.75rem, 1.8rem + 4vw, 5.6rem);
  line-height: .99;
  letter-spacing: -.058em;
}

.insights-editorial-hero__copy h1 span {
  color: var(--brand-blue);
}

.insights-editorial-hero__copy > p {
  max-width: 58ch;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, .98rem + .35vw, 1.24rem);
  line-height: 1.75;
}

.insights-editorial-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.insights-editorial-hero__counts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.8rem;
}

.insights-editorial-hero__count {
  min-width: 115px;
  padding: .85rem 1rem;
  border: 1px solid rgba(42,44,56,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(12px);
}

.insights-editorial-hero__count strong {
  display: block;
  color: var(--text-strong);
  font: 700 1.15rem var(--font-display);
}

.insights-editorial-hero__count span {
  display: block;
  margin-top: .15rem;
  color: var(--text-muted);
  font-size: .75rem;
}

.insights-hero-feature {
  position: relative;
  min-height: 480px;
}

.insights-hero-feature__card {
  position: relative;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(42,44,56,.1);
  border-radius: 30px;
  background: var(--surface-dark);
  box-shadow: 0 32px 80px rgba(42,44,56,.18);
}

.insights-hero-feature__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42,44,56,.02) 22%, rgba(42,44,56,.92) 100%);
  pointer-events: none;
}

.insights-hero-feature__image {
  position: absolute;
  inset: 0;
}

.insights-hero-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insights-hero-feature__body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
}

.insights-hero-feature__body .t-eyebrow {
  color: var(--brand-cyan);
}

.insights-hero-feature__body h2 {
  max-width: 15ch;
  margin-top: .7rem;
  color: #fff;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.35rem);
  line-height: 1.15;
}

.insights-hero-feature__body p {
  max-width: 55ch;
  margin-top: .8rem;
  color: rgba(255,255,255,.76);
  font-size: .92rem;
  line-height: 1.65;
}

.insights-hero-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: 1rem;
  color: rgba(255,255,255,.7);
  font-size: .76rem;
}

.insights-hero-feature__link {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.insights-hero-feature .impel-skeleton {
  height: 480px;
  border-radius: 30px;
}

.home-live-insights [data-home-latest] {
  position: relative;
}

.home-live-insights [data-home-latest].is-loading {
  opacity: .72;
}

.home-live-insights [data-home-latest] .card__media {
  background:
    radial-gradient(circle at 82% 18%, rgba(42,251,158,.2), transparent 36%),
    linear-gradient(145deg, rgba(65,184,252,.18), rgba(169,129,220,.12));
}

.profile-insights[data-author-insights] .profile-insights__grid.is-loading {
  opacity: .7;
}

.profile-insights[data-author-insights] .profile-insights__status {
  margin-top: .75rem;
  color: var(--text-muted);
  font-size: .82rem;
}

@media (max-width: 980px) {
  .insights-editorial-hero__grid {
    grid-template-columns: 1fr;
  }

  .insights-editorial-hero__copy {
    max-width: 760px;
  }

  .insights-hero-feature {
    max-width: 820px;
  }
}

@media (max-width: 600px) {
  .insights-editorial-hero {
    padding-block: 3.5rem 4rem;
  }

  .insights-editorial-hero__count {
    min-width: calc(50% - .35rem);
  }

  .insights-hero-feature,
  .insights-hero-feature__card,
  .insights-hero-feature .impel-skeleton {
    min-height: 410px;
    height: 410px;
  }
}


/* Round 4: legacy WordPress/Buzzsprout embeds inside dynamic insight content. */
.impel-rich-content iframe{display:block;width:100%;max-width:100%;min-height:180px;margin:0 0 1.5rem;border:0;border-radius:16px;background:#f3f7fa}
.impel-rich-content .impel-embedded-media{margin:0 0 1.5rem;overflow:hidden;border-radius:16px}
.impel-rich-content .impel-embedded-media iframe{aspect-ratio:16/9;min-height:260px;margin:0}
.impel-rich-content .impel-embed-fallback{padding:1rem 1.1rem;border:1px solid rgba(65,184,252,.24);border-radius:14px;background:rgba(65,184,252,.07)}
.impel-rich-content [id*="buzzsprout"],.impel-rich-content [class*="buzzsprout"]{max-width:100%;margin:0 0 1.5rem}
