/* ─────────────────────────────────────────────────────────────────────────────
   Agenda board — ZIS_Signage_Agenda.pdf page 1

   Positions are the measured values from the source deck. Note the column
   model: SESSION TITLE is left-aligned on x 191.42, while TIME and DESTINATION
   are *centred* on their axes — in the deck the header and the value below it
   share an axis exactly, in both columns. Room names vary in length, so the
   centred columns are load-bearing, not decorative.
   ───────────────────────────────────────────────────────────────────────────── */

/* "Agenda Overview" — ZEISS Head Bold + Regular at 90px, baseline 128.9. */
.agenda-headline {
  left: 64.16px;
  top: 64px;
  font-weight: 400;
  letter-spacing: normal;
  /* The deck's word gap is 3.6px wider than the font's own space. */
  word-spacing: 3.6px;
}

/* ── Column headers ─────────────────────────────────────────────────────── */

.agenda__head {
  position: absolute;
  left: 0;
  right: 0;
  top: 193.27px; /* baseline 210.57 */
  z-index: 2;
  height: 24px;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--type-colhead);
  line-height: 24px;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.agenda__head span {
  position: absolute;
  white-space: nowrap;
}

.agenda__head-title { left: var(--col-title-x); }
.agenda__head-time  { left: var(--col-time-axis); transform: translateX(-50%); }
.agenda__head-dest  { left: var(--col-dest-axis); transform: translateX(-50%); }

/* ── Rows ───────────────────────────────────────────────────────────────── */

/* Every row measure hangs off --row-scale, which the board sets below 1 when
   it lists more than the deck's seven (a Large display takes ten): rows,
   tiles and type slim down together so the list fills the same space. */
.agenda__rows {
  --row-scale: 1;
  --row-h: calc(100px * var(--row-scale));
  --row-gap: calc(12.26px * var(--row-scale));
  --tile-size: calc(100px * var(--row-scale));
  --type-row-title: calc(28px * var(--row-scale));
  --type-row-meta: calc(24px * var(--row-scale));
  /* Time and stage are what people look for, so they give up less size than
     the rest: never below 24px (0.86), even with ten rows. */
  --type-row-time: calc(28px * max(var(--row-scale), 0.86));
  position: absolute;
  left: var(--margin-left);
  top: var(--row-first-top);
  width: var(--content-w);
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 2;
}

.row {
  position: relative;
  height: var(--row-h);
  margin-bottom: var(--row-gap);
  /* Frosted band: brightest at the left, fading toward the right edge. */
  background: var(--row-wash);
  animation: row-in 420ms var(--ease) both;
}

.row--highlight {
  background: var(--row-wash-highlight);
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .row { animation: none; }
}

.row .segment-tile {
  position: absolute;
  left: 0;
  top: 0;
}

/* The two text lines are placed from the top rather than centred, because the
   deck puts their baselines on 43.7 and 71.8 within the 100px band. */
.row__text {
  position: absolute;
  left: 130.92px; /* 191.42 − 60.5 */
  top: 0;
  width: 1110px;  /* stops short of the TIME value, which starts at 1329 */
  padding-top: calc(17.5px * var(--row-scale));
}

.row__title {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--type-row-title);
  line-height: calc(34px * var(--row-scale));
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__speakers {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--type-row-meta);
  line-height: calc(27px * var(--row-scale)); /* puts the second baseline on 71.8 */
  color: rgba(255, 255, 255, 0.93);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Centred on their axes, and vertically centred in the band (baseline 56.2). */
.row__time,
.row__dest {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--type-row-time);
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
}

.row__time { left: 1305.2px; } /* 1365.7 − 60.5 */
/* A long stage name ("Electronics & Semiconductor Info Desk") wraps onto a
   second line instead of running into the time and past the row's end:
   360px keeps it clear of both on the 1607.3 axis. */
.row__dest {
  left: 1546.8px; /* 1607.3 − 60.5 */
  width: max-content;
  max-width: 360px;
  white-space: normal;
  text-wrap: balance; /* "Aerospace & Defense / Info Desk", not a lone "Desk"; older panels just wrap */
  text-align: center;
  line-height: 1.1;
}

/* A session that has already started keeps its slot for the grace window but
   steps back visually, so the next thing to go to is the obvious one. */
.row--running .row__title,
.row--running .row__time,
.row--running .row__dest {
  color: rgba(255, 255, 255, 0.72);
}

.row--running .row__speakers {
  color: rgba(255, 255, 255, 0.6);
}

/* Breaks have no segment, so the tile carries the break icon on ZEISS blue. */
.row--break .row__title {
  font-weight: 500;
}

/* ── Empty state ────────────────────────────────────────────────────────── */
/* Shown when the day is over, or before it starts, instead of a bare board. */

.agenda__empty {
  position: absolute;
  left: var(--margin-left);
  top: 300px;
  width: 1200px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 56px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Teasers ────────────────────────────────────────────────────────────── */
/* An uploaded image or video (/admin/agenda/). The space teaser sits below the
   last session (top and height come from agenda.js), always as wide as the
   rows: cropping to fill the box cut a wide banner off at both sides, so it
   starts under the rows and only what is taller than the free space is cut,
   at the bottom. The full one covers the stage, under the overlays, once no
   session is left, cropped to fill rather than letterboxed. */

.agenda-teaser {
  position: absolute;
  overflow: hidden;
  background: #000;
}

.agenda-teaser--space {
  left: var(--margin-left);
  width: var(--content-w);
  background: none;
  z-index: 2;
  animation: row-in 420ms var(--ease) both;
}

.agenda-teaser--full {
  inset: 0;
  z-index: 10;
}

.agenda-teaser__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agenda-teaser--space .agenda-teaser__media {
  height: auto;
}

/* ── Location loop ──────────────────────────────────────────────────────── */
/* A location screen's videos, map and images (loop.css) fade in over the
   list and its teasers, and under the next-session, break and announcement
   cards, which keep the last word. */
.loop-layers {
  z-index: 15;
}

/* A hall screen's full-screen image stays up over the loop. */
.agenda-teaser--full[data-over-loop='true'] {
  z-index: 16;
}
