/* Purple record-system adapter for the Shiora evidence library. */
body.sh-page--insights {
  --ip-ink: #160d23;
  --ip-wine: #150c26;
  --ip-burgundy: #6d3fa0;
  --ip-rose: #f0568c;
  --ip-teal: #6552a8;
  --ip-gold: #c48cff;
  --ip-paper: #f7f4f8;
  --ip-paper-deep: #eee9f2;
  --ip-ivory: #fcfafd;
  --ip-line: rgba(21, 12, 38, 0.14);
  --ie-wine: #6d3fa0;
  --ie-gold: #a973e8;
  --ie-ink: #160d23;
  --ie-paper: #fcfafd;
  --ie-paper-deep: #eee9f2;
  --ie-line: rgba(21, 12, 38, 0.14);
  background: var(--sh-ground);
}

body.sh-page--insights .ip-page {
  --ip-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ip-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--ip-body);
}

body.sh-page--insights .ip-wrap {
  width: min(100%, 1368px);
  padding-inline: clamp(24px, 5vw, 64px);
}

body.sh-page--insights .ip-kicker,
body.sh-page--insights .ip-story__category,
body.sh-page--insights .ip-hero__meta,
body.sh-page--insights .ip-back,
body.sh-page--insights .ip-filter {
  font-family: var(--ip-body);
  font-weight: 700;
  letter-spacing: 0.14em;
}

body.sh-page--insights .ip-hero {
  min-height: calc(100svh - var(--sh-nav-h));
  max-height: 900px;
  padding: clamp(112px, 17vh, 176px) 0 clamp(54px, 9vh, 94px);
  overflow: hidden;
  align-items: end;
}

body.sh-page--insights .ip-hero::before {
  background: var(--ip-hero-image) var(--ip-hero-position, 68% 48%) / cover no-repeat !important;
  transform: scale(1.01);
}

body.sh-page--insights .ip-hero::after,
body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero::after {
  display: block !important;
  background:
    linear-gradient(90deg, rgba(15, 7, 28, 0.98) 0%, rgba(15, 7, 28, 0.94) 34%, rgba(15, 7, 28, 0.78) 50%, rgba(15, 7, 28, 0.24) 72%, rgba(15, 7, 28, 0.04) 100%),
    linear-gradient(0deg, rgba(11, 4, 20, 0.58), transparent 54%);
}

body.sh-page--insights .ip-hero__content,
body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero .ip-hero__content {
  width: min(100%, 1368px);
  padding-inline: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 52vw, 710px);
  color: #f8f5fb !important;
  text-shadow: 0 2px 20px rgba(8, 3, 16, 0.34) !important;
}

body.sh-page--insights .ip-hero h1,
body[data-page="insights"].sh-page--insights main .ip-page.ip-evidence-library > .ip-hero h1,
body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero h1 {
  width: auto;
  max-width: 18ch;
  margin: 18px 0 22px;
  color: #f8f5fb !important;
  font-family: var(--ip-display);
  font-size: clamp(48px, 5vw, 74px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.055em !important;
  line-height: 0.98 !important;
  text-shadow: 0 2px 22px rgba(8, 3, 16, 0.42) !important;
  text-wrap: balance;
}

body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero h1 {
  max-width: 15ch;
  font-size: clamp(40px, 4vw, 62px) !important;
}

body[data-page="insights"].sh-page--insights main .ip-page.ip-evidence-library > .ip-hero p:not(.ip-kicker, .sr-only),
body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero .ip-hero__meta {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 18px rgba(8, 3, 16, 0.46) !important;
}

body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero .ip-back,
body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero .ip-kicker,
body.sh-page--insights .ip-hero .ip-kicker {
  color: #d9b8ff !important;
}

body.sh-page--insights .ip-insights-intro,
body.sh-page--insights .ip-featured,
body.sh-page--insights .ip-library,
body.sh-page--insights .ip-article-body,
body.sh-page--insights .ip-evidence-summary {
  background: var(--ip-ivory);
}

body.sh-page--insights .ip-insights-intro {
  padding: clamp(72px, 10vw, 132px) 0 clamp(56px, 8vw, 104px);
}

body.sh-page--insights .ip-insights-intro h2,
body.sh-page--insights .ip-library__head h2,
body.sh-page--insights .ip-evidence-method__head h2,
body.sh-page--insights .ip-article-next h2,
body.sh-page--insights .ip-prose h2,
body.sh-page--insights .ip-key-finding h2 {
  font-family: var(--ip-display);
  font-weight: 300;
}

body.sh-page--insights .ip-insights-intro h2 {
  max-width: 11ch;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

body.sh-page--insights .ip-featured__layout {
  min-height: min(620px, 72svh);
  background: #1e1338;
  border-radius: 2px;
  overflow: hidden;
}

body.sh-page--insights .ip-featured__copy h2 {
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 300;
  letter-spacing: -0.05em;
}

body.sh-page--insights .ip-featured__copy .ip-kicker,
body.sh-page--insights .ip-featured__copy .ip-link {
  color: #d9b8ff;
}

body.sh-page--insights .ip-evidence-method {
  background: #150c26;
}

body.sh-page--insights .ip-evidence-method__head h2 {
  color: #f8f5fb;
}

body.sh-page--insights .ip-evidence-method__icon,
body.sh-page--insights .ip-evidence-method__steps span {
  color: #c48cff;
}

body.sh-page--insights .ip-library {
  padding: clamp(72px, 9vw, 128px) 0;
}

body.sh-page--insights .ip-search {
  border: 1px solid rgba(21, 12, 38, 0.17);
  border-radius: 999px;
  padding-inline: 20px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.sh-page--insights .ip-search:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

body.sh-page--insights .ip-filter {
  border-color: rgba(21, 12, 38, 0.18);
  color: #443852;
}

body.sh-page--insights .ip-filter:hover,
body.sh-page--insights .ip-filter[aria-pressed="true"] {
  border-color: #6d3fa0;
  background: #6d3fa0;
  color: #fff;
}

body.sh-page--insights .ip-evidence-library .ip-story {
  gap: 18px;
  border-color: rgba(21, 12, 38, 0.14);
}

body.sh-page--insights .ip-evidence-library .ip-story__art {
  border-radius: 2px;
  overflow: hidden;
}

body.sh-page--insights .ip-story__category,
body.sh-page--insights .ip-link,
body.sh-page--insights .ip-citation,
body.sh-page--insights .ip-key-finding > p:first-child,
body.sh-page--insights .ip-key-finding > a,
body.sh-page--insights .ip-editorial-standard strong,
body.sh-page--insights .ip-article-toc a:is(:hover, :focus-visible, .is-current) {
  color: #6d3fa0;
}

body.sh-page--insights .ip-story h3,
body.sh-page--insights .ip-story h3 a {
  color: #160d23;
  font-weight: 400;
}

body.sh-page--insights .ip-story__summary,
body.sh-page--insights .ip-story__meta,
body.sh-page--insights .ip-results-meta {
  color: #62586e;
}

body.sh-page--insights .ip-citation {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

body.sh-page--insights .ip-hero::before {
  background: none !important;
}

body.sh-page--insights .ip-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

body.sh-page--insights .ip-hero__media,
body.sh-page--insights .ip-hero__media img {
  width: 100%;
  height: 100%;
}

body.sh-page--insights .ip-hero__media img {
  max-width: none;
  object-fit: cover;
  object-position: 100% 50%;
  transform: scale(1.12);
  transform-origin: 100% 50%;
}

body.sh-page--insights .ip-hero__action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 0 22px;
  border: 1px solid var(--sh-pink);
  border-radius: 999px;
  background: var(--sh-pink);
  color: var(--sh-ground, #150c26) !important;
  font-family: var(--ip-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-decoration: none;
  text-shadow: none !important;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

body.sh-page--insights .ip-hero__action .sh-ui-arrow {
  transition: transform 180ms ease;
}

body.sh-page--insights .ip-hero__action:hover {
  border-color: #fb80a8;
  background: #fb80a8;
  color: var(--sh-ground, #150c26) !important;
  transform: translateY(-1px);
}

body.sh-page--insights .ip-hero__action:focus-visible {
  border-color: #fb80a8;
  background: #fb80a8;
  color: var(--sh-ground, #150c26) !important;
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(21, 12, 38, 0.72);
  transform: translateY(-1px);
}

body.sh-page--insights .ip-hero__action:hover .sh-ui-arrow,
body.sh-page--insights .ip-hero__action:focus-visible .sh-ui-arrow {
  transform: translateY(2px);
}

body.sh-page--insights .ip-reading-progress {
  top: var(--sh-nav-h);
  z-index: 110;
  height: 3px;
}

body.sh-page--insights .ip-reading-progress span {
  background: linear-gradient(90deg, #8b5cf6, #f0568c);
}

body.sh-page--insights .ip-evidence-summary {
  border-bottom-color: rgba(21, 12, 38, 0.14);
}

body.sh-page--insights .ip-evidence-summary__intro > p:last-child {
  color: #160d23;
  font-weight: 300;
}

body.sh-page--insights .ip-key-finding {
  border-left-color: #6d3fa0;
}

body.sh-page--insights .ip-key-finding strong {
  color: #6d3fa0;
  font-weight: 300;
}

body.sh-page--insights .ip-evidence-article .ip-article-body {
  background: #fcfafd;
}

body.sh-page--insights .ip-article-rail {
  scrollbar-color: rgba(109, 63, 160, 0.36) transparent;
}

body.sh-page--insights .ip-article-rail > p {
  color: #6d3fa0;
  font-weight: 700;
}

body.sh-page--insights .ip-article-toc a {
  color: #6f6478;
}

body.sh-page--insights .ip-evidence-limits {
  background: #eee9f2;
}

body.sh-page--insights .ip-practical-questions {
  background: #1e1338;
}

body.sh-page--insights .ip-practical-questions li::before,
body.sh-page--insights .ip-practical-questions .ip-citation {
  color: #c48cff;
}

body.sh-page--insights .ip-source-notes > ol > li > span {
  color: #6d3fa0;
}

body.sh-page--insights .ip-source-notes {
  border-top-color: #6d3fa0;
}

body.sh-page--insights .ip-source-notes a {
  text-decoration-color: rgba(109, 63, 160, 0.38);
}

body.sh-page--insights .ip-article-next {
  background: #eee9f2;
}

body.sh-page--insights .ip-article-next .ip-link {
  color: #6d3fa0;
}

@media (max-width: 900px) {
  body.sh-page--insights .ip-hero,
  body.sh-page--insights .ip-evidence-article .ip-hero {
    display: grid;
    min-height: calc(100svh - var(--sh-nav-h));
    max-height: none;
    padding: 120px 0 52px;
    align-items: end;
    background: #150c26;
  }

  body.sh-page--insights .ip-hero::before,
  body.sh-page--insights .ip-evidence-article .ip-hero::before {
    inset: 0;
    height: auto;
    background: none !important;
    opacity: 0;
  }

  body.sh-page--insights .ip-hero::after,
  body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero::after {
    background:
      linear-gradient(0deg, rgba(15, 7, 28, 0.99) 0%, rgba(15, 7, 28, 0.88) 52%, rgba(15, 7, 28, 0.24) 100%),
      linear-gradient(90deg, rgba(15, 7, 28, 0.62), rgba(15, 7, 28, 0.16) 82%);
  }

  body.sh-page--insights .ip-hero__media img {
    object-position: 100% 50%;
    transform: scale(1.06);
  }

  body.sh-page--insights .ip-hero__content,
  body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero .ip-hero__content {
    position: relative;
    inset: auto;
    width: min(100%, 1368px);
    padding: 0 24px;
    background: transparent;
  }

  body.sh-page--insights .ip-hero h1,
  body[data-page="insights"].sh-page--insights main .ip-page.ip-evidence-library > .ip-hero h1,
  body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero h1 {
    max-width: 14ch;
    color: #f8f5fb !important;
    font-size: clamp(36px, 9.6vw, 52px) !important;
  }

  body.sh-page--insights .ip-insights-intro__grid,
  body.sh-page--insights .ip-evidence-summary__grid {
    grid-template-columns: 1fr;
  }

  body.sh-page--insights .ip-featured__layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  body.sh-page--insights .ip-featured__image {
    min-height: min(62svh, 520px);
  }

  body.sh-page--insights .ip-reading-progress {
    top: 64px;
  }
}

@media (max-width: 680px) {
  body.sh-page--insights .ip-wrap {
    padding-inline: 20px;
  }

  body.sh-page--insights .ip-hero,
  body.sh-page--insights .ip-evidence-article .ip-hero {
    min-height: calc(100svh - 64px);
    padding: 104px 0 38px;
  }

  body.sh-page--insights .ip-hero__content,
  body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero .ip-hero__content {
    padding-inline: 20px;
  }

  body.sh-page--insights .ip-evidence-method__head {
    grid-template-columns: 1fr;
  }

  body.sh-page--insights .ip-evidence-method__head > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  body.sh-page--insights .ip-evidence-method__steps > div {
    padding-inline: 0;
  }

  body.sh-page--insights .ip-key-finding {
    border-top-color: #6d3fa0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sh-page--insights .ip-hero::before {
    animation: none;
    transform: none;
  }
}

/* Match the first-viewport hero budget used by the rest of the site. */
body.sh-page--insights .ip-hero,
body.sh-page--insights .ip-evidence-article .ip-hero {
  height: var(--sh-hero-height);
  min-height: var(--sh-hero-height);
  max-height: var(--sh-hero-height);
  padding: 0 0 clamp(34px, 5.6svh, 52px);
  box-sizing: border-box;
  align-items: end;
  overflow: hidden;
}

body.sh-page--insights .ip-hero h1,
body[data-page="insights"].sh-page--insights main .ip-page.ip-evidence-library > .ip-hero h1,
body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero h1 {
  max-width: 16ch;
  margin-block: 12px 16px;
  font-size: clamp(42px, 4.8vw, 68px) !important;
  line-height: 1 !important;
}

body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero h1 {
  max-width: 17ch;
  font-size: clamp(36px, 3.6vw, 54px) !important;
}

@media (max-width: 900px) {
  body.sh-page--insights .ip-hero,
  body.sh-page--insights .ip-evidence-article .ip-hero {
    height: var(--sh-hero-height);
    min-height: var(--sh-hero-height);
    max-height: var(--sh-hero-height);
    padding: 0 0 30px;
  }

  body.sh-page--insights .ip-hero h1,
  body[data-page="insights"].sh-page--insights main .ip-page.ip-evidence-library > .ip-hero h1,
  body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero h1 {
    max-width: 16ch;
    font-size: clamp(36px, 6.8vw, 52px) !important;
  }
}

@media (max-width: 620px) {
  body.sh-page--insights .ip-hero,
  body.sh-page--insights .ip-evidence-article .ip-hero {
    /* Preserve the full title and source line during the entrance motion. */
    padding: 0 0 42px;
  }

  body.sh-page--insights .ip-hero h1,
  body[data-page="insights"].sh-page--insights main .ip-page.ip-evidence-library > .ip-hero h1,
  body[data-page^="insight-"].sh-page--insights main .ip-page.ip-evidence-article > .ip-hero h1 {
    max-width: 17ch;
    margin-block: 9px 12px;
    font-size: clamp(31px, 8.6vw, 38px) !important;
    line-height: 1.02 !important;
  }

  body.sh-page--insights .ip-hero__meta {
    font-size: 10px;
  }

  body.sh-page--insights .ip-hero__media img {
    object-position: 100% 50%;
    transform: scale(1.02);
  }

  body.sh-page--insights .ip-hero__action {
    min-height: 44px;
    margin-top: 12px;
    padding-inline: 18px;
    font-size: 10px;
  }
}

/* People-first editorial crops for the featured review and evidence library. */
body.sh-page--insights .ip-evidence-library .ip-featured__image {
  background-position: 100% 50%;
  background-size: auto 118%;
  background-repeat: no-repeat;
}

body.sh-page--insights .ip-evidence-library .ip-story {
  --ip-story-focus: 100% 50%;
  --ip-card-scale: 1.15;
  --ip-card-hover-scale: 1.2;
}

body.sh-page--insights .ip-evidence-library .ip-story:is(
  :nth-child(3),
  :nth-child(21),
  :nth-child(22),
  :nth-child(23),
  :nth-child(24),
  :nth-child(28),
  :nth-child(29),
  :nth-child(30),
  :nth-child(32),
  :nth-child(42),
  :nth-child(47),
  :nth-child(55),
  :nth-child(57)
) {
  --ip-card-scale: 1.28;
  --ip-card-hover-scale: 1.34;
}

body.sh-page--insights .ip-evidence-library .ip-story:is(
  :nth-child(6),
  :nth-child(11),
  :nth-child(17)
) {
  --ip-card-scale: 1.38;
  --ip-card-hover-scale: 1.44;
}

body.sh-page--insights .ip-evidence-library .ip-story__art img {
  object-position: var(--ip-story-focus);
  transform: scale(var(--ip-card-scale));
  transform-origin: var(--ip-story-focus);
}

body.sh-page--insights .ip-evidence-library .ip-story:hover .ip-story__art img,
body.sh-page--insights .ip-evidence-library .ip-story:focus-within .ip-story__art img {
  transform: scale(var(--ip-card-hover-scale));
}

@media (min-width: 681px) and (max-width: 1024px) {
  body.sh-page--insights .ip-evidence-library .ip-story-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.sh-page--insights .ip-evidence-library .ip-story {
    --ip-card-scale: 1.23;
    --ip-card-hover-scale: 1.28;
  }

  body.sh-page--insights .ip-evidence-library .ip-story:is(
    :nth-child(3),
    :nth-child(21),
    :nth-child(22),
    :nth-child(23),
    :nth-child(24),
    :nth-child(28),
    :nth-child(29),
    :nth-child(30),
    :nth-child(32),
    :nth-child(42),
    :nth-child(47),
    :nth-child(55),
    :nth-child(57)
  ) {
    --ip-card-scale: 1.32;
    --ip-card-hover-scale: 1.36;
  }

  body.sh-page--insights .ip-evidence-library .ip-story:is(
    :nth-child(6),
    :nth-child(11),
    :nth-child(17)
  ) {
    --ip-card-scale: 1.42;
    --ip-card-hover-scale: 1.46;
  }
}
