/* Labs pages. Uses tokens and chrome from landing_v7.css. */
.reading-progress{position:fixed;top:0;left:0;height:3px;background:var(--violet);z-index:30;width:0}
.doc{padding:28px 0 72px}
.doc-title{font-size:44px;line-height:1.18;font-weight:900;letter-spacing:-.02em;margin:14px 0 18px;max-width:18em}
.page-lead{max-width:40em;margin-bottom:36px}
.crumbs{font-family:ui-monospace,Menlo,monospace;font-size:13px;color:var(--muted);margin-bottom:18px}
.crumbs a{color:var(--vtext)}
.byline{font-family:ui-monospace,Menlo,monospace;font-size:13px;color:var(--muted);margin:0 0 18px}
.lede{font-size:20px;line-height:1.65;border-left:3px solid var(--violet);padding-left:16px;margin:0 0 18px;color:#3C3E4C;max-width:40em}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.tags span,.article-meta-tag{font-size:13px;font-weight:700;color:var(--vtext);background:var(--vlight);padding:3px 10px}
.lab .meta{display:block;margin-top:12px;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--muted)}
.docgrid{display:grid;grid-template-columns:210px minmax(0,760px);gap:40px;align-items:start;justify-content:center}
.docgrid.solo{grid-template-columns:minmax(0,760px)}
.toc{position:sticky;top:96px}
.toc .toc-label{font-family:ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.toc-link{display:block;padding:6px 0 6px 12px;border-left:2px solid transparent;font-size:13px;line-height:1.45;color:var(--muted);text-decoration:none}
.toc-link.toc-sub{padding-left:22px;font-size:12px}
.toc-link.active,.toc-link:hover{color:var(--vtext);border-left-color:var(--violet)}
.article-body{font-size:17.5px;line-height:1.75;color:#3C3E4C;min-width:0;max-width:760px}
.article-body h2{font-size:28px;line-height:1.3;font-weight:800;letter-spacing:0;margin:2.4rem 0 .8rem;padding-bottom:.4rem;border-bottom:1px solid var(--line);scroll-margin-top:96px}
.article-body h3{font-size:22px;line-height:1.35;font-weight:750;letter-spacing:0;margin:1.6rem 0 .55rem;scroll-margin-top:96px}
.article-body h4{font-size:18px;margin:1.2rem 0 .4rem}
.article-body p{margin:0 0 1.05rem}
.article-body a{color:var(--vtext);text-decoration:underline;text-underline-offset:2px}
.article-body ul,.article-body ol{margin:0 0 1.05rem;padding-left:1.35em}
.article-body ul{list-style:disc}
.article-body ol{list-style:decimal}
.article-body li{margin:.3rem 0}
.article-body li::marker{color:var(--violet)}
.article-body strong{color:var(--ink);font-weight:650}
.article-body hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
.article-body img,figure img,.article-img img{max-width:100%;height:auto}
.article-img{margin:1.2rem 0 1.6rem;border:1px solid var(--line);background:#fff}
.article-img figcaption,.figcap{font-family:ui-monospace,Menlo,monospace;font-size:12px;line-height:1.55;color:var(--muted);padding:10px 14px}
.article-body .katex-display{overflow-x:auto;overflow-y:hidden;margin:1rem 0}
.table-scroll,.article-body table{max-width:100%}
.table-scroll{overflow-x:auto;border:1px solid var(--line);margin:1rem 0 1.4rem;background:#fff}
.article-body table,.article-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5;margin:1rem 0 1.4rem}
.table-scroll table{margin:0}
.article-body th,.article-body td,.article-table th,.article-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.article-body th,.article-table th{background:var(--vlight);color:var(--ink);font-weight:700}
.article-body code{font-family:ui-monospace,Menlo,monospace;font-size:.92em;background:var(--vlight);padding:0 .25em}
.code-block,.arch-block{background:#20212A;color:#E7E5F5;border-radius:0;padding:1.2rem 1.3rem;font-family:ui-monospace,Menlo,monospace;font-size:13px;line-height:1.65;overflow-x:auto;margin:1rem 0 1.5rem;white-space:pre;position:relative}
.code-block-label{position:absolute;top:8px;right:12px;font-size:10px;color:rgba(201,189,255,.55);letter-spacing:.06em;text-transform:uppercase}
.code-block .kw{color:#C9BDFF}.code-block .str{color:#F3C6A5}.code-block .num{color:#F7E3A1}.code-block .cm{color:#8B8DA0}.code-block .fn{color:#E7E5F5}.code-block .var{color:#F27C72}
.note,.en-summary{border:1px solid var(--line);background:#fff;padding:14px 16px;margin:0 0 1.2rem;font-size:15px;line-height:1.65}
.note{border-color:#E4D9FF;background:var(--vlight)}
.ex-tag{display:inline-flex;font-family:ui-monospace,Menlo,monospace;font-size:11px;padding:1px 7px;border:1px solid #E4D9FF;background:#fff;color:var(--vtext);white-space:nowrap;vertical-align:middle}
.layer-stack{display:flex;flex-direction:column;gap:10px;margin:.5rem 0 1rem}
.layer{display:grid;grid-template-columns:52px 1fr;gap:8px 12px;background:#fff;border:1px solid var(--line);border-left-width:4px;padding:14px 16px}
.layer b{display:block;color:var(--ink);font-size:16px}
.layer p{margin:0;font-size:15px}
.layer-no{font-family:ui-monospace,Menlo,monospace;font-size:12px;font-weight:700;color:var(--vtext)}
.layer-adapt{border-left-color:#5534D6}.layer-data{border-left-color:#7453F6}.layer-prior{border-left-color:#A891FF}.layer-mech{border-left-color:#20212A}
.article-body ol.kernel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:.4rem 0 1.2rem;padding:0;list-style:none}
.article-body ol.kernel li{list-style:none;margin:0;padding:10px 12px;background:#fff;border:1px solid var(--line);font-size:14px;color:var(--ink)}
.article-body ol.kernel li::marker{content:none}
.kernel .k{display:block;font-family:ui-monospace,Menlo,monospace;font-size:10px;color:var(--muted)}
.article-body ol.spiral{list-style:none;margin:.4rem 0 1.2rem;padding:0}
.article-body ol.spiral li{list-style:none;margin:0;padding:0 0 0 26px;position:relative}
.article-body ol.spiral li::marker{content:none}
.article-body ol.spiral li::before{content:"";position:absolute;left:6px;top:18px;bottom:-6px;width:2px;background:linear-gradient(#7453F6,#20212A)}
.article-body ol.spiral li:last-child::before{display:none}
.spiral .node{background:#fff;border:1px solid var(--line);padding:12px 14px;margin-bottom:10px}
.spiral .dot{position:absolute;left:0;top:14px;width:14px;height:14px;border-radius:50%;border:2px solid var(--violet);background:#fff}
.spiral b{display:block;color:var(--ink)}
.spiral p{margin:0;font-size:15px}
.split-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:.4rem 0 1.2rem}
.split-2 article{background:#fff;border:1px solid var(--line);padding:14px 16px}
.split-2 h3{margin-top:0}
.share-bar{display:flex;align-items:center;gap:10px}
.share-btn{width:36px;height:36px;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.share-btn:hover{border-color:var(--violet);color:var(--vtext)}
.article-body .flex{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.article-body .flex-col{flex-direction:column;align-items:flex-start}
.article-body .justify-between{justify-content:space-between;width:100%}
.article-body .items-start{align-items:flex-start}
.article-body .mt-6{margin-top:1.5rem}
.article-body .mt-8{margin-top:2rem}
.article-body .mt-10{margin-top:2.5rem}
.article-body .mb-4{margin-bottom:1rem}
.article-body .pt-6{padding-top:1.5rem}
.article-body .border-t{border-top:1px solid var(--line)}
.article-body .text-sm{font-size:14px}
.article-body .text-xs{font-size:12px;line-height:1.5}
.article-body .font-semibold{font-weight:700;color:var(--ink)}
.article-body .font-mono{font-family:ui-monospace,Menlo,monospace}
.article-body .text-slate-400,.article-body .text-slate-500{color:var(--muted)}
.article-body .text-slate-700,.article-body .text-slate-800{color:var(--ink)}
.article-body .inline-flex{display:inline-flex;align-items:center;gap:8px;color:var(--vtext);text-decoration:none;font-family:ui-monospace,Menlo,monospace;font-size:14px}
.article-body .inline-flex svg,.share-btn svg{width:16px;height:16px}
.article-body .rounded-full{width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--violet);color:#fff;font-weight:700;flex:none}
.article-body blockquote{border-left:3px solid var(--violet);background:var(--vlight);padding:12px 16px;margin:1rem 0 1.2rem}
.article-body blockquote p{margin:0}
.article-table-wrap{overflow-x:auto;border:1px solid var(--line);margin:1rem 0 1.4rem;background:#fff}
.article-table-wrap .article-table{margin:0}
.github-link{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;background:var(--ink);color:#fff;font-family:ui-monospace,Menlo,monospace;font-size:13px;text-decoration:none}
.article-body a.github-link{color:#fff;text-decoration:none}
.github-link:hover{background:var(--vtext)}
.jsonl-block{background:#20212A;color:#E7E5F5;padding:1.2rem 1.3rem;font-family:ui-monospace,Menlo,monospace;font-size:12px;line-height:1.7;overflow-x:auto;margin:1rem 0 1.4rem;white-space:pre;max-width:100%}
.jsonl-block .json-key{color:#C9BDFF}
.jsonl-block .json-str{color:#F3C6A5}
.jsonl-block .json-num{color:#F7E3A1}
.severity-chain{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:1rem 0 1.2rem;font-family:ui-monospace,Menlo,monospace;font-size:12px}
.severity-chip{padding:6px 12px;font-weight:700}
.severity-arrow{color:var(--muted);padding:0 4px}
.sev-nominal{background:#E7F6EE;color:#157A45}
.sev-caution{background:#FFF6D8;color:#8A6A10}
.sev-alert{background:#FFE8DC;color:#B4532A}
.sev-critical{background:#FDE8E6;color:#B4332A}
.gradient-dual{color:var(--violet)}
br.hidden{display:none}
.doc-hero{padding:28px 0 8px}
.doc-intro{max-width:800px}
.crumbs,.byline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.byline .w-px{width:1px;height:12px;background:var(--line);display:inline-block}
.lablist{display:flex;flex-direction:column;gap:18px}
.labrow{display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid var(--line);color:inherit;text-decoration:none;min-width:0}
.labrow:hover{border-color:var(--violet)}
.labrow .ph{background:#fff;border-right:1px solid var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:190px}
.labrow img{width:100%;height:210px;object-fit:cover}
.labrow .ph.contain img{object-fit:contain;padding:16px;background:#fff}
.labrow .bd{padding:22px 26px 20px;min-width:0}
.labrow h2{font-size:24px;line-height:1.35;font-weight:800;letter-spacing:0;margin:10px 0}
.labrow p{font-size:16px;line-height:1.6;color:#3C3E4C;margin:0}
.labrow .meta{display:flex;justify-content:space-between;gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--muted)}
.labrow .meta b{color:var(--vtext);font-weight:700}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media (min-width:720px){br.hidden{display:inline}}
@media (min-width:640px){
  .article-body .sm\:flex-row{flex-direction:row;align-items:center}
  .article-body .sm\:items-center{align-items:center}
}
@media (max-width:960px){
  .docgrid,.split-2,.article-body ol.kernel{grid-template-columns:1fr}
  .toc{position:static;margin-bottom:18px}
  .doc-title{font-size:32px}
}
@media (max-width:760px){
  .labrow{grid-template-columns:1fr}
  .labrow .ph{border-right:0;border-bottom:1px solid var(--line);min-height:0}
  .labrow img{height:200px}
  .doc-title{font-size:32px}
}
@media (max-width:700px){
  .table-scroll{overflow:visible;border:0}
  .table-scroll table{min-width:0}
  .table-scroll thead{display:none}
  .table-scroll table,.table-scroll tbody,.table-scroll tr,.table-scroll td{display:block;width:auto;white-space:normal}
  .table-scroll tr{background:#fff;border:1px solid var(--line);margin:0 0 10px;padding:10px 12px}
  .table-scroll td{border:0;padding:4px 0}
  .table-scroll td::before{content:attr(data-label);display:block;font-family:ui-monospace,Menlo,monospace;font-size:10px;color:var(--muted)}
}
