/* Event Bucket TV — Cobalt Triple lobby (Design 1). Scoped to .eb-lobby,
   which lives INSIDE #tvMain. JavaScript owns scheduling; CSS never starts
   an independent rotation timer. Tokens match assets/css/event-bucket-cobalt.css. */
.eb-lobby, .eb-lobby * { box-sizing: border-box; }
.eb-lobby {
  --eb-cobalt: #174cdb;
  --eb-cobalt-hover: #103bb2;
  --eb-paper: #f3f7fc;
  --eb-ink: #112347;
  --eb-muted: #526582;
  --eb-line: #d4dfef;
  --eb-tint: #eaf1ff;
  --eb-gap: clamp(8px, .7vw, 14px);
  --eb-radius: 8px;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--eb-ink);
  font-family: "Public Sans", "Segoe UI", system-ui, Arial, sans-serif;
  background: var(--eb-paper);
}
.eb-lobby [hidden] { display: none !important; }

/* The kiosk's own stage chrome gives way to the three cards. */
body[data-eb-lobby="triple"] #tvDisplay .tv-main { background: #f3f7fc !important; display: flex; }
body[data-eb-lobby="triple"] #tvDisplay .tv-progress-wrap,
body[data-eb-lobby="triple"] #tvDisplay .tv-counter { display: none !important; }
body[data-eb-lobby="triple"] #tvDisplay .tv-brand-name em { font-weight: 600; opacity: .95; }

.eb-grid {
  flex: 1 1 auto; min-height: 0; min-width: 0; display: grid;
  grid-template-columns: repeat(var(--eb-columns, 3), minmax(0, 1fr));
  gap: var(--eb-gap); padding: var(--eb-gap) var(--eb-gap) 0;
}
.eb-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--eb-line); border-radius: var(--eb-radius); overflow: hidden; background: #fff; }
.eb-artwork {
  flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; align-items: center;
  justify-content: center; overflow: hidden; background: #fff; container-type: size;
}
/* Legacy fallback contains the entire image even without container units. */
.eb-letter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.eb-letter img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* Exact 8.5 × 11 canvas, bounded by BOTH available width and available height. */
@supports (width: 1cqw) {
  .eb-letter { width: min(100cqw, calc(100cqh * 17 / 22)); height: auto; aspect-ratio: 17 / 22; flex: none; }
}
/* Compact info strip: the flyer is the content, so the strip takes only what
   a readable title, date badge and scannable QR need. */
.eb-info { flex: 0 0 auto; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(8px, .7vw, 14px); align-items: center; padding: clamp(6px, .55vw, 11px) clamp(8px, .7vw, 14px); }
.eb-date { min-width: clamp(46px, 4.8vw, 92px); align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 6px; background: var(--eb-cobalt); border-radius: 6px; color: #fff; }
.eb-month { font-weight: 750; font-size: clamp(11px, .95vw, 20px); text-transform: uppercase; letter-spacing: .02em; }
.eb-day { font-weight: 800; font-size: clamp(22px, 2.3vw, 44px); line-height: 1.06; font-variant-numeric: tabular-nums; }
.eb-copy { min-width: 0; }
.eb-title { margin: 0 0 4px; font-size: clamp(15px, 1.52vw, 29px); font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; color: var(--eb-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eb-location { margin: 0; color: var(--eb-muted); font-size: clamp(12px, 1.15vw, 22px); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-time { display: block; margin-top: 3px; font-size: clamp(11px, 1.03vw, 20px); color: var(--eb-muted); }
.eb-qr { display: flex; align-items: center; flex-direction: column; gap: 3px; color: var(--eb-ink); text-decoration: none; }
.eb-qr img { display: block; width: clamp(48px, 4.9vw, 94px); height: clamp(48px, 4.9vw, 94px); object-fit: contain; background: #fff; padding: 2px; }
.eb-qr span { font-size: clamp(10px, .8vw, 16px); white-space: nowrap; }
.eb-progress { flex: 0 0 5px; margin: 0 clamp(8px, .7vw, 14px) clamp(6px, .5vw, 9px); overflow: hidden; border-radius: 5px; background: #dce6f5; }
.eb-progress span, .eb-takeover-track span { display: block; width: 100%; height: 100%; background: var(--eb-cobalt); transform: scaleX(0); transform-origin: left; }
.eb-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 30px; text-align: center; color: var(--eb-muted); background: var(--eb-tint); }
.eb-placeholder strong { color: var(--eb-cobalt); font-size: clamp(24px, 3vw, 56px); line-height: 1.1; overflow-wrap: anywhere; }
.eb-placeholder p { font-size: clamp(16px, 1.7vw, 32px); margin: 0; }
.eb-placeholder .eb-placeholder-extra { font-size: clamp(14px, 1.3vw, 26px); color: var(--eb-muted); }
/* The footer takes no height on the TV (the ticker already carries the board
   URL); the pause control floats in the corner and appears on hover/focus. */
.eb-footer { flex: 0 0 0; height: 0; min-height: 0; overflow: visible; display: block; padding: 0; color: var(--eb-muted); font-size: clamp(10px, .8vw, 16px); }
.eb-footer .eb-footer-left, .eb-footer .eb-footer-right { display: none; }
.eb-lobby button { border: 1px solid var(--eb-line); border-radius: 4px; color: var(--eb-ink); background: #fff; padding: 4px 9px; font: inherit; font-size: inherit; cursor: pointer; }
.eb-lobby .eb-pause { position: absolute; right: 10px; bottom: 10px; z-index: 5; opacity: 0; transition: opacity .2s; }
.eb-lobby .eb-pause:focus-visible, .eb-lobby:hover .eb-pause, .eb-lobby .eb-pause[aria-pressed="true"] { opacity: 1; }
.eb-lobby :focus-visible { outline: 3px solid var(--eb-cobalt); outline-offset: 3px; }

/* Full-page takeover: a separate screen, never a fourth card or a banner.
   Fixed so it also covers the kiosk header/ticker/next-up bars. */
.eb-takeover { position: fixed; inset: 0; z-index: 150; overflow: hidden; background: var(--eb-cobalt); color: #fff; }
body.eb-lobby-fullpage #tvDisplay > .tv-bar,
body.eb-lobby-fullpage #tvDisplay > .tv-ticker-wrap,
body.eb-lobby-fullpage #tvDisplay > .tv-nextup-bar,
body.eb-lobby-fullpage #tvDisplay > .tv-progress-wrap,
.eb-lobby.eb-fullpage > .eb-grid, .eb-lobby.eb-fullpage > .eb-footer { visibility: hidden; }
.eb-takeover-content { width: 100%; height: 100%; display: flex; }
.eb-takeover-content > * { flex: 1 1 auto; min-width: 0; min-height: 0; }
.eb-full-message { height: 100%; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5vw; align-items: center; padding: clamp(30px, 6vw, 130px); }
.eb-full-kicker { font-size: clamp(20px, 2vw, 44px); font-weight: 750; margin: 0 0 24px; }
.eb-full-title { font-size: clamp(40px, 6vw, 124px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 30px; overflow-wrap: anywhere; }
.eb-full-body { font-size: clamp(20px, 2.3vw, 50px); line-height: 1.35; max-width: 32em; margin: 0; }
.eb-full-message .eb-qr { color: inherit; font-size: 22px; }
.eb-full-message .eb-qr img { width: clamp(110px, 15vw, 300px); height: clamp(110px, 15vw, 300px); padding: 12px; }
.eb-full-message .eb-qr span { font-size: clamp(16px, 1.6vw, 32px); margin-top: 12px; }
.eb-takeover[data-kind="business-spotlight"] { background: #0a0a0a; }
.eb-takeover[data-kind="psa"] { background: var(--eb-tint); color: var(--eb-ink); }
.eb-full-media { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #08111f; display: block; }
.eb-takeover-track { position: absolute; height: 5px; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, .35); z-index: 2; }
.eb-takeover-track span { background: #fff; }
.eb-takeover[data-kind="psa"] .eb-takeover-track { background: #cddcff; }
.eb-takeover[data-kind="psa"] .eb-takeover-track span { background: var(--eb-cobalt); }

/* Native kiosk takeovers rendered inside the layer (certificates, promo, PSA) */
.eb-takeover .spotlight-slide { width: 100%; height: 100%; flex: 1 1 auto; }
.eb-takeover .promo-slide { width: 100%; height: 100%; opacity: 1; }
/* Staff slide decks (dashboard Slides): the slide fills the screen, letterboxed when its shape differs */
.eb-slide { width: 100%; height: 100%; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; background: #000; }
.eb-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.eb-slide .eb-placeholder { color: #fff; text-align: center; }
.eb-psa { width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 40px); padding: clamp(16px, 2vw, 40px); align-items: stretch; }
.eb-psa-media { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius); overflow: hidden; container-type: size; }
.eb-psa-media.eb-psa-video { background: #000; }
.eb-psa-media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
@supports (width: 1cqw) {
  .eb-psa-media img { width: min(100cqw, calc(100cqh * 17 / 22)); height: auto; aspect-ratio: 17 / 22; }
}
.eb-psa-media iframe, .eb-psa-media video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.eb-psa-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 1.4vh, 24px); padding: clamp(8px, 1vw, 24px); }
.eb-psa-kicker { color: var(--eb-cobalt); font-weight: 750; font-size: clamp(16px, 1.5vw, 34px); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.eb-psa-title { color: var(--eb-ink); font-weight: 800; font-size: clamp(28px, 3.6vw, 80px); line-height: 1.06; letter-spacing: -.03em; margin: 0; overflow-wrap: anywhere; }
.eb-psa-meta { color: var(--eb-ink); font-size: clamp(16px, 1.7vw, 38px); line-height: 1.35; margin: 0; }
.eb-psa-meta .eb-muted { color: var(--eb-muted); }
.eb-psa-copy .eb-qr { align-self: flex-start; margin-top: clamp(6px, 1vh, 16px); }
.eb-psa-copy .eb-qr img { width: clamp(100px, 12vw, 260px); height: clamp(100px, 12vw, 260px); border: 1px solid var(--eb-line); border-radius: 6px; }
.eb-psa-copy .eb-qr span { font-size: clamp(14px, 1.2vw, 26px); }
.eb-psa.eb-psa-full { grid-template-columns: minmax(0, 1fr); }

/* ── Event Bucket promo ("Got an Event? Put it in the Bucket!") ──
   Platform palette and distance-readable type. #tvDisplay outranks the
   kiosk's own .promo-* rules, so this applies in triple AND single mode. */
#tvDisplay .promo-slide { background: #f3f7fc; color: #112347; font-family: "Public Sans", "Segoe UI", system-ui, Arial, sans-serif; }
#tvDisplay .promo-slide::before { display: none; }
#tvDisplay .promo-deco { background: #174cdb; opacity: .06; }
#tvDisplay .promo-deco-1 { width: 38vh; height: 38vh; top: -12vh; right: 30vw; }
#tvDisplay .promo-deco-2 { width: 26vh; height: 26vh; bottom: -8vh; left: 4vw; }
#tvDisplay .promo-left { padding: clamp(24px, 4.5vh, 64px) clamp(32px, 4.5vw, 88px); gap: clamp(14px, 2.6vh, 34px); min-height: 0; overflow: hidden; }
#tvDisplay .promo-headline { font-size: clamp(2.4rem, 4.7vw, 6rem); font-weight: 800; color: #112347; line-height: 1.02; letter-spacing: -.035em; }
#tvDisplay .promo-headline em { color: #174cdb; }
#tvDisplay .promo-features { gap: clamp(10px, 2vh, 22px); }
#tvDisplay .promo-feature { font-size: clamp(1.25rem, 2.15vw, 2.75rem); line-height: 1.22; color: #112347; gap: clamp(12px, 1.4vw, 24px); font-weight: 500; }
#tvDisplay .promo-feature strong { font-weight: 800; }
#tvDisplay .promo-feature-icon { width: clamp(44px, 6.4vh, 80px); height: clamp(44px, 6.4vh, 80px); background: #174cdb; border: 0; border-radius: 12px; }
#tvDisplay .promo-step-num { font-size: clamp(1.3rem, 3.2vh, 2.3rem); color: #fff; font-weight: 800; }
#tvDisplay .promo-hl { color: #174cdb; font-weight: 800; }
#tvDisplay .promo-url-box { background: #fff; border: 3px solid #174cdb; border-radius: 14px; padding: clamp(10px, 1.8vh, 20px) clamp(18px, 2.2vw, 34px); }
#tvDisplay .promo-url-label { font-size: clamp(.9rem, 1.2vw, 1.45rem); color: #526582; letter-spacing: .06em; }
#tvDisplay .promo-url-text { font-size: clamp(1.5rem, 2.6vw, 3.3rem); color: #174cdb; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
#tvDisplay .promo-right { flex: 0 0 clamp(340px, 36vw, 660px); background: #174cdb; color: #fff; gap: clamp(14px, 2.6vh, 32px); padding: clamp(24px, 4vh, 56px) clamp(20px, 2.5vw, 48px); }
#tvDisplay .promo-brand-text { font-size: clamp(2rem, 3.8vw, 4.6rem) !important; color: #fff; line-height: 1.05; letter-spacing: -.03em; margin: 0; }
#tvDisplay .promo-brand-text em { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .55); text-underline-offset: .12em; }
#tvDisplay .promo-brand-tm { font-size: clamp(1rem, 1.5vw, 1.8rem) !important; color: rgba(255, 255, 255, .85); margin: 0 0 clamp(8px, 2vh, 24px); }
#tvDisplay .promo-qr-wrap { background: #fff; border-radius: 18px; padding: clamp(14px, 2vh, 24px); box-shadow: 0 16px 48px rgb(6 20 60 / 30%); }
#tvDisplay .promo-qr-wrap img { width: clamp(220px, 36vh, 460px) !important; height: clamp(220px, 36vh, 460px) !important; border-radius: 6px; }
#tvDisplay .promo-qr-scan { font-size: clamp(1rem, 1.6vw, 1.9rem) !important; color: #112347; font-weight: 800; letter-spacing: .04em; margin-top: clamp(8px, 1.4vh, 14px); }
@media (max-width: 900px) {
  #tvDisplay .promo-right { flex: 0 0 auto; }
  #tvDisplay .promo-qr-wrap img { width: 160px !important; height: 160px !important; }
}

.eb-arrive { animation: eb-arrive .22s ease-out; }
@keyframes eb-arrive { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .eb-arrive { animation: none; } }

/* Phones stack all THREE slots. Do not keep invisible, offscreen carousel slots. */
@media (max-width: 760px) and (orientation: portrait) {
  body[data-eb-lobby="triple"] #tvDisplay { height: auto; min-height: 100dvh; overflow: auto; }
  body[data-eb-lobby="triple"] #tvDisplay .tv-main { height: auto !important; flex: none; overflow: visible; }
  .eb-lobby { height: auto; min-height: 60vh; overflow: visible; }
  .eb-grid { display: grid; grid-template-columns: 1fr; flex: none; }
  .eb-artwork { flex: none; height: auto; container-type: normal; }
  .eb-letter { width: 100%; height: auto; aspect-ratio: 17 / 22; }
  .eb-title { font-size: 21px; }
  .eb-location { font-size: 16px; }
  .eb-qr img { width: 72px; height: 72px; }
  .eb-footer { height: auto; padding: 12px; display: flex; justify-content: flex-end; }
  .eb-lobby .eb-pause { position: static; opacity: 1; }
  .eb-full-message { grid-template-columns: 1fr; text-align: center; padding: 30px; gap: 20px; }
  .eb-full-title { font-size: 40px; }
  .eb-full-kicker { margin-bottom: 12px; }
  .eb-psa { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
}
@media (max-height: 750px) and (min-width: 761px) {
  .eb-info { padding: 7px 10px; }
  .eb-title { font-size: clamp(16px, 1.4vw, 23px); }
  .eb-location { font-size: 15px; }
  .eb-time { font-size: 13px; }
  .eb-qr img { width: 62px; height: 62px; }
  .eb-date { min-width: 54px; }
  .eb-day { font-size: 32px; }
  .eb-month { font-size: 14px; }
  .eb-progress { margin-bottom: 6px; flex-basis: 4px; }
}
/* Large displays using an actual 4K CSS viewport need proportionate text/QR sizing. */
@media (min-width: 2400px) {
  .eb-title { font-size: 1.52vw; }
  .eb-location { font-size: 1.22vw; }
  .eb-time { font-size: 1.03vw; }
  .eb-month { font-size: 1.1vw; }
  .eb-day { font-size: 2.7vw; }
  .eb-date { min-width: 5.6vw; }
  .eb-info { padding: .8vw; gap: .8vw; }
  .eb-qr img { width: 5.4vw; height: 5.4vw; }
  .eb-qr span, .eb-footer { font-size: .85vw; }
  .eb-full-message .eb-qr img { width: 15vw; height: 15vw; }
  .eb-progress { flex-basis: .3vw; }
}

/* Weekday line on the date block: only the Poster Wall layout (tv/eb-tv-poster.css) shows it. */
.eb-weekday { display: none; }
