/* Photo background: New York (from the original site's Additional CSS) */
body.northline-site .editorial-cta {
  --cta-photo: url("../media/brooklyn-sunset.jpg");
  background:
    linear-gradient(100deg, rgba(8, 19, 29, .86), rgba(8, 19, 29, .48)),
    var(--cta-photo) !important;
  background-size: cover !important;
  background-position: center 55% !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
  background-color: #142638 !important;
  min-height: 360px;
  padding: 56px 48px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

/* Contacts: coastline */
body.northline-site [data-nt-style="contacts"] .editorial-cta {
  --cta-photo: url("../media/pacific-coast.jpg");
}

/* White text */
body.northline-site .editorial-cta,
body.northline-site .editorial-cta :is(h2, em, p, .eyebrow) {
  color: #fff;
}
body.northline-site .editorial-cta h2 { text-wrap: balance; }
body.northline-site .editorial-cta .cta-micro { font-size: 14px !important; line-height: 1.6; }

/* High-contrast button */
body.northline-site .editorial-cta .button {
  background: #fff !important;
  background-image: none !important;
  color: #175edb !important;
  border-color: #fff !important;
}
body.northline-site .editorial-cta .button:hover { background: #edf3ff !important; }
body.northline-site .editorial-cta .button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

/* Phone */
@media (max-width: 600px) {
  body.northline-site .editorial-cta {
    min-height: 420px;
    padding: 32px 24px;
    gap: 28px;
    background-position: center !important;
  }
  body.northline-site .editorial-cta .eyebrow { font-size: 12px; }
  body.northline-site .editorial-cta > div > p:not(.eyebrow):not(.cta-micro) { font-size: 16px; line-height: 1.65; }
}

/* ---------- Embedded consultation form popup ---------- */
dialog.nl-form-dialog {
  width: min(900px, calc(100% - 32px));
  max-width: 900px;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fbfcfe;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(8, 19, 29, .35);
  overflow: auto;
}
dialog.nl-form-dialog::backdrop {
  background: rgba(20, 38, 56, .55);
  backdrop-filter: blur(3px);
}
.nl-form-dialog .nl-form-body { padding: 40px 44px 28px; }
.nl-form-dialog .nl-form-body > :first-child { margin-top: 0; }
.nl-form-dialog .nl-form-body iframe { display: block; width: 100%; min-height: 640px; border: 0; }
.nl-form-dialog .nl-form-close {
  position: sticky;
  float: right;
  top: 22px;
  margin: 22px 22px -66px 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.nl-form-dialog .nl-form-close:hover { background: #dbe6f1; }
@media (max-width: 600px) {
  dialog.nl-form-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .nl-form-dialog .nl-form-body { padding: 28px 20px 24px; }
}
