/* Insights archive (app/templates/blog.php): editorial introduction, pillar navigation, featured article, article grid and
 * empty state. Article cards are the shared ones from insights.css. Light mode first; dark mode at the end. */
.ins {
  --ins-ink: #1a1a1a;
  --ins-text: #34324a;
  --ins-muted: #5a5870;
  --ins-line: #e4e8ee;
  --ins-tint: #f4f6f8;
  --ins-link: #0a6aa8;
}
/* Scoped to the archive's own text: the cards keep the styles in insights.css. */
.ins-hero p,
.ins-feature p,
.ins-empty p {
  margin: 0;
  color: var(--ins-text);
}

/* ------------------------------------------------------------------ introduction */
.ins-hero {
  padding: clamp(7.25rem, 11vw, 10rem) 1rem clamp(2.25rem, 4vw, 3rem);
  background-color: var(--ins-tint);
  text-align: center;
}
/* The desktop header is taller: keep the breadcrumbs clear of it. */
@media only screen and (min-width: 64rem) {
  .ins-hero {
    padding-top: clamp(9.25rem, 11vw, 10rem);
  }
}
.ins-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
}
.ins-hero .cs-breadcrumbs {
  margin-bottom: 1.25rem;
}
.ins-hero .cs-breadcrumbs ol {
  justify-content: center;
}
.ins-hero .cs-breadcrumbs li,
.ins-hero .cs-breadcrumbs a {
  font-size: 0.8125rem;
}
.ins p.ins-eyebrow {
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ins-link);
}
.ins-title {
  margin: 0;
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.625rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--ins-ink);
  text-wrap: balance;
}
.ins p.ins-intro {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 0.97rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ins-muted);
  text-wrap: balance;
}

/* ------------------------------------------------------------------ pillar navigation */
.ins-pillars {
  position: relative;
  border-bottom: 1px solid var(--ins-line);
}
.ins-pillars__list {
  display: flex;
  justify-content: safe center;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scrollbar-width: none;
}
.ins-pillars__list::-webkit-scrollbar {
  display: none;
}
.ins-pillars li {
  flex: 0 0 auto;
}
.ins-pillars a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  box-sizing: border-box;
  padding: 0 0.875rem;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ins-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.ins-pillars a:hover {
  color: var(--ins-ink);
  border-bottom-color: var(--ins-line);
}
.ins-pillars a[aria-current] {
  border-bottom-color: var(--secondary);
  font-weight: 600;
  color: var(--ins-ink);
}
.ins-pillars a:focus-visible {
  outline: 3px solid #0a74b5;
  outline-offset: -3px;
}
/* Soft edges that say there is more to swipe to (switched on by assets/js/archive.js). */
.ins-pillars::before,
.ins-pillars::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.ins-pillars::before {
  left: 0;
  background: linear-gradient(90deg, #fff 15%, rgba(255, 255, 255, 0));
}
.ins-pillars::after {
  right: 0;
  background: linear-gradient(270deg, #fff 15%, rgba(255, 255, 255, 0));
}
.ins-pillars.has-before::before,
.ins-pillars.has-after::after {
  opacity: 1;
}

/* ------------------------------------------------------------------ featured article */
.ins-feature {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem 0;
  box-sizing: content-box;
}
.ins-feature__inner {
  position: relative; /* the headline link stretches over this */
  display: grid;
  gap: 1.5rem;
}
.ins-feature__media {
  overflow: hidden;
  border-radius: clamp(0.75rem, 1.6vw, 1.25rem);
  background-color: #001f3f;
}
.ins-feature__media img {
  display: block;
  width: 100%;
  height: auto; /* with the width and height attributes this keeps the photograph's 16:9 shape before it loads */
  transition: transform 0.5s;
}
.ins-feature__inner:has(.ins-feature__link:hover) img {
  transform: scale(1.015);
}
.ins-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.ins p.ins-feature__label {
  margin-bottom: 1.25rem;
  padding-top: 0.875rem;
  border-top: 3px solid var(--secondary);
  font-family: var(--headerFont);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ins-ink);
}
.ins p.ins-feature__pillar {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ins-link);
}
.ins-feature__title {
  margin: 0;
  font-size: clamp(1.625rem, 1rem + 1.9vw, 2.625rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ins-ink);
  text-wrap: balance;
}
.ins-feature__link {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
}
.ins-feature__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.ins p.ins-feature__summary {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 0.99rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ins-muted);
}
.ins-feature__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}
.ins-feature__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ins-feature__avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
.ins-feature__author p {
  line-height: 1.4;
}
.ins-feature__name,
.ins-feature__role {
  display: block;
}
.ins-feature__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ins-ink);
}
.ins-feature__role {
  font-size: 0.8125rem;
  color: var(--ins-muted);
}
.ins p.ins-feature__time {
  font-size: 0.875rem;
  color: var(--ins-muted);
}
.ins-feature__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ins-link);
}
.ins-feature__more svg {
  transition: transform 0.25s;
}
.ins-feature__inner:has(.ins-feature__link:hover) .ins-feature__more {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.ins-feature__inner:has(.ins-feature__link:hover) svg {
  transform: translateX(4px);
}
.ins-feature__inner:has(.ins-feature__link:focus-visible) {
  outline: 3px solid #0a74b5;
  outline-offset: 0.5rem;
  border-radius: 0.5rem;
}
.ins-feature__link:focus-visible {
  outline: none;
}
@media only screen and (min-width: 64rem) {
  .ins-feature__inner {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    align-items: center;
    gap: clamp(2rem, 3.5vw, 3.5rem);
  }
  .ins-feature__inner--text {
    grid-template-columns: minmax(0, 48rem);
    justify-content: center;
  }
}
/* A stacked feature on tablets keeps to a comfortable width. */
@media only screen and (min-width: 40rem) and (max-width: 63.999rem) {
  .ins-feature__inner {
    max-width: 46rem;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------------ article grid: adapts to how many there are */
.ins-list {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1rem 0;
  box-sizing: content-box;
}
.ins-feature + .ins-list .ins-heading {
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--ins-line);
}
.ins-feature + .ins-list {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.ins-heading {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.25;
  text-align: center;
}
.ins-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ins-grid--1 {
  max-width: 26rem;
}
@media only screen and (min-width: 40rem) {
  .ins-grid--1 {
    max-width: 32.5rem; /* a lone article has more presence, without stretching across the page */
  }
  .ins-grid--2,
  .ins-grid--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 56rem;
  }
}
/* Desktop: two or more articles share the same outer edges as the featured article above. */
@media only screen and (min-width: 64rem) {
  .ins-grid--2,
  .ins-grid--many {
    max-width: none;
  }
  .ins-grid--many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ empty state */
.ins-empty {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  border-radius: 1rem;
  background-color: var(--ins-tint);
  text-align: center;
}
.ins-empty__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
}
.ins-empty p + p {
  margin-top: 1rem;
}
.ins-empty p {
  line-height: 1.65;
}
.ins-empty__link {
  font-weight: 600;
  color: var(--ins-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* The signboard follows with no top padding of its own, so give it room here. */
.ins + #cta-1693 {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

/* ------------------------------------------------------------------ dark mode */
html.dark-mode .ins {
  --ins-ink: #fafbfc;
  --ins-text: #d3dce5;
  --ins-muted: #a9b8c7;
  --ins-line: #1d3547;
  --ins-tint: #0a1a27;
  --ins-link: #6cc8ff;
}
html.dark-mode .ins-hero p,
html.dark-mode .ins-feature p,
html.dark-mode .ins-empty p {
  color: var(--ins-text);
}
html.dark-mode .ins h1,
html.dark-mode .ins h2,
html.dark-mode .ins h3 {
  color: var(--ins-ink);
}
html.dark-mode .ins p.ins-eyebrow,
html.dark-mode .ins p.ins-feature__pillar {
  color: var(--ins-link);
}
html.dark-mode .ins p.ins-intro,
html.dark-mode .ins p.ins-feature__summary,
html.dark-mode .ins p.ins-feature__time {
  color: var(--ins-muted);
}
html.dark-mode .ins p.ins-feature__label {
  color: var(--ins-ink);
}
html.dark-mode .ins-hero .cs-breadcrumbs li,
html.dark-mode .ins-hero .cs-breadcrumbs a {
  color: var(--ins-muted);
}
html.dark-mode .ins-pillars::before {
  background: linear-gradient(90deg, var(--dark) 15%, rgba(3, 15, 24, 0));
}
html.dark-mode .ins-pillars::after {
  background: linear-gradient(270deg, var(--dark) 15%, rgba(3, 15, 24, 0));
}
html.dark-mode .ins-pillars a:focus-visible,
html.dark-mode .ins-feature__inner:has(.ins-feature__link:focus-visible) {
  outline-color: var(--secondary);
}
html.dark-mode img.ins-feature__avatar {
  box-shadow: 0 0 0 1px #2a4a60;
}

@media (prefers-reduced-motion: reduce) {
  .ins-pillars a,
  .ins-pillars::before,
  .ins-pillars::after,
  .ins-feature__media img,
  .ins-feature__more svg {
    transition: none;
  }
  .ins-feature__inner:has(.ins-feature__link:hover) img,
  .ins-feature__inner:has(.ins-feature__link:hover) svg {
    transform: none;
  }
}
