/* Edge-rendered Insights pages — stable class names for the Cloudflare Worker. */

:root {
  --ie-navy: #102d50;
  --ie-ink: #526277;
  --ie-sky: #45b8e8;
  --ie-link: #2379aa;
  --ie-soft: #f5f9fc;
  --ie-line: #dce6ee;
  --ie-max: 94%;
  --ie-gutter: clamp(1rem, 3vw, 2rem);
}

.sectem-insights-edge {
  margin: 0;
  color: var(--ie-ink);
  font-family: "DM Sans", "Poppins", sans-serif;
  background: #fff;
}

.sectem-insights-edge a {
  color: inherit;
  text-decoration: none;
}

.sectem-insights-edge .container {
  width: var(--ie-max);
  max-width: 94%;
  margin: 0 auto;
  padding-left: var(--ie-gutter);
  padding-right: var(--ie-gutter);
}

.ie-top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(220, 230, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.ie-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.ie-logo img,
.ie-footer-logo img {
  display: block;
  width: auto;
  height: 1.85rem;
}

.ie-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem 1.15rem;
  color: var(--ie-navy);
  font-size: 0.92rem;
  font-weight: 650;
}

/* Scope the header link so the full-width CTA section does not become a pill. */
.ie-top .ie-cta,
.ie-cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ie-navy);
  color: #fff !important;
  font-weight: 750;
}

.ie-hero,
.ie-article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 88% 12%, rgba(69, 184, 232, 0.18), transparent 28%),
    linear-gradient(135deg, #07172d, #102d50);
  color: #fff;
}

.ie-article-hero.has-image::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--ie-hero-image);
  background-position: center;
  background-size: cover;
}

.ie-article-hero.has-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 24, 45, 0.88) 0%, rgba(7, 32, 59, 0.72) 54%, rgba(8, 45, 80, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 21, 39, 0.1), rgba(5, 21, 39, 0.38));
}

.ie-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.ie-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
}

.ie-crumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.ie-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--ie-sky);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ie-hero h1,
.ie-article-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-family: "Poppins", "DM Sans", sans-serif;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ie-lead,
.ie-deck {
  width: 70%;
  max-width: 70%;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.7;
}

.ie-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}

.ie-article-meta a {
  color: #72e0c1;
  font-weight: 800;
}

.ie-section,
.ie-soft {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.ie-soft {
  background: var(--ie-soft);
}

.ie-header {
  margin-bottom: 2rem;
}

.ie-header h2,
.ie-section h2,
.ie-soft h2,
.ie-cta h2 {
  margin: 0;
  color: var(--ie-navy);
  font-family: "Poppins", "DM Sans", sans-serif;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  letter-spacing: -0.04em;
}

.ie-topics,
.ie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ie-topics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ie-topic,
.ie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ie-line);
  border-radius: 1.15rem;
  background: #fff;
  color: var(--ie-navy);
  box-shadow: 0 16px 38px rgba(16, 45, 80, 0.06);
}

.ie-topic-media,
.ie-card-media,
.ie-featured-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf2f8;
}

.ie-topic-media img,
.ie-card-media img,
.ie-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ie-topic-body,
.ie-card-body,
.ie-featured-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.35rem;
}

.ie-topic-body p,
.ie-card-body p,
.ie-featured-body p,
.ie-empty p {
  margin: 0;
  color: var(--ie-ink);
  line-height: 1.65;
}

.ie-topic-body h3,
.ie-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.ie-more {
  margin-top: auto;
  color: var(--ie-link);
  font-weight: 800;
}

.ie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: #6b7b8e;
  font-size: 0.82rem;
}

.ie-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--ie-line);
  border-radius: 1.25rem;
  background: #fff;
}

.ie-featured-media {
  min-height: 18rem;
  aspect-ratio: auto;
}

.ie-featured-body {
  justify-content: center;
  padding: 1.5rem;
}

.ie-featured-body a {
  color: var(--ie-link);
  font-weight: 800;
}

.ie-pills {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.ie-pill {
  flex: 0 0 auto;
  border: 1px solid var(--ie-line);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: #fff;
  color: var(--ie-navy);
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.ie-pill.is-active,
.ie-pill:hover {
  border-color: var(--ie-sky);
  background: var(--ie-navy);
  color: #fff;
}

.ie-count {
  margin-left: 0.4rem;
  opacity: 0.65;
}

.ie-article-main {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.ie-article-body {
  /* Fill the shared site container so article pages use the full page canvas. */
  width: 100%;
  max-width: 100%;
  color: var(--ie-ink);
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem);
  line-height: 1.8;
}

.ie-article-body h2,
.ie-article-body h3,
.ie-article-body h4 {
  margin: 2.1rem 0 0.85rem;
  color: var(--ie-navy);
  font-family: "Poppins", "DM Sans", sans-serif;
  line-height: 1.25;
}

.ie-article-body p,
.ie-article-body ul,
.ie-article-body ol,
.ie-article-body blockquote {
  margin: 0 0 1.25rem;
}

.ie-article-body ul,
.ie-article-body ol {
  padding-left: 1.4em;
}

.ie-article-body li {
  margin: 0 0 0.65rem;
}

.ie-article-body li > p:only-child {
  display: inline;
  margin: 0;
}

.ie-article-body a {
  color: var(--ie-link);
  font-weight: 650;
  text-decoration: underline;
}

.ie-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  /* Center intrinsic-width WordPress images within the full article canvas. */
  margin: 1.4em auto;
  border-radius: 0.8rem;
}

.ie-article-body blockquote {
  border-left: 4px solid var(--ie-sky);
  padding: 1rem 1.25rem;
  background: var(--ie-soft);
  color: var(--ie-navy);
}

.ie-article-footer {
  width: 100%;
  max-width: 100%;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--ie-line);
  padding-top: 1.25rem;
}

.ie-article-footer a,
.ie-topic-row a {
  color: var(--ie-link);
  font-weight: 800;
}

.ie-topic-row {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0 0;
  color: #6b7b8e;
}

.ie-empty {
  padding: 2rem 0;
}

.ie-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background: linear-gradient(135deg, #d7e6f1, #eef5fa);
}

.ie-cta {
  display: block;
  width: 100%;
  min-height: 0;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-radius: 0;
  background: linear-gradient(135deg, #07172d, #102d50);
  color: #fff;
  text-align: left;
}

.ie-cta h2 {
  color: #fff;
}

.ie-cta p {
  width: min(70%, 40rem);
  margin: 0.9rem 0 1.4rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.ie-footer {
  background: #07172d;
  color: rgba(255, 255, 255, 0.72);
}

.ie-footer-inner {
  padding: 2.5rem 0;
}

.ie-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.ie-footer-links a {
  color: #fff;
  font-weight: 650;
}

.ie-copy {
  margin-top: 1.25rem;
  font-size: 0.84rem;
  opacity: 0.7;
}

@media (max-width: 1000px) {
  .ie-topics,
  .ie-grid,
  .ie-featured {
    grid-template-columns: 1fr 1fr;
  }

  .ie-lead,
  .ie-deck,
  .ie-article-body,
  .ie-article-footer,
  .ie-topic-row,
  .ie-cta p {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .ie-nav a:not(.ie-cta) {
    display: none;
  }

  .ie-topics,
  .ie-grid,
  .ie-featured {
    grid-template-columns: 1fr;
  }
}
