/* Stem Cell Career Fair: request card + answer cards (left) and the career fair scene (right) inside the shell's stage. */
.sc { position: absolute; inset: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; padding: 8px 12px; }
.sc-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px; }
.sc-ticket { padding: 8px 14px 10px; border-radius: var(--tlg-radius-lg, 14px); border: 2px dashed #9a7ccf; background: #faf6ff; color: #241a38; }
.sc-ticket-k { margin: 0 0 4px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tlg-tracking-caps, .06em); color: #5b3a8c; }
.sc-given { margin: 0; display: grid; gap: 4px; }
.sc-given div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 16px; line-height: 1.3; }
.sc-given dt { font-weight: 700; color: #5a4a78; white-space: nowrap; }
.sc-given dd { margin: 0; font-weight: 700; }
html[data-theme="dark"] .sc-ticket { background: #241c36; color: #efe7ff; border-color: #7d63ad; }
html[data-theme="dark"] .sc-ticket-k { color: #c9b2f5; }
html[data-theme="dark"] .sc-given dt { color: #c9bce4; }

.sc-ctl { display: flex; flex-direction: column; gap: 8px; }
.sc-field-k { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.sc-choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sc-choice { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; font: inherit; font-size: 16px; line-height: 1.25; text-align: left;
  color: var(--tlg-text, #172c38); background: var(--tlg-surface, #fff); border: 2px solid var(--tlg-border, #a5b6c1); border-radius: 12px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .08); transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.sc-choice:hover:not(:disabled) { border-color: #7a5cc8; transform: translateY(-1px); }
.sc-choice:focus-visible { outline: 3px solid #b16a08; outline-offset: 2px; }
.sc-choice.is-on { border-color: #5b3a8c; background: #efe6ff; font-weight: 700; box-shadow: inset 0 0 0 2px #5b3a8c; }
.sc-choice.is-on::after { content: '✓'; margin-left: auto; font-weight: 800; color: #5b3a8c; font-size: 20px; }
.sc-choice:disabled { cursor: default; }
.sc-choice:disabled:not(.is-on) { opacity: .75; }
.sc-choice-t { flex: 1; }
.sc-choice--prog { min-height: 64px; padding: 6px 12px 6px 6px; }
.sc-icon { width: 84px; height: 56px; flex: none; border-radius: 8px; background: #f6f1ff; }
html[data-theme="dark"] .sc-choice { background: #1d2333; color: #e8ecf5; border-color: #4a5470; }
html[data-theme="dark"] .sc-choice.is-on { background: #33285a; border-color: #b9a0f0; box-shadow: inset 0 0 0 2px #b9a0f0; }
html[data-theme="dark"] .sc-choice.is-on::after { color: #d8c8ff; }
html[data-theme="dark"] .sc-icon { background: #2a2440; }
.sc-about { font-size: 16px; line-height: 1.4; }
.sc-about summary { cursor: pointer; font-weight: 700; }
.sc-about p { margin: 6px 0 0; }

.sc-view { position: relative; min-width: 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.sc-svg { display: block; width: 100%; height: auto; max-height: 100%; aspect-ratio: 720 / 620; border-radius: var(--tlg-radius-lg, 14px); border: var(--tlg-border-width, 1px) solid var(--tlg-border, #a5b6c1); background: #e9effa; user-select: none; -webkit-user-select: none; font-family: var(--tlg-font, system-ui, sans-serif); }
.sc-view .sc-svg { max-width: calc((100vh - 150px) * 720 / 620); }
.sc-svg text { font-size: 18px; fill: #1d2438; }
.sc-wall { fill: url(#sc-g-wall); }
.sc-floor { fill: url(#sc-g-floor); }
.sc-pillar { fill: #ffffff; }
html[data-theme="dark"] .sc-svg { background: #1d2740; }
html[data-theme="dark"] .sc-wall { fill: url(#sc-g-wall-d); }
html[data-theme="dark"] .sc-floor { fill: url(#sc-g-floor-d); }
html[data-theme="dark"] .sc-pillar { fill: #2b3654; }
.sc-svg .sc-banner { font-size: 21px; font-weight: 800; letter-spacing: .08em; fill: #ffffff; }
.sc-svg .sc-booth-title { font-size: 19px; font-weight: 800; fill: #ffffff; }
.sc-booth { transition: opacity .2s ease; }
.sc-svg .sc-board-title { font-size: 18px; font-weight: 800; fill: #ffffff; }
.sc-svg .sc-board-note { font-size: 18px; fill: #b9c4e6; font-style: italic; }
.sc-svg .sc-gene-label { font-size: 18px; font-weight: 700; fill: #ffffff; }
.sc-svg .sc-sw-state { font-size: 18px; font-weight: 800; fill: #ffffff; text-anchor: middle; }
.sc-svg .sc-genome-text { font-size: 18px; font-weight: 700; fill: #3a2260; }
.sc-svg .sc-note { font-size: 18px; fill: #34405e; font-style: italic; }
.sc-svg .sc-assay-title { font-size: 19px; font-weight: 800; }
.sc-svg .sc-assay-sub { font-size: 18px; fill: #4a5470; }
.sc-svg .sc-assay-k { font-size: 18px; }
.sc-svg .sc-curtain-text { font-size: 18px; font-weight: 700; fill: #dfe5f7; }
.sc-svg .sc-small { font-size: 18px; font-weight: 700; fill: #2c2343; }
.sc-svg .sc-reg-title { font-size: 20px; font-weight: 800; fill: #3a2260; }
.sc-svg .sc-reg-label { font-size: 19px; font-weight: 800; fill: #4a3578; }
.sc-svg .sc-reg-ok { font-size: 19px; font-weight: 800; fill: #1d6b3d; }
.sc-svg .sc-tf-text { font-size: 18px; font-weight: 800; fill: #ffffff; }
.sc-svg .sc-ped-k { font-size: 18px; font-style: italic; fill: #3a2e4f; }
.sc-svg .sc-pol-text { font-size: 18px; font-weight: 800; fill: #ffffff; }
.sc-svg .sc-start-cap { font-size: 30px; font-weight: 800; fill: #ffffff; paint-order: stroke; stroke: #3a2260; stroke-width: 5px; }
html[data-theme="dark"] .sc-svg .sc-note { fill: #c7d0ea; }
.sc-badge rect { fill: #ffffff; }
.sc-badge--ok rect { stroke: #1d7a45; }
.sc-badge--bad rect { stroke: #b42318; }
.sc-svg .sc-badge-text { font-size: 19px; font-weight: 800; }
.sc-badge--ok .sc-badge-text { fill: #14522f; }
.sc-badge--bad .sc-badge-text { fill: #8a1c12; }

/* ── the reveal (CSS animations restart because the scene is redrawn on reveal) ── */
.sc-walk { animation: sc-walk .8s ease-out both; }
@keyframes sc-walk { from { transform: translate(0, 0); } to { transform: translate(var(--gx), -14px); } }
.sc-morph-out { transform-box: fill-box; transform-origin: center; animation: sc-out .7s ease-in 1.1s both; }
@keyframes sc-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.6); } }
.sc-morph-in { transform-box: fill-box; transform-origin: center; animation: sc-in .9s cubic-bezier(.3, 1.4, .5, 1) 1.5s both; }
@keyframes sc-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.sc-grow .sc-dend, .sc-grow .sc-axon { stroke-dasharray: 100; animation: sc-draw 1.2s ease-out 1.7s both; }
@keyframes sc-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.sc-sw.sc-anim .sc-sw-knob { animation: sc-knob .5s ease-in-out .6s both; }
@keyframes sc-knob { from { transform: translateX(0); } to { transform: translateX(var(--kx)); } }
.sc-sw.sc-anim .sc-lamp, .sc-sw.sc-anim .sc-sw-state, .sc-sw.sc-anim .sc-sw-track { animation: sc-fade .3s ease-out .9s both; }
@keyframes sc-fade { from { opacity: 0; } to { opacity: 1; } }
.sc-sw--on .sc-lamp { filter: drop-shadow(0 0 6px #7ef0a4); }
.sc-mrna { animation: sc-mrna 1.6s ease-out both; opacity: 0; }
@keyframes sc-mrna { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px); } }
.sc-badge { animation: sc-pop .35s ease-out 2.3s both; transform-box: fill-box; }
.is-reg-reveal .sc-badge { animation-delay: 2.8s; }
@keyframes sc-pop { from { opacity: 0; } to { opacity: 1; } }
/* regulation: the signal docks, the factor walks onto the enhancer, the polymerase runs along the gene */
.sc-signal.sc-anim { animation: sc-dock .6s ease-in both; }
@keyframes sc-dock { from { transform: translate(0, 0); } to { transform: translate(14px, 80px); } }
.sc-tf { transform: translate(150px, 340px); }
.sc-tf.sc-anim { animation: sc-tf 1.2s ease-in-out .6s both; }
.sc-tf.is-bound { transform: translate(244px, 222px); }
@keyframes sc-tf { from { transform: translate(150px, 340px); } to { transform: translate(244px, 222px); } }
.sc-pol.sc-anim { animation: sc-pol 1.1s ease-in-out 1.8s both; }
.sc-pol.is-moved { transform: translateX(170px); }
@keyframes sc-pol { from { transform: translateX(0); } to { transform: translateX(170px); } }
.sc-mrna-out { opacity: 1; }
.sc-mrna-out.sc-anim { animation: sc-mrna 1.6s ease-out both; opacity: 0; }
.sc-sel-ring { animation: sc-dash 1.2s linear infinite; }
@keyframes sc-dash { to { stroke-dashoffset: -32; } }
.sc-static *, .sc-start * { animation: none !important; }
.sc-static .sc-morph-out { opacity: 0; }
.sc-static .sc-walk { transform: translate(var(--gx), -14px); }
@media (prefers-reduced-motion: reduce) {
  .sc-svg *, .sc-choice { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .sc-sel-ring { animation: none !important; }
  .sc-mrna { animation: none !important; opacity: .9; }
}

.sc-example-svg { max-height: 460px; }
.ps-brief--drawer .sc-example-svg { max-height: 360px; }

@media (max-width: 1100px) { .sc { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .sc { position: static; grid-template-columns: 1fr; }
  .sc-view { display: block; }
  .sc-view .sc-svg { max-width: 100%; }
}
