/* The entrance's org chart, on the other pages a participant meets
 * (17 August 2026).
 *
 * The chart was built for welcome.html, where it lives inside .welcome-main.
 * This file puts the same device behind the code-entry step and the share
 * sheet, so the walk from a projected QR code to the first decision looks like
 * one place rather than three.
 *
 * Fixed rather than absolute on the flow pages: they have no full-height stage
 * to anchor to, and a fixed backdrop cannot grow the page or push the primary
 * action down however tall the content gets.
 *
 * org-breathe.js is unchanged and does not need to know where it is: the
 * readout elements are optional in it, so a page without the span/layers
 * numbers simply gets the chart.
 */

.od-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* Content sits above it. Applied to each page's own wrapper rather than to
   everything, so nothing else in the cascade has to know about the backdrop. */
.od-above { position: relative; z-index: 1; }

.od-backdrop-scrim {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 62% at 50% 50%,
    #0f172af7 0%, #0f172ae6 44%, #0f172a8c 76%, #0f172a33 100%);
}

/* ── the code-entry step ──────────────────────────────────────────────────
   It was a white card on #efefef while the entrance it follows is dark slate,
   so the first thing a participant did after "Start" was leave the design.
   Same ground, same type, same button as welcome.html. */
body.od-code {
  background: #0f172a; color: #f1f5f9;
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
body.od-code .form-card {
  position: relative; z-index: 1;
  background: #111d34; border: 1px solid #1e293b; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: 2.5rem 2rem; width: 100%; max-width: 420px;
}
.od-brand { display: block; margin-bottom: 1.4rem; }
.od-brand img { display: block; width: 150px; height: auto; }

body.od-code h1 { font-size: 1.4rem; font-weight: 800; color: #f1f5f9; margin-bottom: .4rem; }
body.od-code .hint { color: #94a3b8; font-size: .88rem; margin-bottom: 1.5rem; }
body.od-code label { color: #94a3b8; }
body.od-code input[type="text"] {
  background: #0b1220; border: 1.5px solid #334155; color: #f1f5f9;
}
body.od-code input[type="text"]::placeholder { color: #64748b; }
body.od-code input:focus {
  outline: none; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.25);
}
body.od-code .btn-full { background: #f1f5f9; color: #0f172a; }
body.od-code .btn-full:hover { background: #ffffff; }
body.od-code .alert-error {
  background: #2a1416; color: #fca5a5; border-left: 3px solid #ef4444;
}
body.od-code .back-link { color: #94a3b8; }
body.od-code .back-link:hover { color: #f1f5f9; }

/* ── the join sheet ───────────────────────────────────────────────────────
   PARTICIPANT page since 3 September 2026 (owner; README §3). It used to be
   bounded inside the backoffice shell — a white scrim on an educator's page —
   and it now takes the whole page on the same slate ground as the code-entry
   step it sends the room to. share-card.css is untouched: it is byte-identical
   in eight tools, so only the ground around the card is this tool's. */
body.od-share {
  background: #0f172a; color: #f1f5f9;
  min-height: 100dvh; padding: 1rem 1.5rem 2.5rem;
}
/* The share card's buttons are sized by .share-btn; participant_base's shell
   .btn (full width, 1rem top margin) is switched off with the rest of that
   shell, but Bootstrap-flavoured class names travel with the fleet markup, so
   say it here too rather than editing the shared sheet. */
body.od-share .share-btn { width: auto; margin-top: 0; }
body.od-share .od-share__brand {
  display: block; width: max-content; margin: 0 auto 1.25rem;
}
body.od-share .od-share__brand img { display: block; }

@media print {
  body.od-share { background: #fff !important; color: #141414; padding: 0; }
  body.od-share .od-share__brand { display: none !important; }
  .od-backdrop, .od-backdrop-scrim { display: none !important; }
}
