/* The email-subscription form v2 (service-sitegen, approved 2026-11-09): the envelope and the
   popup. Colours, flag stripe and fonts are the market theme's tokens; every other theme gets
   the fallbacks. */
.ksub-env{position:fixed;right:20px;bottom:20px;z-index:70;width:58px;height:58px;padding:0;display:flex;
  align-items:center;justify-content:center;border:0;border-radius:50%;cursor:pointer;
  background:var(--club,#1c2a4a);color:#fff;box-shadow:0 10px 26px rgba(0,0,0,.28);
  transition:transform .18s ease,box-shadow .18s ease}
.ksub-env:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.32)}
.ksub-env::after{content:"";position:absolute;top:7px;right:7px;width:8px;height:8px;border-radius:50%;
  background:#E8483B;box-shadow:0 0 0 2px var(--club,#1c2a4a)}
.ksub-env--seen::after{display:none}
.ksub-env svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ksub-env:focus-visible,.ksub-x:focus-visible,.ksub-btn:focus-visible{outline:3px solid var(--ink,#111);outline-offset:3px}
@media (max-width:900px){
  .ksub-env{right:14px;bottom:14px;width:54px;height:54px}
  /* Above the bottom banner bar while it is showing (not closed): the market theme's
     `pick--bar`, and the `promo--sticky-mobile` of editorial/longread/factsheet (whose
     body reserve reaches 112px on a small phone with a legal line). */
  /* `:has()` cannot nest inside `:has()`: a nested one drops the whole rule. */
  body:has(.pick--bar):not(:has(.pick--bar .pick__x-state:checked)) .ksub-env{bottom:112px}
  body:has(.promo--sticky-mobile):not(:has(.promo--sticky-mobile .promo__x-state:checked)) .ksub-env{bottom:120px}
}
.ksub-back{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
  padding:16px;background:rgba(8,9,12,.62);backdrop-filter:blur(2px)}
.ksub-back[hidden]{display:none}
.ksub-pop{position:relative;box-sizing:border-box;width:100%;max-width:440px;max-height:calc(100vh - 32px);
  overflow:auto;border-radius:16px;background:var(--surface,#fff);color:var(--ink,#111);
  font-family:var(--font-body,system-ui,sans-serif);box-shadow:0 24px 60px rgba(0,0,0,.4);
  animation:ksub-in .22s ease-out}
@keyframes ksub-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ksub-pop{animation:none}.ksub-env{transition:none}}
.ksub-head{position:relative;padding:26px 26px 22px;background:var(--club-dark,#0A0A0C);color:#fff}
.ksub-head::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--flag,var(--club,#1c2a4a))}
.ksub-kick{margin:0 0 10px;font-family:var(--font-mono,ui-monospace,monospace);font-size:11.5px;
  letter-spacing:.09em;text-transform:uppercase;color:var(--on-dark,#9fd)}
.ksub-title{margin:0;padding-right:28px;font-family:var(--font-display,inherit);font-weight:800;
  font-size:26px;line-height:1.12;letter-spacing:-.01em;text-wrap:balance;color:#fff}
.ksub-x{position:absolute;top:12px;right:10px;width:38px;height:38px;padding:0;display:flex;align-items:center;
  justify-content:center;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
.ksub-x:hover{background:rgba(255,255,255,.18)}
.ksub-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ksub-body{padding:22px 26px 24px}
.ksub-lead{margin:0 0 12px;font-size:16px;line-height:1.45;color:var(--ink-2,#444)}
.ksub-points{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:9px}
.ksub-points li{display:flex;gap:10px;align-items:flex-start;font-size:15.5px;line-height:1.4;font-weight:600;color:var(--ink,#111)}
.ksub-points svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--club,#1c2a4a);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ksub-form{display:flex;flex-direction:column;gap:10px}
.ksub-form[hidden]{display:none}
.ksub-in{box-sizing:border-box;width:100%;min-height:52px;padding:0 16px;font:inherit;font-size:16px;color:var(--ink,#111);
  background:var(--ground,#f4f5f7);border:1.5px solid transparent;border-radius:10px;transition:border-color .15s}
.ksub-in::placeholder{color:var(--ink-3,#666)}
.ksub-in:focus{outline:none;border-color:var(--club,#1c2a4a);background:var(--surface,#fff)}
.ksub-in[aria-invalid="true"]{border-color:#C8362B}
.ksub-btn{min-height:52px;padding:0 18px;font-family:var(--font-display,inherit);font-size:15px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;border:0;border-radius:10px;cursor:pointer;
  background:var(--club,#1c2a4a);color:#fff;transition:filter .15s}
.ksub-btn:hover{filter:brightness(1.12)}
.ksub-btn:disabled{opacity:.65;cursor:progress}
.ksub-msg{margin:10px 0 0;font-size:14.5px;line-height:1.4}
.ksub-msg:empty{display:none}
.ksub-msg--err{color:#C8362B}
.ksub-legal{margin:14px 0 0;font-size:12px;line-height:1.45;color:var(--ink-3,#666)}
.ksub-done{display:none;text-align:center;padding:6px 0 4px}
.ksub-done svg{width:56px;height:56px;fill:none;stroke:var(--club,#1c2a4a);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ksub-done h3{margin:10px 0 6px;font-family:var(--font-display,inherit);font-weight:800;font-size:22px}
.ksub-done p{margin:0;color:var(--ink-2,#444);font-size:15.5px;line-height:1.45}
.ksub-pop--done .ksub-done{display:block}
.ksub-pop--done .ksub-lead,.ksub-pop--done .ksub-points,.ksub-pop--done .ksub-form,.ksub-pop--done .ksub-legal{display:none}
.ksub-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ksub-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:420px){.ksub-head{padding:22px 20px 18px}.ksub-body{padding:18px 20px 20px}.ksub-title{font-size:23px}}
@media (prefers-color-scheme:dark){.ksub-msg--err{color:#ff8a80}}

/* The envelope: a white paper envelope (body, folds, closed flap) centred in the button. While
   unopened it rings every few seconds and the dot pulses; on hover/focus the flap opens upward
   and a letter rises out. */
.ksub-env svg.ksub-mail{width:34px;height:34px;overflow:visible}
.ksub-mail *{stroke-linejoin:round;stroke-linecap:round}
.ksub-mail__body{fill:#fff;stroke:none}
.ksub-mail__fold{fill:none;stroke:#C5CCD6;stroke-width:1.1}
.ksub-mail__flap{fill:#F1F3F6;stroke:#C5CCD6;stroke-width:1.1;transition:opacity .12s ease}
.ksub-mail__back{fill:#DDE2E8;stroke:none;transform-origin:16px 9.6px;transform-box:view-box;transform:scaleY(0);transition:transform .28s ease}
.ksub-mail__paper{fill:#fff;stroke:#C5CCD6;stroke-width:.9}
.ksub-mail__lines{fill:none;stroke:var(--club,#1c2a4a);stroke-width:1.3}
.ksub-mail__letter{transform:translateY(0);transition:transform .38s cubic-bezier(.3,1.5,.5,1) .1s}
.ksub-env:hover .ksub-mail__flap,.ksub-env:focus-visible .ksub-mail__flap{opacity:0}
.ksub-env:hover .ksub-mail__back,.ksub-env:focus-visible .ksub-mail__back{transform:scaleY(1)}
.ksub-env:hover .ksub-mail__letter,.ksub-env:focus-visible .ksub-mail__letter{transform:translateY(-6.5px)}
.ksub-env:not(.ksub-env--seen){animation:ksub-ring 6s ease-in-out 2.5s infinite;transform-origin:50% 55%}
@keyframes ksub-ring{
  0%,82%,100%{transform:none}
  85%{transform:rotate(-12deg) scale(1.05)}
  88%{transform:rotate(10deg) scale(1.05)}
  91%{transform:rotate(-6deg) scale(1.03)}
  94%{transform:rotate(4deg)}
  97%{transform:rotate(-1.5deg)}}
.ksub-env:not(.ksub-env--seen)::before{content:"";position:absolute;top:4px;right:4px;width:14px;height:14px;border-radius:50%;
  background:#E8483B;opacity:0;animation:ksub-pulse 2s ease-out infinite}
@keyframes ksub-pulse{0%{transform:scale(.5);opacity:.5}100%{transform:scale(1.4);opacity:0}}
.ksub-env:hover{animation-play-state:paused}
@media (max-width:900px){.ksub-env::after{top:6px;right:6px}.ksub-env:not(.ksub-env--seen)::before{top:3px;right:3px}}
.ksub-env:hover::after,.ksub-env:hover::before{opacity:0;animation:none}
@media (prefers-reduced-motion:reduce){
  .ksub-env:not(.ksub-env--seen),.ksub-env::before{animation:none}
  .ksub-mail__letter,.ksub-mail__flap,.ksub-mail__back{transition:none}}
