/* My Greenboard: design system.
   Colours marked "brand" come from Admin > Appearance (set on <html> as --brand-*). */

@font-face {
  font-family: "Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* the wordmark: Newsreader italic (SIL Open Font License), a readable companion to the calligraphic G and B of the original logo */
@font-face {
  font-family: "Wordmark"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/newsreader-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: "Wordmark"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/newsreader-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* "first light": night giving way to dawn. A gradual transition, for the generations after us.
     Night (header, panels) and slate (actions) carry trust; dawn gold marks what people chose; sage is a whisper, not a banner. */
  --brand-primary: #2C3A52; --brand-ink: #1C2230; --brand-accent: #E2A646; --brand-net: #A3ABB7; --brand-sig: #98E820; --brand-org: #059669;
  --sig-ink: color-mix(in srgb, var(--brand-sig) 45%, #072015);           /* the signature green, dark enough for text on light pages */
  --sage: #93B39C; --dawn: #F3E3CC; --sky: #E6EBF1;
  --bg: #F5F3EF; --surface: #FFFFFF; --ink: #1B2130; --muted: #5F6674; --line: #E3DFD8;
  --primary: var(--brand-primary); --on-primary: #FFFFFF;
  --primary-soft: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  --gold-soft: color-mix(in srgb, var(--brand-accent) 22%, transparent);
  --glass: rgba(250, 252, 251, .78); --glass-line: rgba(255, 255, 255, .7);
  --shadow-float: 0 24px 60px -24px rgba(14, 18, 30, .45), 0 2px 8px rgba(14, 18, 30, .08);
  --r-xl: 28px; --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* smoked glass, after the Delight theme's tinted panels: a tint, not a blur (blur costs every frame the map moves) */
  --smoke-solid: color-mix(in srgb, var(--brand-ink) 78%, #07090f);
  --smoke: color-mix(in srgb, var(--smoke-solid) 86%, transparent);
  --smoke-bar: color-mix(in srgb, var(--smoke-solid) 84%, transparent);
  --smoke-thick: color-mix(in srgb, var(--smoke-solid) 96%, transparent);
  --smoke-line: rgba(255, 255, 255, .14);
  --stitch: color-mix(in srgb, var(--brand-sig) 70%, transparent);          /* every panel's top edge: a hairline of green */
  --on-smoke: #F5F2EC; --on-smoke-2: rgba(245, 242, 236, .72);
  --porcelain: #FFFEFC; --porcelain-line: rgba(20, 24, 36, .07);
  --shadow-plate: 0 30px 70px -30px rgba(8, 10, 18, .6), 0 2px 10px rgba(8, 10, 18, .12);
  --shadow-card: 0 14px 30px -18px rgba(8, 10, 18, .45), 0 1px 3px rgba(8, 10, 18, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1219; --surface: #171B24; --ink: #ECEAE5; --muted: #9EA4B0; --line: #272C38;
    --primary: color-mix(in srgb, var(--brand-primary) 35%, #ffffff); --on-primary: #10141C;
    --dawn: #2A2420; --sky: #10141C;
    --glass: rgba(20, 24, 33, .74); --glass-line: rgba(255, 255, 255, .08);
    --shadow-float: 0 24px 60px -20px rgba(0, 0, 0, .7);
    --smoke-solid: color-mix(in srgb, var(--brand-ink) 60%, #06080c);
    --smoke: color-mix(in srgb, var(--smoke-solid) 90%, transparent);
    --porcelain: #1A1F29; --porcelain-line: rgba(255, 255, 255, .07);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--text); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 2px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand-sig); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.08; margin: .3em 0 .4em; font-weight: 700; font-stretch: 92%; }
h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .6em; font-weight: 650; }
h3 { font-size: 1.05rem; margin: 1.1em 0 .4em; font-weight: 650; }
.muted { color: var(--muted); font-size: .93rem; }
.small { font-size: .85rem; }
.pre { white-space: pre-line; }

/* ---------- header: a smoked band on every page (solid here, translucent over the map) */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
       padding: 10px clamp(16px, 3vw, 28px); background: var(--smoke-solid); color: var(--on-smoke); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-smoke);
         font-family: var(--display); font-weight: 700; font-size: 1.15rem; font-stretch: 90%; }
.brand img { height: 34px; width: auto; display: block; }
.brand .symbol { width: 34px; height: 34px; }
.brand .wordmark { font-family: "Wordmark", "Iowan Old Style", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.4rem;
                   letter-spacing: .005em; font-stretch: normal; color: var(--on-smoke); line-height: 1; }
.brand .mark { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-sig); position: relative; flex: none;
               box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--brand-accent) 90%, transparent); }
.brand small { font-family: var(--text); font-weight: 500; font-size: .7rem; color: var(--on-smoke-2); border: 1px solid var(--smoke-line);
               border-radius: 99px; padding: 1px 7px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .93rem; }
.top nav a, .top button.link { text-decoration: none; color: var(--on-smoke-2); transition: color .2s var(--ease); }
.top nav a:hover, .top button.link:hover { color: var(--on-smoke); }
.top .btn.small { background: var(--on-smoke); color: var(--smoke-solid); }
.top-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.menu-btn { display: none; }
@media (min-width: 821px) { .top { flex-wrap: nowrap; } .top nav { margin-left: auto; order: 2; } .brand { white-space: nowrap; } }
@media (max-width: 820px) {
  .top { flex-wrap: wrap; }
  .top-tools { order: 0; margin-left: auto; }
  .brand small { display: none; }
  .menu-btn { display: inline-flex; all: unset; cursor: pointer; padding: 6px 14px; border-radius: 99px; font-weight: 600; font-size: .9rem;
              color: var(--on-smoke); box-shadow: inset 0 0 0 1.5px var(--smoke-line); }
  .menu-btn:focus-visible { outline: 3px solid var(--brand-sig); }
  nav#mainnav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 4px 4px; }
  nav#mainnav a, nav#mainnav form { padding: 6px 0; font-size: 1.02rem; }
  .top.menu-open nav#mainnav { display: flex; }
}
.langs { display: inline-flex; gap: 2px; border: 1px solid var(--smoke-line); border-radius: 99px; padding: 2px; }
.langs a, .langs b { padding: 2px 9px; border-radius: 99px; font-size: .8rem; text-decoration: none; color: var(--on-smoke-2); font-weight: 600; }
.langs a:hover { color: var(--on-smoke); }
.langs b { background: var(--on-smoke); color: var(--smoke-solid); }
.count { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 99px; background: var(--brand-accent); color: #2a1d00;
         font-size: .75rem; font-weight: 700; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { max-width: 1040px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 28px) 32px; }
.foot { max-width: 1040px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 28px) 28px; color: var(--muted); font-size: .85rem; }
@media (prefers-reduced-transparency: reduce) { :root { --smoke: var(--smoke-solid); --smoke-bar: var(--smoke-solid); } }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--on-primary);
       border: 0; border-radius: 99px; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
       transition: transform .15s var(--ease), filter .15s var(--ease); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn.danger { background: #B42318; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.inline { display: inline; margin: 0; }
label { display: block; margin: 12px 0; font-weight: 600; font-size: .94rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
       background: var(--bg); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=color] { padding: 2px; height: 42px; width: 64px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; } label.check input { width: auto; margin: 3px 0 0; }
.row { display: flex; gap: 8px; align-items: center; } .row select, .row input { margin: 0; }
.row.wrap { flex-wrap: wrap; margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; align-items: end; }
.form-grid .wide { grid-column: 1 / -1; } .form-grid > button { justify-self: start; margin: 12px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px 10px; margin: 10px 0; min-width: 0; }
fieldset legend { font-weight: 700; padding: 0 6px; }

/* ---------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.5vw, 24px); margin: 16px 0; }
.narrow { max-width: 440px; margin: 28px auto; }
.adform { max-width: 760px; margin: 16px auto; } .wide-ish { max-width: 560px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; } .grid2 .card { margin: 0; }
section.grid2 { margin: 16px 0; }
.flash { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--brand-accent) 60%, transparent); border-radius: var(--r-md);
         padding: 10px 14px; margin: 10px 0; }
.flash.verify { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tag { display: inline-block; font-size: .76rem; background: var(--primary-soft); color: var(--primary); border-radius: 99px; padding: 1px 9px; vertical-align: middle; font-weight: 600; }
.tag.gold { background: var(--gold-soft); color: color-mix(in srgb, var(--brand-accent) 55%, var(--ink)); }
.badge.hero { display: inline-block; background: var(--gold-soft); color: color-mix(in srgb, var(--brand-accent) 50%, var(--ink)); border-radius: 99px;
              padding: 2px 10px; font-weight: 700; font-size: .88rem; }
.big { font-family: var(--display); font-size: 2rem; font-weight: 700; margin: .1em 0; } .big small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.big-ish { font-size: 1.15rem; font-weight: 700; margin: .2em 0; }
.bar { height: 10px; background: var(--primary-soft); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand-sig); border-radius: 99px; }
.pts { font-weight: 700; color: var(--sig-ink); margin-left: 6px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mini { margin: 0 0 8px; padding-left: 1.2em; }
table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .95rem; }
th, td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); }
details.team { border-top: 1px solid var(--line); padding: 10px 0; }
details.team summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.pos { font-family: var(--display); font-weight: 700; width: 1.5em; } .tname { font-weight: 700; }
a.tname { color: var(--ink); text-decoration: none; }
.prose { max-width: 72ch; } .prose h2 { margin-top: 1.3em; } .prose ul { padding-left: 1.2em; }

/* ---------- dashboard ad rows */
.ads { display: grid; gap: 12px; }
.ad-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.ad-row.on { border-color: var(--primary); background: var(--primary-soft); }
.ad-row img { width: 120px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-sm);
              background: linear-gradient(140deg, color-mix(in srgb, var(--brand-primary) 35%, var(--surface)), color-mix(in srgb, var(--brand-accent) 30%, var(--surface))); }
.share { display: flex; gap: 6px; margin-top: 8px; } .share input { margin: 0; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 13px; font: inherit; font-size: .88rem; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--muted); margin: 6px 0; }
.stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (max-width: 560px) {
  .ad-row { grid-template-columns: 84px 1fr; } .ad-row img { width: 84px; } .ad-row form { grid-column: 1 / -1; }
}

/* ---------- organization and admin bits */
.orghead { display: flex; align-items: center; gap: 12px; } .orghead h1, .orghead .org { margin: 0; }
img.logo { width: 48px; height: 48px; object-fit: contain; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); vertical-align: middle; }
img.thumb { width: 220px; max-width: 100%; border-radius: var(--r-sm); vertical-align: middle; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.subnav a { text-decoration: none; padding: 4px 0; color: var(--ink); } .subnav a.on { font-weight: 700; box-shadow: inset 0 -2px 0 var(--primary); }
.review-item { border-top: 1px solid var(--line); padding: 12px 0; } .review-item:first-of-type { border-top: 0; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .decide input { flex: 1 1 240px; margin: 0; }
.langtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; border-bottom: 1px solid var(--line); }
.langtab { border: 1px solid var(--line); border-bottom: 0; background: var(--bg); color: var(--ink); border-radius: 10px 10px 0 0; padding: 7px 14px; font: inherit; cursor: pointer; }
.langtab.on { background: var(--surface); font-weight: 700; box-shadow: inset 0 3px 0 var(--primary); }
.langtab .req { color: color-mix(in srgb, var(--brand-accent) 60%, var(--ink)); } .langtab .dot { color: var(--primary); font-size: .7rem; margin-left: 4px; }
fieldset.langpanel { border-top-left-radius: 0; }
table.tr td { width: 50%; } table.tr textarea { margin: 0 0 4px; }
tr.missing td:first-child { box-shadow: inset 3px 0 0 var(--brand-accent); padding-left: 10px; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
details.inline-details { display: inline-block; margin-left: 6px; } details.inline-details summary { cursor: pointer; color: var(--primary); text-decoration: underline; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; }
.swatches label { display: flex; align-items: center; gap: 12px; } .swatches input { margin: 0; flex: none; }
.pin-map { height: 280px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin: 6px 0; }
.hero { padding: 28px 0 8px; } .hero h1 { max-width: 20ch; } .hero p { max-width: 60ch; }

/* ---------- ad page */
.adpage { max-width: 720px; margin: 16px auto; } .adpage .org { color: var(--muted); }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: #000; margin: 14px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play span { position: relative; font-size: 2rem; color: #fff; background: color-mix(in srgb, var(--brand-ink) 70%, transparent);
             width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px; backdrop-filter: blur(6px);
             transition: transform .2s var(--ease); }
.play:hover span { transform: scale(1.06); }
img.adimg { width: 100%; border-radius: var(--r-md); margin: 12px 0; }
.adfoot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.adfoot #details { flex-basis: 100%; }
.eye { font-size: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; width: 46px; height: 46px; cursor: pointer; }
.cookie-note { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.netstrip { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin-top: 18px; padding: 10px;
            border-radius: var(--r-md); background: var(--bg); text-decoration: none; color: var(--ink); }
.netstrip canvas { width: 120px; height: 72px; border-radius: var(--r-sm); background: var(--surface); }
.netstrip b { font-family: var(--display); font-weight: 650; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ============================================================ the network map
   The map is the room. Over it, two materials with one job each:
   - smoked glass (a tint, like the Delight theme's 70% panels): the service layer: welcome plate, aisle bar, detail plate, sections below;
   - porcelain: the organizations' cards.
   The map stays fixed while the page scrolls; sections rise over it and the map dims behind them. */
body.mapped { background: var(--bg); }
body.mapped .top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; background: var(--smoke-bar); }
body.mapped .top.menu-open { background: var(--smoke-solid); }
body.mapped main { max-width: none; padding: 0; }
body.mapped main > .flash { position: fixed; z-index: 31; top: 66px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); box-shadow: var(--shadow-float); }
body.mapped .foot { position: relative; z-index: 10; width: fit-content; max-width: calc(100% - 32px); margin: 0 16px 24px; padding: 8px 16px;
                    background: var(--smoke); color: var(--on-smoke-2); border-radius: 99px; }
body.mapped .foot a { color: var(--on-smoke); }

.stage { position: fixed; inset: 0; z-index: 0; background:                     /* before the map loads: a sky at first light */
           radial-gradient(120% 60% at 50% 108%, color-mix(in srgb, var(--brand-accent) 26%, transparent), transparent 70%),
           linear-gradient(180deg, var(--sky) 0%, var(--bg) 55%, var(--dawn) 100%); }
#constellation, #live-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage #live-map { opacity: 0; transition: opacity .9s var(--ease); }
.stage.live #live-map { opacity: 1; }
.stage.live #constellation { opacity: 0; transition: opacity .9s var(--ease); pointer-events: none; }
#threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.veil { position: absolute; inset: 0; background: var(--smoke-solid); opacity: var(--veil, 0); pointer-events: none; }
/* the sky follows the visitor's time of day (set by _sky.js): night, blue hour, dawn, day, dusk.
   Before the map loads it is the whole backdrop; over the live map, a light glow rises from the horizon at dawn and dusk. */
.stage { --sky-ink: var(--ink); transition: background 1.2s var(--ease); }
.stage[data-sky="dawn"] { background:
    radial-gradient(130% 70% at 50% 110%, rgba(244, 178, 104, .55), transparent 70%),
    linear-gradient(180deg, #D9E0EC 0%, #F3E6DA 60%, #F6D2A6 100%); }
.stage[data-sky="dusk"] { background:
    radial-gradient(130% 70% at 50% 110%, rgba(232, 138, 92, .5), transparent 70%),
    linear-gradient(180deg, #C7CCDD 0%, #EFD8C9 60%, #EAAE83 100%); }
.stage[data-sky="blue"] { --sky-ink: #E7E9EF; background:
    radial-gradient(120% 50% at 50% 115%, rgba(160, 128, 140, .45), transparent 70%),
    linear-gradient(180deg, #1D2840 0%, #34435F 70%, #4E5873 100%); }
.stage[data-sky="night"] { --sky-ink: #E7E9EF; background:
    radial-gradient(90% 40% at 50% 112%, rgba(226, 166, 70, .12), transparent 70%),
    linear-gradient(180deg, #0E121C 0%, #151B28 100%); }
.glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.live[data-sky="dawn"] .glow { opacity: 1; background: linear-gradient(0deg, rgba(244, 170, 90, .26), rgba(244, 170, 90, .06) 45%, transparent 70%); }
.stage.live[data-sky="dusk"] .glow { opacity: 1; background: linear-gradient(0deg, rgba(230, 128, 84, .28), rgba(200, 120, 140, .08) 50%, transparent 75%); }
.stage.live[data-sky="blue"] .glow { opacity: 1; background: linear-gradient(180deg, rgba(24, 34, 64, .22), rgba(24, 34, 64, .1)); }

/* the first screen: plates sit at the bottom, the map shows above; empty space lets the map through */
.first { position: relative; z-index: 10; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end;
         padding: 72px 16px 14px; pointer-events: none; }
.first > * { pointer-events: auto; }
/* only the panels, bars and cards themselves catch the mouse; the empty space between them belongs to the map */
.first > .concourse, .concourse .collapsible, .concourse .collapsible-in, .concourse .shelf-wrap { pointer-events: none; }
.concourse .welcome, .concourse .aisle-bar, .concourse .shelf, .concourse .shelf-nav, .concourse .empty { pointer-events: auto; }
.concourse { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 821px) {
  /* computers: the welcome plate keeps the top-left corner (as the Delight theme's panel did); the aisle and shelf run along the bottom */
  .concourse { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
}

.plate { background: var(--smoke); color: var(--on-smoke); border-radius: 22px;
         box-shadow: inset 0 1px 0 var(--stitch), var(--shadow-plate); }
.plate h1, .plate h2, .plate h3 { color: var(--on-smoke); }
.plate a:not(.btn) { color: var(--on-smoke); }
.plate .btn { background: var(--on-smoke); color: var(--smoke-solid); }
.plate .btn.ghost { background: transparent; color: var(--on-smoke); box-shadow: inset 0 0 0 1.5px var(--smoke-line); }
.plate .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-smoke-2); }
.plate .muted, .plate .note { color: var(--on-smoke-2); }
.plate .kicker { margin: 0 0 4px; font-size: .82rem; font-weight: 600; color: var(--brand-sig); }

.welcome { position: relative; width: min(540px, 100%); padding: 22px 56px 20px 24px; }
.welcome h1 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.25rem); margin: 0 0 8px; }
.welcome .lede { margin: 0 0 14px; color: var(--on-smoke-2); max-width: 46ch; }
.welcome .cta { display: flex; flex-wrap: wrap; gap: 8px; }
.fold { all: unset; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
        display: grid; place-items: center; transition: background .2s var(--ease); }
.fold::before { content: ""; width: 9px; height: 9px; border: solid var(--on-smoke); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
                transition: transform .32s var(--ease-out); }
.fold:hover { background: rgba(255, 255, 255, .1); }
.fold:focus-visible, .unfold:focus-visible { outline: 3px solid var(--brand-sig); outline-offset: 2px; }
.unfold { all: unset; display: none; cursor: pointer; margin-top: 4px; font-weight: 600; font-size: .92rem; color: var(--brand-accent); }

.collapsible { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .36s var(--ease-out); }
.collapsible-in { min-height: 0; overflow: hidden; padding: 4px 6px 0; margin: -4px -6px 0; transition: visibility 0s; }
.concourse.folded .collapsible-in { visibility: hidden; transition: visibility 0s .36s; }

/* folded: the plate becomes its own title, the map has the room (the Delight move) */
.concourse.folded .collapsible { grid-template-rows: 0fr; }
.concourse.folded .welcome { padding-top: 14px; padding-bottom: 14px; }
.concourse.folded .welcome h1 { font-size: 1.15rem; margin: 0; }
.concourse.folded .welcome .lede, .concourse.folded .welcome .cta { display: none; }
.concourse.folded .unfold { display: inline-block; }
.concourse.folded .fold::before { transform: translateY(2px) rotate(-135deg); }

/* the aisle bar: aisle signs (categories), and two small comforts: find, and nearest first */
.aisle-bar { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 6px; border-radius: 99px;
             background: var(--smoke); box-shadow: inset 0 1px 0 var(--stitch), var(--shadow-plate); }
.aisle-bar .seg { margin: 0; flex: none; background: rgba(255, 255, 255, .08); }
.seg { display: inline-grid; grid-auto-flow: column; border-radius: 99px; padding: 3px; }
.seg button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 99px; font-size: .88rem; font-weight: 600; color: var(--on-smoke-2); text-align: center;
              white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.seg button .n { font-weight: 500; opacity: .65; margin-left: 2px; }
.seg button[aria-pressed="true"] { background: var(--on-smoke); color: var(--smoke-solid); }
.seg button:focus-visible { outline: 3px solid var(--brand-sig); }
.aisle-bar .chips { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; gap: 2px; }
.aisle-bar .chips::-webkit-scrollbar { display: none; }
.aisle-bar .chip { background: transparent; border: 0; color: var(--on-smoke-2); white-space: nowrap; font-weight: 600; padding: 7px 13px;
                   transition: background .2s var(--ease), color .2s var(--ease); }
.aisle-bar .chip:hover { color: var(--on-smoke); }
.aisle-bar .chip.on { background: var(--on-smoke); color: var(--smoke-solid); }
.aisle-bar .chip.on::before, .seg button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-sig); margin-right: 7px; vertical-align: 2px; }
.aisle-bar .tools { display: flex; gap: 6px; flex: none; align-items: center; }
.find { margin: 0; font-weight: 400; }
.find input { margin: 0; width: 190px; border: 0; border-radius: 99px; padding: 7px 12px 7px 32px; font-size: .9rem; color: var(--on-smoke);
              background: rgba(255, 255, 255, .09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23F3F7F4' stroke-opacity='.7' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; }
.find input::placeholder { color: var(--on-smoke-2); }
.find input:focus { box-shadow: 0 0 0 2px var(--brand-sig); background-color: rgba(255, 255, 255, .14); }
.near { all: unset; cursor: pointer; padding: 7px 13px; border-radius: 99px; font-size: .88rem; font-weight: 600; color: var(--on-smoke-2); white-space: nowrap;
        box-shadow: inset 0 0 0 1.5px var(--smoke-line); }
.near:hover { color: var(--on-smoke); }
.near[aria-pressed="true"] { color: var(--smoke-solid); background: var(--brand-sig); box-shadow: none; }
.near:focus-visible, .chip:focus-visible { outline: 3px solid var(--brand-sig); outline-offset: 1px; }

/* the shelf: porcelain cards, one aisle at a time */
.shelf-wrap { position: relative; }
.shelf { width: max-content; max-width: 100%; list-style: none; margin: 0; padding: 8px 4px 16px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
         scroll-padding: 0 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.shelf::-webkit-scrollbar { display: none; }
.org-card { flex: 0 0 232px; scroll-snap-align: start; }
.org-card[hidden] { display: none; }
.shelf.arrive .org-card { animation: rise .7s var(--ease-out) both; animation-delay: calc(min(var(--i), 8) * 50ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.face { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden;
        background: var(--porcelain); color: var(--ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--porcelain-line), var(--shadow-card);
        transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.face img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: filter .3s var(--ease);
            background: linear-gradient(140deg, color-mix(in srgb, var(--brand-primary) 35%, var(--porcelain)), color-mix(in srgb, var(--brand-accent) 30%, var(--porcelain))); }
img.gone { color: transparent; text-indent: -9999px; }
.face .who { display: block; padding: 11px 14px 0; font-family: var(--display); font-weight: 650; font-size: 1rem; line-height: 1.2; }
.face .what { padding: 3px 14px 0; color: var(--muted); font-size: .87rem; line-height: 1.35; min-height: 2.7em;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face .meta { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 9px 14px 12px; font-size: .78rem; color: var(--muted); }
.face .dist { margin-left: auto; font-weight: 650; color: var(--ink); }
.pin { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-net); flex: none; }
.orgs.everyone .pin, .org-card.picked .pin { background: var(--brand-org); box-shadow: 0 0 0 2px var(--porcelain), 0 0 0 3px color-mix(in srgb, var(--brand-ink) 55%, transparent); }
.shelf:not(.everyone) .org-card:not(.picked) img { filter: grayscale(.75); }
@media (hover: hover) {
  .face:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--porcelain-line), 0 22px 40px -20px rgba(8, 10, 18, .5); }
  .face:hover img { filter: none; }
}
.face:focus-visible { outline: 3px solid var(--brand-sig); outline-offset: 2px; }
.org-card.open .face { transform: translateY(-4px); box-shadow: 0 0 0 2.5px var(--brand-sig), 0 22px 40px -20px rgba(8, 10, 18, .5); }
.org-card.open img { filter: none; }
.shelf-nav { display: none; }
@media (hover: hover) and (min-width: 821px) {
  .shelf-nav { all: unset; position: absolute; z-index: 2; top: calc(50% - 30px); width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
               display: grid; place-items: center; background: var(--smoke); box-shadow: inset 0 1px 0 var(--stitch), var(--shadow-plate); }
  .shelf-nav[hidden] { display: none; }
  .shelf-nav::before { content: ""; width: 9px; height: 9px; border: solid var(--on-smoke); border-width: 0 2px 2px 0; }
  .shelf-nav.prev { left: -8px; } .shelf-nav.prev::before { transform: translateX(2px) rotate(135deg); }
  .shelf-nav.next { right: -8px; } .shelf-nav.next::before { transform: translateX(-2px) rotate(-45deg); }
  .shelf-nav:focus-visible { outline: 3px solid var(--brand-sig); }
}
.first .empty { width: fit-content; margin: 4px 0; padding: 8px 16px; border-radius: 99px; background: var(--smoke); color: var(--on-smoke); }
.first .empty[hidden] { display: none; }

/* map options: one small button on the map (top right) opens both controls, so the map keeps its room */
.map-tools { position: fixed; z-index: 24; top: 70px; right: 16px; display: grid; justify-items: end; gap: 8px; max-width: calc(100% - 32px);
             transition: opacity .25s var(--ease); }
.layers-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-width: 42px; height: 42px; padding: 0 11px;
              box-sizing: border-box; border-radius: 99px; background: var(--smoke); color: var(--on-smoke);
              box-shadow: inset 0 1px 0 var(--stitch), var(--shadow-plate); transition: background .2s var(--ease); }
.layers-btn:hover, .layers-btn[aria-expanded="true"] { background: var(--smoke-solid); }
.layers-btn:focus-visible { outline: 3px solid var(--brand-sig); outline-offset: 2px; }
.layers-btn .state { display: inline-flex; gap: 10px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.layers-btn .state[hidden] { display: none; }
.layers-btn .state span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.layers-btn .state .org::before { background: var(--brand-org); }                    /* deep green: organization data */
.layers-btn .state .traffic::before { background: var(--brand-sig); }                /* green: traffic */
.layers { background: var(--smoke-solid); width: 330px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); overflow-y: auto; padding: 8px 16px 14px;
          transform-origin: top right; animation: open-layers .22s var(--ease-out); }
@keyframes open-layers { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.layers[hidden] { display: none; }
.layers fieldset { border: 0; padding: 0; margin: 8px 0 0; }
.layers fieldset + fieldset { border-top: 1px solid var(--smoke-line); padding-top: 10px; margin-top: 10px; }
.layers legend { padding: 0; margin-bottom: 4px; font-size: .78rem; font-weight: 600; }
.layers .org-data legend { color: color-mix(in srgb, var(--brand-org) 70%, #ffffff); }
.layers .traffic-data legend { color: var(--brand-sig); }
.layers .opt { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 8px 6px; border-radius: 12px; cursor: pointer; font-weight: 400; }
.layers .opt:hover { background: rgba(255, 255, 255, .06); }
.layers .opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-org); flex: none; }
.layers .opt b { display: block; color: var(--on-smoke); font-weight: 600; font-size: .94rem; }
.layers .opt small { display: block; color: var(--on-smoke-2); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.layers .periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.layers .pill { margin: 0; cursor: pointer; font-weight: 400; }
.layers .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.layers .pill span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: .86rem; font-weight: 600;
                     color: var(--on-smoke-2); box-shadow: inset 0 0 0 1.5px var(--smoke-line); transition: background .2s var(--ease), color .2s var(--ease); }
.layers .pill:hover span { color: var(--on-smoke); }
.layers .pill input:checked + span { color: var(--on-smoke); box-shadow: inset 0 0 0 1.5px var(--on-smoke); background: rgba(255, 255, 255, .06); }
.layers .pill input:focus-visible + span { outline: 3px solid var(--brand-sig); outline-offset: 2px; }
.layers .pill .dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-sig); }
.layers .pill input:checked + span .dot { display: inline-block; }                  /* the green dot marks the period that's on */
.layers .pill .dot.live { box-shadow: 0 0 0 0 var(--brand-sig); animation: live 2s infinite; }
.layers .hint { display: block; color: var(--on-smoke-2); font-size: .8rem; line-height: 1.4; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-sig);
            box-shadow: 0 0 0 0 var(--brand-sig); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
body:has(.detail:not([hidden])) .map-tools { opacity: 0; pointer-events: none; }           /* the detail plate takes that corner */

/* the detail plate: what you chose comes to you; step through the aisle without going back */
.detail { background: var(--smoke-solid); position: fixed; z-index: 25; top: 70px; right: 16px; width: 384px; max-height: calc(100dvh - 86px - var(--shelf-h, 0px));
          overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0;
          opacity: 0; transform: translateX(28px); transition: opacity .3s var(--ease-out), transform .36s var(--ease-out); }
.detail[hidden] { display: none; }
.detail.shown { opacity: 1; transform: none; }
.detail:focus { outline: none; }
.detail-bar { position: sticky; top: 0; z-index: 1; height: 0; display: flex; gap: 6px; align-items: flex-start; padding: 0 12px; }
.detail-bar > * { margin-top: 12px; }
.detail-bar button { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
                     background: rgba(10, 12, 20, .6); transition: background .2s var(--ease); }
.detail-bar button:hover { background: rgba(10, 12, 20, .85); }
.detail-bar button:focus-visible { outline: 3px solid var(--brand-sig); }
.detail-bar button[disabled] { opacity: .35; cursor: default; }
.detail-bar .step::before { content: ""; width: 8px; height: 8px; border: solid var(--on-smoke); border-width: 0 2px 2px 0; }
.detail-bar .prev::before { transform: translateX(2px) rotate(135deg); }
.detail-bar .next::before { transform: translateX(-2px) rotate(-45deg); }
.detail-bar .close { margin-left: auto; }
.detail-bar .close::before, .detail-bar .close::after { content: ""; position: absolute; width: 14px; height: 2px; border-radius: 2px; background: var(--on-smoke); transform: rotate(45deg); }
.detail-bar .close::after { transform: rotate(-45deg); }
.detail-bar .close { position: relative; }
.detail-bar .place { flex: none; white-space: nowrap; align-self: flex-start; margin-top: 16px; padding: 4px 10px; border-radius: 99px; background: rgba(10, 12, 20, .6); font-size: .78rem; font-weight: 600;
                   color: var(--on-smoke); font-variant-numeric: tabular-nums; }
.detail-bar .place:empty { display: none; }
.detail .hero { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 22px 22px 0 0;
                background: linear-gradient(140deg, color-mix(in srgb, var(--brand-primary) 70%, var(--smoke-solid)), color-mix(in srgb, var(--brand-accent) 45%, var(--smoke-solid))); }
.detail .hero-video { position: relative; aspect-ratio: 2 / 1; border-radius: 22px 22px 0 0; overflow: hidden; background: #000; }
.detail .hero-video .hero { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.detail .hero-video.playing { aspect-ratio: 16 / 9; }
.detail .hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail-text { padding: 16px 22px 22px; }
.detail-text h2 { font-size: 1.55rem; margin: 0 0 6px; }
.detail-text .lede { color: var(--on-smoke); font-weight: 500; margin: 0 0 10px; }
.detail-text p { margin: 0 0 12px; color: var(--on-smoke-2); font-size: .95rem; }
.detail-text .where { font-size: .86rem; }
.detail-text .others { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.detail-text .others a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, .09);
                         text-decoration: none; font-size: .88rem; font-weight: 600; }
.detail-text .others a:hover { background: rgba(255, 255, 255, .16); }
.initial { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-accent); color: #2a1d00; font-size: .75rem; font-weight: 700; }

/* below the first screen: sections rise over the dimming map */
.below { position: relative; z-index: 10; display: grid; gap: 16px; width: min(760px, calc(100% - 32px)); margin: 24px 16px 24px; }
.plate.flow { padding: 24px 26px; }
.plate.flow h2 { font-size: 1.45rem; margin: 0 0 12px; }
.plate.flow p { color: var(--on-smoke-2); }
/* the mission plate: the night panel brightens toward a horizon at its lower edge */
.plate.horizon { background: linear-gradient(180deg, var(--smoke) 45%, color-mix(in srgb, var(--brand-accent) 16%, var(--smoke)) 100%); }
.plate.flow .statement { font-family: var(--display); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.4; font-weight: 500; color: var(--on-smoke); max-width: 40ch; }
.standings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 24px; margin-bottom: 8px; }
.standings h3 { font-family: var(--text); font-size: .85rem; font-weight: 600; color: var(--on-smoke-2); margin: 0 0 6px; }
.standings ol { margin: 0 0 10px; padding-left: 1.2em; }
.standings li { padding: 2px 0; }
.plate .pts { color: var(--brand-sig); }
.steps { list-style: none; counter-reset: step; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
                    border: 1.5px solid var(--brand-sig); color: var(--brand-sig); font-family: var(--display); font-weight: 700; }
.steps h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.steps p { margin: 0; font-size: .94rem; }

/* phones and small tablets */
@media (max-width: 820px) {
  .first { padding: 64px 10px 10px; }
  .concourse { gap: 8px; }
  .welcome { width: 100%; padding: 16px 54px 16px 18px; border-radius: 20px; }
  .welcome h1 { font-size: 1.4rem; }
  .welcome .lede { font-size: .92rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .welcome .cta { gap: 4px 12px; align-items: center; }
  .welcome .cta .btn { padding: 9px 16px; font-size: .92rem; }
  .welcome .cta .btn.ghost { box-shadow: none; padding: 9px 2px; text-decoration: underline; text-underline-offset: 3px; }
  /* returning visitors aren't pitched again: the plate keeps its title, the organizations come first */
  .concourse.brief:not(.folded) .welcome .lede, .concourse.brief:not(.folded) .welcome .cta { display: none; }
  .concourse.brief:not(.folded) .welcome h1 { font-size: 1.15rem; margin: 0; }
  .concourse.brief:not(.folded) .welcome { padding-top: 14px; padding-bottom: 14px; }
  .fold { top: 10px; right: 10px; }
  .aisle-bar { width: 100%; flex-wrap: wrap; border-radius: 20px; }
  .aisle-bar .chips { flex: 1 1 100%; order: 2; }
  .aisle-bar .tools { flex: 1 1 auto; }
  .find { flex: 1; } .find input { width: 100%; }
  .shelf { gap: 10px; padding-bottom: 6px; }
  .org-card { flex-basis: min(82vw, 330px); }
  .face { position: relative; padding-left: 92px; min-height: 100px; border-radius: 16px; }
  .face img { position: absolute; left: 0; top: 0; bottom: 0; width: 92px; height: 100%; aspect-ratio: auto; }
  .face .who { padding: 10px 12px 0; font-size: .97rem; }
  .face .what { padding: 2px 12px 0; min-height: 0; font-size: .85rem; }
  .face .meta { padding: 6px 12px 10px; }
  .map-tools { top: 62px; right: 10px; }
  .layers-btn .state { display: none; }
  body:has(.detail:not([hidden])) .map-tools { opacity: 1; pointer-events: auto; }
  .detail { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 84dvh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .detail .hero { aspect-ratio: 5 / 2; }
  .detail .hero-video:not(.playing) { aspect-ratio: 5 / 2; }
  .below { width: calc(100% - 20px); margin: 16px 10px; }
  .plate.flow { padding: 20px; }
  body.mapped .foot { margin: 0 10px 16px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Admin > Test mode */
.scroll { overflow-x: auto; }
.ok { color: #047857; font-weight: 700; }
.bad { color: #B42318; font-weight: 700; }
table.check td:first-child { width: 1.6em; text-align: center; }
