/* =============================================================================
   BLACK SIGNAL — css/screens/quiz.css (layout only)
   The multiple-choice quiz (Security+, Network+, SecAI+). Under the frame:
   left rail cells | main panel (compact band, progress, question, answers,
   footer) | right rail cells. The answer rows share the panel's leftover
   height — the reference look.
   ============================================================================= */
@layer screens {

.secplus-quiz-shell { height: 100vh; height: 100dvh; min-height: 560px; display: flex; flex-direction: column; overflow: visible; }
.secplus-quiz-shell .top-tabs { display: none; }
.secplus-quiz-shell .bs-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 56px;
  min-height: 0;
  background: var(--sig-black);
}
/* A definite height under the frame: the answer rows share the leftover
   height; the page scrolls only on a very short window. */
body.bs-has-chrome .secplus-quiz-shell { height: calc(100vh - var(--bs-topbar-h)); height: calc(100dvh - var(--bs-topbar-h)); }

.secplus-quiz-shell .main-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.secplus-quiz-shell .panel-header.bs-band { flex: 0 0 auto; }

/* Progress: a hairline with a mono readout */
.secplus-quiz-shell .progress-strip {
  position: relative;
  height: 36px;
  display: flex; align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--sig-rule);
  background: transparent;
  overflow: hidden;
}
.secplus-quiz-shell .progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange); opacity: 0.18; }
.secplus-quiz-shell .progress-label {
  position: relative;
  font-family: var(--sig-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange);
}

/* Question: eyebrow + a real reading measure */
.secplus-quiz-shell .question-zone { padding: 26px 28px 22px; border-bottom: 1px solid var(--sig-rule); }
.secplus-quiz-shell .q-kicker {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--sig-mono); font-weight: 500; font-size: 11.5px; letter-spacing: var(--sig-eyebrow-track); text-transform: uppercase;
  color: var(--orange);
}
.secplus-quiz-shell .q-kicker-dot { width: 4px; height: 4px; background: var(--orange); opacity: 0.6; border-radius: 50%; /* round */ }
.secplus-quiz-shell .q-text {
  font-family: var(--font-body); font-weight: 500; font-size: 20px; line-height: 1.5; letter-spacing: 0;
  color: var(--sig-ink); max-width: var(--sig-measure);
}

/* Answers: four rows sharing the leftover height. A row is never shorter
   than its text; when a long question leaves too little room, the answers
   scroll inside their own area so C and D are always reachable. */
.secplus-quiz-shell .question-zone { flex: 0 0 auto; max-height: 48%; overflow-y: auto; }
.secplus-quiz-shell .choices-zone {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(min-content, 1fr));
  border-bottom: 1px solid var(--sig-rule);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--orange) transparent;
}
.secplus-quiz-shell .choice-btn { height: 100%; min-height: 64px; }
/* More answers below the fold: the footer says so. */
.secplus-quiz-shell .footer-left { display: flex; flex-direction: column; gap: 4px; }
.secplus-quiz-shell .choices-more { font-family: var(--sig-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--orange); }

/* Footer */
.secplus-quiz-shell .panel-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 28px;
  border-top: 1px solid var(--sig-rule);
  background: transparent;
}
.secplus-quiz-shell .footer-label { font-family: var(--sig-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sig-ink-mute); }
.secplus-quiz-shell .footer-right { display: flex; gap: 8px; }
.secplus-quiz-shell .action-btn { min-width: 168px; }

/* Completion / review bodies */
.secplus-quiz-shell .complete-body { padding: 40px 28px; display: flex; flex-direction: column; gap: 18px; }
.secplus-quiz-shell .complete-pct { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 9vw, 120px); line-height: 0.86; letter-spacing: -0.02em; color: var(--orange); }
.secplus-quiz-shell .complete-label { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: var(--sig-eyebrow-track); text-transform: uppercase; color: var(--sig-ink-dim); }
.secplus-quiz-shell .complete-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sig-rule); border-left: 1px solid var(--sig-rule); max-width: 720px; }
.secplus-quiz-shell .complete-stats .stat-block { padding: 16px 18px; border-right: 1px solid var(--sig-rule); border-bottom: 1px solid var(--sig-rule); display: flex; flex-direction: column; gap: 8px; }

/* ── Tablet: two zones, the right rail folds into the frame ────────────── */
@media (min-width: 600px) and (max-width: 1023px) {
  .secplus-quiz-shell .bs-grid { grid-template-columns: 150px minmax(0, 1fr); height: auto; overflow: visible; }
  .secplus-quiz-shell .right-rail { display: none; }
  .secplus-quiz-shell .choices-zone { grid-template-rows: repeat(4, minmax(64px, auto)); align-content: start; }
  .secplus-quiz-shell .question-zone { padding: 20px 20px 18px; }
  .secplus-quiz-shell .q-text { font-size: 18px; }
  .secplus-quiz-shell .panel-footer { padding: 0 20px; }
}
/* ── Phone: one column; stats become a strip under the band ───────────── */
@media (max-width: 599px) {
  .secplus-quiz-shell .bs-grid { display: flex; flex-direction: column; min-height: 0; height: auto; overflow: visible; }
  .secplus-quiz-shell .right-rail { display: none; }
  .secplus-quiz-shell .left-rail { order: 2; flex-direction: row; flex-wrap: nowrap; border-right: 0; border-bottom: 1px solid var(--sig-rule); overflow-x: auto; }
  .secplus-quiz-shell .main-panel { order: 1; }
  .secplus-quiz-shell .rail-meta { flex-direction: row; flex: 1 1 auto; min-width: 0; }
  .secplus-quiz-shell .rail-meta .meta-block { flex: 1 1 0; min-width: 0; padding: 9px 10px; gap: 2px; border-bottom: 0; border-right: 1px solid var(--sig-rule); }
  /* The shared .meta-label is 16px/0.26em — far too wide for a phone strip cell,
     which is what made "QUESTION TIMER" crowd the toggle. Scale it to the strip. */
  .secplus-quiz-shell .rail-meta .meta-label { font-size: 9px; letter-spacing: 0.1em; margin-bottom: 2px; line-height: 1.15; }
  .secplus-quiz-shell .rail-meta .meta-value { font-size: 19px; }
  /* Timer toggle: a compact pill, not a full-height filled button crowding the
     readouts. Its own tidy cell, flush right. */
  .secplus-quiz-shell .rail-controls { flex: 0 0 auto; padding: 0 10px; display: flex; align-items: center; }
  .secplus-quiz-shell .rail-controls .ctrl-btn { min-width: 0; height: 34px; padding: 0 12px; font-size: 10.5px; letter-spacing: 0.06em; white-space: nowrap; }
  .secplus-quiz-shell .question-zone { padding: 18px 16px 16px; }
  .secplus-quiz-shell .q-text { font-size: 17px; }
  .secplus-quiz-shell .choices-zone { grid-template-rows: repeat(4, minmax(60px, auto)); align-content: start; }
  .secplus-quiz-shell .panel-footer { padding: 0 16px; }
  .secplus-quiz-shell .action-btn { min-width: 0; }
}

@media (max-width: 599px) {
  .secplus-quiz-shell { height: auto; min-height: 100dvh; }
  body.bs-has-chrome .secplus-quiz-shell { height: auto; min-height: calc(100vh - var(--bs-topbar-h) - var(--bs-bottombar-h)); min-height: calc(100dvh - var(--bs-topbar-h) - var(--bs-bottombar-h)); }
}
}
