/* Inter and Courier Prime (SIL OFL), served from here: no render-blocking trip to Google on each page. */
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-latin-ext-cb90cc.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-latin-b927e4.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; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-latin-ext-8fb4a3.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-latin-763f6b.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-ext-367ba6.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-bec94a.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-ext-367ba6.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-bec94a.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-367ba6.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-bec94a.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-ext-367ba6.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-bec94a.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-ext-367ba6.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-bec94a.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; }

/* Bitcoin Alpha 2026 — LEM, the Lunar Expedition Manifest.
   Built from the printed displays and room signs: near-black ground, cream
   type, one orange for rules and numbers. Display type is Inter at 800 in
   capitals; small labels are Courier Prime, as on the signs' captions.
   Orange carries emphasis and the room numbers -- never body text. */

:root {
  --ground: #10120f;
  --panel: #161814;
  --panel-lift: #1d201b;
  --rule: #33352f;
  --rule-soft: #24261f;
  --ink: #f3ecdc;
  --ink-dim: #b8b1a2;
  --ink-faint: #7e796d;
  --orange: #de582b;

  /* Status keeps its names; the palette does not allow traffic lights. */
  --lamp-amber: var(--orange);
  --lamp-green: var(--ink);
  --lamp-red: #b9533a;

  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --rail-w: 5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  background: var(--ink);
  color: var(--ground);
  padding: 0.5rem 0.75rem;
}

:where(a, input, button, textarea, summary):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---- masthead: the top band of every sign ----------------------------- */

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 1rem;
  padding: 1.25rem var(--gutter) 0;
}
.wordmark { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; }
.wordmark-name {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wordmark-sub {
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.insignia { width: 48px; height: 48px; display: block; }
.nav {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0.25rem 0;
  border-top: 2px solid var(--orange);
  overflow-x: auto;
  scrollbar-width: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- notices -------------------------------------------------------- */

.notice {
  margin: 0;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--lamp-amber) 10%, var(--ground));
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

.empty {
  padding: 4rem var(--gutter);
  color: var(--ink-dim);
  font-family: var(--mono);
}

/* ---- the flight plan grid ------------------------------------------- */

.day { padding: 0 0 2rem; }

.day-head {
  margin: 0;
  padding: 1.75rem var(--gutter) 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.grid {
  display: grid;
  grid-template-columns: var(--rail-w) repeat(var(--cols, 4), minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  padding-right: var(--gutter);
}

/* The time rail is the spine of the document — typed, right-aligned, quiet. */
.rail {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-dim);
  padding: 0.75rem 0.75rem 0.75rem var(--gutter);
  text-align: right;
  border-bottom: 1px solid var(--rule-soft);
  box-sizing: content-box;
  width: calc(var(--rail-w) - var(--gutter) - 0.75rem);
}

.col-head {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.rail.col-head { border-left: 0; }

/* Desktop: room headings stay pinned while scrolling the day, under the compact bar. */
@media (min-width: 55.0625rem) {
  .grid > .col-head { position: sticky; top: var(--minibar-h, 0px); z-index: 5; background: var(--ground); transition: top 0.2s ease; }
}

.col-name { font-weight: 600; font-size: 0.9375rem; }
.col-room {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.cell {
  padding: 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.cell.is-empty { background: transparent; }

.span {
  grid-column: 2 / -1;
  border-bottom: 1px solid var(--rule-soft);
}
.span .cell {
  border-bottom: 0;
  background: var(--panel-lift);
}

.cell-link { text-decoration: none; }
.cell-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}
.cell-link:hover .cell-title { color: var(--lamp-amber); }

.leads {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}
.leads.unassigned { color: var(--ink-faint); font-style: italic; }

.cell-meta,
.cell-track {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.cell-track { display: none; }

.cell.is-cancelled .cell-title {
  text-decoration: line-through;
  color: var(--ink-faint);
}

/* ---- status lamps --------------------------------------------------- */

.lamp {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-dim);
}
.lamp::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.lamp-tentative { color: var(--lamp-amber); }
.lamp-confirmed { color: var(--lamp-green); }
.lamp-cancelled { color: var(--lamp-red); }

/* ---- track key ------------------------------------------------------ */

.track-key {
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid var(--rule);
  max-width: 46rem;
}
.track-key h2 {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-dim);
}
.key-row {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.key-name { font-weight: 600; font-size: 0.875rem; }
.key-covers { font-size: 0.875rem; color: var(--ink-dim); }
.key-room {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ---- session detail -------------------------------------------------- */

.detail {
  max-width: 38rem;
  padding: 2rem var(--gutter) 4rem;
}
.detail-back { font-family: var(--mono); font-size: 0.8125rem; margin: 0 0 1.5rem; }
.detail-back a { color: var(--ink-dim); }
.detail-back .back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--rule); text-decoration: none;
}
.detail-back .back-btn span { font-size: 1rem; line-height: 1; }
.detail-back .back-btn:hover { border-color: var(--orange); color: var(--orange); }
.detail-track {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--lamp-amber);
}
.detail-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.detail.is-cancelled .detail-title {
  text-decoration: line-through;
  color: var(--ink-dim);
}
.detail-when {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-dim);
}
.detail-note {
  margin: 0 0 1.5rem;
  padding: 0.625rem 0.875rem;
  border-left: 2px solid var(--lamp-amber);
  background: var(--panel);
  font-size: 0.875rem;
}
.detail.is-cancelled .detail-note { border-left-color: var(--lamp-red); }
.lead-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.lead-list a { text-decoration-color: var(--rule); }
.detail-abstract p { margin: 0; max-width: 34rem; }

.lead-sessions-head {
  margin: 2rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-dim);
}
.lead-sessions {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lead-sessions li {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--rule-soft);
}
.lead-sessions li.is-cancelled a { text-decoration: line-through; color: var(--ink-faint); }
.lead-session-when {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ---- crew manifest --------------------------------------------------- */

.manifest { padding: 1.75rem var(--gutter) 3rem; }
.manifest-head {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.manifest-sub {
  margin: 0.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.topic-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 1.25rem 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.is-on {
  background: var(--panel-lift);
  border-color: var(--lamp-amber);
  color: var(--ink);
}
/* An off-mission interest is a person thing, not a conference thing. */
.chip-interest { border-style: dashed; }
.chip-n { color: var(--ink-faint); }
.chip-more { border-style: dotted; }

.crew-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.crew {
  display: flex;
  gap: 0.875rem;
  padding: 1rem;
  background: var(--panel);
}
.patch { width: 40px; height: 40px; flex: none; }
.crew-body { min-width: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.crew-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.crew-co {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}
.channels {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.npub { color: var(--ink-faint); }
.crew-bio { margin: 0; font-size: 0.8125rem; color: var(--ink-dim); }
.chips { margin: 0.125rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.no-topics {
  margin: 0.125rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

/* ---- track switcher (mobile) ----------------------------------------- */

.switch {
  display: none;
  margin: 0 var(--gutter) 0.75rem;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.switch-opt { flex: 1; }
.switch-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-opt span {
  display: block;
  padding: 0.5rem 0.375rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  border-left: 1px solid var(--rule);
  cursor: pointer;
}
.switch-opt:first-child span { border-left: 0; }
.switch-opt input:checked + span {
  background: var(--panel-lift);
  color: var(--ink);
}
.switch-opt input:focus-visible + span { outline: 2px solid var(--lamp-amber); outline-offset: -2px; }

/* ---- phones ----------------------------------------------------------
   Four columns cannot be read on a phone, so the grid becomes one flowing
   column: each time acts as a heading, its sessions stack beneath it, and the
   switcher narrows to a single track. Peak use of this page is in a corridor
   between rooms, so this is the primary layout, not a fallback. */

@media (max-width: 55rem) {
  .grid {
    display: block;
    padding-right: 0;
  }
  .col-head { display: none; }

  .rail {
    width: auto;
    text-align: left;
    padding: 1rem var(--gutter) 0.375rem;
    border-bottom: 0;
    color: var(--lamp-amber);
    font-size: 0.875rem;
  }

  .cell {
    border-left: 0;
    border-bottom: 1px solid var(--rule-soft);
    padding: 0.875rem var(--gutter);
  }
  .cell.is-empty { display: none; }
  .cell-track { display: block; }
  .span { display: block; }

  .switch {
    display: flex;
    /* Five options squeezed into 390px wrap onto two lines and lose their
       shape. Scrolling keeps every label on one line and readable. */
    overflow-x: auto;
    scrollbar-width: none;
  }
  .switch::-webkit-scrollbar { display: none; }
  .switch-opt { flex: 0 0 auto; }
  .switch-opt span {
    white-space: nowrap;
    padding: 0.5rem 0.875rem;
  }

  /* Only cells that belong to a track are filtered. The opener and the closing
     carry no track, and everyone attends them, so they stay in every view. */
  .grid[data-only="propulsion"]   .cell[data-track]:not([data-track="propulsion"]),
  .grid[data-only="navigation"]   .cell[data-track]:not([data-track="navigation"]),
  .grid[data-only="life-support"] .cell[data-track]:not([data-track="life-support"]),
  .grid[data-only="payload"]      .cell[data-track]:not([data-track="payload"]) {
    display: none;
  }

  .key-row { grid-template-columns: 1fr; gap: 0.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- NOW panel: the live slot and who is in each room ---- */
.now {
  margin: 0 var(--gutter) 1.5rem;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.now-head {
  margin: 0;
  padding: 0.5rem 0.875rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--rule);
}
.now.is-live .now-head { color: var(--lamp-amber); }
.now-cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-soft);
}
.now-card {
  background: var(--panel);
  padding: 0.75rem 0.875rem 1rem;
  min-width: 0;
}
.now-card .cell-track { display: block; }
.now-count {
  margin: 0.75rem 0 0.375rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
}
.now-empty {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.now-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.person-link {
  display: flex; gap: 0.625rem; align-items: center;
  padding: 0.125rem 0;
  text-decoration: none;
}
.person-link:hover .person-name { color: var(--lamp-amber); }
.person .patch { width: 28px; height: 28px; flex: none; }
.person-name { min-width: 0; font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.person-handle { color: var(--ink); text-decoration: none; }
.person-handle:hover { color: var(--lamp-amber); }
.person-real { font-size: 0.75rem; font-weight: 400; color: var(--ink-dim); }
.crew-link { text-decoration: none; }
.crew-link:hover { color: var(--lamp-amber); }

/* ---- Profile page ---- */
.profile-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.profile-head .patch { width: 56px; height: 56px; flex: none; }
.profile-head .detail-title { margin: 0; }
.profile-real { margin: 0.125rem 0 0; color: var(--ink-dim); }
.profile-channels { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-dim); }
.profile-sub {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.now-more { margin-top: 0.625rem; }
.now-more > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--rule);
  padding: 0.375rem 0.625rem;
  display: inline-block;
}
.now-more > summary::-webkit-details-marker { display: none; }
.now-more > summary:hover { color: var(--ink); border-color: var(--ink-faint); }
.now-more[open] > summary { margin-bottom: 0.625rem; }
.now-more[open] > summary::after { content: " · hide"; }

/* The live row in the grid */
.rail { position: relative; }
.rail.is-live { color: var(--lamp-amber); }
.rail.is-live::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--lamp-amber);
}
.cell.is-live, .span.is-live .cell { border-color: var(--lamp-amber); }

@media (max-width: 720px) {
  .now-cards { grid-template-columns: 1fr; }
  /* Six per room on a phone; the fold reveals every row. */
  .now-people > li:nth-child(n + 7) { display: none; }
  .now-card:has(.now-more[open]) .now-people > li { display: block; }
}
@media (min-width: 721px) {
  .now-more.is-phone-only { display: none; }
}

/* ---- Private notes ---- */
.note-form {
  margin-top: 1.75rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--panel);
  max-width: 34rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.note-met { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9375rem; }
.note-met input { width: 1.1rem; height: 1.1rem; accent-color: var(--lamp-amber); }
.note-text { display: flex; flex-direction: column; gap: 0.375rem; }
.note-text > span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.note-text textarea {
  font: inherit; font-size: 0.9375rem;
  color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule); padding: 0.5rem 0.625rem;
  resize: vertical; min-height: 4.5rem;
}
.note-text textarea:focus { outline: 2px solid var(--lamp-amber); outline-offset: -1px; }
.note-hint { margin: 0; font-size: 0.75rem; color: var(--ink-faint); }
.note-form button {
  align-self: flex-start;
  font: inherit; font-size: 0.875rem;
  color: var(--ground); background: var(--ink);
  border: 0; padding: 0.5rem 1rem; cursor: pointer;
}
.note-form button:hover { background: var(--lamp-amber); }
.met-mark { margin-left: 0.375rem; color: var(--lamp-green); font-size: 0.8125rem; }

/* ---- Session page: who is here, who is interested ---- */
.session-people { margin-top: 1.5rem; max-width: 34rem; }
.interest { margin: 0 0 0.75rem; }
.interest button {
  font: inherit; font-size: 0.875rem;
  color: var(--ground); background: var(--ink);
  border: 0; padding: 0.5rem 1rem; cursor: pointer;
}
.interest button:hover { background: var(--lamp-amber); }
.interest button.is-on { color: var(--ink); background: transparent; border: 1px solid var(--rule); }
.interest button.is-on:hover { border-color: var(--ink-faint); background: transparent; }

/* ---- Resources ---- */
.resources { padding: 1.75rem var(--gutter) 3rem; max-width: 40rem; }
.resource-list { display: flex; flex-direction: column; gap: 1rem; }
.resource { border: 1px solid var(--rule); background: var(--panel); padding: 1rem 1.125rem; }
.resource-role { margin: 0 0 0.25rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lamp-amber); }
.resource-name { margin: 0 0 0.5rem; font-size: 1.125rem; }
.resource-name a { text-decoration: none; }
.resource-name a:hover { color: var(--lamp-amber); }
.resource-line { margin: 0.125rem 0; }
.resource-dirs { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-dim); }
.resource-note { margin: 0.625rem 0 0; font-size: 0.875rem; color: var(--ink-dim); }

/* ---- Sign in ---- */
.join .detail-abstract { max-width: 34rem; }
.join-form { margin-top: 1rem; max-width: 24rem; display: flex; flex-direction: column; gap: 0.75rem; }
.join-form input {
  font: inherit; color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule); padding: 0.5rem 0.625rem;
}
.join-form input:focus { outline: 2px solid var(--lamp-amber); outline-offset: -1px; }
.join-form button, .leave button {
  align-self: flex-start;
  font: inherit; font-size: 0.875rem;
  color: var(--ground); background: var(--ink);
  border: 0; padding: 0.5rem 1rem; cursor: pointer;
}
.join-form button:hover { background: var(--lamp-amber); }
.leave { display: inline; margin: 0; }
.leave button { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.leave button:hover { color: var(--lamp-amber); }

/* ---- Messages ---- */
.nav-badge {
  display: inline-block; min-width: 1.25rem; padding: 0 0.375rem;
  border-radius: 999px; background: var(--lamp-amber); color: var(--ground);
  font-family: var(--mono); font-size: 0.75rem; text-align: center; line-height: 1.25rem;
}
.messages { padding: 1.75rem var(--gutter) 3rem; max-width: 40rem; }
.thread-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.thread { border-bottom: 1px solid var(--rule-soft); }
.thread .person-link { padding: 0.75rem 0; align-items: flex-start; }
.thread-body { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.thread-last { font-size: 0.8125rem; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.is-unread .thread-last { color: var(--ink); }
.unread-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lamp-amber); margin-left: 0.5rem; vertical-align: middle; }
.thread-head { margin: 0 0 1rem; font-size: 1rem; }
.msg-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.msg { max-width: 80%; align-self: flex-start; background: var(--panel); border: 1px solid var(--rule); padding: 0.5rem 0.75rem; }
.msg.is-mine { align-self: flex-end; border-color: var(--ink-faint); }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-when { display: block; margin-top: 0.25rem; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }
.msg-empty { color: var(--ink-faint); }
.msg-form { display: flex; gap: 0.5rem; align-items: stretch; }
.msg-form textarea {
  flex: 1; font: inherit; color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule); padding: 0.5rem 0.625rem; resize: vertical; min-height: 2.75rem;
}
.msg-form textarea:focus { outline: 2px solid var(--lamp-amber); outline-offset: -1px; }
.msg-form button, .profile-actions button {
  font: inherit; font-size: 0.875rem; color: var(--ground); background: var(--ink);
  border: 0; padding: 0.5rem 1rem; cursor: pointer;
}
.msg-form button:hover, .profile-actions button:hover { background: var(--lamp-amber); }
.profile-actions { display: flex; gap: 0.5rem; margin: 0.75rem 0 0; }
.profile-actions form { margin: 0; }
.profile-actions button.is-quiet { color: var(--ink-dim); background: transparent; border: 1px solid var(--rule); }
.profile-actions button.is-quiet:hover { color: var(--ink); background: transparent; border-color: var(--ink-faint); }

/* ---- native shell ---------------------------------------------------- */

/* The shell draws edge to edge; keep content clear of the notch and the
   home indicator. A browser never gets the class, so nothing moves there. */
.native body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
}
/* iOS keeps its bounce at the top: pull-to-refresh needs it. Android's
   refresh does not, and loses the overscroll glow. */
.native-android body { overscroll-behavior-y: none; }

.presence-toggle { margin-bottom: 0.5rem; }
.presence-toggle button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.presence-toggle button:hover { color: var(--lamp-amber); }

/* ---- your profile ------------------------------------------------------ */

.me-form textarea { width: 100%; font: inherit; }
.share-check { display: flex; gap: 0.625rem; align-items: flex-start; margin: 0.5rem 0 1rem; }
.share-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.form-error { color: var(--lamp-red); }
.me .leave { display: block; margin-top: 1.5rem; color: var(--ink-dim); }
.manifest-search { display: flex; gap: 0.5rem; margin: 0 0 1rem; }
.manifest-search input { flex: 1; min-width: 0; font: inherit; padding: 0.5rem 0.75rem; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); }
.manifest-search button { font: inherit; padding: 0.5rem 1rem; background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-ok { font-family: var(--mono); font-size: 0.75rem; color: var(--lamp-green); }
.field-pending { font-family: var(--mono); font-size: 0.75rem; color: var(--lamp-amber); }
.form-info { color: var(--ink); border-left: 2px solid var(--lamp-amber); padding-left: 0.75rem; }
.share-box { border: 1px solid var(--rule); padding: 0.75rem 1rem; margin: 0.5rem 0 1rem; }
.share-box legend { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); padding: 0 0.25rem; }
.share-state { margin: 0; color: var(--ink-dim); font-size: 0.875rem; }
.join-hint { color: var(--ink-dim); font-size: 0.875rem; margin: 0.25rem 0 0.75rem; }
.join-code { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.profile-nostr { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0.75rem 0; }
.profile-nostr .nostr-open { font-weight: 600; }
.profile-nostr button { font: inherit; background: transparent; color: var(--ink-dim); border: 1px solid var(--rule); padding: 0.25rem 0.75rem; cursor: pointer; }
.npub-full { flex-basis: 100%; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); word-break: break-all; }

/* =======================================================================
   Poster system. Everything below follows the printed displays.
   ======================================================================= */

/* ---- hero: the poster block that opens a page ---- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  padding: 2.5rem var(--gutter) 2rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
}
.hero-copy { position: relative; z-index: 1; max-width: 32rem; }
.hero-kicker {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 7ch;
}
.hero-number {
  margin: 0.5rem 0 0;
  font-weight: 500;
  font-size: clamp(3.5rem, 16vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--orange);
}
.hero-sub {
  margin: 1.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 2px solid var(--orange);
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-art { position: absolute; pointer-events: none; user-select: none; }
/* The moon rises from the lower right, as on the Lunar Destination display. */
/* Lighten drops the photo's black sky into the page's black, so no square edge. */
.hero-moon { width: min(28rem, 92vw); height: auto; right: -30%; top: -12%; mix-blend-mode: lighten; opacity: 0.9; }
.hero-earthrise { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; opacity: 0.85; }
.has-earthrise::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ground) 0%, rgb(16 18 15 / 0.6) 55%, transparent 100%);
}
.hero-saturn { height: 130%; width: auto; right: 8%; top: 10%; }
.hero-insignia { width: min(11rem, 36vw); height: auto; right: var(--gutter); top: 2rem; }
@media (min-width: 56rem) {
  .hero { min-height: 20rem; }
  .hero-moon { right: -4%; top: -30%; width: 34rem; }
}

/* ---- room numbers, as painted on the doors ---- */
.room-no { color: var(--orange); font-weight: 700; font-family: var(--sans); }
.room-title { font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; font-size: 1.125rem; }
.room-title .room-no { font-weight: 500; font-size: 1.75rem; margin-right: 0.25rem; }
.col-room { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.cell-meta { letter-spacing: 0.02em; }

/* ---- type: display headings in capitals, labels in Courier ---- */
.day-head, .manifest-head, .detail .detail-title, .thread-head, .messages .manifest-head {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.day-head {
  font-size: 1.5rem;
  padding-top: 2.25rem;
  border-bottom: 2px solid var(--orange);
  margin: 0 var(--gutter);
  padding-left: 0;
  padding-right: 0;
}
.grid { border-top: 0; }
.manifest-head { font-size: 1.25rem; }
.detail-title { font-size: 1.875rem; line-height: 1.05; }
.cell-title { font-weight: 600; }
.cell-link:hover .cell-title, .crew-link:hover, .person-link:hover .person-name { color: var(--orange); }
.rail { color: var(--ink); font-weight: 700; }
.col-name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.875rem; }

/* ---- the NOW panel reads like the room signs ---- */
.now { border: 0; border-top: 2px solid var(--orange); background: transparent; margin-top: 1.5rem; }
.now-head { padding: 0.75rem 0; border-bottom: 0; letter-spacing: 0.1em; font-family: var(--sans); font-weight: 700; font-size: 0.75rem; }
.now.is-live .now-head { color: var(--orange); }
.now-cards { background: transparent; gap: 0.75rem; }
.now-card { background: var(--panel); border: 1px solid var(--rule); padding: 1rem; }
.now-card .cell-meta { font-family: var(--sans); font-weight: 800; font-size: 1rem; text-transform: uppercase; color: var(--ink); margin-top: 0.5rem; }
.now-card .cell-meta .room-no { font-weight: 500; font-size: 2.25rem; line-height: 1; display: block; letter-spacing: -0.03em; }
.now-card .cell-meta .room-sep { display: none; }
.now-count { color: var(--orange); font-family: var(--sans); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- status: words, not lamps ---- */
.lamp { font-family: var(--sans); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.lamp::before { border-radius: 0; width: 0.375rem; height: 0.375rem; }
.notice { background: var(--panel); border-left: 3px solid var(--orange); border-bottom: 0; margin: 1.25rem var(--gutter) 0; padding: 0.75rem 1rem; }

/* ---- empty flight plan: the Saturn V on the pad ---- */
.standby {
  display: flex; gap: 1.5rem; align-items: center;
  margin: 2rem var(--gutter); padding: 1.5rem;
  border: 1px solid var(--rule); background: var(--panel);
}
.standby img { height: 15rem; width: auto; flex: none; }
.standby-title { margin: 0 0 0.5rem; font-weight: 800; font-size: 1.375rem; line-height: 1.1; text-transform: uppercase; }
.standby-sub { margin: 0; color: var(--ink-dim); font-size: 0.9375rem; }

/* ---- controls: cream plates, capitals ---- */
.join-form button, .note-form button, .interest button, .msg-form button, .profile-actions button, .manifest-search button {
  font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ground); background: var(--ink); border: 0; padding: 0.75rem 1.25rem; cursor: pointer;
}
.join-form button:hover, .note-form button:hover, .interest button:hover, .msg-form button:hover, .profile-actions button:hover, .manifest-search button:hover {
  background: var(--orange); color: var(--ink);
}
.profile-actions button.is-quiet, .interest button.is-on, .profile-nostr button {
  background: transparent; color: var(--ink-dim); border: 1px solid var(--rule);
}
.join-form input, .manifest-search input, .note-text textarea, .msg-form textarea, .me-form textarea {
  background: var(--panel); border: 1px solid var(--rule); color: var(--ink); padding: 0.75rem; font-size: 1rem;
}
.join-form input:focus, .manifest-search input:focus, .note-text textarea:focus, .msg-form textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; }
.note-text > span, .share-box legend, .profile-sub {
  font-family: var(--sans); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--ink-dim);
}
.share-check input, .note-met input { accent-color: var(--orange); }
.form-error { border-left: 3px solid var(--orange); padding-left: 0.75rem; color: var(--ink); }
.field-ok { color: var(--ink-dim); }
.field-pending { color: var(--orange); }

/* ---- crew cards ---- */
.crew-list { background: transparent; border: 0; gap: 0.75rem; }
.crew { border: 1px solid var(--rule); }
.crew-name { font-weight: 700; }
.chip { font-family: var(--sans); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.chip.is-on { border-color: var(--orange); }
.met-mark { color: var(--orange); }

/* ---- messages ---- */
.msg { background: var(--panel); border-color: var(--rule); }
.msg.is-mine { background: var(--panel-lift); border-color: var(--ink-faint); }
.nav-badge { background: var(--orange); color: var(--ink); border-radius: 0; font-family: var(--sans); font-weight: 700; }
.unread-dot { background: var(--orange); border-radius: 0; }
.msg-body a { color: var(--ink); text-decoration-color: var(--orange); }

/* ---- footer: the bottom band of every sign ---- */
.footer {
  margin-top: 2rem;
  padding: 1rem var(--gutter) 2.5rem;
  border-top: 2px solid var(--orange);
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.footer p { margin: 0.25rem 0 0; }
.footer-mark {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

/* Room first, as on the door; the session is what is behind it. */
.now-card { display: flex; flex-direction: column; }
.now-card .cell-meta { order: -1; margin: 0 0 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
.cell-track, .now-card .cell-track {
  font-family: var(--sans); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.25rem;
}
.cell-meta { font-family: var(--sans); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.rail { font-family: var(--sans); letter-spacing: 0.04em; }
.switch { border-color: var(--rule); }
.switch-opt span { font-family: var(--sans); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.switch-opt input:checked + span { background: var(--ink); color: var(--ground); }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--ink-dim); }
.has-insignia .hero-copy { padding-right: min(11rem, 36vw); }
.has-insignia .hero-kicker { max-width: 14rem; }
.name-row > label { min-width: 0; }
.join-form input, .me-form textarea { width: 100%; min-width: 0; }
/* Meals and socials say what is on: the menu, the bar. */
.cell-note { margin: 0; font-size: 0.875rem; color: var(--ink-dim); max-width: 46rem; }

/* ---- details form: clear about what is optional and what is shared ---- */
.join-form input[type="checkbox"] { width: auto; }
.optional { font-style: normal; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-faint); margin-left: 0.25rem; }
.field-hint { font-size: 0.8125rem; color: var(--ink-faint); }
.note-text .field-ok, .note-text .field-pending, .note-text .field-hint { display: inline; }
.prefixed { display: flex; align-items: stretch; }
.prefixed .prefix {
  display: flex; align-items: center; padding: 0 0.75rem;
  background: var(--panel-lift); border: 1px solid var(--rule); border-right: 0; color: var(--ink-dim); font-weight: 600;
}
.prefixed input { flex: 1; }
.share-check { align-items: center; font-weight: 700; font-size: 1rem; margin: 0.25rem 0 0.75rem; }
.share-check input { margin: 0; width: 1.25rem; height: 1.25rem; }
.share-explain { margin: 0.5rem 0; color: var(--ink-dim); font-size: 0.875rem; }
.share-list { margin: 0.25rem 0 0.5rem; padding-left: 1.25rem; font-size: 0.875rem; }
.share-list li { margin: 0.125rem 0; }
.share-state { margin-top: 0.75rem; padding-top: 0.625rem; border-top: 1px solid var(--rule); color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.note-text > span.field-hint, .note-text > span.field-ok, .note-text > span.field-pending {
  font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 0.8125rem; font-weight: 400;
}
.note-text > span.field-ok, .note-text > span.field-pending { font-weight: 700; }
.prefixed input { font-weight: 400; }
.day-venue {
  margin: 0.5rem var(--gutter) 0; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
}

/* ---- side events ---- */
.side-events { padding-bottom: 1rem; }
.side-list { display: grid; gap: 0.75rem; margin: 1rem var(--gutter) 0; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.side-event { border: 1px solid var(--rule); background: var(--panel); padding: 1rem; display: flex; flex-direction: column; gap: 0.375rem; }
.side-when { margin: 0; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.side-title { margin: 0; font-size: 1.125rem; font-weight: 700; }
.side-where { margin: 0; font-size: 0.875rem; color: var(--ink); }
.side-foot { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.side-host { font-size: 0.8125rem; color: var(--ink-dim); }
.side-rsvp {
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--ground); background: var(--ink); padding: 0.625rem 1rem;
}
.side-rsvp:hover { background: var(--orange); color: var(--ink); }
.side-event.is-cancelled .side-title { text-decoration: line-through; color: var(--ink-faint); }
.privacy-card { border-left: 3px solid var(--orange); background: var(--panel); padding: 0.75rem 1rem; margin: 0 0 1.25rem; }
.privacy-card p { margin: 0; font-size: 0.9375rem; color: var(--ink-dim); }
.privacy-card strong { color: var(--ink); }
.listed-as { margin: -0.25rem 0 0.25rem; }
.share-box .share-check + .share-explain { margin-top: 0; }
.share-box .share-explain + .share-check { margin-top: 1rem; }

/* ---- get the app ---- */
.app-strip { margin: 1.25rem var(--gutter) 0; padding: 1rem; border: 1px solid var(--rule); background: var(--panel); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.app-strip-copy { margin: 0; flex: 1 1 16rem; color: var(--ink-dim); font-size: 0.9375rem; }
.app-strip-copy strong { color: var(--ink); }
.get-app { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1 1 20rem; }
.get-app-btn {
  display: flex; flex-direction: column; gap: 0.125rem; flex: 1 1 9rem; min-width: 9rem;
  padding: 0.625rem 1rem; text-decoration: none; background: var(--ink); color: var(--ground); border-left: 4px solid var(--orange);
}
.get-app-btn:hover { background: var(--orange); color: var(--ink); }
.get-app-os { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.get-app-how { font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* Inside the native app, nobody needs to be told to get the app. */
.native .app-strip, .native .web-only { display: none; }
.native-only { display: none; }
.native .native-only { display: block; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-no { font-weight: 500; font-size: 2.25rem; line-height: 1; color: var(--orange); letter-spacing: -0.03em; flex: none; width: 3rem; }
.steps p { margin: 0.75rem 0 0; }
.install-cta {
  display: inline-block; padding: 0.875rem 1.25rem; text-decoration: none; font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--ground);
}
.install-cta:hover { background: var(--orange); color: var(--ink); }
.install-note { margin: 1.5rem 0 0; color: var(--ink-dim); font-size: 0.875rem; }
.install-hash code { font-family: var(--mono); font-size: 0.75rem; word-break: break-all; color: var(--ink-faint); }
.lead-crew { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); text-decoration: none; margin-left: 0.5rem; }
.lead-crew:hover { text-decoration: underline; }
/* Side events, inline: hosted by friends, not by us -- dashed, so they read as extras. */
.span.is-side .cell { background: transparent; border: 1px dashed var(--rule); }
.span.is-side .cell-track { color: var(--orange); }

/* ---- desktop width ----
   On a wide screen the page stops at ~1280px and centres: rules and lines
   stay readable, and the four-room grid still has room. */
.masthead, main, .footer { max-width: 80rem; margin-left: auto; margin-right: auto; }
.footer { margin-top: 2rem; }

/* ---- pick from the list ---- */
.pick { margin: 0.25rem 0 0; }
.pick-btn {
  font-family: var(--sans); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--ink-dim); border: 1px solid var(--rule); padding: 0.375rem 0.75rem; cursor: pointer;
}
.pick-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.pick-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.pick-btn:disabled { opacity: 0.6; }
.cell.is-picked { box-shadow: inset 3px 0 0 var(--orange); }
@media (max-width: 55rem) {
  .grid[data-only="mine"] .cell[data-track]:not(.is-picked),
  .grid[data-only="mine"] .span:not(:has(.is-picked)) { display: none; }
}

/* ---- phones never scroll sideways ----
   Only deliberate rows scroll; the page itself is clipped, and long words,
   links and keys wrap. */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; }
.cell-title, .cell-note, .crew-bio, .channels, .detail-abstract, .side-where, .resource-line, .install-note, .msg-body { overflow-wrap: anywhere; }
.switch { display: none; border: 0; overflow: visible; margin: 0 var(--gutter) 0.75rem; }
.switch label { display: flex; align-items: center; gap: 0.75rem; }
.switch span { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.switch select {
  flex: 1; min-width: 0; font: inherit; font-weight: 700; font-size: 0.875rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule); padding: 0.625rem 0.75rem; appearance: auto;
}
@media (max-width: 55rem) { .switch { display: block; } }

/* ---- saved confirmation ---- */
.saved-banner {
  margin: 0 0 1.25rem; padding: 0.875rem 1rem; background: var(--panel-lift); border-left: 4px solid var(--orange);
  color: var(--ink); font-size: 0.9375rem;
}
.saved-banner a { color: var(--ink); font-weight: 700; margin-left: 0.25rem; }
.saved-banner.is-error { border-left-color: var(--lamp-red); }
.manifest > .saved-banner, main > .saved-banner { margin: 1.25rem var(--gutter) 0; }

/* ---- Bitcoin Alpha's own vs side events ----
   Ours: solid panels. Side events: no fill, dashed outline, a boxed tag and
   a quieter title -- extras on the calendar, not the programme. */
.span .cell { background: var(--panel-lift); }
.span.is-side .cell { background: transparent; border: 1px dashed var(--ink-faint); opacity: 0.92; }
.span.is-side .cell-title { color: var(--ink-dim); font-weight: 600; }
.span.is-side .cell-link:hover .cell-title { color: var(--orange); }
.side-tag { margin: 0 0 0.375rem; font-size: 0.75rem; color: var(--ink-faint); }
.side-tag span, .day-head .pass-tag {
  display: inline-block; margin-right: 0.5rem; padding: 0.125rem 0.5rem; border: 1px solid var(--orange);
  color: var(--orange); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.day-head .pass-tag { margin-left: 0.5rem; margin-right: 0; vertical-align: middle; }

/* ---- NOW / NEXT UP: a callout, not a caption ---- */
.now { border-top: 0; margin-top: 1.5rem; }
.now-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  margin: 0; padding: 0.75rem 1rem; border: 0;
}
.now.is-next .now-head { background: var(--panel-lift); border-left: 4px solid var(--orange); }
.now.is-live .now-head { background: var(--orange); color: var(--ink); }
.now-label { font-family: var(--sans); font-weight: 800; font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.now.is-next .now-label { color: var(--orange); }
.now-when { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.now.is-live .now-when { color: var(--ink); }
.now-cards { margin-top: 0.75rem; }
.now-where { margin: 0.375rem 0 0; font-size: 0.8125rem; color: var(--ink-dim); }

/* ---- one card layout ----
   Tag, title, who, note; then a foot: where/when/status on the left, the
   card's single action (Interested / RSVP / Ask on X) at the bottom right. */
.cell-foot { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 0.75rem; flex-wrap: wrap; }
.cell-foot-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; flex: 1 1 10rem; }
.cell-foot-info .lamp { margin-top: 0; }
.cell-foot .pick { margin: 0 0 0 auto; }
.cell-foot .side-rsvp, .cell-foot .pick-btn { margin-left: auto; white-space: nowrap; }
.cell-foot .side-rsvp { padding: 0.5rem 0.875rem; font-size: 0.6875rem; }
.cell-foot .pick-btn { padding: 0.5rem 0.875rem; }
.side-host { margin: 0; font-size: 0.8125rem; color: var(--ink-dim); }
/* Same button for every card action; only a chosen pick fills orange. */
.cell-foot .side-rsvp {
  background: transparent; color: var(--ink-dim); border: 1px solid var(--rule);
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.cell-foot .side-rsvp:hover { color: var(--ink); border-color: var(--ink-faint); background: transparent; }

/* A partner cohosting one of our events gets real credit, not small print. */
.cohost {
  margin: 0.25rem 0 0.375rem; display: inline-block; align-self: flex-start;
  padding: 0.25rem 0.625rem; border: 1px solid var(--orange);
  font-size: 0.8125rem; color: var(--ink); letter-spacing: 0.01em;
}
.cohost strong { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.detail .cohost { font-size: 1rem; margin: 0.25rem 0 1rem; }
.verify-go { font-size: 1rem !important; padding: 1rem 2rem !important; }

/* ---- how sessions work ---- */
.format-note { margin: 1.25rem var(--gutter) 0; padding: 1rem 1.125rem; border: 1px solid var(--rule); background: var(--panel); }
.format-head { margin: 0 0 0.5rem; font-weight: 800; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.format-note p { margin: 0.375rem 0 0; color: var(--ink-dim); font-size: 0.9375rem; }
.format-note strong { color: var(--ink); }
.format-line { margin: 0 0 1rem; padding-left: 0.75rem; border-left: 3px solid var(--orange); color: var(--ink-dim); font-size: 0.9375rem; }

/* ---- usability pass (Oct 6) ---- */
/* Back buttons everywhere share one look. */
.detail-back .back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--rule); text-decoration: none;
}
/* On desktop the column header already names the room. */
@media (min-width: 55.0625rem) { .grid .cell[data-track] .cell-room { display: none; } }
/* Profile: breathing room between the bio and the Message button; Block sits apart, quietly. */
.profile .detail-abstract + .profile-actions { margin-top: 1rem; }
.profile-actions button { min-height: 2.75rem; }
.profile-block { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.profile-block button { font: inherit; font-size: 0.875rem; background: none; border: 0; padding: 0.5rem 0; min-height: 2.75rem; color: var(--ink-dim); text-decoration: underline; cursor: pointer; }
.profile-block button:hover { color: var(--lamp-red); }
.profile-block span { font-size: 0.8125rem; color: var(--ink-faint); }
/* Message box: Send matches the box height. */
.msg-form button { min-width: 5.5rem; }
/* Details form: tick rows are full-height tap targets, explanations sit close under them, Save stays reachable. */
.share-check { min-height: 2.75rem; }
.share-check input { width: 1.375rem; height: 1.375rem; }
.share-check + .share-explain { margin-top: -0.375rem; }
.me-form > button[type="submit"] { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem); align-self: flex-start; box-shadow: 0 0 0 0.5rem var(--ground); z-index: 2; }
/* Small text links in content get a taller hit area without changing the line. */
.resource-line a, .profile-channels a { display: inline-block; padding-block: 0.375rem; }
/* Crew topic filters and Sign out: full-size tap targets. */
.topic-bar .chip { min-height: 2.75rem; display: inline-flex; align-items: center; }
.me .leave button { min-height: 2.75rem; }
.nav a { gap: 0.375rem; }
.me-form .share-check { margin-bottom: 0; }
.me-form .share-check + .share-explain { margin-top: -0.5rem; }

/* ---- compact menu bar: slides in once the masthead scrolls away ---- */
.minibar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--ground); border-bottom: 2px solid var(--orange);
  transform: translateY(-100%); transition: transform 0.2s ease;
}
.minibar.is-on { transform: none; }
.minibar-inner { max-width: 80rem; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1.25rem; }
.minibar-mark { font-weight: 800; font-size: 0.875rem; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap; }
.minibar .nav { grid-column: auto; flex: 1; margin: 0; padding: 0; border-top: 0; justify-content: flex-end; }
@media (max-width: 30rem) {
  .minibar-mark { display: none; }
  .minibar .nav { justify-content: space-between; gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .minibar { transition: none; } }
/* Jumping to a session (#s-…) lands below the bar, not under it. */
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 3.5rem); }

/* ---- manifest cards: one shape for everyone; the whole card opens the profile ---- */
.crew { position: relative; align-items: flex-start; min-height: 6.5rem; }
.crew .patch { width: 44px; height: 44px; }
.crew-body { gap: 0.3125rem; flex: 1; }
.crew-name { font-size: 1rem; line-height: 1.25; padding-right: 3.5rem; overflow-wrap: anywhere; }
.crew-link { color: var(--ink); }
.crew-link::after { content: ""; position: absolute; inset: 0; }
.crew:hover { border-color: var(--ink-faint); }
.crew:hover .crew-link { color: var(--orange); }
.crew:focus-within { outline: 2px solid var(--orange); outline-offset: -2px; }
.crew-sub { margin: 0; font-size: 0.8125rem; color: var(--ink-faint); overflow-wrap: anywhere; }
.crew-leading { margin: 0.125rem 0 0; font-size: 0.8125rem; color: var(--ink); }
.crew-leading span { font-family: var(--sans); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-right: 0.25rem; }
.crew-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0.125rem; }
.crew .chips { position: relative; z-index: 1; }
.crew-met { position: absolute; top: 1rem; right: 1rem; font-family: var(--sans); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
/* Four menu items fit a 390px phone with "Manifest". */
@media (max-width: 26rem) { .nav { gap: 0.875rem; letter-spacing: 0.03em; } }
@media (max-width: 24rem) { .nav { gap: 0.75rem; font-size: 0.6875rem; } }

/* ---- session actions: calendar and share ---- */
.session-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.25rem; }
.action-btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--rule); text-decoration: none; cursor: pointer;
}
.action-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ---- collapsible days: past days start closed ---- */
.day-summary { list-style: none; cursor: pointer; }
.day-summary::-webkit-details-marker { display: none; }
.day-summary .day-head { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
.day-summary .day-head::after {
  content: ""; margin-left: auto; width: 0.6rem; height: 0.6rem; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-0.15rem, -0.15rem); transition: transform 0.15s ease;
}
.day:not([open]) .day-summary .day-head::after { transform: rotate(-45deg); }
.day-summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.day-done { font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--ink-faint); border: 1px solid var(--rule); padding: 0.125rem 0.375rem; }
.day.is-past:not([open]) { padding-bottom: 0.5rem; }
.day.is-past .day-head { color: var(--ink-dim); }
@media (prefers-reduced-motion: reduce) { .day-summary .day-head::after { transition: none; } }

/* ---- page changes: keep the old page up until the new one is ready, then crossfade ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.15s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html { background: var(--ground); }

/* =======================================================================
   Depth. The hero is three layers that scroll at different speeds:
   stars (slowest), the art, then the title, which drifts and fades.
   actions.js sets --p (pixels scrolled past the hero's top).
   ======================================================================= */
.hero::before {
  content: ""; position: absolute; inset: -40% 0 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgb(243 236 220 / 0.55), transparent 60%),
    radial-gradient(1px 1px at 68% 32%, rgb(243 236 220 / 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 72%, rgb(243 236 220 / 0.5), transparent 60%),
    radial-gradient(1px 1px at 86% 64%, rgb(243 236 220 / 0.35), transparent 60%),
    radial-gradient(1px 1px at 24% 52%, rgb(243 236 220 / 0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 54% 12%, rgb(255 140 60 / 0.45), transparent 60%);
  background-size: 220px 180px;
  transform: translate3d(0, calc(var(--p, 0) * 0.12px), 0);
}
.hero-art { transform: translate3d(0, calc(var(--p, 0) * 0.35px), 0); will-change: transform; }
.hero-copy {
  transform: translate3d(0, calc(var(--p, 0) * 0.18px), 0);
  opacity: calc(1 - var(--p, 0) / 320);
}
/* The page arrives: art settles, the title rises. */
@keyframes hero-art-in { from { opacity: 0; scale: 1.06; } }
@keyframes hero-rise { from { opacity: 0; translate: 0 0.75rem; } }
.hero-art { animation: hero-art-in 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero-kicker, .hero-title, .hero-number, .hero-sub { animation: hero-rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-title { animation-delay: 0.06s; }
.hero-number { animation-delay: 0.12s; }
.hero-sub { animation-delay: 0.18s; }

/* Sessions further down rise into place as they scroll in (set up by actions.js). */
.reveal-ready .reveal { opacity: 0; translate: 0 1rem; transition: opacity 0.5s ease, translate 0.5s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal.in { opacity: 1; translate: 0 0; }

/* Cards answer a touch: a lift and an orange edge. */
.cell:not(.is-empty), .crew { transition: background-color 0.2s ease, box-shadow 0.2s ease, translate 0.2s ease; }
@media (hover: hover) {
  .cell:not(.is-empty):hover, .crew:hover { box-shadow: inset 2px 0 0 var(--orange); background-color: var(--panel-lift); }
}
.cell:not(.is-empty):active, .crew:active { translate: 0 1px; box-shadow: inset 2px 0 0 var(--orange); }

/* A soft glow under the orange day rule. */
.day-head { box-shadow: 0 6px 18px -12px var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-art, .hero-copy { transform: none; opacity: revert; }
  .hero-art, .hero-kicker, .hero-title, .hero-number, .hero-sub { animation: none; }
  .reveal-ready .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---- refresh button beside a page heading ---- */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.head-row > h1 { flex: 1; min-width: 0; }
.refresh-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-right: var(--gutter);
  color: var(--ink-dim); border: 1px solid var(--rule); text-decoration: none;
}
.refresh-btn:hover, .refresh-btn:focus-visible { color: var(--orange); border-color: var(--orange); }
@keyframes spin { to { rotate: 360deg; } }
.refresh-btn.spinning svg { animation: spin 0.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .refresh-btn.spinning svg { animation: none; opacity: 0.5; } }

/* ---- equal cards: every room card is the same size ----
   Title stops at 3 lines, leads at 2, the description at 5 with "more ›"
   (shown by actions.js only when it was cut). actions.js sets --card-h to the
   tallest card on this screen, so nothing is clipped; the foot sits at the bottom. */
.grid > .cell:not(.is-empty) { min-height: var(--card-h, auto); }
.cell-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cell .leads { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; flex: none; }
.cell-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; line-height: 1.5; flex: none; }
.cell-more { align-self: flex-start; margin-top: -0.125rem; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); text-decoration: none; }
.cell-more:hover { text-decoration: underline; }
.cell-foot { flex: none; }

/* ---- profile: where the beacons last placed them ---- */
.last-seen { margin: 0.25rem 0 0.75rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-dim); }
.last-seen span { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 0.375rem; color: var(--ink-faint); }
.last-seen.is-here span { color: var(--lamp-green, #6fcf8e); }
.last-seen.is-here span::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; margin-right: 0.375rem; vertical-align: 0.05rem; }

.wayfind { margin: 1rem 0; }
.wayfind img { display: block; width: 100%; max-width: 34rem; height: auto; border-radius: 0.5rem; }
.wayfind figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-dim); max-width: 34rem; }
.wayfind-link { margin: 0.25rem 0 0; font-size: 0.875rem; }

/* =======================================================================
   Profile (someone else's): one format. Header, status, Message, bio, then
   sections with the same heading and the same full-width rows.
   ======================================================================= */
.profile { max-width: 36rem; }
.profile .profile-head { align-items: flex-start; gap: 0.875rem; margin: 0.25rem 0 1rem; }
.profile .profile-head .patch { width: 52px; height: 52px; }
.profile-id { min-width: 0; }
.profile .detail-title { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.05; overflow-wrap: anywhere; }
.profile .profile-real { font-size: 0.9375rem; margin-top: 0.25rem; }
.profile .last-seen { margin: 0.5rem 0 0; }
.profile .profile-actions { margin: 0 0 1.25rem; }
.profile .profile-actions form { flex: 1; }
.profile .profile-actions button { width: 100%; min-height: 2.75rem; }
.profile-bio { margin: 0 0 0.5rem; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.profile-section { margin-top: 1.5rem; }
.profile-section > .profile-sub { margin: 0 0 0.5rem; padding-bottom: 0.375rem; border-bottom: 1px solid var(--rule); }
.profile-rows { list-style: none; margin: 0; padding: 0; }
.profile-rows > li { border-bottom: 1px solid var(--rule-soft); display: flex; align-items: center; }
.profile-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.5rem 0; color: var(--ink); text-decoration: none; }
.profile-row:hover .v, .profile-row:hover .t { color: var(--orange); }
.profile-row .k { flex: none; width: 6.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.profile-row .v { flex: 1; min-width: 0; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-row .chev { flex: none; color: var(--ink-faint); font-size: 1.25rem; line-height: 1; }
.profile-row.is-session { flex-wrap: wrap; row-gap: 0.125rem; }
.profile-row.is-session .t { flex: 1 1 calc(100% - 2rem); font-size: 0.9375rem; line-height: 1.35; }
.profile-row.is-session .m { order: 3; flex-basis: 100%; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-dim); }
.profile-row.is-session .chev { order: 2; }
.profile-rows > li.is-cancelled .t { text-decoration: line-through; color: var(--ink-faint); }
.row-copy { flex: none; margin-left: 0.5rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); background: transparent; border: 1px solid var(--rule); padding: 0.375rem 0.625rem; cursor: pointer; }
.row-copy:hover { color: var(--ink); border-color: var(--ink-faint); }
.profile-section .note-form { margin-top: 0; max-width: none; }
.profile-section .chips { margin-top: 0.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.profile .profile-block { margin-top: 2rem; }

/* Live search: the list filters as you type, so the button is only for no-script. */
.manifest.is-live-search .manifest-search button { display: none; }
.crew[hidden] { display: none !important; }

/* ---- polish (Oct 9): hierarchy, readability, tap targets ------------- */
.cell { gap: 0.5rem; padding: 0.875rem; }
.cell-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.leads { color: var(--ink); font-size: 0.875rem; }
.cell-meta { font-size: 0.8125rem; color: var(--ink-dim); text-transform: none; letter-spacing: 0; line-height: 1.45; }
.cell-meta .cell-time { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cell-note { line-height: 1.5; }
.notice { font-size: 0.8125rem; }
.notice a { color: var(--lamp-amber); white-space: nowrap; }
.side-rsvp, .pick button, .detail-back a, .wayfind-link a { min-height: 44px; display: inline-flex; align-items: center; }
.detail-when { font-size: 0.9375rem; color: var(--ink); }
.wayfind-link { margin: -0.5rem 0 1.25rem; }
.wayfind-link a { padding: 0 0.875rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); }
.wayfind-link a:hover { border-color: var(--lamp-amber); color: var(--lamp-amber); }
.join-why { margin: 0 0 1.5rem; padding: 0.875rem 1rem; border-left: 3px solid var(--lamp-amber); background: var(--panel); }
.join-why p { margin: 0; line-height: 1.5; }
.format-note p { margin: 0.25rem 0 0; }
/* Time and room lead each card, so they never read as the next card's header. */
.cell > .cell-foot { order: -2; margin-top: 0; padding-bottom: 0.25rem; }
/* The side-event / private tag goes under the time, so every card's time is its first line. */
.cell > .side-tag, .cell > .cell-track { order: -1; }
/* The old track names (propulsion, navigation) mean nothing to attendees; the room says where. */
.detail-track { display: none; }

/* A full-width item sharing a row with room sessions sits in the empty columns. */
.span-inline { display: flex; min-width: 0; border-bottom: 1px solid var(--rule-soft); }
.span-inline > .cell { flex: 1; background: var(--panel-lift); min-height: var(--card-h, auto); }
.span-inline.is-side > .cell { background: transparent; border: 1px dashed var(--rule); }
@media (max-width: 55rem) { .span-inline { display: block; grid-column: auto !important; } }

/* Mission partners and the Club Orange chat */
.cohost-partner img { height: 19px; width: auto; vertical-align: -4px; margin-left: 4px; }
.group-chat { margin: 0.5rem 0 0; }
.group-chat .person-link { align-items: center; padding: 0.5rem 0; }
.group-chat .thread-body { flex-direction: row; align-items: baseline; gap: 0.5rem; min-width: 0; }
.group-chat .person-name { white-space: nowrap; flex: none; }
.group-chat .thread-last { min-width: 0; }
.group-chat-icon { width: 40px; height: 40px; flex: none; box-sizing: border-box; border-radius: 50%; border: 1.5px solid rgba(222, 88, 43, 0.55); display: grid; place-items: center; }
.group-chat-icon img { display: block; width: 20px; height: 20px; }
.host-logo { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.group-chat-arrow { color: var(--orange); margin-left: 2px; }
.group-chat .person-link:hover .person-name { color: var(--lamp-amber); }
.partner-strip { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 6px 0 8px; }
.partner img { height: 38px; width: auto; display: block; }

/* The mission map opens full size so it can be pinch-zoomed. */
.zoomable { display: block; cursor: zoom-in; }
.room-link { color: inherit; text-decoration: none; cursor: zoom-in; }
.room-link:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.2em; }
.mapbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 8, 14, .94); }
.mapbox[hidden] { display: none; }
.mapbox-scroll { position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: center; justify-content: center; padding: max(48px, env(safe-area-inset-top)) 8px 16px; touch-action: pan-x pan-y pinch-zoom; }
.mapbox-scroll img { max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: zoom-in; }
.mapbox.zoomed .mapbox-scroll { display: block; }
.mapbox.zoomed .mapbox-scroll img { max-width: none; max-height: none; width: 260%; cursor: zoom-out; }
.mapbox-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ---- Grid cards line up (desktop): every card has the same rows at the same heights.
   1 time + room (one line) with the Interested button beside it · 2 title (always two lines)
   3 lead (one line) · 4 description (five lines) · 5 more ›. Cohost credit sits below. ---- */
@media (min-width: 55.0625rem) {
  .grid .cell > .cell-foot, .span-inline .cell > .cell-foot { flex-wrap: nowrap; align-items: center; min-height: 2.5rem; padding-top: 0; }
  .grid .cell-foot-info, .span-inline .cell-foot-info { flex: 1 1 auto; min-width: 0; flex-direction: row; align-items: center; gap: 0.5rem; }
  /* The time never truncates; a long room or location does. Tentative sits in the card's bottom-right corner. */
  .grid .cell-meta, .span-inline .cell-meta { display: flex; min-width: 0; }
  .grid .cell-meta .cell-time, .span-inline .cell-meta .cell-time { flex: none; }
  .grid .cell-meta > :not(.cell-time), .span-inline .cell-meta > :not(.cell-time) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
  .grid .cell[data-track], .span-inline .cell { position: relative; }
  .grid .cell-foot-info .lamp, .span-inline .cell-foot-info .lamp { position: absolute; right: 0.875rem; bottom: 0.75rem; white-space: nowrap; }
  .grid .cell-meta, .span-inline .cell-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid .cell-foot .pick-btn, .span-inline .cell-foot .pick-btn,
  .grid .cell-foot .side-rsvp, .span-inline .cell-foot .side-rsvp { flex: none; min-height: 2.25rem; padding: 0 0.75rem; font-size: 0.6875rem; }
  .grid .cell-title, .span-inline .cell-title { -webkit-line-clamp: 2; line-clamp: 2; min-height: 2.6em; }
  .grid .cell .leads, .span-inline .cell .leads { -webkit-line-clamp: 1; line-clamp: 1; min-height: 1.45em; }
  .grid .cell-note, .span-inline .cell-note { min-height: 7.5em; }
  .grid .cell > .cohost, .span-inline .cell > .cohost { order: 1; }
}
.leads.is-blank { margin: 0; }
@media (max-width: 55rem) { .leads.is-blank { display: none; } }
/* The hour on the left sits on the same line as the cards' times. */
@media (min-width: 55.0625rem) {
  .rail:not(.col-head) { padding-top: calc(0.875rem - 2px); }
  .rail:not(.col-head) > time { display: flex; align-items: center; justify-content: flex-end; min-height: 2.5rem; line-height: 1.45; }
}

/* A tapped link: a thin bar along the top until the next page paints. */
html.is-leaving::before {
  content: ""; position: fixed; z-index: 1000; left: 0; height: 3px; width: 100%;
  top: env(safe-area-inset-top, 0);
  background: var(--orange); transform-origin: 0 50%;
  animation: leaving 8s cubic-bezier(.1, .7, .2, 1) forwards;
}
@keyframes leaving { from { transform: scaleX(0.08); } to { transform: scaleX(0.92); } }
@media (prefers-reduced-motion: reduce) { html.is-leaving::before { animation: none; transform: scaleX(0.6); } }
