/* Speakeasy Tables widget, v2 (2026-11-04: floors; v1 2026-10-28). Source of truth: ~/.claude/skills/speakeasy-tables-widget/assets/.
   The look is Speakeasy's guest-facing event page (speakeasygo.com/event/..., measured 2026-10-28), NOT the host
   site's: it must read the same on every venue site. Inter for text, Geist Mono for small caps labels, pill buttons,
   glass cards with 10px corners, and the night's own accent on the one primary button, as Speakeasy does.
   Needs: https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Geist+Mono:wght@500&display=swap
   Everything is scoped under .se-tables or prefixed se-, so the host site's CSS cannot leak in and this cannot leak out. */

.se-tables, .se-pill {
  --se-ink: #ffffff;
  --se-mute: #a1a1a1;
  --se-card: rgba(39, 39, 39, .5);            /* Speakeasy's card and glass pill */
  --se-card-solid: #181818;
  --se-line: rgba(255, 255, 255, .12);
  --se-glass-line: rgba(255, 255, 255, .5);
  --se-book: #e4e4e7;                         /* the grey "Book" pill on Speakeasy's table list */
  --se-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --se-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --se-radius: 10px;
  --se-ease: cubic-bezier(.16, 1, .3, 1);
}

/* The night's accent, set by the widget per selected night; #8c0c34 is Speakeasy's default event accent. */
.se-tables { --se-accent: #8c0c34; }

/* ---------- pills: usable anywhere on the host site too (ticket buttons) ---------- */
.se-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9999px; border: 1px solid transparent;
  font: 600 14px/1 var(--se-sans); letter-spacing: 0; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  height: 40px; padding: 0 22px; transition: filter .2s, background .2s, color .2s, border-color .2s, transform .1s; -webkit-font-smoothing: antialiased; }
.se-pill:active { transform: scale(.98); }
.se-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.se-pill--accent { background: var(--se-accent, #8c0c34); color: #fff; }             /* Speakeasy "BUY NOW" */
/* the accent is INHERITED (widget root, or a style= on the button): never declare --se-accent on .se-pill itself,
   or the night's colour cannot reach it. */
.se-pill--accent:hover { filter: brightness(1.18); }
.se-pill--outline { background: transparent; color: #fff; border-color: #fff; height: 42px; } /* "BOOK NOW" */
.se-pill--outline:hover { background: #fff; color: #111; }
.se-pill--light { background: #fff; color: #111; border-color: #d8d8d8; }              /* "LOG IN" */
.se-pill--light:hover { background: #f1f1f1; }
.se-pill--glass { background: var(--se-card); color: #fff; border-color: var(--se-glass-line); height: 34px; padding: 0 16px;
  font: 400 12px/1 var(--se-sans); text-transform: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } /* "Open Map" */
.se-pill--glass:hover { border-color: #fff; }
.se-pill--book { background: var(--se-book); color: #000; height: 32px; padding: 0 16px; font: 400 12px/1 var(--se-sans); text-transform: none; } /* "Book" */
.se-pill--book:hover { background: #fff; }
.se-pill--wide { width: 100%; }
.se-pill--sm { height: 34px; padding: 0 16px; font-size: 12px; }

/* "Powered by" mark, for use beside a ticket button outside the widget too */
.se-powered { display: inline-flex; align-items: center; gap: 7px; font: 400 11px/1 var(--se-sans); color: var(--se-mute); text-decoration: none; }
.se-powered img { height: 12px; width: auto; display: block; opacity: .85; }

/* ---------- the widget ---------- */
.se-tables { font: 400 14px/1.5 var(--se-sans); color: var(--se-ink); -webkit-font-smoothing: antialiased; text-align: left; }
.se-tables *, .se-tables *::before, .se-tables *::after { box-sizing: border-box; }
.se-tables button { font: inherit; color: inherit; }
.se-tables [hidden] { display: none !important; }
/* a host site's heading rules (uppercase display faces) must not reach in */
.se-tables h3 { text-transform: none; font-family: var(--se-sans); }

.se-step { display: flex; align-items: baseline; gap: 10px; margin: 40px 0 14px; font: 500 12px/1 var(--se-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--se-ink); }
.se-step:first-child { margin-top: 0; }
.se-step span { color: var(--se-mute); }

/* 01 nights */
.se-nights { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.se-nights::-webkit-scrollbar { display: none; }
.se-nights button { text-align: left; background: var(--se-card); border: 1px solid var(--se-line); border-radius: var(--se-radius); padding: 14px 16px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; }
.se-nights button:hover { border-color: var(--se-glass-line); }
.se-nights span { display: block; font: 500 12px/1 var(--se-mono); text-transform: uppercase; color: var(--se-mute); margin-bottom: 8px; }
.se-nights b { font: 600 16px/1.2 var(--se-sans); }
.se-nights button[aria-selected="true"] { background: #fff; color: #111; border-color: #fff; }
.se-nights button[aria-selected="true"] span { color: var(--se-accent); }

/* 02 floors (only when a venue has more than one 3D floor): glass pills, the picked one white like a picked night */
.se-floors { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.se-floors .se-pill--glass[aria-selected="true"] { background: #fff; color: #111; border-color: #fff; }

/* 02 the map and its panel */
.se-map { display: grid; grid-template-columns: 1fr 340px; gap: 8px; }
.se-stage { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--se-radius); border: 1px solid var(--se-line);
  background: radial-gradient(ellipse at 50% 45%, #1d1d1d, #000 70%); cursor: grab; touch-action: pan-y; }
.se-stage:active { cursor: grabbing; }
.se-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--se-ease); }
.se-tables.is-ready .se-stage canvas { opacity: 1; }
.se-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s var(--se-ease); }
.se-tables.is-ready .se-poster { opacity: 0; pointer-events: none; }
.se-pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.se-pin { position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate(-50%, -100%); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--se-glass-line); border-radius: 9999px; background: rgba(20, 20, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; padding: 5px 10px; font: 500 12px/1 var(--se-sans) !important; transition: background .2s, border-color .2s, color .2s, opacity .3s; }
.se-pin:hover, .se-pin.is-hot { background: #fff; color: #111 !important; border-color: #fff; }
.se-pin.is-on { background: var(--se-accent); border-color: var(--se-accent); color: #fff; }
.se-pin.is-dim { opacity: .35; }
.se-pin.is-back, .se-pin.is-crowded { opacity: 0; pointer-events: none; }
/* the map's own mark: Speakeasy's logo, small and faint in the top-left corner (Dylan 2026-10-28) */
.se-mark { position: absolute; left: 14px; top: 13px; z-index: 3; display: block; opacity: .45; transition: opacity .25s; }
.se-mark img { height: 14px; width: auto; display: block; }
.se-mark:hover, .se-mark:focus-visible { opacity: .9; }
.se-hint { position: absolute; left: 14px; bottom: 14px; margin: 0; z-index: 3; color: var(--se-mute); font: 500 11px/1 var(--se-mono); text-transform: uppercase; transition: opacity .6s; }
.se-hint.is-gone { opacity: 0; }
.se-reset { position: absolute; right: 12px; bottom: 10px; z-index: 3; }

/* the picked-table bar (phones): rises inside the map with the next step on it */
.se-bar { display: none; }

.se-panel { background: var(--se-card); border: 1px solid var(--se-line); border-radius: var(--se-radius); padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.se-label { margin: 0; font: 500 12px/1.4 var(--se-mono); text-transform: uppercase; color: var(--se-mute); }
.se-hint-text { margin: 8px 0 14px; color: var(--se-mute); }
.se-panel h3 { font: 500 32px/1.05 var(--se-sans); letter-spacing: -.01em; margin: 10px 0 16px; }
.se-panel dl { margin: 0 0 14px; }
.se-panel dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--se-line); }
.se-panel dt { color: var(--se-mute); }
.se-panel dd { margin: 0; font-weight: 500; }
.se-note { color: var(--se-mute); margin: 0 0 18px; flex: 1; }
.se-back { margin-top: 10px; align-self: flex-start; }
.se-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.se-areas li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 14px; border-radius: var(--se-radius);
  background: rgba(0, 0, 0, .35); border: 1px solid transparent; transition: border-color .2s; }
.se-areas li.is-on { border-color: var(--se-accent); }
.se-area { grid-column: 1; grid-row: 1 / span 2; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.se-area b { display: block; font: 600 15px/1.2 var(--se-sans); }
.se-area em { display: block; font-style: normal; font-size: 12px; color: var(--se-mute); margin-top: 4px; }
.se-min { grid-column: 2; font-size: 12px; color: var(--se-mute); text-align: right; }
.se-areas .se-pill--book { grid-column: 2; justify-self: end; }

/* 03 matrix */
.se-matrix-wrap { overflow-x: auto; border-radius: var(--se-radius); border: 1px solid var(--se-line); background: var(--se-card); }
.se-matrix { width: 100%; min-width: 720px; border-collapse: collapse; }
.se-matrix caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.se-matrix th, .se-matrix td { padding: 9px 12px; border-bottom: 1px solid var(--se-line); text-align: center; }
.se-matrix tbody tr:last-child > * { border-bottom: 0; }
.se-matrix thead th { padding: 16px 12px 14px; vertical-align: bottom; font-weight: 400; }
.se-matrix thead th span { display: block; font: 500 12px/1 var(--se-mono); text-transform: uppercase; color: var(--se-mute); }
.se-matrix thead th b { display: block; font: 600 14px/1.2 var(--se-sans); margin-top: 6px; }
.se-matrix thead th:first-child { font: 500 12px/1 var(--se-mono); text-transform: uppercase; color: var(--se-mute); }
.se-matrix thead th:first-child, .se-matrix tbody th { text-align: left; position: sticky; left: 0; background: var(--se-card-solid); z-index: 1; }
.se-matrix tbody th button { background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.se-matrix tbody th b { font: 600 16px/1 var(--se-sans); }
.se-matrix tbody th span { font-size: 12px; color: var(--se-mute); }
.se-matrix tbody th button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.se-matrix .is-col { background: rgba(255, 255, 255, .04); }
.se-matrix thead th.is-col span { color: #fff; }
.se-matrix .is-col .se-pill--book { background: var(--se-accent); color: #fff; }
.se-matrix tr.se-floor-row th { text-align: left; position: static; padding: 14px 12px 8px; background: var(--se-card-solid);
  font: 500 12px/1 var(--se-mono); text-transform: uppercase; color: var(--se-mute); }
.se-matrix tr.is-row > * { background: rgba(255, 255, 255, .07); }

.se-foot { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 14px 0 0; font: 400 11px/1 var(--se-sans); color: var(--se-mute); }
.se-foot a { display: inline-flex; }
.se-foot img { height: 13px; width: auto; display: block; opacity: .85; transition: opacity .2s; }
.se-foot a:hover img { opacity: 1; }

@media (max-width: 860px) {
  .se-map { grid-template-columns: 1fr; }
  .se-stage { aspect-ratio: 1/1; }
  .se-nights { grid-auto-columns: max-content; }
  .se-nights button { padding: 12px 14px; }
  .se-nights b { font-size: 14px; }
  .se-step { margin-top: 32px; }
  .se-reset { top: 10px; bottom: auto; }
  .se-bar { display: flex; position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(16, 16, 16, .86); border: 1px solid var(--se-glass-line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(calc(100% + 14px)); transition: transform .45s var(--se-ease); }
  .se-bar.is-on { transform: none; }
  .se-bar b { display: block; font: 600 16px/1.1 var(--se-sans); }
  .se-bar span { display: block; font-size: 12px; color: var(--se-mute); margin-top: 3px; }
  .se-bar .se-pill { flex: none; }
  .se-tables:has(.se-bar.is-on) .se-hint { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .se-tables *, .se-pill { transition: none !important; }
}
/* desktop: the panel never grows taller than the map; a long section list scrolls inside it (LowBrau, 7 sections) */
@media (min-width: 861px) {
  .se-panel { height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: thin; }
}

/* v4: sold tables. Grey on the map, a grey Sold pin, a plain Sold word where a Book button would be. */
.se-pin.is-sold { background: #2a2a2a; border-color: #555; color: #bdbdbd !important; font-size: 10px !important; letter-spacing: .06em; text-transform: uppercase; }
.se-pin.is-sold.is-on { background: #555; border-color: #777; color: #fff !important; }
.se-sold { grid-column: 2; justify-self: end; font: 600 11px/1 var(--se-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--se-mute); }
.se-matrix tr.is-sold th b, .se-matrix tr.is-sold th span { opacity: .5; }
