/* Docs anatomy. The reference wins on chips, the orange count rule, hairlines and mono labels. Text stays at least 11px. Taps stay at least 44px. Orange is #FF5100 only. */
.docs-float{position:fixed;z-index:50;top:12px;left:16px;right:16px;display:flex;align-items:center;gap:8px;height:52px;padding:0 8px 0 16px;border-radius:14px;background:#0B0B0C;border:1px solid rgba(242,242,242,.18);color:var(--text)}
html.light .docs-float{background:#F2F2F2;border-color:rgba(10,10,10,.14)}
.docs-brand{display:flex;align-items:center;min-height:44px;margin-right:auto;text-decoration:none}
.docs-brand img{display:block;height:22px;width:auto;max-width:148px}
.nav-wash,.chip-band{display:none}
.docs-chips{display:none}
.docs-float-actions{display:flex;align-items:center;gap:8px}
.docs-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text);font:inherit;font-size:11px;font-weight:500}
.docs-icon::after{content:"";position:absolute;z-index:0;left:4px;top:4px;width:36px;height:36px;border:1px solid rgba(242,242,242,.28);border-radius:50%;background:transparent;pointer-events:none}
html.light .docs-icon::after{border-color:rgba(10,10,10,.2)}
.docs-icon:hover::after,.docs-icon:hover{background:transparent}
.docs-menu svg{position:relative;z-index:1;display:block}
.book{display:block;padding-top:76px}
.docs-cols{display:grid;grid-template-columns:252px minmax(0,1fr);gap:48px;align-items:start;margin-top:48px}
.book-main .wrap{max-width:1180px}
.index{padding-top:24px}
.dc-side-zone,.dc-side-ref{font-family:var(--mono);font-size:11px;font-weight:500;color:#FF5100;min-width:1.6em}
.index-sec .dc-side-zone{margin-right:8px}
.index-sec{position:relative;box-sizing:border-box;height:44px;min-height:44px;margin:0 0 -10.8px;padding:0 12px;background:none;font-family:var(--mono);font-size:11px;font-weight:500;color:var(--muted)}
.index-sec:hover{background:none}
.index-sec.on{color:var(--text)}
.index-group[data-group="Code Lab"] .index-sec.on{color:#FF5100}
.index-group[data-group="Code Lab"] a.nav-btn.on{color:#0B0B0C;background:#FF5100;text-decoration:none}
.chip-group{flex:none;display:inline-flex;align-items:center;height:44px;font-family:var(--mono);font-size:11px;font-weight:500;color:var(--muted)}
.index a.nav-btn{position:relative;box-sizing:border-box;gap:8px;height:44px;min-height:44px;margin:0 0 -8px;padding:0 12px;border-radius:0;border-bottom:0;font-size:13.5px;font-weight:400;color:var(--muted)}
.index a.nav-btn::after{content:"";position:absolute;left:12px;right:12px;top:4px;height:36px;border-bottom:1px solid rgba(242,242,242,.1);pointer-events:none}
html.light .index a.nav-btn::after{border-bottom-color:rgba(10,10,10,.1)}
.index a.nav-btn.on{background:none;color:var(--text);font-weight:500;text-decoration:underline;text-underline-offset:4px}
.card,.art-block,.example,.org-box,.cat,.swatch,.grid-diag,.table-scroll,.grid-format{background:transparent;border-radius:0;box-shadow:none}
.table-scroll th,.table-scroll td{background:transparent;border-bottom:1px solid rgba(242,242,242,.16)}
html.light .table-scroll th,html.light .table-scroll td{border-bottom-color:rgba(10,10,10,.12)}
.org-box{min-height:0;border-bottom:1px solid rgba(242,242,242,.16)}
.org-box::before,.org-stem{display:none}
.dc-lines{margin:8px 0 0}
.dc-line{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(0,1.4fr) auto;grid-template-areas:"n name meta copy";gap:8px 12px;align-items:start;min-height:44px;padding:6px 0;border-bottom:1px solid rgba(242,242,242,.12)}
.dc-line .n{padding-top:3px}
.dc-line .n{grid-area:n}
.dc-line b{grid-area:name}
.dc-line .k{grid-area:meta}
.dc-line .row-copy{grid-area:copy;align-self:start;align-items:flex-start;padding-top:2px}
html.light .dc-line{border-bottom-color:rgba(10,10,10,.1)}
.dc-line .n,.dc-line .k{font-family:var(--mono);font-size:11px;color:var(--muted)}
.dc-line b{font-size:15px;font-weight:500}
.dc-line .k{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-code{margin:12px 0 0;padding:16px;overflow:auto;border:1px solid rgba(242,242,242,.16);border-radius:0;background:none;color:var(--text);font-family:var(--mono);font-size:13px;line-height:1.5;white-space:pre}
.hero{padding:28px 0 8px}
.hero-grid{display:block}
.hero h1{font-family:Geist,system-ui,sans-serif;font-weight:500;font-synthesis:none;font-size:80px;line-height:.98;letter-spacing:-0.045em;max-width:14ch}
.band-head h2,.sub-head .sec-title{font-family:Geist,system-ui,sans-serif;font-weight:500;font-synthesis:none;font-size:30px;letter-spacing:-0.04em;line-height:1.02}
h3,.fold-h,.dc-sub,.h4,.sub-head h3,.fold-btn,.band-kicker{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:0;line-height:1.45;color:var(--muted)}
.band-kicker{margin:0 0 8px}
a.band-kicker{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--muted);text-decoration:none}
a.band-kicker span{color:#FF5100}
.fold-btn{width:auto;min-height:0;margin:0;padding:0;background:none}
.fold-ic{display:none}
.pg-kicker{display:flex;gap:12px;margin:0 0 16px;color:var(--muted);font-family:var(--mono);font-size:12px;font-weight:500;line-height:1.4}
.pg-lede{max-width:36rem;margin:20px 0 0;color:var(--muted);font-size:15px;font-weight:400;line-height:1.6}
.pg-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.cmd{display:flex;align-items:center;gap:12px;max-width:100%;min-height:44px;padding:0 8px 0 16px;border:1px solid rgba(242,242,242,.18);border-radius:8px;background:rgba(18,18,20,.7);color:var(--text);font-family:var(--mono);font-size:13px}
html.light .cmd{border-color:rgba(10,10,10,.14);background:#fff}
.cmd .prompt,.hero-code .prompt,.dc-line .prompt{color:#FF5100;flex:none}
.cmd-scroll{display:block;flex:1;min-width:0;overflow-x:auto;white-space:nowrap}
.hero-fig{display:flex;flex-direction:column;justify-content:center;min-height:280px;margin:28px 0 0;padding:20px 16px 12px;border-top:1px solid rgba(242,242,242,.16);border-bottom:1px solid rgba(242,242,242,.16);border-radius:0;background:none}
.an-rows{list-style:none;margin:0;padding:0}
.an-rows li{display:grid;grid-template-columns:minmax(0,1fr) 28px max-content;align-items:center;min-height:36px;gap:0}
.an-rows code{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--mono);font-size:13px;line-height:1.4;white-space:nowrap}
.an-rows .lead{height:1px;background:#FF5100;position:relative}
.an-rows .lead::before{content:"";position:absolute;left:0;top:-2px;width:5px;height:5px;border-radius:50%;background:#FF5100}
.an-rows .lab{font-family:var(--mono);font-size:11px;font-weight:500;color:var(--muted);padding-left:8px}
.hero-fig figcaption{margin:12px 0 0;font-family:var(--mono);font-size:11px;line-height:1.4;color:var(--muted)}
.pg-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:28px 0 0;padding:0}
.pg-facts div{padding:16px 0 0;border-top:1px solid rgba(242,242,242,.18)}
html.light .pg-facts div{border-top-color:rgba(10,10,10,.12)}
.pg-facts dt{margin:0;color:var(--muted);font-family:var(--mono);font-size:11px;font-weight:500}
.pg-facts dd{margin:8px 0 0;font-family:'Special Gothic',Geist,sans-serif;font-size:28px;font-weight:500;letter-spacing:-0.03em;line-height:1}
.dc-tb{display:inline-flex;align-items:stretch;margin:0 0 12px;border:1px solid rgba(242,242,242,.2);border-radius:6px;overflow:hidden;font-family:var(--mono);font-size:11px;font-weight:500}
html.light .dc-tb{border-color:rgba(10,10,10,.14)}
.dc-tb span,.dc-tb a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:var(--muted);text-decoration:none}
.dc-tb span:first-child{color:#FF5100}
.dc-count{display:flex;align-items:center;gap:12px;margin:8px 0 16px;color:#FF5100;font-family:var(--mono);font-size:11px;font-weight:500}
.dc-count .ground-toggle{margin:0 0 0 8px}
.dc-rule{flex:1;height:1px;background:#FF5100}
.page-tools,.quiet-note{display:none}
.logo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.logo-grid[data-ground="light"] .logo-tile[data-ground="dark"],
.logo-grid[data-ground="dark"] .logo-tile[data-ground="light"]{display:none}
.logo-tile,.photo-card{display:flex;flex-direction:column;min-width:0;padding:0;border-radius:0;background:transparent;overflow:visible}
.logo-tile .stage,.photo-frame{border:1px solid rgba(242,242,242,.16);border-radius:0}
.logo-tile .stage{display:flex;align-items:center;justify-content:center;aspect-ratio:3/2;padding:20px}
.logo-tile .stage img{max-width:78%;max-height:64%;object-fit:contain}
.logo-tile .stage.light{background:#FAFAFA}
.logo-tile .stage.dark{background:#0A0A0A}
.logo-tile .tile-end{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;min-height:44px;margin:0;padding:8px 0 0;border-bottom:1px solid rgba(242,242,242,.12);background:transparent}
.photo-card .lbl{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:44px;margin:0;padding:0;border-bottom:1px solid rgba(242,242,242,.12);background:transparent}
.logo-tile .meta{width:100%;min-width:0;padding:0}
.logo-tile .meta b{display:block;overflow:visible;font-size:15px;font-weight:500;line-height:1.3;white-space:normal;text-overflow:clip}
.photo-card .lbl b{display:block;flex:1;min-width:0;overflow:hidden;font-size:15px;font-weight:500;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.logo-tile .quiet-copy{align-self:flex-start;justify-content:flex-start;min-width:44px;min-height:44px;margin:0;padding:0}
.photo-card{min-width:0}
.quiet-copy,.row-copy{position:relative;display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:auto;flex:none;box-sizing:border-box;height:44px;min-height:44px;padding:0 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:#837F77;font-family:var(--mono);font-size:11px;font-weight:400;line-height:1.4;text-decoration:none;white-space:nowrap}
.row-miss{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--muted);font-family:var(--mono);font-size:11px;font-weight:400;line-height:1.4}
.motion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin-top:16px}
.motion-cell{min-width:0;border-radius:0;background:transparent}
.motion-open{display:block;width:100%;margin:0;padding:0;border:1px solid rgba(242,242,242,.16);border-radius:0;background:#141414;cursor:pointer}
html.light .motion-open{border-color:rgba(10,10,10,.16)}
.motion-stage{display:block;position:relative;aspect-ratio:16/9;height:auto;overflow:hidden;border-radius:0;background:#141414;contain:layout}
.ascii-stage,.photo-frame,.logo-tile .stage{contain:layout}
.piece-still{aspect-ratio:16/9;overflow:hidden}
.piece-still img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.motion-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#141414}
.motion-cap{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "cat copy";gap:0 8px;align-items:center;min-height:44px;padding:8px 0 4px;border-bottom:1px solid rgba(242,242,242,.12);background:transparent}
.motion-cap b{grid-area:name;min-width:0;font-size:15px;font-weight:500;line-height:1.3;white-space:normal}
.motion-cap .k{grid-area:cat;font-family:var(--mono);font-size:11px;color:var(--muted)}
.motion-cap .row-copy{grid-area:copy;align-self:center}
.motion-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#motionFull{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;background:#0B0B0C}
#motionFull[hidden]{display:none}
.motion-full-close{align-self:flex-end;height:44px;min-height:44px;margin:8px;padding:0 12px;border:0;background:transparent;color:var(--text);font:inherit;font-size:15px}
#motionFull iframe{flex:1;width:100%;border:0;background:#141414}
.map-h{margin:28px 0 8px;font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:0;line-height:1.45;color:var(--muted)}
.map-h-sp{margin-top:72px}
.quiet-copy:hover,.row-copy:hover{color:var(--text);border-color:rgba(242,242,242,.28)}
html.light .quiet-copy:hover,html.light .row-copy:hover{border-color:rgba(10,10,10,.2)}
.ground-toggle{position:relative;display:inline-flex;align-items:center;height:44px;margin:0 0 16px;border:0;overflow:visible}
.ground-toggle::before{content:"";position:absolute;left:0;right:0;top:8px;height:28px;border:1px solid rgba(242,242,242,.22);border-radius:6px;pointer-events:none}
html.light .ground-toggle::before{border-color:rgba(10,10,10,.16)}
.ground-toggle button{position:relative;z-index:1;min-height:44px;height:44px;padding:0 12px;border:0;border-radius:0;background:transparent;color:var(--muted);font-family:var(--mono);font-size:11px;font-weight:500}
.ground-toggle button[aria-pressed="true"]{background:transparent;color:#FF5100}
.grid.photos{grid-template-columns:repeat(3,minmax(0,1fr))}
.list{list-style:none;margin:24px 0 0;padding:0}
.list li{padding:14px 0;border-bottom:1px solid rgba(242,242,242,.16);font-size:15px;line-height:1.6;color:var(--text-body)}
html.light .list li{border-bottom-color:rgba(10,10,10,.12)}
.dc-row,.dc-piece{display:grid;grid-template-columns:minmax(140px,1.1fr) minmax(110px,.7fr) minmax(0,1.5fr) auto;gap:8px 16px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(242,242,242,.16);background:none}
.dc-piece{grid-template-areas:"name type desc copy"}
.dc-piece .piece-btn{grid-area:name}
.dc-piece .type{grid-area:type}
.dc-piece .desc{grid-area:desc}
.dc-piece .row-copy{grid-area:copy}
.dc-row.rule-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.dc-row.rule-row p{flex:1;min-width:0}
.quiet-index[data-piece-list="lab"] .piece,.quiet-index[data-piece-list="sources"] .piece{display:block;padding:0;background:none;border-radius:0}
html.light .dc-row,html.light .dc-piece{border-bottom-color:rgba(10,10,10,.12)}
.dc-row b,.dc-piece .piece-btn{font-size:15px;font-weight:500;color:var(--text);background:none;border:0;padding:0;text-align:left}
.dc-piece .piece-btn{min-height:44px}
.dc-row .type,.dc-piece .type{font-family:var(--mono);font-size:13px;line-height:1.45;color:#FF5100}
.dc-row p,.dc-piece .desc{margin:0;color:var(--muted);font-size:15px;line-height:1.5}
.quiet-index[data-piece-list="lab"],.quiet-index[data-piece-list="sources"]{gap:0;counter-reset:dc}
.dc-piece::before{counter-increment:dc;content:counter(dc,decimal-leading-zero);grid-area:num;font-family:var(--mono);font-size:11px;color:var(--muted)}
.dc-piece{grid-template-columns:36px minmax(140px,1.1fr) minmax(110px,.7fr) minmax(0,1.5fr) auto;grid-template-areas:"num name type desc copy"}
.chip-row{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:12px 0 4px;overflow-x:auto}
.chip-row .quiet-tools{display:contents}
.chip-row .chip-btn,.chip-row .quiet-ctl{display:inline-flex;align-items:center;gap:6px;flex:none;height:28px;min-height:0;margin:0;padding:0 12px;border:1px solid rgba(242,242,242,.22);border-radius:8px;background:transparent;color:var(--muted);font-family:var(--mono);font-size:11px;font-weight:500;line-height:1;white-space:nowrap}
html.light .chip-row .chip-btn,html.light .chip-row .quiet-ctl{border-color:rgba(10,10,10,.16)}
.chip-row .quiet-ctl select{min-height:0;height:24px;padding:0 14px 0 0;color:var(--text);font-family:var(--mono);font-size:11px;font-weight:500}
#lab-pieces .fold-btn{width:auto;min-height:0;margin:0;padding:0}
@media(min-width:761px){
  .docs-menu{display:none}
  .hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:48px;align-items:stretch}
  .hero-fig{margin:0}
  .band-head h2,.sub-head .sec-title{font-size:47.52px}
  .logo-tile .act{opacity:0}
  .logo-tile:hover .act,.logo-tile:focus-within .act{opacity:1}
}
.band,.sub,.band-head,.sub-head,.anchor-alias,#code-lab,#sources,#recent-work,#experiments,#map,#motion{scroll-margin-top:calc(var(--stick, 72px) + 8px)}
@media(max-width:760px){
  .docs-float{display:flex;height:52px}
  .nav-wash{display:block;position:fixed;z-index:40;top:0;left:0;right:0;height:var(--nav-band,128px);background:var(--bg);pointer-events:none}
  .chip-band{display:flex;position:sticky;top:72px;z-index:45;align-items:center;gap:8px;margin:0;padding:4px 0 8px;background:var(--bg)}
  .chip-sticky{position:sticky;left:0;z-index:1;background:var(--bg);padding-right:4px}
  .docs-chips{display:flex;position:static;flex:1;min-width:0;gap:8px;margin:0;padding:0;overflow-x:auto;scrollbar-width:none;background:transparent}
  .docs-chips::-webkit-scrollbar{display:none}
  .docs-chips a{position:relative;flex:none;display:inline-flex;align-items:center;height:44px;padding:0 12px;border:0;color:var(--muted);font-family:var(--mono);font-size:11px;font-weight:500;text-decoration:none;white-space:nowrap}
  .docs-chips a::after{content:"";position:absolute;left:0;right:0;top:8px;height:28px;border:1px solid rgba(242,242,242,.22);border-radius:8px;pointer-events:none}
  .docs-chips a{isolation:isolate}
  .docs-chips a.on{color:#0B0B0C}
  .docs-chips a.on::after{z-index:-1;background:#ECE8E0;border-color:#ECE8E0}
  .docs-chips a[data-group="Code Lab"].on{color:#0B0B0C}
  .docs-chips a[data-group="Code Lab"].on::after{background:#FF5100;border-color:#FF5100}
  html.light .docs-chips a::after{border-color:rgba(10,10,10,.16)}
  html.light .docs-chips a.on{color:#F2F2F2}
  html.light .docs-chips a.on::after{background:#0B0B0C;border-color:#0B0B0C}
  html.light .docs-chips a[data-group="Code Lab"].on{color:#0B0B0C}
  html.light .docs-chips a[data-group="Code Lab"].on::after{background:#FF5100;border-color:#FF5100}
  .index{display:none}
  .index.is-open{display:block;z-index:60}
  body.sheet-open #menuBtn{visibility:hidden}
  .hero h1{font-size:40px}
  .pg-facts{grid-template-columns:1fr 1fr}
  .logo-grid,.grid.photos{grid-template-columns:1fr 1fr}
  .logo-tile .act{opacity:1}
  .dc-piece{grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"num name copy" "num type type" "num desc desc"}
  .dc-row:not(.rule-row){grid-template-columns:minmax(0,1fr) auto}
  .dc-row:not(.rule-row) p{grid-column:1 / -1}
  .book{padding-top:84px}
  .dc-line,.dc-piece{align-items:start}
  .dc-line .n,.dc-piece::before{align-self:start;padding-top:4px}
  .dc-line{grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:"n name copy" "n meta copy"}
  .cmd-scroll,.an-rows code{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .docs-cols{display:block;margin-top:0}
  .hero-fig,.an-rows,.an-rows li{min-width:0}
  .an-rows li{grid-template-columns:minmax(0,1fr);min-height:36px;align-items:center}
  .an-rows .lead,.an-rows .lab{display:none}
  .an-rows code{display:block;min-width:0;overflow-x:auto;white-space:nowrap;font-size:13px;line-height:1.4}
}
