/* Nook — shared styles for the secondary pages (policies and any page made from page.html).
   Same tokens, header and footer as the front page; a prose column in the middle. */
:root {
  --canvas: #F5F5F5;
  --page: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --hairline: #E5E5E5;
  --text: #0A0A0A;
  --text-2: #525252;
  --text-3: #8A8A8A;
  --accent: #446D49;
  --accent-soft: rgba(68, 109, 73, 0.12);
  --header: 72px;
  --heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --page: #0A0A0A;
    --surface: #161616;
    --surface-2: #1F1F1F;
    --hairline: #2A2A2A;
    --text: #F5F5F5;
    --text-2: #A3A3A3;
    --text-3: #737373;
    --accent: #7FAE85;
    --accent-soft: rgba(127, 174, 133, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--page); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* Header, as on the front page. */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; display: block; }
.brand { color: var(--text); }
.brand .wordmark { width: 44px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 9px; font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background-color 0.2s ease; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-dark { background: var(--text); color: var(--page); }
.btn-dark:hover { background: color-mix(in srgb, var(--text) 86%, var(--page)); }

/* The page: a title, when it was last changed, and the text in a readable column. */
main.page { flex: 1; padding: 72px 0 96px; }
.page .wrap { max-width: 800px; }
.page h1 { font-family: var(--heading); font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.page .meta { margin: 14px 0 0; font-size: 14px; color: var(--text-3); }
.page .intro { margin: 28px 0 0; font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.45; color: var(--text-2); }
.prose { margin-top: 40px; }
.prose h2 { font-family: var(--heading); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 12px; }
.prose h3 { font-family: var(--heading); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.6; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose li::marker { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 14px; color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose .aside { margin: 20px 0; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text-2); font-size: 15px; }
.prose .aside b { color: var(--text); font-weight: 500; }
/* Something still to be filled in before publishing: visible on purpose. */
.todo { background: rgba(217, 119, 87, 0.16); color: #9A4B2E; border-radius: 4px; padding: 0 5px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .todo { background: rgba(217, 119, 87, 0.22); color: #E8A184; } }

/* Footer, as on the front page. */
.foot { padding: 0 0 24px; }
.foot-card { position: relative; border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface); padding: 40px 44px 32px; }
.totop { position: absolute; top: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--page); text-decoration: none; transition: background-color 0.2s ease; }
.totop:hover { background: color-mix(in srgb, var(--text) 86%, var(--page)); }
.totop svg { width: 18px; height: 18px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; padding-right: 72px; }
.foot-community { display: flex; flex-direction: column; gap: 28px; }
.fc { display: block; text-decoration: none; color: inherit; }
.fc h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--heading); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--text); }
.fc h3 svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.fc p { margin: 8px 0 0 32px; font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 52ch; }
.fc.soon h3, .fc.soon p { color: var(--text-3); }
.badge { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.foot-site .brand { color: var(--text); }
.foot-site .brand svg { width: 30px; height: 30px; }
.foot-site .brand .wordmark { width: 54px; height: auto; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin-top: 28px; }
@media (max-width: 1100px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols nav { display: flex; flex-direction: column; gap: 14px; }
.foot-cols a { text-decoration: none; font-family: var(--heading); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--text); transition: color 0.2s ease; }
.foot-cols a:hover { color: var(--accent); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
.foot-legal a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.foot-legal a:hover { color: var(--text); }
.foot-disclaimer { margin: 44px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.foot-copy { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

@media (max-width: 720px) {
  .nav { display: none; }
  main.page { padding: 48px 0 72px; }
  .foot-card { padding: 28px 22px 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; padding-right: 0; }
  .totop { top: 20px; right: 20px; width: 40px; height: 40px; }
  .foot-site { padding-top: 4px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Landing pages (tools/make-landing.py): a title block with a picture or a clip, a few sections,
   questions, and a closing band in the look of the front page's. Same tokens as everything above. */
main.land { flex: 1; }
.land .wrap { max-width: 1120px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.land-hero { padding: 64px 0 8px; }
.land-hero .head { max-width: 860px; }
.land h1 { font-family: var(--heading); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
.land .lead { margin: 24px 0 0; font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.015em; color: var(--text-2); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 16px; border-radius: 11px; }
.btn-quiet { background: transparent; border-color: var(--hairline); color: var(--text); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-light { background: #FFFFFF; color: #0A0A0A; }
.btn-light:hover { background: #F4F4F5; }
.btn .mark-ico { width: 20px; height: 20px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--text-3); }
.land-media { margin: 48px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); background: #000000; }
.land-media img, .land-media video { display: block; width: 100%; height: auto; }
.land-media figcaption { padding: 12px 16px; font-size: 13.5px; color: #A3A3A3; background: #000000; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 48px 0 0; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface); display: flex; flex-direction: column; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.gallery figcaption span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.land-sec { padding: 64px 0 8px; }
.land-sec h2 { font-family: var(--heading); font-weight: 800; font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0; max-width: 26ch; text-wrap: balance; }
.land-sec .sub { margin: 14px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text-2); max-width: 64ch; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.cells.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); padding: 22px 22px 20px; }
.cell .n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.cell h3 { font-family: var(--heading); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0 8px; }
.cell p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.cell code, .faqs code, .land-sec .sub code { font-family: var(--mono); font-size: 13.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.spec-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--hairline); line-height: 1.5; }
.spec tr:last-child td { border-bottom: 0; }
.spec th { font-size: 12.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.spec td { color: var(--text-2); }
.spec td:first-child { font-family: var(--heading); font-weight: 700; color: var(--text); white-space: nowrap; }
.faqs { margin-top: 20px; max-width: 820px; }
.faqs details { border-bottom: 1px solid var(--hairline); }
.faqs summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--heading); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.015em; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; flex: none; color: var(--text-3); font-weight: 500; }
.faqs details[open] summary::after { content: "\2212"; }
.faqs details p { margin: 0 0 18px; max-width: 68ch; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.faqs p a, .cell p a, .land-sec .sub a, .lost .intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.more a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.more a:hover { background: var(--surface-2); }
.land-band { padding: 72px 0 40px; }
.land-band .band { border-radius: 16px; background: #000000; color: #F5F5F5; padding: 64px 48px; text-align: center; }
.land-band h2 { font-family: var(--heading); font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.land-band p { margin: 14px auto 0; max-width: 58ch; color: #A3A3A3; line-height: 1.55; }
.land-band .cta-row { justify-content: center; }
/* A still of the coding agent at work: the front page's Code beat, without the motion. */
.code-card { padding: 20px; background: var(--surface); }
.code-card .cc-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.code-card .cc-head span { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.code-card .cc-ask { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-family: var(--mono); font-size: 13.5px; }
.code-card .cc-ask b { margin-right: 10px; font-family: var(--body); font-weight: 500; color: var(--text-3); }
.code-card .cc-tabs { display: flex; gap: 2px; margin-top: 14px; overflow: hidden; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.code-card .cc-tabs span { padding: 7px 12px; border-radius: 8px 8px 0 0; white-space: nowrap; }
.code-card .cc-tabs .on { background: #000000; color: #F5F5F5; }
.code-card ol { margin: 0; padding: 12px 0; list-style: none; overflow-x: auto; background: #000000; border-radius: 0 10px 10px 10px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #D4D4D4; }
.code-card li { display: flex; gap: 12px; padding: 0 16px; white-space: pre; }
.code-card li i { width: 1ch; font-style: normal; color: #737373; }
.code-card li.add { background: rgba(127, 174, 133, 0.14); }
.code-card li.add i { color: #7FAE85; }
.code-card li.del { background: rgba(217, 119, 87, 0.13); }
.code-card li.del i { color: #E8A184; }
.code-card .cc-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.code-card .cc-foot .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #5FA36A; }
/* The 404 page. */
.lost { flex: 1; padding: 96px 0; }
.lost .wrap { max-width: 800px; }
@media (max-width: 860px) {
  .cells, .cells.two { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .land-hero { padding: 40px 0 0; }
  .land-sec { padding: 48px 0 0; }
  .land-band { padding: 56px 0 24px; }
  .land-band .band { padding: 44px 22px; }
  .spec td:first-child { white-space: normal; }
}

/* The header marks the section a page belongs to (Labs, on its pages). */
.nav a[aria-current] { color: var(--text); }

/* Nook Labs (tools/make-labs.py): the index of notes, and each note. A note is a prose column with a
   few blocks of its own: the result up front, the setup, bar charts, code, figures. */
main.lab { flex: 1; }
.lab .wrap { max-width: 1120px; }
.lab-hero { position: relative; z-index: 0; padding: 64px 0 16px; }
.lab-hero::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%); }
.lab-hero .head { max-width: 820px; }
.lab h1 { font-family: var(--heading); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
.lab .lead { margin: 24px 0 0; font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.015em; color: var(--text-2); max-width: 62ch; }

/* The list of notes. */
.lab-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.lab-list li { border-bottom: 1px solid var(--hairline); }
.lab-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 26px 8px; text-decoration: none; color: inherit; border-radius: 12px; transition: background-color 0.2s ease; }
.lab-item:hover { background: var(--surface-2); }
.lab-item .no { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.lab-item h3 { margin: 0; font-family: var(--heading); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.lab-item p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); max-width: 70ch; }
.lab-item .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lab-item time { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hairline); font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--text-2); background: var(--surface); }
.tag.draft { border-color: transparent; background: rgba(217, 119, 87, 0.16); color: #9A4B2E; }
@media (prefers-color-scheme: dark) { .tag.draft { background: rgba(217, 119, 87, 0.22); color: #E8A184; } }

/* A note. */
.lab-post { padding: 56px 0 24px; }
.lab-post .wrap { max-width: 760px; }
.lab-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; font-size: 14px; color: var(--text-3); }
.lab-kicker .no { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.lab-post h1 { font-size: clamp(2.125rem, 4.6vw, 3rem); }
.lab-dek { margin: 20px 0 0; font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.015em; color: var(--text-2); }
.lab-byline { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 22px 0 0; padding: 0 0 28px; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--text-3); }
.lab-byline span + span::before { content: "\00B7"; margin-right: 14px; }
.lab-draft { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: rgba(217, 119, 87, 0.16); color: #9A4B2E; font-size: 14.5px; }
@media (prefers-color-scheme: dark) { .lab-draft { background: rgba(217, 119, 87, 0.22); color: #E8A184; } }
.lab-body { margin-top: 8px; }
.lab-body h2 { margin-top: 48px; }
.prose pre { margin: 20px 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px; background: #000000; color: #D4D4D4; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose blockquote { margin: 20px 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--accent); color: var(--text-2); }
.prose .spec-wrap { margin: 20px 0 24px; }
.spec th.num, .spec td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The result, up front: what the note found, in a sentence or three. */
.lab-result { margin: 28px 0; padding: 20px 22px; border-radius: 14px; background: var(--accent-soft); }
.lab-result > b { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.prose .lab-result p:last-child { margin-bottom: 0; }

/* The setup: every number in a note belongs to a machine, and this says which. */
.lab-rig { margin: 20px 0 28px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); overflow: hidden; }
.lab-rig > b { display: block; padding: 12px 18px; border-bottom: 1px solid var(--hairline); font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.lab-rig dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; }
.lab-rig dt, .lab-rig dd { margin: 0; padding: 11px 18px; border-top: 1px solid var(--hairline); font-size: 15px; line-height: 1.5; }
.lab-rig dt:first-of-type, .lab-rig dt:first-of-type + dd { border-top: 0; }
.lab-rig dt { color: var(--text-3); }
.lab-rig dd { color: var(--text); }

/* Bar charts: one measure, one colour, the value at the tip. make-labs.py turns
   <li data-value="8.2">CUDA build</li> into a bar; data-dim greys a baseline out. */
.lab-bars { margin: 24px 0 28px; padding: 20px 22px 18px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
.lab-bars figcaption { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.lab-bars figcaption b { display: block; font-family: var(--heading); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.015em; color: var(--text); }
.lab-bars ol { margin: 0; padding: 0; list-style: none; }
.prose .lab-bars li { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 14px; align-items: center; margin: 0; padding: 4px 0; font-size: 14.5px; line-height: 1.35; }
.lab-bars .bl { color: var(--text); }
.lab-bars .bt { display: flex; align-items: center; gap: 8px; min-height: 30px; border-left: 1px solid var(--hairline); }
.lab-bars .bt i { display: block; flex: none; height: 20px; width: calc((100% - 5.5rem) * var(--v)); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--accent); }
.lab-bars li[data-dim] .bt i { background: var(--text-3); opacity: 0.6; }
.lab-bars .bt b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lab-bars li:hover .bt i { filter: brightness(1.12); }
.lab-bars .src { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); }

/* A picture or a screenshot, with a caption. */
.lab-fig { margin: 24px 0 28px; }
.lab-fig img, .lab-fig video { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--hairline); }
.lab-fig figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }

/* The end of a note: how to tell us we got it wrong, and the notes either side. */
.lab-end { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.lab-end p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.lab-end p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.lab-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.lab-pager a { display: block; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; transition: background-color 0.2s ease; }
.lab-pager a:hover { background: var(--surface-2); }
.lab-pager span { display: block; font-size: 13px; color: var(--text-3); }
.lab-pager b { display: block; margin-top: 4px; font-family: var(--heading); font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; line-height: 1.3; }
.lab-pager .next { grid-column: 2; text-align: right; }

@media (max-width: 720px) {
  .lab-hero { padding: 40px 0 0; }
  .lab-post { padding: 36px 0 8px; }
  .lab-item { grid-template-columns: minmax(0, 1fr); padding: 22px 4px; }
  .lab-item time { order: -1; }
  .lab-item .no { display: none; }
  .lab-rig dl { grid-template-columns: minmax(0, 1fr); }
  .lab-rig dd { padding-top: 0; border-top: 0; }
  .prose .lab-bars li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px 0; }
  .lab-pager { grid-template-columns: minmax(0, 1fr); }
  .lab-pager .next { grid-column: auto; }
}
