/* Newsletter view (/newsletter/<date>): the original "TODAY IN AI" layout, recovered from git (7521be1^,
   app/static/css/digest.css) and scoped under body.nl. This file is only loaded by newsletter.html and the
   main feed never loads it, so nothing here can touch the story feed. */
@font-face{font-family:Inter;src:url(/static/fonts/Inter.ttf) format("truetype");font-weight:100 900;font-display:swap}
.nl,.nl *{box-sizing:border-box;margin:0;padding:0}
.nl{--blue:#2563eb;--ink:#111;--mut:#666;--bg:#f4f4f6}
body.nl{background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;line-height:1.5;overflow-x:hidden}
body.nl:before,body.nl:after{content:"";position:fixed;border-radius:50%;background:#fff;z-index:-1}
body.nl:before{width:720px;height:720px;left:-260px;top:-300px}
body.nl:after{width:560px;height:560px;right:-200px;bottom:-220px}
.nl .wrap{max-width:1180px;margin:0 auto;padding:48px 28px 40px;overflow-x:clip} /* safety net: nothing may widen the page (clip keeps y visible, no scroll box) */
.nl .kicker{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);background:#fff;border-radius:999px;padding:8px 14px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.nl .kicker i{width:8px;height:8px;border-radius:50%;background:var(--blue);display:block}
.nl h1{font-size:clamp(46px,8vw,104px);font-weight:900;text-transform:uppercase;letter-spacing:-.025em;line-height:.95;margin:18px 0 10px}
.nl .date{font-size:20px;font-weight:600;color:#333}
.nl .date span{color:var(--mut);font-weight:500}
.nl .tldr{margin-top:28px;background:#fff;border-radius:24px;padding:24px 28px;box-shadow:0 10px 30px rgba(0,0,0,.06);display:grid;grid-template-columns:auto 1fr;gap:10px 22px;align-items:start}
.nl .tldr h2{grid-row:span 3;font-size:15px;font-weight:900;letter-spacing:.1em;background:var(--ink);color:#fff;border-radius:12px;padding:10px 12px;text-transform:uppercase}
.nl .tldr p{font-size:18px;font-weight:500;display:flex;gap:12px}
.nl .tldr p b{color:var(--blue);font-weight:900;min-width:16px}
.nl .sec{font-size:15px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;margin:46px 0 16px;display:flex;align-items:center;gap:14px}
.nl .sec:after{content:"";flex:1;height:2px;background:#e3e4e8}
.nl .fade{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease,box-shadow .25s}
.nl .fade.in{opacity:1;transform:none}
.nl article{background:#fff;border-radius:28px;box-shadow:0 10px 30px rgba(0,0,0,.06);overflow:hidden}
.nl article.in:hover{box-shadow:0 20px 44px rgba(0,0,0,.10);transform:translateY(-4px)}
.nl .vis{display:flex;flex-direction:column;background:#f6f7f9;position:relative;overflow:hidden}
.nl .vis:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:#fff;right:-80px;bottom:-90px;z-index:0}
.nl .shot{position:relative;aspect-ratio:16/9;overflow:hidden;background:#ddd;flex:none}
.nl .shot img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}
.nl article:hover .shot img{transform:scale(1.03)}
.nl .topic{position:absolute;top:14px;left:14px;background:rgba(17,17,17,.82);color:#fff;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border-radius:999px;padding:6px 11px}
.nl .panel{position:relative;z-index:1;padding:22px 24px;display:flex;flex-direction:column;gap:16px;flex:1;justify-content:center}
.nl .gfx{display:flex;align-items:center;gap:14px}
.nl .gfx .lg{width:52px;height:52px;border-radius:14px;background:#fff;display:grid;place-items:center;flex:none;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.nl .gfx .lg img,.nl .gfx .lg svg{width:32px;height:32px;object-fit:contain}
.nl .gfx .lg.full img{width:52px;height:52px}
.nl .gfx .lg.wide img{width:44px;height:44px}
.nl .gfx .st{font-size:46px;font-weight:900;letter-spacing:-.03em;line-height:1}
.nl .gfx .sl{font-size:14px;color:#555;font-weight:600;line-height:1.3;margin-top:4px}
.nl .more{display:flex;align-items:center;gap:8px}
.nl .more img{width:72px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;border:2px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.nl .more span{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#888;margin-right:4px}
.nl .hl{display:grid;grid-template-columns:1.1fr 1fr}
.nl .hl .gfx .st{font-size:64px}
.nl .hl .more img{width:96px}
.nl .hl .txt{padding:34px 36px}
.nl .badge{display:inline-flex;align-items:center;gap:8px;background:var(--blue);color:#fff;font-size:12.5px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;border-radius:999px;padding:7px 13px}
.nl .hl h2{font-size:34px;font-weight:900;line-height:1.1;letter-spacing:-.02em;margin:14px 0 12px}
.nl .lede{font-size:17px;color:#2b2b2b}
.nl .lede:first-letter{font-weight:900}
.nl h4{font-size:12.5px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin:20px 0 8px}
.nl ol{list-style:none;counter-reset:n;display:flex;flex-direction:column;gap:9px}
.nl ol li{counter-increment:n;padding-left:34px;position:relative;font-size:15.5px;color:#333}
.nl ol li:before{content:counter(n);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:#eef3ff;color:var(--blue);font-weight:900;font-size:13px;display:grid;place-items:center}
.nl ul.kl{list-style:none;display:flex;flex-direction:column;gap:8px}
.nl ul.kl li{font-size:15.5px;color:#333;padding-left:20px;position:relative}
.nl ul.kl li:before{content:"";position:absolute;left:3px;top:9px;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.nl .why{margin-top:18px;font-size:15.5px;color:#222;background:#f4f7ff;border-left:4px solid var(--blue);border-radius:10px;padding:11px 14px}
.nl .why b{color:var(--blue)}
.nl details.srcs{margin-top:18px;border-top:1px solid #f0f0f2;padding-top:12px;color:#888;font-size:13px}
.nl details.srcs summary{cursor:pointer;list-style:none;font-weight:700;color:#999;display:inline-flex;align-items:center;gap:6px}
.nl details.srcs summary::-webkit-details-marker{display:none}
.nl details.srcs summary:after{content:"▾";font-size:11px;transition:transform .2s}
.nl details.srcs[open] summary:after{transform:rotate(180deg)}
.nl details.srcs ul{list-style:none;margin-top:8px;display:flex;flex-direction:column;gap:6px}
.nl details.srcs li{line-height:1.35}
.nl details.srcs a{color:#7a8cc4;text-decoration:none;font-weight:600;margin-left:6px}
.nl details.srcs a:hover{color:var(--blue);text-decoration:underline}
.nl .stories{display:flex;flex-direction:column;gap:26px}
.nl .story{display:grid;grid-template-columns:420px 1fr}
.nl .story .txt{padding:28px 32px}
.nl .story .tp{font-size:12.5px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}
.nl .story h3{font-size:26px;font-weight:800;line-height:1.16;letter-spacing:-.015em;margin:8px 0 10px}
.nl .story .lede{font-size:16px}
.nl footer{margin-top:52px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.nl .lock{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.08em;font-size:18px}
.nl .lock img{height:30px;width:30px}
.nl footer p{font-size:13px;color:#888}
@media (max-width:980px){.nl .hl,.nl .story{grid-template-columns:1fr}
.nl .panel{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center}}
@media (max-width:520px){.nl .wrap{padding:28px 16px}
.nl .tldr{grid-template-columns:1fr;padding:20px}
.nl .tldr h2{grid-row:auto;justify-self:start}
.nl .tldr p{font-size:16px}
.nl .hl .txt,.nl .story .txt{padding:22px 20px}
.nl .hl h2{font-size:26px}
.nl .story h3{font-size:21px}
.nl .lede{font-size:16px}
.nl .panel{padding:16px 18px;gap:12px}
.nl .gfx .st,.nl .hl .gfx .st{font-size:34px}
.nl .gfx .lg{width:42px;height:42px}
.nl .gfx .lg img,.nl .gfx .lg svg{width:26px;height:26px}
.nl .gfx .lg.full img{width:42px;height:42px}
.nl .more img,.nl .hl .more img{width:60px}}
@media (prefers-reduced-motion:reduce){.nl .fade{transition:none;opacity:1;transform:none}}
.nl a{color:inherit}
.nl .top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nl .kicker{text-decoration:none}
.nl .navlinks{display:flex;gap:8px}
.nl .navlinks a{font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;background:#fff;border-radius:999px;padding:8px 14px;box-shadow:0 6px 18px rgba(0,0,0,.05);color:var(--ink)}
.nl .navlinks a:hover,.nl .navlinks a[aria-current=page]{color:var(--blue)}
.nl .sample{margin-top:18px;background:#fff4ec;border:1px solid #f6c9a8;color:#8a3b0c;border-radius:14px;padding:10px 14px;font-size:14px;font-weight:600}
.nl .sample b{letter-spacing:.08em;text-transform:uppercase;font-weight:900;margin-right:6px}
.nl .pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:18px}
.nl .pager a,.nl .pager span{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;color:var(--ink);background:#fff;border-radius:999px;padding:10px 16px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.nl .pager a:hover{color:var(--blue)}
.nl .pager .next{justify-self:end}
.nl .pager .prev{justify-self:start}
.nl .pager span.off{background:transparent;box-shadow:none;color:#bbb}
.nl .pager .mid{justify-self:center;background:var(--ink);color:#fff}
.nl .pager .mid:hover{color:#fff;background:var(--blue)}
.nl .pager.bottom{margin-top:40px}
.nl .more span.n{margin-right:4px}
@media (max-width:520px){.nl .navlinks a{padding:7px 11px;font-size:12px}
.nl .kicker{font-size:11.5px;padding:7px 11px}
.nl .pager{grid-template-columns:1fr 1fr}
.nl .pager .mid{display:none}
.nl .pager a,.nl .pager span{font-size:12.5px;padding:9px 12px}}
.nl .shot img{transform:scale(1.02)}
.nl article:hover .shot img{transform:scale(1.05)}
/* ===== adaptations for today's data (feat/newsletter-view) ===== */
.nl .navlinks a.feed{color:var(--blue)}
.nl .navlinks a.feed:hover{color:var(--ink)}
.nl footer a{color:var(--blue);text-decoration:none;font-weight:700}.nl footer a:hover{text-decoration:underline}
/* a story without a photo of its own (never repeat a photo): no empty image box */
.nl .vis.noshot{justify-content:center}
.nl .noshot .topic{position:static;align-self:flex-start}
.nl .novis{display:block}
.nl .story.novis .txt,.nl .hl.novis .txt{max-width:820px}
.nl .more:empty{display:none}
/* share link */
.nl .acts{margin-top:16px}
.nl .nshare{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:var(--blue);text-decoration:none;background:#eef3ff;border-radius:999px;padding:6px 12px}
.nl .nshare:hover{background:var(--blue);color:#fff}
.nl .nshare svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* glossary terms in story text: tap / hover / focus shows the definition (same as the feed's reader) */
.nl .gw{position:relative;display:inline}
.nl .gt{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:help;border-bottom:1.5px dotted var(--blue);line-height:inherit;text-align:inherit}
.nl .gt:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:3px}
/* a closed tooltip takes no layout (display:none), so one near the right edge can't widen the page on phones;
   an open one is clamped to the text column and the screen in newsletter.js (--dx) */
.nl .gd{--dx:0px;position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(calc(-50% + var(--dx)));z-index:5;width:max-content;max-width:min(280px,80vw);background:var(--ink);color:#fff;font-size:13px;font-weight:500;line-height:1.45;text-align:left;border-radius:10px;padding:8px 11px;box-shadow:0 10px 26px rgba(0,0,0,.22);display:none;pointer-events:none}
.nl .gd b{display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#9db8ff;margin-bottom:1px}
.nl .gw.below .gd{bottom:auto;top:calc(100% + 7px)}
.nl .gw.on .gd,.nl .gt:focus-visible+.gd,.nl .gw.hv .gd{display:block;animation:nlgd .12s}
@keyframes nlgd{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.nl .gd{animation:none!important}}
.nl article{overflow:visible}.nl .vis{border-radius:28px 0 0 28px}
@media (max-width:980px){.nl .vis{border-radius:28px 28px 0 0}}
@media (max-width:520px){.nl .navlinks{gap:6px}.nl .navlinks a{padding:7px 10px}}
/* "Subscribe" box, above the footer */
.nl .signup{max-width:560px;margin:36px auto 0;background:#fff;border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.05);padding:18px 20px}
.nl .su-t{display:block;font-size:15px;font-weight:700;margin-bottom:10px}
.nl .su-f{display:flex;gap:8px}
.nl .su-f input{flex:1;min-width:0;font:500 16px/1.2 Inter,sans-serif;color:var(--ink);background:#f6f7f9;border:1px solid #e1e4ea;border-radius:10px;padding:10px 12px}
.nl .su-f input:focus{outline:2px solid var(--blue);outline-offset:1px;background:#fff}
.nl .su-f button{flex:none;font:800 14px/1 Inter,sans-serif;color:#fff;background:var(--blue);border:0;border-radius:10px;padding:0 16px;min-height:42px;cursor:pointer}
.nl .su-f button:hover{background:#1d4ed8}.nl .su-f button[disabled]{opacity:.6;cursor:default}
.nl .su-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nl .su-m{min-height:1.4em;margin-top:6px;font-size:13px;font-weight:600;color:#15803d}.nl .su-m.err{color:#b91c1c}
.nl .su-m:empty{min-height:0;margin:0}
@media (max-width:420px){.nl .su-f{flex-direction:column}.nl .su-f button{width:100%}}
