/* Signage slideshow — full-bleed dark kiosk player.
   PLAYER ONLY. The hub never loads this file, so the tokens are declared locally
   (a deliberate, flagged duplication — the same way guild-flyer.css carries its own
   print palette). Obsidian/gold values from FRONTEND.md. The surface is always dark.
   All type uses clamp() + viewport units so a headline scales from a 1080p TV to a
   portrait tablet; the stage is 100vw × 100vh with overflow hidden (never a scrollbar). */

:root {
  --sign-bg: #0a0b10;
  --sign-surface: #13151d;
  --sign-text: #f4efdd;
  --sign-muted: #8b97a8;
  --sign-gold: #eeb44b;
  --sign-navy: #092e4c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--sign-bg);
}

.pl-sign-body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--sign-text);
}

/* Full-viewport stage; the deck container and each slide fill it absolutely so only
   the .is-active slide is visible (opacity/z-index cross-fade, never x-show display). */
.pl-sign-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--sign-bg);
}

.pl-sign-stage > * {
  position: absolute;
  inset: 0;
}

.pl-sign-slide {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vmin, 2.5rem);
  padding: clamp(2rem, 6vmin, 6rem);
  text-align: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
  background: radial-gradient(circle at 50% 30%, rgba(9, 46, 76, 0.55), var(--sign-bg) 70%);
}

.pl-sign-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.pl-sign-slide__img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.pl-sign-slide__title {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 1.05;
  color: var(--sign-text);
}

.pl-sign-slide__meta {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 3rem);
  color: var(--sign-gold);
}

.pl-sign-slide__body {
  max-width: 24ch;
  font-size: clamp(1.25rem, 3vw, 2.75rem);
  line-height: 1.4;
  color: var(--sign-text);
}

/* QR + "learn more" URL, stacked and centered — a member can scan or read the link. */
.pl-sign-slide__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5vmin, 1rem);
}

.pl-sign-slide__qr {
  width: clamp(120px, 22vmin, 320px);
  height: clamp(120px, 22vmin, 320px);
  padding: clamp(0.5rem, 1.5vmin, 1rem);
  background: #ffffff;
  border-radius: 12px;
}

.pl-sign-slide__qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pl-sign-slide__url {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--sign-gold);
  word-break: break-all;
}

/* Eyebrow over a gold meta line: "Next up" above a guild's next event, so the line reads
   as something with a date attached rather than as that guild's tagline. Mirrors __url-lead. */
.pl-sign-slide__meta-lead {
  display: block;
  margin-bottom: 0.15em;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sign-muted);
}

.pl-sign-slide__url-lead {
  display: block;
  margin-bottom: 0.15em;
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sign-muted);
}

/* ---- Player chrome (brand bug, countdown bar, position dots) --------------------
   Direct children of .pl-sign-player, NOT .pl-sign-stage, so the 300s deck swap never
   touches them. Fixed to the viewport and lifted above the slides. */
.pl-sign-brand {
  position: fixed;
  top: clamp(1rem, 2.5vmin, 2rem);
  left: clamp(1.25rem, 3vmin, 2.5rem);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.9;
}

.pl-sign-brand__mark {
  width: clamp(36px, 5vmin, 60px);
  height: clamp(36px, 5vmin, 60px);
  border-radius: 8px;
}

.pl-sign-brand__text {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: clamp(0.85rem, 1.6vmin, 1.35rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--sign-text);
  text-align: left;
}

.pl-sign-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 20;
  background: rgba(244, 239, 221, 0.12);
}

.pl-sign-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sign-gold);
}

.pl-sign-dots {
  position: fixed;
  bottom: clamp(1rem, 3vmin, 2.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vmin, 1rem);
}

.pl-sign-dot {
  width: clamp(12px, 1.6vmin, 20px);
  height: clamp(12px, 1.6vmin, 20px);
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(244, 239, 221, 0.28);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.pl-sign-dot.is-current {
  background: var(--sign-gold);
  transform: scale(1.25);
}

/* Event slides read as a headline over a big gold time. */
.pl-sign-slide--event .pl-sign-slide__title {
  font-size: clamp(2rem, 6vw, 5.5rem);
}

/* Branded holding slide, so an empty deck still shows the wordmark. */
.pl-sign-slide--holding {
  background: linear-gradient(160deg, var(--sign-navy), var(--sign-bg));
}


/* ---- Self-building slide variants -----------------------------------------------
   The generated blocks (classes / guild / calendar / voting / directory / teach / tour) get
   their kind class from _deck.html. Everything below sizes in clamp()/vmin so the stage
   stays 100vw x 100vh with no scrollbar, on a 1080p TV and on a portrait tablet alike. */

/* A class slide reads as a headline over a big gold day-and-time, like an event. */
.pl-sign-slide--class .pl-sign-slide__title {
  font-size: clamp(2rem, 6vw, 5.5rem);
}

/* One slide per guild: the guild name is the headline, its next meeting or class is the
   gold line under it, and the date sits below that. A guild with nothing coming up shows
   its own about copy instead, which needs more room than the 24ch body default. */
.pl-sign-slide--guild .pl-sign-slide__meta {
  max-width: 22ch;
}

.pl-sign-slide--guild .pl-sign-slide__body {
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.6vw, 2.25rem);
}

@media (min-aspect-ratio: 1 / 1) {
  .pl-sign-slide--guild .pl-sign-slide__meta {
    max-width: 32ch;
  }

  .pl-sign-slide--guild .pl-sign-slide__body {
    max-width: 52ch;
  }
}

/* The What's On list. Three columns per row — date, name, time — so the dates form a
   readable left edge and the times a right one, with the name given all the slack. The
   parent slide centers its text; rows override that, because a ragged centered list is
   the thing that made the old grid unreadable from across a room. */
.pl-sign-agenda {
  width: min(92vw, 1500px);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1.2vmin, 0.9rem);
  text-align: left;
}

.pl-sign-agenda__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(0.6rem, 2.5vmin, 2rem);
  padding-bottom: clamp(0.35rem, 1.2vmin, 0.9rem);
  border-bottom: 1px solid rgba(244, 239, 221, 0.12);
  font-size: clamp(1.1rem, 3vmin, 2.4rem);
  line-height: 1.2;
}

.pl-sign-agenda__row:last-child {
  border-bottom: none;
}

.pl-sign-agenda__when {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  color: var(--sign-gold);
  white-space: nowrap;
}

.pl-sign-agenda__title {
  color: var(--sign-text);
  overflow-wrap: anywhere;
}

.pl-sign-agenda__time {
  color: var(--sign-muted);
  font-size: 0.82em;
  white-space: nowrap;
}

/* The list is the content of this slide, so the headline and the QR give way to it. */
.pl-sign-slide--calendar {
  gap: clamp(0.5rem, 2vmin, 1.5rem);
}

.pl-sign-slide--calendar .pl-sign-slide__title {
  font-size: clamp(1.75rem, 4.5vw, 4rem);
}

.pl-sign-slide--calendar .pl-sign-slide__qr {
  width: clamp(90px, 14vmin, 200px);
  height: clamp(90px, 14vmin, 200px);
}
