/* Theatrix design tokens and shared chrome.
   Single source of truth for colour, type and the app bar. Screens import this
   and add only what is unique to them. */

:root{
  /* brand ramp */
  --b-950:#071B33; --b-900:#0C2A4D; --b-800:#124070; --b-700:#1454A3;
  --b-600:#1668D6; --b-500:#2F84E8; --b-300:#8FBEF5; --b-100:#D7E7FB; --b-50:#EFF5FE;

  /* surfaces & ink */
  --bg:#E9EEF5; --surface:#FFFFFF; --surface-2:#F5F8FC; --surface-3:#EAF0F8;
  --ink:#121A25; --ink-2:#39485A; --muted:#64748B; --line:#D8E1EC; --line-2:#C3D0E0;

  /* status */
  --good:#0B8A5E; --good-bg:#DFF3EB;
  --warn:#B26A00; --warn-bg:#FBEEDA;
  --bad:#C0392F;  --bad-bg:#FAE3E1;

  /* categorical — CVD-validated in both themes */
  --c1:#1668D6; --c2:#C2410C; --c3:#0E8A72; --c4:#8B4FC9;
  --c1-bg:#DCE9FB; --c2-bg:#FAE4D9; --c3-bg:#D9EFE9; --c4-bg:#EDE2FA;

  /* seat states */
  --seat-free:#F5F8FC; --seat-free-line:#C3D0E0;
  --seat-mine:#0E8A72; --seat-held:#B26A00; --seat-sold:#C0392F;

  /* brand gold — from the Theatrix mark. Used for the logo and for the small
     number of things that are the brand speaking rather than the UI: VIP and
     premium seating areas, and the marquee accents. Blue stays the working
     colour of the interface. */
  --gold-300:#F2CE6B; --gold-500:#DFA93A; --gold-700:#B8801E;
  /* The wordmark's ink on a light surface — the slate from the supplied
     light-background artwork. On the navy app bar it is white instead. */
  --brand-ink:#3F4650;

  --shadow:0 1px 1px rgba(18,26,37,.05), 0 2px 8px -4px rgba(18,26,37,.18);
  --f-ui:"IBM Plex Sans","Segoe UI",Helvetica,Arial,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  color-scheme:light;
}

@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --b-950:#05101F; --b-900:#0A1B2E; --b-800:#123152; --b-700:#1A4E85;
  --b-600:#2E7FD6; --b-500:#4E96EE; --b-300:#7FB4F2; --b-100:#1B3757; --b-50:#152C46;
  --bg:#0C1219; --surface:#151D28; --surface-2:#1B2532; --surface-3:#212D3C;
  --ink:#E6EDF6; --ink-2:#B7C4D4; --muted:#8494A8; --line:#26313F; --line-2:#33404F;
  --good:#3DBB8B; --good-bg:#122E25;
  --warn:#D9A03C; --warn-bg:#332614;
  --bad:#E0736A;  --bad-bg:#341D1B;
  --c1:#4E96EE; --c2:#CF6B36; --c3:#1F9C84; --c4:#A276E0;
  --c1-bg:#152C46; --c2-bg:#33221A; --c3-bg:#0F2C28; --c4-bg:#241B38;
  --seat-free:#1B2532; --seat-free-line:#33404F;
  --seat-mine:#1F9C84; --seat-held:#D9A03C; --seat-sold:#E0736A;
  --gold-300:#F5D889; --gold-500:#E5B551; --gold-700:#C8912A;
  --brand-ink:#E6EDF6;
  --shadow:0 1px 1px rgba(0,0,0,.4), 0 3px 12px -6px rgba(0,0,0,.7);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --b-950:#05101F; --b-900:#0A1B2E; --b-800:#123152; --b-700:#1A4E85;
  --b-600:#2E7FD6; --b-500:#4E96EE; --b-300:#7FB4F2; --b-100:#1B3757; --b-50:#152C46;
  --bg:#0C1219; --surface:#151D28; --surface-2:#1B2532; --surface-3:#212D3C;
  --ink:#E6EDF6; --ink-2:#B7C4D4; --muted:#8494A8; --line:#26313F; --line-2:#33404F;
  --good:#3DBB8B; --good-bg:#122E25;
  --warn:#D9A03C; --warn-bg:#332614;
  --bad:#E0736A;  --bad-bg:#341D1B;
  --c1:#4E96EE; --c2:#CF6B36; --c3:#1F9C84; --c4:#A276E0;
  --c1-bg:#152C46; --c2-bg:#33221A; --c3-bg:#0F2C28; --c4-bg:#241B38;
  --seat-free:#1B2532; --seat-free-line:#33404F;
  --seat-mine:#1F9C84; --seat-held:#D9A03C; --seat-sold:#E0736A;
  --gold-300:#F5D889; --gold-500:#E5B551; --gold-700:#C8912A;
  --brand-ink:#E6EDF6;
  --shadow:0 1px 1px rgba(0,0,0,.4), 0 3px 12px -6px rgba(0,0,0,.7);
  color-scheme:dark;
}

*{box-sizing:border-box}
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--f-ui);
  font-size:13.5px; line-height:1.45; -webkit-font-smoothing:antialiased}
h1,h2,h3{margin:0}

/* ---------------------------------------------------------------- app bar */
.appbar{background:linear-gradient(180deg,var(--b-800),var(--b-900));
  border-bottom:3px solid var(--b-600)}
.appbar-in{max-width:1560px; margin:0 auto; display:flex; align-items:stretch; padding:0 18px}
/* Use the supplied slate lockup on light surfaces and white lockup on navy. */
.brand{display:flex; align-items:center; gap:10px; padding:4px 16px 4px 0; margin-right:8px;
  color:#fff}
.brand.on-light{color:var(--brand-ink)}
.tx-logo{display:block;flex:0 0 auto;line-height:0}
.tx-logo img{display:block;width:88px;height:auto}
.tx-logo-dark{display:none!important}
.appbar .brand .tx-logo-light,.mark .brand .tx-logo-light,:root[data-theme="dark"] .brand .tx-logo-light{display:none!important}
.appbar .brand .tx-logo-dark,.mark .brand .tx-logo-dark,:root[data-theme="dark"] .brand .tx-logo-dark{display:block!important}
.tx-section{display:block;font-family:var(--f-mono);font-size:9px;letter-spacing:.12em;
  color:var(--gold-300);font-weight:600;line-height:1.35;white-space:nowrap}
:where(.gatebox,.lockbox) .brand{flex-direction:column;gap:3px;padding:0;margin-right:0}
:where(.gatebox,.lockbox) .tx-logo img{width:132px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .brand .tx-logo-light{display:none!important}:root:not([data-theme="light"]) .brand .tx-logo-dark{display:block!important}}
.mainnav{display:flex; align-items:stretch; overflow-x:auto}
.mainnav a{text-decoration:none; color:#CADEF7; padding:11px 18px; border-bottom:3px solid transparent;
  margin-bottom:-3px; white-space:nowrap}
.mainnav a strong{display:block; font-size:14px; font-weight:600; color:#fff}
.mainnav a span{display:block; font-size:11px; color:#9CC0EA; line-height:1.25; margin-top:1px}
.mainnav a:hover{background:rgba(255,255,255,.07)}
.mainnav a[aria-current="page"]{background:var(--bg); border-bottom-color:var(--b-600)}
.mainnav a[aria-current="page"] strong{color:var(--b-600)}
.mainnav a[aria-current="page"] span{color:var(--muted)}
.appbar-right{margin-left:auto; display:flex; align-items:center; gap:8px; padding-left:16px}
.appbar-right .btn.ghost{border-color:rgba(255,255,255,.24); color:#fff;
  background:rgba(255,255,255,.08)}
.appbar-right .btn.ghost:hover{background:rgba(255,255,255,.18)}

/* --------------------------------------------------------------- site bar */
.sitebar{background:var(--surface); border-bottom:1px solid var(--line)}
.sitebar-in{max-width:1560px; margin:0 auto; padding:8px 18px; display:flex;
  align-items:center; gap:14px; flex-wrap:wrap}
.sitepick{display:flex; align-items:center; gap:8px; border:1px solid var(--line-2);
  background:var(--surface-2); border-radius:5px; padding:4px 10px}
.sitepick label{font-size:11.5px; color:var(--muted); font-weight:500}
.sitepick select{appearance:none; border:0; background:transparent; font-family:inherit;
  font-size:13px; font-weight:600; color:var(--b-600); cursor:pointer; padding-right:12px}
.crumb{font-size:12px; color:var(--muted)}

/* ---------------------------------------------------------------- buttons */
.btn{appearance:none; font:inherit; font-size:12.5px; font-weight:600; padding:6px 13px;
  border-radius:5px; cursor:pointer; border:1px solid var(--line-2);
  background:var(--surface-2); color:var(--ink)}
.btn:hover{background:var(--b-50); border-color:var(--b-300)}
.btn.primary{background:var(--b-600); border-color:var(--b-600); color:#fff}
.btn.primary:hover{background:var(--b-700); border-color:var(--b-700)}
.btn.danger{background:var(--bad-bg); border-color:var(--bad); color:var(--bad)}
.btn:disabled{opacity:.45; cursor:not-allowed}

/* ----------------------------------------------------------------- toasts */
.toast{position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(12px);
  background:var(--b-900); color:#fff; padding:10px 16px; border-radius:6px; font-size:13px;
  max-width:560px; box-shadow:0 8px 30px -8px rgba(0,0,0,.5); opacity:0; pointer-events:none;
  transition:opacity .18s ease, transform .18s ease; z-index:100; line-height:1.45}
.toast.show,.toast.on{opacity:1; transform:translateX(-50%) translateY(0)}

:focus-visible{outline:2px solid var(--b-500); outline-offset:2px}
@media (prefers-reduced-motion:reduce){ *{transition:none !important; animation:none !important} }

/* A fixed or flex element ignores the hidden attribute without this. */
[hidden]{display:none !important}
