/* ExamStudyAid: the two practice pages, apple style (owner, 2026-10-24: "/apple-style topic questions and mcq BUT DEMO
   ONLY", then "make the answer box nicer in the tqs" and "do it"). A layer loaded by nb_question_index.html and
   nb_mcq_index.html after their own sheets (before the reading sheet, which stays last), every rule under the two
   practice columns, .nb-qg-column (topic questions) and .nb-mcq-column (multiple choice). The chapter rail is not
   touched. What it does:
   - the two pages are one segmented switch, the Premium card's .nb-switch (a grey track, the page you are on raised in
     white), not underlined tabs; the labels are in sentence case in the templates;
   - the "go in order" note keeps its picture, its title in the one ink, no icon on its kicker, and a blue tint for
     "Start at question 1", so the page keeps one solid blue button;
   - multiple choice: the options are raised rows with no edge, blue under the pointer; an answered pick and answer in
     their own wash, no edge; the response says Correct or Not quite in its colour, with no disc and no heading icons;
     Q01 in the ink;
   - topic questions: the marks in the soft ink; the answer box is a sheet of paper to write on (below), the Calculator
     a quiet tint with no icon in its foot; "View model answer" without its book, the AI line soft without its (i).
   Tokens only, both themes; no edge, no glow, no capsule. */

html body :is(.nb-mcq-column, .nb-qg-column) {
  --pl-soft: var(--nb-soft, var(--nb-ink));
  --pl-row: var(--nb-paper-raised);
  --pl-row-on: color-mix(in srgb, var(--nb-blue) 9%, var(--nb-paper-raised));
}

/* ── The two pages as one segmented switch (the Premium card's .nb-switch), not underlined tabs ── */
html body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  flex: 0 0 auto;
  justify-self: start;
  align-self: start;
  width: auto;
  gap: 0;
  padding: 4px;
  border: 0;
  border-radius: var(--nb-r-lg, 12px);
  background: color-mix(in srgb, var(--nb-ink) 6%, transparent);
}
html body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs .qmt-indicator {
  display: none;
}
html body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs .questions-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 10px 22px;
  border-radius: var(--nb-r-md, 8px);
  box-shadow: none;
  font: 500 var(--nb-text-base, 16px)/1 var(--nb-sans);
  text-align: center;
  color: var(--pl-soft);
}
html body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs .questions-mode-tab:hover {
  color: var(--nb-ink);
}
html body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs .questions-mode-tab.is-active {
  background: color-mix(in srgb, white 9%, var(--nb-paper-raised));
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 6%, transparent);
  color: var(--nb-ink);
}
html.theme-light body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs .questions-mode-tab.is-active {
  background: white;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--nb-ink) 10%, transparent), 0 4px 12px -2px color-mix(in srgb, var(--nb-ink) 10%, transparent);
}
/* the masthead and the MCQ bar lose the hairline the tabs stood on */
html body .nb-qg-column .nb-qg-masthead,
html body .nb-mcq-column .nb-mcq-bar {
  border-bottom: 0;
}
html body .nb-mcq-column .nb-mcq-bar {
  row-gap: var(--nb-s4);
}

/* ── The "go in order" note: flat, its title in the one ink, a tinted button ── */
html body :is(.nb-mcq-column, .nb-qg-column) .nb-order-card {
  /* no edge at all: a transparent one let the card's own fill ring the darker scene in a 1px line */
  border-width: 0;
  box-shadow: none;
}
html body :is(.nb-mcq-column, .nb-qg-column) .nb-order-kicker {
  font-weight: 500;
  color: var(--pl-soft);
}
html body :is(.nb-mcq-column, .nb-qg-column) .nb-order-kicker svg {
  display: none;
}
html body :is(.nb-mcq-column, .nb-qg-column) .nb-order-title {
  font-family: var(--nb-sans);
  letter-spacing: -0.02em;
}
html body :is(.nb-mcq-column, .nb-qg-column) .nb-order-title em {
  color: inherit;
}
html body :is(.nb-mcq-column, .nb-qg-column) .nb-order-go {
  border-color: transparent;
  background: color-mix(in srgb, var(--nb-blue) 10%, transparent);
  color: var(--nb-blue);
}
@media (hover: hover) {
  html body :is(.nb-mcq-column, .nb-qg-column) .nb-order-go:hover {
    border-color: transparent;
    background: color-mix(in srgb, var(--nb-blue) 16%, transparent);
    color: var(--nb-blue-strong, var(--nb-blue));
    transform: none;
  }
}

/* ── Multiple choice ── */
html body .nb-mcq-column .nb-mcq-progress-meta {
  color: var(--pl-soft);
}
html body .nb-mcq-column .nb-mcq-progress-meta span {
  color: var(--nb-ink);
  font-weight: 600;
}
html body .nb-mcq-column .nb-mcq-progress-bar {
  height: 4px;
  border-radius: var(--nb-r-sm, 4px);
}
/* the number in the ink, as on topic questions */
html body .nb-mcq-column .mcq-q-no {
  color: var(--nb-ink);
}
/* an option: a raised row with no edge (its fill and its letter say it is a control); blue under the pointer */
html body .nb-mcq-column .mcq-option-btn {
  border-color: transparent;
  background: var(--pl-row);
}
@media (hover: hover) {
  html body .nb-mcq-column .mcq-option-btn:hover:not(:disabled) {
    border-color: transparent;
    background: var(--pl-row-on);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html body .nb-mcq-column .mcq-option-btn:active:not(:disabled) { transform: none; }
}
/* answered: the pick and the answer in their own wash, no edge */
html body .nb-mcq-column .mcq-option-btn:is(.is-correct, .is-incorrect) {
  border-color: transparent;
  background: color-mix(in srgb, var(--mcq-state) 13%, var(--nb-paper-raised));
}
/* the response: no disc round the verdict, no icons on the headings; the word says it in its colour */
html body .nb-mcq-column .mcq-verdict {
  grid-template-columns: minmax(0, 1fr);
}
html body .nb-mcq-column .mcq-verdict-icon,
html body .nb-mcq-column .mcq-expl-icon {
  display: none;
}
html body .nb-mcq-column .mcq-verdict-text {
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}
html body .nb-mcq-column .mcq-answer-ref-label {
  color: var(--pl-soft);
}
html body .nb-mcq-column .mcq-explanation-label {
  padding-left: 0;
  font-weight: 600;
}

/* ── Topic questions ── */
html body .nb-qg-column .nb-tq-card .nb-tq-allocation {
  font-weight: 500;
  color: var(--pl-soft);
}
/* the Calculator: words in a quiet tint, no icon */
html body .nb-qg-column .tqc-has-toggle .tqc-toggle:not([data-ui-pressed="true"]) {
  height: 32px;
  padding: 0 var(--nb-s3);
  border-radius: var(--nb-r-md, 8px);
  background: color-mix(in srgb, var(--nb-ink) 7%, transparent);
  font-weight: 500;
}
html body .nb-qg-column .tqc-has-toggle .tqc-toggle:not([data-ui-pressed="true"]) svg {
  display: none;
}
@media (hover: hover) {
  html body .nb-qg-column .tqc-has-toggle .tqc-toggle:not([data-ui-pressed="true"]):hover {
    background: color-mix(in srgb, var(--nb-ink) 11%, transparent);
  }
}
/* the model answer: blue words and their disclosure, no book */
html body .nb-qg-column .nb-tq-card .tq-reveal-btn > svg:first-child {
  display: none;
}
/* the AI notice: soft words, no (i) */
html body .nb-qg-column .nb-tq-card .qg-ai-notice {
  color: var(--pl-soft);
}
html body .nb-qg-column .nb-tq-card .qg-ai-notice::before {
  content: none;
}
html body .nb-qg-column .nb-tq-card .nb-tq-word-count {
  color: var(--pl-soft);
}

/* ── Phones: the switch spans the column ── */
@media (max-width: 860px) {
  html body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs {
    width: 100%;
  }
  html body :is(.nb-mcq-column, .nb-qg-column) .questions-mode-tabs .questions-mode-tab {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
  }
}

/* ── The answer box: a sheet of paper to write on (owner, 2026-10-24: "make the answer box nicer in the tqs") ──
   The box's wrapper is the sheet: raised paper with a paper shadow, 12px corners and no edge. The words sit on it at a
   reading size and run its full width; under them a quiet foot inside the sheet holds the word count on the left and
   the Calculator on the right, and the words never run under that foot: the box grows with the answer (tq-grow.js), so
   a long one never scrolls inside it. Hovering changes nothing, and focus is still the one thin blue ring, round the
   whole sheet (owner, 2026-10-07 and 2026-10-09). */
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap {
  position: relative;
  padding-bottom: 52px;
  border-radius: var(--nb-r-lg, 12px);
  background: var(--nb-paper-raised);
  box-shadow: var(--nb-shadow-1);
}
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap:focus-within {
  outline: 1px solid var(--nb-blue);
  outline-offset: 0;
}
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap .qg-input,
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap .qg-input:not(.is-locked),
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap .qg-input:is(:hover, :focus, :focus-visible) {
  display: block;
  width: 100%;
  min-height: 188px;
  padding: 22px 24px 8px;
  border: 0;
  border-radius: var(--nb-r-lg, 12px) var(--nb-r-lg, 12px) 0 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font: 400 1.0625rem/1.7 var(--nb-sans);
  resize: none;
}
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap[data-write="none"] .qg-input {
  min-height: 84px;
}
/* while it marks, and after, the box is read only (grader.js .is-locked): the whole sheet takes the sunken paper */
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap:has(.qg-input.is-locked) {
  background: var(--nb-paper-sunken, var(--nb-paper));
  box-shadow: none;
}
/* signed out the box takes nothing and has no foot (the sign-in dialog opens from it) */
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap--signin {
  padding-bottom: 0;
}
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap--signin .qg-input,
html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap--signin .qg-input:is(:hover, :focus, :focus-visible) {
  padding-bottom: 22px;
  border-radius: var(--nb-r-lg, 12px);
}
html body .nb-qg-column .tqc-has-toggle .tqc-toggle:not([data-ui-pressed="true"]) {
  top: auto;
  bottom: 10px;
  right: 12px;
}
html body .nb-qg-column .nb-tq-card .nb-tq-answer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 32px;
  margin-top: -42px;
  margin-bottom: 26px;
  padding-left: 24px;
  font-size: var(--nb-text-sm);
  pointer-events: none;
}
@media (max-width: 600px) {
  html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap .qg-input,
  html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap .qg-input:not(.is-locked),
  html body .nb-qg-column.nb-qg-practice .nb-tq-card .tq-input-wrap .qg-input:is(:hover, :focus, :focus-visible) {
    min-height: 168px;
    padding: 18px 18px 8px;
  }
  html body .nb-qg-column .nb-tq-card .nb-tq-answer-meta {
    padding-left: 18px;
  }
}
