/* The front door's header layer, copied for the store (2026-11-29).
   The door keeps one stylesheet for its header (door/rooms.css, the block that starts
   "the header, the same on every page"). The store is a different host, so it cannot
   link that file: the rules come here instead, in the same order and with the same
   names, and the door's tokens are read from the store's own (:root below maps the
   door's --canvas to the store's --surface-base and so on). The values are the door's
   own, so the bar looks the same on both hosts.
   The store's own stylesheet rules are in the page; this file is loaded after them,
   so the header is the door's and not the store's. Nothing here animates on its own,
   and every control keeps a visible focus ring and a 44 px target. */

:root {
  --canvas: var(--surface-base);
  --panel-purple: var(--surface-sunken);
  --felt-bottom: #33243d;
  --text: var(--text-primary);
  --mint: var(--accent-mint);
  --focus: var(--focus-ring);
  --line-ui: var(--border-line-strong);
  --tap: 2.75rem;
  --t-sm: 0.875rem;
  --r1: 0.5rem;
  --r2: 0.9rem;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
}

/* ---- the header, the same on every page: the lockup, then the rooms as felt tabs ---- */
.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  padding-block: var(--s3) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--tap);
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.roombar {
  display: flex;
  flex: 1 1 100%;
  gap: var(--s1);
  margin: 0;
  padding: var(--s1);
  border: 1px dashed var(--line-ui);
  border-radius: var(--r2);
  background-color: var(--panel-purple);
}

.roombar a.tab {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--tap);
  padding: var(--s1) var(--s2);
  border: 1px dashed var(--line-ui);
  border-radius: var(--r1);
  background-color: var(--felt-bottom);
  background-image: url('felt.png');
  background-size: 160px 160px;
  color: var(--text);
  font-size: var(--t-sm);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.roombar a.tab:hover { border-color: var(--focus); }

/* At 400% zoom (a 320 px wide view) the five tabs cannot fit one row: let them wrap
   rather than make the page scroll sideways (WCAG 1.4.10 reflow). Phones (390 px) keep
   one row. */
@media (max-width: 22.5rem) {
  .roombar { flex-wrap: wrap; }
  .roombar a.tab { flex: 1 1 4.25rem; }
}

.roombar a.tab[aria-current="page"] {
  background-color: var(--mint);
  background-image: none;
  border-style: solid;
  border-color: var(--canvas);
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (min-width: 48rem) {
  .roombar { flex: 0 1 auto; border: 0; background: none; padding: 0; gap: var(--s2); }
  .roombar a.tab { flex: 0 0 auto; min-width: 5.25rem; padding-inline: var(--s4); }
}

/* ---- the crumb: where this page sits in the library, under the bar ---- */
.crumb {
  flex: 1 1 100%;
  margin: 0;
  font-size: var(--t-sm);
}

.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
}

.crumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
