/* The black nav bar, shared by every page that has one (/shop, /shows, /privacy, /sell,
   /sell/shop, /sell/shows). Made over on the Prop Shop first (Kevin, 2026-10-09, "makeover
   the header... i meant the nav header"), then carried to the rest ("carry the nav bar to the
   other pages"). Loaded after each page's own <style>, so it wins over the old square bar.

   Left: the stamp and SOLD OUT! COMEDY (the way home), a grey //, then the page's name in its
   own colour, and on the Prop Shop a blurb after a hairline. Right: HOME, SHOP and SHOWS as one
   rounded switch, the page you are on filled. A coloured line along the foot, and a shadow
   once the page scrolls under the bar (topbar.js). On a phone the switch runs the bar's width
   and the blurb folds away while scrolling, so the pinned bar stays short.

   Each page names itself with a class on .topbar: t-shop (green), t-shows (purple), t-sell
   (orange) or t-privacy (plain white). */
.topbar {
  --here: #fff; --line: rgba(255, 255, 255, 0.35);
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 1.4rem; gap: 1.25rem;
  background: var(--ink, #111); color: #fff;
  border-bottom: 3px solid var(--line);
  transition: box-shadow .2s;
}
.topbar.t-shop { --here: var(--green, #00B050); --line: var(--green, #00B050); }
.topbar.t-shows { --here: #C9A3F5; --line: var(--purple, #A969FF); }
.topbar.t-sell { --here: var(--orange, #FF9500); --line: var(--orange, #FF9500); }
.topbar.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); }
.topbar span { overflow: visible; text-overflow: clip; }
.topbar .brand {
  display: flex; align-items: center; gap: 0 0.55rem; min-width: 0;
  font-family: 'Bangers', cursive; font-weight: 400; font-size: 1.45rem; letter-spacing: 1.5px;
  line-height: 1; white-space: nowrap;
}
.topbar .brand .brand-home {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0; color: #fff;
}
.topbar .brand .brand-home img { width: 34px; height: auto; display: block; transition: transform .2s; }
.topbar .brand .brand-home:hover, .topbar .brand .brand-home:focus-visible {
  background: none; color: var(--acid, #FFD93D); text-decoration: none; outline: none;
}
.topbar .brand .brand-home:hover img, .topbar .brand .brand-home:focus-visible img { transform: rotate(-8deg); }
.topbar .brand .slash { color: rgba(255, 255, 255, 0.38); }
.topbar .brand .here { color: var(--here); }
.topbar .brand .bar-what {
  margin-left: 0.5rem; padding-left: 0.85rem; border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--sans, Inter, sans-serif); font-size: 0.84rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; line-height: 1.3;
  color: rgba(255, 255, 255, 0.78); white-space: nowrap;
}
.topnav {
  display: flex; flex-shrink: 0; gap: 2px; padding: 4px; align-items: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
}
.topnav .solo {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0; padding: 0.45rem 1rem; border: 0; border-radius: 999px; box-shadow: none;
  font-family: var(--mono, 'Space Mono', monospace); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.topnav .solo svg { width: 1em; height: 1em; fill: currentColor; margin-top: -2px; }
.topnav .solo.nav-home { color: #fff; }
.topnav .solo.nav-shop { color: var(--green, #00B050); }
.topnav .solo.nav-shows { color: #C9A3F5; }
.topnav .solo:hover, .topnav .solo:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; outline: none; }
.topnav .solo.nav-shop[aria-current], .topnav .solo.nav-shop[aria-current]:hover,
.topnav .solo.nav-shop:focus-visible { background: var(--green, #00B050); color: var(--ink, #111); }
.topnav .solo.nav-shows[aria-current], .topnav .solo.nav-shows[aria-current]:hover,
.topnav .solo.nav-shows:hover, .topnav .solo.nav-shows:focus-visible { background: var(--purple, #A969FF); color: #fff; }
/* LIVE NOW (live-now.js) turns SHOWS red; that beats every fill. */
.topnav .solo.is-live, .topnav .solo.is-live[aria-current], .topnav .solo.is-live:hover { background: var(--red, #FF3B3B); color: #fff; }
.topbar a[aria-current] { outline: none; }
/* No room beside the name: the blurb goes under it. */
@media (max-width: 1080px) {
  .topbar .brand { flex-wrap: wrap; row-gap: 0.15rem; }
  .topbar .brand .bar-what {
    flex-basis: 100%; margin: 0; padding: 0 0 0 calc(34px + 0.55rem); border: 0;
    white-space: normal; font-size: 0.8rem;
  }
}
@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; padding: 0.5rem 0.75rem 0.55rem; gap: 0.45rem; font-size: inherit; }
  .topbar .brand { font-size: 1.12rem; letter-spacing: 1px; gap: 0 0.4rem; }
  .topbar .brand .brand-home { gap: 0.4rem; }
  .topbar .brand .brand-home img { width: 26px; }
  .topbar .brand .bar-what {
    padding-left: calc(26px + 0.4rem); font-size: 0.74rem; max-height: 3em; overflow: hidden;
    transition: max-height .2s, opacity .2s;
  }
  .topbar.is-scrolled .brand .bar-what { max-height: 0; opacity: 0; }
  .topnav { width: 100%; }
  .topnav .solo { flex: 1; justify-content: center; text-align: center; padding: 0.42rem 0.4rem; font-size: 0.7rem; }
}
@media (max-width: 340px) {
  .topbar .brand { font-size: 1rem; }
  .topnav .solo { letter-spacing: 0.06em; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar .brand .bar-what, .topbar .brand .brand-home img { transition: none; }
}

/* The lockup (Kevin, 2026-10-13, option 4 of five for "LEFT SIDE OF NAV TOP BAR ON PROP SHOP AND
   LIVE SHOWS is busy and weird and needs some consistency"), on /shop and /shows: no words
   SOLD OUT! COMEDY and no //, since the stamp says it and is the way home; then the page's name
   in its colour and one plain sentence saying what the page is, no hairline. On a desk all on
   one line; from 1080px down the stamp stands beside the name with the sentence under it. */
.topbar.lockup .brand { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 0.75rem; }
.topbar.lockup .brand .brand-home img { width: 42px; }
.topbar.lockup .brand .bar-what { margin: 0; padding: 0 0 0 0.1rem; border: 0; }
@media (max-width: 1080px) {
  .topbar.lockup .brand { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.1rem; column-gap: 0.6rem; }
  .topbar.lockup .brand .brand-home { grid-row: 1 / span 2; }
  .topbar.lockup .brand .here { grid-column: 2; align-self: end; }
  .topbar.lockup .brand .bar-what { grid-column: 2; align-self: start; padding: 0; }
}
@media (max-width: 620px) {
  .topbar.lockup .brand .brand-home img { width: 36px; }
  .topbar.lockup .brand .bar-what { padding: 0; }
  .topbar.lockup.is-scrolled .brand .brand-home img { width: 26px; }
}
/* Below 390px the longer sentences take two lines, so every page's keeps two lines' room and
   the bar is the same height on every page (Kevin, 2026-10-13, "BOTH HEADERS AND PAGES IN
   GENERAL NEED THE SAME DIMENSIONS"); it still folds away on scrolling. */
@media (max-width: 389px) {
  .topbar.lockup:not(.is-scrolled) .brand .bar-what { min-height: 2.6em; }
}

/* The page behind a popup holds still (Kevin, 2026-10-19, "when any popup is showing, main page
   can't scroll until popup is closed"): while any <dialog> is open the page can't scroll, and its
   scrollbar's room is kept, so nothing shifts sideways. The popup itself still scrolls. */
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
/* And opening one no longer jumps the page to the top: an open popup is pinned to the screen, where
   some were drawn at the top of the page (position: relative), and the browser scrolled up to it. */
dialog:modal { position: fixed; }
dialog { overscroll-behavior: contain; }

/* Every popup's title on one line (Kevin, 2026-10-19, "shrink How to sell your prop at a Studio
   Audience Show and every other popup header to 1 line"); topbar.js shrinks the words until they fit. */
dialog .lv-head h2, dialog .so-head h2, dialog h2.label { white-space: nowrap; overflow: hidden; min-width: 0; }
/* Bangers leans, so its last letter (the W of SHOW) pokes past the end of the line and the hidden overflow
   clipped it (Kevin, 2026-10-19, "W is cut off a little. fix"); room at the right keeps it whole. */
dialog .lv-head h2, dialog .so-head h2, dialog h2.label { padding-right: 0.2em !important; }
