/* training.unbrick.ai: what this site adds to unbrick.ai's stylesheet (site.css, copied in by build.mjs). */

.wordmark-sub { font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: 6px; vertical-align: 0.2em; }
.foot .wordmark-sub { color: var(--on-navy); }

/* The hero: a text message from the cell lead, which is also the way into the exercise. */
.text-card { display: grid; gap: 14px; justify-self: end; width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--border); border-radius: 22px 22px 22px 6px; padding: 22px 24px 20px; color: var(--body); box-shadow: 0 30px 60px -36px rgba(20, 26, 79, 0.45); transition: transform .2s ease, border-color .2s ease; }
.text-card:hover { transform: translateY(-3px); border-color: var(--navy); color: var(--body); }
.text-from { display: flex; align-items: center; gap: 10px; font: 400 11.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fine); }
.text-from i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font: 500 12px/1 var(--sans); font-style: normal; letter-spacing: 0; }
.text-from small { margin-left: auto; font: inherit; color: var(--purple); }
.text-body { font: 400 clamp(20px, 2vw, 25px)/1.3 var(--display); color: var(--navy); }
.text-ask { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--sans); color: var(--purple); padding-top: 12px; border-top: 1px solid var(--track); }
.text-card:hover .text-ask .icon { transform: translateX(3px); }
.text-ask .icon { transition: transform .2s ease; }

/* The exercise. Without script every stage is shown, as one worked example; with script it is played a stage at a time. */
.sim { background: var(--white); color: var(--body); border-radius: var(--r); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55); overflow: hidden; }
.sim-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); background: var(--page); }
.sim-steps li { display: flex; align-items: center; gap: 10px; padding: 16px 22px; font: 400 11.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fine); border-right: 1px solid var(--border); }
.sim-steps li:last-child { border-right: 0; }
.sim-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--bar); font: 500 11px/1 var(--mono); }
.sim-steps li[aria-current="step"] { color: var(--navy); background: var(--white); }
.sim-steps li[aria-current="step"] span { background: var(--navy); border-color: var(--navy); color: #fff; }
.sim-steps li.done span { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.sim-stage { padding: clamp(22px, 3vw, 36px); }
.sim-stage + .sim-stage { border-top: 1px solid var(--border); }
.sim.live .sim-stage { display: none; border-top: 0; }
.sim.live .sim-stage.on { display: block; }
.sim-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font: 400 12px/1.5 var(--mono); letter-spacing: 0.04em; color: var(--fine); padding-bottom: 16px; border-bottom: 1px solid var(--track); }
.sim-head b { color: var(--purple); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; }
.sim-line { font: 400 clamp(21px, 2.2vw, 27px)/1.25 var(--display); color: var(--navy); margin: 22px 0 16px; }
.sim-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sim-choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sim-choices button { display: grid; gap: 6px; text-align: left; background: var(--page); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; font: inherit; color: var(--body); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.sim-choices button:hover { border-color: var(--navy); }
.sim-choices button b { font: 500 15.5px/1.35 var(--sans); color: var(--navy); }
.sim-choices button small { font: 400 12px/1.4 var(--mono); color: var(--fine); }
.sim-choices button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }
.sim-choices button[aria-pressed="true"] b { color: #fff; }
.sim-choices button[aria-pressed="true"] small { color: var(--on-navy); }
.sim-found { display: grid; gap: 10px; margin-top: 18px; }
.sim-found p { background: var(--note-bg); color: var(--note-ink); border-radius: 14px; padding: 14px 18px; font-size: 15px; }
.sim-found p b { font-weight: 600; }
.sim.live .sim-found p { display: none; }
.sim.live .sim-found p.on { display: block; }
.sim-next { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.sim-next .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.sim-hint { font: 400 12px/1.5 var(--mono); color: var(--fine); }
.sim-link { color: var(--purple); border-bottom: 1px solid var(--purple); font-weight: 500; }
.sec-dark .sim a.sim-link { color: var(--purple); border-bottom-color: var(--purple); }
.sim-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 8px 0 0; }
.sim-out > div { padding: 18px 0; border-bottom: 1px solid var(--track); }
.sim-out dt { font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.sim-out dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.sim-evidence { display: grid; gap: 0; margin-top: 6px; }
.sim-evidence li { position: relative; padding: 16px 0 16px 38px; border-bottom: 1px solid var(--track); }
.sim-evidence li::before { content: '\2713'; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #E3F0EA; color: var(--green); font: 600 13px/1 var(--sans); }
.sim-evidence li.no::before { content: '\2715'; background: #F6E3E2; color: var(--red); }
.sim-evidence b { display: block; color: var(--ink); font-weight: 500; }
.sim-evidence small { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.sim-coach { margin-top: 22px; background: var(--navy); color: #fff; border-radius: 14px; padding: 20px 22px; }
.sim-coach span { display: block; font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.sim-coach q { font: 400 clamp(19px, 2vw, 24px)/1.3 var(--display); quotes: none; }
.sim-compare { margin-top: 26px; overflow-x: auto; }
.sim-compare h3 { font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.sim-compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sim-compare th, .sim-compare td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--track); }
.sim-compare thead th { font: 400 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fine); border-top: 0; }
.sim-compare tbody th { font-weight: 500; color: var(--navy); min-width: 150px; }
.sim-caption { color: var(--on-navy); max-width: 100ch; }

/* Where it fits */
.fits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fit { display: flex; flex-direction: column; background: var(--page); border: 1px solid var(--border); border-radius: var(--r); padding: 26px 28px; }
.fit h3 { margin-bottom: 10px; }
.fit p { font: 400 19px/1.35 var(--display); color: var(--navy); }
.fit a { margin-top: auto; padding-top: 18px; font-weight: 500; }
.fit-live { background: var(--navy); border-color: var(--navy); }
.fit-live .tag { color: var(--gold); }
.fit-live h3, .fit-live p, .fit-live a { color: #fff; }
.fit-live a:hover { color: var(--gold); }

.fit small { display: block; margin-top: auto; padding-top: 18px; font: 400 12px/1.5 var(--mono); color: var(--fine); }
.scen .fit { background: var(--navy-deep); border: 0; border-top: 3px solid var(--gold); border-radius: 0; }
.scen .fit .tag { color: var(--on-navy-2); }
.scen .fit h3 { color: var(--gold); font-size: 20px; }
.scen .fit p { color: #fff; }
.scen .fit small { color: var(--on-navy); }

@media (max-width: 900px) {
  .text-card { justify-self: start; }
  .fits { grid-template-columns: minmax(0, 1fr); }
  .sim-choices, .sim-choices.two, .sim-out { grid-template-columns: minmax(0, 1fr); }
  .sim-steps li { padding: 12px 10px; justify-content: center; font-size: 0; gap: 0; }
  .sim-steps span { font-size: 11px; }
}

/* Six links in the header: the name stays on one line and the tagline is left to the footer. */
.top .wordmark { white-space: nowrap; }
.top .logo-tag { display: none; }

/* People from the exercise, on film. */
.clip { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.clip video { display: block; width: 100%; aspect-ratio: 832 / 480; background: var(--navy-deep); }
.clip figcaption { display: grid; gap: 6px; padding: 16px 20px 18px; }
.clip figcaption b { font: 600 15.5px/1.35 var(--sans); color: var(--navy); }
.clip figcaption span { font-size: 14.5px; line-height: 1.5; color: var(--body); }
.clip-hero { justify-self: end; width: 100%; max-width: 460px; box-shadow: 0 30px 60px -36px rgba(20, 26, 79, 0.45); }
.clip-hero figcaption span { font: 400 11.5px/1.5 var(--mono); letter-spacing: 0.04em; color: var(--fine); }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* On the training site the hero's buttons sit under the paragraph they belong to. */
.hero-foot { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-foot .lead { max-width: 70ch; }

/* The scenario cards on a light section, and the two offers after the debrief. */
.sec-soft .scen .fit { background: var(--page); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 0; }
.sec-soft .scen .fit:nth-child(-n+4) { border-top-color: var(--gold); }
.sec-soft .scen .fit .tag { color: var(--purple); }
.sec-soft .scen .fit h3 { color: var(--navy); }
.sec-soft .scen .fit p { color: var(--navy); }
.sec-soft .scen .fit small { color: var(--fine); }
.band { padding: clamp(40px, 5vw, 64px) 0; }
.offer { display: flex; flex-direction: column; gap: 4px; background: var(--navy); color: var(--on-navy); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); transition: transform .2s ease; }
.offer:hover { transform: translateY(-3px); color: var(--on-navy); }
.offer .tag { color: var(--gold); }
.offer h3 { font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--display); color: #fff; margin-bottom: 8px; }
.offer p { font-size: 15.5px; }
.offer-go { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--gold); }
.sim-evidence li.na::before { content: '\2013'; background: var(--pill); color: var(--muted); }
.sim-next .btn { max-width: 100%; white-space: normal; text-align: left; }

@media (max-width: 900px) {
  .clips { grid-template-columns: minmax(0, 1fr); }
  .clip-hero { justify-self: start; }
}

.clip figcaption small { font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.clip-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--track); font: 500 15px/1.2 var(--sans); color: var(--purple); }
.clip-go:hover .icon { transform: translateX(3px); }
.clip-go .icon { transition: transform .2s ease; }
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 4vw, 56px); }
.hero-foot { margin-top: clamp(28px, 3.5vw, 44px); }
@media (max-width: 360px) { .top .wordmark-sub { display: none; } }
