/* The first client meeting, course chrome.
 *
 * Sits on top of tokens.css and adds only what a multipage course needs that
 * the website did not: a sticky contents rail, prev/next feet, a step ribbon,
 * a quotation block for transcript evidence, and the two callouts this
 * material leans on (say-this and never-say-this).
 *
 * Nothing here redefines a colour. Every value comes from tokens.css. */

/* --- masthead ---------------------------------------------------------- */
.mast { border-bottom: 1px solid var(--rule); background: var(--paper); }
.mast .shell { display: flex; align-items: center; gap: 15px; padding-block: 15px; }
.mast img { width: 30px; height: 30px; display: block; }
.mast .who { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.mast .who b { display: block; color: var(--ink); font-weight: 500; letter-spacing: .12em; }
.mast nav { margin-left: auto; font-family: var(--label); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.mast nav a { color: var(--ink-3); text-decoration: none; }
.mast nav a:hover { color: var(--blue); }

/* --- the page head, with its step number ------------------------------- */
.head { padding-block: clamp(38px, 6vw, 70px) clamp(26px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.head .step { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 15px; }
.head p.stand { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; margin-top: 20px; max-width: 54ch; }

section { padding-block: clamp(34px, 5vw, 58px); border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
section > .shell > h2 { margin-bottom: 22px; }
section > .shell > h3 { margin: 34px 0 13px; }

/* --- the ribbon of the eleven moves, shown on every page ---------------- */
.ribbon { display: flex; flex-wrap: wrap; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 8px; }
.ribbon a {
  flex: 1 1 auto; min-width: 74px; background: var(--paper); padding: 9px 10px;
  font-family: var(--label); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; text-align: center; line-height: 1.35;
}
.ribbon a:hover { background: var(--paper-2); color: var(--ink); }
.ribbon a[aria-current] { background: var(--navy-800); color: var(--on-navy); }

/* --- transcript evidence ------------------------------------------------
 * A real quotation from a recording. It carries who said it and when, because
 * an unattributed quote in training material is indistinguishable from one
 * somebody invented, and this project has had that problem. */
.eq { margin: 0 0 22px; border-left: 2px solid var(--brass); padding: 3px 0 3px 20px; max-width: var(--measure); }
.eq p { font-family: var(--display); font-weight: 300; font-size: var(--step-1); line-height: 1.42; color: var(--ink); margin-bottom: 9px; }
.eq cite {
  font-style: normal; font-family: var(--label); font-size: 10.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3);
}
.eq cite b { color: var(--brass); font-weight: 500; }
.plate .eq p { color: var(--on-navy); }
.plate .eq { border-left-color: var(--brass-lite); }

/* --- the two callouts this material runs on ---------------------------- */
.say { border: 1px solid var(--rule); background: var(--paper-2); padding: 20px 22px; margin: 0 0 22px; max-width: var(--measure); }
.say > b {
  display: block; font-family: var(--label); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 11px; font-weight: 500; color: var(--brass);
}
.say p { font-family: var(--display); font-weight: 300; font-size: var(--step-1); line-height: 1.44; margin-bottom: 0; color: var(--ink); }
.say p + p { margin-top: 11px; }
.say.never { background: var(--paper); border-color: var(--ink-3); }
.say.never > b { color: var(--ink-3); }
.say.never p { font-family: var(--body); font-size: var(--step-0); color: var(--ink-2); }

/* --- prev / next ------------------------------------------------------- */
.feet { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); margin-top: 0; }
@media (min-width: 640px) { .feet { grid-template-columns: 1fr 1fr; } }
.feet a { background: var(--paper); padding: 22px 24px; text-decoration: none; display: block; }
.feet a:hover { background: var(--paper-2); }
.feet a span { display: block; font-family: var(--label); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.feet a b { font-family: var(--display); font-weight: 300; font-size: var(--step-1); color: var(--ink); letter-spacing: -.02em; }
.feet a.next { text-align: right; }
.feet a.none { pointer-events: none; opacity: .38; }

footer.foot { padding-block: 30px; }
footer.foot p { font-family: var(--label); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); max-width: none; }

/* --- lists, given the flex-bullet treatment the repo requires ----------- */
ul.pts { list-style: none; margin: 0 0 20px; padding: 0; max-width: var(--measure); }
ul.pts li { display: flex; gap: 12px; margin-bottom: 11px; line-height: 1.55; }
ul.pts li > .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-top: 9px; }

/* --- the contents grid on the index ------------------------------------ */
/* Cell separators are drawn per-cell rather than by showing a dark container
 * through 1px gaps. With an odd number of cards the last row leaves an empty
 * grid slot, and the container-background trick renders that slot as a solid
 * block that reads as a broken tile. tokens.css carries the same warning for
 * .stats, and this grid shipped with the bug before it was caught in QA. */
.toc { display: grid; gap: 1px; }
@media (min-width: 720px) { .toc { grid-template-columns: 1fr 1fr; } }
.toc a { background: var(--paper); padding: 21px 22px; text-decoration: none; display: block; box-shadow: 0 0 0 1px var(--rule); }
.toc a:hover { background: var(--paper-2); }
.toc a span { font-family: var(--label); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--brass); }
.toc a b { display: block; font-family: var(--display); font-weight: 300; font-size: var(--step-1); color: var(--ink); margin: 7px 0 6px; letter-spacing: -.02em; line-height: 1.24; }
.toc a em { font-style: normal; font-size: 14px; color: var(--ink-2); line-height: 1.5; display: block; }

/* --- the quiz at the end of every move -------------------------------- */
.quiz { border-top: 3px solid var(--navy-800); margin-top: 8px; padding-top: 30px; }
.quiz > .label { display: block; margin-bottom: 10px; }
.quiz h2 { margin-bottom: 8px; }
.quiz .intro { color: var(--ink-2); max-width: 60ch; margin-bottom: 30px; }
.q { border: 1px solid var(--rule); background: var(--paper-2); padding: 26px 28px; margin-bottom: 18px; }
.q > p.stem { font-family: var(--display); font-weight: 300; font-size: var(--step-1);
              line-height: 1.35; margin: 0 0 18px; color: var(--ink); max-width: none; }
.q ol { list-style: none; margin: 0; padding: 0; }
.q li { margin-bottom: 9px; }
.q button {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 15.5px;
  padding: 13px 16px; border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); cursor: pointer; line-height: 1.45;
}
.q button:hover:not([disabled]) { border-color: var(--brass); background: #fff; }
.q button[disabled] { cursor: default; }
.q button.right { border-color: #1B7A43; background: #EFF8F2; }
.q button.wrong { border-color: #B4472E; background: #FBF0ED; opacity: .85; }
.q button b { font-family: var(--label); font-size: 10.5px; letter-spacing: .14em;
              text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 5px; }
.q .why { display: none; margin: 14px 0 0; padding: 15px 17px; background: var(--paper);
          border-left: 3px solid var(--brass); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.q .why.on { display: block; }
.q .why b { color: var(--ink); }
.quiz .score { font-family: var(--label); font-size: 12px; letter-spacing: .13em;
               text-transform: uppercase; color: var(--ink-3); margin-top: 22px; }

/* --- the embedded assistant ------------------------------------------- */
#askbtn {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  font-family: var(--label); font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  padding: 15px 22px; border: 0; border-radius: 999px; background: var(--navy-800);
  color: var(--on-navy); cursor: pointer; box-shadow: 0 10px 30px rgba(9,25,48,.28);
}
#askbtn:hover { background: var(--navy-700); }
#askpanel {
  position: fixed; right: 24px; bottom: 24px; z-index: 61; width: min(420px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 48px)); background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 26px 70px rgba(9,25,48,.3); display: none; flex-direction: column; overflow: hidden;
}
#askpanel.on { display: flex; }
#askpanel header {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: var(--navy-800); color: var(--on-navy);
  font-family: var(--label); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
}
#askpanel header span { flex: 1; }
#askpanel header button { background: none; border: 0; color: var(--on-navy-2); font-size: 20px;
                          line-height: 1; cursor: pointer; padding: 0 2px; }
#askpanel iframe { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 640px) { #askpanel { right: 8px; bottom: 8px; height: calc(100vh - 16px); } }

/* --- the film that opens each move ------------------------------------ */
.film { border: 1px solid var(--rule); background: var(--navy-900); }
.film video { display: block; width: 100%; height: auto; background: #000; }
.film .meta {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 17px;
  background: var(--paper); border-top: 1px solid var(--rule);
  font-family: var(--label); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
}
.film .meta b { color: var(--ink); font-weight: 500; letter-spacing: .1em; }
.film .meta span { margin-left: auto; }
.film .meta a { color: var(--blue); text-decoration: none; }
