/* Insights hub + post pages. Tokens only. */

/* Section rhythm */
.ins-section {
  padding-block: var(--space-6);
}

/* Hub hero band */
.ins-hero {
  background: var(--color-surface-alt);
  padding-block: var(--space-6);
}

/* Action blue misses 4.5:1 on the alt-surface hero (WCAG 1.4.3). */
.ins-hero a {
  color: var(--color-ink-strong);
}

.ins-hero__lede {
  font-size: var(--text-md);
  max-width: 60ch;
  margin-bottom: 0;
}

/* Featured (newest) post */
.ins-featured {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

@media (min-width: 800px) {
  .ins-featured {
    grid-template-columns: 3fr 2fr;
  }
}

.ins-featured img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ins-featured__body {
  padding: var(--space-4) var(--space-5);
}

.ins-featured__body h2 {
  margin-top: 0;
}

.ins-featured__body h2 a {
  color: var(--color-ink-strong);
  text-decoration: none;
}

.ins-featured__body h2 a:hover {
  color: var(--color-primary-bright);
}

/* Insight card grid (shared card pattern) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.card--insight {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--insight img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card__body {
  padding: var(--space-4);
}

.card__body .card__title {
  font-size: var(--text-md);
  margin-block: 0 var(--space-2);
}

.card__body .card__title a {
  color: var(--color-ink-strong);
  text-decoration: none;
}

.card__body .card__title a:hover {
  color: var(--color-primary-bright);
}

.card__meta {
  font-size: var(--text-sm);
  color: var(--color-ink);
  opacity: 0.75;
  margin-bottom: 0;
}

/* Post page */
.post-header {
  padding-top: var(--space-6);
  max-width: 46rem;
}

.post-header h1 {
  max-width: 26ch;
}

.post-byline {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.post-media {
  margin-block: var(--space-4);
}

.post-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.post-body {
  max-width: 46rem;
  padding-bottom: var(--space-5);
}

.post-body p {
  max-width: 70ch;
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

.post-back {
  margin-top: var(--space-4);
}

/* Closing CTA */
.ins-closing {
  background: var(--color-surface-alt);
  text-align: center;
  padding-block: var(--space-7);
}

.ins-closing__lede {
  margin-inline: auto;
  margin-bottom: var(--space-4);
  max-width: 60ch;
}
