/* Demo-only additions: the fixed notice, the monogram, and a few small layout pieces. */
:root { --banner-h: 2.6rem; }
body { padding-top: var(--banner-h); overflow-x: hidden; }
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem 1rem;
  padding: .45rem var(--page-gutter);
  background: var(--color-ink); color: var(--color-paper);
  font-family: var(--font-body); font-size: .88rem; line-height: 1.35; text-align: center;
  border-bottom: 2px solid var(--color-amber);
}
.demo-banner a { color: var(--color-paper); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.demo-banner a:hover { color: var(--color-amber); }
.demo-banner a:focus-visible { outline: 2px solid var(--color-amber); outline-offset: 2px; }

.demo-mark {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: 0 0 auto;
  border: 1.5px solid var(--color-text-on-band); color: var(--color-text-on-band);
  font-family: var(--font-heading); font-size: 1.35rem; line-height: 1;
}
.mono, .run-code { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.01em; }
.session-card .card-title b { font-family: var(--font-mono); font-weight: 500; }

.view-page { margin-bottom: 1rem; }

.pill.muted { background: var(--color-surface-quiet); color: var(--color-text-secondary); }
.pill.info { background: var(--color-info-wash); color: var(--color-info-text); }

.bar { display: inline-block; height: .55rem; background: var(--color-forest); vertical-align: middle; }
.bar-track { display: inline-block; width: 6rem; height: .55rem; background: var(--color-surface-quiet); border: 1px solid var(--color-line); vertical-align: middle; margin-right: .4rem; }
.bar-track .bar { display: block; height: 100%; }

.run-picker { display: block; margin: .2rem 0 .4rem; }
.run-picker select, #booking-run-filter { max-width: 100%; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { margin: .25rem 0; }
.checklist label { display: inline-flex; gap: .5rem; align-items: flex-start; cursor: pointer; min-height: 32px; }
.checklist input { margin-top: .3rem; accent-color: var(--color-forest); width: 1rem; height: 1rem; }
.checklist .done span { color: var(--color-text-muted); text-decoration: line-through; }

.todo-list a { font-weight: 600; }
.todo-empty { color: var(--color-ok-text); font-weight: 600; }
.flash { color: var(--color-ok-text); font-weight: 600; min-height: 1.3em; margin: .3rem 0; }

.timeline { list-style: none; margin: .3rem 0 .6rem; padding: 0 0 0 1rem; border-left: 2px solid var(--color-line); }
.timeline .tl-item { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 .8rem; padding: .3rem 0; }
.timeline .tl-item::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .75rem; width: 10px; height: 10px; border-radius: 50%; background: var(--color-paper); border: 2px solid var(--color-forest); }
.timeline .tl-held::before { background: var(--color-forest); }
.timeline .tl-date { font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .tl-state { grid-column: 2; }
.timeline .tl-today { margin: .3rem 0 .3rem -1rem; padding: .2rem .6rem; border-left: var(--marker-thickness) solid var(--color-amber); background: var(--color-accent-wash); font-size: .85rem; font-weight: 600; }

.am .am-bulk { margin: .5rem 0; }
.am-wrap, .table-wrap { position: relative; }
.am-reason { color: var(--color-text-secondary); }

table.compact td, table.compact th { padding: .35rem .45rem; }
.prog-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .3rem 0 .6rem; font-size: .92rem; color: var(--color-text-secondary); }
.prog-facts b { color: var(--color-text); font-weight: 600; }

.footer { width: min(var(--page-width), calc(100% - 2 * var(--page-gutter))); margin: 1.5rem auto 0; padding-top: .8rem; border-top: 1px solid var(--color-line); }

@media (max-width: 560px) {
  :root { --banner-h: 3.6rem; }
  .demo-banner { font-size: .8rem; gap: .1rem .8rem; }
  .demo-mark { width: 2rem; height: 2rem; font-size: 1.1rem; }
  .topbar-actions { display: flex; justify-content: space-between; }
  .bar-track { width: 3.5rem; }
  /* the invite lists and the online check read as one card per person on a phone */
  .timeline .tl-item { grid-template-columns: 1fr; }
  .timeline .tl-state { grid-column: 1; }
  .invite-table thead, .am-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .invite-table, .invite-table tbody, .invite-table tr, .invite-table td,
  .am-table, .am-table tbody, .am-table tr, .am-table td { display: block; width: 100%; }
  .invite-table tr, .am-table tr { border-bottom: 1px solid var(--color-line); padding: .5rem 0; }
  .invite-table td, .am-table td { border: 0; padding: .1rem 0; text-align: left; }
  .invite-table td.r::before { content: "Lifetime: "; color: var(--color-text-muted); }
  .am-table td:empty { display: none; }
}
