/* TCBP clubhouse display — kiosk layout & slide styles.
   Uses only design-system tokens/classes from assets/colors_and_type.css. */

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-xl); /* 21" 1080p viewed at 2–4 m: base body text stays large */
}

body.idle {
  cursor: none;
}

/* Stage ------------------------------------------------------ */

#stage {
  position: relative;
  height: 100vh;
  width: 100vw;
}

.slide {
  position: absolute;
  inset: 0;
  padding: var(--sp-8) var(--sp-9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-5);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.slide--active {
  opacity: 1;
}

.slide-fallback-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  align-self: center;
}

/* Kiosk-scale typography ---------------------------------------
   DS classes (colors_and_type.css) are sized for ~50 cm desktop
   reading. Bumped here for a 21" 1080p screen viewed at 2–4 m. */

.slide .tcbp-eyebrow {
  font-size: 26px;
}

.slide .tcbp-display {
  font-size: 132px;
}

.slide .tcbp-h1 {
  font-size: 96px;
}

.slide .tcbp-h2 {
  font-size: 72px;
}

.slide .tcbp-h3 {
  font-size: 42px;
}

.slide .tcbp-h4 {
  font-size: 36px;
}

.slide .tcbp-lede {
  font-size: 40px;
}

.slide .tcbp-body {
  font-size: 32px;
}

.slide .tcbp-small {
  font-size: 26px;
}

.slide .tcbp-mono {
  font-size: 30px;
}

.slide .tcbp-caps {
  font-size: 30px;
}

/* Controls (discreet — testing affordance only) --------------- */

#controls {
  position: fixed;
  bottom: var(--sp-4);
  right: var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  opacity: 0.12;
  transition: opacity var(--dur-base) var(--ease-out);
  z-index: 10;
}

#controls:hover {
  opacity: 0.6;
}

#controls button {
  width: 48px;
  height: 48px;
  border-radius: var(--r-disc);
  background: var(--surface);
  color: var(--fg-3);
  border: var(--bw-hair) solid var(--border);
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pause indicator ---------------------------------------------- */

body.paused::after {
  content: "‖";
  position: fixed;
  left: var(--sp-4);
  bottom: var(--sp-4);
  font-size: var(--fs-xl);
  color: var(--fg-3);
  opacity: 0.3;
  z-index: 10;
  pointer-events: none;
}

/* Slide-type helper classes used by fragments ------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.card-grid .card {
  background: var(--tcbp-cream-100);
  border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.card-grid .card-number {
  font-family: var(--font-mono);
  color: var(--accent);
}

.card-grid .card-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--accent);
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.agenda-item {
  display: grid;
  grid-template-columns: 460px 1fr;
  column-gap: var(--sp-6);
  row-gap: var(--sp-1);
}

.agenda-date {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
}

.agenda-title {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
}

.agenda-detail {
  grid-column: 2;
  grid-row: 2;
  color: var(--fg-3);
}

/* .slide--deep — green hero block ------------------------------ */

.slide--deep {
  background: var(--surface-deep);
  color: var(--fg-on-dark);
}

.slide--deep .tcbp-h1,
.slide--deep .tcbp-h2,
.slide--deep .tcbp-display {
  color: var(--fg-on-dark);
}

.slide--deep .tcbp-lede,
.slide--deep .tcbp-small,
.slide--deep .tcbp-body,
.slide--deep .tcbp-mono {
  color: var(--fg-on-dark);
}

.slide--deep .court-line {
  flex: none;
  width: 120px;
  height: var(--bw-line);
  background: var(--tcbp-cream-50);
  border: none;
  margin: 0 0 var(--sp-3);
}

/* .slide--partner — one partner, hero treatment ----------------- */

.slide--partner {
  background: var(--tcbp-cream-50);
  align-items: center;
  text-align: center;
}

.slide--partner .partner-logo {
  max-height: 130px;
  max-width: 340px;
  object-fit: contain;
}

.slide--partner .tcbp-display {
  margin: var(--sp-4) 0;
}

.slide--partner .tcbp-lede {
  max-width: 1300px;
}

.slide--partner .court-line {
  flex: none;
  width: 120px;
  height: var(--bw-line);
  background: var(--accent);
  border: none;
  margin: var(--sp-4) 0;
}

.slide--partner .tcbp-mono {
  color: var(--accent);
}
