/* Library shell + desktop scale for /patterns (11 Nov 2026).
   Injected after Art's CSS and the prism override. Art's src/ is untouched.
   The page is no longer LAYOUT: full, so it gets #nuna-nav and /style.css. */

/* Follow the library #paper switch, not a second Black/White control. */
#paper:checked ~ .site,
html:has(#paper:checked){
  --ground:#FFFFFF; --plate:#F4F4F4; --ink:#141414; --bright:#000000;
  --soft:#5C5C5C; --rule:#D6D6D6; --pale:#1F1F1F; --ac:#0369a1;
  --shape-edge:#FFFFFF;
  --prism:linear-gradient(90deg,#e11d48,#ea580c,#ca8a04,#059669,#0369a1,#7c3aed,#db2777);
}

/* Art's unscoped `a` rules would otherwise underline the shared chrome. */
#nuna-nav a, #nuna-foot a{border-bottom:0; text-decoration:none}

/* Cap the desk and scale type/grid down so 1280–1920 is not oversized. */
.pg{max-width:min(70rem,100%); margin:0 auto; padding:1.1rem 1.25rem 2.6rem; overflow-x:hidden}
.pg-head{align-items:flex-end; gap:12px; margin:0}
.pg-brand svg{width:22px; height:30px}
.wm{font-size:1.8rem; letter-spacing:.03em}
.pg-lead{font-size:.98rem; max-width:44rem; margin:0 0 1rem}
.prism-rule{height:2px; margin:10px 0 12px}
.panel{padding:12px 14px 14px}
.panel-head h2{font-size:1.3rem}
.dash{gap:14px}
.pm-body{grid-template-columns:minmax(0,1fr) 18.25rem; gap:14px}
.pm-stage{display:flex; justify-content:center; align-items:flex-start; min-width:0}
.board{width:100%; max-width:32rem; max-height:32rem; aspect-ratio:1/1; margin:0 auto}
.v3-canvas{max-width:22rem; max-height:22rem; width:100%; margin:0 auto}
.grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); max-height:28rem; gap:7px}

@media (max-width:1000px){
  .pg{max-width:100%; padding:.85rem .85rem 2rem}
  .wm{font-size:1.5rem}
  .pm-body{grid-template-columns:1fr}
  .board{max-width:100%; max-height:none}
  .v3-canvas{max-width:100%; max-height:none}
}
