/* The blog: index, author page and articles. Builds on cosmic.css tokens and the .doc rules in trust.css. */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-family:var(--mono);font-size:13px;color:var(--dim);margin:0 0 32px}
.crumbs a{color:var(--dim);text-decoration:none}
.crumbs a:hover{color:var(--text)}
.crumbs [aria-current]{color:var(--muted)}
.post .wrap,.blog .wrap{max-width:760px}
.post h1{font-size:clamp(32px,4.6vw,48px);line-height:1.08;text-wrap:balance}
.doc .answer{font-size:21px;line-height:1.5;color:var(--text);max-width:60ch;margin:0 0 24px}
.doc .byline{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.45;color:var(--muted);margin:0 0 8px;padding-bottom:28px;max-width:none}
.byline img{border-radius:50%;flex:none}
.post article p,.post article li{font-size:18px;line-height:1.65}
.post article p{max-width:68ch}
.post h2{scroll-margin-top:88px}
.post pre{overflow-x:auto;background:#0b0414;border:1px solid #2b1f3f;border-radius:12px;padding:18px 20px;margin:8px 0 20px;font-family:var(--mono);font-size:14.5px;line-height:1.6;color:#fbf6ff}
.post pre code{background:none;padding:0;font-size:inherit}
.post .tbl td,.post .tbl th{font-variant-numeric:tabular-nums}
.about-cosmic{margin-top:64px;padding:24px 26px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.doc .about-cosmic h2{margin:0 0 10px;padding:0;border:0;font-size:clamp(21px,3vw,26px)}
.about-cosmic p{margin:0 0 14px;max-width:60ch}
.about-cosmic .btn-row{margin:0;display:flex;gap:10px;flex-wrap:wrap}
.doc .post-list{list-style:none;padding:0;margin:40px 0 0}
.post-list li{margin:0;padding:26px 0;border-top:1px solid var(--line)}
.post-list li:last-child{border-bottom:1px solid var(--line)}
.post-list a{font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.01em;color:var(--text);text-decoration:none;text-wrap:balance}
.doc .post-list a:not(.btn){color:var(--text)}
.post-list a:hover{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}
.post-list p{margin:8px 0 0;color:var(--muted);max-width:64ch}
.post-list .when{font-family:var(--mono);font-size:13px;color:var(--dim)}
@media(max-width:700px){.post pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px 16px;font-size:13.5px}.crumbs{margin-bottom:24px}.doc .answer{font-size:19px}.post article p,.post article li{font-size:17px}.post-list a{font-size:21px}.about-cosmic{padding:20px}}
.post .note{border:1px solid var(--line);border-radius:10px}
.post article>h2:first-of-type{margin-top:24px}
/* Article tables carry numbers, so on a phone they keep their column headings and scroll sideways. */
@media(max-width:700px){.crumbs [aria-current],.crumbs span:nth-last-of-type(2){display:none}.post .tbl table{min-width:520px;font-size:15px}.post .tbl thead{display:table-header-group}.post .tbl tr{display:table-row;padding:0;border:0}.post .tbl td{display:table-cell;padding:10px 12px;border-bottom:1px solid var(--line)}.post .tbl tr:last-child td{border-bottom:0}}
.post-filters{margin:28px 0 0;display:grid;gap:12px}
.post-filters[hidden],.post-list li[hidden],.post-list[hidden],.filter-empty[hidden]{display:none}
.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.filter-label{font-family:var(--mono);font-size:13px;color:var(--dim);min-width:52px}
.chip{font:inherit;font-size:15px;line-height:1.2;color:var(--muted);background:transparent;border:1px solid var(--line2);border-radius:8px;padding:9px 14px;min-height:40px;cursor:pointer;touch-action:manipulation;transition:border-color .15s,color .15s,background .15s}
.chip:hover{border-color:var(--accent);color:var(--text)}
.chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--ink);font-weight:600}
.doc .filter-count{margin:4px 0 0;font-family:var(--mono);font-size:13px;color:var(--dim)}
.doc .post-filters+.filter-empty,.doc .filter-empty{margin:32px 0 0;color:var(--muted)}
.filter-empty .text-link{font:inherit;background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;cursor:pointer}
.doc .post-filters~.post-list{margin-top:24px}
.post-list .when{display:flex;flex-wrap:wrap;gap:6px 14px}
.post-list .tags{color:var(--muted)}
@media(max-width:700px){.filter-label{min-width:100%}.chip{font-size:14px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.chip{transition:none}}
/* 2026-11-30: reading column. 18px body, about 70 characters a line, on the light page. */
.post .wrap,.blog .wrap{max-width:650px}
.post article p,.post article li{font-size:18.5px;line-height:1.7;color:var(--text)}
.post article p{max-width:none}
.post .doc-hero .crumbs,.blog .doc-hero .crumbs{margin-bottom:28px}
.doc .doc-hero .answer{color:var(--text);margin-bottom:24px}
.about-cosmic{border-radius:14px;padding:28px 30px}
.doc .about-cosmic h2{font-size:clamp(24px,3vw,30px)}
@media(max-width:700px){.post article p,.post article li{font-size:18px}}
/* 2026-11-30: covers, cards, the table of contents, Related articles and the /resources hub. Covers are drawn by
   scripts/covers.mjs at 1200x630; every card and hero keeps that ratio so nothing shifts while images load. */
.doc .post-list.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px}
.doc .post-list.cards.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.post-list.cards li,.post-list.cards li:last-child{position:relative;padding:0;border:0;display:flex;flex-direction:column}
.post-list.cards li[hidden]{display:none}
.post-list.cards img{display:block;width:100%;height:auto;aspect-ratio:1200/630;border-radius:12px;border:1px solid var(--line);margin:0 0 14px;background:#160c25}
.post-list.cards h3{margin:6px 0 0;font-size:21px;line-height:1.25;letter-spacing:-.015em}
.post-list.cards.three h3{font-size:18px}
.post-list.cards h3 a::after{content:"";position:absolute;inset:0;border-radius:12px}
.post-list.cards h3 a:focus-visible{outline:none}
.post-list.cards li:has(a:focus-visible){outline:3px solid var(--accent);outline-offset:6px;border-radius:12px}
.post-list.cards .tags{margin:0;font-family:var(--mono);font-size:13px;color:var(--dim)}
.post-list.cards p{margin:8px 0 0}
.post-list.cards .when{margin-top:auto;padding-top:10px}
.post .cover{margin:0 0 36px}
.post .cover img{display:block;width:100%;height:auto;aspect-ratio:1200/630;border-radius:14px;border:1px solid var(--line);background:#160c25}
.toc{margin:0 0 40px;padding:20px 22px;background:var(--bg2);border:1px solid var(--line);border-radius:14px}
.doc .toc-h{margin:0 0 8px;font-size:14px;font-weight:600;color:var(--dim)}
.doc .toc ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.doc .toc li{margin:0}
.doc .toc a:not(.btn){display:flex;align-items:center;min-height:40px;font-size:16px;font-weight:500;text-decoration:none;color:var(--text)}
.doc .toc a:not(.btn):hover{text-decoration:underline;text-decoration-color:var(--accent)}
.related{margin-top:64px}
.related .post-list.cards{margin-top:24px}
.resources-hub .wrap{max-width:1080px}
.hub-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 36px}
.doc .hub-groups h2{margin:0 0 6px;padding-top:0;border-top:0;font-size:15px;font-weight:600;letter-spacing:0;color:var(--dim)}
.doc .hub-groups ul{list-style:none;margin:0;padding:0}
.doc .hub-groups li{margin:0}
.doc .hub-groups a:not(.btn){display:block;padding:14px 0;border-top:1px solid var(--line);text-decoration:none;font-weight:400}
.hub-groups b{display:block;font-size:18px;font-weight:600;color:var(--text)}
.hub-groups span{display:block;margin-top:2px;font-size:15px;line-height:1.45;color:var(--muted)}
.doc .hub-groups a:not(.btn):hover b{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}
.doc.resources-hub .post-list.cards{margin-top:24px}
.doc .hub-more{margin:28px 0 0}
.doc .hub-topics{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.doc .hub-topics li{margin:0}
.doc .hub-topics a:not(.btn){display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line2);border-radius:999px;font-size:15px;font-weight:500;text-decoration:none}
.doc .hub-topics a:not(.btn):hover{border-color:var(--accent)}
@media(max-width:860px){.doc .post-list.cards.three{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-groups{grid-template-columns:1fr;gap:28px}}
@media(max-width:560px){.doc .post-list.cards,.doc .post-list.cards.three{grid-template-columns:1fr}}
/* Newsletter embed at the end of each article (2026-11-30). Field styles come from cosmic.css (.wl, .field). */
.nl-embed{max-width:560px;margin:56px 0 0;padding:28px 0 0;border-top:1px solid var(--line2)}
.doc .nl-embed h2{margin:0;padding:0;border:0;font-size:22px}
.nl-embed>p{margin-top:8px}
.nl-embed .wl,.nl-embed .wl-done{margin:16px 0 0;max-width:none}
.nl-embed .wl-done h3{font-size:20px}
/* Newsletter pop-up on articles (newsletter-popup.js, 2026-11-30). Fixed, so it never moves the page. Bottom corner on
   desktop, bottom sheet on phones. Slides in only for readers who allow motion. */
.nl-pop{position:fixed;right:24px;bottom:24px;z-index:60;width:min(380px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line2);border-radius:14px;padding:22px 22px 18px;box-shadow:0 8px 24px rgba(20,8,31,.12)}
.nl-pop:focus{outline:none}
.nl-pop:focus-visible{outline:none;border-color:var(--accent)}
.nl-pop h2{margin:0 36px 0 0;padding:0;border:0;font-size:19px;line-height:1.3}
.nl-pop .nl-pop-sub{margin:6px 0 0;font-size:15px;line-height:1.5;color:var(--muted)}
.nl-pop .wl,.nl-pop .wl-done{margin:14px 0 0;max-width:none;gap:12px}
.nl-pop .field label{font-size:14px}
.nl-pop .field input,.nl-pop .field select{min-height:46px;font-size:16px;padding:10px 12px}
.nl-pop .hint{margin:0;font-size:13px;color:var(--dim)}
.nl-pop .wl-done h3{font-size:18px;margin:0}
.nl-pop .wl-done p{margin:6px 0 0;font-size:15px}
.nl-pop-x{position:absolute;top:10px;right:10px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:26px;line-height:1;cursor:pointer}
.nl-pop-x:hover{background:var(--panel2);color:var(--text)}
.nl-pop-x:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media(min-width:561px) and (max-width:1439px){.nl-pop{width:288px;right:16px;bottom:16px;padding:18px 18px 14px}.nl-pop .nl-pop-sub{font-size:14px}}
@media(max-width:560px){.nl-pop{left:0;right:0;bottom:0;width:auto;max-height:85vh;border-radius:16px 16px 0 0;border-bottom:0;padding:20px 16px calc(16px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:no-preference){.nl-pop{animation:nl-pop-in .28s var(--ease,ease-out)}@keyframes nl-pop-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}}
