/* The desktop website layer (js/desktop.js, 2026-10-21). Everything here sits behind html.desk, which js/desktop.js sets only for
   (min-width:900px) and (hover:hover) and (pointer:fine), or an iPad (min-width:700px, min-height:640px, coarse pointer) -- a phone never matches, so the phone app is untouched.
   Loaded last on purpose: it overrides the phone rules with the same specificity or one class more. */
html.desk{--dkn:60px;--dkw:1180px;--dkg:clamp(32px,5vw,64px);--top:var(--dkn)}   /* --top is the phone's status-bar inset; here it is the bar, so every top-anchored thing clears it */

/* ---------- the top navigation bar ---------- */
html.desk #dk-nav{position:fixed;left:0;right:0;top:0;height:var(--dkn);z-index:50;display:flex;align-items:center;gap:36px;padding:0 var(--dkg);
  background:rgba(14,13,11,.86);-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);border-bottom:1px solid var(--rule)}
html.desk .dk-brand{display:flex;align-items:center;gap:10px;color:var(--ink);font:400 24px/1 var(--serif);letter-spacing:-.01em;white-space:nowrap}
html.desk .dk-brand svg{width:24px;height:24px}
html.desk .dk-links{display:flex;align-items:center;gap:4px;margin-right:auto}
html.desk #dk-nav a{text-decoration:none}
html.desk .dk-links a{position:relative;display:flex;align-items:center;height:36px;padding:0 14px;border-radius:var(--r-pill);color:var(--soft);font:500 15px/1 var(--sans);transition:color .15s,background .15s}
html.desk .dk-links a:hover{color:var(--ink);background:rgba(236,232,223,.07)}
html.desk .dk-links a.on{color:var(--ink);background:rgba(236,232,223,.11)}
html.desk .dk-links a:focus-visible,html.desk .dk-brand:focus-visible,html.desk .dk-search:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
html.desk .dk-search{display:flex;align-items:center;gap:10px;width:min(340px,30vw);height:38px;padding:0 8px 0 14px;border-radius:var(--r-pill);background:var(--surface-2);border:1px solid var(--rule);color:var(--soft);font:400 14.5px/1 var(--sans);text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
html.desk .dk-search:hover{border-color:var(--rule-strong);background:var(--surface-3)}
html.desk .dk-search svg{flex:none;width:17px;height:17px}
html.desk .dk-search span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.desk .dk-search kbd{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:6px;border:1px solid var(--rule);font:500 12px/1 var(--mono);color:var(--faint)}

/* the bar takes the top of every screen: pages start below it, the maps run beneath it */
html.desk .pl-corner,html.desk .hm-top-search{display:none}

/* ---------- pages: a centered web column, not a phone strip ---------- */
html.desk .screen:not(.cp-page){max-width:760px;padding-left:var(--dkg);padding-right:var(--dkg);padding-bottom:0}
html.desk .screen.fixed,html.desk .screen.cx{max-width:none;padding:0}
html.desk .room-sheet{top:0}
html.desk .room-sheet>.screen{max-width:none;padding-left:max(var(--dkg),calc((100% - 1120px) / 2));padding-right:max(var(--dkg),calc((100% - 1120px) / 2));padding-top:calc(var(--dkn) + 28px)}
html.desk .room-sheet::after{display:none}

/* ---------- sheets become centered dialogs ---------- */
html.desk .scrim{background:rgba(6,6,5,.62);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
html.desk .sheet.sheet{inset:0;margin:auto;width:min(520px,calc(100vw - 64px));height:fit-content;max-height:min(760px,calc(100vh - 96px));border-radius:var(--r-3);border:1px solid var(--rule);
  padding:28px 28px 26px;animation:dkDialogIn .22s var(--ease) both;box-shadow:0 30px 90px rgba(0,0,0,.6)}
html.desk .sheet .grab{display:none}
/* full-screen sheets (the color slideshow, .ss-full) stay full-screen: they are not dialogs */
html.desk .sheet.sheet.ss-full{inset:0;margin:0;width:auto;height:auto;max-height:none;border:0;border-radius:0;padding:0;box-shadow:none;animation:fade var(--dur-1) ease both}
html.desk .sheet.ss-full .grab{display:block}
html.desk:has(.sheet.ss-full) #dk-nav{display:none}
html.desk .sheet.sr-sheet-wrap{margin-top:max(80px,11vh)}
@keyframes dkDialogIn{from{opacity:0;transform:translateY(10px) scale(.985)}}

/* ---------- footer ---------- */
html.desk .dk-foot{margin:96px calc(-1 * var(--dkg)) 0;border-top:1px solid var(--rule);padding:36px var(--dkg) 44px;color:var(--faint)}
html.desk .dk-foot-in{max-width:var(--dkw);margin:0 auto;display:grid;grid-template-columns:1.1fr 1.6fr auto;gap:40px;align-items:start}
html.desk .dk-foot-brand b{display:block;font:400 22px/1.1 var(--serif);color:var(--ink)}
html.desk .dk-foot-brand span{display:block;margin-top:6px;font:400 14px/1.4 var(--sans)}
html.desk .dk-foot-note{margin:0;font:400 14px/1.6 var(--sans);color:var(--faint);max-width:520px}
html.desk .dk-foot-links{display:flex;flex-wrap:wrap;gap:6px 20px;font:500 14px/1 var(--sans)}
html.desk .dk-foot-links a{color:var(--soft);text-decoration:none}
html.desk .dk-foot-links a:hover{color:var(--ink)}

/* ---------- the color page: the color on the left, everything about it on the right (the phone's landscape lane, widened) ---------- */
html.desk{--cp-cover-w:clamp(380px,36vw,560px)}

/* ---------- the painting page: the painting on the left, its palette and notes on the right ---------- */
html.desk .screen.article.has-ptg{max-width:1320px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:clamp(36px,4.5vw,72px);align-items:start;padding-top:12px}
html.desk .screen.has-ptg>*{grid-column:2;min-width:0}
html.desk .screen.has-ptg>.art-top{grid-column:1/-1}
html.desk .screen.has-ptg>.ptg{grid-column:1;grid-row:2/span 40;position:sticky;top:calc(var(--dkn) + 20px)}
html.desk .screen.has-ptg>.dk-foot{grid-column:1/-1}
html.desk .screen.has-ptg .p-title{font-size:clamp(44px,4.4vw,64px);line-height:1}
html.desk .screen.has-ptg .p-body{font-size:18px;line-height:1.65}

/* ---------- the painter page: a wide page, the works in a many-across grid ---------- */

/* ---------- the rooms: Museum is a wide shelf of covers; Learn, Train and Studio are narrower working pages ---------- */
html.desk .room-sheet>.screen.lh-room,html.desk .room-sheet>.screen.r2{padding-left:max(var(--dkg),calc((100% - 940px) / 2));padding-right:max(var(--dkg),calc((100% - 940px) / 2))}
html.desk .room-sheet>.screen.lh-room,html.desk .room-sheet>.screen.r2-studio{padding-left:max(var(--dkg),calc((100% - 780px) / 2));padding-right:max(var(--dkg),calc((100% - 780px) / 2))}
html.desk .screen.explore.mu-home .pl-colls{grid-template-columns:repeat(4,1fr);gap:14px}

/* ---------- map chrome: corners get real desktop margins, the first-run hint is a pill, not a bar ---------- */
html.desk .lr-maphint{width:max-content;max-width:480px;bottom:32px}
html.desk .corner{bottom:28px}
html.desk .corner.r{right:28px}
html.desk .corner.l{left:28px}

/* ---------- hover and focus: quiet, on everything you can tap ---------- */
html.desk button,html.desk [role="button"],html.desk summary,html.desk a[href],html.desk .gl-pin,html.desk [data-hex],html.desk [data-gi]{cursor:pointer}
html.desk .pl-ctile,html.desk .gs-tile,html.desk .st-tile,html.desk .sg-card,html.desk .r2-ic,html.desk .gl-pin .gl-im,html.desk .pchip,html.desk .wl>*,html.desk .mn-row,html.desk .sr-row{transition:transform .18s var(--ease),box-shadow .18s,background-color .18s,filter .18s}
html.desk .pl-ctile:hover,html.desk .gs-tile:hover,html.desk .st-tile:hover,html.desk .sg-card:hover,html.desk .r2-ic:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.4),inset 0 0 0 1px rgba(236,232,223,.16)}
html.desk .gl-pin:hover .gl-im{filter:brightness(1.12)}
html.desk .btn:hover,html.desk .icon-btn:hover,html.desk .corner:hover{filter:brightness(1.12)}
html.desk .mn-row:hover,html.desk .sr-row:hover,html.desk .sheet .item:hover{background:rgba(236,232,223,.06)}
html.desk :focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* ---------- a clear Back: the chevron grows a word on a page that has no other label ---------- */
html.desk .art-top>[data-back]:has(>svg:only-child){width:auto;display:inline-flex;align-items:center;gap:6px;padding:0 16px 0 10px;border-radius:var(--r-pill)}
html.desk .art-top>[data-back]:has(>svg:only-child)::after{content:"Back";font:500 14.5px/1 var(--sans)}

/* the first-run tip on the map is a pill near the corner, not a bar across the window */
html.desk .orient-tip{left:auto;right:100px;bottom:34px;width:max-content;max-width:420px}

/* painter page, top: who they are on the left, a portrait of their work on the right */

/* the Back / More row is part of the page here (the bar above already stays put), so text never slides under it */
html.desk .screen.has-ptg>.art-top,html.desk .aw-page>.art-top{position:static}
html.desk .screen.explore.mu-home .pl-colls:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}

/* ---------- slice 2: breadcrumbs from the trail ---------- */
html.desk .screen>.dk-crumbs.dk-crumbs{grid-column:1/-1}
html.desk .art-top>.dk-crumbs{flex:1;min-width:0;margin:0 0 0 18px;flex-wrap:nowrap}
html.desk .art-top>.dk-crumbs button{white-space:nowrap}
html.desk .dk-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin:14px 0 4px;font:500 14px/1.3 var(--sans);color:var(--faint);min-width:0}
html.desk .dk-crumbs button{background:none;border:0;padding:4px 2px;font:inherit;color:var(--soft);cursor:pointer;border-radius:4px}
html.desk .dk-crumbs button:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
html.desk .dk-crumbs span{color:var(--ink);max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.desk .dk-crumbs i{font-style:normal;color:var(--faint)}

/* ---------- slice 2: Learn is two columns (today's study on the left, your color wheel on the right) ---------- */
html.desk .room-sheet>.screen.lh-room{max-width:none;padding-left:max(var(--dkg),calc((100% - 1120px) / 2));padding-right:max(var(--dkg),calc((100% - 1120px) / 2));
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"head head" "hero wheel" "choose wheel" "hint hint" "foot foot";column-gap:clamp(36px,5vw,80px);align-items:start}
html.desk .lh-room>.room-head{grid-area:head}
html.desk .lh-room>.lh-hero{grid-area:hero}
html.desk .lh-room>.lh-wheel-sec{grid-area:wheel;position:sticky;top:calc(var(--dkn) + 20px)}
html.desk .lh-room>.lh-choose{grid-area:choose}
html.desk .lh-room>.dk-foot{grid-area:foot}
html.desk .lh-room>:not(.room-head):not(.lh-hero):not(.lh-wheel-sec):not(.lh-choose):not(.dk-foot){grid-area:hint}

/* ---------- painting map bottom bar (desktop only) ----------
   On the phone the caption bar stacks ABOVE the corner button's row (--corner-b is the phone's bottom inset + gap), which
   left a strip of tiles under it. On desktop the corner sits at bottom:28px, so the caption bar shares that row: flush to
   the same 28px margin, ending just left of the corner button, and the facet chips and walk dots stack above it. */
html.desk .pmx{--dk-b:28px;--dk-row:calc(var(--dk-b) + var(--corner,48px) + 10px)}
html.desk .pmx .pmx-cap{left:28px;right:calc(28px + var(--corner,48px) + 12px);bottom:var(--dk-b)}
html.desk .pmx .pmx-facets{bottom:calc(var(--dk-row) + var(--cap-x,0px));padding-left:28px;scroll-padding-left:28px}
/* the chip row keeps the same 28px margin as the corner buttons (a chip hugging the window's left edge read as clipped) */
html.desk .pmx .pmx-chipbar{padding-left:28px;padding-right:28px;scroll-padding-left:28px;box-sizing:border-box}
html.desk .pmx .pmx-walk{left:28px;bottom:calc(var(--dk-row) + 44px + var(--cap-x,0px))}

/* ---------- the museum painting page (#/gallery/<n>): the painting large and sticky on the left, everything about it on the right;
   the painter's other works and similar palettes run the full width below ---------- */
html.desk .gl-dk-credit{display:inline}
html.desk .gl-dk-acts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 22px}
html.desk .gl-dk-btn{display:inline-flex;align-items:center;gap:9px;height:46px;padding:0 20px 0 16px;border-radius:var(--r-pill);background:var(--surface-2);color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--rule);font:500 15.5px/1 var(--sans);cursor:pointer;transition:background .15s,box-shadow .15s}
html.desk .gl-dk-btn[hidden]{display:none}
html.desk .gl-dk-btn:hover{background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--rule-strong)}
html.desk .gl-dk-btn[aria-pressed="true"]{background:rgba(236,232,223,.92);color:#0E0D0B}
html.desk .gl-dk-btn svg{width:18px;height:18px}
html.desk .gl-page .gl-pal-ui .palette.gl-strip{height:64px}
/* below the two columns: full width */
html.desk .gl-page>.gl-morepainter{margin-top:56px}
html.desk .gl-page .gl-rail{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
html.desk .gl-page .gl-rail>.pin-art img,html.desk .gl-page .gl-rail>.gl-pin .gl-im{height:clamp(170px,14vw,230px)}
html.desk .gl-page>.gl-morepainter .gl-rail{flex-wrap:wrap;overflow:visible;row-gap:22px}
/* "Browse palettes": the full-window split is the painting on the left, the palette feed on the right */
html.desk .gl-split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);column-gap:0}
html.desk .gl-split>.gl-split-top{grid-column:1;grid-row:1/span 3;height:100%;min-height:0;padding:0 var(--dkg)}
html.desk .gl-split>.gl-split-top .gl-hero{--hero-vh:calc(100dvh - 120px);width:100%}
html.desk .gl-split>.gl-split-chips-row,html.desk .gl-split>.gl-slide,html.desk .gl-split>.gl-split-feed{grid-column:2;max-width:640px;justify-self:stretch;box-sizing:border-box}
html.desk .gl-split .gl-slide.cnt-wrap{width:auto}
html.desk .gl-split>.gl-split-chips-row{padding-top:72px}
html.desk .gl-split>.gl-split-feed{padding-bottom:40px}
html.desk .gl-split-done{top:20px;right:28px}
html.desk .gl-page>.dk-foot{margin-left:calc(-1 * var(--dkg));margin-right:calc(-1 * var(--dkg))}

/* ---------- the Colors / Arrange / Filter sheet becomes a docked side panel (David, 2026-10-21: "the preview of the whole map is
   tiny and invisible unlike on mobile") ----------
   The color map's Colors & Arrange sheet and the painting map's Arrange | Filter sheet are both .sheet.hm-sheet-panel. On desktop
   they no longer cover the middle of the window: a 380px panel on the right, under the top bar, no scrim, nothing modal. The map's
   own screen gives up that strip (its width shrinks, so the canvas re-measures and the map stays centered in what is left), and
   keeps panning and zooming while the panel is open. The phone's bottom sheet is untouched (this is all behind html.desk). */
html.desk .sheet.hm-sheet-panel.hm-sheet-panel{inset:var(--dkn) 0 0 auto;margin:0;width:380px;height:auto;max-height:none;border-radius:0;border:0;border-left:1px solid var(--rule);
  box-shadow:-18px 0 44px rgba(0,0,0,.32);padding:0;animation:dkDockIn .26s var(--ease) both}
@keyframes dkDockIn{from{opacity:0;transform:translateX(24px)}}
html.desk .scrim.hm-scrim-clear{display:none}
html.desk:has(.sheet.hm-sheet-panel) #app>.screen.fixed{right:380px}
html.desk:has(.sheet.hm-sheet-panel) .hm-layer{left:calc(50% - 190px)}
html.desk:has(.sheet.hm-sheet-panel) .corner.r{right:calc(380px + 28px)}

/* ---------- Look closer (the full-window painting viewer): a real desktop toolbar, the painting as large as the window allows, the tools in a rail ---------- */
html.desk .glz-scrim{display:block;background:#000}
html.desk .glz-top{padding:14px 28px;gap:12px}
html.desk .glz-title{font-size:20px;margin-left:6px}
html.desk .glz-zc{display:inline-flex;gap:4px;padding:3px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--rule)}
html.desk .glz-zc button{height:32px;padding:0 14px;border-radius:999px;color:var(--ink);font:500 14px/1 var(--sans)}
html.desk .glz-zc button:hover{background:rgba(236,232,223,.12)}
html.desk .glz-details:hover{filter:brightness(.92)}
html.desk .glz-tools{padding:20px 28px 28px 20px;gap:18px}
html.desk .glz-stage[data-cur="fit"],html.desk .glz-stage[data-cur="fit"] *{cursor:zoom-in}
html.desk .glz-stage[data-cur="loupe"],html.desk .glz-stage[data-cur="loupe"] *{cursor:move}
html.desk .glz-stage[data-cur="free"],html.desk .glz-stage[data-cur="free"] *{cursor:grab}
html.desk .glz-stage[data-cur="free"]:active,html.desk .glz-stage[data-cur="free"]:active *{cursor:grabbing}
html.desk:has(.glz-scrim) #dk-nav{display:none}
html.desk .glz-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-radius:var(--r-3);padding:4px}
html.desk .glz-seg button[data-glzv]{padding:0 10px;justify-content:center;min-height:40px}
html.desk .glz-tools{justify-content:flex-start;padding-top:84px}
/* immersive (David, 2026-10-21): the painting alone on pure black, the whole window; the toolbar, the tools rail and a quiet caption
   float over it and fade after ~2s without mouse movement (js/paintzoom.js .idle), coming back on movement */
html.desk .glz-stage{position:absolute;inset:0;background:#000}
html.desk .glz-top{position:absolute;left:0;right:0;top:0;z-index:6;background:linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,0));transition:opacity .4s var(--ease)}
html.desk .glz-tools{position:absolute;right:0;top:0;bottom:0;width:300px;z-index:5;pointer-events:none;transition:opacity .4s var(--ease)}
html.desk .glz-tools>*{pointer-events:auto}
html.desk .glz-cap{position:absolute;left:28px;bottom:24px;z-index:5;margin:0;max-width:min(520px,45vw);display:flex;flex-direction:column;gap:3px;pointer-events:none;color:var(--ink);text-shadow:0 1px 8px #000;transition:opacity .4s var(--ease)}
html.desk .glz-cap b{font:500 17px/1.3 var(--serif)}
html.desk .glz-cap span{font:400 14px/1.3 var(--sans);color:var(--soft)}
html.desk .glz-title{visibility:hidden}
html.desk .glz-scrim.idle .glz-top,html.desk .glz-scrim.idle .glz-tools,html.desk .glz-scrim.idle .glz-cap{opacity:0;pointer-events:none}
html.desk .glz-scrim.idle .glz-stage[data-cur="loupe"],html.desk .glz-scrim.idle .glz-stage[data-cur="loupe"] *{cursor:none}
html.desk:has(.glz-scrim) .corner,html.desk:has(.glz-scrim) .dk-crumbs{visibility:hidden}

/* ---------- audit 2026-10-21 (painting views): pages that were still a phone column in a wide window ---------- */
/* a footer inside a narrow page column wraps to two rows instead of squeezing the note into a sliver */
html.desk .screen:not(.aw-page):not(.gl-page):not(.has-ptg):not(.closeup):not(.plv-screen) .dk-foot-in{grid-template-columns:minmax(0,1fr) auto;gap:20px 40px}
html.desk .screen:not(.aw-page):not(.gl-page):not(.has-ptg):not(.closeup):not(.plv-screen) .dk-foot-note{grid-column:1/-1;grid-row:2;max-width:none}
/* "More like this" closeup (#/painting/<slug>/more): the painting large and sticky on the left, its words on the right, the neighbors four across below */
html.desk .screen.closeup{max-width:1320px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:clamp(36px,4.5vw,72px);align-items:start;padding-top:12px}
html.desk .closeup>*{grid-column:1/-1;min-width:0}
html.desk .closeup>.art-top{position:static}
html.desk .closeup>.z-hero{grid-column:1;grid-row:2/span 4;position:sticky;top:calc(var(--dkn) + 20px);margin:0}
html.desk .closeup>.z-hero img{max-height:calc(100dvh - var(--dkn) - 80px);object-fit:contain}
html.desk .closeup>.z-title,html.desk .closeup>.z-meta,html.desk .closeup>.z-sum,html.desk .closeup>.z-btns{grid-column:2}
html.desk .closeup>.z-title{font-size:clamp(44px,4.4vw,64px);line-height:1;margin-top:0}
html.desk .closeup>.z-sum{font-size:18px;line-height:1.65}
html.desk .closeup>.sec-head{margin-top:56px}
html.desk .closeup .masonry{display:block;column-count:4;column-gap:14px}
html.desk .closeup .masonry>div{display:contents}
html.desk .closeup .masonry .pin{break-inside:avoid;margin-bottom:22px}
@media (max-width:1100px){html.desk .closeup .masonry{column-count:3}}
/* Palette view (#/pv/...): the controls in a left column, the palettes two across on the right */
html.desk .screen.plv-screen{max-width:1320px;display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);column-gap:clamp(32px,4vw,64px);align-items:start;padding-top:12px}
html.desk .plv-screen>*{grid-column:1/-1;min-width:0}
html.desk .plv-screen>.art-top{position:static}
html.desk .plv-screen>.plv-src,html.desk .plv-screen>.plv-chips,html.desk .plv-screen>.plv-count-row,html.desk .plv-screen>.plv-foryou-note{grid-column:1}
html.desk .plv-screen>.plv-chips{flex-wrap:wrap;overflow:visible;margin:0;padding:2px 0 14px}
html.desk .plv-screen>.plv-feed{grid-column:2;grid-row:2/span 5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html.desk .plv-screen>.plv-sentinel,html.desk .plv-screen>.plv-end{grid-column:1/-1}
/* the painters list: three across, not one long phone list */
html.desk .aw-page .aw-pt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px}
@media (max-width:1100px){html.desk .aw-page .aw-pt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* the Museum lenses and Saved (#/museum/saved): a wide page, the pins four across */
html.desk .screen.article.has-xfeed{max-width:1240px}
html.desk .x-feed .masonry{display:block;column-count:4;column-gap:14px}
html.desk .x-feed .masonry>div{display:contents}
html.desk .x-feed .masonry .pin{break-inside:avoid;margin-bottom:22px}
html.desk .gl-hero>span,html.desk .gl-hero>span.gl-tap{cursor:zoom-in}
html.desk .gl-dk-map{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px}
html.desk .gl-dk-map::before{content:"On the map";font:500 13px/1 var(--sans);color:var(--soft);margin-right:4px}
html.desk .gl-dk-chip{height:34px;padding:0 14px;border-radius:var(--r-pill);background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--rule-strong);font:500 14px/1 var(--sans);cursor:pointer;transition:background .15s}
html.desk .gl-dk-chip:hover{background:var(--surface-2)}
html.desk .pmx-cv.hov{cursor:pointer}
.pmx-tip{position:fixed;z-index:30;pointer-events:none;max-width:320px;padding:9px 13px;border-radius:12px;background:rgba(14,13,11,.92);box-shadow:inset 0 0 0 1px rgba(236,232,223,.16);color:var(--ink);font:500 14px/1.3 var(--sans);display:flex;flex-direction:column;gap:2px;animation:glzHint .15s var(--ease) both}
.pmx-tip b{font:500 14.5px/1.3 var(--serif)}
.pmx-tip span{font:400 13px/1.3 var(--sans);color:var(--soft)}

/* ======================================================================================================================
   The three shared pages on a desktop window (color #/color/<slug>, painting #/gallery/<n>, painter #/painter/<slug>), 2026-10-25.
   David: "Wikipedia vibes when it's article time, but when it's painting Pinterest time it should be full screen like Pinterest
   desktop; the big color only at the top; one header bar."
   - Overview (reading): the hero is a full-width band at the top that scrolls away; under it ONE reading column (--dk-col) with a slim
     sticky right rail (--dk-rail: a swatch or thumbnail, the name, links to the sections). Nothing is pinned on the left.
   - Feed tabs (Paintings, Vibe, Their work ...): full viewport width, edge to edge, 2px gutters (js/feed.js lays the columns out).
   - One bar: the page's chip row sits under the hero; once it reaches the top it becomes THE bar (js/desktop.js adds the mark and the
     page's swatch + name at the left and search at the right, and hides the top nav behind it). Never two bars stacked.
   Phones never match html.desk, so none of this touches them. ====================================================================================================================== */
html.desk{--dk-col:720px;--dk-rail:220px;--dk-gap:56px;--dk-total:calc(var(--dk-col) + var(--dk-gap) + var(--dk-rail));
  --dk-L:max(var(--dkg),calc((100% - var(--dk-total)) / 2))}   /* left edge of the reading block, as a margin/padding on a full-width element */
@media (max-width:1139px){html.desk{--dk-total:var(--dk-col);--dk-gap:0px}html.desk .dk-rail{display:none}}

/* the page is a grid: full-width things span all three columns, the reading things sit in the middle one */
html.desk .screen.article.cp-page,html.desk .screen.article.gl-page,html.desk .screen.article.aw-page{display:grid;max-width:none;margin:0;padding:var(--dkn) 0 0;
  grid-template-columns:minmax(var(--dkg),1fr) minmax(0,var(--dk-total)) minmax(var(--dkg),1fr);align-items:start;align-content:start}
html.desk .cp-page>*,html.desk .gl-page>*,html.desk .aw-page>*,html.desk .gl-pal-wrap>*{grid-column:1/-1;min-width:0}
html.desk .gl-page>.gl-cols,html.desk .gl-page>.gl-cols>.gl-pal-wrap{display:contents}
html.desk .cp-page>.dk-crumbs,html.desk .cp-page>.art-top,html.desk .gl-page>.art-top,html.desk .aw-page>.art-top{order:-4;position:static;margin:0;padding:12px var(--dkg) 12px var(--dk-L);flex-wrap:nowrap}
html.desk .gl-page>.art-top,html.desk .aw-page>.art-top{padding-top:14px}
html.desk .cp-page>.dk-crumbs{margin:0;max-width:none}
/* the hero band: the big color / the painting / the painter's work, once, at the top */
html.desk .cp-page .cp-hero.cp-hero-full{order:-3;position:relative;inset:auto;width:auto;height:auto;min-height:clamp(260px,32vh,340px);margin:0;border-radius:0;z-index:auto;
  padding:68px var(--dkg) 32px var(--dk-L)}
html.desk .cp-page .cp-hero.cp-hero-full .cp-hero-foot{max-width:var(--dk-col);max-height:none;overflow:visible}
html.desk .cp-page .cp-close{top:20px;left:var(--dkg)}
html.desk .cp-page .tl-more-float{top:20px;left:calc(var(--dkg) + 56px);right:auto}
html.desk .cp-page .cp-hero h1.rp-name{font-size:clamp(64px,7vw,104px)}
html.desk .gl-page .gl-hero.gl-hero{order:-3;margin:0;padding:24px var(--dkg) 28px;background:color-mix(in srgb,var(--ground) 72%,#000);--hero-vh:min(64vh,680px)}
html.desk .gl-page .gl-hero>span{max-width:100%}
html.desk .gl-page .gl-closer{display:none}
html.desk .aw-page>.aw-pt-hero{order:-3;margin:0}
html.desk .aw-page .aw-pt-open{display:block;width:100%;height:clamp(260px,38vh,400px);max-height:none;border-radius:0;overflow:hidden;background:color-mix(in srgb,var(--ground) 72%,#000)}
html.desk .aw-page .aw-pt-hero>img,html.desk .aw-page .aw-pt-open img{width:100%;height:100%;max-height:none;object-fit:contain;object-position:50% 50%;border-radius:0}
html.desk .aw-page .aw-pt-hero figcaption{padding:10px var(--dkg) 0 var(--dk-L)}
/* the title block, in the reading column */
html.desk .gl-pal-wrap>.gl-id,html.desk .aw-page>.aw-head,html.desk .aw-page>.aw-pmap-top,html.desk .cp-page>.rp-also,html.desk .cp-page>.np-shade,html.desk .cp-page>.rp-last{grid-column:2;max-width:var(--dk-col)}
html.desk .gl-pal-wrap>.gl-id,html.desk .aw-page>.aw-head{order:-2;margin-top:28px}
html.desk .aw-page>.aw-pmap-top{order:-2}
html.desk .gl-id .p-title{font-size:clamp(40px,3.8vw,60px);line-height:1.02;overflow-wrap:anywhere}
html.desk .gl-id .p-dek{font-size:18px}
html.desk .gl-id-src{font-size:14px;margin-top:8px}
html.desk .aw-page .aw-head .p-title,html.desk .aw-page .aw-head h1{font-size:clamp(48px,5vw,72px)}
html.desk .cp-page>.rp-also{margin-top:28px}
html.desk .cp-page>.rp-last{margin:40px 0 0;text-align:left}
html.desk .cp-page>.dk-foot,html.desk .gl-page>.dk-foot,html.desk .aw-page>.dk-foot{margin:56px 0 0}
html.desk .cp-page .dk-foot-in,html.desk .gl-page .dk-foot-in,html.desk .aw-page .dk-foot-in{grid-template-columns:minmax(0,1fr) auto;max-width:var(--dk-total);padding:0}

/* the chip row: in the flow under the hero, then THE bar */
html.desk :is(.cp-page,.gl-page,.aw-page) .fd-bar{position:sticky;top:0;z-index:51;box-sizing:border-box;height:60px;margin:0;padding:0 var(--dkg) 0 var(--dk-L);display:flex;align-items:center;gap:14px;
  background:var(--ground);border-bottom:1px solid var(--rule)}
html.desk :is(.cp-page,.gl-page,.aw-page) .fd-chips{margin:0;padding:0;flex:1;min-width:0}
html.desk :is(.cp-page,.gl-page,.aw-page) .fd-chip{min-height:38px;padding:0 16px;font-size:16px}
html.desk :is(.rp-tabs,.gl-tabs){margin:0;padding:0}
html.desk .dk-pb-l,html.desk .dk-pb-r{display:none;align-items:center;flex:none;gap:14px}
html.desk.dk-stuck #dk-nav{visibility:hidden}
html.desk.dk-stuck .fd-bar{padding-left:var(--dkg)}
html.desk.dk-stuck .dk-pb-l,html.desk.dk-stuck .dk-pb-r{display:flex}
html.desk .dk-pb-l .dk-brand{gap:0}
html.desk .dk-pb-id{display:flex;align-items:center;gap:10px;max-width:260px;height:40px;padding:0 6px;border:0;background:none;color:var(--ink);font:400 19px/1 var(--serif);cursor:pointer;border-radius:var(--r-pill)}
html.desk .dk-pb-id:hover{background:rgba(236,232,223,.07)}
html.desk .dk-pb-id i{flex:none;width:28px;height:28px;border-radius:50%;background:var(--c,#444) center/cover;box-shadow:inset 0 0 0 1px rgba(236,232,223,.22)}
html.desk .dk-pb-id b{font-weight:400;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.desk .dk-pb-r .dk-search{width:min(300px,22vw)}

/* Overview = the reading column and the slim right rail */
html.desk :is(.rp-about,.gl-about):not([hidden]),html.desk .aw-pane:not([hidden]):not(:has(.aw-wk-mount)){display:grid;align-items:start;--g:0px;
  grid-template-columns:minmax(0,var(--dk-col)) minmax(0,var(--dk-rail));column-gap:var(--dk-gap);justify-content:center;padding:0 var(--dkg) 96px}
@media (max-width:1139px){html.desk :is(.rp-about,.gl-about):not([hidden]),html.desk .aw-pane:not([hidden]):not(:has(.aw-wk-mount)){grid-template-columns:minmax(0,var(--dk-col))}}
html.desk :is(.rp-about,.gl-about,.aw-pane)>*{grid-column:1;min-width:0}
html.desk :is(.rp-about,.gl-about,.aw-pane)>.dk-rail{grid-column:2;grid-row:1/span 400}
html.desk :is(.rp-about,.gl-about,.aw-pane)>:first-child:not(.dk-rail){margin-top:36px}
html.desk .dk-rail{position:sticky;top:84px;align-self:start;margin-top:36px;display:flex;flex-direction:column;gap:6px;padding:0 0 0 18px;border-left:1px solid var(--rule)}
html.desk .dk-rail-sw{display:block;width:56px;height:56px;border-radius:var(--r-2,10px);background:var(--c,#444) center/cover;box-shadow:inset 0 0 0 1px rgba(236,232,223,.2);margin-bottom:8px}
html.desk .dk-rail-n{font:400 21px/1.15 var(--serif);color:var(--ink);overflow-wrap:anywhere}
html.desk .dk-rail-m{font:400 15px/1.4 var(--sans);color:var(--soft);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
html.desk .dk-rail-h{margin:18px 0 2px;font:500 14px/1 var(--sans);color:var(--faint)}
html.desk .dk-rail nav{display:flex;flex-direction:column;gap:2px;max-height:calc(100dvh - 300px);overflow-y:auto;scrollbar-width:thin}
html.desk .dk-rail nav a{display:block;padding:6px 0;font:400 16px/1.3 var(--sans);color:var(--soft);text-decoration:none;cursor:pointer}
html.desk .dk-rail nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
html.desk :is(.rp-about,.gl-about,.aw-pane) :is(h2,.sec-head,summary,section,details){scroll-margin-top:84px}

/* feed tabs = Pinterest: the grid is the whole window, edge to edge */
html.desk :is(.cp-page,.gl-page,.aw-page) .fd-grid.bare{margin-left:0;margin-right:0}
html.desk :is(.cp-page,.gl-page,.aw-page) .fd-state{padding-bottom:120px}
html.desk .aw-page .aw-pane:not([hidden]):has(.aw-wk-mount){padding:0}
html.desk .aw-page .aw-pane:has(.aw-wk-mount)>.sec-head{padding:0 var(--dkg);margin:18px 0 10px}
html.desk .aw-page .aw-wk-mount{margin:0;padding:0}
/* Settings: a right-hand panel (about 420px, no dimming) with the feed live beside it, not a dialog over it */
html.desk{--dk-panel:0px}
html.desk:has(.sheet.fs-half){--dk-panel:420px}
html.desk .scrim:has(+.sheet.fs-half),html.desk:has(.sheet.fs-half) .scrim{display:none}
html.desk .sheet.sheet.fs-half{inset:0 0 0 auto;margin:0;width:420px;height:auto;max-height:none;border-radius:0;border:0;border-left:1px solid var(--rule);padding:22px 24px 0;
  box-shadow:-18px 0 44px rgba(0,0,0,.32);animation:dkDockIn .26s var(--ease) both;z-index:70}
html.desk .sheet.fs-half .grab{display:none}
html.desk:has(.sheet.fs-half) #app{margin-right:var(--dk-panel)}
html.desk:has(.sheet.fs-half) #dk-nav{right:var(--dk-panel)}
html.desk:has(.sheet.fs-half) .fd-bar{right:0}
html.desk .rp-bar{display:none}   /* the color page's phone name bar: the page's own chip row is the bar here */
html.desk .cp-page .cp-hero-foot :is(.rp-def,.cp-def,.c-def,p){max-width:600px}
/* the bar's search shrinks to its icon when the window (or the window beside the Settings panel) is narrow */
@media (max-width:1399px){html.desk .dk-pb-r .dk-search{width:44px;padding:0;justify-content:center;gap:0}html.desk .dk-pb-r .dk-search :is(span,kbd){display:none}}
html.desk:has(.sheet.fs-half) .dk-pb-r .dk-search{width:44px;padding:0;justify-content:center;gap:0}
html.desk:has(.sheet.fs-half) .dk-pb-r .dk-search :is(span,kbd){display:none}

/* Map on a wide window: the hero's corner button, and the one bar's right end (before search) once the chip row is the bar */
html.desk .fd-bar.fd-stuck .fd-mapw{display:flex}
html.desk .fd-mapb.in-top,html.desk .art-top-name{display:none!important}
html.desk .fd-mapb-hero{top:18px;right:var(--dkg)}

/* an iPad in portrait (700-1000 wide): the bar's wordmark, links and search have to fit one row */
@media (max-width:1000px){
  html.desk #dk-nav{gap:14px}
  html.desk .dk-brand{font-size:21px}
  html.desk .dk-brand span,html.desk .dk-brand b{display:none}
  html.desk .dk-links a{padding:0 10px}
  html.desk .dk-search{width:auto;flex:none;padding:0 12px}
  html.desk .dk-search span,html.desk .dk-search kbd{display:none}
}

/* under 1140 wide the side rail is gone and the reading column takes the whole width (the rule at the top of this file was beaten by the later .dk-rail display) */
@media (max-width:1139px){
  html.desk .dk-rail{display:none}
  html.desk :is(.rp-about,.gl-about,.aw-pane){grid-template-columns:minmax(0,1fr);column-gap:0}
  html.desk :is(.rp-about,.gl-about,.aw-pane)>:first-child:not(.dk-rail){margin-top:24px}
}

/* the full-screen painting on an iPad and on a desktop (David, 2026-10-26: no panel over the picture. Value / Squint / Where / Pick are small see-through
   buttons stacked in the bottom-right corner; whatever a mode needs (palette, pick strip, selection) opens just above them. */
  html.desk .glz-tools{top:auto;bottom:0;width:auto;max-width:min(340px,44vw);padding:0 18px 20px 0;gap:10px;justify-content:flex-end;align-items:flex-end;flex-direction:column-reverse}
  html.desk .glz-seg{display:flex;flex-direction:column;gap:6px;padding:0;background:none;box-shadow:none;border-radius:0}
  html.desk .glz-seg button[data-glzv]{min-height:38px;padding:0 14px;border-radius:var(--r-pill);font:500 14px/1 var(--sans);color:var(--ink);
    background:rgba(14,13,11,.5);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 0 0 1px rgba(236,232,223,.16)}
  html.desk .glz-seg button[data-glzv].on,html.desk .glz-seg button[data-glzv][aria-pressed="true"]{background:rgba(236,232,223,.9);color:#141311}
  html.desk .glz-pal,html.desk .glz-pk,html.desk .glz-sel{padding:10px;border-radius:var(--r-2,12px);background:rgba(14,13,11,.62);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  html.desk .glz-pal[hidden],html.desk .glz-pk[hidden],html.desk .glz-sel[hidden]{display:none}
  html.desk .glz-cap{bottom:20px}
  html.desk .glz-seg button[data-glzv]{opacity:.72;transition:opacity .2s}
  html.desk .glz-seg button[data-glzv]:hover,html.desk .glz-seg button[data-glzv].on{opacity:1}

/* an iPad (touch): the top menu stays put at the very top, full width, all the time; the page's chip row sits under it instead of replacing it (David, 2026-10-26) */
@media (pointer:coarse){
  html.desk.dk-stuck #dk-nav{visibility:visible}
  html.desk.dk-stuck .dk-pb-l,html.desk.dk-stuck .dk-pb-r{display:none}
  html.desk :is(.cp-page,.gl-page,.aw-page) .fd-bar{top:var(--dkn)}
  html.desk.dk-stuck .fd-bar{padding-left:var(--dk-L)}
}

html.desk .screen.explore.mu-home .pl-colls.mu-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:14px}
html.desk .screen.explore.mu-home .mu-tabs{margin:0;padding-left:0;padding-right:0}

/* A painting that is not wider than 1.5 to 1 (js/gallery.js adds .gl-side): the picture on the left, the title block on the right, one band, so the
   title, painter, Keep, Share and the tools are all in the first screen. A wide painting keeps the full-width band above (the rule above). Below
   1100 px nothing changes. The tabs and the feed stay full width underneath. */
@media (min-width:1100px){
  html.desk .screen.article.gl-page.gl-side{grid-template-columns:minmax(var(--dkg),1fr) minmax(0,780px) minmax(0,500px) minmax(var(--dkg),1fr);column-gap:56px;grid-template-rows:auto auto auto auto}
  html.desk .gl-page.gl-side>.art-top{grid-row:1;grid-column:1/-1;padding-left:var(--dkg)}
  html.desk .gl-page.gl-side .gl-hero.gl-hero{grid-column:2;grid-row:2;background:none;padding:24px 0 28px;align-items:flex-end;--hero-vh:min(calc(100dvh - 300px),700px);order:0}
  html.desk .gl-page.gl-side .gl-pal-wrap>.gl-id{grid-column:3;grid-row:2;align-self:center;max-width:none;margin:0;padding-top:0;order:0}
  html.desk .gl-page.gl-side .gl-feed{grid-column:1/-1;grid-row:3}
  html.desk .gl-page.gl-side>.dk-foot{grid-row:4}
}

/* Practice and Study sessions (the .pr-booth screens: Learn it, flashcards, quizzes): a centered stage, not edge-to-edge. The colors, the question and the
   Next button keep a phone-sized column in the middle of the window (David, 2026-10-28: Study is a bad layout on desktop). */
html.desk .screen.pr-booth{align-items:center}
html.desk .pr-booth .pr-top{max-width:760px;margin:0 auto;width:100%;box-sizing:border-box}
html.desk .pr-booth .pr-stage{width:min(760px,100%);margin:0 auto;box-sizing:border-box;padding:0 0 12px}
html.desk .pr-booth .ls-story-bars{left:0;right:0}
html.desk .pr-booth .ls-mp.ls-mp-meet{border-radius:22px;overflow:hidden;max-height:calc(100dvh - 300px);min-height:360px}
html.desk .pr-booth .pr-foot{width:min(760px,100%);margin:0 auto;box-sizing:border-box}
html.desk .pr-booth .ls-primary{width:100%}

/* Name any color on a wide screen (js/namer.js; David, 2026-10-28: "this screen needs redoing", then "awkward bad design"): two panels of the same height, top
   aligned. Left: the color's name on its own color, the nearest names, the actions. Right: the tabs and the picker. On a phone both wrappers are
   display:contents, so the one-column stage is exactly as it was. */
.nmr-left,.nmr-right{display:contents}
@media (min-width:1100px){
  html.desk .screen.namer{max-width:none;width:100%;align-items:stretch}
  html.desk .namer .nmr-stage{width:100%;display:grid;grid-template-columns:minmax(380px,460px) minmax(0,1fr);column-gap:28px;align-items:stretch;max-width:1240px;margin:0 auto;box-sizing:border-box;
    height:calc(100dvh - var(--dkn, 60px));min-height:600px;padding:24px var(--dkg) 28px}
  html.desk .namer .nmr-left{display:flex;flex-direction:column;min-height:0;gap:14px}
  html.desk .namer .nmr-right{display:flex;flex-direction:column;min-height:0;padding:22px 32px 26px;border-radius:20px;background:var(--surface-2);border:1px solid var(--rule)}
  html.desk .namer .nmr-top{margin:0;padding:0 24px 14px;border-radius:20px;overflow:hidden}
  html.desk .namer .nmr-top .art-top{margin:0 -24px;padding:16px 24px 0}
  html.desk .namer .nmr-name{font-size:clamp(44px,4.2vw,60px)}
  html.desk .namer .nmr-near{flex:1 1 auto;flex-direction:column;overflow:visible;margin:0;padding:0;gap:8px;min-height:0}
  html.desk .namer .nmr-row{max-width:none;width:100%;height:auto;flex:1 1 0;min-height:56px;max-height:104px}
  html.desk .namer .nmr-acts{height:auto;flex-wrap:wrap;gap:10px;margin:0;overflow:visible}
  html.desk .namer .nmr-acts button{min-height:44px;padding:0 20px;border-radius:999px;border:1px solid var(--rule-strong,var(--rule));background:var(--surface-2);font:500 15px/1 var(--sans);text-decoration:none;color:var(--ink)}
  html.desk .namer .nmr-acts button:hover{background:var(--surface-3)}
  html.desk .namer .nmr-tabs{margin:0;padding:0;gap:28px}
  html.desk .namer .nmr-tabs button{font-size:21px;padding:4px 0 14px}
  html.desk .namer .nmr-pane{flex:1;padding-top:20px}
  html.desk .namer .nmr-below{max-width:1240px;margin:0 auto;padding:0 var(--dkg) 60px;box-sizing:border-box}
}
}

/* Settings in the top bar (David, 2026-10-28: "there's no settings"): one round button beside search; it opens the same Settings and progress sheet as everywhere else */
html.desk .dk-set{flex:none;display:grid;place-items:center;width:38px;height:38px;margin-left:10px;border-radius:50%;background:var(--surface-2);border:1px solid var(--rule);color:var(--soft);cursor:pointer}
html.desk .dk-set:hover{border-color:var(--rule-strong);background:var(--surface-3);color:var(--ink)}
html.desk .dk-set:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
html.desk .dk-set svg{width:19px;height:19px}

/* Reading text on a desktop (David, 2026-11-07: "on desktop painter articles too small the text ... color articles too"):
   the pages kept their phone sizes (16 px body, 13 px notes) in a wide window. Body copy reads at 19 px, notes never under 15. */
html.desk :is(.aw-page,.cp-page,.gl-page,.article) :is(p:not([class]),li:not([class]),dd:not([class]),.ar-dc,.aw-pull,.ar-sec>p:not(.ar-chk)){font-size:19px;line-height:1.6}
html.desk :is(.aw-page,.cp-page,.gl-page,.screen.article) :is(.fine,.aw-cl-n,.aw-sub,.aw-note,.gl-in-sub,.rc-pc-meta,.ar-fig-cr,.aw-glance span,.aw-legend){font-size:15.5px;line-height:1.5}
html.desk .aw-page .aw-bio .aw-lead{font-size:26px;line-height:1.35}
html.desk .aw-page :is(.aw-find,.aw-hl-line){font-size:21px}
html.desk :is(.aw-page,.cp-page,.gl-page,.screen.article) .aw-bio{max-width:62ch}
html.desk .cp-page .rp-def{font-size:23px;line-height:1.45;max-width:46ch}
