/* ==========================================================================
   INSIGHTS MOSAIC GRID
   Same bento/mosaic mechanics as the About page's Crew section
   (.crew-grid / --crew-cols, see assets/css/about.css) applied to Insight
   cards: a 4-column grid where each card spans 1 or 2 columns via the
   --insight-cols custom property, set per-card by the "Wide card" checkbox
   in the Insight's editor.
   ========================================================================== */

.insights-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
  margin-top: 8px;
}

.insight-tile {
  grid-column: span var(--insight-cols, 2);
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 2.2vw, 32px);
  color: #ffffff;
  text-decoration: none !important;
  background: radial-gradient(135% 135% at 82% 20%, #0d4d63 0%, #083645 50%, #041e26 100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.insight-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px -14px rgba(7, 16, 23, 0.35);
}

.insight-tile.has-image {
  background: #0b1a22;
}

.insight-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.insight-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 23, 0) 30%, rgba(7, 16, 23, 0.88) 100%);
  z-index: 1;
}

.insight-tile-content {
  position: relative;
  z-index: 2;
}

.insight-tile-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #14D7D2;
  margin-bottom: 10px;
}

.insight-tile-title {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #ffffff;
}

.insight-tile-excerpt {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-tile-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.insight-tile-meta .tax-link-meta {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

@media (max-width: 900px) {
  .insights-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .insight-tile {
    grid-column: span 2 !important;
  }
}

@media (max-width: 560px) {
  .insights-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .insight-tile {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 280px;
  }
}

/* ==========================================================================
   SINGLE INSIGHT / ARTICLE PAGE
   Hero: text column on the left (title/date/author, left-aligned) with the
   Featured Image on the right in a two-column grid, when a Featured Image
   is set — falls back to a single centered ~700px column when it isn't.
   Below the hero: a full-bleed pull-quote band, a light "Takeaway" box, and
   a "More from Insights" section with a right-aligned CTA next to the
   heading — see single-coserve_insight.php for the markup.
   ========================================================================== */

.ar-hero-band {
  position: relative !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: #f8fafb;
  padding: 140px 0 60px !important;
  overflow: hidden;
}

.ar-hero-band.has-hero-bg {
  color: #ffffff;
}

.ar-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ar-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ar-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 23, 0.72) 0%, rgba(7, 16, 23, 0.90) 100%);
  z-index: 1;
}

.ar-hero-band .container {
  position: relative;
  z-index: 2;
}

.ar-head {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ar-head .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
}

.has-hero-bg .ar-head .breadcrumbs,
.has-hero-bg .ar-head .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.has-hero-bg .ar-head .breadcrumbs a:hover {
  color: #14D7D2;
}

.has-hero-bg .ar-head .breadcrumbs span {
  color: #14D7D2;
}

.ar-topic-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}

.ar-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #071017;
  margin: 0 auto;
  font-family: 'Lato', sans-serif;
  text-align: center;
  max-width: 820px;
}

.has-hero-bg .ar-title {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.ar-title em {
  font-family: 'Lato', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: #14D7D2;
}

.ar-date {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8A97A0;
  margin: 20px auto 0;
  text-align: center;
}

.has-hero-bg .ar-date {
  color: rgba(255, 255, 255, 0.75);
}

.ar-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(7, 16, 23, 0.12);
}

.has-hero-bg .ar-author {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.ar-author-portrait {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #E2E8F0;
}

.ar-author-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.ar-author-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #071017;
}

.has-hero-bg .ar-author-name {
  color: #ffffff;
}

.ar-author-role {
  font-size: 0.82rem;
  color: #64748B;
}

.ar-body-band {
  background: #ffffff;
  padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 88px);
}

.ar-dek {
  max-width: 700px;
  margin: 0 auto clamp(28px, 3.4vw, 36px);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  font-weight: 300;
  color: #415564;
}

.ar-prose {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 1.75;
  color: #334155;
}

.ar-prose h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: #071017;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.ar-prose h2 em,
.ar-prose h3 em {
  font-style: italic;
  font-weight: 300;
  color: #14D7D2;
}

.ar-prose p {
  margin: 0 0 20px;
}

/* Thin fade-edged divider used between article sections, matching the
   subtle top-border-fade treatment used on .ar-author above. */
.ar-divider {
  max-width: 700px;
  margin: 40px auto;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(7, 16, 23, 0.16) 10%, rgba(7, 16, 23, 0.16) 90%, transparent 100%);
  border: 0;
}

/* Pull-quote / callout band — full-bleed (breaks out of the centered
   content column), dark background, centered text, optional large quote
   mark and attribution line. */
.ar-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(40px, 6vw, 60px);
  margin-bottom: clamp(40px, 6vw, 60px);
  padding: clamp(48px, 6vw, 72px) 24px;
  background: radial-gradient(circle at 80% 20%, #1a2d3d 0%, #071017 80%);
  color: #ffffff;
  text-align: center;
}

.ar-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ar-banner-mark {
  font-family: 'Lato', sans-serif !important;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 0.6;
  color: #14D7D2;
  opacity: 0.55;
}

.ar-banner-text {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
}

.ar-banner-attr {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* "The Takeaway" box — light rounded panel, not full-bleed. */
.ar-takeaway {
  max-width: 700px;
  margin: clamp(36px, 4vw, 48px) auto;
  padding: clamp(24px, 2.6vw, 32px) clamp(24px, 3vw, 34px);
  background: #F4F7F8;
  border: 1px solid #D9E1E4;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ar-takeaway-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #14D7D2;
}

.ar-takeaway-body {
  font-size: 1.06rem;
  line-height: 1.62;
  color: #071017;
  margin: 0;
}

/* "More from Insights" section header: title on the left, a single CTA
   pill vertically bottom-aligned on the right — a narrower companion to
   .sh--split (which is built for a wide lede paragraph on the right, not a
   single inline pill). */
.sh--aside {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

.sh-aside {
  display: flex;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .sh--aside {
    align-items: flex-start !important;
  }
}

.ar-related-band {
  padding: 80px 0;
  background: #f8fafb;
}

.related-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .related-insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related-insights-grid {
    grid-template-columns: 1fr;
  }
}

.ri-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
}

.ri-card-figure {
  position: relative;
  aspect-ratio: 1.3;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(135% 135% at 82% 20%, #0d4d63 0%, #083645 50%, #041e26 100%);
}

.ri-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ri-card:hover .ri-card-img {
  transform: scale(1.04);
}

.ri-card-body {
  padding: 16px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ri-card-headline {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
  color: #071017;
  margin: 0;
}

.ri-card-byline {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0;
}

@media (max-width: 640px) {
  .ar-author-portrait {
    width: 44px;
    height: 44px;
  }
}
