/* ─────────────────────────────────────────────────────────────────────────────
   Full-screen overlays — deck pages 2–3 (Next Session), 4 (Break), 5 (Announcement)

   All three share the same anatomy: the spectrum backdrop (at 50%, over
   black), the ZEISS Innovation Summit mark top-left, a big ZEISS Head headline
   on the left, and a white card with a ZEISS-spectrum edge peeking out at its
   right and bottom. Geometry is measured from the source deck.
   ───────────────────────────────────────────────────────────────────────────── */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--overlay-out) var(--ease), visibility 0s linear var(--overlay-out);
}

.overlay[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--overlay-in) var(--ease), visibility 0s;
}

/* Overlay text is positioned by measured coordinates; a default paragraph
   margin would silently shift a whole block by one line. */
.overlay p {
  margin: 0;
}

.overlay__headline {
  position: absolute;
  margin: 0;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  white-space: pre-line;
  text-transform: uppercase;
}

/* ── The white card with a spectrum edge ────────────────────────────────── */
/* A copy of the card filled with the ZEISS spectrum sits behind it, offset
   down-right by 10.4px, so a sliver shows along the right and bottom edges —
   exactly how the source artwork is built.
   The edge and the white surface are real elements rather than pseudo-elements
   because paint order has to put them *below* the card's positioned content,
   which a negative z-index cannot do inside the overlay's stacking context. */

.card {
  position: absolute;
  color: var(--ink);
  z-index: 2;
}

/* Card content is positioned so that it paints *after* the surface layer —
   without this, non-positioned children are painted underneath it. */
.card > * {
  position: relative;
}

.card__edge,
.card__surface {
  position: absolute;
  inset: 0;
}

.card__edge {
  transform: translate(10.4px, 10.4px);
  background: var(--spectrum-v);
}

.card__surface {
  background: var(--paper);
}

/* ═══ Next session (pages 2–3) ══════════════════════════════════════════ */

.next__headline {
  left: 123.7px;
  top: 446.5px;
  font-size: 180px;
  line-height: 162px; /* baselines 567.3 / 729.3 */
}

.next__card {
  left: 943.2px;
  top: 152.7px;
  width: 740px;
  height: 740px;
}

/* The segment colour block that overlaps the card's top-left corner. */
.next__segment {
  position: absolute;
  left: 659.5px;
  top: 221.9px;
  width: 315.6px;
  height: 315.6px;
  z-index: 3;
}

.next__segment .segment-tile {
  width: 100%;
  height: 100%;
}

/* Card content — stage coordinates, painted above the card surface. */
.next__format,
.next__title,
.next__speaker {
  z-index: 3;
}

.next__format {
  position: absolute;
  left: 1011.3px;
  top: 236.9px; /* baseline 267.2 */
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 42px;
  line-height: 42px;
  color: #3c3c3b;
  white-space: nowrap;
}

.next__title {
  position: absolute;
  left: 1011.3px;
  top: 300.8px; /* baselines 333.0 / 379.0 */
  width: 620px;
  max-height: 184px; /* four lines before the fitter steps in */
  margin: 0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 42px;
  line-height: 45.84px;
  color: var(--ink);
  overflow: hidden;
}

.next__speaker {
  position: absolute;
  left: 1011.3px;
  top: 560px;
  display: flex;
  gap: 21px;
  width: 620px;
}

.next__photo {
  width: 230px;
  height: 230px;
  flex: none;
  object-fit: cover;
  background: #eceff3;
}

/* No photo from Cvent: the text simply takes the full width rather than
   leaving a grey rectangle on a signage screen. */
.next__speaker[data-photo='false'] .next__photo {
  display: none;
}

.next__speaker-text {
  /* baseline of the name lands on 630.2 */
  padding-top: 48.4px;
  min-width: 0;
}

.next__speaker-name {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 28px;
  line-height: 31.16px;
  color: var(--ink);
}

.next__speaker-meta {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 28px;
  line-height: 31.16px;
  color: #3c3c3b;
}

/* More than one speaker: names only, so the block keeps its shape. */
.next__speaker-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Footer: clock + start time on the left, arrow + destination on the right.
   Absolutely placed rather than flexed, so each element keeps the exact x it
   has in the deck no matter how long the room name is. */

.next__footer-icon,
.next__footer-arrow,
.next__footer-value {
  position: absolute;
  z-index: 3;
  color: var(--ink);
}

.next__footer-icon svg,
.next__footer-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.next__footer-icon {
  left: 1010.8px;
  top: 817px;
  width: 49.5px;
  height: 49.5px;
}

.next__footer-arrow {
  left: 1394.3px;
  top: 824.2px;
  width: 44.9px;
  height: 35px;
}

.next__footer-value {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 28px;
  line-height: 28px;
  white-space: nowrap;
}

.next__footer-time { left: 1085px; top: 828px; }   /* baseline 848.2 */
/* "Conference Hall" ends 24px inside the card; longer room names shrink to fit
   (overlays.js) and only then get an ellipsis. */
.next__footer-dest { left: 1456.6px; top: 828px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* ═══ Break (page 4) ════════════════════════════════════════════════════ */

.break__headline {
  left: 184.7px;
  top: 378px;
  font-size: 180px;
  line-height: 162px; /* baselines 498.8 / 660.8 */
}

.break__card {
  left: 879.8px;
  top: 173.7px;
  width: 748.8px;
  height: 748.8px;
  display: grid;
  place-items: center;
}

/* ═══ Announcement (page 5) ═════════════════════════════════════════════ */

.announce__headline {
  left: 176.9px;
  top: 156.9px;
  font-size: 120px;
  line-height: 120px; /* baseline 243.4 */
}

/* The 2026-10 deck moved card and contents by (+27.7, +19.2) and the headline
   by (+27.7, +41.1); everything inside the card keeps its card-relative place. */
.announce__card {
  left: 171.7px;
  top: 263.6px;
  width: 1563.1px;
  height: 748.8px;
}

/* Card-relative position; the bell is not optically centred in its half, so it
   is placed at the coordinate the deck gives it. */
.announce__icon {
  position: absolute;
  left: 134.6px; /* 278.6 − 144 */
  top: 233.8px;  /* 478.2 − 244.4 */
  width: 203.4px;
  height: 224.8px;
  --spectrum-offset: 5.6px;
}

.announce__text {
  position: absolute;
  left: 420.6px; /* 564.6 − 144 */
  top: 50%;
  width: 1060px;
  /* Centred so any length sits well, then lifted 6.5px: the deck's four-line
     text sits that much above the card's true centre. */
  transform: translateY(calc(-50% - 6.5px));
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 72px;
  line-height: 78.84px;
  color: var(--ink);
  /* Long announcements get clamped rather than pushing out of the card; the
     admin page warns when the text is too long to fit. */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Spectrum outline icons (coffee cup, bell) ──────────────────────────── */
/* Drawn as the black glyph with a spectrum-filled copy peeking out behind it,
   offset down-right — the same construction as the source artwork. */

/* Both layers are absolutely positioned and rely on DOM order for paint order
   (shadow first, glyph second) — a negative z-index would fall behind the
   card's white surface. */
.spectrum-icon {
  position: relative;
  display: block;
  color: var(--ink);
}

.spectrum-icon > svg,
.spectrum-icon__shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.spectrum-icon__shadow {
  transform: translate(var(--spectrum-offset, 6.4px), var(--spectrum-offset, 6.4px));
  background: var(--spectrum);
  /* The glyph itself becomes the mask, so the spectrum only shows through the
     icon's strokes. */
  -webkit-mask: var(--spectrum-mask) center / contain no-repeat;
  mask: var(--spectrum-mask) center / contain no-repeat;
}

.break__icon {
  width: 475.4px;
  height: 475.4px;
}
