/* ============================================================
   Scenario selection surface (sc-) — Presentation Mode · Scenario tab.
   Additive, token-only (no :root / no @font-face); loaded after
   hm-brand.css so tokens and the Phosphor icon font are inherited.
   Classes adapted from the CD mockup, values mapped to brand tokens.
   ============================================================ */

.sc {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 56px 56px;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.sc__intro { margin-bottom: 32px; }
.sc__eyebrow {
  font-size: 11px;
  font-weight: var(--w-semibold);
  line-height: var(--lh-tight);
  color: var(--fg-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  margin: 0 0 10px;
}
.sc__lead {
  font-size: 20px;
  font-weight: var(--w-medium);
  line-height: 1.4;
  color: var(--fg-primary);
  letter-spacing: var(--ls-heading);
  margin: 0;
  max-width: 720px;
  text-wrap: balance;
}

.sc__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  flex: 1;
}

/* ---- card ---- */
.sc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.sc-card:hover,
.sc-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

/* image field + scrim */
.sc-card__media { position: relative; height: 194px; overflow: hidden; }
.sc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Deepened from the single-line-tag era: the identity block below is two lines tall,
   so its top edge now sits ~75% down the image where the old ramp was still light.
   These stops keep white text legible over the brighter frames (cards 2 and 3). */
.sc-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(28, 28, 29, 0) 30%,
    rgba(28, 28, 29, 0.34) 58%,
    rgba(28, 28, 29, 0.88) 100%);
}
/* Company identity over the image: name on top, business descriptor beneath.
   Sits above the scrim (z-index) so the gradient always backs the text. */
.sc-card__id {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.sc-card__id-name {
  font-size: 16px;
  font-weight: var(--w-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  color: #fff;
}
.sc-card__id-desc {
  font-size: 11.5px;
  font-weight: var(--w-medium);
  line-height: var(--lh-tight);
  color: rgba(255, 255, 255, 0.88);
}
.sc-card__role {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(75, 179, 125, 0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: var(--w-semibold);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.sc-card__role i { font-size: 11px; }

/* body */
.sc-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 16px; }
.sc-card__org {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: var(--w-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--fg-primary);
  margin: 0 0 4px;
}
/* The Phosphor <i> is empty — its glyph is a ::before — so an inline box collapses to
   zero advance width and the letter-spacing above rides straight into the word. Give it
   an explicit box and carry the spacing on the icon's own margin rather than the parent's
   flex `gap`, so the space survives regardless of the formatting context. */
.sc-card__org i {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent);
}
.sc-card__type {
  font-size: 13px;
  font-weight: var(--w-medium);
  line-height: 1.4;
  color: var(--fg-secondary);
  margin: 0 0 14px;
  /* Reserve two lines so cards whose type wraps (e.g. Card 2) keep their body
     and action aligned with the others. */
  min-height: calc(1.4em * 2);
}
.sc-card__sit {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-secondary);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.sc-card__figs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.sc-fig {
  font-size: 11px;
  font-weight: var(--w-medium);
  line-height: 1;
  color: var(--fg-secondary);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-2);
  padding: 5px 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* action */
.sc-card__action {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: var(--w-semibold);
  padding: 11px 16px;
  border-radius: var(--radius-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.sc-card__action i { font-size: 16px; transition: transform var(--dur-base) var(--ease-standard); }
.sc-card:hover .sc-card__action,
.sc-card__action:hover,
.sc-card__action:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sc-card:hover .sc-card__action i { transform: translateX(3px); }

@media (max-width: 1080px) {
  .sc { padding: 40px 32px 48px; }
  .sc__row { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Scenario staged play — the presenter play bar + Timeline tab
   (Progress Tracking). Additive, token-only.
   ============================================================ */

/* ---- play bar (above the Track drawer tabs) ---- */
.scplay {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #F4FBF7 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border-rule);
}
.scplay--gate { background: linear-gradient(180deg, #FFF7ED 0%, var(--bg-surface) 100%); }
.scplay--done { background: linear-gradient(180deg, #F4FBF7 0%, var(--bg-surface) 100%); }
.scplay__btn {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.scplay__btn:hover:not(:disabled) { transform: scale(1.05); }
.scplay__btn:disabled { background: var(--border-strong); cursor: default; opacity: 0.7; }
.scplay__btn i { font-size: 18px; }
.scplay--gate .scplay__btn { background: #E08A2B; }
.scplay__mid { flex: 1; min-width: 0; }
.scplay__cap { font-size: 12.5px; font-weight: var(--w-semibold); color: var(--fg-primary); margin-bottom: 6px; }
.scplay__track { height: 4px; border-radius: var(--radius-pill); background: var(--bg-hover-neutral, #EFEFEC); overflow: hidden; }
.scplay__fill { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-pill); transition: width 120ms linear; }
.scplay--gate .scplay__fill { background: #E08A2B; }
.scplay__state { flex: none; font-size: 10.5px; font-weight: var(--w-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--fg-tertiary); }

/* ---- scenario Timeline tab ---- */
.sctl-wrap .rtl { margin-top: 4px; }
.sctl__compwin {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 8px; border-radius: var(--radius-pill);
  background: rgba(75, 179, 125, 0.12);
  pointer-events: none;
}
.sctl__now {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 3px; height: 26px; border-radius: var(--radius-pill);
  background: var(--fg-primary);
  box-shadow: 0 0 0 3px rgba(65, 64, 66, 0.10);
  z-index: 3;
}
.sctl__legend {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 22px; font-size: 11.5px; color: var(--fg-secondary);
}
.sctl__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sctl__key { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sctl__key--now { background: var(--fg-primary); width: 3px; height: 14px; border-radius: var(--radius-pill); }
.sctl__key--rem { background: var(--accent); border-radius: var(--radius-pill); }
.sctl__key--win { background: rgba(75, 179, 125, 0.20); }
.sctl__phase { margin-left: auto; font-weight: var(--w-semibold); color: var(--fg-accent); text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: 10.5px; }
.sctl__note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--fg-tertiary); }
