/* /practice, the free courses.
 *
 * Additive only. Everything this file can borrow from nbop.css it borrows:
 * .wrap, .pagehead, .eyebrow, .standfirst, .action and the :root tokens are all
 * defined there and are not redefined here. What is left is the handful of
 * shapes the courses need and the rest of the site does not: a lesson rail, a
 * lesson body, the firewall note, the next-step cards and the book block.
 *
 * Class names are namespaced under their block where nbop.css already uses the
 * bare word. .step in particular exists there for something else, so the course
 * version is only ever addressed as .nextsteps .step.
 */

/* ---------- course layout ---------- */

.coursewrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 60rem) {
  .coursewrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
}

/* ---------- the rail ---------- */

/* Free to browse, nothing locked. A course that gates lesson four has decided
   its reader is a lead rather than a reader. */
.rail {
  position: sticky;
  top: 1.5rem;
  font-size: .9rem;
  border-right: 1px solid var(--rule-soft);
  padding-right: 1.25rem;
}
@media (max-width: 60rem) {
  .rail {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 1.25rem;
  }
}

.rail .railtop {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--signal);
  margin-bottom: 1rem;
}

.rail .raildiag {
  display: block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: .7rem .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: 1.5rem;
}
.rail .raildiag:hover, .rail .raildiag:focus { background: #0D1E38; }

.rail .railparts { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rail .part { margin-bottom: 1.4rem; }
.rail .part h3 {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .55rem;
}
.rail .part ul { list-style: none; margin: 0; padding: 0; }
.rail .part li { margin: 0; }
.rail .part a {
  display: block;
  padding: .32rem 0 .32rem .75rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
}
.rail .part a:hover, .rail .part a:focus { color: var(--ink); border-left-color: var(--ink-faint); }
.rail .part a.on {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--signal);
}

/* ---------- the lesson ---------- */

.lesson { min-width: 0; padding-bottom: 3rem; }
.lesson > h1 { margin: .35rem 0 0; }
.lesson .standfirst { margin-top: 1rem; }

.lesson .prose { max-width: var(--measure); margin-top: 2rem; }
.lesson .prose p { margin: 0 0 1.15rem; line-height: 1.62; }
.lesson .prose p:first-child { font-size: 1.06rem; }

.lesson .instrument {
  max-width: var(--measure);
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--paper-warm);
  border-left: 3px solid var(--signal);
}
.lesson .instrument h2 {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 .3rem;
}
.lesson .instrument h2::before { content: none; }
.lesson .instrument p { margin: 0; font-weight: 600; }

/* ---------- video ---------- */

/* The video is never the only carrier of a lesson. Everything it says is in the
   prose above it, so a reader who never presses play loses nothing, and the
   transcript is on the page as text rather than only as a caption track. */
.lessonvideo { margin: 2rem 0 0; max-width: var(--measure); }
.lessonvideo video {
  width: 100%; height: auto; display: block;
  background: var(--navy);
  aspect-ratio: 16 / 9;
}
/* Caption text is the one thing on the page that has to survive a phone at
   arm's length, so it is set larger than the browser default and on a solid
   ground rather than the translucent one Chrome ships. */
.lessonvideo video::cue {
  font-family: var(--ui);
  font-size: .92em;
  line-height: 1.4;
  background: rgba(13, 30, 56, .88);
  color: #fff;
}
.lessonvideo figcaption { margin-top: .7rem; font-size: .92rem; }
.lessonvideo .vmeta { margin: 0 0 .6rem; color: var(--ink-faint); line-height: 1.5; }
.lessonvideo summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; }
.lessonvideo summary:hover { color: var(--ink); }
.lessonvideo .transcript {
  margin-top: .75rem; padding: 1.1rem 1.25rem;
  background: var(--paper-warm);
  line-height: 1.65; color: var(--ink-soft);
}
.lessonvideo .transcript p { margin: 0 0 .9rem; }
.lessonvideo .transcript p:last-child { margin-bottom: 0; }

/* ---------- moving through ---------- */

.lessonnav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
.lessonnav a {
  text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.3;
  max-width: 45%;
}
.lessonnav a span {
  display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; margin-bottom: .2rem;
}
.lessonnav .next { text-align: right; margin-left: auto; }
.lessonnav a:hover, .lessonnav a:focus { color: var(--signal-ink); }

/* ---------- the firewall ---------- */

/* Not small print. This is the reason the credential is worth anything, so it
   is set as a statement at reading size. */
.firewall {
  max-width: var(--measure);
  margin: 3rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  background: var(--paper);
}
.firewall h2 {
  font-size: .95rem; margin: 0 0 .5rem; letter-spacing: 0; text-transform: none;
}
.firewall h2::before { content: none; }
.firewall p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* ---------- next steps ---------- */

.nextsteps { margin: 3rem 0 0; max-width: var(--measure); }
.nextsteps h2 { margin-bottom: 1.25rem; }
.nextsteps .steps { display: grid; gap: .85rem; }
.nextsteps .step {
  display: block; text-decoration: none;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.nextsteps .step:hover, .nextsteps .step:focus { border-color: var(--ink-faint); }
.nextsteps .step.primary { border-left: 3px solid var(--signal); background: var(--paper-warm); }
.nextsteps .step .n {
  display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .35rem;
}
.nextsteps .step strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.nextsteps .step .sub { display: block; margin-top: .4rem; color: var(--ink-soft); line-height: 1.55; }
.nextsteps .alsoread { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- the book ---------- */

.bookblock {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem;
  align-items: start;
  margin: 3rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
@media (max-width: 34rem) { .bookblock { grid-template-columns: 1fr; } }
.bookblock .cover img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.bookblock h2 { margin: .2rem 0 .6rem; }
.bookblock h2::before { content: none; }
.bookblock .buy { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .75rem; }
.bookblock .notrequired { font-size: .9rem; color: var(--ink-faint); margin: 0; line-height: 1.55; }

/* ---------- course home ---------- */

.spine {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700;
  margin-top: 1rem;
}
.headactions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.partblock { margin: 3rem 0 0; }
.partblock .partblurb { color: var(--ink-soft); max-width: var(--measure); margin-top: -.25rem; }
.lessonlist { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.lessonlist a {
  display: block; text-decoration: none; color: var(--ink);
  padding: .85rem 1.1rem; border: 1px solid var(--rule-soft); background: var(--paper);
}
.lessonlist a:hover, .lessonlist a:focus { border-color: var(--ink-faint); }
.lessonlist strong { display: block; }
.lessonlist span { display: block; margin-top: .25rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

/* ---------- the index of courses ---------- */

.courselist { margin: 3rem 0 0; }
.courses { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.courses li { border: 1px solid var(--rule); padding: 1.35rem 1.5rem; background: var(--paper); }
.courses .vol {
  display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .35rem;
}
.courses strong { display: block; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.courses .sub { display: block; margin-top: .35rem; color: var(--ink-soft); }
.courses .spine { font-size: 1rem; margin-top: .85rem; }
.courses .go { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; }
.courses .live { border-left: 3px solid var(--signal); }
.courses .soon { background: var(--paper-warm); }
.courses .soon strong { color: var(--ink-soft); }
.courses .status { display: block; margin-top: .85rem; font-size: .9rem; color: var(--ink-faint); }

/* ============ the diagnostic ============ */

/* .disclosure, .visually-hidden and .field come from nbop.css and are not
   redefined. Everything below is specific to the instrument. */

.diagnosticwrap { max-width: 60rem; }
.diagnosticwrap .privacy {
  margin-top: 1rem; font-size: .95rem; color: var(--ink-soft);
  max-width: var(--measure); line-height: 1.6;
}

.qblock { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--rule); }
.qblock:first-of-type { border-top: 0; padding-top: 0; }
.qblock > p { max-width: var(--measure); color: var(--ink-soft); line-height: 1.6; }

.hint { font-size: .92rem; color: var(--ink-faint); line-height: 1.55; }

.field { display: block; margin: 1.25rem 0 0; max-width: var(--measure); }
.field > span:first-child { display: block; font-weight: 600; margin-bottom: .35rem; }
.field textarea, .field input[type="number"], .field input[type="text"] {
  width: 100%; font: inherit; padding: .6rem .75rem;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
}
.field.narrow input[type="number"] { max-width: 9rem; }
.field textarea:focus, .field input:focus, .board input:focus, .board select:focus {
  outline: 2px solid var(--signal); outline-offset: 1px;
}

.colguide { max-width: var(--measure); margin: 1.25rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.colguide li { margin-bottom: .5rem; line-height: 1.55; }

/* ---------- the board ---------- */

.boardscroll { overflow-x: auto; margin-top: 1.5rem; }
.board { width: 100%; border-collapse: collapse; min-width: 44rem; }
.board th[scope="col"] {
  text-align: left; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; padding: .7rem .9rem;
  border-bottom: 2px solid var(--navy);
}
.board tbody th { text-align: left; font-weight: 400; padding: .9rem .9rem; vertical-align: top; }
.board tbody td { padding: .9rem .9rem; vertical-align: top; }
.board tbody tr + tr th, .board tbody tr + tr td { border-top: 1px solid var(--rule-soft); }
.board .dname { display: block; font-weight: 600; }
.board .dacc { display: block; font-size: .88rem; color: var(--ink-faint); line-height: 1.45; margin-top: .2rem; max-width: 22rem; }
.board select, .board input[type="number"], .board input[type="text"] {
  font: inherit; padding: .5rem .6rem; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink);
}
.board select, .board input[type="number"] { width: 5rem; }
.board input[type="text"] { width: 100%; min-width: 12rem; }
.board .pct { color: var(--ink-faint); }

@media (max-width: 46rem) {
  .board { min-width: 0; }
  .board thead { display: none; }
  .board tbody tr { display: block; border: 1px solid var(--rule); padding: .9rem 1rem; margin-bottom: .75rem; }
  .board tbody th, .board tbody td { display: block; padding: .5rem 0; border: 0; }
  .board tbody td::before {
    content: attr(data-label); display: block;
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-faint); margin-bottom: .25rem;
  }
  .board tbody tr + tr th, .board tbody tr + tr td { border-top: 0; }
}

.tally { margin-top: 1.25rem; font-size: 1.05rem; }
.tally b { font-size: 1.35rem; font-family: var(--display); }
.tally.off b { color: #9b3b2f; }

/* ---------- bands ---------- */

.bandset { border: 0; padding: 0; margin: 1.75rem 0 0; }
.bandset legend { font-weight: 600; padding: 0; margin-bottom: .5rem; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--rule); padding: .45rem .8rem; cursor: pointer;
  background: var(--paper);
}
.radio:hover { border-color: var(--ink-faint); }
.radio input { margin: 0; }
.radio:has(input:checked) { border-color: var(--signal); background: var(--paper-warm); font-weight: 600; }

/* Honeypot. Off screen rather than display:none, because some bots skip
   anything that is hidden and fill in everything that is not. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submitrow { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--rule); }
.submitrow .hint { margin-top: .75rem; }

/* ============ the reading ============ */

.readingbox { margin-top: 1rem; }
.readinghead {
  font-family: var(--display); font-size: 1.9rem; line-height: 1.22;
  margin: .35rem 0 1.5rem; max-width: 34rem;
}
.readinghead::before { content: none; }

.yousaid { background: var(--paper-warm); padding: 1.25rem 1.5rem; margin-bottom: 2rem; max-width: var(--measure); }
.yousaid h3 { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .35rem; }
.yousaid h3 + .quote + h3 { margin-top: 1rem; }
.quote { margin: 0; font-size: 1.1rem; line-height: 1.5; }

.readingtable { width: 100%; border-collapse: collapse; margin-bottom: 2.5rem; }
.readingtable th[scope="col"], .readingtable thead th {
  text-align: left; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; padding: .7rem .9rem; border-bottom: 2px solid var(--navy);
}
.readingtable td { padding: .8rem .9rem; vertical-align: top; }
.readingtable tbody tr + tr td { border-top: 1px solid var(--rule-soft); }
.readingtable .blank { color: #9b3b2f; font-style: italic; }
@media (max-width: 42rem) {
  .readingtable thead { display: none; }
  .readingtable tbody tr { display: block; border: 1px solid var(--rule); padding: .75rem 1rem; margin-bottom: .6rem; }
  .readingtable td { display: block; padding: .35rem 0; border: 0; }
  .readingtable td::before {
    content: attr(data-label) ': '; font-size: .68rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-faint);
  }
  .readingtable tbody tr + tr td { border-top: 0; }
}

.findinghead { margin: 0 0 1.25rem; }

.finding {
  border: 1px solid var(--rule); border-left: 3px solid var(--rule);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem; max-width: var(--measure);
  background: var(--paper);
}
.finding h4 { margin: 0 0 .6rem; font-size: 1.12rem; line-height: 1.35; }
.finding p { margin: 0; color: var(--ink-soft); line-height: 1.62; }
.finding.sev-primary { border-left-color: var(--signal); background: var(--paper-warm); }
.finding.sev-secondary { border-left-color: var(--navy); }
.finding.sev-note { border-left-color: var(--rule); }
.finding.closing { border-left-color: var(--navy); background: var(--paper-warm); margin-top: 2rem; }
.lessonlink { display: inline-block; margin-top: .85rem; font-weight: 600; }

/* ---------- capture, at the output ---------- */

.capture {
  margin: 2.5rem 0 0; padding: 1.5rem; max-width: var(--measure);
  border: 1px solid var(--rule); border-top: 3px solid var(--navy);
}
.capture h3 { margin: 0 0 .5rem; }
.capture h3::before { content: none; }
.capture .muted { color: var(--ink-soft); line-height: 1.6; }
.capturerow { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .85rem; }
.capturerow input[type="email"] {
  flex: 1 1 16rem; font: inherit; padding: .6rem .75rem;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
}
.capture .consent { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.5; color: var(--ink-soft); }
.capture .consent input { margin-top: .28rem; }

.again { margin: 2.5rem 0 0; }
.loading { color: var(--ink-faint); }
