body[data-page="home"] .page-shell {
  position: relative;
}

.nonmodal-popup-stage {
  position: absolute;
  z-index: 20;
  top: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 720px));
  width: calc(100% - 48px);
  align-items: start;
  gap: 16px;
  pointer-events: none;
}

.nonmodal-popup[hidden] {
  display: none;
}

.nonmodal-popup {
  display: flex;
  width: min(100%, 720px);
  max-height: min(720px, calc(100vh - 120px));
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  pointer-events: auto;
}

.nonmodal-popup-content {
  min-height: 0;
  overflow: auto;
}

.nonmodal-popup-content > img,
.nonmodal-popup-image-link,
.nonmodal-popup-image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.nonmodal-popup-copy {
  margin: 20px;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.nonmodal-popup-copy > :first-child {
  margin-top: 0;
}

.nonmodal-popup-copy > :last-child {
  margin-bottom: 0;
}

.nonmodal-popup-copy h2 {
  font-size: var(--fs-lg);
}

.nonmodal-popup-copy h3 {
  font-size: var(--fs-md);
}

.nonmodal-popup-copy a {
  overflow-wrap: anywhere;
}

.nonmodal-popup-copy em {
  font-style: italic;
}

.nonmodal-popup-copy del {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.nonmodal-popup-cta {
  margin: 0 20px 20px;
}

.nonmodal-popup-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.nonmodal-popup-actions button {
  min-height: 34px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.nonmodal-popup-actions button:hover,
.nonmodal-popup-actions button:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .nonmodal-popup-stage {
    top: 8px;
    left: 8px;
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 16px);
    gap: 8px;
  }

  .nonmodal-popup {
    width: 100%;
    max-height: calc(100vh - 88px);
    border-inline: 0;
  }
}
