/* Local AI Infrastructure Lab. Static, self-hosted presentation only. */
:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --surface: #f4f2ec;
  --white: #ffffff;
  --ink: #252e2b;
  --muted: #626c66;
  --line: #dcded5;
  --accent: #34624d;
  --accent-soft: #e9efe7;
  --code-bg: #202c28;
  --code-ink: #ecf0e9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; font-size: 17px; line-height: 1.75; }
button, input, summary { font: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px;
}
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 100; padding: .65rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: .7rem; }
.shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .shell { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font: 23px/1.25 var(--serif); color: var(--ink); text-decoration: none; }
.header-links { display: flex; gap: 25px; font-size: 13px; font-weight: 600; }
.header-links a { text-decoration: none; color: var(--muted); }
.header-links a:hover { color: var(--accent); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; align-items: baseline; margin-top: 25px; font-size: 12px; color: var(--muted); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs .separator { color: #8c948c; }
.hero { padding: 44px 0 36px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
h1 { font: 400 clamp(2.3rem, 4.1vw, 3.4rem)/1.12 var(--serif); letter-spacing: -.036em; margin: 0; max-width: 1020px; overflow-wrap: break-word; text-wrap: balance; }
.page-1 h1 { font-size: clamp(2.15rem, 3.4vw, 2.85rem); max-width: 1030px; }
.hero .subtitle { max-width: 840px; margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 23px; font-size: 12px; margin-top: 25px; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 600; }
.source-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; text-decoration: none; }
.source-link .file-mark { font: 11px/1.2 var(--mono); border: 1px solid var(--line); border-radius: 3px; padding: 3px 5px; color: var(--muted); }
.series-bar { position: sticky; top: 0; background: var(--paper); z-index: 30; border-block: 1px solid var(--line); }
.series-links { display: flex; gap: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.series-links a { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 650; padding: 17px 22px; border-bottom: 2px solid transparent; min-height: 55px; }
.series-links a:first-child { padding-left: 0; padding-right: 27px; }
.series-links a:hover { color: var(--accent); background: var(--accent-soft); }
.series-links a[aria-current=page] { color: var(--accent); border-bottom-color: var(--accent); }
.series-num { font: 11px/1 var(--mono); opacity: .8; }
.content-layout { display: grid; grid-template-columns: minmax(0, 850px) minmax(180px, 230px); gap: 64px; padding-top: 47px; align-items: start; }
.prose { min-width: 0; padding-bottom: 3rem; }
.prose > p:first-child { margin-top: 0; }
.prose h2 { font: 400 29px/1.26 var(--serif); letter-spacing: -.021em; margin: 2.8rem 0 1.1rem; padding-top: 1.7rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.prose h3 { font-size: 18px; line-height: 1.45; margin: 1.9rem 0 .65rem; font-weight: 700; scroll-margin-top: 5rem; }
.prose h4 { font-size: 16px; line-height: 1.5; margin: 1.6rem 0 .5rem; scroll-margin-top: 5rem; }
.prose p { margin: 0 0 1.15rem; }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: .8rem 0 1.3rem; }
.prose li { margin: .35rem 0; }
.prose p, .prose li, .prose td, .prose th { overflow-wrap: anywhere; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.prose :not(pre) > code { font: .84em/1.5 var(--mono); background: #eeeee6; color: #2c503e; border-radius: 3px; padding: .16em .34em; overflow-wrap: anywhere; }
.heading-anchor { font: 15px/1 var(--sans); margin-left: .55rem; opacity: 0; text-decoration: none; vertical-align: middle; }
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus { opacity: .8; }
.prose blockquote { margin: 1.4rem 0; padding: 1.05rem 1.3rem; background: var(--surface); border-left: 3px solid #819c7d; font-size: 16px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 1.4rem 0 1.6rem; border: 1px solid var(--line); border-radius: 5px; background: var(--white); scrollbar-width: thin; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.prose table.wide { min-width: 790px; }
.prose table.medium { min-width: 570px; }
.prose thead { background: #eeefe7; }
.prose th { text-align: left; vertical-align: bottom; padding: 12px 14px; color: #374e41; font-size: 12px; font-weight: 700; }
.prose td { padding: 12px 14px; vertical-align: top; border-top: 1px solid #e7e8e0; }
.prose tbody tr:nth-child(even) { background: #fbfbf7; }
.prose td:first-child { font-weight: 550; }
.prose td > a { font-weight: 600; }
.code-frame { min-width: 0; margin: 1.45rem 0 1.6rem; background: var(--code-bg); border: 1px solid #31433a; border-radius: 5px; color: var(--code-ink); overflow: hidden; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 15px; min-height: 42px; border-bottom: 1px solid #405046; }
.code-label { font: 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #bac9be; }
.copy-button { border: 1px solid #54665a; border-radius: 3px; background: transparent; color: #dce6d9; padding: 4px 11px; font-size: 11px; line-height: 1.6; cursor: pointer; }
.copy-button:hover { background: #34473b; }
.copy-button:focus-visible { outline-color: #d5e9ba; }
.prose pre { background: transparent; margin: 0; padding: 18px 21px 21px; overflow: auto; max-width: 100%; tab-size: 4; scrollbar-width: thin; }
.prose pre code { font: 12px/1.78 var(--mono); color: inherit; display: block; width: max-content; min-width: 100%; white-space: pre; }
/* Text blocks and command output remain unaltered; only syntax tokens are colored. */
.prose pre .c, .prose pre .c1, .prose pre .cm { color: #b1bdb2; }
.prose pre .s, .prose pre .s1, .prose pre .s2 { color: #d5dfaf; }
.prose pre .k, .prose pre .kc, .prose pre .kd, .prose pre .kn { color: #b6d7c9; }
.prose pre .nb, .prose pre .nf, .prose pre .nt { color: #bddcf0; }
.prose pre .m, .prose pre .mi, .prose pre .mf { color: #e6c8a4; }
.prose pre .o, .prose pre .p { color: #e1e7dd; }
.prose pre .err { background: none; color: inherit; }
.toc { position: sticky; top: 92px; min-width: 0; padding-left: 22px; border-left: 1px solid var(--line); }
.toc-label { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 750; margin: 0 0 14px; }
.toc nav { max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: thin; padding-right: 7px; }
.toc ol, .mobile-toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); padding: 6px 0; text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--accent); }
.toc a.is-active { font-weight: 700; }
.toc-source { display: block; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; text-decoration: none; }
.mobile-toc { display: none; }
.footnote-ref { font: 11px/1 var(--sans); vertical-align: super; margin-left: 2px; }
.footnote-ref a { text-decoration: none; }
.footnotes { font-size: 13px; line-height: 1.75; color: var(--muted); }
.footnotes ol { padding-left: 1.35rem; }
.footnotes li { padding-left: .15rem; margin: .8rem 0; scroll-margin-top: 6rem; }
.footnotes a { overflow-wrap: anywhere; }
.footnote { scroll-margin-top: 6rem; }
.footnote-backref { margin-left: .3rem; }
.article-pagination { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 34px; }
.article-pagination a { display: block; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 26px 0 30px; color: var(--muted); font-size: 12px; }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1500px) { .shell { width: min(1220px, calc(100% - 120px)); } .content-layout { grid-template-columns: minmax(0, 865px) minmax(200px, 235px); gap: 75px; } }
@media (max-width: 1040px) {
  .shell { width: calc(100% - 64px); }
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 850px; }
  .toc { display: none; }
  .mobile-toc { display: block; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
  .mobile-toc summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 11px 15px; min-height: 46px; }
  .mobile-toc nav { padding: 0 17px 15px; max-height: 50vh; overflow-y: auto; }
  .mobile-toc a { display: block; padding: 5px 0; font-size: 13px; line-height: 1.55; text-decoration: none; }
  .series-links a { padding-inline: 18px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  body { font-size: 16px; line-height: 1.75; }
  .site-header .shell { min-height: 70px; }
  .brand { font-size: 20px; }
  .header-links { gap: 10px; font-size: 11px; }
  .header-links .header-lab { display: none; }
  .breadcrumbs { margin-top: 19px; gap: 6px; font-size: 11px; }
  .hero { padding: 27px 0 27px; }
  .eyebrow { font-size: 9px; gap: 9px; letter-spacing: .12em; margin-bottom: 17px; }
  .eyebrow::before { width: 21px; }
  h1 { font-size: 36px; line-height: 1.14; letter-spacing: -.032em; }
  .page-1 h1 { font-size: 32px; }
  .hero .subtitle { font-size: 16px; line-height: 1.6; margin-top: 16px; }
  .byline { margin-top: 20px; font-size: 11px; gap: 8px 16px; }
  .byline .baseline { flex-basis: 100%; }
  .series-links a { font-size: 11px; padding: 14px 16px; min-height: 49px; }
  .series-links a:first-child { padding-right: 20px; }
  .series-num { font-size: 10px; }
  .content-layout { padding-top: 27px; }
  .prose h2 { font-size: 26px; line-height: 1.28; margin-top: 2.2rem; padding-top: 1.3rem; }
  .prose h3 { font-size: 17px; }
  .prose table { font-size: 12px; }
  .prose td, .prose th { padding: 10px 11px; }
  .prose pre { padding: 14px 15px 17px; }
  .prose pre code { font-size: 11px; }
  .prose blockquote { padding: .9rem 1rem; font-size: 15px; }
  .table-wrap { margin-block: 1.15rem 1.45rem; }
  .heading-anchor { opacity: .5; }
  .site-footer { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  :root { --paper: white; --ink: black; --muted: #444; }
  body { font-size: 10pt; line-height: 1.55; background: white; }
  .shell { width: 100%; max-width: none; }
  .site-header, .breadcrumbs, .series-bar, .toc, .mobile-toc, .copy-button, .heading-anchor, .site-footer, .skip-link { display: none !important; }
  .hero { padding: 0 0 18pt; }
  h1, .page-1 h1 { font-size: 25pt; }
  .hero .subtitle { font-size: 12pt; }
  .content-layout { display: block; padding-top: 0; }
  .prose h2 { font-size: 17pt; break-after: avoid; }
  .prose h3 { break-after: avoid; }
  .prose table, .prose table.wide, .prose table.medium { min-width: 0; font-size: 8pt; }
  .table-wrap { overflow: visible; }
  .code-frame { border-color: #bbb; background: #f5f5f5; color: black; break-inside: avoid; }
  .code-toolbar { border-color: #ccc; min-height: auto; padding: 5pt 8pt; }
  .code-label { color: #444; }
  .prose pre { overflow: visible; padding: 8pt; }
  .prose pre code { white-space: pre-wrap; overflow-wrap: anywhere; width: auto; min-width: 0; font-size: 8pt; }
  .prose pre code span { color: black !important; }
  .footnotes { font-size: 8pt; }
}
