/* ==========================================================================
   The Collective: newsletter lightbox (homepage). Brand tokens come from .nl (newsletter.css).
   Native <dialog>; the form inside is the shared MailerLite form, restyled to sit in the card.
   ========================================================================== */
html.tcl-open { overflow: hidden; }
.tcl { padding: 0; margin: auto; border: 0; background: transparent; color: inherit; width: min(1000px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 24px); overflow: visible; }
.tcl::backdrop { background: rgba(27, 55, 51, 0.66); }
@supports (backdrop-filter: blur(3px)) { .tcl::backdrop { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); } }

.tcl-card { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: var(--nl-cream); border: 3px solid var(--nl-gold-light); border-radius: 28px; box-shadow: 0 30px 70px rgba(10, 26, 24, 0.5); }

/* artwork: the supplied Artist Cally studio scene, whole, never altered */
.tcl-art { position: relative; min-height: 100%; background: var(--nl-teal); overflow: hidden; }
/* artwork: the supplied Artist Cally "Join the herd" picture, never altered. Wide view: fills the left column; the lettering stays in view. */
.tcl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 88% 18%; display: block; }
.tcl-copy { padding: 44px 40px 30px 36px; min-width: 0; }
.tcl-kicker { margin: 0 0 10px; font-family: var(--nl-font); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nl-teal); }
.tcl h2 { margin: 0 0 14px; font-family: var(--nl-font); font-weight: 800; font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); line-height: 1.06; letter-spacing: 0.01em; text-transform: uppercase; color: var(--nl-teal-night); overflow-wrap: anywhere; }
.tcl h2:focus { outline: none; }
.tcl-lead { margin: 0 0 20px; font-size: 1.0625rem; line-height: 1.55; color: var(--nl-ink); }
/* plain reassurance line under the form (no box) */
.tcl-note { margin: 16px 0 0; font-size: 0.9375rem; line-height: 1.5; color: #3B5754; }
.tcl-close:focus-visible { outline: 4px solid var(--nl-teal-night); outline-offset: 3px; box-shadow: 0 0 0 7px #fff; }

/* the shared MailerLite form, flattened to sit in the card: stacked field and button */
.tcl .nl-embed { max-width: none; }
.tcl .nl-embed .ml-form-embedWrapper { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.tcl .nl-embed form { grid-template-columns: minmax(0, 1fr); }
.tcl .nl-embed .ml-form-formContent, .tcl .nl-embed .ml-form-embedSubmit { grid-column: 1; }
.tcl .nl-embed .ml-form-embedSubmit button { text-transform: uppercase; letter-spacing: 0.06em; }
.tcl .nl-embed.is-success .ml-form-successBody { padding: 4px 0 0; }
.tcl .nl-embed .ml-form-successContent h3 { margin: 0 0 10px -10px; padding: 6px 10px; border-radius: 12px; }

/* close: always visible, labelled, large target */
.tcl-close { position: absolute; z-index: 3; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 14px; cursor: pointer;
  font-family: var(--nl-font); font-size: 0.9375rem; font-weight: 800; color: var(--nl-teal-night); background: #fff; border: 3px solid var(--nl-teal); border-radius: 999px; box-shadow: 0 3px 0 rgba(27, 55, 51, 0.22); transition: background-color 150ms ease, transform 150ms ease; }
.tcl-close:hover { background: var(--nl-aqua); }
.tcl-close:active { transform: translateY(2px); box-shadow: none; }
.tcl-close-x { position: relative; width: 16px; height: 16px; flex: none; }
.tcl-close-x::before, .tcl-close-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; margin: -1.5px 0 0 -9px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.tcl-close-x::after { transform: rotate(-45deg); }

/* entrance: a short, soft pop; the artwork slides and settles a beat later */
@keyframes tcl-back { from { opacity: 0; } to { opacity: 1; } }
@keyframes tcl-pop { 0% { opacity: 0; transform: translateY(22px) scale(0.95); } 60% { opacity: 1; transform: translateY(-4px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes tcl-art { 0% { opacity: 0; transform: translateX(-18px) scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes tcl-line { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tcl.tcl-in::backdrop { animation: tcl-back 260ms ease-out both; }
.tcl.tcl-in .tcl-card { animation: tcl-pop 520ms cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.tcl.tcl-in .tcl-img { animation: tcl-art 700ms 160ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.tcl.tcl-in .tcl-copy > * { animation: tcl-line 480ms ease-out both; }
.tcl.tcl-in .tcl-copy > :nth-child(1) { animation-delay: 140ms; }
.tcl.tcl-in .tcl-copy > :nth-child(2) { animation-delay: 210ms; }
.tcl.tcl-in .tcl-copy > :nth-child(3) { animation-delay: 280ms; }
.tcl.tcl-in .tcl-copy > :nth-child(4) { animation-delay: 350ms; }
.tcl.tcl-in .tcl-copy > :nth-child(5) { animation-delay: 420ms; }
.tcl.tcl-out .tcl-card { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 160ms ease, transform 160ms ease; }
.tcl.tcl-out::backdrop { opacity: 0; transition: opacity 160ms ease; }

/* stacked layout (phones and tablets, portrait): the picture is a banner from the top of the artwork, so Cally's face and the
   lettering show; Close sits top left, over the picture's plants, clear of the lettering */
@media (max-width: 980px) {
  .tcl { width: min(580px, calc(100vw - 24px)); }
  .tcl-card { grid-template-columns: 1fr; border-radius: 24px; }
  .tcl-art { min-height: 0; height: clamp(210px, 62vw, 380px); }
  .tcl-img { object-position: 50% 4%; }
  .tcl-copy { padding: 22px 22px 22px; }
  .tcl-close { top: 10px; right: auto; left: 10px; }
}
@media (max-width: 980px) and (max-height: 560px) { .tcl-art { height: 104px; } .tcl-copy { padding: 14px 20px 18px; } .tcl h2 { font-size: 1.5rem; margin-bottom: 8px; } .tcl-lead { margin-bottom: 12px; } }
@media (max-height: 520px) and (min-width: 981px) { .tcl-card { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); } .tcl-copy { padding-top: 56px; } }
@media (prefers-reduced-motion: reduce) {
  .tcl.tcl-in::backdrop, .tcl.tcl-in .tcl-card, .tcl.tcl-in .tcl-img, .tcl.tcl-in .tcl-copy > *, .tcl.tcl-out .tcl-card, .tcl.tcl-out::backdrop { animation: none !important; transition: none !important; }
  .tcl-close, .tcl .nl-embed .ml-form-embedSubmit button { transition: none; }
}
@media (forced-colors: active) { .tcl-card { border: 3px solid CanvasText; } .tcl-close { border: 3px solid ButtonText; } }
