/* =====================================================================
   rs-page.css  ·  Shared styles for revision page content  ·  v1.6 (17 Nov 2026)
   Revise Science. Applies inside any page wrapper with class "rs-page":
   headings, notes and link rows, equations, interactive cards (.ct-*),
   worked examples (.rs-we-*), Watch out cards (.rs-mistake-*), tables.
   Page-only styles stay in the page's own <style>, scoped to its id.
   v1.6: interactive cards' message row (Matthew 17 Nov): .ct-row puts an explanation box in a row of its own under
   both columns on wide cards (phones unchanged); .ct-body--stack (one column) and .ct-readouts--across (end of file).
   v1.5: topic revision sheets (.rs-sheet). The rules every sheet repeated in its own <style> now live here,
   plus the full-width sheet in parts: one card per row, points in up to two columns, the diagram beside them on
   wide screens (split chosen by rs-page.js v1.4), hidden part headings for Skip to, and colour option C
   ("Accents": each part in its Skip to colour). Only sheets whose cards sit in .rs-sheet-part change.
   Also v1.5: glossary key words on every rs-page get a soft chip in their section's Skip to colour (end of file).
   v1.4: numbered tabs on phones (rs-page.js v1.3); four phone-width fixes so content no longer runs past the
   screen or is cut off: .ct-control column, .rs-we-lines second column, .rs-we-eqn wrapping, .rs-mistake-ans.
   ===================================================================== */

/* =========================================================
   HEADINGS, NOTES, EQUATIONS AND TABLES (design guide, 7 Nov 2026)
========================================================= */

.rs-page .rs-page-heading {
  margin: 30px 0 15px;
  padding: 5px;
  text-align: center;
  background: rgb(247, 210, 187);
}

.rs-page .rs-note {
  margin: 16px 0 20px;
  padding: 12px 14px;
  border-left: 4px solid #3478a4;
  border-radius: 0 8px 8px 0;
  background: #f2f9fd;
  color: var(--rs-ink);
  line-height: 1.55;
}

.rs-page .rs-note p {
  margin: 0;
}

.rs-page .rs-note p + p {
  margin-top: 6px;
}

.rs-page .rs-note--key {
  background: var(--rs-subject-accent-soft,#fdf3ea) !important;
  border-left: 6px solid var(--rs-subject-accent,#d86712) !important;
}

.rs-page .rs-note .sol-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 6px 0 0;
  padding: 7px 10px;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  background: #e6e6e6;
  color: var(--rs-ink);
  font-weight: 900;
  text-decoration: none;
}

.rs-page .rs-note .sol-link-button:hover, .rs-page .rs-note .sol-link-button:focus-visible {
  background: #fff0ec;
  color: var(--rs-chem-deep, #a42d12);
  text-decoration: none;
}

/* =========================================================
   INTERACTIVE CARD (same layout as the other rates pages)
========================================================= */

.rs-page .ct-card {
  container-type: inline-size;
  margin: 18px 0 24px;
  padding: 15px;
  border: 1px solid #e0e3e8;
  border-radius: 14px;
  background: #fff;
}

.rs-page .ct-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rs-page .ct-title {
  margin: 0 0 2px;
  color: var(--rs-ink);
  font-weight: 900;
  line-height: 1.3;
}

.rs-page .ct-intro {
  margin: 0;
  color: #5f6475;
  line-height: 1.5;
}

.rs-page .ct-fs-btn, .rs-page .ct-seg, .rs-page .ct-action {
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  border-radius: 8px;
  cursor: pointer;
}

.rs-page .ct-fs-btn {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #7d849a;
  background: #f5f6fb;
  color: var(--rs-navy);
  font-size: 0.85em;
  white-space: nowrap;
}

.rs-page .ct-body {
  display: grid;
  grid-template-columns: minmax(0, var(--ct-a, 1.5fr)) minmax(0, var(--ct-b, 1fr));
  gap: 14px;
  align-items: start;
}

.rs-page .ct-stage {
  min-width: 0;
}

.rs-page .ct-side {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rs-page .ct-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

/* v1.4: a wide control (e.g. a long select) can no longer push the card past a phone screen */

.rs-page .ct-control select {
  max-width: 100%;
}

.rs-page .ct-control-label {
  color: var(--rs-navy);
  font-weight: 900;
  font-size: 0.92em;
}

.rs-page .ct-seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rs-page .ct-seg {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #d0d4e0;
  background: #f5f6fb;
  color: var(--rs-ink);
  font-size: 0.92em;
}

.rs-page .ct-seg.is-active {
  border-color: var(--rs-navy);
  background: var(--rs-navy);
  color: #fff;
}

.rs-page .ct-action {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--rs-ink);
  background: var(--rs-ink);
  color: #fff;
}

.rs-page .ct-fs-btn:focus-visible, .rs-page .ct-seg:focus-visible, .rs-page .ct-action:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
}

/* Skip to buttons (29 Nov 2026, a11y): no site rule styled their focus; Bootstrap's .btn:focus-visible gave outline 0 and a faint shadow (2.5:1) */

.rs-skipto a.btn:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
  box-shadow: none;
}

.rs-page .ct-readouts {
  display: grid;
  margin: 0;
  padding: 2px 10px;
  border: 1px solid #e0e3e8;
  border-radius: 11px;
  background: #f5f6fb;
}

.rs-page .ct-readouts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #e0e3e8;
}

.rs-page .ct-readouts > div:first-child {
  border-top: 0;
}

.rs-page .ct-readouts dt {
  font-weight: 700;
  color: var(--rs-ink);
}

.rs-page .ct-readouts dd {
  margin: 0;
  font-weight: 900;
  color: var(--rs-navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rs-page .ct-obs {
  margin: 0;
  padding: 9px 11px;
  border-left: 4px solid var(--rs-navy);
  border-radius: 0 8px 8px 0;
  background: #f5f6fb;
  line-height: 1.5;
}

@container (max-width: 700px) {
  .rs-page .ct-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .rs-page .ct-head {
    flex-direction: column;
  }
}

/* full screen: big enough to project, never scrolls */

.rs-page .ct-card.is-fs {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(12px, 1.4vw, 24px);
  border: 0;
  border-radius: 0;
  background: #f5f6fb;
  font-size: clamp(1.05rem, 1.5vw, 1.6rem);
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .rs-page * {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   SHARED PIECES FOR THE REWORKED PAGES (14 Nov 2026)
========================================================= */

/* section links land below the fixed navbar */

.rs-page [id^="section"] {
  scroll-margin-top: var(--rs-nav-h, 80px);
}

.rs-page .rs-note .sol-link-button {
  margin-right: 0;
}

/* worked example: one coloured row per step, answer boxed */

.rs-page .rs-we {
  container-type: inline-size;
  margin: 16px 0 22px;
  border: 2px solid var(--rs-navy, #1d2b4f);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.rs-page .rs-we-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  padding: 9px 12px;
  background: var(--rs-navy, #1d2b4f);
  color: #fff;
  line-height: 1.4;
}

.rs-page .rs-we-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--rs-navy, #1d2b4f);
  font-weight: 900;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rs-page .rs-we-q {
  font-weight: 700;
}

.rs-page .rs-we-eqn {
  display: block;
  margin: 2px 0 3px;
  font-size: 1.12em;
  font-weight: 900;
  white-space: nowrap;
}

.rs-page .rs-mistake-q .rs-we-eqn {
  margin: 4px 0;
  color: var(--rs-ink);
}

.rs-page .rs-we-why {
  grid-column: 3;
  color: #394362;
  font-size: 0.92em;
  line-height: 1.4;
}

.rs-page .rs-we-why::before {
  content: "Why: ";
  font-weight: 900;
  color: #5f6475;
}

.rs-page .rs-we-lab small {
  display: block;
  font-weight: 700;
  font-size: 0.82em;
  color: #5f6475;
}

.rs-page .rs-we-lines {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content);
  gap: 1px 12px;
  justify-content: start;
}

/* v1.4: the second column wraps on phones instead of being cut off */

.rs-page .rs-we-lines > .k {
  font-weight: 900;
  color: var(--rs-navy, #1d2b4f);
}

.rs-page .rs-we-steps {
  counter-reset: rswe;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-page .rs-we-steps > li {
  counter-increment: rswe;
  display: grid;
  grid-template-columns: 34px minmax(0, 13em) minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid rgb(0 0 0 / 7%);
  background: #fff;
}

.rs-page .rs-we-steps > li:nth-child(4n + 2) {
  background: #f4f5f8;
}

.rs-page .rs-we-steps > li:nth-child(4n + 3) {
  background: #fff;
}

.rs-page .rs-we-steps > li:nth-child(4n + 4) {
  background: #f4f5f8;
}

.rs-page .rs-we-steps > li::before {
  grid-row: span 2;
  content: counter(rswe);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rs-navy, #1d2b4f);
  color: var(--rs-navy, #1d2b4f);
  font-weight: 900;
}

.rs-page .rs-we-lab {
  padding-top: 3px;
  font-weight: 800;
  color: var(--rs-ink);
  line-height: 1.35;
}

.rs-page .rs-we-math {
  padding-top: 1px;
  font-size: 1.12em;
  line-height: 1.5;
  color: var(--rs-ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.rs-page .rs-we-math small {
  display: block;
  font-size: 0.8em;
  color: #5f6475;
}

.rs-page .rs-we-ans {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 12px;
  border-top: 2px solid var(--rs-navy, #1d2b4f);
  background: #fff;
  font-weight: 800;
}

.rs-page .rs-we-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid #e0e3e8;
  background: #f5f6fb;
  font-size: 0.92em;
  color: #5f6475;
}

.rs-page .rs-we-try {
  padding: 6px 12px;
  border: 2px solid var(--rs-navy, #1d2b4f);
  border-radius: 8px;
  background: #fff;
  color: var(--rs-navy, #1d2b4f);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.rs-page .rs-we-try:hover {
  background: #e6ecfb;
}

.rs-page .rs-we-try:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
}

.rs-page .rs-we-tag--beyond {
  background: var(--rs-slate-soft,#e8ecf1);
  color: var(--rs-slate-ink,#334155);
  border: 1px solid var(--rs-slate-line,#cbd5e1);
}

/* Beyond your course (30 Nov 2026, owner: "'Beyond most courses' is not true here, it's just beyond this course").
   For material that one board teaches and the other does not. Markup:
     <div class="rs-beyond-yours">
       <p class="rs-beyond-yours-tag rs-standalone rs-aqa"><span class="rs-tag-beyond">Beyond your course</span></p>
       (optional) <p class="rs-beyond-yours-title">Title</p>
       … the content …
     </div>
   The pill line carries the course class of the board(s) for which the content is beyond the course. rs-alevel.js hides it
   (rs-hidden) for the other board, and then the outline goes too, so that board reads the content as ordinary text.
   Same look as "Beyond most courses" (rs-core.css .rs-note--extra and .rs-tag-beyond): slate-grey 2px dashed outline, grey pill. */

.rs-beyond-yours:has( > .rs-beyond-yours-tag:not(.rs-hidden)) {
  margin: 16px 0 20px;
  padding: 10px 14px 12px;
  border: 2px dashed var(--rs-slate,#64748b);
  border-radius: 8px;
  background: #fff;
}

.rs-beyond-yours > .rs-beyond-yours-tag {
  margin: 0 0 6px;
  line-height: 1.2;
}

.rs-beyond-yours-title {
  margin: 12px 0 4px;
  font-weight: 800;
  color: var(--rs-slate-ink,#334155);
}

.rs-beyond-yours > .rs-beyond-yours-tag + .rs-beyond-yours-title {
  margin-top: 0;
}

.rs-beyond-yours > :last-child {
  margin-bottom: 0;
}

.rs-page .rs-we-box {
  display: inline-block;
  padding: 4px 14px;
  border: 3px solid var(--rs-correct,#1b7a3d);
  border-radius: 8px;
  background: var(--rs-correct-soft,#e8f5ec);
  font-size: 1.18em;
  font-weight: 900;
  color: var(--rs-ink);
}

@container (max-width: 560px) {
  .rs-page .rs-we-steps > li {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}

@container (max-width: 560px) {
  .rs-page .rs-we-math, .rs-page .rs-we-why {
    grid-column: 2;
  }
}

/* common mistake: wrong working beside right working */

/* common mistake: the same question worked both ways, row by row, so the wrong step stands out */

.rs-page .rs-mistake {
  container-type: inline-size;
  margin: 16px 0 22px;
  border: 2px solid #e0a800;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.rs-page .rs-mistake-head {
  margin: 0;
  padding: 9px 12px;
  background: #fff3cd;
  color: var(--rs-ink);
  font-weight: 900;
  line-height: 1.35;
}

.rs-page .rs-mistake-head::before {
  content: "⚠";
  margin-right: 6px;
  color: #b06d00;
}

.rs-page .rs-mistake-q {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid #f0e2b0;
  line-height: 1.45;
  font-weight: 700;
}

.rs-page .rs-mistake-qtag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--rs-navy, #1d2b4f);
  color: #fff;
  font-size: 0.8em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rs-nw {
  white-space: nowrap;
}

.rs-page .rs-mistake-rows {
  display: grid;
  grid-template-columns: minmax(0, 10em) minmax(0, 1fr) minmax(0, 1fr);
}

.rs-page .rs-mistake-rows > * {
  padding: 8px 12px;
  border-top: 1px solid #e6e8ef;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.rs-page .rs-mistake-cols {
  display: contents;
}

.rs-page .rs-mistake-cols > span {
  padding: 6px 12px;
  border-top: 1px solid #e6e8ef;
  font-weight: 900;
  font-size: 0.92em;
}

.rs-page .rs-mistake-cols .w {
  color: #b52b27;
  background: #fdf3f3;
}

.rs-page .rs-mistake-cols .r {
  color: var(--rs-correct,#1b7a3d);
  background: var(--rs-correct-soft,#e8f5ec);
}

.rs-page .rs-mistake-lab {
  font-weight: 800;
  color: #5f6475;
  font-size: 0.92em;
}

.rs-page .rs-mistake-both {
  grid-column: 2 / 4;
  color: #394362;
  background: #f5f6fb;
}

.rs-page .rs-mistake-both small, .rs-page .rs-mistake-w small, .rs-page .rs-mistake-r small {
  display: block;
  font-size: 0.82em;
  font-weight: 700;
}

.rs-page .rs-mistake-both small {
  color: #5f6475;
}

.rs-page .rs-mistake-w {
  background: #fdf3f3;
}

.rs-page .rs-mistake-r {
  background: var(--rs-correct-soft,#e8f5ec);
}

.rs-page .rs-mistake-w.is-bad {
  background: #f8d7d6;
  box-shadow: inset 4px 0 0 #d9534f;
}

.rs-page .rs-mistake-w.is-bad small {
  color: #b52b27;
}

.rs-page .rs-mistake-w.is-bad small::before {
  content: "✗ ";
}

.rs-page .rs-mistake-r.is-fix {
  background: var(--rs-correct-soft,#e8f5ec);
  box-shadow: inset 4px 0 0 var(--rs-correct,#1b7a3d);
}

.rs-page .rs-mistake-r.is-fix small {
  color: var(--rs-correct,#1b7a3d);
}

.rs-page .rs-mistake-ans {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px 12px;
  border: 3px solid;
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  font-size: 1.1em;
}

/* v1.4: max-width, so a long answer wraps inside its box on phones */

.rs-page .rs-mistake-w .rs-mistake-ans {
  border-color: #d9534f;
  color: #b52b27;
}

.rs-page .rs-mistake-w .rs-mistake-ans::before {
  content: "✗ ";
}

.rs-page .rs-mistake-r .rs-mistake-ans::before {
  content: "✓ ";
}

.rs-page .rs-mistake-r .rs-mistake-ans {
  border-color: var(--rs-correct,#1b7a3d);
  color: var(--rs-correct,#1b7a3d);
}

.rs-page .rs-mistake-why {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid #e6e8ef;
  background: #fff9e6;
  line-height: 1.5;
}

.rs-page .rs-mistake-why-tag {
  font-weight: 900;
  color: #8a6400;
  margin-right: 6px;
}

.rs-page .rs-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@container (max-width: 560px) {
  .rs-page .rs-mistake-rows {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@container (max-width: 560px) {
  .rs-page .rs-mistake-lab {
    grid-column: 1 / -1;
    padding-bottom: 2px;
    background: #fff;
  }
}

@container (max-width: 560px) {
  .rs-page .rs-mistake-cols > span:first-child {
    display: none;
  }
}

@container (max-width: 560px) {
  .rs-page .rs-mistake-both {
    grid-column: 1 / -1;
    border-top: 0;
  }
}

@container (max-width: 560px) {
  .rs-page .rs-mistake-w, .rs-page .rs-mistake-r {
    border-top: 0;
  }
}

/* card head buttons: How it works + Full screen */

.rs-page .ct-card {
  position: relative;
}

/* phones: compact controls first, then the picture (.ct-pic), which stays in view */

@container (max-width: 700px) {
  .rs-page .ct-card--sticky .ct-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

@container (max-width: 700px) {
  .rs-page .ct-card--sticky .ct-side, .rs-page .ct-card--sticky .ct-stage {
    display: contents;
  }
}

@container (max-width: 700px) {
  .rs-page .ct-card--sticky .ct-side > *, .rs-page .ct-card--sticky .ct-stage > * {
    order: 3;
  }
}

@container (max-width: 700px) {
  .rs-page .ct-card--sticky .ct-side > .ct-control {
    order: 1;
  }
}

@container (max-width: 700px) {
  .rs-page .ct-card--sticky .ct-stage > .ct-pic {
    order: 2;
    position: sticky;
    top: calc(var(--rs-nav-h, 0px) + 6px);
    z-index: 5;
    padding: 6px 0;
    background: #fff;
    box-shadow: 0 8px 8px -8px rgb(0 0 0 / 30%);
  }
}

@container (max-width: 700px) {
  .rs-page .ct-card--sticky.is-fs .ct-stage > .ct-pic {
    position: static;
    box-shadow: none;
  }
}

/* small figure captions */

.rs-page .rs-fig-cap {
  margin: 6px 0 0;
  color: #5f6475;
  font-size: 0.92em;
  line-height: 1.45;
  text-align: center;
}

/* an equation written as a fraction, for key notes */

.rs-page .rs-eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 2px 0;
  font-size: 1.08em;
  font-weight: 800;
  text-align: center;
}

.rs-page .rs-frac, .card.key-info .rs-frac {
  display: inline-grid;
  text-align: center;
}

.rs-page .rs-frac > span:first-child, .card.key-info .rs-frac > span:first-child {
  padding: 0 6px 3px;
  border-bottom: 2px solid currentColor;
}

.rs-page .rs-frac > span:last-child, .card.key-info .rs-frac > span:last-child {
  padding-top: 3px;
}

/* a square root drawn properly (30 Nov 2026, owner: "the fraction isn't actually under the full root sign").
   The bar runs over everything under the root, a stacked fraction included, and the sign stretches to the height of
   what is under it, so it scales with the text and with tall fractions. Not scoped to .rs-page, so any page can use it.
   Markup (the label is what a screen reader reads; the drawing is hidden from it):
     <span class="rs-root" role="img" aria-label="the square root of m over 2KE">
       <span class="rs-root-sign" aria-hidden="true"><svg viewBox="0 0 10 100" preserveAspectRatio="none" focusable="false">
         <path d="M0.6 60 L2.9 53.5 L5.6 100 L10 0"/></svg></span>
       <span class="rs-root-in"> … what is under the root, e.g. a .rs-frac … </span>
     </span>
   The sign's top end sits on the middle of the 2 px bar (top: 1px), so the two join. The root never breaks across lines. */

.rs-root {
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
  white-space: nowrap;
}

.rs-root-sign {
  position: relative;
  flex: none;
  width: 0.62em;
}

.rs-root-sign > svg {
  position: absolute;
  left: 0;
  top: 1px;
  width: 100%;
  height: calc(100% - 1px);
  overflow: visible;
}

.rs-root-sign path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.rs-root-in {
  display: inline-flex;
  align-items: center;
  padding: 3px 3px 1px 4px;
  border-top: 2px solid currentColor;
}

.rs-root-in > .rs-frac {
  vertical-align: middle;
}

/* a numbered method strip: 3 coloured steps in a row */

.rs-page .rs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
}

.rs-page .rs-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e6ecfb;
}

.rs-page .rs-steps li:nth-child(6n + 2) {
  background: #fbece6;
}

.rs-page .rs-steps li:nth-child(6n + 3) {
  background: #e6fbed;
}

.rs-page .rs-steps li:nth-child(6n + 4) {
  background: #f4e6fb;
}

.rs-page .rs-steps li:nth-child(6n + 5) {
  background: #f7fbe6;
}

.rs-page .rs-steps li:nth-child(6n + 6) {
  background: #fbe6e6;
}

/* v1.2.1: balanced rows on wider screens (6 steps = two rows of three, 4 = one row or two of two, 5 = three then two) */

@media (min-width: 720px) {
  .rs-page .rs-steps:has( > li:nth-child(3):last-child), .rs-page .rs-steps:has( > li:nth-child(5):last-child), .rs-page .rs-steps:has( > li:nth-child(6):last-child), .rs-page .rs-steps:has( > li:nth-child(9):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .rs-page .rs-steps:has( > li:nth-child(4):last-child), .rs-page .rs-steps:has( > li:nth-child(8):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .rs-page .rs-steps:has( > li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rs-page .rs-steps-n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--rs-navy, #1d2b4f);
  background: #fff;
  color: var(--rs-navy, #1d2b4f);
  font-weight: 900;
}

.rs-page .rs-steps-t {
  font-weight: 900;
  color: var(--rs-ink);
  line-height: 1.3;
}

.rs-page .rs-steps-m {
  font-weight: 400;
  color: #394362;
  line-height: 1.4;
}

/* v1.2.1: prose, never bold */

/* one blue note can hold several links: a row each, button then a short line */

.rs-page .rs-note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
}

.rs-page .rs-note-row + .rs-note-row {
  margin-top: 10px;
}

.rs-page .rs-note-row .sol-link-button {
  margin: 0;
}

/* 14 Nov 2026: white text on navy uses ABeeZee's normal weight. The font has no bold, so the browser fakes one and the letters look fuzzy. */

.rs-page .rs-we-head, .rs-page .rs-we-head * {
  font-weight: 400;
}

/* v1.0.1: a note row hidden by a page script stays hidden (rows are display: flex) */

.rs-page .rs-note-row[hidden], .rs-page .rs-note[hidden] {
  display: none;
}

/* a note whose rows are all hidden by the course filter hides too */

.rs-page .rs-note:has( > .rs-note-row):not(:has( > .rs-note-row:not([hidden]):not(.rs-hidden))) {
  display: none;
}

/* v1.1: tabbed worked examples (.rs-tabs, behaviour in rs-page.js). The card is as tall as the open
   example: its top never moves, only what is below it (owner, 14 Nov). */

.rs-page .rs-tabs {
  margin: 18px 0 22px;
}

.rs-page .rs-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 -1px;
  padding: 0;
}

.rs-page .rs-tabs-list.is-single {
  display: none;
}

.rs-page .rs-tabs-tab {
  padding: 7px 14px;
  border: 1px solid #c9ced9;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f5f6fb;
  color: var(--rs-navy, #1d2b4f);
  font: inherit;
  font-size: 0.92em;
  font-weight: 800;
  cursor: pointer;
}

.rs-page .rs-tabs-tab[aria-selected="true"] {
  background: var(--rs-navy, #1d2b4f);
  border-color: var(--rs-navy, #1d2b4f);
  color: #fff;
  font-weight: 400;
}

.rs-page .rs-tabs-tab:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

.rs-page .rs-tabs-panel {
  display: none;
}

.rs-page .rs-tabs-panel.is-on {
  display: block;
}

.rs-page .rs-tabs-panel > .rs-we, .rs-page .rs-tabs-panel > .rs-mistake {
  margin-top: 0;
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

/* v1.1: question banners never leave one word alone on the last line */

.rs-page .rs-we-q, .rs-page .rs-mistake-q, .rs-page .rs-we-head {
  text-wrap: pretty;
}

/* v1.1: worked examples with a Steps / Table view (.rs-we-views; behaviour in rs-page.js) */

.rs-page .rs-we-views {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  overflow: hidden;
}

.rs-page .rs-we-views button {
  padding: 2px 11px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.85em;
  cursor: pointer;
}

.rs-page .rs-we-views button[aria-pressed="true"] {
  background: #fff;
  color: var(--rs-navy, #1d2b4f);
}

.rs-page .rs-we-views button:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: -3px;
}

.rs-page .rs-we-viewpanel[hidden] {
  display: none;
}

/* the table method: one column per substance; down the known column, across with the ratio, up the other */

.rs-page .rs-tm-wrap {
  overflow-x: auto;
  padding: 14px 12px 6px;
  background: #fff;
}

.rs-page .rs-tm {
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.05em;
}

.rs-page .rs-tm th, .rs-page .rs-tm td {
  padding: 7px 12px;
  border: 1px solid #c9ced9;
  text-align: center;
  white-space: nowrap;
}

.rs-page .rs-tm thead th {
  background: #f5f6fb;
  color: var(--rs-navy, #1d2b4f);
}

.rs-page .rs-tm tbody th {
  background: #f5f6fb;
  color: #5f6475;
  text-align: left;
  font-weight: 800;
}

.rs-page .rs-tm td.is-known {
  background: #e6ecfb;
}

.rs-page .rs-tm td.is-answer {
  background: #e6fbed;
  font-weight: 800;
}

.rs-page .rs-tm td.rs-tm-gap {
  border: 0;
  background: transparent;
  min-width: 64px;
  color: #d33e16;
  font-weight: 900;
}

.rs-page .rs-tm .rs-tm-arrow {
  color: #d33e16;
  font-weight: 900;
}

.rs-page .rs-tm-why {
  margin: 0;
  padding: 4px 14px 10px;
  color: #5f6475;
  font-size: 0.92em;
}

.rs-page .rs-tm-why ol {
  margin: 4px 0 0 18px;
  padding: 0;
}

/* links to pages that are not live yet stay hidden (owner, 14 Nov) */

.rs-page .rs-link-pending {
  display: none !important;
}

/* v1.1: equation lines in worked example steps (a line of working under its equation) */

.rs-page .we-eq > span {
  display: block;
}

.rs-page .we-eq > .rs-we-lines {
  display: grid;
  margin-top: 2px;
}

/* the table method on phones: row labels wrap, so every column stays in view */

@container (max-width: 560px) {
  .rs-page .rs-tm {
    font-size: 0.92em;
  }
}

@container (max-width: 560px) {
  .rs-page .rs-tm th, .rs-page .rs-tm td {
    padding: 6px 7px;
  }
}

@container (max-width: 560px) {
  .rs-page .rs-tm tbody th {
    white-space: normal;
    min-width: 5.5em;
    line-height: 1.25;
  }
}

@container (max-width: 560px) {
  .rs-page .rs-tm td.rs-tm-gap {
    min-width: 0;
    padding: 4px 3px;
    white-space: normal;
    line-height: 1.2;
  }
}

@container (max-width: 560px) {
  .rs-page .rs-tm-wrap {
    padding: 10px 8px 4px;
  }
}

/* v1.2: a card inside tabs has a square top-left corner, so the open tab joins it with no gap */

.rs-page .rs-tabs-panel > .rs-we, .rs-page .rs-tabs-panel > .rs-mistake {
  border-top-left-radius: 0;
}

/* v1.2: Watch out cards that sit together share tabs, in Watch out amber */

.rs-page .rs-tabs--watch .rs-tabs-tab {
  border-color: #e7c66a;
  background: #fff8e1;
  color: #6b4e00;
}

.rs-page .rs-tabs--watch .rs-tabs-tab[aria-selected="true"] {
  background: #f2c94c;
  border-color: #e0b13a;
  color: #3d2c00;
  font-weight: 800;
}

/* v1.4: an equation in a question banner wraps (at a space) in a narrow card instead of being cut off at the edge */

@container (max-width: 560px) {
  .rs-page .rs-we-eqn {
    white-space: normal;
    text-wrap: balance;
  }
}

/* v1.4: tabs on phones (owner's choice, 15 Nov). rs-page.js v1.3 adds .is-compact under 768 px wide when a card's
   full tabs would not fit on one row: the tabs show numbers and the open card starts with its full name.
   Nothing here applies at 768 px or wider, so desktop is unchanged. */

.rs-page .rs-tab-short, .rs-page .rs-tabs-ctitle {
  display: none;
}

.rs-page .rs-tabs.is-measuring .rs-tabs-list {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.rs-page .rs-tabs.is-measuring .rs-tabs-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 800 !important;
}

.rs-page .rs-tabs.is-compact .rs-tabs-list {
  flex-wrap: nowrap;
}

.rs-page .rs-tabs.is-compact .rs-tabs-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 44px;
  padding: 7px 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rs-page .rs-tabs.is-compact .rs-tab-full {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rs-page .rs-tabs.is-compact .rs-tab-short {
  display: inline;
}

/* each number tab keeps its width when it opens (a hidden bold copy reserves the space) */

.rs-page .rs-tabs.is-compact .rs-tabs-tab::after {
  content: attr(data-rs-short);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 800;
}

.rs-page .rs-tabs.is-compact .rs-tabs-ctitle {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 9px 12px 8px;
  border-bottom: 1px solid rgb(255 255 255 / 28%);
  background: var(--rs-navy, #1d2b4f);
  color: #fff;
  font-weight: 400;
  line-height: 1.35;
}

.rs-page .rs-tabs-ctitle-n {
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.rs-page .rs-tabs-ctitle-t {
  font-size: 1.02em;
}

.rs-page .rs-tabs.is-compact .rs-mistake > .rs-tabs-ctitle {
  border-bottom-color: #f0e2b0;
  background: #fff3cd;
  color: #3d2c00;
}

.rs-page .rs-tabs.is-compact .rs-mistake > .rs-tabs-ctitle .rs-tabs-ctitle-t {
  font-weight: 800;
}

.rs-page .rs-tabs.is-compact .rs-mistake > .rs-tabs-ctitle .rs-tabs-ctitle-n {
  opacity: 1;
  color: #8a6400;
  font-weight: 800;
}

/* =========================================================
   TOPIC REVISION SHEETS (v1.5, 16 Nov 2026)
   The shared sheet rules, moved here from each sheet's own <style> (unchanged):
========================================================= */

/* Topic revision sheet (shared pattern for every topic top page, 9 Nov 2026) */

.rs-sheet {
  color: var(--rs-ink);
  line-height: 1.6;
}

.rs-sheet .rs-sheet-intro {
  font-size: 1.08rem;
  margin: 0 0 18px;
}

.rs-sheet .rs-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.rs-sheet .rs-sheet-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 14px;
  border: 1px solid var(--rs-line, #e0e3e8);
  border-top: 4px solid var(--rs-chem);
  border-radius: 8px;
  background: #fff;
  break-inside: avoid;
}

.rs-sheet .rs-sheet-block--wide {
  grid-column: 1 / -1;
}

.rs-sheet .rs-nowrap {
  white-space: nowrap;
}

.rs-sheet .rs-sheet-block--side {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  container-type: inline-size;
}

.rs-sheet .rs-sheet-block--side > .rs-sheet-title, .rs-sheet .rs-sheet-block--side > .rs-sheet-more {
  grid-column: 1 / -1;
}

.rs-sheet .rs-sheet-block--side > .rs-sheet-fig {
  align-self: center;
}

@media (max-width: 640px) {
  .rs-sheet .rs-sheet-block--side {
    display: flex;
  }
}

.rs-sheet .rs-sheet-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--rs-navy);
  line-height: 1.3;
}

.rs-sheet .rs-sheet-points {
  margin: 0 0 10px;
  padding-left: 20px;
}

.rs-sheet .rs-sheet-points > li {
  margin-bottom: 6px;
}

.rs-sheet .rs-sheet-points > li.rs-sheet-li-table {
  list-style: none;
  margin-left: -20px;
}

.rs-sheet .rs-sheet-table-wrap {
  display: block;
  overflow-x: auto;
}

.rs-sheet .rs-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rs-sheet .rs-sheet-table th, .rs-sheet .rs-sheet-table td {
  padding: 5px 8px;
  border: 1px solid #d0d4e0;
  text-align: left;
}

.rs-sheet .rs-sheet-table thead th {
  background: var(--rs-soft, #f5f6fb);
  color: var(--rs-navy);
}

.rs-sheet .rs-sheet-table tbody th {
  font-weight: 400;
}

.rs-sheet .rs-sheet-table--formulae td {
  font-weight: 700;
  white-space: nowrap;
}

.rs-sheet .rs-sheet-fig {
  margin: 4px 0 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--rs-soft, #f5f6fb);
}

.rs-sheet .rs-sheet-fig svg {
  display: block;
  width: 100%;
  max-height: 260px;
  height: auto;
  margin: 0 auto;
}

.rs-sheet .rs-sheet-fig svg text {
  font-family: inherit;
}

.rs-sheet .rs-sheet-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 8px;
}

.rs-sheet .rs-sheet-panels svg {
  max-height: 210px;
}

.rs-sheet .rs-sheet-panels--steps {
  counter-reset: step;
}

.rs-sheet .sol-link-button {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  background: #e6e6e6;
  color: var(--rs-ink);
  font-weight: 900;
  text-decoration: none;
}

.rs-sheet .sol-link-button:hover, .rs-sheet .sol-link-button:focus-visible {
  background: #fff0ec;
  color: var(--rs-chem-deep, #a42d12);
}

.rs-sheet a:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 3px;
}

.rs-sheet .rs-sheet-quiz {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--rs-soft, #f5f6fb);
  border-left: 4px solid var(--rs-navy);
  border-radius: 0 8px 8px 0;
}

.rs-sheet .rs-sheet-quiz p {
  margin: 0;
}

.rs-sheet .rs-sheet-quiz-button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--rs-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.rs-sheet .rs-sheet-quiz-button:hover {
  background: var(--rs-ink);
  color: #fff;
}

@media print {
  .rs-sheet .rs-sheet-more, .rs-sheet .rs-sheet-quiz {
    display: none;
  }
}

@media print {
  .rs-sheet .rs-sheet-block {
    border-top-width: 2px;
  }
}

/* ---------------------------------------------------------
   Full-width sheets in parts (Matthew, 16 Nov 2026). Markup, written by the revision-sheet build:
   <div class="rs-sheet-part" data-tone="N">            N = 1-6, the part's Skip to colour, in order
     <div id="sectionN" style="position: relative; top: -80px;"></div>
     <h2 class="rs-sheet-part-title visually-hidden">Part name</h2>   (for Skip to, the section bar, screen readers)
     <div class="rs-sheet-grid"> cards </div>
   </div>
--------------------------------------------------------- */

/* the six Skip to pastels (#fbe6e6, #fbece6, #f7fbe6, #e6fbed, #e6ecfb, #f4e6fb), with a pale wash, a soft line and a deep edge (4.5:1 or more on white) */

.rs-sheet-part[data-tone="1"] {
  --pt-soft: #fbe6e6;
  --pt-wash: #fdf2f2;
  --pt-line: #eecac9;
  --pt-edge: #c4433f;
}

.rs-sheet-part[data-tone="2"] {
  --pt-soft: #fbece6;
  --pt-wash: #fdf6f2;
  --pt-line: #edd0be;
  --pt-edge: #bf5718;
}

.rs-sheet-part[data-tone="3"] {
  --pt-soft: #f7fbe6;
  --pt-wash: #fbfdf2;
  --pt-line: #d5dbbd;
  --pt-edge: #6a7f12;
}

.rs-sheet-part[data-tone="4"] {
  --pt-soft: #e6fbed;
  --pt-wash: #f2fdf6;
  --pt-line: #c1ddcd;
  --pt-edge: #23864b;
}

.rs-sheet-part[data-tone="5"] {
  --pt-soft: #e6ecfb;
  --pt-wash: #f2f6fd;
  --pt-line: #c8d1ee;
  --pt-edge: #3b5cc4;
}

.rs-sheet-part[data-tone="6"] {
  --pt-soft: #f4e6fb;
  --pt-wash: #faf2fd;
  --pt-line: #dfcbeb;
  --pt-edge: #8c46b8;
}

/* parts: a little more space between parts than between cards; the part heading takes no space */

.rs-sheet .rs-sheet-part[hidden] {
  display: none !important;
}

.rs-sheet .rs-sheet-part + .rs-sheet-part {
  margin-top: 34px;
}

.rs-sheet .rs-sheet-part-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rs-sheet .rs-sheet-part ~ .rs-sheet-quiz {
  margin-top: 30px;
}

/* one card per row; points in two columns once each can be 21rem (about 60 characters), never more; a table spans both */

.rs-sheet .rs-sheet-part > .rs-sheet-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 0;
}

.rs-sheet .rs-sheet-part .rs-sheet-block {
  padding: 16px 20px 14px;
}

.rs-sheet .rs-sheet-part .rs-sheet-points {
  columns: 2 21rem;
  column-gap: 36px;
  min-width: 0;
}

.rs-sheet .rs-sheet-part .rs-sheet-points > li {
  break-inside: avoid;
}

.rs-sheet .rs-sheet-part .rs-sheet-points > li.rs-sheet-li-table {
  column-span: all;
  margin: 6px 0 12px -20px;
}

.rs-sheet .rs-sheet-part .rs-sheet-points > li.rs-sheet-li-table .rs-sheet-table {
  max-width: 980px;
}

@media (max-width: 575.98px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block {
    padding: 14px 14px 12px;
  }
}

/* a wide table scrolls inside its card instead of widening the page */

.row > .col:has( > .rs-sheet) {
  min-width: 0;
}

.rs-sheet .rs-sheet-table-wrap {
  contain: inline-size;
  width: 100%;
}

/* wide screens: the diagram beside the points (cards with one picture or two panels too); rs-page.js sets
   data-rs-fit to the split where the points and the diagram come out closest in height */

@media (min-width: 1100px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block--side, .rs-sheet .rs-sheet-part .rs-sheet-block:has( > .rs-sheet-title + .rs-sheet-points + .rs-sheet-fig + .rs-sheet-more:last-child):not(:has(.rs-sheet-panels > :nth-child(3))) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    column-gap: 28px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block > .rs-sheet-title, .rs-sheet .rs-sheet-part .rs-sheet-block > .rs-sheet-more {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block:not(:has(.rs-sheet-panels > :nth-child(3))) > .rs-sheet-fig {
    align-self: center;
  }
}

@media (min-width: 1100px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block[data-rs-fit="1"] {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.75fr);
  }
}

@media (min-width: 1100px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block[data-rs-fit="2"] {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.6fr);
  }
}

@media (min-width: 1100px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block[data-rs-fit="3"] {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  }
}

@media (min-width: 1100px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block[data-rs-fit="3"] > .rs-sheet-points {
    columns: 1;
  }
}

/* three or more pictures under the points: centred as a group at their own size (no empty space between them),
   no wide frame round them (each has its own) */

.rs-sheet .rs-sheet-part .rs-sheet-block:not(.rs-sheet-block--side) > .rs-sheet-fig:has(.rs-sheet-panels > :nth-child(3)) {
  padding: 4px 0;
  background: none;
  border: 0;
}

.rs-sheet .rs-sheet-part .rs-sheet-block:not(.rs-sheet-block--side) > .rs-sheet-fig > .rs-sheet-panels:has( > :nth-child(3)) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.rs-sheet .rs-sheet-part .rs-sheet-block:not(.rs-sheet-block--side) > .rs-sheet-fig > .rs-sheet-panels:has( > :nth-child(3)) > * {
  flex: 0 1 220px;
  min-width: 0;
  margin: 0;
}

.rs-sheet .rs-sheet-part .rs-sheet-block:not(.rs-sheet-block--side) > .rs-sheet-fig > .rs-sheet-panels.rs-hz-row > * {
  flex: 0 1 120px;
}

.rs-sheet .rs-sheet-part .rs-sheet-block:not(.rs-sheet-block--side) > .rs-sheet-fig > .rs-sheet-panels--wide > * {
  flex-basis: 300px;
}

@media (max-width: 575.98px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block:not(.rs-sheet-block--side) > .rs-sheet-fig > .rs-sheet-panels:has( > :nth-child(3)) > * {
    flex-basis: 130px;
  }
}

@media (max-width: 575.98px) {
  .rs-sheet .rs-sheet-part .rs-sheet-block:not(.rs-sheet-block--side) > .rs-sheet-fig > .rs-sheet-panels--wide > * {
    flex-basis: 100%;
  }
}

/* colour (option C, "Accents"): white card; the part colour in the top edge, bullets, key-word chips, diagram panel and link button */

.rs-sheet .rs-sheet-part .rs-sheet-block {
  border-top: 4px solid var(--pt-edge, var(--rs-chem));
}

.rs-sheet .rs-sheet-part .rs-sheet-points > li::marker {
  color: var(--pt-edge);
  font-size: 1.1em;
}

.rs-sheet .rs-sheet-part .tooltip-word {
  padding: 0 2px;
  border-radius: 4px;
  background: var(--pt-soft);
  box-shadow: inset 0 -1px 0 var(--pt-line);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.rs-sheet .rs-sheet-part .rs-sheet-fig {
  background: var(--pt-wash);
  border: 1px solid var(--pt-line);
}

.rs-sheet .rs-sheet-part .sol-link-button {
  background: var(--pt-soft);
  border-color: var(--pt-line);
}

.rs-sheet .rs-sheet-part .sol-link-button:hover, .rs-sheet .rs-sheet-part .sol-link-button:focus-visible {
  background: #fff;
  border-color: var(--pt-edge);
  color: var(--rs-ink);
}

@media print {
  .rs-sheet .rs-sheet-part .rs-sheet-points {
    columns: 1;
  }
}

@media print {
  .rs-sheet .rs-sheet-part .tooltip-word {
    background: none;
    box-shadow: none;
  }
}

/* ---------------------------------------------------------
   Key words on content pages (v1.5, Matthew 16 Nov: "to make it more obvious these are key words"): the glossary's
   words (span.tooltip-word, from the tooltip script) get a soft chip like the revision sheets'. rs-page.js v1.4 gives
   each word a pale version of its section's Skip to colour (--kw-soft, --kw-line); without one it is a pale chemistry tint.
   Revision sheets keep their part colours (the rule above is more specific).
--------------------------------------------------------- */

.rs-page .tooltip-word {
  padding: 0 2px;
  border-radius: 4px;
  background: var(--kw-soft, #fff6f4);
  box-shadow: inset 0 -1px 0 var(--kw-line, #f2bcb0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media print {
  .rs-page .tooltip-word {
    background: none;
    box-shadow: none;
  }
}

/* ---------------------------------------------------------
   Message row (v1.6, Matthew 17 Nov: "messages that don't span full width"). An interactive card's explanation box
   (.ct-obs) sits in a row of its own under both columns: it has class ct-row and is a child of .ct-body, straight
   after .ct-side. On a wide card the row spans the card; with one column (phones) it comes after the side, as before.
   .ct-row--group: the box with a button that belongs under it. .ct-body--stack: one column on every screen, for cards
   whose side held only the message (their empty .ct-side is hidden). .ct-body--fs-side: in full screen the box goes back
   under the side column, where each page's full-screen layout expects it.
--------------------------------------------------------- */

.rs-page .ct-body > .ct-row {
  grid-column: 1 / -1;
  min-width: 0;
}

.rs-page .ct-row--group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rs-page .ct-body--stack {
  grid-template-columns: minmax(0, 1fr);
}

.rs-page .ct-body > .ct-side:empty {
  display: none;
}

/* full screen on a wide screen keeps the layout it had: (.ct-body--fs-side) the box under the side column, the picture beside both */

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--fs-side > .ct-stage {
    grid-row: span 2;
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--fs-side > .ct-row {
    grid-column: -2;
    margin-top: -4px;
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--fs-side > .ct-side {
    align-self: end;
  }
}

/* side and box stay together, centred beside the picture */

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--fs-side > .ct-row {
    align-self: start;
  }
}

/* cards with no side column: the picture and the box side by side again, as before */

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--stack {
    grid-template-columns: minmax(0, var(--ct-a, 1.5fr)) minmax(0, var(--ct-b, 1fr));
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--stack > .ct-row {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
}

/* 28 Nov: two or more boxes stack in the right column instead of sharing one cell */

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--stack:has( > .ct-row ~ .ct-row) {
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--stack:has( > .ct-row ~ .ct-row) > .ct-stage {
    grid-row: 1 / span 4;
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card.is-fs .ct-body--stack:has( > .ct-row ~ .ct-row) > .ct-row {
    grid-row: auto;
    align-self: start;
  }
}

@container (max-width: 700px) {
  .rs-page .ct-card--sticky .ct-body > .ct-row {
    order: 3;
  }
}

/* one column: .ct-body's gap is 14px, .ct-side's 10px; the box keeps the place it had at the end of the side */

@container (max-width: 700px) {
  .rs-page .ct-card:not(.ct-card--sticky) .ct-body:not(.ct-body--stack) > .ct-row {
    margin-top: -4px;
  }
}

/* readouts across a wide card (one column each, the label above the value), for a row whose message now sits under it */

@container (min-width: 701px) {
  .rs-page .ct-card:not(.is-fs) .ct-readouts--across {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding: 0;
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card:not(.is-fs) .ct-readouts--across > div {
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    padding: 8px 12px;
    border-top: 0;
    border-left: 1px solid #e0e3e8;
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card:not(.is-fs) .ct-readouts--across > div:first-child {
    border-left: 0;
  }
}

@container (min-width: 701px) {
  .rs-page .ct-card:not(.is-fs) .ct-readouts--across dd {
    text-align: left;
  }
}

/* ---- Control jobs (v1.7, 18 Nov 2026): one look per job, reused by every topic. Markup: choose-one = .ct-chip (aria-pressed); ordered steps = .ct-stepper > .ct-step (aria-current="step" on the current one) or .ct-act Back / Next with .ct-stepcount; on/off = label.ct-switch > input[type=checkbox][role=switch]; single action = .ct-act; view / mode = .ct-segtabs > .ct-segtab (aria-pressed). Matches the Name the isomer card. ---- */

.rs-page .ct-chip {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  min-height: 38px;
  padding: 6px 12px;
  border: 2px solid #7a8199;
  border-radius: 18px;
  background: #fff;
  color: var(--rs-ink);
}

.rs-page .ct-chip:hover {
  background: #f5f6fb;
}

.rs-page .ct-chip[aria-pressed="true"] {
  border-color: var(--rs-choice,#0f766e);
  background: var(--rs-choice-soft,#e3f4f1);
  color: var(--rs-ink);
  box-shadow: inset 0 0 0 1px var(--rs-choice,#0f766e);
  font-weight: 800;
}

.rs-page .ct-chip[aria-pressed="true"]::before {
  content: "" !important;
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--rs-choice,#0f766e);
  vertical-align: 1px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

.rs-page .ct-chip .rsam-dot {
  margin-right: 7px;
}

.rs-page .ct-act {
  font: inherit;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--rs-navy);
  border-radius: 8px;
  background: var(--rs-navy);
  color: #fff;
}

.rs-page .ct-act:hover {
  border-color: var(--rs-ink);
  background: var(--rs-ink);
}

.rs-page .ct-act:disabled {
  opacity: 0.4;
  cursor: default;
}

.rs-page .ct-act--sq {
  min-width: 40px;
  padding: 6px 10px;
  font-size: 1.1em;
}

.rs-page .ct-segtabs {
  display: inline-flex;
  max-width: 100%;
}

.rs-page .ct-segtab {
  font: inherit;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  min-height: 38px;
  padding: 6px 14px;
  border: 2px solid #7a8199;
  background: #fff;
  color: var(--rs-ink);
  position: relative;
}

.rs-page .ct-segtab + .ct-segtab {
  margin-left: -2px;
}

.rs-page .ct-segtab:first-child {
  border-radius: 10px 0 0 10px;
}

.rs-page .ct-segtab:last-child {
  border-radius: 0 10px 10px 0;
}

.rs-page .ct-segtab[aria-pressed="true"] {
  background: var(--rs-choice-soft,#e3f4f1);
  color: var(--rs-ink);
  z-index: 1;
}

.rs-page .ct-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #3f4458;
}

.rs-page .ct-switch input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 12px;
  background: #7a8199;
  cursor: pointer;
  transition: background 0.15s;
}

.rs-page .ct-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.rs-page .ct-switch input:checked {
  background: var(--rs-choice,#0f766e);
}

.rs-page .ct-switch input:checked::after {
  transform: translateX(18px);
}

.rs-page .ct-stepper {
  display: flex;
  flex-direction: column;
}

.rs-page .ct-step {
  font: inherit;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-height: 42px;
  padding: 6px 10px;
  border: 2px solid var(--rs-navy);
  background: #fff;
  color: var(--rs-navy);
  position: relative;
}

.rs-page .ct-step + .ct-step {
  margin-top: -2px;
}

.rs-page .ct-step:first-child {
  border-radius: 10px 10px 0 0;
}

.rs-page .ct-step:last-child {
  border-radius: 0 0 10px 10px;
}

.rs-page .ct-step .nb {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-grid;
  place-items: center;
  font-size: 0.8em;
  line-height: 1;
}

.rs-page .ct-step.is-done {
  background: #e6ebf8;
}

.rs-page .ct-step[aria-current="step"] {
  background: var(--rs-navy);
  color: #fff;
  z-index: 1;
}

.rs-page .ct-stepnav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rs-page .ct-stepcount {
  font-size: 0.88em;
  font-weight: 800;
  color: var(--rs-navy);
  text-align: center;
}

.rs-page .ct-chip:focus-visible, .rs-page .ct-act:focus-visible, .rs-page .ct-segtab:focus-visible, .rs-page .ct-step:focus-visible, .rs-page .ct-switch input:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .rs-page .ct-stepper--wide {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .rs-page .ct-stepper--wide .ct-step + .ct-step {
    margin-top: 0;
    margin-left: -2px;
  }
}

@media (min-width: 768px) {
  .rs-page .ct-stepper--wide .ct-step:first-child {
    border-radius: 10px 0 0 10px;
  }
}

@media (min-width: 768px) {
  .rs-page .ct-stepper--wide .ct-step:last-child {
    border-radius: 0 10px 10px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-page .ct-switch input, .rs-page .ct-switch input::after {
    transition: none;
  }
}

/* Colour system (21 Nov 2026, colour-plan.md): additions to the rules edited above */

.rs-page .rs-we-box::before {
  content: "✓ ";
  color: var(--rs-correct,#1b7a3d);
}

.rs-page .ct-segtab::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
  background: transparent;
}

.rs-page .ct-segtab[aria-pressed="true"]::before {
  background: var(--rs-choice,#0f766e);
  content: "" !important;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  overflow: hidden;
}

/* secondary actions (Reset, Back, Start again): a grey text button with no box. .ct-act--quiet for new pages; the
   attribute list covers the live pages' Reset / Back buttons without editing them */

.rs-page .ct-act--quiet, .rs-page :is(.ct-act, .ct-action):is([data-reset], [data-foil-reset], [data-iba-reset], [data-icl-reset], [data-balloon-reset], [data-chart-reset], [data-cl-reset], [data-g7-reset], [data-tx-reset], [data-mn-reset], [data-step="-1"], [data-model-step="-1"], [data-ee-again]) {
  min-height: 40px;
  padding: 8px 6px;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--ct-quiet,#5a5e6e) !important;
  text-underline-offset: 3px;
}

.rs-page .ct-act--quiet:hover, .rs-page .ct-act--quiet:focus-visible, .rs-page :is(.ct-act, .ct-action):is([data-reset], [data-foil-reset], [data-iba-reset], [data-icl-reset], [data-balloon-reset], [data-chart-reset], [data-cl-reset], [data-g7-reset], [data-tx-reset], [data-mn-reset], [data-step="-1"], [data-model-step="-1"], [data-ee-again]):hover, .rs-page :is(.ct-act, .ct-action):is([data-reset], [data-foil-reset], [data-iba-reset], [data-icl-reset], [data-balloon-reset], [data-chart-reset], [data-cl-reset], [data-g7-reset], [data-tx-reset], [data-mn-reset], [data-step="-1"], [data-model-step="-1"], [data-ee-again]):focus-visible {
  text-decoration: underline;
}

/* ---- rs-page.css v1.6 (22 Nov 2026): the tab strip is part of the card ----
   The tabs share the card's border, width and top corners. The open tab is the colour of the card's header
   (navy for worked examples, Watch out amber for Watch outs), so tab and header read as one piece. Closed tabs
   are pale, with a hover tint and underline, and share the width equally, so opening a tab never moves anything.
   Replaces the v1.1 / v1.2 / v1.4 tab rules (loose pale boxes with gaps above the card). Phones keep the
   numbered tabs (v1.4, owner's choice 15 Nov), now filling the strip too. */

.rs-page .rs-tabs-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 2px solid var(--rs-navy, #394362);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #eef1f8;
}

.rs-page .rs-tabs-tab {
  flex: 1 1 0;
  min-width: min-content;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-left: 1px solid #c9ced9;
  border-radius: 0;
  background: transparent;
  color: var(--rs-navy, #394362);
  font: inherit;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.rs-page .rs-tabs-tab:first-child {
  border-left: 0;
}

.rs-page .rs-tabs-tab:hover {
  background: #e1e6f2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rs-page .rs-tabs-tab[aria-selected="true"] {
  background: var(--rs-navy, #394362);
  color: #fff;
  font-weight: 400;
  text-decoration: none;
  cursor: default;
}

.rs-page .rs-tabs-tab[aria-selected="true"] + .rs-tabs-tab {
  border-left-color: transparent;
}

.rs-page .rs-tabs-tab:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: -3px;
}

.rs-page .rs-tabs-panel > .rs-we, .rs-page .rs-tabs-panel > .rs-mistake {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Watch out tabs: the same shape in Watch out amber */

.rs-page .rs-tabs--watch .rs-tabs-list {
  border-color: #e0a800;
  background: #fffbeb;
}

.rs-page .rs-tabs--watch .rs-tabs-tab {
  border-left-color: #ecd48a;
  background: #fff;
  color: #6b4e00;
  box-shadow: inset 0 -2px 0 #e0a800;
}

.rs-page .rs-tabs--watch .rs-tabs-tab:hover {
  background: #fff3cd;
}

.rs-page .rs-tabs--watch .rs-tabs-tab[aria-selected="true"] {
  background: #fff3cd;
  color: #3d2c00;
  font-weight: 800;
  box-shadow: none;
}

/* phones: numbered tabs fill the strip */

.rs-page .rs-tabs.is-compact .rs-tabs-tab {
  flex: 1 1 0;
  min-width: 44px;
}

.rs-page .rs-tabs.is-measuring .rs-tabs-tab {
  flex: 0 0 auto;
}

/* ---- rs-page.css v1.6 (22 Nov 2026): colour-matched parts in worked examples ----
   A worked example that splits a formula into parts colours each part the same in the question, the rows and the
   total, with a key under the question. Two part colours, kept clear of the feedback colours (red, green), the
   choice teal, amber, navy and purple: copper brown (part A) and blue (part B). Text on tint >= 6:1. Each part is
   also named in words (the key and the row labels), so the colour is never the only clue. */

.rs-page .rs-part {
  padding: 0 3px;
  border-radius: 4px;
  font-weight: 800;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap;
}

.rs-page .rs-part--a {
  color: #7a3f0c;
  background: #f8ebdd;
  box-shadow: inset 0 -2px 0 #c07a3a;
}

.rs-page .rs-part--b {
  color: #174f91;
  background: #e4eefa;
  box-shadow: inset 0 -2px 0 #5b8fd0;
}

.rs-page .rs-we-qf .rs-part {
  padding: 1px 5px;
}

.rs-page .rs-we-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0;
  padding: 7px 12px;
  border-top: 1px solid rgb(0 0 0 / 7%);
  background: #fff;
  font-size: 0.9em;
  color: #394362;
}

.rs-page .rs-we-key-h {
  font-weight: 900;
  color: #5f6475;
}

.rs-page .rs-we--parts .rs-we-steps > li:first-child {
  border-top: 1px solid #e0e3e8;
}

html, body {
  overflow-anchor: none;
}

.rs-page #hpNote {
  display: grid;
}

.rs-page #hpNote > * {
  grid-area: 1 / 1;
  margin: 8px 0 0;
}

.rs-page #hpNote > [hidden] {
  display: block !important;
  visibility: hidden;
}

@media (max-width: 767.98px) {
  .rs-page .h3o-note {
    display: grid;
  }
}

@media (max-width: 767.98px) {
  .rs-page .h3o-note > * {
    grid-area: 1 / 1;
    margin: 8px 0 0;
  }
}

@media (max-width: 767.98px) {
  .rs-page .h3o-note > [hidden] {
    display: block !important;
    visibility: hidden;
  }
}

@media (max-width: 575.98px) {
  .rs-page #cbCard .ct-acts > .ct-act:not(.ct-act--quiet), .rs-page #neCard .ct-acts > .ct-act:not(.ct-act--quiet) {
    flex: 1 1 100%;
  }
}

.rs-page #bePanels {
  display: grid;
}

.rs-page #bePanels > .be-panel {
  grid-area: 1 / 1;
}

.rs-page #bePanels > .be-panel[hidden] {
  display: block !important;
  visibility: hidden;
}

.rs-page .cf-dec-wait {
  color: var(--rs-muted, #5d6475);
  margin: 0;
}

#rsPolymers .pl-wait {
  margin: 0;
  color: var(--rs-muted, #5d6475);
  text-align: center;
}

.rs-page #neCard .h3o-note {
  display: grid;
}

.rs-page #neCard .h3o-note > * {
  grid-area: 1 / 1;
  margin: 8px 0 0;
}

.rs-page #neCard .h3o-note > [hidden] {
  display: block !important;
  visibility: hidden;
}

.rs-page .ct-help-btn, .rs-page .ct-fs-btn, .rs-page [data-ct-fs] {
  min-height: var(--rs-ct-head-btn-min, 0) !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-size: clamp(0.8rem, 0.82em, 0.98rem) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .rs-page {
    --rs-ct-head-btn-min: 40px;
  }
}

.rs-page .ct-help-btn > span:first-child {
  font-size: 0.72rem !important;
}

.rs-page .ptp-card-title, .rs-page .rsam-card-title, .rs-page .rs-hp-tool-title, .rs-page .rs-ah-tool-title, .rs-page .som-card-lead, .rs-page .mb-card-lead, .rs-page .mix-card-lead, .rs-page .cos-card-lead, .rs-page .dis-interactive-title, .rs-page .dif-interactive-title, .rs-page .fil-interactive-title, .rs-page .cry-interactive-title, .rs-page .rs-es-explorer-title, .rs-page .rs-tm-title, .rs-page .rs-g1-head > h5, .rs-page .rs-g7-cardhead > h5, .rs-page .rs-mn-cardhead > h5, .rs-page .rs-g0-head > h5, .rs-page .rs-tm-head > h5, .rs-page .rs-g0-card > h5:first-child {
  margin-top: 0;
  color: var(--rs-ink, #25242f) !important;
  font-family: inherit;
  font-size: inherit !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  letter-spacing: 0;
}

.rs-page .rs-g7-muted:first-of-type, .rs-page .rs-hp-tool-intro, .rs-page .rs-es-helper, .rs-page .mb-card-note, .rs-page .mix-card-note, .rs-page .dis-interactive-intro, .rs-page .dif-interactive-intro, .rs-page .fil-interactive-intro, .rs-page .cry-interactive-intro {
  color: #5f6475 !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.rs-page .ptp-card, .rs-page .rsam-card, .rs-page .rsam-ea, .rs-page .rs-hp-tool, .rs-page .rs-ah-tool, .rs-page .som-card, .rs-page .mb-card, .rs-page .mix-card, .rs-page .cos-card, .rs-page .dis-card, .rs-page .dif-card, .rs-page .fil-card, .rs-page .cry-card, .rs-page .sol-card, .rs-page .rs-es-explorer, .rs-page .rs-g1-card, .rs-page .rs-g7-card, .rs-page .rs-mn-card, .rs-page .rs-g0-card, .rs-page .rs-tm-card {
  border-color: #e0e3e8 !important;
  border-radius: 14px !important;
  background-color: #fff;
}

.rs-page [class$="-fullscreen-button"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0 !important;
  padding: 4px 10px !important;
  border: 1px solid #d0d4e0 !important;
  border-radius: 8px !important;
  background: #f5f6fb !important;
  color: #1d2b4f !important;
  font-size: clamp(0.8rem, 0.82em, 0.98rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  transform: none !important;
}

.rs-page [class$="-fullscreen-button"] [class$="-fullscreen-icon"] {
  font-size: 1em !important;
  line-height: 1;
}

.rs-page .rsam-card-intro, .rs-page .ptp-card-intro, .rs-page .som-card-note, .rs-page .rs-ah-tool-intro {
  color: #5f6475 !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.rs-page .ct-help-btn, .rs-page .ct-fs-btn, .rs-page [class$="-fullscreen-button"] {
  font-weight: 800 !important;
  border-color: #7d849a !important;
  font-family: inherit;
}

.rs-page .ct-help-btn *, .rs-page .ct-fs-btn *, .rs-page [class$="-fullscreen-button"] * {
  font-weight: inherit;
}

.rs-page .ptp-card-title, .rs-page .rsam-card-title, .rs-page .rs-hp-tool-title, .rs-page .rs-ah-tool-title, .rs-page .som-card-lead, .rs-page .mb-card-lead, .rs-page .mix-card-lead, .rs-page .cos-card-lead, .rs-page .dis-interactive-title, .rs-page .dif-interactive-title, .rs-page .fil-interactive-title, .rs-page .cry-interactive-title, .rs-page .rs-es-explorer-title, .rs-page .rs-tm-title, .rs-page .rs-g1-head > h5, .rs-page .rs-g7-cardhead > h5, .rs-page .rs-mn-cardhead > h5, .rs-page .rs-g0-head > h5, .rs-page .rs-tm-head > h5, .rs-page .rs-g0-card > h5:first-child, .rs-page .sol-card-title, .rs-page .cos-card-lead, .rs-page .mb-card-lead, .rs-page .mix-card-lead, .rs-page .som-card-lead {
  margin-bottom: 2px !important;
}

.rs-page .sol-card-note, .rs-page .cos-card-note {
  color: #5f6475 !important;
}

.rs-ah-tline.is-fs .rs-ah-timeline, .rs-hp-tl.is-fs .rs-hp-timeline {
  column-width: 320px;
  column-gap: 28px;
}

.rs-ah-tline.is-fs .rs-ah-entry, .rs-hp-tl.is-fs .rs-hp-entry {
  break-inside: avoid;
  padding-bottom: 18px;
}

.rs-page [data-fs-layout].is-fs [class$="-interactive-header"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  width: 100%;
  text-align: left !important;
}

.rs-page [data-fs-layout].is-fs [class$="-interactive-title"] {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem) !important;
  margin: 0 !important;
}

.rs-page [data-fs-layout].is-fs .ct-head-btns {
  display: flex;
  gap: 6px;
  font-size: 1rem;
}

.rs-page [data-fs-layout].is-fs {
  padding-top: max(10px, 1vh) !important;
  justify-content: flex-start !important;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
    column-gap: 16px;
    align-items: start;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom > * {
    grid-column: 1 / -1;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom > .mb-curve-layout {
    display: contents !important;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom .mb-curve-panel {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom .mb-curve-summary {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom > .mb-curve-wide-explanations {
    grid-column: 3;
    grid-row: 3;
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
  }
}

.rs-page .ct-card.is-fs {
  font-size: clamp(18px, min(1.5vw, 2.7vh), 30px);
}

.rs-page .ct-fs-own.is-fs {
  font-size: 18px !important;
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom > .mb-curve-mode-tabs {
    grid-row: 2;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom > .mb-card-note {
    grid-row: 2;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom > .mb-curve-mode-tabs {
    grid-row: 3;
  }
}

@media (min-width: 600px) {
  .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom .mb-curve-panel, .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom .mb-curve-summary, .rs-page .mb-card.is-fs:has(.mb-curve-layout) > .ct-fs-zoom > .mb-curve-wide-explanations {
    grid-row: 4;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas: "vis where when" "vis idea what";
    grid-template-rows: auto 1fr;
    gap: 12px !important;
    align-items: stretch;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-visual {
    grid-area: vis;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-text, .rs-page .cos-card.is-fs .cos-process-points {
    display: contents !important;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-point:nth-child(1) {
    grid-area: where;
    margin: 0 !important;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-point:nth-child(2) {
    grid-area: when;
    margin: 0 !important;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-point:nth-child(3) {
    grid-area: idea;
    margin: 0 !important;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-wide-detail {
    grid-area: what;
    grid-column: auto !important;
    margin: 0 !important;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-canvas-wrap {
    width: 100% !important;
    height: auto !important;
  }
}

@media (min-width: 600px) {
  .rs-page .cos-card.is-fs .cos-process-canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}

@media (min-width: 600px) {
  .rs-page .en-card.is-fs .en-svg {
    max-width: none !important;
    width: auto !important;
    height: calc(100vh - 190px) !important;
    max-height: none !important;
  }
}

.rs-page .ct-card.rv-card.is-fs, .rs-page .ct-card.eq-card.is-fs, .rs-page .ct-card.ec-card.ec-wide.is-fs, .rs-page .rc-card.rc-card.is-fs {
  font-size: clamp(18px, min(1.5vw, 2.7vh), 30px);
}

.rs-page .ct-card.re-card.is-fs {
  font-size: clamp(18px, min(1.5vw, 2.7vh), 30px) !important;
}

@media (min-width: 600px) {
  .rs-page .rs-ah-tool.is-fs .rs-ah-model-panel {
    grid-template-columns: calc(170px + var(--fs-room, 0px) * 0.9) minmax(0, 1fr) !important;
  }
}

@media (min-width: 600px) {
  .rs-page .rs-ah-tool.is-fs .rs-ah-model-art {
    max-width: none !important;
  }
}

@media (min-width: 600px) {
  .rs-page .sol-card.is-fs .sol-saturation-svg {
    width: calc(300px + var(--fs-room, 0px) * 0.9) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
  }
}

@media (min-width: 600px) {
  .rs-page .rsam-card.is-fs .rsam-px {
    grid-template-columns: calc(230px + var(--fs-room, 0px) * 0.9) minmax(0, 1fr) !important;
  }
}

@media (min-width: 600px) {
  .rs-page .rsam-card.is-fs .rsam-px-atom {
    max-width: none !important;
  }
}

@media (min-width: 600px) {
  .rs-page .rsam-ea.is-fs .rsam-ea-svg {
    width: calc(190px + var(--fs-room, 0px) * 0.9) !important;
  }
}

@media (min-width: 600px) {
  .rs-page .dif-dilution-interactive.is-fs .dif-tube svg {
    height: calc(135px + var(--fs-room, 0px) * 0.85) !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 600px) {
  .rs-page .som-card.is-fs .som-particle-canvas {
    height: calc(310px + var(--fs-room, 0px) * 0.9) !important;
  }
}

.rs-page .rs-howto-host.is-fs:not(.ct-card), .rs-page .ct-fs-own.is-fs, .rs-page [data-fs-layout].is-fs {
  background: #fff !important;
}

.rs-page .is-fs > .ct-fs-zoom {
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs {
    display: grid !important;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 22px;
    align-content: start;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs > * {
    grid-column: 1 / -1;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs > .cf-dec-pick {
    grid-column: 1;
    grid-row: 2 / span 2;
    align-self: start;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs > .cf-dec-head {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs > .cf-dec-cols {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs .cf-dec-pickrow {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs [data-dec-buttons] {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(5.5em, 1fr));
    gap: 6px;
  }
}

@media (min-width: 900px) {
  #rsCrystallisationPage #cryCoolInteractive.is-fs .cry-mx.cry-mx {
    grid-template-areas: "toolbar toolbar" "stage side" "stage counts" "stage foot";
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  #rsCrystallisationPage #cryCoolInteractive.is-fs .cry-mx.cry-mx > .cry-mx-foot {
    align-self: start;
    min-width: 0;
  }
}

@media (min-width: 900px) {
  #rsCrystallisationPage #cryCoolInteractive.is-fs .cry-mx.cry-mx {
    width: 100%;
    align-self: stretch;
  }
}

@media (min-width: 900px) {
  #rsCrystallisationPage #cryCoolInteractive.is-fs .cry-mx.cry-mx > .cry-mx-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-self: start;
  }
}

@media (min-width: 600px) {
  .rs-page .dis-card.ct-fs-own.is-fs .dis-model.dis-model {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas: "toolbar" "stage" "side" !important;
    flex: 0 0 auto !important;
  }
}

@media (min-width: 600px) {
  .rs-page .dis-card.ct-fs-own.is-fs .dis-model.dis-model .dis-stage {
    aspect-ratio: 853 / 337;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }
}

@media (min-width: 600px) {
  .rs-page .dis-card.ct-fs-own.is-fs .dis-model.dis-model .dis-side--fractions {
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr) !important;
    gap: 10px;
    align-items: start;
  }
}

@media (min-width: 600px) {
  .rs-page .dis-card.ct-fs-own.is-fs .dis-model.dis-model .dis-fractions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs .cf-dec-pickrow, .rs-page .ct-card.cf-dec.is-fs [data-dec-buttons] {
    width: 100%;
  }
}

@media (min-width: 600px) {
  .rs-page .ct-card.cf-dec.is-fs .cf-dec-more {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    align-self: stretch;
  }
}

.rs-ah-tline.is-fs:has(details[open]) .rs-ah-timeline, .rs-hp-tl.is-fs:has(details[open]) .rs-hp-timeline {
  column-width: auto !important;
  columns: auto !important;
}

.rs-page .hm-row .hm-b {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.rs-page .ct-seg-row.hm-inv {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
  gap: 6px;
}

.rs-page .is-fs details {
  scroll-margin-top: 14px;
}

/* 25b: a readout's label keeps its line; a long value wraps under it (electrolysis cells: 'At the cathode (−)' was squeezed to one word a line) */

.rs-page .ct-readouts > div {
  flex-wrap: wrap;
  row-gap: 2px;
}

.rs-page .ct-readouts dt {
  flex: 0 0 auto;
}

.rs-page .ct-readouts dd {
  flex: 1 1 8em;
}

/* 25e (26 Nov, layout standard): an equation box and its explanation side by side in one row under the picture */

.rs-page .sc-rowbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.rs-page .sc-rowbox > * {
  margin: 0 !important;
  min-width: 0;
}

/* 25e: Follow the electrons in one column (layout standard) */

.rs-page #efCard .ef-ctrlbar {
  margin-bottom: 8px;
}

.rs-page #efCard .ef-acts {
  justify-content: center;
  margin-top: 8px !important;
}

@media (min-width: 768px) {
  .rs-page #efCard:not(.is-fs) .ef-pic svg {
    max-height: 380px;
  }
}

/* 25f: boxes in a row keep their own height (no stretching to the tallest) */

.rs-page .sc-rowbox {
  align-items: start;
}

.rs-page .ne-beyond {
  margin: 0 !important;
}

.rs-page #efCard.ef-building .ef-tags {
  display: none;
}

.rs-page #efHb.hb-inner {
  margin-top: 8px;
}

/* 25g: Follow the electrons in full screen fits with the Half equation builder under it */

@media (min-width: 900px) {
  .rs-page #efCard.is-fs {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 10px;
    align-content: start;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs > .ct-head {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs > .ct-body {
    display: contents;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs > .ct-body > .ct-stage {
    grid-column: 1;
    grid-row: 2 / span 2;
    align-self: start;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs > .ct-body > .ct-obs {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs > .ef-he {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
    align-self: stretch;
    overflow: auto;
    min-height: 0;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs .hb-inner .ct-body--one {
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: end;
    column-gap: 24px;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs .hb-inner .ct-body--one > :not(.ct-control):not(.hb-test) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs .hb-inner .hb-test {
    margin: 0 0 6px;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs > .ct-body > .ct-obs, .rs-page #efCard.is-fs > .ef-he {
    font-size: 0.85em;
  }
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs .ef-svg {
    max-height: calc(100vh - 470px);
  }
}

.rs-page .hb-card.is-fs .ct-body--one {
  gap: 6px;
  row-gap: 6px;
}

/* 25g: Follow the electrons full screen: half equation heading, ion choices and Test me sit under the Play buttons */

.rs-page #efCard .ef-he-ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 20px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rs-line, #e2e6ee);
  font-size: 0.85em;
}

.rs-page #efCard .ef-he-ctl > .ef-he-top {
  margin: 0 0 10px;
}

.rs-page #efCard .ef-he-ctl .ct-control-label {
  display: none;
}

@media (min-width: 900px) {
  .rs-page #efCard.is-fs .ef-svg {
    max-height: calc(100vh - 360px - 8.6vw);
  }
}

.rs-page #efCard .ef-he-ctl > .ct-control {
  margin: 0;
}

.rs-page #efCard .ef-he-ctl > .hb-test {
  margin: 0 0 6px;
}

/* 25g: header buttons wrap on narrow screens instead of running off the card */

@media (max-width: 575px) {
  .rs-page .ct-head-btns {
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    justify-content: flex-start !important;
    margin-left: 0;
  }
}

/* 26a: Start empty (rs-startempty.js): the picture and the boxes keep their space, with a prompt, until a choice is made */

.ct-card.se-empty .se-hide {
  visibility: hidden !important;
}

.ct-card.se-empty .se-blank {
  color: transparent !important;
}

.ct-card.se-empty .se-blank * {
  visibility: hidden !important;
}

.ct-card.se-empty .se-off {
  opacity: 0.45;
  pointer-events: none;
}

.ct-card.se-empty .se-prompt.se-prompt, .ct-card.se-empty .se-blank .se-prompt.se-prompt {
  color: var(--rs-muted, #696e7f) !important;
  visibility: visible !important;
}

.ct-card .se-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--rs-muted, #696e7f);
  visibility: visible !important;
  pointer-events: none;
  z-index: 2;
}

/* 26a: interactive layout standard: a card's choices sit in .ct-choose just above the picture */

.rs-page .ct-card .ct-choose {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 24px;
  min-width: 0;
}

.rs-page .ct-card .ct-choose > .ct-control, .rs-page .ct-card .ct-choose > .rp-row {
  margin: 0;
}

/* 26a: in full screen (two columns) the choices go back to the top of the controls column, beside the picture */

@media (min-width: 900px) {
  .rs-page .ct-card.is-fs .ct-body > .ct-choose {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}

@media (min-width: 900px) {
  .rs-page .ct-card.is-fs .ct-body:has( > .ct-choose) > .ct-stage {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

@media (min-width: 900px) {
  .rs-page .ct-card.is-fs .ct-body:has( > .ct-choose) > .ct-side {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}

@media (min-width: 900px) {
  .rs-page .ct-card.is-fs .ct-body:has( > .ct-choose) {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
  }
}

/* 26a: the enzyme model and Will the particles react? fit one laptop screen (picture drawn a little smaller) */

.rs-page #catEnzyme:not(.is-fs) .ct-svg-stage > svg {
  max-height: 400px;
}

.rs-page #rpHill:not(.is-fs) .ct-svg-stage > svg {
  max-height: 380px;
}

/* 26a: readouts laid across: the value is as tall as its text (the 144px basis meant for rows made half-empty boxes) */

.rs-page .ct-card .ct-readouts--across dd {
  flex: 0 0 auto;
}

body:has(.alevel-selector-container) .rs-page .rs-we {
  border: 0;
  border-left: 3px solid #121643;
  border-radius: 0 6px 6px 0;
  background: #f6f7fa;
}

body:has(.alevel-selector-container) .rs-page .rs-we-head {
  background: transparent;
  color: #25242f;
  padding: 14px 18px 6px;
  display: block;
}

body:has(.alevel-selector-container) .rs-page .rs-we-tag {
  display: block;
  background: none;
  padding: 0;
  margin-bottom: 4px;
  color: #6b6f80;
  font-weight: 700;
  font-size: .74em;
  letter-spacing: .12em;
}

body:has(.alevel-selector-container) .rs-page .rs-we-q {
  color: #121643;
  font-weight: 600;
}

body:has(.alevel-selector-container) .rs-page .rs-we-steps > li, body:has(.alevel-selector-container) .rs-page .rs-we-steps > li:nth-child(n) {
  background: transparent;
  border-top: 1px solid #e3e6ee;
  padding: 10px 18px;
}

body:has(.alevel-selector-container) .rs-page .rs-we-steps > li:nth-child(even) {
  background: #eceef4;
}

body:has(.alevel-selector-container) .rs-page .rs-we-steps > li::before {
  width: 22px;
  height: 22px;
  border: 0;
  background: #121643;
  color: #fff;
  font-weight: 600;
  font-size: .8em;
}

body:has(.alevel-selector-container) .rs-page .rs-we-lab {
  font-weight: 700;
  color: #394362;
}

body:has(.alevel-selector-container) .rs-page .rs-we-why::before {
  font-weight: 700;
  color: #8a8fa0;
}

body:has(.alevel-selector-container) .rs-page .rs-we-ans {
  border-top: 1px solid #e3e6ee;
  background: transparent;
  justify-content: flex-start;
  padding: 12px 18px;
  font-weight: 600;
}

body:has(.alevel-selector-container) .rs-page .rs-we-box {
  border: 0;
  border-bottom: 2px solid #2f7a4f;
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  font-weight: 700;
  color: #1f5e3a;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake {
  border: 0;
  border-left: 3px solid #c9962b;
  border-radius: 0 6px 6px 0;
  background: #fbf8f1;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-head {
  background: transparent;
  color: #7a5a12;
  font-weight: 700;
  font-size: .8em;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 18px 4px;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-head::before {
  content: none;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-q {
  border-top: 0;
  font-weight: 600;
  color: #121643;
  padding: 4px 18px 10px;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-qtag {
  background: none;
  color: #6b6f80;
  padding: 0;
  letter-spacing: .1em;
  font-weight: 700;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-rows > * {
  border-top-color: #eee6d3;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-cols > span {
  font-weight: 700;
  font-size: .8em;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-cols .w, body:has(.alevel-selector-container) .rs-page .rs-mistake-cols .r, body:has(.alevel-selector-container) .rs-page .rs-mistake-lab {
  background: transparent;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-cols .w {
  color: #a14743;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-cols .r {
  color: #2f7a4f;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-w, body:has(.alevel-selector-container) .rs-page .rs-mistake-w.is-bad {
  background: #fff;
  box-shadow: inset 2px 0 0 #d9a3a0;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-r, body:has(.alevel-selector-container) .rs-page .rs-mistake-r.is-fix {
  background: #fff;
  box-shadow: inset 2px 0 0 #8cc4a1;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-w.is-bad small {
  color: #a14743;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-r.is-fix small {
  color: #2f7a4f;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-why {
  background: transparent;
  padding: 10px 18px;
}

body:has(.alevel-selector-container) .rs-page .rs-mistake-why-tag {
  color: #7a5a12;
  font-weight: 700;
}

