/* NotyLab CTA — one canonical stylesheet for all page/editor instances.
   Set --nl-brand-primary on the website root to connect this to UnicaSuite tokens. */
.nl-cta {
  --nl-cta-accent: var(--nl-brand-primary, var(--color-primary, #0f766e));
  --nl-cta-accent-hover: var(--nl-brand-primary-hover, var(--color-primary-dark, #115e59));
  --nl-cta-ink: var(--color-text-primary, #143b37);
  --nl-cta-muted: var(--color-text-secondary, #526c68);
  --nl-cta-bg: var(--color-surface, #f0fdfa);
  --nl-cta-border: var(--color-border, #b2e8df);
  box-sizing: border-box;
  margin-block: clamp(24px, 4vw, 36px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--nl-cta-bg);
  border: 1px solid var(--nl-cta-border);
  border-radius: 16px;
  color: var(--nl-cta-ink);
  line-height: 1.6;
}
.nl-cta *, .nl-cta *::before, .nl-cta *::after { box-sizing: border-box; }
.nl-cta .nl-cta__eyebrow {
  margin: 0 0 8px; font-size: 12px; line-height: 1.45; font-weight: 750;
  letter-spacing: .07em; text-transform: uppercase; color: var(--nl-cta-accent);
}
.nl-cta .nl-cta__heading {
  margin: 0 0 12px; padding: 0; font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.32; font-weight: 750; color: inherit;
}
.nl-cta .nl-cta__body { margin: 0; font-size: 15px; line-height: 1.75; color: inherit; max-width: 70ch; }
.nl-cta .nl-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.nl-cta a.nl-cta__button, .nl-cta .nl-cta__button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 46px; padding: 11px 20px; border: 1px solid transparent;
  border-radius: 9px; background: var(--nl-cta-accent); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.nl-cta a.nl-cta__button:hover { background: var(--nl-cta-accent-hover); color: #fff; transform: translateY(-1px); }
.nl-cta a.nl-cta__button:focus-visible, .nl-cta a.nl-cta__secondary:focus-visible { outline: 3px solid var(--nl-cta-accent); outline-offset: 3px; }
.nl-cta .nl-cta__secondary { color: var(--nl-cta-accent); font-weight: 650; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.nl-cta .nl-cta__footnote { margin: 12px 0 0; color: var(--nl-cta-muted); font-size: 12px; line-height: 1.6; }
.nl-cta--outline { --nl-cta-bg: transparent; --nl-cta-border: #cbd5d1; }
.nl-cta--solid { --nl-cta-bg: #134e4a; --nl-cta-border: #134e4a; --nl-cta-ink: #fff; --nl-cta-muted: #d4ece8; }
.nl-cta--solid .nl-cta__eyebrow { color: #a7f3d0; }
.nl-cta.nl-cta--solid .nl-cta__button { background: #fff; color: #134e4a; }
.nl-cta.nl-cta--solid a.nl-cta__button:hover { background: #d1fae5; color: #134e4a; }
.nl-cta--solid .nl-cta__secondary { color: #d1fae5; }
@media (max-width: 560px) {
  .nl-cta { padding: 20px 16px; }
  .nl-cta .nl-cta__actions { align-items: stretch; flex-direction: column; }
  .nl-cta .nl-cta__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-cta a.nl-cta__button { transition: none; }
  .nl-cta a.nl-cta__button:hover { transform: none; }
}

/* Follow theme tokens in both the page and editor iframe. */
@supports (background: color-mix(in srgb, teal 8%, white)) {
  .nl-cta:not(.nl-cta--solid):not(.nl-cta--outline) {
    --nl-cta-bg: color-mix(in srgb, var(--nl-cta-accent) 8%, var(--color-surface, #fff));
    --nl-cta-border: color-mix(in srgb, var(--nl-cta-accent) 28%, var(--color-surface, #fff));
  }
}
.nl-cta--outline { --nl-cta-border: var(--color-border, #cbd5d1); }
.nl-cta .nl-cta__button, .nl-cta .nl-cta__secondary { overflow-wrap: anywhere; max-width: 100%; }
.nl-cta .nl-cta__button { text-align: center; }
[dir="rtl"] .nl-cta .nl-cta__arrow { transform: scaleX(-1); }
[data-theme="dark"] .nl-cta:not(.nl-cta--solid) {
  --nl-cta-ink: var(--color-text-primary, #edf7f5);
  --nl-cta-muted: var(--color-text-secondary, #b7ceca);
  --nl-cta-bg: var(--color-surface, #16332f);
  --nl-cta-border: var(--color-border, #42645e);
}
