/* ============================================================================
   Book a Scientist — Fall 2026 schedule reveal
   bas-reveal.css

   Every selector is prefixed `bas-`. Every custom property is scoped to
   #bas-reveal, never :root. There are no bare element selectors and no global
   resets, so this is safe to paste into LearnWorlds' site custom code where it
   shares a page with CSS we do not control.

   Design tokens sampled from www.bookascientist.com — see design-tokens.md.
   ========================================================================= */

#bas-reveal {
  /* ---- colour (sampled from the live site) ---- */
  --bas-navy:        #151B54;
  --bas-navy-lift:   #1B2264;   /* one step up from navy, for raised surfaces */
  --bas-gold:        #F7CE3E;
  --bas-gold-dark:   #E0B92C;   /* hover state for gold fills */
  --bas-ink:         #0A1612;   /* text on gold */
  --bas-cream:       #FAF6E8;
  --bas-coral:       #E13C00;
  --bas-white:       #FFFFFF;

  --bas-hairline:    rgba(255, 255, 255, 0.20);
  --bas-hairline-soft: rgba(255, 255, 255, 0.12);
  --bas-doodle-ink:  rgba(255, 255, 255, 0.16);  /* exact stroke alpha of the site doodle */
  --bas-muted:       rgba(255, 255, 255, 0.72);

  /* ---- type ---- */
  --bas-font: Poppins, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bas-fs-h2:      35px;
  --bas-lh-h2:      1.35;
  --bas-fs-body:    17px;
  --bas-lh-body:    1.65;   /* the site's signature loose body leading */
  --bas-fs-small:   14px;
  --bas-lh-small:   1.55;
  --bas-fs-btn:     16px;

  /* ---- shape & rhythm ---- */
  --bas-radius:      6px;    /* the site's button radius — the key shape token */
  --bas-radius-lg:   10px;
  --bas-gap:         10px;
  --bas-section-pad: 80px;
  --bas-container:   1170px;
  --bas-cell-min:    76px;
  --bas-ease:        0.2s ease-in-out;   /* the site's transition */

  /* ---- the site's doodle artwork, for cover style A ---- */
  --bas-doodle-url: url("https://lwfiles.mycourse.app/682971f4b3c88d30d91e30e3-public/8c5874090cea90503cf9047a1f434530.png");

  /* ---- root layout ---- */
  container-type: inline-size;
  container-name: bas;
  font-family: var(--bas-font);
  font-size: var(--bas-fs-body);
  line-height: var(--bas-lh-body);
  color: var(--bas-white);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* Do not assume box-sizing is inherited from the host page. */
#bas-reveal,
#bas-reveal *,
#bas-reveal *::before,
#bas-reveal *::after {
  box-sizing: border-box;
}

/* The host page zeroes margins globally on some elements and not others.
   Neutralise both possibilities inside the widget, then set margins explicitly. */
#bas-reveal .bas-h2,
#bas-reveal .bas-h3,
#bas-reveal .bas-p,
#bas-reveal .bas-eyebrow,
#bas-reveal .bas-small {
  margin: 0;
  padding: 0;
  font-family: var(--bas-font);
}

/* ----------------------------------------------------------------------------
   1. Section shell — mirrors the site's full-bleed navy section pattern
   ------------------------------------------------------------------------- */

#bas-reveal .bas-section {
  padding: var(--bas-section-pad) 0;
  background-color: transparent;   /* the host page's navy shows through */
}

/* Standalone/iframe use: the widget paints its own navy. Add class bas-own-surface. */
#bas-reveal.bas-own-surface .bas-section {
  background-color: var(--bas-navy);
}

#bas-reveal .bas-container {
  width: 100%;
  max-width: var(--bas-container);
  margin: 0 auto;
  padding: 0 15px;   /* the site's Bootstrap gutter */
}

/* ----------------------------------------------------------------------------
   2. Editorial header — echoes the site's eyebrow / gold h2 / body pattern
   ------------------------------------------------------------------------- */

#bas-reveal .bas-eyebrow {
  font-size: var(--bas-fs-small);
  font-weight: 400;
  line-height: var(--bas-lh-small);
  letter-spacing: 0.1px;
  text-transform: uppercase;
  color: var(--bas-white);
}

#bas-reveal .bas-h2 {
  margin-top: 6px;
  font-size: var(--bas-fs-h2);
  font-weight: 700;
  line-height: var(--bas-lh-h2);
  color: var(--bas-gold);
}

#bas-reveal .bas-p {
  font-size: var(--bas-fs-body);
  font-weight: 400;
  line-height: var(--bas-lh-body);
  color: var(--bas-white);
}

#bas-reveal .bas-intro {
  margin-top: 18px;
  max-width: 62ch;
}

#bas-reveal .bas-small {
  font-size: var(--bas-fs-small);
  line-height: var(--bas-lh-small);
  color: var(--bas-muted);
}

/* ----------------------------------------------------------------------------
   3. Progress
   ------------------------------------------------------------------------- */

#bas-reveal .bas-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

#bas-reveal .bas-progress-track {
  flex: 1 1 200px;
  min-width: 140px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

#bas-reveal .bas-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--bas-gold);
  transition: width 0.45s ease-in-out;
}

#bas-reveal .bas-progress-text {
  font-size: var(--bas-fs-small);
  line-height: 1;
  font-weight: 700;
  color: var(--bas-gold);
  white-space: nowrap;
  /* tabular figures stop the counter jittering as it climbs */
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------------------
   4. Layout — schedule beside quiz on wide, stacked on narrow
   ------------------------------------------------------------------------- */

#bas-reveal .bas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

/* ----------------------------------------------------------------------------
   5. The schedule grid
   ------------------------------------------------------------------------- */

#bas-reveal .bas-grid {
  display: flex;
  flex-direction: column;
  gap: var(--bas-gap);
}

#bas-reveal .bas-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 0.95fr) minmax(0, 1.75fr);
  gap: var(--bas-gap);
}

#bas-reveal .bas-colhead {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--bas-muted);
  padding: 0 4px 2px;
}

/* --- cell --------------------------------------------------------------- */

#bas-reveal .bas-cell {
  position: relative;
  min-height: var(--bas-cell-min);
  border-radius: var(--bas-radius);
  overflow: hidden;
  /* isolate creates a stacking context so the cover never escapes the cell */
  isolation: isolate;
}

/* The revealed content is always in flow, so it — not the cover — defines the
   cell's height. The cover sits on top absolutely. This is what guarantees
   zero layout shift when a cell opens. */
#bas-reveal .bas-cell-content {
  height: 100%;
  min-height: var(--bas-cell-min);
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--bas-hairline-soft);
  border-radius: var(--bas-radius);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  line-height: 1.45;
  color: var(--bas-white);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.42s ease-out, transform 0.42s ease-out;
}

#bas-reveal .bas-cell[data-state="open"] .bas-cell-content {
  opacity: 1;
  transform: none;
}

/* Date column reads as a label, not prose */
#bas-reveal .bas-cell[data-col="date"] .bas-cell-content {
  font-weight: 700;
  color: var(--bas-gold);
  font-size: 16px;
}

#bas-reveal .bas-cell[data-col="speaker"] .bas-cell-content {
  font-weight: 700;
}

/* --- the cover ---------------------------------------------------------- */

#bas-reveal .bas-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid var(--bas-hairline-soft);
  border-radius: var(--bas-radius);
  background-color: var(--bas-navy-lift);
  overflow: hidden;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
}

#bas-reveal .bas-cell[data-state="open"] .bas-cover {
  /* The breathe animation below also targets opacity, and a running animation
     beats a normal declaration — without cancelling it here the cover would
     never fade past its animated value. */
  animation: none;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(3px);
  pointer-events: none;
}

/* A real cover image, when one is supplied via schedule.json `cover`.
   Declared last in the cascade below so it wins over both generated styles. */
#bas-reveal .bas-cover[data-has-image="true"] {
  background-image: var(--bas-cell-cover) !important;
  background-size: cover !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
}
#bas-reveal .bas-cover[data-has-image="true"]::after { content: none !important; }

/* ---- Cover style A: the site's own doodle artwork ----
   The source asset is a single 1920x1080 raster, not a tile. Scaling it well
   past `cover` and giving each cell its own background-position means each
   tile lands on a real motif instead of an arbitrary near-empty crop. */
#bas-reveal[data-cover-style="doodle"] .bas-cover:not([data-has-image="true"]) {
  background-image: var(--bas-doodle-url);
  background-size: 760% auto;
  background-position: var(--bas-cover-pos, 50% 50%);
  background-repeat: no-repeat;
}
/* Tint the crop back toward the section navy so brightness stays even
   across cells and the gold text alongside keeps its contrast. */
#bas-reveal[data-cover-style="doodle"] .bas-cover:not([data-has-image="true"])::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(21, 27, 84, 0.55), rgba(21, 27, 84, 0.78));
}

/* ---- Cover style B: drawn motifs (default) ----
   Vector re-creation of the site's doodle vocabulary at cell scale. No image
   request, no cross-origin dependency, and every tile is a whole motif. */
#bas-reveal[data-cover-style="drawn"] .bas-cover:not([data-has-image="true"]) {
  background-image:
    var(--bas-motif),
    radial-gradient(circle at 82% 18%, rgba(247, 206, 62, 0.10), transparent 58%),
    linear-gradient(155deg, var(--bas-navy-lift), #171D57);
  /* `cover` on the two gradient layers, tile size only on the motif layer —
     otherwise the gradients tile too and band across the cell. */
  background-size: 132px 90px, cover, cover;
  background-position: var(--bas-motif-pos, 0 0), 0 0, 0 0;
  background-repeat: repeat, no-repeat, no-repeat;
}

/* Shared cover polish */
#bas-reveal .bas-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* A hidden cell breathes very slightly so the board does not read as dead.
   Staggered by index so they do not pulse in unison. */
@keyframes bas-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.90; }
}
#bas-reveal .bas-cover {
  animation: bas-breathe 5.5s ease-in-out infinite;
  animation-delay: var(--bas-breathe-delay, 0s);
}

/* --- the mystery row ---------------------------------------------------- */

/* An even gold wash reads cleanly at any cell width; a large radial blob
   looked muddy stretched across the wide topic cell. */
#bas-reveal .bas-cell[data-mystery="true"] .bas-cell-content {
  border-color: rgba(247, 206, 62, 0.5);
  background: rgba(247, 206, 62, 0.09);
  box-shadow: inset 3px 0 0 rgba(247, 206, 62, 0.65);
  color: var(--bas-gold);
  font-style: italic;
}

#bas-reveal .bas-cell[data-mystery="true"][data-col="speaker"] .bas-cell-content,
#bas-reveal .bas-cell[data-mystery="true"][data-col="date"] .bas-cell-content {
  font-style: normal;
}

/* The mystery cells get a warmer gold cast so the final reveal feels different.
   Layer count and sizing must match the rule above or the gradients tile. */
#bas-reveal[data-cover-style="drawn"] .bas-cover[data-mystery="true"]:not([data-has-image="true"]) {
  background-image:
    var(--bas-motif),
    radial-gradient(circle at 78% 22%, rgba(247, 206, 62, 0.20), transparent 60%),
    linear-gradient(155deg, #1F2673, #181E5C);
}

/* Hidden entirely until the mystery row opens, so it reserves no space in the
   grid. It expands once, as the final flourish. */
#bas-reveal .bas-mystery-note {
  display: none;
  margin: var(--bas-gap) 0 0;
  padding: 10px 14px;
  border-radius: var(--bas-radius);
  border: 1px dashed rgba(247, 206, 62, 0.45);
  background: rgba(247, 206, 62, 0.06);
  font-size: var(--bas-fs-small);
  line-height: var(--bas-lh-small);
  color: var(--bas-gold);
}
#bas-reveal .bas-session[data-revealed="true"] .bas-mystery-note {
  display: block;
  animation: bas-note-in 0.5s ease-out both;
}
@keyframes bas-note-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------------
   6. Quiz panel
   ------------------------------------------------------------------------- */

#bas-reveal .bas-quiz {
  position: relative;
  padding: 26px;
  border: 1px solid var(--bas-hairline);
  border-radius: var(--bas-radius-lg);
  background: rgba(255, 255, 255, 0.045);
  /* Sticks alongside the tall schedule on wide layouts */
  position: sticky;
  top: 24px;
}

#bas-reveal .bas-h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bas-white);
}

#bas-reveal .bas-quiz-hint {
  margin-top: 8px;
  font-size: var(--bas-fs-small);
  line-height: var(--bas-lh-small);
  color: var(--bas-muted);
}

#bas-reveal .bas-question {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bas-white);
  /* Reserve two lines so swapping questions does not jump the panel */
  min-height: calc(17px * 1.5 * 2);
}

#bas-reveal .bas-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

/* Options are real buttons. Type must be declared — the host page leaves
   buttons at the UA default face. */
#bas-reveal .bas-option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--bas-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  padding: 12px 16px;
  color: var(--bas-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bas-hairline);
  border-radius: var(--bas-radius);
  cursor: pointer;
  transition: background var(--bas-ease), border-color var(--bas-ease), color var(--bas-ease), transform var(--bas-ease);
  -webkit-appearance: none;
  appearance: none;
}

#bas-reveal .bas-option:hover:not(:disabled) {
  background: rgba(247, 206, 62, 0.14);
  border-color: var(--bas-gold);
}

#bas-reveal .bas-option:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

#bas-reveal .bas-option[data-wrong="true"] {
  border-color: var(--bas-coral);
  background: rgba(225, 60, 0, 0.14);
  animation: bas-shake 0.42s ease-in-out;
}

#bas-reveal .bas-option[data-right="true"] {
  border-color: var(--bas-gold);
  background: var(--bas-gold);
  color: var(--bas-ink);
  font-weight: 700;
  opacity: 1;
  text-decoration: none;
}

@keyframes bas-shake {
  0%, 100%      { transform: translateX(0); }
  15%, 55%      { transform: translateX(-6px); }
  35%, 75%      { transform: translateX(6px); }
  90%           { transform: translateX(-2px); }
}

/* --- feedback ----------------------------------------------------------- */

#bas-reveal .bas-feedback {
  margin-top: 16px;
  min-height: 46px;   /* reserved so the panel never jumps */
  font-size: var(--bas-fs-small);
  line-height: var(--bas-lh-small);
}

#bas-reveal .bas-feedback[data-tone="right"] { color: var(--bas-gold); }
#bas-reveal .bas-feedback[data-tone="wrong"] { color: var(--bas-white); }

#bas-reveal .bas-feedback-lead {
  font-weight: 700;
}

/* --- buttons ------------------------------------------------------------ */

#bas-reveal .bas-btn {
  display: inline-block;
  font-family: var(--bas-font);
  font-size: var(--bas-fs-btn);
  font-weight: 700;
  line-height: 1;
  padding: 10px 35px;        /* the site's exact button padding */
  min-height: 48px;          /* the site's exact button height */
  border-radius: var(--bas-radius);
  border: 2px solid transparent;
  background: var(--bas-gold);
  color: var(--bas-ink);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--bas-ease), border-color var(--bas-ease), color var(--bas-ease);
  -webkit-appearance: none;
  appearance: none;
}

#bas-reveal .bas-btn:hover {
  background: var(--bas-gold-dark);
  border-color: var(--bas-gold-dark);
  color: var(--bas-ink);
}

#bas-reveal .bas-btn-ghost {
  background: transparent;
  color: var(--bas-gold);
  border-color: var(--bas-hairline);
}
#bas-reveal .bas-btn-ghost:hover {
  background: rgba(247, 206, 62, 0.12);
  border-color: var(--bas-gold);
  color: var(--bas-gold);
}

/* Text-style controls. The host page recolours bare anchors coral, so colour
   is set explicitly here. */
#bas-reveal .bas-link {
  font-family: var(--bas-font);
  font-size: var(--bas-fs-small);
  line-height: var(--bas-lh-small);
  color: var(--bas-gold);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-appearance: none;
  appearance: none;
}
#bas-reveal .bas-link:hover { color: var(--bas-white); }

#bas-reveal .bas-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--bas-hairline-soft);
}

/* ----------------------------------------------------------------------------
   7. Completion state
   ------------------------------------------------------------------------- */

#bas-reveal .bas-complete {
  display: none;
  text-align: center;
  padding: 8px 0 4px;
}
#bas-reveal .bas-quiz[data-complete="true"] .bas-complete { display: block; }
#bas-reveal .bas-quiz[data-complete="true"] .bas-play     { display: none; }

#bas-reveal .bas-complete-heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bas-gold);
  margin: 0;
}

#bas-reveal .bas-complete-body {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: var(--bas-lh-body);
  color: var(--bas-white);
}

#bas-reveal .bas-complete-cta { margin-top: 22px; }

/* ----------------------------------------------------------------------------
   8. Focus — visible everywhere, and never clipped by overflow:hidden
   ------------------------------------------------------------------------- */

#bas-reveal .bas-option:focus-visible,
#bas-reveal .bas-btn:focus-visible,
#bas-reveal .bas-link:focus-visible,
#bas-reveal .bas-toggle-btn:focus-visible {
  outline: 3px solid var(--bas-gold);
  outline-offset: 3px;
  border-radius: var(--bas-radius);
}

/* Older engines without :focus-visible still get a ring. */
#bas-reveal .bas-option:focus,
#bas-reveal .bas-btn:focus,
#bas-reveal .bas-link:focus {
  outline: 3px solid var(--bas-gold);
  outline-offset: 3px;
}
#bas-reveal .bas-option:focus:not(:focus-visible),
#bas-reveal .bas-btn:focus:not(:focus-visible),
#bas-reveal .bas-link:focus:not(:focus-visible) {
  outline: none;
}

#bas-reveal .bas-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------------------
   9. Responsive — container queries against the widget's own width
   ------------------------------------------------------------------------- */

@container bas (max-width: 990px) {
  #bas-reveal .bas-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  #bas-reveal .bas-quiz { position: static; }
}

@container bas (max-width: 767px) {
  #bas-reveal {
    --bas-fs-h2: 27px;
    --bas-section-pad: 52px;
  }
  /* Six stacked session cards, each holding three reveal tiles. */
  #bas-reveal .bas-grid { gap: 16px; }
  /* .bas-head-row also carries .bas-row, which sets display:grid at equal
     specificity — this needs the extra class to win. */
  #bas-reveal .bas-row.bas-head-row { display: none; }

  #bas-reveal .bas-session {
    display: block;
    padding: 14px;
    border: 1px solid var(--bas-hairline-soft);
    border-radius: var(--bas-radius-lg);
    background: rgba(255, 255, 255, 0.03);
  }
  #bas-reveal .bas-session-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--bas-muted);
  }
  #bas-reveal .bas-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #bas-reveal .bas-cell { min-height: 62px; }
  #bas-reveal .bas-cell-content { min-height: 62px; padding: 12px 14px; }
  /* Mobile tiles carry their own column label, since the header row is gone */
  #bas-reveal .bas-cell::after {
    content: attr(data-label);
    position: absolute;
    top: 6px; left: 14px;
    z-index: 4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--bas-muted);
    pointer-events: none;
  }
  #bas-reveal .bas-cell-content { padding-top: 24px; align-items: flex-start; }
  #bas-reveal .bas-quiz { padding: 20px; }
}

@container bas (max-width: 400px) {
  #bas-reveal { --bas-fs-h2: 23px; }
  #bas-reveal .bas-btn { padding: 10px 22px; width: 100%; }
  #bas-reveal .bas-quiz { padding: 16px; }
  #bas-reveal .bas-container { padding: 0 12px; }
}

/* Fallback for engines without container query support (pre-2023 Safari/Firefox).
   Uses viewport width, which is correct in the iframe route and a reasonable
   approximation in the injection route. */
@supports not (container-type: inline-size) {
  @media (max-width: 990px) {
    #bas-reveal .bas-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    #bas-reveal .bas-quiz { position: static; }
  }
  @media (max-width: 767px) {
    #bas-reveal { --bas-fs-h2: 27px; --bas-section-pad: 52px; }
    #bas-reveal .bas-grid { gap: 16px; }
    /* .bas-head-row also carries .bas-row, which sets display:grid at equal
     specificity — this needs the extra class to win. */
  #bas-reveal .bas-row.bas-head-row { display: none; }
    #bas-reveal .bas-session {
      display: block; padding: 14px;
      border: 1px solid var(--bas-hairline-soft);
      border-radius: var(--bas-radius-lg);
      background: rgba(255, 255, 255, 0.03);
    }
    #bas-reveal .bas-session-label {
      display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700;
      letter-spacing: 0.8px; text-transform: uppercase; color: var(--bas-muted);
    }
    #bas-reveal .bas-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    #bas-reveal .bas-cell { min-height: 62px; }
    #bas-reveal .bas-cell-content { min-height: 62px; padding: 24px 14px 12px; align-items: flex-start; }
    #bas-reveal .bas-cell::after {
      content: attr(data-label); position: absolute; top: 6px; left: 14px; z-index: 4;
      font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
      text-transform: uppercase; color: var(--bas-muted); pointer-events: none;
    }
  }
}

/* The session-label is only used in the stacked layout */
#bas-reveal .bas-session-label { display: none; }
#bas-reveal .bas-cell::after { content: none; }

@container bas (max-width: 767px) {
  #bas-reveal .bas-session-label { display: block; }
  #bas-reveal .bas-cell::after { content: attr(data-label); }
}
@supports not (container-type: inline-size) {
  @media (max-width: 767px) {
    #bas-reveal .bas-session-label { display: block; }
    #bas-reveal .bas-cell::after { content: attr(data-label); }
  }
}

/* ----------------------------------------------------------------------------
   10. Reduced motion — no breathing, no shake, no staggered reveal
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  #bas-reveal .bas-cover,
  #bas-reveal .bas-cell-content,
  #bas-reveal .bas-option,
  #bas-reveal .bas-progress-fill,
  #bas-reveal .bas-mystery-note,
  #bas-reveal .bas-btn {
    animation: none !important;
    transition: none !important;
  }
  #bas-reveal .bas-cell[data-state="open"] .bas-cover {
    transform: none;
    filter: none;
  }
  #bas-reveal .bas-cell[data-state="open"] .bas-cell-content {
    transform: none;
  }
}

/* ----------------------------------------------------------------------------
   11. Demo-page-only chrome (cover style toggle). Not shipped in index.html.
   ------------------------------------------------------------------------- */

#bas-reveal .bas-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 24px;
  border: 1px solid var(--bas-hairline);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

#bas-reveal .bas-toggle-btn {
  font-family: var(--bas-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bas-muted);
  cursor: pointer;
  transition: background var(--bas-ease), color var(--bas-ease);
  -webkit-appearance: none;
  appearance: none;
}
#bas-reveal .bas-toggle-btn[aria-pressed="true"] {
  background: var(--bas-gold);
  color: var(--bas-ink);
}
