.editorial-inline-cta,
.editorial-depth-cta,
.editorial-popup {
  font-family: Geist, Arial, sans-serif;
}

.editorial-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 38px;
  padding: 22px 24px;
  border: 1px solid rgba(12, 111, 127, .24);
  border-left: 4px solid #0c6f7f;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(127, 232, 242, .17), rgba(255, 255, 255, .92));
  color: #0b2530;
  box-shadow: 0 14px 36px rgba(2, 26, 36, .08);
}

.editorial-inline-cta__copy,
.editorial-depth-cta__copy {
  min-width: 0;
}

.editorial-depth-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 42px 0;
  padding: 22px 24px;
  border: 1px solid rgba(12, 111, 127, .22);
  border-top: 3px solid #7fe8f2;
  border-radius: 12px;
  background: rgba(244, 241, 234, .72);
  color: #0b2530;
}

.editorial-depth-cta--50 {
  border-top-color: #0c6f7f;
}

.editorial-depth-cta--75 {
  border-top-color: #021a24;
}

.editorial-engagement__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #0c6f7f;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.editorial-inline-cta .editorial-inline-cta__title,
.editorial-depth-cta .editorial-depth-cta__title {
  margin: 0;
  color: #0b2530;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.editorial-inline-cta .editorial-inline-cta__body,
.editorial-depth-cta .editorial-depth-cta__body {
  margin: 7px 0 0;
  color: #3a525c;
  font-size: 14px;
  line-height: 1.55;
}

.editorial-engagement__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #021a24;
  border-radius: 999px;
  background: #021a24;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.editorial-inline-cta .editorial-engagement__button,
.editorial-depth-cta .editorial-engagement__button,
.editorial-popup .editorial-engagement__button {
  color: #fff;
}

.editorial-inline-cta .editorial-engagement__button:hover,
.editorial-depth-cta .editorial-engagement__button:hover,
.editorial-popup .editorial-engagement__button:hover {
  background: #0c6f7f;
  border-color: #0c6f7f;
  color: #fff;
  transform: translateY(-1px);
}

.editorial-engagement__button:focus-visible,
.editorial-popup button:focus-visible {
  outline: 3px solid #20d6e8;
  outline-offset: 3px;
}

.editorial-popup {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(127, 232, 242, .42);
  border-radius: 18px;
  background: #f4f1ea;
  color: #0b2530;
  box-shadow: 0 30px 90px rgba(2, 26, 36, .42);
}

.editorial-popup:not([open]) {
  display: none;
}

.editorial-popup::backdrop {
  background: rgba(2, 26, 36, .62);
  backdrop-filter: blur(3px);
}

.editorial-popup__panel {
  position: relative;
  padding: 38px;
}

.editorial-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3a525c;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.editorial-popup__close:hover {
  background: rgba(12, 111, 127, .1);
  color: #021a24;
}

.editorial-popup__title {
  margin: 8px 44px 14px 0;
  color: #0b2530;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.editorial-popup__title:focus {
  outline: none;
}

.editorial-popup__body {
  margin: 0;
  color: #3a525c;
  font-size: 16px;
  line-height: 1.65;
}

.editorial-popup__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.editorial-popup__dismiss {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #3a525c;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .editorial-inline-cta,
  .editorial-depth-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .editorial-inline-cta .editorial-engagement__button,
  .editorial-depth-cta .editorial-engagement__button {
    width: 100%;
  }

  .editorial-depth-cta {
    margin: 34px 0;
  }

  .editorial-popup__panel {
    padding: 34px 22px 24px;
  }

  .editorial-popup__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-engagement__button {
    transition: none;
  }
}

@media print {
  .editorial-popup {
    display: none !important;
  }
}
