/* /practice-questions/ only, after styles.css, which draws the cards, choices, feedback, pills and panels. The page is the
   command panel with the home page's drill card; .sample-js is set by src/sample.js before the first paint. */

/* the cards cast a shadow; it ends with the panel */
.sample-band { overflow: hidden; overflow: clip; }
.sample { padding-top: 48px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.sample-intro h1 { margin-top: 0; font-size: clamp(34px, 3.9vw, 48px); line-height: 1.08; }
/* the two quiet lines: under the lead, and with the result */
.sample-same { margin: 10px 0 0; font-size: 14px; color: var(--on-command-muted); text-wrap: pretty; }
.sample-end .sample-same { margin-top: 14px; }
.sample .drill { max-width: none; }
.sample-q, .sample-end, .sample-bar { scroll-margin-top: 14px; }
.sample .drill-head h3 { margin: 0; font: inherit; }
/* bold is the one weight the page has loaded already, so an answer asks for no file */
.sample .verdict, .sample-end b { font-weight: 700; }
.sample .nb { white-space: nowrap; }
/* a question can have lines of its own; a long one fills its lines */
.sample .drill-q, .sample-why > p { white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
.sample .drill-q code { font: 600 .92em/1.3 var(--font-mono); background: var(--command-deep); border: 1px solid var(--command-line); border-radius: 6px; padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* the words sit level with their letter */
.sample .choice > .key + span { padding-top: 2px; overflow-wrap: anywhere; min-width: 0; }
.sample-why .chips { list-style: none; padding: 0; margin: 8px 0 0; }
.sample-why .chips li { max-width: 100%; }
.sample-why .chip-dark { display: inline-flex; align-items: center; min-height: 44px; border-radius: 16px; padding: 8px 14px; line-height: 1.4; overflow-wrap: anywhere; }
.sample-why p.label-dark { margin-top: 14px; font-size: 11px; color: var(--on-command-muted); }

/* the Core switch and the count */
.sample-bar { display: none; }
.sample .filters { margin: 0; gap: 8px; }
.sample .filter { color: var(--on-command); border-color: var(--command-line); padding: 0 16px; }
.sample .filter:hover { border-color: var(--olive-light); }
.sample .filter .n { opacity: 1; color: var(--on-command-muted); }
.sample .filter[aria-pressed="true"] { background: var(--command-raised); color: var(--on-command); border-color: var(--signal); }
.sample-progress { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--on-command); }
.sample-ticks { flex: 1 1 100%; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.sample-ticks span { height: 6px; border-radius: 3px; background: var(--command-line); }
.sample-ticks .is-now { background: var(--signal); }
.sample-ticks .is-right { background: var(--ok-on-dark); }
.sample-ticks .is-wrong { background: var(--bad-on-dark); }

/* without JavaScript: the whole list, each answer under its question */
.sample-core h2 { margin: 0 0 16px; font-size: 24px; }
.sample-core + .sample-core { margin-top: 48px; }
.sample-q + .sample-q { margin-top: 20px; }
.sample-answer summary { cursor: pointer; padding: 10px 0; margin: -10px 0; }
.sample-answer .sample-right { font-weight: 700; }
html:not(.sample-js) .sample-stage { max-width: 760px; }
html:not(.sample-js) .sample .choice[disabled] { opacity: 1; }

/* with it: one question at a time */
.sample-js .sample-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.sample-js .sample-core:not(.is-current), .sample-js .sample-q:not(.is-current), .sample-js .sample-answer { display: none; }
.sample-js .sample-core h2 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sample-js .sample-q + .sample-q { margin-top: 0; }
.sample-after { scroll-margin: 14px 0 20px; }
.sample-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.sample-nav .sample-next { margin-left: auto; }
.sample-nav [hidden], .sample-end[hidden] { display: none; }

/* the result */
.sample-end h2 { margin: 0; font: 400 clamp(26px, 3.4vw, 38px)/1.15 var(--font-display); }
.sample-end ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.sample-end b { white-space: nowrap; }
.sample-end .sample-nav { justify-content: flex-start; }

/* the pass: its words, the home page's panel and "Good to know", then the quiet links (beside the panel where there is room).
   "Good to know" is on the light ground here, so it takes the light ground's colours. */
.sample-pass { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 72px; }
.sample-pass .price-panel { color: var(--on-command); }
.sample-pass .good-to-know h3 { color: var(--ink); }
.sample-pass .good-to-know li { color: var(--muted); border-left-color: var(--action); }
.sample-pass .note { margin: 0; }

@media (min-width: 601px) { .sample .drill-q code { white-space: nowrap; } }
@media (min-width: 960px) {
  .sample-js .sample { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .sample-js .sample-bar { margin-top: 36px; }
  .sample-pass { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr auto auto auto 1fr; gap: 0 56px; }
  .sample-pass .sample-offer { grid-area: 2 / 1; }
  .sample-pass .good-to-know { grid-area: 3 / 1; margin-top: 32px; }
  .sample-pass .sample-more { grid-area: 4 / 1; margin-top: 28px; }
  .sample-pass .price-panel { grid-area: 1 / 2 / -1 / 3; align-self: center; }
}
@media (max-width: 600px) {
  /* a phone: the first question and its choices fit on the first screen (375x812), so the two rows of menu links give way on
     this page; the lessons, the labs and the rest are in the footer, and the header's button still leads to the pricing */
  .site-nav { display: none; }
  .sample { padding-top: 16px; padding-bottom: 40px; gap: 12px; }
  .sample-intro h1 { margin-bottom: 8px; font-size: clamp(20px, 6.4vw, 30px); }
  .sample-intro { font-size: 15px; line-height: 1.42; }
  .sample-intro .lead, .sample-intro .sample-same { display: inline; font-size: inherit; line-height: inherit; }
  .sample-js .sample-bar { margin-top: 12px; gap: 10px; }
  .sample .filter { padding: 0 12px; gap: 6px; }
  .sample-progress { font-size: 13px; }
  .sample-code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sample .drill-head { padding: 10px 14px; font-size: 11px; letter-spacing: .02em; }
  .sample .drill-body { padding: 14px 14px 18px; }
  .sample .drill-q { font-size: 17px; line-height: 1.36; }
  .sample .choices { gap: 8px; margin-top: 12px; }
  .sample .choice { padding: 10px 12px; min-height: 48px; gap: 10px; font-size: 15.5px; }
  .sample .choice .key { width: 26px; height: 26px; }
  .sample .choice > .key + span { padding-top: 1px; }
  .sample .feedback { padding: 14px; }
  .sample-nav .btn { flex: 0 1 auto; padding: 12px 16px; }
  .sample-pass { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .sample-pass .price-panel { padding: 24px 22px; }
  .sample-pass .price { flex-wrap: wrap; gap: 4px 10px; }
  .sample-pass .price .amt { font-size: 56px; }
}
