:root {
  --ground: #FFFFFF;
  --paper: #F7F7F5;
  --ink: #111110;
  --graphite: #5D5C57;
  --hair: #E6E4DF;
  --slot: #DCDBD5;
  --stage: #1B1B1A;
  /* Sunset red, used sparingly: "Architecture.", the main action button and hover. Small text stays black. */
  --red: #DA3A26;
  --red-ink: #B82E1D;
  /* Building photos stay square; everything else gets rounded corners. */
  --r: 10px;
  --r-panel: 18px;
  --sans: 'Barlow', system-ui, sans-serif;
  --serif: 'Barlow', system-ui, sans-serif;
  --mono: 'Barlow Condensed', system-ui, sans-serif;
  --display: 'Big Shoulders Display', Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: var(--ink); }
a:hover { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- top bar and ideas ---------- */
.bar { position: sticky; z-index: 20; top: 0; height: calc(64px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 20px; padding: env(safe-area-inset-top, 0px) 20px 0;
  background: var(--ground); }
.mark .accent { color: var(--red); }
.mark { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.bar-mid { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 8px; }
.search { min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--hair); padding: 0 14px; height: 44px; width: min(460px, 100%); border-radius: var(--r); }
.search:focus-within { border-color: var(--ink); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; flex: none; }
.search input { all: unset; flex: 1; min-width: 0; font-size: 15px; }
.search input::placeholder { color: var(--graphite); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; }

.ideas { position: sticky; z-index: 19; top: calc(64px + env(safe-area-inset-top, 0px)); display: flex; gap: 6px; align-items: center;
  padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--ground) 75%, rgba(255,255,255,0)); }
.ideas::-webkit-scrollbar { display: none; }
.ideas .lead { flex: none; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); padding-right: 6px; }
.idea { all: unset; flex: none; cursor: pointer; padding: 7px 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--hair); border-radius: var(--r); background: #fff; white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
.idea:hover { border-color: var(--red); color: var(--red); }
.idea[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); border-color: var(--ink); }

.btn { all: unset; cursor: pointer; height: 44px; padding: 0 16px; border-radius: var(--r); transition: color .15s ease, border-color .15s ease; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.btn.ghost { border: 1px solid var(--hair); background: transparent; color: var(--ink); text-decoration: none; }
.btn.ghost[aria-expanded="true"] { border-color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--red); color: var(--red); background: #fff; }
#filterCount { font-family: var(--mono); font-weight: 400; }

/* ---------- chips (the opened building's idea links) ---------- */
.chip { all: unset; cursor: pointer; padding: 7px 11px; font-size: 13px; font-weight: 600; border: 1px solid var(--hair); border-radius: var(--r); background: #fff; display: inline-flex; gap: 6px; align-items: center; transition: color .15s ease, border-color .15s ease; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); border-color: var(--ink); }
.chip.quiet { color: var(--graphite); }
.chip .n { font: 400 11px var(--mono); opacity: 0.7; }

/* ---------- filter panel (filter.js): line drawings, a timeline, a map, decade bars, an A–Z of faces ---------- */
body.filtering { overflow: hidden; }
.filters { position: fixed; inset: 0; z-index: 40; background: rgba(14,14,13,.35); display: grid; place-items: center; padding: 24px; }
.filters[hidden] { display: none; }
.fp { width: min(1240px, 100%); height: min(860px, 100%); background: #fff; border: 1px solid var(--hair); border-radius: var(--r-panel); box-shadow: 0 30px 90px rgba(0,0,0,.25);
  display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; position: relative; }
.fp-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.fp-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.fp button { font: inherit; color: var(--ink); }
.fp-tab, .fp-opt, .fp-chip, .fp-also, .fp-letter { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair); border-radius: var(--r); background: #fff;
  font-size: 14px; font-weight: 600; transition: color .15s ease, border-color .15s ease; }
.fp-tab { height: 38px; padding: 0 14px; }
.fp-opt { height: 36px; padding: 0 12px; font-size: 13px; }
.fp-tab small, .fp-opt small, .fp-also small, .fp-cell small, .fp-face small, .fp-mrow small, .fp-found small, .fp-dec small { font: 400 12px var(--mono); color: var(--graphite); }
.fp [aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fp-tab:hover, .fp-opt:hover, .fp-chip:hover, .fp-also:hover, .fp-letter:hover, .fp-cell:hover, .fp-face:hover, .fp-found:hover { border-color: var(--red); color: var(--red); }
.fp-cell:hover svg, .fp-found:hover svg { stroke: var(--red); }
.fp :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.fp .none { opacity: .35; }
.fp-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; width: min(300px, 100%); border: 1px solid var(--hair); border-radius: var(--r); }
.fp-search:focus-within { border-color: var(--ink); }
.fp-search svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2; flex: none; }
.fp-search input { all: unset; flex: 1; min-width: 0; font-size: 15px; }
.fp-close { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); }
.fp-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
.fp-close:hover svg { stroke: var(--red); }
.fp-found-wrap { position: relative; }
.fp-results { position: absolute; right: 20px; top: 4px; z-index: 5; width: min(420px, calc(100% - 40px)); max-height: 440px; overflow-y: auto; background: #fff; border: 1px solid var(--hair);
  border-radius: var(--r-panel); box-shadow: 0 20px 50px rgba(0,0,0,.16); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.fp-found { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 7px 10px; border-radius: var(--r); border: 1px solid transparent; }
.fp-found span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fp-found b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--paper); font: 600 12px var(--mono); }
.fp-body { overflow-y: auto; padding: 4px 20px 16px; min-height: 0; }
.fp-note { margin: 10px 0; font: 400 12px/1.5 var(--mono); color: var(--graphite); }
.fp svg path, .fp svg circle { vector-effect: non-scaling-stroke; }
.fp-cell svg, .fp-found svg, .fp-prev svg { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: stroke .15s ease; }
.fp-cell[aria-pressed="true"] svg, .fp-prev svg.on { stroke: var(--red); }
/* groups as bands: a centred label, then four equal cells; tiles grow only when a group runs to two rows */
.fp-band { display: grid; grid-template-columns: 2fr 10fr; gap: 24px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hair); }
.fp-band:first-child { border-top: 0; }
.fp-band > * { min-width: 0; }
.fp-glabel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.fp-glabel b { font-size: 18px; font-family: var(--display); font-weight: 800; letter-spacing: .01em; line-height: 1.05; }
.fp-gdesc { font-size: 12px; line-height: 1.35; color: var(--graphite); max-width: 180px; }
.fp-prev { display: grid; grid-template-columns: repeat(2, 40px); gap: 4px; }
.fp-prev svg { width: 40px; height: 40px; padding: 7px; box-sizing: border-box; background: var(--paper); border-radius: 8px; }
.fp-pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 96px; }
.fp-pips i { width: 6px; height: 6px; border-radius: 50%; background: #BDBAB2; }
.fp-pips i.on { background: var(--red); }
.fp-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fp-cell { all: unset; box-sizing: border-box; cursor: pointer; height: 52px; padding: 0 12px; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center;
  border: 1px solid var(--hair); border-radius: var(--r); background: #fff; transition: color .15s ease, border-color .15s ease; }
.fp-band.big .fp-cell { height: 64px; }
.fp-cell span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fp-cell b { font-size: 13px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-cell.type { height: 72px; grid-template-columns: 44px 1fr; column-gap: 14px; }
.fp-band.big .fp-cell.type { height: 96px; }
.fp-cell.type b { font-size: 14px; }
.fp-bar { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: var(--hair); }
.fp-bar i { display: block; height: 3px; border-radius: 2px; background: #BDBAB2; }
.fp-cell[aria-pressed="true"] .fp-bar i { background: var(--red); }
/* movements as a timeline */
.fp-tl { display: grid; grid-template-columns: 190px 1fr 56px; column-gap: 12px; row-gap: 4px; align-items: center; }
.fp-axis { position: relative; height: 18px; }
.fp-axis span { position: absolute; bottom: 0; transform: translateX(-50%); font: 400 11px var(--mono); color: var(--graphite); }
.fp-mrow { all: unset; box-sizing: border-box; cursor: pointer; grid-column: 1 / -1; display: grid; grid-template-columns: 190px 1fr 56px; column-gap: 12px; align-items: center; }
.fp-mrow b { font-size: 14px; font-weight: 600; text-align: right; }
.fp-mrow[aria-pressed="true"] b { font-weight: 800; }
.fp-mrow:hover b { color: var(--red); }
.fp-mrow:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.fp-track { position: relative; height: 30px; border-left: 1px solid var(--hair); background: repeating-linear-gradient(90deg, transparent 0 calc(22.22% - 1px), var(--hair) calc(22.22% - 1px) 22.22%); }
.fp-track i { position: absolute; top: 8px; height: 14px; border-radius: 4px; background: #BDBAB2; }
.fp-mrow[aria-pressed="true"] .fp-track i { background: var(--red); }
.fp-mrow:hover .fp-track i { background: var(--red); opacity: .7; }
.fp-track em { position: absolute; top: 4px; width: 2px; height: 22px; background: var(--ink); }
/* location: the map and its regions */
.fp-map { display: block; width: 100%; height: auto; max-height: 440px; background: #F7F6F3; border-radius: var(--r); }
.fp-land { fill: #E4E2DC; stroke: #fff; stroke-width: .5px; }
.fp-reg { stroke: #fff; stroke-width: .6px; cursor: pointer; transition: opacity .15s ease; }
.fp-reg:hover { opacity: .75; }
.fp-dots circle { fill: var(--ink); fill-opacity: .6; stroke: #fff; stroke-width: .3px; }
.fp-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.fp-lab { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin-right: 4px; }
/* date: decade bars and a two-handle slider */
.fp-decs { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; height: 270px; align-items: end; border-bottom: 1px solid var(--ink); }
.fp-dec { all: unset; cursor: pointer; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; text-align: center; position: relative; }
.fp-dec i { display: block; min-height: 3px; background: #CFCCC5; border-radius: 6px 6px 0 0; transition: background .15s ease; }
.fp-dec.on i { background: var(--red); }
.fp-dec:hover i { background: var(--red); opacity: .75; }
.fp-dec span { position: absolute; bottom: -22px; left: 0; right: 0; font: 400 12px var(--mono); color: var(--graphite); }
.fp-range { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; margin-top: 34px; }
.fp-range b { font: 500 14px var(--mono); text-align: left; }
.fp-rtrack { position: relative; height: 28px; margin: 0 calc(100% / 32); }
.fp-rtrack::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--hair); }
.fp-rtrack i { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--ink); }
.fp-rtrack i.on { background: var(--red); }
.fp-rtrack input { position: absolute; left: -12px; top: 0; width: calc(100% + 24px); height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.fp-rtrack input::-webkit-slider-runnable-track { background: none; height: 28px; }
.fp-rtrack input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 10px rgba(0,0,0,.12); cursor: grab; }
.fp-rtrack input::-moz-range-track { background: none; }
.fp-rtrack input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); cursor: grab; }
.fp-rtrack input:hover::-webkit-slider-thumb { border-color: var(--red); }
.fp-rtrack input:hover::-moz-range-thumb { border-color: var(--red); }
/* architects A–Z */
.fp-letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.fp-letter { width: 36px; height: 36px; justify-content: center; }
.fp-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fp-face { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--hair); border-radius: var(--r); background: #fff; transition: color .15s ease, border-color .15s ease; }
.fp-face img, .fp-ini { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); display: block; background: var(--slot); }
.fp-ini { display: grid; place-items: center; font: 600 26px var(--mono); color: var(--ink); filter: none; }
.fp-face b { font-size: 14px; line-height: 1.2; }
/* footer */
.fp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.fp-chosen { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.fp-chip { height: 30px; padding: 0 10px; font-size: 12px; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fp-also { height: 30px; padding: 0 10px; font-size: 12px; border-style: dashed; }
.fp-chosen .fp-lab + .fp-also { margin-left: 0; }
.fp-chosen .fp-also:first-of-type { margin-left: 2px; }
.fp-actions { display: flex; gap: 8px; }
.fp-actions .go { background: var(--red); color: #fff; border: 1px solid var(--red); }
.fp-actions .go:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }

/* ---------- wall: equal-width columns, scrolling down ---------- */
.feed { padding: 8px 20px calc(110px + env(safe-area-inset-bottom, 0px)); }
.cols { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1800px; margin: 0 auto; }
.more { margin: 24px 0 0; text-align: center; font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.t { position: relative; background: var(--slot); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.t:hover, .t:focus-within { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.t .open { all: unset; position: absolute; inset: 0; cursor: pointer; }
.t .open:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
/* the sunset red underline on the tile you hover */
.t::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); opacity: 0; transition: opacity .15s ease; pointer-events: none; z-index: 3; }
.t:hover::after, .t:focus-within::after { opacity: 1; }
.t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.t .flip { all: unset; position: absolute; top: calc(50% - 40px); width: 36px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: var(--r);
  background: rgba(17,17,16,0.72); opacity: 0; transition: opacity .14s ease; z-index: 2; }
.t .flip svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; }
.t .flip.prev { left: 6px; }
.t .flip.next { right: 6px; }
.t .flip:hover { background: var(--red); }
.t:hover .flip, .t:focus-within .flip { opacity: 1; }
.t .dots { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: center; gap: 4px; pointer-events: none; opacity: 0; transition: opacity .14s ease; }
.t:hover .dots, .t:focus-within .dots { opacity: 1; }
.t .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); box-shadow: 0 0 2px rgba(0,0,0,0.5); }
.t .dots i.on { background: #fff; }

/* Caption: a short dark fade at the base; name left, architect right; year and city below. */
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; display: flex; flex-direction: column; gap: 3px; pointer-events: none;
  background: linear-gradient(rgba(17,17,16,0), rgba(17,17,16,.62)); color: #fff; }
.cap .r1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.cap b { flex: 0 0 auto; max-width: 72%; min-width: 0; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap .by { flex: 1 1 0; min-width: 0; font: 400 12px var(--mono); letter-spacing: .02em; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.cap .r2 { font: 400 12px var(--mono); letter-spacing: .02em; color: rgba(255,255,255,.75); }

.nophoto { position: absolute; top: 12px; left: 14px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); pointer-events: none; }
.slot { position: absolute; inset: 0; padding: 14px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; pointer-events: none; }
.slot::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(17,17,16,0.22); }
.slot .k { font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #3E3D39; }
.slot .h { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.05; }
.slot .s { font: 400 11px/1.4 var(--mono); color: var(--graphite); }

.empty { margin: 18vh 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 26px; }
.empty button { all: unset; cursor: pointer; text-decoration: underline; }
.empty button:hover { color: var(--red); }

/* ---------- dock: on top of everything, including an opened building ---------- */
.dock { position: fixed; z-index: 60; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; width: max-content;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); border: 1px solid var(--hair); border-radius: calc(var(--r) + 5px);
  color: var(--ink); box-shadow: 0 14px 34px rgba(17,17,16,.14); }
.dock button { all: unset; cursor: pointer; padding: 0 18px; height: 44px; display: flex; align-items: center; border-radius: var(--r); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.dock button:hover { color: var(--red); }
.dock .go { background: var(--red); color: #fff; padding: 0 22px; }
.dock .go:hover { background: var(--red-ink); color: #fff; }
.dock [hidden] { display: none; }
.dock .back { padding: 0 12px; }
.dock .back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
body.filtering .dock { display: none; } /* the filter panel has its own buttons at the bottom */

/* ---------- opened building ---------- */
/* The opened building leaves a strip at the bottom so the dock sits below it, not over it. */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; --cw: min(1280px, calc(100% - 48px)); --dockroom: calc(66px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--dockroom); }
.sheet[hidden] { display: none; }
.veil { all: unset; position: absolute; inset: 0; background: rgba(14,14,13,0.5); cursor: zoom-out; }
.card { position: relative; width: var(--cw); height: min(800px, calc(100% - 48px)); background: #fff; display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.45); outline: none; animation: rise .22s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card.swap { animation: swap .28s ease; }
@keyframes swap { from { opacity: .4; transform: scale(.985); } }

/* previous / next building, in the wall's order: big arrows with a peek outside the card */
.sheet:has(> .step:not([hidden])) { --cw: min(1180px, calc(100% - 320px)); }
.step { position: absolute; inset: 0 0 var(--dockroom); pointer-events: none; }
.step[hidden] { display: none; }
.step-btn { all: unset; box-sizing: border-box; pointer-events: auto; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: calc((100% - var(--cw)) / 2);
  display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step-btn.prev { left: 0; }
.step-btn.next { right: 0; }
.step-btn .arrow { width: 60px; height: 60px; display: grid; place-items: center; background: #fff; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.step-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; transition: stroke .15s ease; }
.step-btn:hover svg { stroke: var(--red); }
.step-btn:focus-visible .arrow { outline: 3px solid var(--red); outline-offset: 2px; }
.peek { display: flex; flex-direction: column; gap: 6px; width: 128px; padding: 8px 8px 10px; text-align: center; color: #fff; background: rgba(17,17,16,.78); border-radius: var(--r); }
.peek img { display: block; width: 128px; height: 86px; object-fit: cover; background: rgba(255,255,255,.15); }
.peek small { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.peek b { font-size: 13px; line-height: 1.2; }
.step-btn:hover .peek b { text-decoration: underline; text-underline-offset: 3px; }
.step-btn:disabled { cursor: default; opacity: .45; }
.step-btn:disabled img, .step-btn:disabled small { display: none; }
.step-btn:disabled:hover svg { stroke: var(--ink); }
.step-btn:disabled .peek b { font: 400 12px var(--mono); text-decoration: none; }
.step-pos { position: absolute; left: 50%; transform: translateX(-50%); top: max(6px, calc((100% - min(800px, 100% - 48px)) / 2 - 30px)); font: 400 12px var(--mono); color: rgba(255,255,255,.85); }
@media (max-height: 959px) and (min-width: 821px) { .step-pos { display: none; } }
@media (max-width: 1199px) and (min-width: 821px) {
  .sheet:has(> .step:not([hidden])) { --cw: calc(100% - 176px); }
  .peek { display: none; }
}

.gallery { position: relative; min-height: 0; display: grid; grid-template-rows: 1fr auto auto; background: var(--stage); color: #EDEDE9; }
.stage { position: relative; margin: 0; min-height: 0; touch-action: pan-y; }
.stage.drawing { background: #fff; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage .slot { color: var(--ground); }
.stage .slot::before { border-color: rgba(237,237,233,0.25); }
.stage .slot .k, .stage .slot .s { color: #BDBDB6; }
.stage .slot .h { font-size: 34px; }
.nav { all: unset; position: absolute; top: calc(50% - 60px); width: 48px; height: 64px; display: grid; place-items: center; cursor: pointer; border-radius: var(--r); background: rgba(17,17,16,0.55); }
.nav:hover { background: var(--red); }
.nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }
.nav[hidden] { display: none; }
.gcap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 14px 6px; font-size: 13px; }
.gcap .l { font: 400 10px/1.6 var(--mono); letter-spacing: 0.04em; color: #A9A8A2; }
.gcap a { color: #EDEDE9; }
.gcap a:hover { color: #fff; }
.strip { display: flex; gap: 6px; padding: 6px 14px 14px; overflow-x: auto; }
.strip button { all: unset; flex: none; width: 74px; height: 54px; cursor: pointer; opacity: 0.55; outline: 2px solid transparent; outline-offset: 1px; }
.strip button:hover { opacity: 0.85; }
.strip button[aria-current="true"] { opacity: 1; outline-color: #fff; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info { padding: 24px 32px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.info-top { display: flex; justify-content: space-between; align-items: center; }
.kicker { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
.kicker.surprise { color: var(--ink); }
.close { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); }
.close:hover svg { stroke: var(--red); }
.close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; transition: stroke .15s ease; }
.info h1 { margin: 0; font-size: clamp(38px, 4vw, 56px); font-family: var(--display); font-weight: 900; letter-spacing: 0.005em; line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.meta { margin: 0; font: 400 12px/1.6 var(--mono); letter-spacing: 0.04em; color: var(--graphite); }
.study { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.study span { display: block; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hint { margin: 8px 0 0; font: 400 11px/1.5 var(--mono); color: var(--graphite); }

/* Who built it, and where: a black-and-white portrait byline, and a grey world map with the country in sunset red. */
.whowhere { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.byline { min-width: 0; }
.by-link { all: unset; display: flex; align-items: flex-end; gap: 14px; min-width: 0; }
button.by-link { cursor: pointer; }
button.by-link:hover b, button.by-link:hover .see { color: var(--red); }
button.by-link:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.face { flex: none; width: 76px; height: 96px; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); background: var(--slot); display: block; }
.face.initials { display: grid; place-items: center; font: 600 20px var(--mono); color: var(--ink); }
.by-text { display: flex; flex-direction: column; gap: 3px; padding-bottom: 2px; min-width: 0; }
.by-text i { font-family: var(--serif); font-size: 15px; color: var(--graphite); }
.by-text b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; transition: color .15s ease; }
.by-text .see { font: 500 12px var(--mono); transition: color .15s ease; }
.face-credit { margin: 6px 0 0; font: 400 10px/1.5 var(--mono); color: var(--graphite); }
.where { flex: none; width: 190px; display: flex; flex-direction: column; gap: 5px; color: var(--graphite); text-decoration: none; }
.where svg { width: 100%; height: auto; display: block; border-radius: var(--r); background: #F3F2EE; }
.where .land { fill: #D3D1CA; stroke: #fff; stroke-width: 0.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.where .here { fill: var(--red); stroke: #fff; stroke-width: 0.5px; vector-effect: non-scaling-stroke; }
.where .ring { fill: none; stroke: var(--red); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.where .pin { fill: var(--ink); stroke: #fff; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.where-name { font: 400 12px var(--mono); transition: color .15s ease; }
.where-name::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; }
.where:hover .where-name { color: var(--red); }
.page-link { align-self: flex-start; font-size: 14px; font-weight: 700; }
.page-link:hover { color: var(--red); }
.info h2 { margin: 6px 0 8px; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-top: 1px solid var(--hair); padding-top: 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.info h2 .all { all: unset; cursor: pointer; flex: none; font: 500 12px var(--mono); letter-spacing: 0.02em; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.info h2 .all:hover { color: var(--red); }
.info h2 .all:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.info section[hidden] { display: none; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.links a { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: var(--r); padding: 9px 11px; font-size: 14px; font-weight: 700; transition: color .15s ease, border-color .15s ease; }
.links a:hover { border-color: var(--red); color: var(--red); }
.links a.guess { border-style: dashed; }
.links a span { display: block; font: 400 11px var(--mono); letter-spacing: 0.04em; color: var(--graphite); margin-bottom: 2px; }
.rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rel button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.rel .ph { position: relative; height: 78px; overflow: hidden; background: var(--slot); }
.rel .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel .ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); opacity: 0; transition: opacity .15s ease; }
.rel button:hover .ph::after { opacity: 1; }
.rel button:hover { color: var(--red); }
.rel small { font: 400 11px var(--mono); color: var(--graphite); }

/* ---------- smaller screens (phone comes later; keep it usable) ---------- */
@media (max-width: 820px) {
  .bar { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .mark { font-size: 16px; }
  .search input { font-size: 16px; }
  .bar-end { display: none; }
  #filterBtn { padding: 0 12px; }
  .ideas { padding: 0 12px 8px; }
  /* On a phone the opened building fills the screen and the dock floats over it; the text scrolls clear of the dock. */
  .sheet { padding: 0; --dockroom: 0px; }
  .card { grid-template-columns: 1fr; grid-template-rows: 50% 50%; width: 100%; height: 100%; border-radius: 0; }
  .info { padding: 18px 16px calc(90px + env(safe-area-inset-bottom, 0px)); }
  .rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { padding: 0; }
  .fp { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .fp-head { padding: 12px; }
  .fp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; order: 3; flex-basis: 100%; }
  .fp-search { flex: 1; width: auto; }
  .fp-body { padding: 4px 12px 12px; }
  .fp-band { grid-template-columns: 1fr; gap: 10px; }
  .fp-glabel { flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; flex-wrap: wrap; }
  .fp-prev { display: none; }
  .fp-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-tl, .fp-mrow { grid-template-columns: 110px 1fr 40px; }
  .fp-mrow b { font-size: 12px; }
  .fp-decs { height: 200px; gap: 3px; }
  .fp-dec small { font-size: 9px; }
  .fp-dec span { font-size: 9px; }
  .fp-faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-foot { padding: 10px 12px; }
  .fp-actions { width: 100%; }
  .fp-actions .go { flex: 1; justify-content: center; }
  .where { width: 150px; }
  .face { width: 64px; height: 80px; }
  .by-text b { font-size: 26px; }
  .dock { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 24px); }
  body:has(.sheet:not([hidden]) > .step:not([hidden])) .dock { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } /* float just above the previous / next bar */
  .dock button { padding: 0 12px; }
  .feed { padding-left: 12px; padding-right: 12px; }
  .cols, .col { gap: 10px; }
  .cap { padding: 26px 8px 7px; }
  .cap .r1 { flex-direction: column; align-items: stretch; gap: 2px; }
  .cap b { max-width: 100%; }
  .cap .by { flex: none; }
  .cap .by { text-align: left; }
  .cap b { font-size: 16px; }
}
/* phones: a next bar at the bottom of the opened building */
@media (max-width: 820px) {
  .sheet:has(> .step:not([hidden])) .card { height: calc(100% - 74px - env(safe-area-inset-bottom, 0px)); align-self: start; }
  .step { inset: auto 0 0 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--hair); z-index: 2; }
  .step-btn { position: static; transform: none; width: auto; flex: 1; min-width: 0; height: 52px; flex-direction: row; gap: 8px; padding: 0 8px; border: 1px solid var(--hair); border-radius: var(--r); }
  .step-btn.next { flex-direction: row-reverse; text-align: right; }
  .step-btn:hover { border-color: var(--red); }
  .step-btn .arrow { width: auto; height: auto; background: none; box-shadow: none; flex: none; }
  .step-btn svg { width: 18px; height: 18px; }
  .peek { flex-direction: row; align-items: center; gap: 8px; width: auto; min-width: 0; padding: 0; background: none; text-align: inherit; color: var(--ink); }
  .step-btn.next .peek { flex-direction: row-reverse; }
  .peek img { width: 36px; height: 36px; flex: none; }
  .peek small { display: none; }
  .peek b { font-size: 12px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .step-pos { position: static; transform: none; flex: none; font-size: 11px; color: var(--graphite); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- books: a second wall on the same site ---------- */
/* Buildings or Books: one switch beside the search */
.mode { display: inline-flex; flex: none; gap: 2px; height: 44px; padding: 3px; border: 1px solid var(--hair); border-radius: var(--r); background: #fff; }
.mode button { all: unset; box-sizing: border-box; cursor: pointer; height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--graphite); transition: color .15s ease; }
.mode button:hover { color: var(--red); }
.mode button[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.mode button:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.idea small { font: 400 10px var(--mono); color: var(--graphite); margin-left: 2px; }
.ideas-list, .mode-slot { display: contents; }
.mode-slot .mode { margin-right: 6px; }
#filterBtn[hidden], #allLink[hidden] { display: none; }

/* A book tile: the cover, square-cornered like a photo, with its caption underneath so the cover's own type stays readable. */
.bt { position: relative; }
.bt .open { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
.bt .open:focus-visible .cv { outline: 3px solid var(--red); outline-offset: 2px; }
.bt .cv { position: relative; display: block; width: 100%; aspect-ratio: 1 / var(--ar, 1.5); background: var(--paper); border: 1px solid var(--hair); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease; }
.bt:hover .cv, .bt:focus-within .cv { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.bt .cv::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); opacity: 0; transition: opacity .15s ease; }
.bt:hover .cv::after, .bt:focus-within .cv::after { opacity: 1; }
.bt .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.bcap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bcap b { font-size: 14px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
.bt:hover .bcap b { color: var(--red); }
.bcap .by { font: 400 11px var(--mono); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcap .r2 { font: 400 11px var(--mono); letter-spacing: .02em; color: var(--graphite); }
/* No cover yet: the title set in the site's own type */
.standin { position: absolute; inset: 0; padding: 12% 10%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: var(--paper); color: var(--ink); }
.standin .tt { font-family: var(--serif); font-size: clamp(16px, 2.2vw, 26px); line-height: 1.02; letter-spacing: -.01em; }
.standin .au { font: 400 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }

/* The opened book: the cover where the photo was, on paper instead of the dark stage */
.card.book .gallery { background: var(--paper); color: var(--ink); }
.card.book .stage img { inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; filter: drop-shadow(0 18px 36px rgba(0,0,0,.22)); }
.card.book .stage .standin { inset: 28px; width: auto; height: auto; border: 1px solid var(--hair); margin: 0 auto; max-width: 62%; box-shadow: 0 18px 36px rgba(0,0,0,.14); }
.card.book .stage .standin .tt { font-size: clamp(22px, 2.6vw, 40px); }
.card.book .gcap .l { color: var(--graphite); }
.card.book .gcap a { color: var(--ink); }
.card.book .gcap a:hover { color: var(--red); }
.card.book .strip { display: none; }
.where[hidden], .page-link[hidden], .hint[hidden] { display: none; }
/* Related books: small covers in the opened building ("Books to read") and the opened book ("More on this shelf") */
.rel.books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rel.books .ph { height: auto; aspect-ratio: 2 / 3; background: var(--paper); border: 1px solid var(--hair); }
.rel.books .ph img { object-fit: contain; }
.rel.books .standin { padding: 10px; gap: 4px; }
.rel.books .standin .tt { font-size: 13px; }
.rel.books .standin .au { font-size: 8px; }
.rel.books button { font-size: 12px; }
@media (max-width: 820px) {
  .mode { height: 40px; }
  .mode button { height: 32px; padding: 0 10px; font-size: 13px; }
  .bcap b { font-size: 13px; }
  .card.book .stage img, .card.book .stage .standin { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
  .rel.books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* "All buildings" says how big the collection is only on hover, so the bar stays quiet */
#count { display: none; }
#allLink { position: relative; }
#allLink[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; white-space: nowrap; padding: 7px 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--hair); box-shadow: 0 10px 30px rgba(0,0,0,.12); font: 500 13px var(--sans); color: var(--ink); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
#allLink[data-tip]:hover::after, #allLink[data-tip]:focus-visible::after { opacity: 1; transform: none; }

/* ---------- top panel A (v13 · 01): Buildings | Books, Guess the building?, ideas that slide away ---------- */
:root { --barh: calc(64px + env(safe-area-inset-top, 0px)); }
.ideas { top: var(--barh); transition: transform .22s ease, opacity .22s ease; }
body.ideas-away .ideas { transform: translateY(calc(-100% - 12px)); opacity: 0; pointer-events: none; }
.mode-slot { display: none; }
/* The chosen half of the switch is filled sunset red, with a thin line between the two halves. */
.mode { align-items: center; }
.mode button[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.mode button[aria-pressed="true"]:hover { color: #fff; }
.mode-line { width: 1px; height: 20px; background: #CFCCC5; flex: none; }
#filterCount:not(:empty)::before { content: '· '; }
#filterBtn .ficon { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.play { position: relative; flex: none; }
.btn.play-btn { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; padding: 0 12px; gap: 6px; white-space: nowrap; }
.btn.play-btn:hover, .btn.play-btn[aria-expanded="true"] { border-color: var(--red); color: var(--red); }
.play-btn .pi { width: 12px; height: 12px; fill: currentColor; flex: none; }
.play-btn .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .15s ease; }
.play-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.play-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 290px; padding: 6px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-panel); box-shadow: 0 20px 50px rgba(0,0,0,.16); display: flex; flex-direction: column; gap: 2px; }
.play-menu[hidden] { display: none; }
.play-menu a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.play-menu a + a { border-top: 1px solid var(--hair); border-radius: 0 0 var(--r) var(--r); }
.play-menu a:hover, .play-menu a:focus-visible { background: var(--paper); }
.play-menu a:hover b { color: var(--red); }
.play-menu b { font-size: 16px; font-weight: 700; transition: color .15s ease; }
.play-menu span { font: 500 13px var(--mono); letter-spacing: .02em; color: var(--graphite); }

@media (max-width: 820px) {
  /* Row 1: name, search, filter. Row 2: Buildings | Books on the left, Guess the building? on the right. Row 3: ideas. */
  :root { --barh: calc(112px + env(safe-area-inset-top, 0px)); }
  .bar { display: grid; height: auto; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "mark search search filter" "mode mode play play";
    column-gap: 8px; row-gap: 8px; align-items: center; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
  .bar-mid, .bar-end { display: contents; }
  .mark { grid-area: mark; }
  .bar .search { grid-area: search; width: auto; }
  #filterBtn { grid-area: filter; width: 44px; padding: 0; justify-content: center; position: relative; }
  #filterBtn .ficon { display: block; }
  #filterBtn .flabel { display: none; }
  #filterCount { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
  #filterCount:empty { display: none; }
  #filterCount::before { content: none !important; }
  .bar .mode { grid-area: mode; justify-self: start; height: 44px; }
  .bar .mode button { height: 36px; padding: 0 12px; font-size: 14px; }
  #allLink { display: none; }
  .bar:has(#filterBtn[hidden]) .search { grid-column: 2 / 5; }
  .play { grid-area: play; justify-self: end; }
  .btn.play-btn { padding: 0 9px; gap: 4px; font-size: 13px; letter-spacing: -.01em; }
  .play-menu { width: min(290px, calc(100vw - 24px)); }
}

/* "About this wall", after the feed: what the site is and the most looked-up buildings, for readers and search engines. */
.about-wall { max-width: 72ch; margin: 24px auto 0; padding: 24px 20px calc(110px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); color: var(--graphite); font: 400 13px/1.7 var(--mono); }
.about-wall h2, .about-wall h3 { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.about-wall h3 { margin-top: 18px; }
.about-wall p { margin: 0; }
.about-wall ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 24px; }
.about-wall li { margin: 0 0 4px; break-inside: avoid; }
.about-wall a { color: var(--ink); }
.about-wall a:hover { color: var(--red); }
.about-wall small { color: var(--graphite); }
.feed { padding-bottom: 0; }
