/* The email pop-up (subscribe.php, site.js): a photo panel with the live list's badge on the left, the hook, three
   true numbers, one underlined email box and the gold button on the right. Phones: a bottom sheet, photo as a strip. */

.modal-nl .modal-panel { width: min(820px, 100%); }
.modal-nl .modal-head { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 0; background: transparent; border: 0; }
.modal-nl .modal-head .logo { display: none; }
.modal-nl .modal-x { background: color-mix(in srgb, var(--surface) 85%, transparent); border-color: var(--border); color: var(--text-2); }
.modal-nl .modal-body { padding: 0; }

.nlp { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 480px; }
.nlp .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* the photo panel */
.nlp-art { position: relative; overflow: hidden; background: #000; }
.nlp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nlp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .92) 100%); }
.nlp-art-t { position: absolute; left: 24px; right: 24px; bottom: 26px; display: grid; gap: 12px; color: #F4F5EC; }
.nlp-art-t b { font: 800 21px/1.25 var(--head); letter-spacing: -.01em; }
.nlp-live { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 6px 12px; border: 1px solid #5C5418; border-radius: 999px;
  background: rgba(0, 0, 0, .6); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #E7BE31; }
.nlp-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #8FD07A; }
.nlp-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #8FD07A; opacity: 0; animation: nlp-pulse 1.8s ease-out infinite; }
@keyframes nlp-pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* the form side */
.nlp-main { display: flex; flex-direction: column; justify-content: center; padding: 44px 40px 30px; }
.nlp-kicker { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.nlp-h { margin: 0 0 10px; font: 800 27px/1.16 var(--head); letter-spacing: -.015em; color: var(--text); }
.nlp-h em { display: inline; font-style: normal; background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nlp-sub { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

.nlp-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.nlp-facts li { display: grid; gap: 2px; padding: 11px 14px; min-width: 0; }
.nlp-facts li + li { border-left: 1px solid var(--border); }
.nlp-facts b { font: 800 17px/1.2 var(--head); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlp-facts span { font-size: 11.5px; color: var(--text-3); }

/* one underlined field: accent line on focus, red with a message on an error */
.nlp-field { display: grid; gap: 2px; }
.nlp-field span { font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.nlp-field input { width: 100%; min-height: 44px; padding: 8px 0 9px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--text); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.nlp-field input::placeholder { color: var(--text-3); opacity: .7; }
.nlp-field input:focus { border-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.nlp-form.has-error .nlp-field input { border-color: var(--err); box-shadow: 0 1px 0 0 var(--err); }
.nlp-err { margin: 7px 0 0; font-size: 12.5px; color: var(--err); }
.nlp-btn { margin-top: 18px; gap: 8px; }
.nlp-form.is-busy .nlp-btn { opacity: .7; cursor: progress; }
.nlp-fine { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.nlp-fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.nlp-skip { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nlp-skip:hover { color: var(--text); }

/* the thank-you */
.nlp-done { text-align: center; }
.nlp-done[hidden], .nlp-form-wrap[hidden] { display: none; }
.nlp-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.nlp-done .btn { margin-top: 4px; }

@media (max-width: 640px) {
  .nlp { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .nlp-art { height: 128px; }
  .nlp-shade { background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .2) 100%); }
  .nlp-art-t { left: 18px; right: 70px; bottom: 18px; gap: 8px; }
  .nlp-art-t b { font-size: 15px; }
  .nlp-main { padding: 22px 18px 22px; }
  .nlp-h { font-size: 22px; }
  .nlp-sub { margin-bottom: 16px; font-size: 14px; }
  .nlp-facts li { padding: 9px 10px; }
  .nlp-facts b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .nlp-live i::after { animation: none; } }
