/* ── Shared ────────────────────────────────── */

.insight-label {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-transform: uppercase;
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
}

.insight-category {
  color: var(--lime);
  font-weight: 600;
  text-transform: uppercase;
}

/* ── Overview ──────────────────────────────── */

.insight-summary {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.insight-list,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 80px var(--gutter);
  align-items: start;
}

.insight-card {
  grid-column: span 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.insight-card[hidden] {
  display: none;
}

.insight-card-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
}

.insight-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .insight-card:hover .insight-card-image img {
    transform: scale(1.04);
  }
}

.insight-card-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-card h2,
.insight-card h3 {
  margin: 0;
  max-width: 28ch;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.insight-card-excerpt {
  margin: 0;
  max-width: 44ch;
  font-size: 18px;
  line-height: 22px;
  color: var(--muted);
  transition: color 500ms ease;
}

.insight-card:hover .insight-card-excerpt {
  color: var(--white);
}

.insight-card--featured {
  grid-column: span 6;
}

.insight-card--featured .insight-card-image {
  aspect-ratio: 3 / 2;
}

.insight-card--featured h2 {
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.05;
}

/* ── Article ───────────────────────────────── */

.insight-article {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.insight-hero {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.insight-back {
  align-self: flex-start;
  font-size: 18px;
  line-height: 22px;
  color: var(--muted);
  transition: color 200ms ease;
}

.insight-back:hover {
  color: var(--white);
}

.insight-hero-grid,
.insight-layout {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 36px;
}

.insight-hero h1 {
  grid-column: 1 / span 3;
  margin: 0;
  font-size: clamp(36px, 4vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.insight-hero-aside {
  grid-column: 4 / span 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.insight-excerpt {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: var(--copy-muted);
}

.insight-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.insight-author p {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
}

.insight-author p + p {
  color: var(--muted);
}

.insight-author-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.insight-cover {
  margin: 0;
}

.insight-cover img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  background: #111;
}

.insight-cover figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--footer-wordmark);
}

.insight-aside {
  grid-column: 1;
}

.insight-aside-inner {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.insight-toc ol,
.insight-share ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 22px;
}

.insight-toc a,
.insight-share a,
.insight-share button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 200ms ease;
}

.insight-toc a:hover,
.insight-share a:hover,
.insight-share button:hover {
  color: var(--white);
}

.insight-main {
  grid-column: 2 / span 3;
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 780px;
}

.insight-body {
  font-size: 20px;
  line-height: 1.6;
  color: var(--copy-muted);
}

.insight-body > * {
  margin: 0;
}

.insight-body > * + * {
  margin-top: 28px;
}

.insight-body > h2,
.insight-body > h3 {
  margin-top: 64px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
  scroll-margin-top: 32px;
}

.insight-body h2 {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
}

.insight-body h3 {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.25;
}

.insight-body strong {
  color: var(--white);
  font-weight: 600;
}

.insight-body a {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 4px;
}

.insight-body blockquote {
  margin: 48px 0;
  padding-left: 28px;
  border-left: 3px solid var(--lime);
  color: var(--white);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.3;
}

.insight-body ul,
.insight-body ol {
  padding-left: 24px;
}

.insight-body figure {
  margin-left: 0;
  margin-right: 0;
}

.insight-body img {
  width: 100%;
  height: auto;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-tags li {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 14px;
  line-height: 18px;
}

.insight-author-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.insight-related {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 1200px) {
  .insight-card {
    grid-column: span 6;
  }

  .insight-card--featured {
    grid-column: span 12;
  }

  .insight-main {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .insight-hero-grid,
  .insight-layout {
    grid-template-columns: 1fr;
  }

  .insight-hero h1,
  .insight-hero-aside,
  .insight-main {
    grid-column: auto;
  }

  .insight-aside {
    grid-column: auto;
    order: 2;
  }

  .insight-aside-inner {
    position: static;
  }

  .insight-share ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .insight-body {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .insight-list,
  .insight-article {
    gap: 56px;
  }

  .insight-grid {
    gap: 56px var(--gutter);
  }

  .insight-card {
    grid-column: span 12;
  }

  .insight-summary {
    margin-bottom: 32px;
  }
}
