/* The explorer (BRIEF.md decision 4), ported from docs/reference/explorer-prototype.html.
   Colors and sizes come from tokens.css. Without its script, or without 3D, the page shows
   the list of projects. */
.explorer main{padding:0;max-width:none}
.explorer header{position:fixed;left:0;right:0;top:0;z-index:30;background:none;padding:calc(18px + env(safe-area-inset-top)) 28px 0;border:0;pointer-events:none}
.explorer header>*{pointer-events:auto}
.explorer header .logo img{height:36px}
.explorer header .links a{opacity:.78}
.explorer header .links a[aria-current]{opacity:1;border-bottom:1.5px solid var(--ink);padding-bottom:3px}
.explorer .finder{display:grid}
/* With scripts on, the list waits for the map's script to say whether it's the map or
   the list, so its plain version never flashes on the way in (Zach, Oct 30) */
@media (scripting: enabled){.explorer:not(.three):not(.no-3d) :is(.finder,.dock){display:none}}
.explorer.three .finder{display:none}
.explorer.three .finder.open,.explorer.three .finder.peek{display:grid}
.explorer .finder{transition:transform .36s cubic-bezier(.2,.7,.15,1),left .36s cubic-bezier(.2,.7,.15,1),right .36s cubic-bezier(.2,.7,.15,1),bottom .36s cubic-bezier(.2,.7,.15,1),border-radius .36s cubic-bezier(.2,.7,.15,1),opacity .2s}
.explorer .finder.dragging{transition:none}
.finder .fhandle{position:absolute;left:0;right:0;top:0;width:100%;margin:0;z-index:3}
.explorer.no-3d .finder .fhandle{display:none}
.explorer.no-3d .finder .close{display:none}
.explorer .colhead{display:grid}
/* One Filters button (Zach, Oct 29): round; a pill naming the one filter that's on;
   the icon with a count when there are more */
.frow .search{flex:1;min-width:0}
.fbutton-slot{display:contents}
.fbutton{flex:none;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;min-width:40px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--field);color:var(--ink);transition:padding .25s,background .2s}
.fbutton.on{border-color:var(--harvest);color:var(--harvest);background:var(--harvest-soft)}
.fbutton.named{padding:0 15px}
.fbutton .fname{font-size:14px;white-space:nowrap;max-width:46vw;overflow:hidden;text-overflow:ellipsis}
.fbutton .badge{position:absolute;right:-4px;top:-4px;min-width:18px;height:18px;border-radius:9px;background:var(--harvest);color:var(--paper-2);font-size:11px;display:flex;align-items:center;justify-content:center;padding:0 4px}
.fscrim{position:fixed;inset:0;z-index:44;background:transparent;display:none}
.fscrim.open{display:block}
.fsheet{position:fixed;z-index:45;width:440px;max-height:min(70vh,640px);display:none;flex-direction:column;background:var(--paper-2);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px var(--shadow);overflow:hidden}
.fsheet.open{display:flex}
.fsheet-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px 4px}
.fsheet-head h3{font-family:var(--serif);font-weight:400;font-size:24px;margin:0}
.fsheet-x{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:transparent;font-size:18px;line-height:1}
.fsheet-body{overflow:auto;padding:0 18px 12px;touch-action:pan-y;overscroll-behavior:contain}
.fsheet-inner{will-change:transform}
.fsheet-foot{display:flex;gap:10px;padding:12px 18px 16px;border-top:1px solid var(--line)}
.fsheet-foot .btn{flex:1;justify-content:center;height:44px}
/* The Years picker, one compact strip (Zach chose A, Oct 30): touching bars, the chosen
   years above, and two thumbs under it at the edges of the chosen years. The sliders
   reach a thumb's half past each end, so a thumb's middle sits on a bar's edge */
.ypicker{--r:14px}
.yhead{display:flex;justify-content:space-between;align-items:baseline;font-size:15px;margin-bottom:8px}
.yhead .yn{font-size:13px;color:var(--ink-2)}
.ybars{display:flex;align-items:flex-end;gap:2px;height:30px}
.ybars i{flex:1;min-width:0;min-height:4px;border-radius:2px 2px 0 0;background:var(--ink-faint);transition:background .15s}
.ybars i.in{background:var(--harvest)}
.ybars i.none{background:var(--ink-wash)}
.yrange{position:relative;height:32px;margin-top:-4px}
.yrange::before,.yrange .fill{content:"";position:absolute;top:15px;height:2px;border-radius:1px}
.yrange::before{left:0;right:0;background:var(--line)}
.yrange .fill{left:calc(var(--a) * 100%);right:calc((1 - var(--b)) * 100%);background:var(--harvest)}
.yrange input{position:absolute;left:calc(-1 * var(--r));top:0;width:calc(100% + 2 * var(--r));height:32px;margin:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none;touch-action:none}
.yrange input.over{z-index:1}
.yrange input::-webkit-slider-runnable-track{height:32px;background:none}
.yrange input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:28px;height:28px;margin-top:2px;border-radius:50%;background:var(--paper-2);border:2px solid var(--harvest);box-shadow:0 2px 6px var(--shadow);cursor:grab}
.yrange input::-moz-range-track{background:none}
.yrange input::-moz-range-thumb{pointer-events:auto;width:24px;height:24px;border-radius:50%;background:var(--paper-2);border:2px solid var(--harvest);box-shadow:0 2px 6px var(--shadow);cursor:grab}
.yrange input:focus-visible{outline:none}
.yrange input:focus-visible::-webkit-slider-thumb{outline:2px solid var(--harvest);outline-offset:2px}
.yends{position:relative;height:16px;font-size:11.5px;color:var(--ink-2)}
.yends span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.yends span:first-child{transform:none;left:0!important}
.yends span:last-child:not(:first-child){transform:none;left:auto!important;right:0}
/* A light frosted backdrop behind words over the land, so they read (Zach, Oct 29) */
.explorer .intro,.explorer .panel{background:var(--frost);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:18px;padding:14px 18px 16px;margin-left:-18px}
/* The title and the header's pills are thin glass, so a name or the land behind them
   still shows through, as on Apple's (Zach, Oct 30). The panel keeps its frost: it has
   more to read */
.explorer .intro,.explorer header .logo,.explorer header .links,.explorer header .menu summary{background:var(--glass-thin);-webkit-backdrop-filter:blur(5px) saturate(170%);backdrop-filter:blur(5px) saturate(170%);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 var(--shine),0 6px 18px var(--ink-wash)}
.explorer .intro{padding-top:10px}
.explorer header .logo{display:inline-block;padding:6px 10px;margin:-6px -10px;border-radius:14px}
.explorer header .links{padding:8px 18px;border-radius:999px}
/* Earlier work's card stays small (Zach, Oct 31): where it is as a small line under the
   title, then the credit as one tight block under a dashed slate rule, every line at body
   size (0001), the years at the end of the firm's row */
.panel .where{margin:6px 0 0;font-size:var(--small);color:var(--slate)}
/* The firm's credit first, then the person's part in its own marked box (Zach chose E,
   Nov 4; docs/mockups/earlier-credit/options-2.png) */
.panel .credit-lines{margin:12px 0 0;padding-top:10px;border-top:1px dashed var(--slate-line)}
.panel .credit-lines p{margin:0;font-size:var(--text);color:var(--ink);line-height:1.4}
.panel .their-part{margin-top:10px;padding:8px 12px 9px 13px;border-left:3px solid var(--slate);border-radius:0 10px 10px 0;background:linear-gradient(var(--slate-soft),var(--slate-soft)),var(--paper)}
.panel .their-part .part-title{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--slate);margin-bottom:2px}
.panel.prior h2{color:var(--slate)}
body.explorer{height:100%;overflow:hidden;touch-action:none;-webkit-text-size-adjust:100%}
/* The map's page never scrolls, not even sideways on an iPhone, whose root element
   scrolls rather than the body: a stray scroll after turning the phone left taps landing
   off the buttons (Zach, Oct 30) */
html:has(> body.explorer){height:100%;overflow:hidden}
body.explorer{position:fixed;inset:0;width:100%}
/* Only the land pinches and zooms (Zach, Oct 29): the page never does. Panels still
   scroll: cards sideways, lists and menus up and down. */
.explorer .carousel,.explorer .thumbs,.explorer .frow{touch-action:pan-x}
.explorer .finder,.explorer .flist,.explorer .fside{touch-action:pan-y}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--slate);outline-offset:2px}
#stage{position:fixed;inset:0;touch-action:none}
#stage canvas{display:block;width:100%;height:100%}
#stage.grab{cursor:grab}#stage.grabbing{cursor:grabbing}#stage.point{cursor:pointer}


.intro{position:fixed;left:28px;top:calc(96px + env(safe-area-inset-top));z-index:20;transition:opacity .4s,transform .4s;pointer-events:none}
/* The heading's type is in site.css, shared with its outline (BRIEF.md decision 52) */
/* The nudge to start (Zach chose the fingertip, Oct 30): plays twice over the land, then
   rests until the first touch. Only for the eye. */
.nudge{position:fixed;left:50%;top:38%;z-index:21;width:0;height:0;pointer-events:none}
.nudge .tip,.nudge .ring{position:absolute;left:-17px;top:-17px;width:34px;height:34px;border-radius:50%;opacity:0}
.nudge .tip{background:var(--shine-bright);box-shadow:0 0 0 1.5px var(--ink-veil),0 6px 14px var(--shadow)}
.nudge .ring{border:1.5px solid var(--harvest)}
.nudge .crumb{position:absolute;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--ink)}
.nudge .words{position:absolute;left:0;top:44px;transform:translateX(-50%);margin:0;white-space:nowrap;padding:8px 15px;border-radius:999px;background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 6px 16px var(--shadow);font-size:14px;color:var(--ink);opacity:0}
.nudge.still .tip,.nudge.still .words{opacity:1}
body.project .nudge{display:none}
body.project .intro{opacity:0;transform:translateY(-10px)}

#labels{position:fixed;inset:0;z-index:12;pointer-events:none}
.pin{background:none;border:0;padding:0;font:inherit;color:inherit;position:absolute;left:0;top:0;transform:translate(-50%,-100%);white-space:nowrap;pointer-events:auto;transition:opacity .3s;cursor:pointer;overflow:visible}
.pin .tag{display:flex;align-items:baseline;gap:8px;padding:5px 11px;border-radius:999px;background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:padding .2s,border-color .2s}
.pin .no{font-size:12px;color:var(--harvest)}
.pin .nm{font-family:var(--serif);font-size:15px}
.pin .stem{width:1px;height:16px;margin:0 auto;background:var(--harvest)}
.pin.prior .tag{border-style:dashed;border-color:var(--slate)}
.pin.prior .no{color:var(--slate)}.pin.prior .stem{background:var(--slate)}
.pin.hot .tag{border-color:var(--harvest);padding:7px 14px}
.pin.prior.hot .tag{border-color:var(--slate)}
.pin.hide{opacity:0;pointer-events:none}
/* A project off a side shows as a circle with its number on that edge (Zach, Oct 29);
   it grows back into the full pin as it comes on screen. */
/* A pin morphs into its circle bit by bit as it goes past the edge (Zach, Oct 30): the
   script sets --t (0 the full pin, 1 the circle) and the tag's width and height each
   frame, so dragging the land scrubs the morph. No transitions: it follows the finger. */
.pin{--t:0}
.pin .tag{position:relative;box-sizing:border-box;overflow:hidden;transition:none}
.pin .no{position:relative}
/* The number stays the whole way; "No." folds away. Earlier work swaps its words for "E". */
.pin .pre{display:inline-block;overflow:hidden;vertical-align:bottom;white-space:pre;max-width:calc(110px * (1 - var(--t) * 1.6));opacity:calc(1 - var(--t) * 2)}
.pin.prior .num{display:none}
.pin.prior.circle .num{display:block;font-size:12.5px}
.pin .nm{display:inline-block;overflow:hidden;vertical-align:bottom;opacity:calc(1 - var(--t) * 2.2)}
.pin .stem{height:calc(16px * (1 - var(--t)))}
.pin.edge .tag{border-color:var(--harvest);box-shadow:0 3px 10px rgba(31,43,40,calc(.12 * var(--t)));padding-left:calc(11px * (1 - var(--t)));padding-right:calc(11px * (1 - var(--t)))}
.pin.edge.prior .tag{border-color:var(--slate)}
.pin.circle .tag{justify-content:center;align-items:center;padding:0;border-width:1.5px}
.pin.circle .pre,.pin.circle .nm{display:none}
.pin.circle .no{display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:1}
.pin.circle .num{font-size:12.5px;line-height:1;font-variant-numeric:tabular-nums;display:block;text-align:center}
.pin.edge .arrow{position:absolute;top:50%;width:6px;height:6px;border-top:1.5px solid var(--harvest);border-right:1.5px solid var(--harvest);opacity:calc(var(--t) * 2 - 1)}
.pin.edge.prior .arrow{border-color:var(--slate)}
.pin.edge.right .arrow{right:-9px;transform:translateY(-50%) rotate(45deg)}
.pin.edge.left .arrow{left:-9px;transform:translateY(-50%) rotate(-135deg)}
.pin:not(.edge) .arrow{display:none}
body.project .pin{opacity:0!important;pointer-events:none}

#leaders{position:fixed;inset:0;z-index:13;pointer-events:none}
#leaders svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
/* A callout's words are the map's, not text to highlight (Zach, Oct 31) */
.leader{-webkit-user-select:none;user-select:none;position:absolute;left:0;top:0;width:240px;padding:10px 12px 12px;border-radius:12px;background:var(--glass);border:1px solid var(--harvest-line);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:opacity .35s ease;pointer-events:auto;will-change:transform}
.leader.prior{border-color:var(--slate-line);border-style:dashed}
.leader.off{opacity:0;pointer-events:none}
.leader img{display:block;width:100%;height:118px;object-fit:cover;border-radius:8px;margin-bottom:9px}
.leader .k{font-size:12px;color:var(--harvest);margin:0 0 3px}
.leader.prior .k{color:var(--slate)}
.leader p{margin:0;font-family:var(--serif);font-size:15.5px;line-height:1.4}
.leader .facts{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;margin-top:2px;font-size:13.5px}
.leader .facts span:nth-child(odd){color:var(--ink-2)}

/* An open project's words are the map's, not text to highlight (Zach, Oct 31) */
.panel{-webkit-user-select:none;user-select:none;position:fixed;left:28px;top:calc(100px + env(safe-area-inset-top));z-index:20;width:min(420px,calc(100vw - 56px));opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .45s .15s,transform .45s .15s}
body.project .panel{opacity:1;transform:none;pointer-events:auto}
.panel .no{font-size:14px;color:var(--harvest);margin:0}
.panel.prior .no{color:var(--slate)}
.panel h2{font-family:var(--serif);font-weight:400;font-size:clamp(34px,4vw,52px);line-height:1.02;margin:8px 0 0}
.panel .sum{font-family:var(--serif);font-size:18px;line-height:1.55;color:var(--ink-2);margin:14px 0 0}
.panel .credit{margin:12px 0 0;font-size:14px;color:var(--slate);line-height:1.5}
.panel .acts{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.btn{text-decoration:none;color:inherit;display:inline-flex;align-items:center;height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:transparent;font-size:14px}
.explorer .btn.solid{background:var(--ink);color:var(--paper-2);border-color:var(--ink)}
/* The village list, beside a village's way onto its page (BRIEF.md decision 45) */
.explorer .btn.list{background:var(--village);color:var(--paper-2);border-color:var(--village)}
.hint{margin:16px 0 0;font-size:13px;color:var(--ink-2)}

/* The quick nav and the full list that grows out of it are no wider than a project's card
   over the page (site.css .ppop, 1296 px), centered (Zach, Oct 31) */
.dock{position:fixed;left:max(20px,calc(50% - 648px));right:max(20px,calc(50% - 648px));bottom:calc(16px + env(safe-area-inset-bottom) + var(--hidden-below, 0px));z-index:25;border-radius:22px;background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:10px 14px 14px;transition:transform .45s cubic-bezier(.2,.7,.15,1)}
.handle{display:block;width:calc(100% + 28px);height:30px;margin:-10px -14px 0;border:0;background:transparent;position:relative;touch-action:none;cursor:grab}
.handle::after{content:"";position:absolute;left:calc(50% - 24px);width:48px;top:13px;height:4px;border-radius:2px;background:var(--line)}
.dock.collapsed{transform:translateY(calc(100% - 22px))}
.dock.dragging{transition:none}
.carousel.sliding,.thumbs.sliding{cursor:grabbing;scroll-snap-type:none}
.carousel.free{scroll-snap-type:none}
.carousel.sliding .card{pointer-events:none}
@media (pointer:fine){.carousel{scrollbar-width:thin;padding-bottom:6px}.carousel::-webkit-scrollbar{display:block;height:6px}.carousel::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}}
.frow{display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.frow::-webkit-scrollbar{display:none}
.search{display:flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);min-width:260px;flex:none;background:var(--field)}
.search input{border:0;background:transparent;outline:none;font:inherit;font-size:14px;width:100%;color:var(--ink)}
/* The field shows it has the keys as every search and field on the site does (site.css
   .all-search; the nightly check's keyboard walk, Nov 19: WCAG 2.4.7) */
.search:has(input:focus-visible){border-color:var(--harvest);box-shadow:0 0 0 3px var(--harvest-soft)}
.pill{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px;border-radius:999px;border:1px solid var(--line);background:transparent;font-size:14px;white-space:nowrap}
.pill.on{border-color:var(--harvest);color:var(--harvest);background:var(--harvest-soft)}
.pill svg{width:10px;height:6px}
.switch{flex:none;display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 15px 0 10px;border-radius:999px;border:1px solid var(--line);background:transparent;font-size:14px;white-space:nowrap}
.switch i{width:30px;height:18px;border-radius:9px;background:var(--ink-faint);position:relative;transition:background .2s}
.switch i::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--paper-2);transition:left .2s}
.switch[aria-checked="true"] i{background:var(--slate)}
.switch[aria-checked="true"] i::after{left:14px}
.meta{display:flex;justify-content:space-between;align-items:baseline;margin:10px 4px 8px;font-size:14px;color:var(--ink-2)}
.carousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px}
/* The map's cards' arrows (site.css .row-arrows, js/site.js rowArrows): one over each end,
   with a mouse only, the cards fading into an end that cuts them off and scrolling freely,
   without snapping (UI_STANDARDS 7) (Zach chose A, Nov 19; docs/mockups/map-card-arrows/) */
.dock .lane{position:relative;--fade:56px}
.dock .lane>button{display:none}
@media (hover:hover){
  .dock .lane>button{display:grid;top:calc(50% - 18px)}
  .dock .lane>.prev{left:10px}
  .dock .lane>.next{right:10px}
  .dock .lane .carousel{scroll-snap-type:none;-webkit-mask-image:var(--row-fade);mask-image:var(--row-fade)}
  .dock .lane.before .carousel{--fade-before:var(--fade)}
  .dock .lane.after .carousel{--fade-after:var(--fade)}
}
.carousel::-webkit-scrollbar{display:none}
/* A card leads with its picture (Zach chose A, Nov 14; docs/mockups/list-card-photo/): the
   photo, or the model's drawing until there's one, covers it, its words at its foot on a
   shade like the hero's, in the hero's colors */
.card{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;color:inherit;text-decoration:none;-webkit-user-drag:none;flex:none;width:224px;height:236px;scroll-snap-align:start;text-align:left;border-radius:14px;border:1px solid var(--line);background:var(--card);padding:0 13px 12px;transition:border-color .2s,transform .12s ease-out}
.card:active,a.row:active{transform:scale(.98)}
.card.hot{border-color:var(--harvest)}
.card.prior{border-style:dashed;border-color:var(--slate-line)}
.card.prior.hot{border-color:var(--slate)}
.card img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:var(--paper)}
.card::before{content:"";position:absolute;inset:0;z-index:1;background:var(--card-foot);pointer-events:none}
.card>:not(img){position:relative;z-index:2}
/* Staging's tag on work that isn't live yet sits on the picture's top left (decision 49) */
.card .not-live,.row .not-live{position:absolute;left:10px;top:10px;z-index:3;margin:0;font-size:12px;pointer-events:none}
/* In the list written in the page before its script, beside the name */
.row .t .not-live{position:static;margin:0 0 0 8px;vertical-align:middle}
.card .r1{display:flex;justify-content:space-between;font-size:12.5px;text-shadow:var(--title-shadow)}
.card .r1 .n{color:var(--kicker-on-photo)}.card.prior .r1 .n{color:var(--slate-on-photo)}
.card .r1 .s{color:var(--paper-soft)}
.card .t{font-family:var(--serif);font-size:17.5px;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--on-photo);text-shadow:var(--title-shadow)}
.card .p{font-size:13px;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--paper-soft);text-shadow:var(--title-shadow)}
.empty{padding:26px 8px;font-family:var(--serif);font-size:17px;color:var(--ink-2)}

.strip{display:none;align-items:center;gap:10px}
body.project .dock .full{display:none}
body.project .dock .strip{display:flex}
.thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;flex:1}
.thumbs::-webkit-scrollbar{display:none}
.thumb{flex:none;width:92px;height:60px;border-radius:9px;border:1px solid var(--line);padding:0;overflow:hidden;background:var(--card)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb.on{border:1.5px solid var(--harvest)}
.thumb.prior{border-style:dashed;border-color:var(--slate-line)}
.thumb.prior.on{border-color:var(--slate);border-width:1.5px}

.pop{position:fixed;z-index:40;min-width:220px;padding:8px;border-radius:14px;background:var(--paper-2);border:1px solid var(--line);box-shadow:0 10px 30px var(--shadow);display:none}
.pop.open{display:block}
.pop label{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:14px;cursor:pointer}
.pop input{accent-color:var(--ink)}
.pop .c{margin-left:auto;color:var(--ink-2);font-size:13px}

.finder{position:fixed;left:max(20px,calc(50% - 648px));right:max(20px,calc(50% - 648px));top:calc(96px + env(safe-area-inset-top));bottom:calc(16px + env(safe-area-inset-bottom));z-index:35;border-radius:22px;background:var(--glass-strong);border:1px solid var(--line);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);display:none;grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:14px;padding:30px 22px 18px}
.finder .close{position:absolute;right:16px;top:12px;z-index:2}
.fside{display:flex;gap:8px;align-items:center;max-width:640px;padding-right:90px}
.fside .search{flex:1;min-width:0}
.fgroup{margin-top:20px}
.fgroup h3{font-size:13px;font-weight:400;color:var(--ink-2);margin:0 0 9px}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chip{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border-radius:999px;border:1px solid var(--line);background:transparent;font-size:13.5px}
.chip.on{border-color:var(--harvest);color:var(--harvest);background:var(--harvest-soft)}
.chip .c{opacity:.6}
/* The list scrolls with no bar of its own, as the site's other sheets do: on a desk the bar
   showed while the list rose and went once it was open, shifting the cards over (Zach, Nov 19) */
.flist{overflow:auto;scrollbar-width:none;display:flex;flex-direction:column;min-height:0}
.flist::-webkit-scrollbar{display:none}
.fhead{display:flex;justify-content:flex-end;margin:4px 4px 10px}
/* The list's order (Zach chose A, Oct 30): one button naming it, opening a short menu */
.sort{position:relative}
.sortbtn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 13px;border-radius:999px;border:1px solid var(--line);background:transparent;font-size:13.5px;color:var(--ink)}
.sortmenu{position:absolute;right:0;top:42px;z-index:5;min-width:180px;padding:6px;border-radius:14px;border:1px solid var(--line);background:var(--paper-2);box-shadow:0 10px 30px var(--shadow)}
.sortmenu button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;font-size:14px;color:var(--ink);text-align:left}
.sortmenu button[aria-checked="true"]{background:var(--ink-wash)}
.cols{display:grid;grid-template-columns:132px 64px 1.3fr .9fr 1fr 120px 1.5fr;gap:16px;align-items:center}
.colhead{font-size:12px;color:var(--ink-2);padding:0 10px 6px}
.row{width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:12px;padding:8px 10px;margin-bottom:4px;transition:transform .12s ease-out}
.row.prior{border:1px dashed var(--slate-line)}
.row .n{font-size:14px;color:var(--harvest)}.row.prior .n{color:var(--slate)}
.row .t{font-family:var(--serif);font-size:19px}
.row .d{font-size:13.5px;color:var(--ink-2)}
.row .why{font-family:var(--serif);font-size:15px;color:var(--ink-2);line-height:1.4}

/* The list, once its script has drawn it: each row a wide photo carrying its words, as the
   map's cards do (Zach chose B, Nov 14; docs/mockups/list-photo-first/options.png), one
   across on a phone and two or three on a desk (Zach, Nov 14). Its pictures swipe
   sideways without opening its work, with dots, arrows with a mouse, round from the last
   to the first (UI_STANDARDS 22; js/site.js slideshow). The list written in the page
   before its script keeps its plain rows. */
.flist:has(#rows .pics) .colhead{display:none}
#rows:has(.pics){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:2px 2px 24px}
.row.cols:has(.pics){position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;aspect-ratio:3/2;padding:0;margin:0;border:1px solid var(--line);border-radius:16px;background:var(--icon-paper)}
.row.cols.prior:has(.pics){border-style:dashed;border-color:var(--slate-line)}
.row .pics{position:absolute;inset:0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;cursor:pointer}
.row .pics::-webkit-scrollbar{display:none}
.row .pics img{flex:none;display:block;width:100%;height:100%;object-fit:cover;scroll-snap-align:start;scroll-snap-stop:always}
.row:has(.pics)::before{content:"";position:absolute;inset:0;z-index:1;background:var(--card-foot);pointer-events:none}
/* The words let a swipe or a tap through to the pictures under them; the row's link still
   takes the keyboard */
.row .go{position:relative;z-index:2;display:block;padding:0 16px 13px;border:0;background:none;text-align:left;color:inherit;text-decoration:none;pointer-events:none}
.row:has(.pics) .n{display:block;font-size:12.5px;color:var(--kicker-on-photo);text-shadow:var(--title-shadow)}
.row.prior:has(.pics) .n{color:var(--slate-on-photo)}
.row:has(.pics) .t{display:block;font-size:23px;line-height:1.15;margin-top:2px;color:var(--on-photo);text-shadow:var(--title-shadow)}
.row:has(.pics) .d{color:var(--paper-soft);text-shadow:var(--title-shadow)}
/* Its dots (their look and its arrows' are site.css's, a work's card's) at the top, where
   its words leave room; its arrows halfway down the picture above its words, not the card */
.row .dots{position:absolute;left:0;right:0;top:10px;z-index:3;display:flex;justify-content:center;gap:6px;pointer-events:none}
.row .arr{top:calc(40% - 18px)}
@media (max-width:1100px){#rows:has(.pics){grid-template-columns:repeat(2,minmax(0,1fr))}}

.legend{position:fixed;right:28px;top:calc(96px + env(safe-area-inset-top));z-index:20;display:flex;gap:18px;font-size:13px;color:var(--ink-2);transition:opacity .4s}
.legend span{display:inline-flex;align-items:center;gap:8px}
.legend i{width:10px;height:10px;border-radius:50%;background:var(--harvest)}
.legend i.p{background:transparent;border:1.5px dashed var(--slate)}
body.project .legend{opacity:0}

@media (max-width:760px){
  .fscrim.open{background:var(--ink-faint)}
  .fsheet{left:0;right:0;bottom:0;top:auto;width:auto;max-height:82vh;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .explorer .intro,.explorer .panel{margin-left:0;padding:10px 14px 12px}
  .explorer .intro{left:10px}
  .explorer .panel{left:10px;width:calc(100vw - 20px)}
  .explorer header{padding:calc(12px + env(safe-area-inset-top)) 16px 0}
  .explorer header .logo img{height:26px}
  .intro{left:16px;top:calc(64px + env(safe-area-inset-top))}
  .legend{display:none}
  .dock{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom) + var(--hidden-below, 0px));padding:6px 10px 10px;border-radius:24px}
  .search{min-width:200px}
  .search input{font-size:16px}
  .card{width:170px}
  .panel{left:16px;top:calc(62px + env(safe-area-inset-top));width:calc(100vw - 32px)}
  /* The top keeps the number and type, the title, the summary in at most three lines and
     the way onto the page; the credit waits for the page (Zach chose A's top, Nov 3) */
  .panel h2{font-size:26px}.panel .sum{font-size:15px;margin-top:8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
  .panel:not(.prior)>.credit{display:none}
  .panel .acts{margin-top:10px}.btn{height:44px;padding:0 14px;font-size:13px}
  .hint{display:none}
  .finder{left:0;right:0;bottom:var(--hidden-below, 0px);top:calc(110px + env(safe-area-inset-top));border-radius:24px 24px 0 0;grid-template-columns:1fr;grid-template-rows:auto 1fr;padding:30px 14px 0;gap:10px}
  .cols{grid-template-columns:96px 1fr}
  .cols .hide-m{display:none}
  .colhead,.explorer .colhead{display:none}
  .row .n{display:none}
  #rows:has(.pics){grid-template-columns:1fr;gap:12px;padding:0 0 16px}
  .fside{margin-top:44px;max-width:none;padding-right:0}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* Set to reduce motion, a card's press still waits its moment on a touch screen, so a
   scroll presses nothing (site.css), then shows at once */
@media (prefers-reduced-motion:reduce) and (hover:none){:root :active{transition:transform 0s calc(var(--tap-press, 0) * 80ms)!important}}
/* An open project's notes on a phone, one at a time (BRIEF.md decision 37): the notes are
   numbers on the building, and one shows in a card above the quick nav, with map between
   them (Zach, Nov 3). The width matches the script's phone (main.cljs phone?). */
.notes,.note-mark{display:none}
@media (max-width:759.98px){
  .notes{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;position:fixed;left:16px;right:16px;top:0;z-index:14;padding:10px 10px 11px 14px;border-radius:16px;background:var(--glass);border:1px solid var(--harvest-line);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 2px 10px var(--shadow-soft);opacity:0;pointer-events:none;transition:opacity .35s ease;touch-action:none;-webkit-user-select:none;user-select:none;will-change:transform}
  .notes.on{opacity:1;pointer-events:auto}
  .notes.prior{border-color:var(--slate-line);border-style:dashed}
  /* Every note in one place, so the card keeps the tallest one's height as they change */
  .notes .stack{display:grid}
  .notes .note{grid-area:1/1;visibility:hidden}
  .notes .note.on{visibility:visible}
  .notes .note p{margin:0;font-family:var(--serif);font-size:14px;line-height:1.38;color:var(--ink)}
  .notes .note .k{margin-bottom:2px;font-size:15px;line-height:1.3;color:var(--harvest)}
  .notes.prior .note .k{color:var(--slate)}
  .notes .of{margin-left:6px;font-family:var(--sans);font-size:12px;color:var(--ink-2)}
  .notes .facts{display:grid;grid-template-columns:auto 1fr;gap:1px 12px;font-size:13.5px;line-height:1.4}
  .notes .facts span:nth-child(odd){color:var(--ink-2)}
  .notes .arrows{display:flex;gap:4px}
  .notes .arrows button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--paper-2);color:var(--ink);font-size:20px;line-height:1}
  .note-mark{display:grid;place-items:center;position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;padding:0;border:0;background:none;pointer-events:auto;transition:opacity .35s ease;will-change:transform;-webkit-user-select:none;user-select:none}
  .note-mark.off{opacity:0;pointer-events:none}
  .note-mark span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--paper-2);border:1.5px solid var(--harvest);color:var(--harvest);font-size:12.5px;font-weight:500;box-shadow:0 0 0 3px var(--shine-strong);transition:transform .25s,background-color .25s,color .25s}
  .note-mark.on span{transform:scale(1.25);background:var(--harvest);color:var(--paper-2);box-shadow:0 0 0 3px var(--shine-bright),0 0 0 8px var(--harvest-soft)}
  .note-mark.prior span{border-color:var(--slate);color:var(--slate)}
  .note-mark.prior.on span{background:var(--slate);color:var(--paper-2)}
  /* A press shows while the finger is down (UI_STANDARDS 10) */
  .notes .arrows button:active{transform:scale(.92);background:var(--ink-wash)}
  .note-mark:active span{transform:scale(.88)}
  .note-mark.on:active span{transform:scale(1.1)}
}
@media (max-width:759.98px) and (hover:hover){
  .notes .arrows button:hover{border-color:var(--harvest)}
  .note-mark:not(.on):hover span{background:var(--harvest-soft)}
}
@media (max-width:759.98px) and (prefers-reduced-motion:reduce){
  .notes,.note-mark,.note-mark span{transition:none}
}

/* Only a mouse hovers: on a phone a finger that scrolls a list or the cards would leave
   what it touched lit (Zach, Oct 30) */
@media (hover:hover){
  .card:hover{border-color:var(--harvest)}
  .card.prior:hover{border-color:var(--slate)}
  .pop label:hover{background:var(--ink-wash)}
  .row:hover{border-color:var(--harvest);background:var(--card)}
  .row.prior:hover{border-color:var(--slate)}
  .handle:hover::after{background:var(--dim)}
  .search:hover{border-color:var(--ink-faint)}
  .fbutton:hover{border-color:var(--harvest)}
  .explorer .btn.list:hover{filter:brightness(1.08)}
}

/* A phone as small as an iPhone SE: a smaller logo, so the header fits whole (Zach, Nov 1;
   site.css snugs the buttons) */
@media (max-width: 359px) {
  .explorer header .logo img{height:20px}
}
