/* One continuous paper surface, from the headline to the end of the reader. */
html body.editorial-page[data-editorial-page='article'] {
  --reader-paper: #f6f1e7;
  --reader-ink: #171713;
  --reader-muted: #625f57;
  --reader-line: #d8d2c7;
  background: var(--reader-paper) !important;
}
html[data-theme='dark'] body.editorial-page[data-editorial-page='article'] {
  --reader-paper: #141411;
  --reader-ink: #f5f1e8;
  --reader-muted: #bab5aa;
  --reader-line: #44423b;
}
html body[data-editorial-page='article'] :is(.article-main,.article-page,.article-lead-surface,.article-reading-surface,.article-related,.article-subscribe,.site-footer) {
  background: var(--reader-paper) !important;
  color: var(--reader-ink);
}
html body[data-editorial-page='article'] .article-preview {
  position: relative;
  max-height: none;
  overflow: visible;
  padding-bottom: 64px;
}
html body[data-editorial-page='article'] .article-preview::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(transparent, var(--reader-paper));
  pointer-events: none;
}
html body #article-gate {
  margin: 28px 0 0;
  padding: 32px;
  border: 1px solid var(--reader-line);
  border-radius: 18px;
  background: var(--reader-paper) !important;
  color: var(--reader-ink);
  text-align: left;
}
html body #article-gate > span {
  color: var(--reader-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
html body #article-gate h2 {
  margin: 14px 0;
  color: var(--reader-ink) !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.15;
  letter-spacing: -.04em;
}
html body #article-gate > p { margin: 0 0 24px; color: var(--reader-muted); font-size: 16px; line-height: 1.55; }
html body #article-gate-title:focus { outline: none; }
html body .article-gate-form label { display: block; margin-bottom: 8px; color: var(--reader-ink); font-size: 12px; font-weight: 600; }
html body .article-gate-input-row { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--reader-line); border-radius: 999px; background: var(--reader-paper); }
html body .article-gate-input-row:focus-within { border-color: var(--reader-muted); }
html body #article-gate input[type='email'] { flex: 1; width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--reader-ink) !important; font-size: 16px; }
html body #article-gate input::placeholder { color: var(--reader-muted); opacity: 1; }
html body #article-gate :is(button[type='submit'],.article-paywall-upgrade) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--reader-ink) !important; color: var(--reader-paper) !important; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; }
html body #article-gate button:disabled { opacity: .65; cursor: wait; }
html body #article-gate .article-paywall-upgrade { margin-top: 18px; margin-right: 18px; -webkit-text-fill-color: var(--reader-paper) !important; }
html body #article-gate button:focus-visible { outline: 2px solid var(--reader-muted); outline-offset: 3px; }
html body #article-gate small { display: block; margin-top: 14px; color: var(--reader-muted); font-size: 12px; line-height: 1.6; }
html body #article-gate small a { color: inherit; text-decoration: underline; }
html body #article-gate-status { margin: 10px 0 0; color: var(--reader-ink); font-size: 13px; line-height: 1.5; }
html body #article-gate-status:empty { display: none; }
html body #article-gate-status.is-error { color: #aa2929; }
html body #article-gate .article-gate-back { display: inline-block; margin-top: 20px; color: var(--reader-muted); font-size: 13px; text-decoration: underline; }
html body .article-gate-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 18px; background: var(--reader-paper); color: var(--reader-ink); box-shadow: 0 24px 80px #0003; }
html body .article-gate-dialog #article-gate { margin: 0; }
html body .article-gate-dialog::backdrop { background: rgba(35,32,25,.24); backdrop-filter: blur(3px); }
html body .article-gate-dialog[open] { animation: reader-gate-in 420ms cubic-bezier(.22,1,.36,1); }
html body .article-gate-dialog[open]::backdrop { animation: reader-backdrop-in 420ms ease-out; }
html { scrollbar-gutter: stable; }
html:has(.article-gate-dialog[open]) { overflow: hidden; }
@keyframes reader-gate-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reader-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  html body #article-gate { padding: 24px; }
  html body .article-gate-input-row { flex-direction: column; padding: 0; border: 0; gap: 10px; background: transparent; }
  html body #article-gate input[type='email'] { flex: none; border: 1px solid var(--reader-line) !important; border-radius: 999px; }
  html body #article-gate input[type='email']:focus { border-color: var(--reader-muted) !important; }
  html body #article-gate button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html body .article-gate-dialog[open], html body .article-gate-dialog[open]::backdrop { animation: none; } }
