/* Dark midnight-blue palette shared across the site. */
html[data-theme="dark"]{--page-bg:#0d1117;--theme-ink:#c9d1d9;--theme-border:#303d4d;background:#0d1117}
html[data-theme="dark"] body{background:#0d1117;color:#e6edf3}
html[data-theme="dark"] .header,html[data-theme="dark"] .notebook-page .header{background:linear-gradient(#0d1117f7 65%,#0d111700)}
html[data-theme="dark"] #particles{background:radial-gradient(ellipse at center,#1c304b50,transparent 65%)}
html[data-theme="dark"] .notebook-page{--reading-ink:#e6edf3;--reading-muted:#b3c2d1;--reading-soft:#9aafc2}
html[data-theme="dark"] .project-card,html[data-theme="dark"] .featured-note,html[data-theme="dark"] .article-card{background:linear-gradient(135deg,#263b5666,#161f2cd9);border-color:#526d8b55}
html[data-theme="dark"] .project-card:hover,html[data-theme="dark"] .featured-note:hover,html[data-theme="dark"] .article-card:hover{background:#223248;color:#f0f6fc;border-color:#7893b8}
html[data-theme="dark"] .notebook-sidebar button.active,html[data-theme="dark"] #filters button.active,html[data-theme="dark"] .entry-tags span,html[data-theme="dark"] .article-meta .tag{background:#263850;color:#dceaff;border-color:#405876}
html[data-theme="dark"] .notebook-sidebar button:hover,html[data-theme="dark"] .header nav .theme-toggle:hover{background:#243449;color:#f0f6fc}
html[data-theme="dark"] dialog{background:#161f2df5;color:#e6edf3;border-color:#40536b}
html[data-theme="dark"] dialog pre,html[data-theme="dark"] .markdown-body pre{background:#0b1320;color:#dbe8f5}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .tiny-note,html[data-theme="dark"] .section-label,html[data-theme="dark"] .time,html[data-theme="dark"] .demo-label,html[data-theme="dark"] .demo-note,html[data-theme="dark"] .art-label,html[data-theme="dark"] .notebook-breadcrumb,html[data-theme="dark"] .notebook-intro,html[data-theme="dark"] .hero-subtitle,html[data-theme="dark"] .featured-caption,html[data-theme="dark"] .featured-foot,html[data-theme="dark"] .entry-topline,html[data-theme="dark"] .entry-type,html[data-theme="dark"] .reader-date{color:#a7b9ca}
html[data-theme="dark"] .notebook-rule,html[data-theme="dark"] .collection-toolbar,html[data-theme="dark"] .notebook-entry,html[data-theme="dark"] .archive-toggle,html[data-theme="dark"] .notebook-footer,html[data-theme="dark"] .article-footer,html[data-theme="dark"] .stage-footer,html[data-theme="dark"] .timeline,html[data-theme="dark"] .search-wrap{border-color:#34465b}
html[data-theme="dark"] .header #language,html[data-theme="dark"] .header nav .theme-toggle{border-color:#40536b}
html[data-theme="dark"] .chapter-nav a{background:#50637a}html[data-theme="dark"] .chapter-nav a.active,html[data-theme="dark"] .down-arrow,html[data-theme="dark"] .board-icon,html[data-theme="dark"] .card-arrow{background-color:transparent;color:#b9d6fa}
html[data-theme="dark"] .chapter-nav a.active{background:#b9d6fa}
html[data-theme="dark"] .timeline article:before{background:#b9d6fa;box-shadow:0 0 0 5px #0d1117}
html[data-theme="dark"] .markdown-body{color:#e6edf3}
html[data-theme="dark"] .markdown-body h1,html[data-theme="dark"] .markdown-body h2,html[data-theme="dark"] .markdown-body h3,html[data-theme="dark"] .markdown-body h4,html[data-theme="dark"] .markdown-body th{color:#f0f6fc}
html[data-theme="dark"] .markdown-body blockquote{color:#c9d5e2;border-color:#58799f}
html[data-theme="dark"] .markdown-body th,html[data-theme="dark"] .markdown-body td{border-color:#40536b}
html[data-theme="dark"] .markdown-body a{color:#91bff5}
html[data-theme="dark"] ::selection{background:#315276;color:#f0f6fc}
@media(max-width:680px){html[data-theme="dark"] body .header{background:linear-gradient(#0d1117 85%,#0d111700)}}
/* Apply medium-bold weight to the actual text, including tables and quotations. */
.markdown-body,.markdown-body p,.markdown-body li,.markdown-body td,.markdown-body blockquote{font-weight:600;color:#121512}
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body th,.markdown-body strong{font-weight:700;color:#080a08}
html[data-theme="dark"] .markdown-body,html[data-theme="dark"] .markdown-body p,html[data-theme="dark"] .markdown-body li,html[data-theme="dark"] .markdown-body td,html[data-theme="dark"] .markdown-body blockquote{color:#e6edf3}
html[data-theme="dark"] .markdown-body h1,html[data-theme="dark"] .markdown-body h2,html[data-theme="dark"] .markdown-body h3,html[data-theme="dark"] .markdown-body h4,html[data-theme="dark"] .markdown-body th,html[data-theme="dark"] .markdown-body strong{color:#f0f6fc}
.notebook-page .entry-body p,.notebook-page .featured-copy p,.notebook-page #note-reader p,.notebook-page #note-reader li{font-weight:600;color:#171b17}
html[data-theme="dark"] .notebook-page .entry-body p,html[data-theme="dark"] .notebook-page .featured-copy p,html[data-theme="dark"] .notebook-page #note-reader p,html[data-theme="dark"] .notebook-page #note-reader li{color:#d8e2ec}
/* Restore regular reading text and emphasize only each article's opening quotation. */
.markdown-body,.markdown-body p,.markdown-body li,.markdown-body td,.markdown-body blockquote{font-weight:500;color:#191b18}
.markdown-body blockquote:first-of-type,.markdown-body blockquote:first-of-type p{font-weight:700;color:#111310}
html[data-theme="dark"] .markdown-body,html[data-theme="dark"] .markdown-body p,html[data-theme="dark"] .markdown-body li,html[data-theme="dark"] .markdown-body td,html[data-theme="dark"] .markdown-body blockquote{color:#efede6}
html[data-theme="dark"] .markdown-body blockquote:first-of-type,html[data-theme="dark"] .markdown-body blockquote:first-of-type p{color:#f0f6fc}
.notebook-page .entry-body p,.notebook-page .featured-copy p,.notebook-page #note-reader p,.notebook-page #note-reader li{font-weight:500;color:#30342e}
html[data-theme="dark"] .notebook-page .entry-body p,html[data-theme="dark"] .notebook-page .featured-copy p,html[data-theme="dark"] .notebook-page #note-reader p,html[data-theme="dark"] .notebook-page #note-reader li{color:#dedbd2}
