/* =====================================================================
   rs-calc.css  ·  Shared step-by-step calculator  ·  v3.2.7 (16 Nov 2026)
   Revise Science. Pairs with rs-calc.js v3 (v3.2.7 for the full screen fit).
   v3.2.7: full screen covers the whole screen on the start screen too (see the end of this file).
   v3.0: restyled to match the interactive cards and worked examples (see the
   "v3 look" section at the end, which overrides the older rules above).
   Colours: teal frame and start buttons (the "interactive" colour, as on
   the practicals), coral for the question, amber for the boxes being
   filled in now, slate grey, dashed, for work beyond most courses (21 Nov 2026), dark ink for the
   one main button in each step.
   ===================================================================== */

.rc-card {
  --rc-ink: var(--rs-ink, #25242f);
  --rc-muted: #5f6475;
  --rc-line: #d3d6de;
  --rc-soft: #f4f6f8;
  --rc-teal: #1D9E75;
  --rc-teal-d: #0F6E56;
  --rc-teal-dd: #085041;
  --rc-teal-s: #E1F5EE;
  --rc-coral: #D85A30;
  --rc-coral-d: #993C1D;
  --rc-amber-s: #FAEEDA;
  --rc-amber: #BA7517;
  --rc-amber-d: #633806;
  --rc-ok: var(--rs-correct,#1b7a3d);
  --rc-ok-s: var(--rs-correct-soft,#e8f5ec);
  --rc-no: var(--rs-wrong,#b52b27);
  container-type: inline-size;
  margin: 18px 0 24px;
  padding: 14px 16px 16px;
  border: 2px solid var(--rc-teal);
  border-radius: 14px;
  background: #fff;
  color: var(--rc-ink);
  line-height: 1.5;
  --rc-slate: var(--rs-slate,#64748b);
  --rc-slate-d: var(--rs-slate-ink,#334155);
  --rc-slate-s: var(--rs-slate-soft,#e8ecf1);
}

.rc-card p {
  margin: 0;
}

.rc-card, .rc-card *, .rc-card *::before, .rc-card *::after {
  box-sizing: border-box;
}

.rc-card button {
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
}

.rc-card button:focus-visible, .rc-input:focus-visible, .rc-q-text:focus-visible, .rc-panel-h:focus-visible {
  outline: 3px solid #5ba4cf;
  outline-offset: 2px;
}

.rc-card [hidden] {
  display: none !important;
}

/* head: setup shows the title; working shows Change level, a summary, New question */

.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rc-head-main {
  order: 1;
  flex: 0 0 auto;
}

.rc-head-sub {
  order: 2;
  flex: 1 1 12em;
  min-width: 0;
}

.rc-head-tools {
  order: 3;
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}

.rc-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--rc-teal-s);
  color: var(--rc-teal-dd);
  font-weight: 800;
  font-size: 0.88em;
}

.rc-intro {
  color: var(--rc-muted);
  font-size: 0.95em;
}

.rc-summary {
  color: var(--rc-muted);
  font-size: 0.9em;
  min-width: 0;
}

.rc-summary-title {
  color: var(--rc-ink);
  font-weight: 800;
}

.rc-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--rc-slate-s);
  color: var(--rc-slate-d);
  font-size: 0.78em;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: 1px;
  border: 1px solid var(--rs-slate-line,#cbd5e1);
}

/* buttons */

.rc-btn {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rc-ink);
  font-weight: 700;
  font-size: 0.92em;
}

.rc-btn:hover {
  background: var(--rc-soft);
}

.rc-btn--main {
  border-color: var(--rc-ink);
  background: var(--rc-ink);
  color: #fff;
  font-weight: 800;
  padding-left: 18px;
  padding-right: 18px;
}

.rc-btn--main:hover {
  background: #3a3946;
}

.rc-btn--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--rc-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.rc-back {
  padding: 5px 10px;
}

.rc-fs {
  padding: 5px 10px;
  color: var(--rc-muted);
}

/* setup */

.rc-setup {
  display: grid;
  gap: 10px;
}

.rc-h {
  font-weight: 800;
  font-size: 1.02em;
}

.rc-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr));
  gap: 8px;
}

.rc-level {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  color: var(--rc-ink);
}

.rc-level:hover {
  border-color: var(--rc-teal);
}

.rc-level-name {
  font-weight: 800;
}

.rc-level-desc {
  color: var(--rc-muted);
  font-size: 0.86em;
}

.rc-level[aria-pressed="true"] {
  border: 2px solid var(--rc-teal-d);
  padding: 8px 10px;
  background: var(--rc-teal-s);
}

.rc-level[aria-pressed="true"] .rc-level-name {
  color: var(--rc-teal-dd);
}

.rc-level[aria-pressed="true"] .rc-level-desc {
  color: var(--rc-teal-d);
}

.rc-level.is-beyond {
  border-style: dashed;
  border-color: var(--rc-slate);
}

.rc-level.is-beyond[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--rc-teal-d);
  background: var(--rc-teal-s);
}

.rc-level.is-beyond[aria-pressed="true"] .rc-level-name {
  color: var(--rc-teal-dd);
}

.rc-level.is-beyond[aria-pressed="true"] .rc-level-desc {
  color: var(--rc-teal-d);
}

.rc-level .rc-tag {
  justify-self: start;
  margin-top: 3px;
}

.rc-format {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--rc-muted);
  font-size: 0.92em;
}

.rc-seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rc-seg {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rc-ink);
  font-weight: 700;
}

.rc-seg[aria-pressed="true"] {
  border-color: var(--rc-teal-d);
  background: var(--rc-teal-s);
  color: var(--rc-teal-dd);
}

.rc-starts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
  gap: 8px;
}

.rc-start {
  display: grid;
  gap: 2px;
  min-height: 60px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--rc-teal-d);
  color: #fff;
  text-align: center;
}

.rc-start:hover {
  background: var(--rc-teal-dd);
}

.rc-start-name {
  font-weight: 800;
}

.rc-start-desc {
  font-size: 0.85em;
  color: #d6f2e7;
}

/* working view */

.rc-work {
  display: grid;
  gap: 8px;
  align-content: start;
}

.rc-main, .rc-side {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.rc-main > *, .rc-side > * {
  min-width: 0;
}

/* working and the step panel side by side, the same height, so the panel's buttons never move */

@container (min-width: 640px) {
  .rc-side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
  }
}

.rc-table {
  overflow-x: auto;
}

.rc-question {
  padding: 2px 0 2px 12px;
  border-left: 4px solid var(--rc-coral);
}

.rc-q-label {
  color: var(--rc-coral-d);
  font-weight: 800;
  font-size: 0.82em;
}

.rc-q-text {
  font-weight: 800;
  font-size: 1.06em;
}

.rc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  table-layout: fixed;
}

.rc-table td {
  overflow: hidden;
  text-overflow: clip;
}

.rc-table th, .rc-table td {
  height: 2.3em;
  padding: 0 10px;
  border-bottom: 1px solid #e3e5ea;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.rc-table thead th {
  color: var(--rc-muted);
  font-weight: 700;
  font-size: 0.92em;
  white-space: normal;
  border-bottom: 1px solid #c9cdd6;
}

.rc-table tbody th {
  font-weight: 800;
}

.rc-table .rc-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rc-table tr.rc-total th, .rc-table tr.rc-total td {
  border-top: 2px solid #9aa1b2;
  border-bottom: 0;
}

.rc-table .rc-workcol {
  min-width: 7.5em;
}

.rc-table .is-active {
  background: #eef1f8;
}

.rc-table thead th.is-active {
  color: var(--rc-navy);
}

.rc-table td.is-empty {
  color: var(--rc-muted);
}

.rc-table td.is-filled {
  font-weight: 700;
}

.rc-card .rc-cell-input {
  display: block;
  margin-left: auto;
  line-height: 1;
  width: 100%;
  max-width: 7.5em;
  height: 1.75em;
  min-height: 0;
  padding: 0 8px;
  min-width: 0 !important;
  text-align: right;
  border-color: var(--rc-navy) !important;
}

.rc-card .rc-cell-input.is-ok {
  border-color: var(--rc-ok) !important;
}

.rc-card .rc-cell-input.is-bad {
  border-color: var(--rc-no) !important;
}

.rc-tick {
  color: var(--rc-ok);
  font-weight: 800;
}

/* "how common" bar, under the abundance in the same cell */

.rc-abund {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rc-abund-n {
  flex: 0 0 auto;
  min-width: 2.6em;
  text-align: right;
}

.rc-bar {
  display: block;
  flex: 1 1 auto;
  height: 8px;
  border-radius: 4px;
  background: #e9ebf0;
  min-width: 3em;
}

.rc-bar-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 4px;
  background: #5F5E5A;
}

.rc-bar.is-unknown {
  background: #fff;
  border: 1px dashed #9aa1b2;
}

.rc-rule {
  color: var(--rc-muted);
  font-size: 0.92em;
}

.rc-rule:empty {
  display: none;
}

.rc-rule-label {
  color: var(--rc-ink);
  font-weight: 800;
}

.rc-chart:empty {
  display: none;
}

/* your working: a fixed slot for every step, from the start */

.rc-working-h {
  color: var(--rc-muted);
  font-weight: 800;
  font-size: 0.85em;
  margin-bottom: 2px !important;
}

.rc-working-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  font-size: 0.93em;
  font-variant-numeric: tabular-nums;
}

.rc-wl {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 2.15em;
  padding: 0 8px;
  border-left: 3px solid transparent;
}

.rc-wl-body {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.rc-wl.is-todo {
  color: #8a8f9c;
}

.rc-wl.is-now {
  border-left-color: var(--rc-navy);
  background: #eef1f8;
}

.rc-wl-title {
  font-weight: 700;
}

.rc-wl.is-todo .rc-wl-title {
  font-weight: 400;
}

.rc-working-n {
  flex: 0 0 3.6em;
  color: var(--rc-muted);
  font-size: 0.88em;
}

.rc-card .rc-line-input {
  line-height: 1;
  width: 6.5em;
  height: 1.75em;
  min-height: 0;
  padding: 0 8px;
  border-color: var(--rc-navy);
  text-align: right;
  vertical-align: middle;
}

.rc-badge {
  display: inline-block;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--rc-soft);
  color: var(--rc-muted);
  font-size: 0.82em;
  font-weight: 700;
}

/* the step panel: one step at a time */

.rc-panel {
  padding: 10px 14px 12px;
  border-radius: 10px;
  background: var(--rc-soft);
}

.rc-panel .rc-actions {
  margin: 6px 0 8px;
}

.rc-panel-step {
  color: var(--rc-muted);
  font-size: 0.85em;
}

.rc-panel-h {
  font-weight: 800;
  font-size: 1.05em;
}

.rc-task {
  margin-bottom: 4px !important;
}

.rc-where {
  color: var(--rc-navy);
  font-weight: 700;
}

.rc-worked {
  margin-bottom: 8px;
}

.rc-worked p + p, .rc-worked p + .rc-line, .rc-worked .rc-line + p {
  margin-top: 5px;
}

.rc-line {
  margin: 4px 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
}

.rc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17em), 1fr));
  gap: 8px 20px;
  margin-bottom: 8px;
}

.rc-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.rc-label {
  font-weight: 700;
}

.rc-input {
  width: 8em;
  min-height: 40px;
  padding: 6px 10px;
  border: 2px solid #b9bfcc;
  border-radius: 8px;
  background: #fff;
  color: var(--rc-ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.rc-input.is-ok {
  border-color: var(--rc-ok);
}

.rc-input.is-bad {
  border-color: var(--rc-no);
}

.rc-unit {
  color: var(--rc-muted);
}

.rc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rc-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rc-choice-btn {
  min-height: 40px;
  background: #fff;
}

.rc-hint {
  margin-top: 8px !important;
  padding: 6px 10px;
  border-left: 4px solid #5ba4cf;
  border-radius: 0;
  background: #fff;
}

.rc-feedback {
  margin-top: 8px !important;
  font-weight: 700;
}

.rc-feedback:empty {
  display: none;
}

.rc-feedback[data-state="ok"] {
  color: var(--rc-ok);
}

.rc-feedback[data-state="ok"]::before {
  content: "✓ ";
}

.rc-feedback[data-state="no"] {
  color: var(--rc-no);
}

.rc-feedback[data-state="shown"] {
  color: var(--rc-ink);
  font-weight: 400;
}

.rc-fb-label {
  color: var(--rc-muted);
  font-weight: 700;
}

.rc-panel.is-done {
  background: var(--rc-ok-s);
}

.rc-done-body {
  margin-top: 2px;
}

.rc-done-body p + p {
  margin-top: 5px;
}

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

/* mass scale (or other figure): placed by value, line height = how common, a marked value */

.rc-scale {
  margin: 0;
  padding: 6px 12px 2px;
  border: 1px solid #dfe1e6;
  border-radius: 10px;
  background: #fff;
}

.rc-done-body .rc-scale {
  margin-top: 6px;
}

.rc-scale-cap {
  font-weight: 800;
  font-size: 0.9em;
}

.rc-scale-plot {
  position: relative;
  height: 40px;
  margin: 22px 4px 0;
  border-bottom: 2px solid var(--rc-ink);
}

.rc-scale-peak {
  position: absolute;
  bottom: 0;
  width: 8px;
  margin-left: -4px;
  border-radius: 3px 3px 0 0;
  background: #5F5E5A;
}

.rc-scale-peak.is-unknown {
  background: #fff;
  border: 2px dashed #9aa1b2;
  border-bottom: 0;
}

.rc-scale-ar {
  position: absolute;
  top: -8px;
  bottom: -6px;
  border-left: 2px dashed var(--rc-coral-d);
}

.rc-scale-arlab {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--rc-coral-d);
  font-weight: 800;
  font-size: 0.9em;
}

.rc-scale-labs {
  position: relative;
  height: 1.6em;
  margin: 0 4px;
}

.rc-scale-labs.is-two-rows {
  height: 3em;
}

.rc-scale-lab {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.86em;
}

.rc-scale-lab.is-low {
  top: 1.55em;
}

/* fullscreen: the whole screen, question and table on the left, working and steps on the right.
   The script shrinks the text until everything fits, so the screen never scrolls. */

.rc-card.is-fs {
  position: fixed;
  inset: 0;
  z-index: 10050;
  margin: 0;
  padding: clamp(10px, 1.4vw, 26px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  font-size: clamp(15px, min(1.3vw, 2.4vh), 30px);
}

.rc-card.is-fs .rc-work {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2vw;
  align-items: start;
}

.rc-card.is-fs .rc-side {
  grid-template-columns: minmax(0, 1fr);
}

html.rc-lock, html.rc-lock body {
  overflow: hidden;
}

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

@container (max-width: 560px) {
  .rc-head-sub {
    order: 4;
    flex-basis: 100%;
  }
}

@container (max-width: 560px) {
  .rc-fs-label {
    display: none;
  }
}

@container (max-width: 560px) {
  .rc-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 560px) {
  .rc-level {
    min-height: 0;
  }
}

@container (max-width: 560px) {
  .rc-start {
    min-height: 0;
    padding: 8px 10px;
  }
}

@container (max-width: 560px) {
  .rc-table th, .rc-table td {
    padding: 0 4px;
  }
}

@container (max-width: 560px) {
  .rc-table thead th {
    font-size: 0.8em;
    line-height: 1.2;
  }
}

@container (max-width: 560px) {
  .rc-table .rc-workcol {
    min-width: 0;
  }
}

@container (max-width: 560px) {
  .rc-abund {
    gap: 6px;
  }
}

@container (max-width: 560px) {
  .rc-bar {
    min-width: 1.6em;
  }
}

@container (max-width: 560px) {
  .rc-abund-n {
    min-width: 0;
  }
}

@container (max-width: 560px) {
  .rc-q-text {
    font-size: 1em;
  }
}

/* narrow screens: the step panel goes straight under the table, with Your working below it,
   so nothing above the panel's buttons changes height */

@container (max-width: 639.98px) {
  .rc-side .rc-panel {
    order: -1;
  }
}

/* =====================================================================
   v3 look (14 Nov 2026): the same family as the interactive cards and the
   worked-example boxes. Grey frame, navy accents, the question in a navy
   banner, and a bordered "Your working" box with numbered rows.
   ===================================================================== */

.rc-card {
  --rc-navy: var(--rs-navy, #1d2b4f);
  --rc-line: #d0d4e0;
  --rc-soft: #f5f6fb;
  border: 1px solid #e0e3e8;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

/* head: title and intro on the left; How it works, New question, Full screen on the right */

.rc-head {
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}

.rc-head-main {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
}

.rc-head-tools {
  order: 2;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rc-title {
  font-weight: 900;
  font-size: 1.08em;
  color: var(--rc-ink);
}

.rc-head-sub {
  margin-top: 1px;
}

.rc-intro {
  font-size: 0.95em;
}

.rc-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 0.9em;
}

.rc-back {
  padding: 0;
  border: 0;
  background: none;
  color: var(--rc-navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-head-tools .rc-btn, .rc-head-tools .ct-help-btn {
  min-height: 0;
  padding: 6px 10px;
  font-size: 0.85em;
  font-weight: 800;
  color: var(--rc-navy);
  border-color: var(--rc-line);
}

.rc-fs {
  color: var(--rc-navy);
}

/* setup: navy for the chosen level and the start buttons */

.rc-level:hover {
  border-color: var(--rc-navy);
}

.rc-level[aria-pressed="true"] {
  border-color: var(--rc-navy);
  background: #e6ecfb;
}

.rc-level[aria-pressed="true"] .rc-level-name {
  color: var(--rc-navy);
}

.rc-level[aria-pressed="true"] .rc-level-desc {
  color: #394362;
}

.rc-seg[aria-pressed="true"] {
  border-color: var(--rc-navy);
  background: var(--rc-navy);
  color: #fff;
}

.rc-start {
  border: 2px solid var(--rc-navy);
  background: #fff;
  color: var(--rc-navy);
}

.rc-start:hover {
  background: #e6ecfb;
}

.rc-start-desc {
  color: #5f6475;
}

.rc-start[data-rc-start="own"] {
  background: var(--rc-navy);
  color: #fff;
}

.rc-start[data-rc-start="own"] .rc-start-desc {
  color: #d4dbef;
}

.rc-start[data-rc-start="own"]:hover {
  background: #2a3b66;
}

/* the question: a navy banner, like a worked example */

.rc-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--rc-navy);
  color: #fff;
}

.rc-q-label {
  align-self: start;
  margin-top: 2px !important;
  padding: 1px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--rc-navy);
  font-size: 0.78em;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rc-q-text {
  font-weight: 700;
  font-size: 1.04em;
  line-height: 1.45;
}

.rc-q-text:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

.rc-table tbody th, .rc-table tbody td:first-child {
  white-space: nowrap;
}

.rc-q-eqn {
  margin: 3px 0 !important;
  font-size: 1.12em;
  font-weight: 900;
}

.rc-q-line + .rc-q-line {
  margin-top: 3px !important;
}

.rc-rule {
  padding: 0 2px;
}

/* Your working: a bordered box, one numbered row per step */

.rc-working {
  border: 2px solid var(--rc-navy);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  align-self: start;
}

.rc-working-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important;
  padding: 7px 12px;
  background: #f5f6fb;
  color: var(--rc-navy);
  font-size: 0.88em;
  border-bottom: 1px solid #e0e3e8;
}

.rc-dots {
  display: inline-flex;
  gap: 4px;
}

.rc-dot {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: #d0d4e0;
}

.rc-dot.is-done {
  background: var(--rc-navy);
}

.rc-dot.is-now {
  background: var(--rc-navy);
  outline: 2px solid #9aa3bf;
  outline-offset: 1px;
}

.rc-working-list {
  gap: 0;
  font-size: 0.95em;
}

.rc-wl {
  gap: 10px;
  min-height: 2.6em;
  padding: 5px 12px;
  border-left: 0;
  border-top: 1px solid rgb(0 0 0 / 6%);
}

.rc-wl:first-child {
  border-top: 0;
}

.rc-working-n {
  display: grid;
  place-items: center;
  flex: 0 0 2.15em;
  width: 2.15em;
  height: 2.15em;
  line-height: 1;
  border-radius: 50%;
  border: 2px solid #b9bfcc;
  background: #fff;
  color: #8a8f9c;
  font-size: 0.82em;
  font-weight: 900;
}

.rc-wl.is-done {
  background: #fff;
}

.rc-wl.is-done:nth-child(4n + 2) {
  background: #f4f5f8;
}

.rc-wl.is-done:nth-child(4n + 3) {
  background: #fff;
}

.rc-wl.is-done:nth-child(4n + 4) {
  background: #f4f5f8;
}

.rc-wl.is-done .rc-working-n {
  border-color: var(--rc-navy);
  color: var(--rc-navy);
}

.rc-wl.is-now {
  background: #eef1f8;
  box-shadow: inset 4px 0 0 var(--rc-navy);
}

.rc-wl.is-now .rc-working-n {
  border-color: var(--rc-navy);
  background: var(--rc-navy);
  color: #fff;
}

.rc-wl.is-todo {
  background: #fff;
}

/* the step panel: matches the card explanation boxes; feedback keeps its space so nothing moves */

.rc-panel {
  border-left: 4px solid var(--rc-navy);
  border-radius: 10px;
  background: var(--rc-soft);
}

.rc-panel-step {
  color: var(--rc-navy);
  font-weight: 800;
}

.rc-btn--main {
  border-color: var(--rc-navy);
  background: var(--rc-navy);
}

.rc-btn--main:hover {
  background: #2a3b66;
}

.rc-feedback {
  min-height: 2.9em;
}

.rc-feedback:empty {
  display: block;
}

.rc-panel.is-done {
  border-left-color: var(--rc-ok);
}

/* narrow screens: row labels may wrap instead of hiding under an input box */

@container (max-width: 560px) {
  .rc-table tbody th {
    white-space: normal;
    line-height: 1.2;
  }
}

@container (max-width: 560px) {
  .rc-card .rc-cell-input {
    max-width: 100%;
  }
}

@container (max-width: 560px) {
  .rc-head {
    flex-wrap: wrap;
  }
}

@container (max-width: 560px) {
  .rc-head-tools {
    margin-left: 0;
  }
}

@container (max-width: 560px) {
  .rc-question {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (max-width: 560px) {
  .rc-q-label {
    justify-self: start;
  }
}

.rc-card.is-fs {
  border: 0;
  box-shadow: none;
}

/* ---------------------------------------------------------------------
   v3.2 start screen: the level ladder.
   Left: the calculator's name, its equation, How much help? and Method.
   Right: the levels as a list, easiest at the top. Pressing one starts a
   question.
   --------------------------------------------------------------------- */

.rc-eyebrow {
  display: none;
}

.rc-card.is-setup .rc-title {
  display: none;
}

.rc-card.is-setup .rc-head {
  position: absolute;
  top: 14px;
  right: 16px;
  margin: 0;
  z-index: 2;
}

.rc-card.is-setup .rc-head-main {
  display: none;
}

.rc-card.is-setup {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.rc-card .rc-setup {
  display: grid;
  grid-template-columns: minmax(250px, 32%) minmax(0, 1fr);
  gap: 0;
}

.rc-card .rc-setup[hidden] {
  display: none;
}

.rc-setup-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
  background: #f5f6fb;
  border-right: 1px solid #e0e3e8;
}

.rc-side-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-side-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #d33e16;
  color: #fff;
}

.rc-side-ico .rc-eyebrow-ico {
  width: 22px;
  height: 26px;
}

.rc-side-kicker {
  margin: 0 !important;
  color: #a63c1b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rc-side-title {
  margin: 2px 0 0 !important;
  color: var(--rc-ink);
  font-size: 1.3em;
  font-weight: 900;
  line-height: 1.2;
}

.rc-side-eqn {
  margin: 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--rc-navy);
  color: #fff;
  font-size: 1.02em;
  text-align: center;
  line-height: 1.4;
}

.rc-side-intro {
  margin: 0 !important;
  color: #394362;
}

.rc-card .rc-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-pick-label {
  margin: 4px 0 0 !important;
  color: var(--rc-ink);
  font-weight: 900;
}

.rc-radios {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rc-radio {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d0d4e0;
  border-radius: 10px;
  background: #fff;
  color: var(--rc-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rc-radio:hover {
  border-color: #7a8199;
}

.rc-radio-dot {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #696e7f;
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff;
}

.rc-radio[aria-checked="true"] {
  border-color: var(--rs-choice,#0f766e);
  background: var(--rs-choice-soft,#e3f4f1);
  box-shadow: inset 0 0 0 1px var(--rs-choice,#0f766e);
}

.rc-radio[aria-checked="true"] .rc-radio-dot {
  border: 2px solid var(--rs-choice,#0f766e);
  background: var(--rs-choice,#0f766e);
  box-shadow: inset 0 0 0 3px #fff;
}

.rc-mode-name {
  display: block;
  font-weight: 800;
}

.rc-mode-desc {
  display: block;
  color: #696e7f;
  font-size: 0.88em;
}

.rc-ladder {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px 22px;
  min-width: 0;
}

.rc-ladder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-right: 230px;
}

.rc-ladder-h {
  margin: 0 !important;
  color: var(--rc-ink);
  font-size: 1.15em;
  font-weight: 900;
}

.rc-ladder-note {
  margin: 0 !important;
  color: #696e7f;
  font-size: 0.88em;
}

.rc-card .rc-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-card .rc-level {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid #e0e3e8;
  border-radius: 10px;
  background: #fff;
  color: var(--rc-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: none;
  box-shadow: none;
}

.rc-card .rc-level[hidden] {
  display: none;
}

.rc-card .rc-level:hover, .rc-card .rc-level:focus-visible {
  border-color: #d33e16;
  background: #fff8f5;
  transform: none;
  box-shadow: none;
}

.rc-card .rc-level-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  background: var(--rc-navy);
  color: #fff;
  font-size: 1.05em;
  font-weight: 900;
}

.rc-level-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rc-card .rc-level-name {
  color: var(--rc-ink);
  font-weight: 900;
  font-size: 1em;
}

.rc-card .rc-level-desc {
  color: #696e7f;
  font-weight: 400;
  font-size: 0.9em;
}

.rc-level-tag {
  width: fit-content;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rc-slate-s);
  color: var(--rc-slate-d);
  font-size: 0.72em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid var(--rs-slate-line,#cbd5e1);
}

.rc-level-dots {
  display: flex;
  gap: 4px;
}

.rc-level-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #e0e3e8;
}

.rc-level-dots i.on {
  background: #d33e16;
}

.rc-card .rc-level-go {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #d33e16;
  color: #fff;
  font-size: 0.86em;
  font-weight: 900;
  white-space: nowrap;
}

@container (max-width: 760px) {
  .rc-card .rc-setup {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (max-width: 760px) {
  .rc-setup-side {
    border-right: 0;
    border-bottom: 1px solid #e0e3e8;
    padding-top: 64px;
  }
}

@container (max-width: 760px) {
  .rc-card.is-setup .rc-head {
    left: 16px;
    right: 16px;
  }
}

@container (max-width: 760px) {
  .rc-card.is-setup .rc-head-tools {
    justify-content: flex-start;
  }
}

@container (max-width: 760px) {
  .rc-ladder-head {
    padding-right: 0;
  }
}

@container (max-width: 760px) {
  .rc-card .rc-level {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 10px;
  }
}

@container (max-width: 760px) {
  .rc-card .rc-level-n {
    width: 32px;
    height: 32px;
  }
}

@container (max-width: 760px) {
  .rc-level-dots {
    display: none;
  }
}

.rc-card.is-fs.is-setup {
  overflow: auto;
}

.rc-card .rc-setup-side .rc-format {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.rc-card .rc-setup-side .rc-format[hidden] {
  display: none;
}

@container (max-width: 760px) {
  .rc-card .rc-level-go {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
}

@container (max-width: 760px) {
  .rc-card .rc-level-go::after {
    content: "→";
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------------
   v3.2 the pop-out calculator (.rs-sci). Lives on <body>, one per page.
   --------------------------------------------------------------------- */

.rc-sci-btn .rc-eyebrow-ico {
  width: 12px;
  height: 15px;
  vertical-align: -2px;
}

.rc-sci-btn[aria-pressed="true"] {
  background: var(--rc-navy);
  border-color: var(--rc-navy);
  color: #fff;
}

.rc-card.is-fs.has-sci {
  padding-right: 356px !important;
}

.rs-sci {
  position: fixed;
  z-index: 10100;
  width: 320px;
  box-sizing: border-box;
  padding: 10px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a2f3d, #1f2330);
  color: #fff;
  font-family: ABeeZee, Lexend, Calibri, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32), inset 0 1px 0 #454c60;
  touch-action: none;
}

.rs-sci[hidden] {
  display: none;
}

.rs-sci * {
  box-sizing: border-box;
}

.rs-sci p {
  margin: 0;
}

.rs-sci-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  padding: 2px;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
}

.rs-sci.is-dragging .rs-sci-bar {
  cursor: grabbing;
}

.rs-sci-bar:focus-visible {
  outline: 3px solid #8fc0ff;
  outline-offset: 2px;
}

.rs-sci-name {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rs-sci-name span {
  color: #efb39f;
}

.rs-sci-grip {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  margin-left: auto;
  opacity: 0.6;
}

.rs-sci-grip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.rs-sci-x {
  width: 40px;
  height: 34px;
  border: 1px solid #454c60;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.rs-sci-x:hover {
  background: #3b4152;
}

.rs-sci-mem {
  margin-bottom: 9px;
  padding: 4px;
  border-radius: 10px;
  background: #171a24;
}

.rs-sci-mem > p {
  margin: 2px 8px 2px;
  color: #a9b0c4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rs-sci-memlist {
  min-height: 30px;
}

.rs-sci-memrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cfd6ee;
  font-family: Lexend, ABeeZee, sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.rs-sci-memrow:hover, .rs-sci-memrow:focus-visible {
  background: #2c3244;
}

.rs-sci-memrow b {
  color: #fff;
  white-space: nowrap;
}

.rs-sci-memrow .rs-sci-fr {
  font-size: 0.85em;
}

.rs-sci-memrow .rs-sci-slot.is-d {
  border-top-color: #cfd6ee;
}

.rs-sci-memnone {
  padding: 4px 8px 6px;
  color: #8f97ad;
  font-size: 13px;
}

.rs-sci-lcd {
  margin-bottom: 11px;
  padding: 5px 12px 8px;
  border: 3px solid #0d0f16;
  border-radius: 10px;
  background: #d6e0cf;
  color: #1d2618;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.2);
}

.rs-sci-mode {
  color: #4d5a44;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rs-sci-expr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 48px;
  font-family: Lexend, ABeeZee, sans-serif;
  font-size: 19px;
  cursor: text;
}

.rs-sci-t {
  white-space: pre;
}

.rs-sci-t.is-sup {
  font-size: 0.68em;
  align-self: flex-start;
  margin-top: 2px;
}

.rs-sci-fr {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 3px;
  vertical-align: middle;
  line-height: 1.1;
}

.rs-sci-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 22px;
  padding: 0 3px;
}

.rs-sci-slot.is-d {
  border-top: 2px solid #1d2618;
}

.rs-sci-empty {
  display: inline-block;
  width: 13px;
  height: 16px;
  border: 1.5px dashed #5c6b52;
  border-radius: 2px;
}

.rs-sci-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin: 0 1px;
  background: #1d2618;
  animation: rs-sci-blink 1s steps(1) infinite;
}

@keyframes rs-sci-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-sci-caret {
    animation: none;
  }
}

.rs-sci-res {
  min-height: 1.3em;
  font-family: Lexend, ABeeZee, sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.rs-sci-fn, .rs-sci-main {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rs-sci-fn {
  gap: 7px;
  margin-bottom: 11px;
}

.rs-sci-main {
  gap: 9px;
}

.rs-sci-k {
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  font-family: Lexend, ABeeZee, sans-serif;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rs-sci-k:active {
  transform: translateY(2px);
}

.rs-sci-k:focus-visible, .rs-sci-use:focus-visible, .rs-sci-x:focus-visible, .rs-sci-memrow:focus-visible {
  outline: 3px solid #8fc0ff;
  outline-offset: 2px;
}

.rs-sci-k.is-fn {
  min-height: 38px;
  background: #3b4152;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 3px 0 #15181f;
}

.rs-sci-k.is-num {
  background: #eef0f5;
  color: #1b1f2b;
  font-size: 20px;
  box-shadow: 0 3px 0 #9aa1b3;
}

.rs-sci-k.is-op {
  background: #c9cede;
  color: #1b1f2b;
  font-size: 21px;
  box-shadow: 0 3px 0 #8a91a6;
}

.rs-sci-k.is-del {
  background: #d33e16;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 3px 0 #7e2208;
}

.rs-sci-k.is-eq {
  background: #79b84a;
  color: #121643;
  font-size: 26px;
  box-shadow: 0 3px 0 #4a7a2a;
}

.rs-sci-k sup {
  font-size: 0.65em;
}

.rs-sci-frkey {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  vertical-align: middle;
}

.rs-sci-frkey i {
  display: block;
  width: 11px;
  height: 9px;
  border: 1.5px solid #fff;
  border-radius: 2px;
}

.rs-sci-frkey i + i {
  margin-top: 0;
  box-shadow: 0 -3px 0 -1.5px #fff;
}

.rs-sci-use {
  width: 100%;
  min-height: 44px;
  margin-top: 11px;
  border: 0;
  border-radius: 10px;
  background: #0ea5a4;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.rs-sci-use:hover {
  background: #087f7e;
}

.rs-sci-msg {
  min-height: 1.2em;
  margin-top: 6px !important;
  color: #cfd6ee;
  font-size: 13px;
  text-align: center;
}

.rs-sci-msg:empty {
  display: none;
}

/* docked down the right of a full-screen calculator */

.rs-sci.is-docked {
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: auto !important;
  overflow: auto;
  border-radius: 18px;
}

.rs-sci.is-near-dock {
  box-shadow: 0 0 0 4px #79b84a, 0 30px 70px rgba(15, 23, 42, 0.32);
}

/* phones: a bottom sheet; tap its bar to fold it away */

.rs-sci.is-sheet {
  left: 0 !important;
  right: 0;
  bottom: 0;
  top: auto !important;
  width: auto;
  max-height: 78vh;
  overflow: auto;
  padding: 8px 12px 12px;
  border-radius: 20px 20px 0 0;
}

.rs-sci.is-sheet .rs-sci-bar {
  cursor: pointer;
}

.rs-sci.is-sheet .rs-sci-grip {
  display: grid;
  grid-template-columns: 34px;
  grid-template-rows: 5px;
  margin: 0 auto;
}

.rs-sci.is-sheet .rs-sci-grip i {
  display: none;
}

.rs-sci.is-sheet .rs-sci-grip i:first-child {
  display: block;
  width: 34px;
  border-radius: 3px;
}

.rs-sci.is-sheet .rs-sci-k {
  min-height: 42px;
}

.rs-sci.is-sheet .rs-sci-k.is-fn {
  min-height: 34px;
}

.rs-sci.is-sheet .rs-sci-memrow:nth-child(n + 2) {
  display: none;
}

.rs-sci.is-sheet .rs-sci-expr {
  min-height: 36px;
}

.rs-sci.is-sheet .rs-sci-res {
  font-size: 24px;
}

.rs-sci.is-min .rs-sci-body > :not(.rs-sci-lcd) {
  display: none;
}

.rs-sci.is-min .rs-sci-lcd {
  margin: 0;
}

.rc-head-tools {
  flex-wrap: wrap;
  min-width: 0;
}

@container (max-width: 560px) {
  .rc-sci-label {
    display: none;
  }
}

@container (max-width: 560px) {
  .rc-fs-label {
    display: none;
  }
}

.rs-sci.is-sheet .rs-sci-mem > p {
  display: none;
}

.rs-sci.is-sheet .rs-sci-memnone {
  display: none;
}

.rs-sci.is-sheet .rs-sci-memlist {
  min-height: 0;
}

.rs-sci.is-sheet .rs-sci-mem:has(.rs-sci-memnone) {
  display: none;
}

.rs-sci.is-sheet .rs-sci-main, .rs-sci.is-sheet .rs-sci-fn {
  gap: 6px;
}

.rs-sci.is-sheet .rs-sci-fn {
  margin-bottom: 8px;
}

.rs-sci.is-sheet .rs-sci-lcd {
  margin-bottom: 8px;
  padding: 3px 10px 5px;
}

.rs-sci.is-sheet .rs-sci-mode {
  display: none;
}

.rs-sci.is-sheet .rs-sci-k {
  min-height: 40px;
}

.rs-sci.is-sheet .rs-sci-use {
  min-height: 42px;
  margin-top: 8px;
}

.rs-sci.is-sheet .rs-sci-bar {
  margin-bottom: 6px;
}

.rs-sci.is-docked {
  bottom: auto;
  max-height: calc(100vh - 24px);
}

.rs-sci-frkey {
  gap: 2px;
}

.rs-sci-frkey i + i {
  box-shadow: none;
}

.rs-sci-frkey::after {
  content: "";
  order: 1;
  display: block;
  width: 15px;
  height: 2px;
  margin: 0 -2px;
  background: #fff;
}

.rs-sci-frkey i:first-child {
  order: 0;
}

.rs-sci-frkey i + i {
  order: 2;
}

html.rs-sci-sheet-open body {
  padding-bottom: var(--rs-sci-pad, 0);
}

.rs-sci.is-sheet .rs-sci-memrow {
  padding: 2px 8px;
}

.rs-sci.is-sheet .rs-sci-memrow .rs-sci-fr {
  flex-direction: row;
  gap: 2px;
}

.rs-sci.is-sheet .rs-sci-memrow .rs-sci-slot.is-d {
  border-top: 0;
}

.rs-sci.is-sheet .rs-sci-memrow .rs-sci-slot.is-d::before {
  content: "⁄";
}

/* v3.2.1: last sums behind a button, so the calculator never changes size */

.rs-sci {
  position: fixed;
}

.rs-sci-body {
  position: relative;
}

.rs-sci-membtn {
  margin-left: 4px;
  padding: 5px 10px;
  border: 1px solid #454c60;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.rs-sci-membtn:hover, .rs-sci-membtn[aria-expanded="true"] {
  background: #3b4152;
}

.rs-sci-membtn:focus-visible {
  outline: 3px solid #8fc0ff;
  outline-offset: 2px;
}

.rs-sci .rs-sci-mem {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid #454c60;
  border-radius: 12px;
  background: #171a24;
  box-shadow: 0 14px 30px rgb(0 0 0 / 40%);
}

.rs-sci .rs-sci-mem[hidden] {
  display: none;
}

.rs-sci .rs-sci-mem > p {
  display: block;
  margin: 2px 8px 4px;
}

.rs-sci.is-sheet .rs-sci-mem > p, .rs-sci.is-sheet .rs-sci-memnone {
  display: block;
}

.rs-sci.is-sheet .rs-sci-memrow:nth-child(n + 2) {
  display: flex;
}

.rs-sci.is-sheet .rs-sci-mem:has(.rs-sci-memnone) {
  display: block;
}

.rs-sci.is-sheet .rs-sci-mem[hidden] {
  display: none;
}

.rs-sci-mode {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-height: 14px;
}

.rs-sci .rs-sci-msg, .rs-sci .rs-sci-msg:empty {
  display: inline;
  min-height: 0;
  margin: 0 !important;
  color: #2f4a26;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: right;
}

.rs-sci.is-sheet .rs-sci-mode {
  display: flex;
}

/* v3.2.1: the head's title and buttons share the first row; Change level and the summary sit on one line under them */

.rc-card:not(.is-setup) .rc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}

.rc-card:not(.is-setup) .rc-head-main {
  display: contents;
}

.rc-card:not(.is-setup) .rc-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.rc-card:not(.is-setup) .rc-head-tools {
  grid-column: 2;
  grid-row: 1;
}

.rc-card:not(.is-setup) .rc-head-sub {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.rc-card:not(.is-setup) .rc-head-sub:empty {
  display: none;
}

.rc-summary .rc-tag {
  margin: 0;
}

@container (max-width: 640px) {
  .rc-card:not(.is-setup) .rc-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (max-width: 640px) {
  .rc-card:not(.is-setup) .rc-head-tools {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@container (max-width: 640px) {
  .rc-card:not(.is-setup) .rc-head-sub {
    grid-row: 3;
  }
}

.rs-sci-name {
  white-space: nowrap;
}

.rs-sci-bar {
  gap: 8px;
}

.rs-sci-grip {
  margin-left: auto;
}

/* the start screen's card no longer clips: How it works bubbles can sit outside it */

.rc-card.is-setup {
  overflow: visible;
}

.rc-card.is-setup .rc-setup-side {
  border-radius: 13px 0 0 13px;
}

@container (max-width: 760px) {
  .rc-card.is-setup .rc-setup-side {
    border-radius: 13px 13px 0 0;
  }
}

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

.rc-question, .rc-question *, .rc-side-eqn, .rc-side-eqn * {
  font-weight: 400;
}

/* v3.2.3: question text never leaves one word alone on the last line */

.rc-q-text {
  text-wrap: pretty;
}

/* v3.2.3: the Table method's middle column holds the ratio arrow, with no cell borders */

.rc-table td:has( > .tm-gap), .rc-table th:has( > .tm-gap) {
  border-top: 0;
  border-bottom: 0;
  padding: 0 2px;
  background: transparent;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  color: #d33e16;
  font-weight: 900;
}

.rc-table .tm-nw {
  white-space: nowrap;
}

/* v3.2.5: the method choice sits under the levels, as one row */

.rc-card .rc-ladder .rc-format {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid #e0e3e8;
  background: none;
  text-align: left;
}

.rc-card .rc-ladder .rc-format[hidden] {
  display: none;
}

.rc-card .rc-ladder .rc-format .rc-pick-label {
  margin: 0 !important;
}

.rc-card .rc-ladder .rc-format .rc-radios {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.rc-card .rc-ladder .rc-format .rc-radio {
  width: auto;
  padding: 8px 11px;
  gap: 7px;
}

/* ---------------------------------------------------------------------
   v3.2.7 full screen. `.rc-card.is-setup {position: relative}` (above, the
   same weight as `.rc-card.is-fs` and later in the file) kept the start
   screen in the page in full screen. These rules outweigh it, and the
   script (rs-calc.js v3.2.7) sets the text size: the largest that fits, in
   5% steps of the page's size, from 125% on a big screen (100% on a small
   one) down to 60%. rs-calc.js v3.2.7 also adds these rules
   itself (style#rc-fs-rules), for pages with an older rs-calc.css.
   --------------------------------------------------------------------- */

html .rc-card.rc-card.is-fs {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  z-index: 10050;
  overflow: hidden;
  transform: none;
  box-sizing: border-box;
}

/* still too big at 60% (a small phone): scroll inside the card, never cut anything off */

html .rc-card.rc-card.is-fs.rc-fs-over {
  overflow: auto;
  overscroll-behavior: contain;
}

/* the start screen fills the screen, its side panel full height */

html .rc-card.rc-card.is-fs > .rc-setup {
  min-height: 100%;
}

/* on the start screen the head's buttons sit over the top of the level list. The heading keeps clear the
   width they really reach into its row, plus 8px (rs-calc.js v3.2.7 sets --rc-tools-w; it was a fixed 230px
   of padding, too little for "Exit full screen" in a wide card and a few px short at some page widths), and
   the note always takes its own full-width line under the heading, so it never slides under the buttons.
   Narrow cards put the buttons above instead. */

@container (min-width: 760.02px) {
  html .rc-card .rc-ladder-head {
    padding-right: 0;
  }
}

@container (min-width: 760.02px) {
  html .rc-card .rc-ladder-head .rc-ladder-h {
    max-width: calc(100% - var(--rc-tools-w, 230px));
  }
}

@container (min-width: 760.02px) {
  html .rc-card .rc-ladder-head .rc-ladder-note {
    flex-basis: 100%;
  }
}

/* Colour system (21 Nov 2026, colour-plan.md) */

.rc-feedback[data-state="no"]::before {
  content: "✗ ";
}

.rc-card .rc-level.is-beyond {
  border: 2px dashed var(--rc-slate,#64748b);
  padding: 9px 13px;
}

.rc-card .rc-level.is-beyond:hover, .rc-card .rc-level.is-beyond:focus-visible {
  border-color: #d33e16;
}

.rc-card .rc-level.is-beyond[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--rc-teal-d);
}

