/* Newsletter sign-up: one row at the top of the footer on every page, and a small panel on article pages.
   Loaded after site.css. */

/* ---------- shared form ---------- */
.nl { margin: 0; }
.nl-row { display: flex; align-items: flex-end; gap: 14px; }
.nl-in { flex: 1 1 auto; min-width: 0; }
.nl-in input { display: block; width: 100%; padding: 12px 0 13px; border: 0; border-bottom: 1px solid rgba(250, 249, 247, .5); border-radius: 0; background: transparent; font: 400 1rem/1.4 var(--body); color: var(--paper); -webkit-appearance: none; appearance: none; transition: border-color .3s; }
.nl-in input::placeholder { color: rgba(250, 249, 247, .66); opacity: 1; }
.nl-in input:focus { outline: 0; border-bottom-color: var(--paper); }
.nl-in input:focus-visible { box-shadow: 0 2px 0 var(--paper); }
.nl.bad .nl-in input { border-bottom-color: #F2C9B8; }
.nl-b { position: relative; flex: none; display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 20px; border: 1px solid var(--paper); border-radius: 2px; background: var(--paper); color: var(--deep); font: 600 var(--t-sm)/1 var(--body); letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.nl-b:hover, .nl-b:focus-visible { background: var(--mint); border-color: var(--mint); }
.nl-b:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.nl-b:disabled { opacity: .5; cursor: default; }
.nl-b .arr { width: 18px; height: 10px; flex: none; transition: transform .5s var(--ease); }
.nl-b:hover .arr { transform: translateX(5px); }
.nl-msg { min-height: 1.4em; margin-top: 10px; font-size: .8125rem; line-height: 1.4; color: #F2C9B8; }
.nl-msg a { color: inherit; }
.nl-fine { margin-top: 2px; font-size: .8125rem; line-height: 1.5; color: rgba(250, 249, 247, .66); }
.nl-fine a { color: inherit; }
.nl-done { font: 400 1.25rem/1.35 var(--display); color: var(--paper); }
.nl-done:focus { outline: 0; }
.nl [hidden] { display: none !important; }

/* ---------- footer row ---------- */
.foot .news { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.3fr)); column-gap: var(--gap); align-items: start; padding-block: 64px 0; }
.foot .news #nlFootSlot { grid-column: 2 / -1; }
.foot .nl-fine a, .foot .nl-msg a { background: none; padding-bottom: 0; text-decoration: underline; text-underline-offset: 2px; }
.foot .news h3 { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--display); letter-spacing: -.005em; color: var(--paper); max-width: 16ch; text-wrap: balance; }
.foot .news .nl { max-width: 560px; padding-top: 2px; }
@media (max-width: 900px) {
  .foot .news { grid-template-columns: 1fr; row-gap: 22px; padding-block: 52px 0; }
  .foot .news #nlFootSlot { grid-column: auto; }
  .foot .news h3 { max-width: none; }
}
@media (max-width: 480px) {
  .nl-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .nl-b { justify-content: space-between; min-height: 50px; }
}

/* ---------- panel on article pages ---------- */
.nlp { position: fixed; z-index: 60; right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); width: min(388px, calc(100vw - 48px)); padding: 30px 30px 24px; background: var(--deep); color: var(--paper); border-radius: 2px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.nlp.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s; }
.nlp h2 { font: 400 1.5rem/1.2 var(--display); letter-spacing: -.005em; color: var(--paper); padding-right: 34px; margin-bottom: 18px; text-wrap: balance; }
.nlp-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: rgba(250, 249, 247, .75); cursor: pointer; border-radius: 2px; transition: color .3s; }
.nlp-x:hover, .nlp-x:focus-visible { color: var(--paper); }
.nlp-x:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
.nlp-x svg { width: 14px; height: 14px; }
.nlp .nl-done { font-size: 1.25rem; }
@media (max-width: 600px) {
  .nlp { left: 0; right: 0; bottom: 0; width: auto; padding: 26px max(20px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 0; transform: translateY(100%); }
  .nlp .nl-row { flex-direction: row; align-items: flex-end; gap: 14px; }
  .nlp .nl-b { justify-content: center; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .nlp, .nlp.on { transition: opacity .2s, visibility 0s; transform: none; }
}
@media print { .nlp, .foot .news { display: none; } }

/* ---------- links to the scorecard ---------- */
.why-foot { border-top: 0; padding-top: 0; margin-top: clamp(36px, 4vw, 56px); }
.sv-not a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .3s; }
.sv-not a:hover, .sv-not a:focus-visible { color: var(--mint); }
