/* Insights library and article styles.
   Brand palette and typefaces are supplied by shared.css. */

.insights-section,
.latest-insights,
.more-insights {
  padding: 5rem 2rem 5.5rem;
  background: var(--warm);
}

.insights-inner {
  width: 100%;
  max-width: var(--max-w, 1100px);
  margin: 0 auto;
}

.coherence-brief {
  width: 100%;
  padding: 2.25rem 2rem;
  background: #EAF2F6;
}

.coherence-brief-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 2rem;
  background: #EAF2F6;
  border-left: 4px solid var(--denim);
}

.coherence-brief-box > div:first-child {
  min-width: 0;
}

.coherence-brief .page-eyebrow {
  margin: 0 0 0.55rem;
  color: #176b8a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.coherence-brief h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.coherence-brief-box p:not(.page-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.coherence-brief-subscribe {
  flex: 0 0 auto;
  white-space: nowrap;
}

.coherence-brief-subscribe:focus-visible {
  outline: 3px solid #147c8a;
  outline-offset: 4px;
}

#insights {
  scroll-margin-top: 110px;
}

.insights-heading {
  max-width: 760px;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.insights-intro {
  max-width: 660px;
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.35rem;
}

.insight-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(26, 26, 46, 0.035);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

/* Keep dynamically hidden cards out of layout regardless of the card display rule. */
.insight-card[hidden] {
  display: none !important;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 174, 230, 0.4);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.085);
}

.insight-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--denim-light);
}

.insight-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.45rem 1.5rem 1.5rem;
}

.insight-date {
  display: block;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.insight-card-title {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.insight-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.insight-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: #176b8a;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.insight-read-more::after,
.insights-all-link::after {
  content: none;
  display: inline-block;
  transition: transform 160ms ease;
}

.insight-card:hover .insight-read-more::after,
.insights-all-link:hover::after {
  transform: translateX(3px);
}

.insights-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 2.25rem auto 0;
  padding: 0.7rem 1.35rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.insights-load-more:hover {
  color: #176b8a;
  background: var(--denim-light);
  border-color: rgba(17, 174, 230, 0.5);
  transform: translateY(-1px);
}

.insights-status,
.insights-section .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.latest-insights {
  background: var(--paper);
}

.latest-insights .insights-heading {
  margin-bottom: 1.75rem;
}

.insights-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
  color: #176b8a;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgba(23, 107, 138, 0.35);
  text-underline-offset: 4px;
}

.insights-all-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.insight-post {
  width: 100%;
  min-height: 100vh;
  padding: 8.75rem 2rem 5.5rem;
  background: var(--paper);
}

.insight-post-inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.insight-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.65rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease;
}

.insight-back-link::before {
  content: none;
  transition: transform 160ms ease;
}

.insight-back-link:hover {
  color: #176b8a;
}

.insight-back-link:hover::before {
  transform: translateX(-3px);
}

.insight-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0 0 2.25rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--denim-light);
}

.insight-post-header {
  max-width: 780px;
  margin: 0 auto 2.35rem;
}

.insight-post-header .insight-date {
  margin-bottom: 0.8rem;
}

.insight-post-title {
  margin: 0;
  color: var(--ink);
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.insight-post-body {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.insight-post-body > * + * {
  margin-top: 1.25rem;
}

.insight-post-body h2,
.insight-post-body h3,
.insight-post-body h4 {
  margin-top: 2.5rem;
  color: var(--ink);
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.insight-post-body h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.35rem);
}

.insight-post-body h3 {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
}

.insight-post-body h4 {
  font-size: 1.35rem;
}

.insight-post-body ul,
.insight-post-body ol {
  padding-left: 1.45rem;
}

.insight-post-body li {
  padding-left: 0.2rem;
}

.insight-post-body li + li {
  margin-top: 0.55rem;
}

.insight-post-body li::marker {
  color: #147c8a;
}

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

.insight-post-body em {
  color: #34536a;
}

.insight-post-body blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.35rem;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
}

.insight-post-body a {
  color: #176b8a;
  font-weight: 500;
  text-decoration-color: rgba(23, 107, 138, 0.4);
  text-underline-offset: 3px;
}

.insight-post-body a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.more-insights {
  border-top: 1px solid var(--border);
}

.more-insights .insights-heading {
  margin-bottom: 1.75rem;
}

.insight-card:focus-visible,
.insights-load-more:focus-visible,
.insights-all-link:focus-visible,
.insight-back-link:focus-visible,
.insight-post-body a:focus-visible {
  outline: 3px solid #147c8a;
  outline-offset: 4px;
}

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

@media (max-width: 767px) {
  .coherence-brief {
    padding: 1.5rem 1.25rem;
  }

  .coherence-brief-box {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.4rem 1.25rem;
  }

  .coherence-brief-subscribe {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .insights-section,
  .latest-insights,
  .more-insights {
    padding: 3.5rem 1.25rem 3.75rem;
  }

  .insights-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .insight-card-body {
    padding: 1.25rem 1.3rem 1.35rem;
  }

  .insight-card-title {
    font-size: 1.55rem;
  }

  .insights-load-more {
    width: 100%;
    margin-top: 1.75rem;
  }

  .insight-post {
    padding: 7.5rem 1.25rem 3.75rem;
  }

  .insight-back-link {
    margin-bottom: 1.25rem;
  }

  .insight-cover {
    margin-bottom: 1.75rem;
    border-radius: 10px;
  }

  .insight-post-header {
    margin-bottom: 1.8rem;
  }

  .insight-post-title {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .insight-post-body {
    font-size: 0.96rem;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-card,
  .insight-read-more::after,
  .insights-all-link::after,
  .insights-load-more,
  .insight-back-link,
  .insight-back-link::before {
    transition: none;
  }

  .insight-card:hover,
  .insights-load-more:hover {
    transform: none;
  }

  .insight-card:hover .insight-read-more::after,
  .insights-all-link:hover::after,
  .insight-back-link:hover::before {
    transform: none;
  }
}
