.article-subscribe-action,
.article-subscription-confirmation { display: none; }
.article-subscribe-action[hidden],
.article-subscription-confirmation[hidden],
.article-newsletter[hidden] { display: none; }

.article-newsletter { border-top: 1px solid var(--ink); margin-top: 30px; padding-top: 20px; }
.article-newsletter h2,
.newsletter-sheet-heading h2 { margin: 2px 0 0; font-size: 29px; line-height: 1.12; letter-spacing: -.03em; }
.newsletter-promotion-form { margin-top: 24px; }
.newsletter-promotion-form .subscribe-row { display: grid; gap: 10px; }
.newsletter-promotion-form input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  border: 1px solid #8c9b92;
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 10px 13px;
  font-size: 16px;
  caret-color: var(--blue);
}
.newsletter-promotion-form input::placeholder { color: var(--muted); }
.newsletter-promotion-form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 49px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.newsletter-promotion-form button[type="submit"]:hover { background: #b8ef3d; }
.newsletter-promotion-form button[type="submit"]:disabled { opacity: .65; cursor: wait; }
.newsletter-promotion-form .newsletter-consent { color: var(--ink-soft); font-size: 13px !important; line-height: 1.6 !important; }
.newsletter-promotion-form .newsletter-consent input { width: 18px; height: 18px; accent-color: var(--ink); }
.newsletter-promotion-form .newsletter-consent a { display: inline; border: 0; padding: 0; font: inherit; text-decoration: underline; }
.newsletter-promotion-form [role="status"] { font-size: 13px; line-height: 1.5; }
.newsletter-promotion-form [role="status"]:not(.has-feedback) { display: none; }
.newsletter-promotion-form .has-feedback { margin-top: 14px; padding: 12px 14px; border-radius: 7px; background: var(--paper-strong); }
.newsletter-promotion-form .has-feedback.is-error { background: #fff1ec; color: #8b2815; }
.newsletter-promotion-form [aria-invalid="true"] { border-color: #8b2815; }

.newsletter-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 420px);
  max-height: min(600px, 90dvh);
  margin: 0 auto;
  padding: 26px 24px calc(24px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #8a9a90 var(--paper);
}
.newsletter-sheet::backdrop { background: rgb(11 21 28 / 32%); }
.newsletter-sheet-heading { display: flex; align-items: start; gap: 14px; }
.newsletter-sheet-heading h2 { flex: 1; }
.newsletter-sheet-heading h2:focus { outline: none; }
.newsletter-sheet-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; padding: 10px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }

.article-newsletter.is-subscribed > h2 { display: none; }
.article-newsletter.is-subscribed .newsletter-promotion-form { margin: 0; }
.newsletter-confirmation,
.newsletter-promotion-form .newsletter-confirmation {
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
  white-space: nowrap;
  cursor: default;
}
.newsletter-promotion-form .newsletter-confirmation { display: flex; }
.newsletter-confirmation-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
}
.newsletter-confirmation-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid #8dbd26;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.newsletter-confirmation-mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .newsletter-promotion-form button[type="submit"] { transition: transform 120ms ease-out; }
  .newsletter-promotion-form button[type="submit"]:active { transform: scale(.98); }
  .newsletter-confirmation-mark { animation: newsletter-mark-release 420ms cubic-bezier(.16, 1, .3, 1) both; }
  .newsletter-confirmation-mark path { animation: newsletter-check-draw 220ms 120ms ease-out both; }
  .newsletter-confirmation-mark::after { animation: newsletter-ring-release 440ms 80ms ease-out both; }
  .newsletter-confirmation-label { animation: newsletter-label-reveal 180ms 120ms ease-out both; }
}
@keyframes newsletter-mark-release {
  0% { transform: scale(.72); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes newsletter-check-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes newsletter-ring-release {
  from { transform: scale(.8); opacity: .65; }
  to { transform: scale(1.5); opacity: 0; }
}
@keyframes newsletter-label-reveal {
  from { opacity: .4; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .article-view .v2-header .global-menu,
  .article-newsletter { display: none; }
  .article-view .v2-brand { white-space: nowrap; }
  .article-subscription-confirmation { display: inline-flex; justify-self: end; }
  .article-subscribe-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .article-view .article-subscribe-action { background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
  .article-view .article-subscribe-action:hover { background: var(--ink); }
}

@media (max-width: 360px) {
  .newsletter-sheet { padding-inline: 20px; }
  .newsletter-sheet-heading h2 { font-size: 27px; }
}
