/* region RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* endregion */

/* region ROOT_VARIABLES */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #f0f1f3;
    --text-primary: #1b1b1e;
    --text-secondary: #6c6c6c;
    --text-muted: #868e96;
    --border-color: #e9ecef;
    --link-color: #2a6496;
    --link-hover: #1a4a73;
    --nav-active: #2a6496;
    --accent: #2a6496;
    --accent-subtle: #f0f6fc;
    --code-bg: #f6f8fa;
    --code-border: #e1e4e8;
    --sidebar-bg: #f6f8fa;
    --sidebar-width: 260px;
    --toc-width: 240px;
    --font-main: 'Noto Sans Math', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-math: 'Noto Sans Math', 'Cambria Math', 'STIX Two Math', serif;
}

[data-theme="dark"] {
    --bg-primary: #1b1b1e;
    --bg-secondary: #242428;
    --bg-tertiary: #2c2c32;
    --text-primary: #d3d3d4;
    --text-secondary: #868e96;
    --text-muted: #6c6c6c;
    --border-color: #343438;
    --link-color: #6db3f2;
    --link-hover: #8cc6f7;
    --nav-active: #6db3f2;
    --accent: #6db3f2;
    --accent-subtle: #1e2d3d;
    --code-bg: #242428;
    --code-border: #343438;
    --sidebar-bg: #242428;
}
/* endregion */

/* region BASE */
body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    min-height: 100vh;
}
/* endregion */

/* region SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.25rem 1.25rem;
    text-align: center;
}

.sidebar-logo-symbol {
    display: block;
    font-size: 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    transition: color 0.15s;
}

.sidebar-logo-symbol:hover {
    color: var(--accent);
    text-decoration: none;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.sidebar-author {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.4;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
}

.nav-group {
    margin-bottom: 1.25rem;
}

.nav-group-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.2rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.35rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: color 0.15s, background 0.15s;
    line-height: 1.5;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-nav a.active {
    color: var(--nav-active);
    font-weight: 500;
}

.sidebar-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-social {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.sidebar-social:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-bmc {
    display: flex;
    align-items: center;
}

.sidebar-bmc img {
    height: 28px;
    width: auto;
    border-radius: 4px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.65rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: var(--font-main);
    transition: all 0.15s;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
/* endregion */

/* region MAIN_WRAPPER */
.main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.main-body {
    flex: 1;
    min-width: 0;
    display: flex;
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 2rem 2.5rem;
}

.main-content article {
    padding: 0;
}

/* Home page: wider content, centered */
.home-content {
    max-width: 720px;
}
/* endregion */

/* region MOBILE_TOPBAR */
.mobile-topbar {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
}

.hamburger-icon::before { top: -6px; }
.hamburger-icon::after { top: 6px; }
/* endregion */

/* region SIDEBAR_OVERLAY */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
}

.sidebar-overlay.active {
    display: block;
}
/* endregion */

/* region PAGE_NAVBAR */
.page-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2.5rem;
    height: 40px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
}

.page-navbar-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.page-navbar-crumbs li {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.page-navbar-crumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.45rem;
    color: var(--border-color);
    font-size: 0.8rem;
}

.page-navbar-crumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.page-navbar-crumbs a:hover {
    color: var(--accent);
    text-decoration: none;
}

.page-navbar-crumbs li[aria-current="page"] {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Notebook toolbar — right-aligned controls in the page navbar */
.notebook-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.notebook-run-all {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: opacity 0.15s, transform 0.15s;
}

.notebook-run-all:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.notebook-kernel-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    background: rgba(38, 166, 154, 0.12);
    color: #26a69a;
    transition: color 0.2s, background 0.2s;
}

.notebook-kernel-status.kernel-busy {
    background: rgba(255, 167, 38, 0.15);
    color: #ffa726;
}

.notebook-kernel-status.kernel-done {
    background: rgba(38, 166, 154, 0.2);
    color: #26a69a;
}

/* Cell numbers in article headings */
article .nb-cell-number {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 0.35em;
}
h1 .nb-cell-number { font-size: 0.55em; }
h2 .nb-cell-number { font-size: 0.7em; }
/* endregion */

/* region TYPOGRAPHY */
h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

ul, ol {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.3rem;
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: var(--accent-subtle);
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}
/* endregion */

/* region CODE */
code {
    font-family: var(--font-mono);
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 0.15em 0.35em;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--text-primary);
    word-break: break-word;
}

pre {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    line-height: 1.6;
    tab-size: 4;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    word-break: normal;
}

/* Let highlight.js own the background on highlighted blocks */
pre code.hljs {
    background: transparent;
    padding: 0;
}
/* endregion */

/* region TEXT_ENHANCEMENTS */
strong {
    font-weight: 600;
    color: var(--text-primary);
}

em {
    font-style: italic;
}

del, s {
    text-decoration: line-through;
    color: var(--text-secondary);
}

mark {
    background: #fef08a;
    color: #1f2937;
    padding: 0.1em 0.25em;
    border-radius: 3px;
}

[data-theme="dark"] mark {
    background: #854d0e;
    color: #fef3c7;
}

kbd {
    font-family: var(--font-mono);
    font-size: 0.8em;
    padding: 0.15em 0.4em;
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

abbr[title] {
    text-decoration: underline dotted var(--text-secondary);
    cursor: help;
}

small {
    font-size: 0.85em;
    color: var(--text-secondary);
}

sup, sub {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }
/* endregion */

/* region BRAND_WORDS */
.brand-delta,
.brand-persist,
.brand-full {
    font-weight: 600;
    color: var(--accent);
}

.brand-delta::before {
    content: "\0394";
    font-family: var(--font-math);
    font-size: 0.85em;
    margin-right: 0.1em;
    opacity: 0.7;
}

.brand-persist::before {
    content: "\25A1";
    font-family: var(--font-math);
    font-size: 0.8em;
    margin-right: 0.1em;
    opacity: 0.7;
}

.brand-full::before {
    content: "\0394/\25A1";
    font-family: var(--font-math);
    font-size: 0.85em;
    margin-right: 0.2em;
    opacity: 0.7;
}
/* endregion */

/* region DETAILS_SUMMARY */
details {
    border-bottom: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0;
    margin: 1rem 0;
    background: var(--bg-primary);
}

details[open] {
    padding-bottom: 0.75rem;
}

summary {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "\25b6";
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.7em;
    transition: transform 0.15s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details > *:not(summary) {
    padding: 0 1rem;
}
/* endregion */

/* region IMAGES */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

figure {
    margin: 1.5rem 0;
}

figcaption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    text-align: center;
}

.article-hero {
    margin: 1.5rem 0 2rem;
}
.article-hero img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
/* endregion */

/* region TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

th {
    background: var(--bg-tertiary);
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8rem;
}

td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}
/* endregion */

/* region RIGHT_SIDEBAR */
.toc-sidebar {
    width: var(--toc-width);
    max-width: var(--toc-width);
    flex-shrink: 0;
    padding: 2rem 1rem 2rem 0;
    position: sticky;
    top: 40px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

.toc-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0 0 0 1.25rem;
    margin-bottom: 0.75rem;
}

.toc-sidebar nav {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 1.25rem;
}

/* Vertical connecting line */
.toc-sidebar nav::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--border-color);
}

/* TOC links (On This Page) */
.toc-sidebar nav a {
    display: block;
    padding: 0.25rem 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.15s;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

/* Bar segment on the connecting line */
.toc-sidebar nav a::before {
    content: "";
    position: absolute;
    left: calc(-1.25rem + 5px);
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: transparent;
    transition: background 0.15s;
}

.toc-sidebar nav a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* Active TOC item — accent bar segment + text */
.toc-sidebar nav a.toc-active {
    color: var(--accent);
    font-weight: 500;
}

.toc-sidebar nav a.toc-active::before {
    background: var(--accent);
}

.toc-sidebar nav a.toc-h3 {
    padding-left: 0.85rem;
    font-size: 0.75rem;
}

/* Recently Updated links in sidebar */
.recent-sidebar-link {
    display: block;
    padding: 0.3rem 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
    line-height: 1.5;
}

.recent-sidebar-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}
/* endregion */

/* region PAGE_META */
.page-meta {
    font-style: italic;
    font-size: 1.0rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
    margin-bottom: 1.5rem;
}
/* endregion */

/* region PROSE_CONTENT */
.prose-content h3 {
    margin-top: 1.5rem;
}

.prose-content h3:first-child {
    margin-top: 0;
}

.prose-content p:first-child {
    margin-top: 0;
}

.prose-content ul {
    list-style-type: disc;
}

.prose-content ol {
    list-style-type: decimal;
}
/* endregion */

/* region ARCHIVE */

/* Hidden radio inputs for tab state */
.archive-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Tab bar */
.archive-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.archive-tab-label {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    user-select: none;
}

.archive-tab-label:hover {
    color: var(--text-primary);
}

/* Active tab indicator — pure CSS via radio state */
#tab-domain:checked ~ .archive-tabs label[for="tab-domain"],
#tab-year:checked ~ .archive-tabs label[for="tab-year"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Panel visibility — pure CSS via radio state */
.archive-panel {
    display: none;
}

#tab-domain:checked ~ .archive-panel-domain {
    display: block;
}

#tab-year:checked ~ .archive-panel-year {
    display: block;
}

/* Archive group heading */
.archive-group {
    margin-bottom: 1.5rem;
}

.archive-group h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.archive-count {
    font-size: 0.65rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 0.15em 0.5em;
    border-radius: 10px;
    line-height: 1;
}

/* Page list */
.archive-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.archive-list li {
    display: flex;
    align-items: baseline;
    gap: 0;
    padding: 0.4rem 0;
    border-bottom: none;
    margin-bottom: 0;
}

.archive-list a {
    font-size: 0.9rem;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.archive-list a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

/* Dot leaders */
.archive-list li::after {
    content: "";
    flex: 1;
    border-bottom: 1px dotted var(--border-color);
    margin: 0 0.75rem;
    min-width: 2rem;
    position: relative;
    bottom: 0.2em;
    order: 1;
}

.archive-list time {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    flex-shrink: 0;
    order: 2;
}

.archive-empty {
    color: var(--text-secondary);
    font-style: italic;
}
/* endregion */

/* region DOMAIN_LISTING */

.domain-summary {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.domain-listing {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.domain-listing li {
    display: flex;
    align-items: baseline;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: none;
    margin-bottom: 0;
}

.domain-listing-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.domain-listing-title::before {
    content: "\2022";
    color: var(--text-muted);
    margin-right: 0.6rem;
    font-size: 0.8em;
}

.domain-listing-title:hover {
    color: var(--link-hover);
    text-decoration: none;
}

/* Dot leaders connecting title to meta */
.domain-listing-meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.domain-listing-meta::before {
    content: "";
    flex: 1;
    border-bottom: 1px dotted var(--border-color);
    margin: 0 0.75rem;
    min-width: 2rem;
    position: relative;
    bottom: 0.2em;
}

.domain-listing-meta time {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    flex-shrink: 0;
}

/* endregion */

/* region LANDING_NAVIGATION */
.landing-categories h2,
.landing-recent h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.category-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.category-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.category-card-count {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    display: inline-block;
    padding: 0.15em 0.5em;
    border-radius: 4px;
}

/* Recent posts on landing */
.recent-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-list li {
    display: flex;
    align-items: baseline;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: none;
    margin-bottom: 0;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.recent-post-title:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.recent-post-meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.recent-post-meta::before {
    content: "";
    flex: 1;
    border-bottom: 1px dotted var(--border-color);
    margin: 0 0.75rem;
    min-width: 2rem;
    position: relative;
    bottom: 0.2em;
}

.recent-post-meta time {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    flex-shrink: 0;
}

.recent-post-domain {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.1em 0.45em;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
/* endregion */

/* region ARTICLE_LICENSE */
.article-license {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.article-license a {
    color: var(--text-muted);
    text-decoration: underline;
}

.article-license a:hover {
    color: var(--accent);
}

.article-footer-about {
    margin-top:  1.5rem;
    margin-bottom: 0.75rem;
}

.article-footer-about strong {
    color: var(--text-secondary);
}

.article-footer-cite summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.article-footer-cite summary:hover {
    color: var(--accent);
}

.article-footer-cite blockquote {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    font-style: italic;
}

.article-footer-bibtex {
    margin: 0.5rem 0 0;
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.72rem;
    line-height: 1.5;
}

.article-footer-bibtex code {
    background: none;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
}
/* endregion */

/* region POST_NAV */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-nav-prev,
.post-nav-next {
    min-height: 1px;
}

.post-nav-link {
    display: block;
    height: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    text-decoration: none;
    transition: border-color 0.15s;
}

.post-nav-link:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.post-nav-direction {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.post-nav-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.post-nav-next {
    text-align: right;
}
/* endregion */

/* region CHART_AREAS */
.chart-area {
    min-height: 280px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.chart-area svg {
    display: block;
    max-width: 100%;
}
/* endregion */

/* region DUCKDB_UI */
#duckdb-container {
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.duckdb-filters {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.duckdb-filters button {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.15s;
}

.duckdb-filters button:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.duckdb-filters button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

#duckdb-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

#duckdb-input {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 2.5rem;
}

#duckdb-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-subtle);
}

#duckdb-input::placeholder {
    color: var(--text-muted);
}

#duckdb-run {
    align-self: flex-end;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}

#duckdb-run:hover {
    opacity: 0.85;
}

#duckdb-status {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

#duckdb-status.duckdb-ready {
    color: #27ae60;
}

#duckdb-output {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
}

#duckdb-output table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin: 0;
}

#duckdb-output th {
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

#duckdb-output td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

#duckdb-output tr:last-child td {
    border-bottom: none;
}

#duckdb-output tr:hover td {
    background: var(--accent-subtle);
}

.duckdb-error {
    color: #c0392b;
    padding: 0.75rem;
    font-size: 0.82rem;
    margin: 0;
    white-space: pre-wrap;
}
/* endregion */

/* region RESPONSIVE */
@media (max-width: 1200px) {
    .toc-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 200;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
        height: 48px;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .mobile-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-primary);
    }

    .page-navbar {
        padding: 0 1rem;
        top: 48px;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .toc-sidebar {
        display: none;
    }

    /* Category cards — single column on mobile */
    .category-cards {
        grid-template-columns: 1fr;
    }

    /* Post nav — single column on mobile */
    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .mobile-topbar {
        padding: 0 0.75rem;
    }

    .mobile-title {
        font-size: 0.9rem;
    }

    .page-navbar {
        padding: 0 0.75rem;
    }
}
/* endregion */

/* region SCROLLBARS */
.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.toc-sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track,
.toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb,
.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover,
.toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
/* endregion */

/* region AI_SUMMARY */
.ai-summary {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--accent);
}
/* endregion */

/* region PERSONA_SELECTOR */
.persona-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.persona-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.persona-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-main);
}

.persona-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.persona-btn-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.prose-persona-hidden {
    display: none;
}

.persona-disclaimer {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.75rem;
    border-left: 2px solid var(--accent);
    background: var(--bg-secondary);
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
    opacity: 0.85;
}

.persona-disclaimer-hidden {
    display: none;
}
/* endregion */

/* region PAGEFIND */
.sidebar-search {
    padding: 0.75rem 1rem 0.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-search .pagefind-ui {
    --pagefind-ui-scale: 0.8;
    --pagefind-ui-primary: var(--accent);
    --pagefind-ui-text: var(--text-primary);
    --pagefind-ui-background: var(--bg-primary);
    --pagefind-ui-border: var(--border-color);
    --pagefind-ui-border-width: 1px;
    --pagefind-ui-border-radius: 6px;
    --pagefind-ui-font: var(--font-main);
}

.sidebar-search .pagefind-ui__search-input {
    font-size: 0.85rem;
}

.sidebar-search .pagefind-ui__result-link {
    font-size: 0.85rem;
}

.sidebar-search .pagefind-ui__result-excerpt {
    font-size: 0.78rem;
}

.sidebar-search .pagefind-ui__results-area {
    max-height: 50vh;
    overflow-y: auto;
}
/* endregion */

/* ─── Card Styles ─── */

/* region CARD_AI_TAKEAWAYS */

.ai-takeaways {
    background: var(--color-surface-alt, #f8f9fa);
    border-left: 3px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

[data-theme="dark"] .ai-takeaways {
    background: var(--color-surface-alt, #2a2a2e);
}

.ai-takeaways-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ai-takeaways-title {
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.ai-takeaways-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-takeaways-body li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ai-takeaways-body li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: normal;
}

.ai-takeaways-body p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

/* endregion */

/* region CARD_BIM_DATAFRAME */

/* region BIM_DATAFRAME */

/* ── Filter tabs ── */
.nb-filter-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.nb-filter-tab {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.nb-filter-tab.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(41, 98, 255, 0.08);
}
.nb-filter-tab .count { margin-left: 4px; opacity: 0.6; }

/* ── DataFrame wrapper ── */
.nb-dataframe-wrapper {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.nb-dataframe-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 11px;
}
.nb-dataframe-wrapper thead {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1;
}
.nb-dataframe-wrapper th {
    padding: 9px 10px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
}
.nb-dataframe-wrapper td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.nb-dataframe-wrapper tr:hover td { background: var(--bg-tertiary); }

/* ── Status dots ── */
.nb-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.nb-status-dot.pass { background: #26a69a; }
.nb-status-dot.warning { background: #ff9800; }
.nb-status-dot.fail { background: #ef5350; }

/* endregion */

/* endregion */

/* region CARD_BIM_METRICS */

/* region BIM_METRICS */

/* ── Output container ── */
.bim-output-container {
    padding: 4px 0;
}

/* ── Metrics grid ── */
.nb-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.nb-metric-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.nb-metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}
.nb-metric-value {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.nb-metric-value.pass { color: #26a69a; }
.nb-metric-value.fail { color: #ef5350; }
.nb-metric-value.warning { color: #ff9800; }
.nb-metric-value.neutral { color: var(--text-secondary); }

/* ── Compliance grid ── */
.nb-compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.nb-compliance-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
}
.nb-compliance-card h4 { font-size: 13px; margin-bottom: 8px; }
.nb-compliance-score {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.nb-compliance-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 6px;
}
.nb-badge-pass { background: rgba(38, 166, 154, 0.15); color: #26a69a; }
.nb-badge-warn { background: rgba(255, 152, 0, 0.15); color: #ff9800; }
.nb-badge-fail { background: rgba(239, 83, 80, 0.15); color: #ef5350; }

/* ── Heatmap ── */
.nb-heatmap-grid {
    display: grid;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
}
.nb-heatmap-cell {
    padding: 8px 4px;
    text-align: center;
    border-radius: 3px;
    color: white;
    font-weight: 600;
}
.nb-heatmap-header {
    padding: 6px 4px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 9px;
    text-transform: uppercase;
}

/* ── Clash table ── */
.nb-clash-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 11px;
    margin-top: 12px;
}
.nb-clash-table th {
    padding: 8px 10px;
    text-align: left;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 9px;
    text-transform: uppercase;
}
.nb-clash-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-color);
}

/* endregion */

/* region BIM_METRICS_RESPONSIVE */
@media (max-width: 768px) {
    .nb-compliance-grid { grid-template-columns: 1fr 1fr; }
    .nb-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
/* endregion */

/* endregion */

/* region CARD_BIM_VIEWER */

/* region BIM_VIEWER */
.bim-viewer-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Panels ── */
.nb-params-panel,
.nb-viewer-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nb-params-panel:hover,
.nb-viewer-panel:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.nb-params-panel { border-left: 3px solid #ff9800; }
.nb-viewer-panel { border-left: 3px solid var(--accent); }

.nb-params-toolbar,
.nb-viewer-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    flex-wrap: wrap;
}
.nb-params-badge,
.nb-viewer-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nb-params-badge { background: rgba(255, 152, 0, 0.12); color: #ff9800; }
.nb-viewer-badge { background: rgba(41, 98, 255, 0.12); color: var(--accent); }

/* ── 3D Viewer ── */
#nb-viewer-container {
    width: 100%;
    height: 500px;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    position: relative;
    background: #0a0a10;
}
#nb-viewer-canvas { display: block; width: 100%; height: 100%; }

#nb-info-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 260px;
    background: rgba(20, 20, 28, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    display: none;
    backdrop-filter: blur(8px);
    max-height: 460px;
    overflow-y: auto;
}
#nb-info-panel h4 { font-size: 13px; margin-bottom: 8px; color: var(--text-primary); }
#nb-info-panel .nb-info-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid rgba(42, 42, 58, 0.3);
}
#nb-info-panel .nb-info-row .label { color: var(--text-secondary); }
#nb-info-panel .nb-info-row .value {
    color: var(--text-primary);
    text-align: right;
    max-width: 140px;
    word-break: break-all;
}

.nb-viewer-toggles { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nb-view-toggle {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.nb-view-toggle.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(41, 98, 255, 0.08);
}

/* ── Parameters ── */
.nb-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}
.nb-param-group { display: flex; flex-direction: column; gap: 6px; }
.nb-param-group label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nb-param-group input[type="range"] {
    -webkit-appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    width: 100%;
}
.nb-param-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}
.nb-param-group select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
}
.nb-param-row { display: flex; justify-content: space-between; align-items: center; }
.nb-param-value { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.nb-btn-run {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid rgba(38, 166, 154, 0.25);
    cursor: pointer;
    font-weight: 600;
    background: rgba(38, 166, 154, 0.12);
    color: #26a69a;
    transition: all 0.15s;
    margin-left: auto;
}
.nb-btn-run:hover { background: rgba(38, 166, 154, 0.22); }
/* endregion */

/* region BIM_VIEWER_RESPONSIVE */
@media (max-width: 768px) {
    .nb-params-grid { grid-template-columns: 1fr; }
    #nb-viewer-container { height: 350px; }
}
/* endregion */

/* endregion */

/* region CARD_CHART_PAIR */

.chart-canvas-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* endregion */

/* region CARD_PROCESS_MAP */

.process-map {
    min-height: 200px;
    overflow-x: auto;
}
.process-map svg {
    display: block;
    margin: 0 auto;
}
.process-map .pm-node rect {
    rx: 6;
    ry: 6;
    stroke-width: 1.5;
}
.process-map .pm-node text {
    font-size: 12px;
    font-family: var(--font-sans, Inter, sans-serif);
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}
.process-map .pm-edge line {
    stroke-width: 1.5;
}
.process-map .pm-edge polygon {
    stroke: none;
}
.process-map .pm-edge-label {
    font-size: 10px;
    font-family: var(--font-sans, Inter, sans-serif);
    text-anchor: middle;
    dominant-baseline: central;
}

/* endregion */

/* ─── Engine Styles ─── */

/* region ENGINE_BIM_ENGINE */

/* region BIM_ENGINE_SHARED */

/* ── Chart titles (matches Chart.js plugin title defaults) ── */
.nb-chart-title {
    font: bold 12px/1 monospace;
    color: #8b8b9e;
    text-align: center;
    padding: 0 0 8px;
}

/* ── Chart grid layouts ── */
.nb-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nb-chartjs-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    height: 280px;
    position: relative;
}

/* endregion */

/* region BIM_ENGINE_RESPONSIVE */
@media (max-width: 768px) {
    .nb-chart-row { grid-template-columns: 1fr; }
}
/* endregion */

/* endregion */