/* ==========================================================================
   Insights CMS styles
   Hand-maintained. Kept in its own file so a Webflow re-export never
   overwrites it. Loaded by insights.html, detail_insights.html and every
   generated page under /insights/.
   ========================================================================== */

:root {
  --cms-terracotta: #e07a5f;
  --cms-ink: #1a1a2e;
  --cms-body: #4a4a57;
  --cms-muted: #7a7a86;
  --cms-cream: #f0ede6;
  --cms-line: #02080718;
}

/* --------------------------------------------------------------------------
   Listing — filters
   -------------------------------------------------------------------------- */

.cms-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

.cms-filter {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cms-ink);
  background: #fff;
  border: 1px solid var(--cms-line);
  border-radius: 999px;
  padding: .5rem 1rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cms-filter:hover {
  border-color: var(--cms-terracotta);
  color: var(--cms-terracotta);
}

.cms-filter[aria-pressed="true"] {
  background: var(--cms-ink);
  border-color: var(--cms-ink);
  color: #fff;
}

.cms-filter-count {
  opacity: .55;
  margin-left: .35rem;
  font-weight: 500;
}

.cms-result-count {
  width: 100%;
  text-align: center;
  margin: 1rem 0 0;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cms-muted);
}

/* --------------------------------------------------------------------------
   Listing — featured spotlight
   -------------------------------------------------------------------------- */

.cms-featured {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

.cms-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--cms-line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}

.cms-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px #02080714;
}

.cms-featured-media {
  position: relative;
  min-height: 22rem;
}

.cms-featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
  padding: 3rem;
}

.cms-featured-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cms-terracotta);
}

.cms-featured-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--cms-ink);
  margin: 0;
}

.cms-featured-excerpt {
  color: var(--cms-body);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Listing — cards (extends the Webflow .blog34_item card)
   -------------------------------------------------------------------------- */

.blog34_item .link-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #fff;
  border: 1px solid var(--cms-line);
  padding-bottom: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.blog34_item .link-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px #02080714;
}

.blog34_item .link-block .blog34_meta-wrapper,
.blog34_item .link-block .heading-style-h5,
.blog34_item .link-block .text-size-regular {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.blog34_item .link-block .button-is-link {
  align-self: flex-start;
  margin: auto 1.5rem 0;
  padding: .55rem 1.1rem;
}

.blog34_item .blog34_image {
  width: 100%;
  height: 200px;
  max-height: 200px;
  margin: 0 0 .25rem;
}

/* Clamp the excerpt to three lines. flex-grow must be reset — the Webflow rule
   stretches this element, which lets the clamped lines paint past the cut. */
.blog34_item .text-size-regular {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
  max-height: none;
}

.cms-card-date {
  color: var(--cms-muted);
  font-size: .8rem;
  letter-spacing: .02em;
}

.cms-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--cms-muted);
}

/* --------------------------------------------------------------------------
   Article hero
   -------------------------------------------------------------------------- */

.cms-hero-image {
  position: relative;
  overflow: hidden;
  background-color: #0d1117;
}

/* The article's own artwork, full bleed. Anchored right so the photographic
   half stays in view — these images carry the headline in their left third,
   which sits behind the text card. */
.cms-hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: 82% 86%;
  background-size: auto 195%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Scrim: heavy on the left where the copy sits, light on the right so the
   image reads clearly. */
.cms-hero-image:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #020807e6 0%, #020807bf 42%, #02080773 70%, #02080759 100%),
    linear-gradient(180deg, #02080773 0%, #02080733 40%, #020807a6 100%);
}

.cms-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  color: #ffffffcc;
  font-size: .85rem;
  letter-spacing: .04em;
}

.cms-eyebrow .tag {
  color: #fff;
}

.cms-eyebrow-dot {
  opacity: .5;
}

.cms-back-link {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin-right: auto;
  margin-bottom: 1.25rem;
  color: #ffffffb3;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.cms-back-link:hover {
  color: var(--cms-terracotta);
}

/* --------------------------------------------------------------------------
   Article body
   -------------------------------------------------------------------------- */

.cms-article {
  background: #fff;
}

.cms-article-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.cms-figure {
  max-width: 60rem;
  margin: 0 auto 3rem;
  padding: 3.5rem 1.5rem 0;
  position: relative;
  z-index: 5;
}

.cms-figure img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 24px 60px #0208071f;
}

.cms-body {
  color: var(--cms-body);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.cms-body > *:first-child {
  margin-top: 0;
}

.cms-body h2 {
  font-family: Fraunces, Georgia, serif;
  color: var(--cms-ink);
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 3rem 0 1rem;
}

.cms-body h3 {
  font-family: Fraunces, Georgia, serif;
  color: var(--cms-ink);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.25rem 0 .75rem;
}

.cms-body p {
  margin: 0 0 1.35rem;
}

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

.cms-body em {
  color: var(--cms-muted);
}

.cms-body ul,
.cms-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.cms-body li {
  margin-bottom: .6rem;
}

.cms-body a {
  color: var(--cms-terracotta);
  text-decoration: underline;
}

.cms-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.cms-body blockquote {
  border-left: 3px solid var(--cms-terracotta);
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.5rem;
  color: var(--cms-ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Key takeaways
   -------------------------------------------------------------------------- */

.cms-takeaways {
  background: var(--cms-cream);
  border-top: 3px solid var(--cms-terracotta);
  margin: 3rem 0;
  padding: 2rem 2rem 1.5rem;
}

.cms-takeaways h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: .02em;
  color: var(--cms-ink);
  margin: 0 0 1.25rem;
}

.cms-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-takeaways li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--cms-body);
  font-size: .95rem;
  line-height: 1.65;
}

.cms-takeaways li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .5rem;
  height: .5rem;
  background: var(--cms-terracotta);
  border-radius: 50%;
}

.cms-takeaways li strong {
  display: block;
  color: var(--cms-ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Tags, share, author
   -------------------------------------------------------------------------- */

.cms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--cms-line);
}

.cms-tag {
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--cms-body);
  background: var(--cms-cream);
  border-radius: 999px;
  padding: .35rem .85rem;
  text-decoration: none;
}

.cms-tag:hover {
  color: #fff;
  background: var(--cms-terracotta);
}

.cms-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.cms-share-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cms-muted);
}

.cms-share a,
.cms-share button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cms-ink);
  background: #fff;
  border: 1px solid var(--cms-line);
  border-radius: 999px;
  padding: .4rem .9rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.cms-share a:hover,
.cms-share button:hover {
  background: var(--cms-ink);
  color: #fff;
}

.cms-author {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--cms-cream);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.cms-author img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.cms-author-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  color: var(--cms-ink);
  margin: 0 0 .35rem;
}

.cms-author-bio {
  margin: 0;
  color: var(--cms-body);
  font-size: .9rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Prev / next
   -------------------------------------------------------------------------- */

.cms-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--cms-line);
  padding-top: 2rem;
}

.cms-pager a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--cms-line);
  padding: 1.25rem;
  transition: border-color .2s ease;
}

.cms-pager a:hover {
  border-color: var(--cms-terracotta);
}

.cms-pager-next {
  text-align: right;
}

.cms-pager-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cms-terracotta);
  margin-bottom: .4rem;
}

.cms-pager-title {
  font-size: .95rem;
  line-height: 1.45;
  color: var(--cms-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Related / latest strips
   -------------------------------------------------------------------------- */

.cms-related {
  background: var(--cms-cream);
  padding: 4.5rem 1.5rem;
}

.cms-related-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.cms-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cms-section-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--cms-ink);
  margin: 0;
}

.cms-section-link {
  color: var(--cms-terracotta);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.cms-section-link:hover {
  text-decoration: underline;
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cms-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cms-line);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}

.cms-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px #02080714;
}

.cms-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cms-card-body {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.5rem;
  flex-grow: 1;
}

.cms-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.cms-card-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--cms-ink);
  margin: 0;
}

.cms-card-excerpt {
  color: var(--cms-body);
  font-size: .875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-card-more {
  margin-top: auto;
  padding-top: .5rem;
  color: var(--cms-terracotta);
  font-size: .8rem;
  font-weight: 600;
}

/* Latest strip on the homepage sits on white */
.cms-latest {
  background: #fff;
  padding: 5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .cms-featured-card { grid-template-columns: 1fr; }
  .cms-featured-media { min-height: 16rem; }
  .cms-featured-body { padding: 2rem; }
  .cms-featured-title { font-size: 1.6rem; }
  .cms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
  /* Less zoom on narrow screens — at desktop crop levels the artwork reads as
     blown-up lettering rather than as an image. */
  .cms-hero-backdrop {
    background-size: cover;
    background-position: 72% 100%;
  }
  .cms-grid { grid-template-columns: 1fr; }
  .cms-pager { grid-template-columns: 1fr; }
  .cms-pager-next { text-align: left; }
  .cms-figure { padding-top: 2rem; }
  .cms-article-inner { padding-bottom: 3rem; }
  .cms-takeaways { padding: 1.5rem 1.25rem 1rem; }
  .cms-author { flex-direction: column; }
  .cms-body { font-size: 1rem; }
  .cms-body h2 { font-size: 1.45rem; }
}

/* --------------------------------------------------------------------------
   Forms
   The .w-form class was removed from the form wrappers so Webflow's JS stops
   hijacking submissions (it binds to ".w-form form"). That class only ever
   supplied this margin.
   -------------------------------------------------------------------------- */

.jk-form {
  margin: 0 0 15px;
}
