/* Blog and roadmap, in the dscvryai.com look: light-weight tight headlines, slate text, pastel tiles, square corners,
   underlined arrow links, thin line-art. Loaded after styles.css on /blog/* and /roadmap/ only. */
.blog { --ink: #0f172a; --muted: #5b6472; --rule: #e2e8f0; --link: #0d6efd; background: #fff; color: var(--ink); }
.t-blue { background: linear-gradient(160deg, #f1f5fa 0%, #dbe5f3 100%); }
.t-green { background: linear-gradient(160deg, #f1f6f2 0%, #d9e8dc 100%); }
.t-sand { background: linear-gradient(160deg, #f8f4ec 0%, #eadfca 100%); }
.t-lilac { background: linear-gradient(160deg, #f4f2fa 0%, #e1dcf2 100%); }
.wide { width: min(1200px, 100% - 2 * var(--container-pad, 1.5rem)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--container-pad, 1.5rem)); margin-inline: auto; }
.center { text-align: center; }
.label { font-size: .9rem; color: var(--muted); margin: 0 0 1.1rem; letter-spacing: -.005em; }
.cover { display: block; width: 100%; height: auto; color: #0f172a; }

/* ---------- index and roadmap hero ---------- */
.blog-hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); background: radial-gradient(900px 420px at 100% -10%, rgba(176, 196, 232, .38), transparent 62%), radial-gradient(700px 360px at -5% 25%, rgba(190, 220, 200, .3), transparent 60%), #fff; }
.blog-hero h1 { font-size: clamp(3rem, 9vw, 6.2rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; margin: 0 0 1.4rem; color: var(--ink); }
.blog-hero .deck { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 0 auto 1.8rem; }
.blog-hero .deck a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-links { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin: 0; }
.hero-links a { color: var(--ink); font-size: .98rem; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.blog-hero .small { margin: 1.4rem 0 0; }

.blog-list { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.bcard { display: flex; flex-direction: column; border: 1px solid rgba(15, 23, 42, .1); background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.bcard:hover { border-color: rgba(15, 23, 42, .4); transform: translateY(-2px); }
.bcard .cover { aspect-ratio: 16 / 9; border-bottom: 1px solid rgba(15, 23, 42, .08); }
.bcard .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.bcard .label { margin-bottom: .7rem; }
.bcard h3 { font-size: 1.7rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 .7rem; color: var(--ink); }
.bcard p { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 0 0 1.2rem; flex: 1; }
.bcard .arrow { align-self: flex-start; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: .95rem; }

/* ---------- post ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.progress i { display: block; height: 100%; width: 0; background: #0f172a; }
.post-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 2.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; }
.post-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 500; letter-spacing: -.055em; line-height: 1; margin: 0 0 1.3rem; color: var(--ink); text-wrap: balance; }
.post-head .deck { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); margin: 0 0 1.4rem; max-width: 58ch; }
.byline { font-size: .95rem; color: var(--muted); margin: 0; }
.byline strong { color: var(--ink); font-weight: 600; }
.byline a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-cover { margin-bottom: 3rem; border: 1px solid rgba(15, 23, 42, .09); }
.post-cover .cover { aspect-ratio: 21 / 9; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(15, 23, 42, .09); background: rgba(255, 255, 255, .55); }
.facts div { padding: 1rem 1.2rem; }
.facts div + div { border-left: 1px solid rgba(15, 23, 42, .09); }
.facts dt { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.facts dd { margin: 0; font-size: 1rem; color: var(--ink); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div + div { border-left: 0; border-top: 1px solid rgba(15, 23, 42, .09); } }

.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 220px; gap: clamp(2rem, 5vw, 4rem); justify-content: center; align-items: start; padding: 0 var(--container-pad, 1.5rem) 4rem; }
.toc { position: sticky; top: 92px; font-size: .9rem; border-left: 1px solid var(--rule); padding-left: 1rem; }
.toc p { font-size: .8rem; color: var(--muted); margin: 0 0 .7rem; }
.toc a { display: block; padding: .3rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on { font-weight: 600; }
@media (max-width: 980px) { .post-layout { grid-template-columns: minmax(0, 720px); } .toc { display: none; } }

.prose { font-size: 1.14rem; line-height: 1.75; color: #1e293b; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; margin: 3.4rem 0 .4rem; color: var(--ink); scroll-margin-top: 90px; }
.prose h2 .anchor { color: var(--muted); opacity: 0; text-decoration: none; margin-left: .5rem; font-weight: 400; }
.prose h2:hover .anchor { opacity: .8; }
.prose h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin: 1.8rem 0 .1rem; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: #94a3b8; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose li { margin: .5rem 0; padding-left: .2rem; }
.prose li::marker { color: #94a3b8; }
.prose code { font: 500 .86em var(--font-mono, monospace); background: #f1f5f9; border: 1px solid #e2e8f0; padding: .12em .38em; border-radius: 3px; color: #0f172a; }
.prose pre { background: #090d14; color: #e2e8f0; border: 1px solid #1e293b; padding: 1.2rem 1.4rem; overflow-x: auto; font-size: .9rem; line-height: 1.65; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; border-top: 1px solid var(--rule); }
.prose th { text-align: left; font-weight: 500; font-size: .85rem; color: var(--muted); padding: .8rem .5rem; border-bottom: 1px solid var(--rule); }
.prose td { padding: .95rem .5rem; border-bottom: 1px solid var(--rule); }
.prose td:last-child, .prose th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.takeaways { background: linear-gradient(160deg, #f1f5fa 0%, #e3ebf6 100%); border: 1px solid rgba(15, 23, 42, .09); padding: 1.4rem 1.6rem 1.5rem; margin: 0 0 2.4rem; font-size: 1.05rem; line-height: 1.6; }
.takeaways h2 { font-size: 1.05rem !important; font-weight: 600 !important; letter-spacing: -.01em !important; margin: 0 0 .7rem !important; }
.takeaways ul { margin: 0; padding-left: 1.2rem; list-style: disc; }
.takeaways li { margin: .45rem 0; }
.bfaq { margin-top: 3.4rem; }
.bfaq details { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.bfaq details:first-of-type { border-top: 1px solid var(--rule); margin-top: 1rem; }
.bfaq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.12rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.bfaq summary::-webkit-details-marker { display: none; }
.bfaq summary::after { content: "+"; color: var(--muted); font-size: 1.5rem; line-height: 1; font-weight: 300; }
.bfaq details[open] summary::after { content: "\2212"; }
.bfaq details p { margin: .8rem 0 0; font-size: 1.05rem; color: #334155; }

.bcta { margin: 4rem 0 0; padding: clamp(1.8rem, 4vw, 3rem); background: #0a1020; color: #fff; }
.bcta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 .7rem; letter-spacing: -.045em; }
.bcta p { color: #aab4c5; max-width: 50ch; margin: 0 0 1.4rem; font-size: 1.05rem; }
.bcta .row { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.bcta .go { background: #fff; color: #0a1020; padding: .8rem 1.4rem; font-weight: 600; text-decoration: none; border-radius: 4px; }
.bcta .alt { color: #fff; text-decoration: none; border-bottom: 1px solid #fff; padding-bottom: 2px; }

.more { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem); background: #f8fafc; border-top: 1px solid var(--rule); }
.more h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.05em; margin: 0 0 1.8rem; }

/* ---------- roadmap ---------- */
.road-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.5rem; }
.road-col { border: 1px solid rgba(15, 23, 42, .09); padding: clamp(1.6rem, 3vw, 2.4rem); }
.road-col h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.05em; margin: 0 0 1.4rem; }
.road-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.road-col li { line-height: 1.55; color: #1e293b; padding-top: 1rem; border-top: 1px solid rgba(15, 23, 42, .1); }
.road-col li:first-child { border-top: 0; padding-top: 0; }
.road-col li strong { color: var(--ink); font-weight: 600; }
.road-col a, .road-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.road-note { color: var(--muted); max-width: 70ch; margin: 1.6rem 0 0; line-height: 1.6; }

/* header and cover share the width of the text + contents column below them */
.post-head .narrow, .post-cover.narrow { width: min(1004px, 100% - 2 * var(--container-pad, 1.5rem)); }
.post-head h1, .post-head .deck, .crumbs, .byline { max-width: 820px; }
@media (max-width: 1060px) { .post-head .narrow, .post-cover.narrow { width: min(720px, 100% - 2 * var(--container-pad, 1.5rem)); } }
