/* Insights — listing + article layout */

.insights-hero__glow,
.insight-article__hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 15% 20%, rgba(13, 148, 136, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 90% 80%, rgba(196, 169, 98, 0.16), transparent 50%);
}

.insights-index {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.insights-filter {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(15, 39, 68, 0.1);
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(15, 39, 68, 0.8);
  text-decoration: none;
  transition: 0.2s ease;
}

.insights-filter:hover {
  border-color: rgba(10, 114, 105, 0.4);
  color: #0a7269;
}

.insights-filter--active,
.insights-filter--active:hover {
  border-color: #0a7269;
  background: #0a7269;
  color: #fff;
}

/* Listing grid — always even columns, no awkward featured hole */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.insights-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(15, 39, 68, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.insights-card:hover {
  border-color: rgba(10, 114, 105, 0.25);
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.08);
  transform: translateY(-2px);
}

.insights-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.insights-card__media {
  position: relative;
  overflow: hidden;
  background: rgba(15, 39, 68, 0.05);
  flex-shrink: 0;
}

.insights-card__picture,
.insights-card__placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
}

.insights-card__placeholder {
  background:
    linear-gradient(135deg, rgba(15, 39, 68, 0.08), rgba(13, 148, 136, 0.12)),
    radial-gradient(circle at 30% 30%, rgba(196, 169, 98, 0.2), transparent 50%);
}

.insights-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.insights-card:hover .insights-card__image {
  transform: scale(1.03);
}

.insights-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.4rem;
}

.insights-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a7269;
}

.insights-card__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f2744;
  transition: color 0.2s ease;
}

.insights-card:hover .insights-card__title {
  color: #0a7269;
}

.insights-card__excerpt {
  margin-top: 0.55rem;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4f5e72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insights-card__cta {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a7269;
}

/* Article page */
.insight-article__hero {
  position: relative;
  overflow: hidden;
  background: #0f2744;
  color: #fff;
}

.insight-article__hero-inner {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.insight-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(110, 220, 211, 0.35);
  background: rgba(13, 148, 136, 0.15);
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6edcd3;
  text-decoration: none;
}

.insight-chip--gold {
  border-color: rgba(196, 169, 98, 0.4);
  background: rgba(196, 169, 98, 0.15);
  color: #c4a962;
}

.insight-chip--muted {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.insight-article__title {
  margin-top: 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.insight-article__deck {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.insight-article__byline {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem 1.5rem;
}

.insight-article__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.insight-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.insight-share__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.insight-share__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.insight-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.insight-share__btn:hover {
  background: rgba(13, 148, 136, 0.35);
  border-color: rgba(110, 220, 211, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.insight-share__copied {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6edcd3;
}

.insight-article__author-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.85), rgba(196, 169, 98, 0.7));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.insight-article__author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.insight-article__author-meta {
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.insight-article__cover-wrap {
  max-width: 52rem;
  margin: -1.5rem auto 0;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .insight-article__cover-wrap {
    margin-top: -2rem;
    padding-inline: 1.5rem;
  }
}

.insight-article__cover {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 39, 68, 0.15);
  outline: 1px solid rgba(15, 39, 68, 0.08);
}

.insight-article__cover-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.insight-article__body {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* Single-column by default; only add TOC column when present */
.insight-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 46rem;
  margin-inline: auto;
}

.insight-article__layout--with-toc {
  max-width: 68rem;
}

@media (min-width: 1024px) {
  .insight-article__layout--with-toc {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .insight-toc {
    position: sticky;
    top: 6.5rem;
  }
}

.insight-article__main {
  min-width: 0;
  max-width: 46rem;
}

.insight-article__layout--with-toc .insight-article__main {
  max-width: none;
}

.insight-toc {
  border-radius: 1rem;
  border: 1px solid rgba(15, 39, 68, 0.1);
  background: #fff;
  padding: 1.15rem 1.25rem;
}

.insight-toc__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a7269;
}

.insight-toc__list {
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.insight-toc__list a {
  color: rgba(15, 39, 68, 0.75);
  text-decoration: none;
}

.insight-toc__list a:hover {
  color: #0a7269;
}

.insight-toc__item--sub {
  margin-left: 0.75rem;
}

.insight-prose {
  max-width: none;
}

.insight-prose :is(h2, h3) {
  scroll-margin-top: 6rem;
}

.insight-prose p {
  margin-block: 1.1em;
}

.insight-prose p:first-child {
  margin-top: 0;
}

/* Continue reading — full-width grid under article */
.insight-continue {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 39, 68, 0.1);
}

.insight-continue__heading {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f2744;
  margin-bottom: 1.25rem;
}

.insight-continue__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .insight-continue__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.insight-continue__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 39, 68, 0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.insight-continue__card:hover {
  border-color: rgba(10, 114, 105, 0.3);
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.06);
  transform: translateY(-1px);
}

.insight-continue__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: #0f2744;
}

.insight-continue__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #4f5e72;
}

.insight-continue__arrow {
  margin-top: 0.15rem;
  color: #0a7269;
  opacity: 0.7;
}

.insight-back {
  margin-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .insights-card,
  .insights-card__image,
  .insight-continue__card {
    transition: none;
  }

  .insights-card:hover,
  .insights-card:hover .insights-card__image,
  .insight-continue__card:hover {
    transform: none;
  }
}
