/* =========================================================
   rs-practical.css  ·  Shared interactive practical styles  ·  v1.11 (for rs-practical v1.4)
   Changelog: v1.11 (15 Nov 2026, rs-practical v1.4) Teacher tools row under the top bar,
   Edit values switch, How it works button and walkthrough bubble, phone pinned apparatus
   with step caption and fold-away method (rules at the end of the file).
   v1.10 (9 Nov 2026): contrast.
   Lifted from the Measuring rate page (rates-of-reaction/practicals) so new
   practicals look the same. Class names are unchanged (sap-*, gas-menu-*,
   data-table …), so this file is safe alongside that page's own copy.
   Include on any page with an interactive practical, with rs-practical.js.
========================================================= */

.sap-int-wrap, .gas-menu-card {
  --rates-practical-green: #0ea5a4;
  --rates-practical-green-dark: #06706f;
  --rates-practical-blue: #5ba4cf;
  --rates-practical-blue-dark: #246f95;
  --rates-practical-navy: var(--rs-navy);
  --rates-practical-ink: var(--rs-ink);
  --rates-practical-muted: #5f6475;
  --rates-practical-border: #0ea5a4;
  --rates-practical-bg: #f2f9fd;
  --rates-practical-soft: #e7e9f5;
}

.sap-int-wrap {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  padding: 45px 20px 20px 20px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  position: relative;
  transition: all 0.3s ease;
}

.sap-int-wrap.is-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  margin: 0;
  border-radius: 0;
  background: #f5f6fb;
  padding: 50px 20px 20px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.fs-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #e7e9f5;
  border: 1px solid #d0d4e0;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  color: var(--rs-navy);
  font-size: 0.8rem;
  z-index: 10;
  transition: 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fs-btn:hover {
  background: #d0d4e0;
}

.sap-svg-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #f5f6fb;
  border-radius: 12px;
  padding: 20px;
  gap: 10px;
  position: relative;
  overflow: hidden;
  flex: 1 1 350px;
}

.sap-svg-container > svg {
  margin: auto;
}

.sap-info-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  flex: 1 1 300px;
}

.sap-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 15px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.sap-card h3 {
  margin: 0 0 10px 0;
  font-weight: 900;
  color: var(--rs-ink);
  font-size: 1.1rem;
}

.sap-card p, .sap-card ol {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--rs-navy);
  margin-top: 0;
  flex-grow: 1;
}

.sap-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 0.95rem;
  align-items: center;
}

.sap-row span:last-child {
  font-weight: 900;
}

.editable-val {
  border-bottom: 2px dashed #1f6699;
  color: #1f6699;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(41, 128, 185, 0.05);
}

.editable-val:hover {
  background: #2980b9;
  color: #fff;
  border-color: #2980b9;
}

#custom-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#custom-prompt-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid #d0d4e0;
}

#custom-prompt-box h4 {
  margin: 0 0 15px 0;
  color: var(--rs-navy);
  font-weight: 900;
}

#custom-prompt-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #d0d4e0;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--rs-ink);
}

#custom-prompt-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#custom-prompt-btns button {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  border: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

#btn-prompt-cancel {
  background: #e7e9f5;
  color: var(--rs-navy);
}

#btn-prompt-save {
  background: #2980b9;
  color: #fff;
}

.sap-slider-wrap {
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sap-slider-label {
  font-weight: 800;
  color: var(--rs-navy);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.sap-slider {
  width: 100%;
  cursor: pointer;
  accent-color: var(--rs-chem);
  margin-bottom: 2px;
}

.sap-slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  color: #6a6f7d;
  font-size: 0.6rem;
  margin-top: -8px;
  pointer-events: none;
}

.sap-btn {
  width: 100%;
  border: 1px solid #f2bcb0;
  background: #fff0ec;
  color: var(--rs-chem-deep, #a42d12);
  font-weight: 900;
  padding: clamp(6px, 1vh, 10px);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: clamp(0.9rem, 1.8vh, 1rem);
}

.sap-btn:hover {
  background: #ffe4da;
}

.sap-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e6e6e6;
  border-color: #d0d4e0;
  color: #7f8c8d;
}

.table-scroll-wrap {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  display: block;
  width: 100%;
}

.sap-int-wrap.is-fullscreen .table-scroll-wrap {
  max-height: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sap-int-wrap.is-fullscreen .sap-slider {
  height: 1.5vh;
  margin-top: 2vh;
  margin-bottom: 1.5vh;
}

.sap-int-wrap.is-fullscreen .sap-slider::-webkit-slider-thumb {
  transform: scale(1.5);
}

.sap-int-wrap.is-fullscreen .sap-slider-ticks {
  margin-top: -0.5vh;
  font-size: 1.5vh;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 0.85rem;
  height: auto;
}

.data-table th, .data-table td {
  border-bottom: 1px solid #d0d4e0;
  border-right: 1px solid #d0d4e0;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

.data-table th:last-child, .data-table td:last-child {
  border-right: none;
}

.data-table th {
  background: #e7e9f5;
  color: var(--rs-navy);
  line-height: 1.2;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sap-int-wrap.is-fullscreen .sap-card h3 {
  font-size: clamp(1.4rem, 4vh, 2rem);
}

.sap-int-wrap.is-fullscreen .sap-card p, .sap-int-wrap.is-fullscreen .sap-card ol {
  font-size: clamp(1.1rem, 3vh, 1.6rem);
}

.sap-int-wrap.is-fullscreen .sap-row {
  font-size: clamp(1rem, 2.5vh, 1.3rem);
}

.sap-int-wrap.is-fullscreen .data-table {
  font-size: clamp(1rem, 2.5vh, 1.4rem);
}

.sap-int-wrap.is-fullscreen .data-table th, .sap-int-wrap.is-fullscreen .data-table td {
  padding: clamp(10px, 2vh, 16px);
}

.sap-int-wrap.is-fullscreen .sap-btn {
  padding: clamp(6px, 1.2vh, 12px);
  font-size: clamp(0.95rem, 2vh, 1.1rem);
  margin-top: 1vh;
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen {
    display: grid;
    gap: 20px;
    overflow: hidden;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen.grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen.grid-3 > div:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen.grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen.grid-calc {
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 1fr;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen > div {
    margin: 0;
    max-height: 100%;
    display: flex;
    overflow: hidden;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen .sap-svg-container {
    background: #fff;
    border: 1px solid #d0d4e0;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen.grid-3 {
    grid-template-rows: 1.5fr 1fr;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen svg[viewBox="0 0 200 180"] {
    transform: scale(1.3);
    transform-origin: top center;
    overflow: visible;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen .sap-slider-label {
    font-size: clamp(1rem, 2.5vh, 1.4rem);
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.is-fullscreen #ruler-feedback {
    font-size: clamp(1.4rem, 3.5vh, 2rem) !important;
  }
}

.sap-safety-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
  padding: 10px 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 0 8px 8px 0;
}

.gas-hidden {
  display: none !important;
}

.gas-menu-card {
  background: #f5f6fb;
  border: 1px solid #d0d4e0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 25px;
}

.gas-menu-card h3 {
  margin: 0 0 8px 0;
  color: var(--rs-ink);
  font-weight: 900;
  text-align: center;
}

.gas-menu-card p {
  margin: 0 0 16px 0;
  color: var(--rs-navy);
  text-align: center;
  font-weight: 700;
}

.gas-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 700px) {
  .gas-menu-grid {
    grid-template-columns: 1fr;
  }
}

.gas-menu-option {
  border: 1px solid #d0d4e0;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  transition: 0.2s;
}

.gas-menu-option:hover {
  border-color: #5ba4cf;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.gas-menu-option svg {
  width: 76px;
  height: 58px;
  background: #f5f6fb;
  border-radius: 10px;
}

.gas-menu-option strong {
  display: block;
  color: var(--rs-ink);
  font-size: 0.95rem;
  line-height: 1.2;
  margin-top: 6px;
}

.gas-iv-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gas-iv-conc {
  background: #fff0ec;
  color: var(--rs-chem-deep, #a42d12);
  border: 1px solid #f2bcb0;
}

.gas-iv-size {
  background: #f2f9fd;
  color: #1f6699;
  border: 1px solid #b9d9eb;
}

.gas-menu-option small {
  display: block;
  color: #5f6475;
  margin-top: 4px;
  font-weight: 800;
}

.sap-int-wrap.has-fs-title {
  padding-top: 52px;
}

.sap-fs-title {
  position: absolute;
  top: 12px;
  left: 20px;
  right: 145px;
  color: var(--rs-ink);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gas-tool-row {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.gas-back-btn {
  border: 1px solid #d0d4e0;
  background: #e7e9f5;
  color: var(--rs-navy);
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.practical-select {
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  padding: 6px;
  font-weight: 800;
  color: var(--rs-navy);
  font-size: 0.85rem;
  max-width: 180px;
  background: #fff;
}

.gas-menu-card::before, .gas-menu-option::after, .gas-menu-card h3::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.gas-menu-card {
  position: relative;
  border: 2px solid var(--rates-practical-border);
  border-top: 7px solid var(--rates-practical-border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 164, 0.08) 0%, rgba(91, 164, 207, 0.11) 100%), #ffffff;
  padding: 22px;
  margin: 24px 0 28px 0;
  box-shadow: 0 4px 14px rgba(57, 67, 98, 0.08);
}

.gas-menu-card h3 {
  margin: 6px 0 8px 0;
  color: var(--rates-practical-ink);
  font-weight: 900;
  text-align: center;
}

.gas-menu-card > p {
  max-width: 720px;
  margin: 0 auto 20px auto;
  color: var(--rates-practical-navy);
  text-align: center;
  font-weight: 700;
}

.gas-menu-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 8px auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rates-practical-green) 0%, var(--rates-practical-blue) 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gas-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 14px;
}

.gas-menu-option {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 116px;
  padding: 16px;
  border: 1.5px solid #c9d7e8;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rates-practical-ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.gas-menu-option:hover, .gas-menu-option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--rates-practical-green);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(57, 67, 98, 0.13);
  outline: 0;
}

.gas-menu-option svg {
  width: 82px;
  height: 62px;
  padding: 7px;
  border: 1px solid #c9d7e8;
  border-radius: 11px;
  background: #f5f6fb;
}

.gas-menu-option > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gas-menu-option strong {
  color: var(--rates-practical-ink);
  font-weight: 900;
}

.gas-menu-option small {
  color: var(--rates-practical-muted);
  font-weight: 800;
}

.gas-menu-option > span::after {
  content: "▶ Launch practical";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding: 6px 10px;
  border: 1px solid rgba(14, 165, 164, 0.32);
  border-radius: 999px;
  background: rgba(14, 165, 164, 0.09);
  color: var(--rates-practical-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.gas-menu-option:hover > span::after, .gas-menu-option:focus-visible > span::after {
  background: linear-gradient(135deg, var(--rates-practical-green) 0%, var(--rates-practical-blue) 100%);
  border-color: transparent;
  color: #ffffff;
}

.gas-iv-tag {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gas-iv-conc {
  border: 1px solid rgba(14, 165, 164, 0.34);
  background: rgba(14, 165, 164, 0.11);
  color: var(--rates-practical-green-dark);
}

.gas-iv-size {
  border: 1px solid rgba(91, 164, 207, 0.42);
  background: rgba(91, 164, 207, 0.14);
  color: var(--rates-practical-blue-dark);
}

.sap-int-wrap, .sap-int-wrap.is-fullscreen {
  border: 2px solid var(--rates-practical-border) !important;
}

.sap-int-wrap.is-fullscreen {
  border-width: 6px;
  border-radius: 0;
}

.sap-slider {
  accent-color: var(--rates-practical-green);
}

.sap-btn {
  background: rgba(14, 165, 164, 0.08);
  color: var(--rates-practical-green-dark);
}

.sap-btn:hover {
  background: rgba(91, 164, 207, 0.16);
}

.sap-btn {
  border-color: rgba(14, 165, 164, 0.35) !important;
}

@media (max-width: 820px) {
  .gas-menu-grid {
    grid-template-columns: 1fr;
  }
}

.practical-resize-handle {
  background: #fff0ec;
  border: 1px dashed var(--rs-chem);
}

.practical-resize-handle:hover, .practical-resize-handle:focus-visible {
  background: #ffe4da;
  border-color: var(--rs-chem);
}

.practical-resize-handle::after {
  background: var(--rs-chem);
}

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

.gas-menu-head .gas-menu-eyebrow {
  margin: 0;
}

.practical-default-btn {
  border: 1px solid rgba(14, 165, 164, 0.35);
  background: rgba(14, 165, 164, 0.08);
  color: var(--rates-practical-green-dark);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.practical-default-btn:hover, .practical-default-btn:focus-visible {
  background: rgba(91, 164, 207, 0.16);
  outline: none;
}

@media (max-width: 640px) {
  .gas-menu-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .practical-default-btn {
    width: 100%;
  }
}

.gas-iv-temp {
  border: 1px solid #f2bcb0;
  background: #fff0ec;
  color: var(--rs-chem-deep, #a42d12);
}

/* =========================================================
   rs-prac-flow: reading-first layout for new practicals (v1.3)
   Children: .rs-prac-method, .rs-prac-app, .rs-prac-results
   Page: method beside apparatus, then a full-width results card.
   Full screen: method and apparatus side by side at the top, results
   (table beside chart) across the full width below; the screen never scrolls.
   Pages set column widths with a <colgroup> (narrow label column).
========================================================= */

.sap-int-wrap.rs-prac-flow {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 14px;
  align-items: start;
}

.sap-int-wrap.rs-prac-flow.gas-hidden {
  display: none;
}

.sap-int-wrap.rs-prac-flow > div {
  margin: 0;
  min-width: 0;
  max-width: none;
  width: auto;
}

.sap-int-wrap.rs-prac-flow > .rs-prac-results {
  grid-column: 1 / -1;
}

.rs-prac-flow .sap-card {
  display: block;
  height: auto;
}

.rs-prac-flow .rs-prac-method ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: calc(0.95rem * var(--rs-prac-scale, 1));
}

.rs-prac-flow .rs-prac-method .rs-note {
  font-size: calc(0.92rem * var(--rs-prac-scale, 1));
}

.rs-prac-flow .rs-prac-method .rs-note {
  margin: 0 !important;
}

.rs-prac-flow .rs-prac-app {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.rs-prac-flow .rs-prac-app svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
}

.rs-prac-flow .rs-prac-results h3 {
  margin-bottom: 8px;
}

.rs-prac-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rs-prac-side .rs-mn-conclusion, .rs-prac-side > * {
  margin: 0;
}

.rs-prac-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
}

.rs-prac-flow .table-scroll-wrap {
  max-height: none;
  overflow: visible;
}

/* Results tables: a narrow first (label) column, wider data columns, lines between columns */

.rs-prac-flow .data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: calc(0.9rem * var(--rs-prac-scale, 1));
}

.rs-prac-flow .data-table th, .rs-prac-flow .data-table td {
  padding: 6px 8px;
  line-height: 1.3;
  border: 1px solid #d0d4e0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

/* Charts drawn in HTML so the text stays readable at any size */

.rs-prac-chart {
  padding: 10px 12px;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  background: #fff;
}

.rs-prac-chart > p:first-child {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--rs-navy);
  font-size: 0.92rem;
}

.rs-prac-bars {
  display: grid;
  grid-template-columns: max-content minmax(60px, 1fr) max-content;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.85rem;
}

.rs-prac-bar-label {
  text-align: right;
  color: var(--rs-ink);
}

.rs-prac-bar-track {
  position: relative;
  height: 1.1em;
  border-left: 2px solid #9aa3b5;
}

.rs-prac-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 0 4px 4px 0;
  background: var(--rs-chem);
}

.rs-prac-bar-value {
  font-weight: 800;
  color: var(--rs-ink);
  white-space: nowrap;
}

.rs-prac-bar-value.is-empty {
  font-weight: 400;
  color: #6a6f7d;
}

.rs-prac-ph {
  font-size: 0.85rem;
}

.rs-prac-ph-marks {
  position: relative;
  height: 4.6em;
}

.rs-prac-ph-mark {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  padding-bottom: calc(var(--row, 0) * 1.4em + 4px);
  white-space: nowrap;
  color: var(--rs-ink);
  line-height: 1.2;
}

.rs-prac-ph-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  height: calc(var(--row, 0) * 1.4em + 6px);
  border-left: 2px solid var(--rs-ink);
}

.rs-prac-ph-strip {
  height: 1.3em;
  border-radius: 4px;
}

.rs-prac-ph-ticks {
  position: relative;
  height: 1.4em;
}

.rs-prac-ph-ticks span {
  position: absolute;
  transform: translateX(-50%);
  top: 2px;
  color: var(--rs-ink);
}

.rs-prac-ph-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 0.9em;
}

@media (max-width: 760px) {
  .sap-int-wrap.rs-prac-flow, .rs-prac-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .rs-prac-flow .table-scroll-wrap {
    overflow-x: auto;
  }
}

/* ---------- Full screen ---------- */

.sap-int-wrap.rs-prac-flow.is-fullscreen {
  display: grid;
  height: 100vh;
  overflow: hidden;
  gap: 14px;
  align-items: stretch;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "method app" "results results";
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-method {
  grid-area: method;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-app {
  grid-area: app;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-results {
  grid-area: results;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > div {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  display: block;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-app {
  display: flex;
  overflow: hidden;
}

.rs-prac-flow.is-fullscreen .rs-prac-app svg {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 32vh;
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen {
    overflow: hidden;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen > div {
    display: block;
    overflow-y: auto;
    max-height: 100%;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-app {
    display: flex;
    overflow: hidden;
  }
}

.rs-prac-flow.is-fullscreen .sap-card {
  padding: 14px 16px;
}

.rs-prac-flow.is-fullscreen .sap-card h3 {
  font-size: clamp(1.2rem, 2.8vh, 1.7rem);
  margin-bottom: 6px;
}

.rs-prac-flow.is-fullscreen .rs-prac-method ol {
  margin-bottom: 8px;
}

.rs-prac-flow.is-fullscreen .rs-prac-method ol, .rs-prac-flow.is-fullscreen .rs-prac-method .rs-note {
  font-size: calc(clamp(0.95rem, 2vh, 1.3rem) * var(--rs-prac-scale, 1));
  line-height: 1.4;
}

.rs-prac-flow.is-fullscreen .rs-prac-method li {
  margin-bottom: 1px;
}

.rs-prac-flow.is-fullscreen .rs-prac-results-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.rs-prac-flow.is-fullscreen .data-table {
  font-size: calc(clamp(1rem, 2.3vh, 1.45rem) * var(--rs-prac-scale, 1));
}

.rs-prac-flow.is-fullscreen .data-table th, .rs-prac-flow.is-fullscreen .data-table td {
  padding: clamp(5px, 0.9vh, 10px) 10px;
}

.rs-prac-flow.is-fullscreen .rs-prac-chart > p:first-child {
  font-size: clamp(1rem, 2.2vh, 1.35rem);
}

.rs-prac-flow.is-fullscreen .rs-prac-bars, .rs-prac-flow.is-fullscreen .rs-prac-ph {
  font-size: clamp(0.95rem, 2.1vh, 1.3rem);
}

.rs-prac-flow.is-fullscreen .rs-prac-results p, .rs-prac-flow.is-fullscreen .rs-prac-results li {
  font-size: clamp(1rem, 2.2vh, 1.4rem);
}

@media (max-width: 1099px) {
  .rs-prac-flow.is-fullscreen .rs-prac-results-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }
}

/* ---------- Method + table view, text size, teacher editing (v1.4) ---------- */

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

.rs-prac-method-head h3 {
  margin: 0 !important;
}

.rs-prac-font {
  display: flex;
  gap: 4px;
}

.rs-prac-font button {
  padding: 3px 8px;
  border: 1px solid #d0d4e0;
  border-radius: 6px;
  background: #fff;
  color: var(--rs-navy);
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
}

.rs-prac-font button:hover {
  background: #e7e9f5;
}

.rs-prac-flow .rs-prac-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rs-prac-edit-btn {
  padding: 5px 10px;
  border: 1px dashed #2980b9;
  border-radius: 6px;
  background: rgba(41, 128, 185, 0.06);
  color: #1f6fa5;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.rs-prac-edit-btn:hover {
  background: #2980b9;
  color: #fff;
}

.rs-prac-flow .editable-val {
  border-bottom: 2px dashed #2980b9;
  color: #1f6fa5;
  cursor: pointer;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(41, 128, 185, 0.05);
}

.rs-prac-flow .editable-val:hover {
  background: #2980b9;
  color: #fff;
}

.rs-prac-flow .data-table td[contenteditable] {
  background: #fffdf2;
  cursor: text;
}

.rs-prac-flow .data-table td[contenteditable]:focus {
  outline: 2px solid #5ba4cf;
  outline-offset: -2px;
}

.rs-prac-sim-note {
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff7e8;
  color: var(--rs-ink);
  font-size: 0.85rem;
}

/* Method + table: the simulation is hidden so students can do the practical themselves */

.sap-int-wrap.rs-prac-flow.data-view {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

.sap-int-wrap.rs-prac-flow.data-view > .rs-prac-app, .rs-prac-flow.data-view .rs-prac-chart, .rs-prac-flow.data-view [data-prac-sim-only] {
  display: none !important;
}

.sap-int-wrap.rs-prac-flow.data-view > .rs-prac-results {
  grid-column: auto;
}

.rs-prac-flow.data-view .rs-prac-results-grid {
  grid-template-columns: minmax(0, 1fr);
}

.sap-int-wrap.rs-prac-flow.data-view.is-fullscreen {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "method results";
}

.rs-prac-flow.data-view .data-table td {
  height: 2.6em;
}

@media (max-width: 760px) {
  .sap-int-wrap.rs-prac-flow.data-view {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Dialogs for teacher editing */

.rs-prac-dialog-back {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(37, 36, 47, 0.55);
}

.rs-prac-dialog {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  color: var(--rs-ink);
  font-size: 1rem;
}

.rs-prac-dialog h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--rs-navy);
}

.rs-prac-dialog-note {
  margin: 0 0 10px;
  color: var(--rs-muted);
  font-size: 0.9rem;
}

.rs-prac-dialog input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  font: inherit;
}

.rs-prac-dialog-list {
  display: grid;
  gap: 6px;
}

.rs-prac-dialog-row {
  display: flex;
  gap: 6px;
}

.rs-prac-dialog-x {
  flex: none;
  width: 38px;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  background: #fff;
  color: var(--rs-chem-deep, #a42d12);
  font-weight: 900;
  cursor: pointer;
}

.rs-prac-dialog-add {
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px dashed #9aa3b5;
  border-radius: 8px;
  background: #f5f6fb;
  color: var(--rs-navy);
  font-weight: 800;
  cursor: pointer;
}

.rs-prac-dialog-add:disabled {
  opacity: 0.5;
  cursor: default;
}

.rs-prac-dialog-group {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
}

.rs-prac-dialog-group legend {
  width: auto;
  margin: 0;
  padding: 0 4px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--rs-navy);
}

.rs-prac-dialog-group label {
  display: block;
  margin: 2px 0;
  cursor: pointer;
}

.rs-prac-dialog-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.rs-prac-dialog-btns button {
  padding: 7px 14px;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  background: #fff;
  color: var(--rs-navy);
  font-weight: 800;
  cursor: pointer;
}

.rs-prac-dialog-btns .rs-prac-dialog-save {
  background: var(--rs-navy);
  border-color: var(--rs-navy);
  color: #fff;
}

.rs-prac-flow.is-fullscreen .rs-prac-results .sap-card {
  padding: 12px 14px 10px;
}

.rs-prac-flow.is-fullscreen .rs-prac-bars {
  gap: 4px 8px;
}

@media (min-width: 1100px) and (max-height: 899px) {
  .rs-prac-flow.is-fullscreen:not(.data-view) .data-table th, .rs-prac-flow.is-fullscreen:not(.data-view) .data-table td {
    padding: 4px 8px;
  }
}

@media (min-width: 1100px) and (max-height: 899px) {
  .rs-prac-flow.is-fullscreen:not(.data-view) .rs-prac-results h3 {
    margin-bottom: 4px;
  }
}

@media (min-width: 1100px) and (max-height: 899px) {
  .rs-prac-flow.is-fullscreen:not(.data-view) .rs-prac-side {
    gap: 6px;
  }
}

/* =========================================================
   v1.5 (7 Nov 2026) · rs-prac-flow: one bar across the top, tighter full screen
   - .rs-prac-topbar (made by rs-practical.js v1.2): back to menu, title, text size,
     Method + table, full screen. In full screen the method heading moves into it
     and the Results heading is hidden.
   - A− / A+ scale the method, table, chart and conclusion. Selectors start with
     .sap-int-wrap.rs-prac-flow so an old copy of the practical CSS left in a page
     cannot override them.
   - Opt in to "apparatus beside its controls" in full screen by putting
     class="rs-prac-app--side" on .rs-prac-app with two children: the <svg> and a
     .rs-prac-controls div (choices, buttons).
========================================================= */

.sap-int-wrap.rs-prac-flow, .sap-int-wrap.rs-prac-flow.has-fs-title {
  padding: 10px 14px 14px;
  gap: 12px;
}

.sap-int-wrap.rs-prac-flow > .rs-prac-topbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  min-height: 32px;
}

.rs-prac-topbar .fs-btn, .rs-prac-topbar .rs-prac-viewbtn, .rs-prac-topbar .gas-back-btn {
  position: static;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid #d0d4e0;
  border-radius: 6px;
  background: #e7e9f5;
  color: var(--rs-navy);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}

.rs-prac-topbar .fs-btn:hover, .rs-prac-topbar .rs-prac-viewbtn:hover, .rs-prac-topbar .gas-back-btn:hover {
  background: #d0d4e0;
}

.rs-prac-flow.data-view .rs-prac-topbar .rs-prac-viewbtn {
  background: var(--rs-ink);
  border-color: var(--rs-ink);
  color: #fff;
}

.rs-prac-topbar-title {
  flex: 1 1 260px;
  min-width: 0;
  color: var(--rs-ink);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.25;
}

.rs-prac-topbar-sub {
  display: none;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid #d0d4e0;
  color: var(--rs-chem-deep, #a42d12);
}

.rs-prac-topbar .rs-prac-font {
  display: flex;
  gap: 4px;
}

.rs-prac-topbar .rs-prac-font button {
  padding: 5px 9px;
  font-size: 0.8rem;
}

.rs-prac-flow .rs-prac-method-head {
  margin-bottom: 6px;
}

.rs-prac-flow .rs-prac-method-head:empty {
  display: none;
}

.rs-prac-flow .rs-prac-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* text size: the card sets the size, everything inside follows it */

.sap-int-wrap.rs-prac-flow .rs-prac-method .sap-card {
  font-size: calc(0.95rem * var(--rs-prac-scale, 1));
}

.sap-int-wrap.rs-prac-flow .rs-prac-method .sap-card ol, .sap-int-wrap.rs-prac-flow .rs-prac-method .sap-card li, .sap-int-wrap.rs-prac-flow .rs-prac-method .sap-card p, .sap-int-wrap.rs-prac-flow .rs-prac-method .sap-card .rs-note {
  font-size: inherit;
}

.sap-int-wrap.rs-prac-flow .data-table {
  font-size: calc(0.9rem * var(--rs-prac-scale, 1));
}

.sap-int-wrap.rs-prac-flow .data-table th, .sap-int-wrap.rs-prac-flow .data-table td {
  font-size: inherit;
}

.sap-int-wrap.rs-prac-flow .rs-prac-side {
  font-size: calc(0.88rem * var(--rs-prac-scale, 1));
}

.sap-int-wrap.rs-prac-flow .rs-prac-side .rs-prac-bars, .sap-int-wrap.rs-prac-flow .rs-prac-side .rs-prac-ph, .sap-int-wrap.rs-prac-flow .rs-prac-side p, .sap-int-wrap.rs-prac-flow .rs-prac-side li, .sap-int-wrap.rs-prac-flow .rs-prac-side > div > div {
  font-size: inherit;
}

.sap-int-wrap.rs-prac-flow .rs-prac-chart > p:first-child {
  font-size: 1.05em;
}

/* Method + table: make it plain that the table is for typing in */

.rs-prac-flow.data-view .rs-prac-results .table-scroll-wrap::before {
  content: "✎ Click a yellow box to type in your results.";
  display: block;
  margin: 0 0 6px;
  color: #1f6fa5;
  font-weight: 800;
  font-size: 0.95em;
}

.sap-int-wrap.rs-prac-flow.data-view .data-table td[contenteditable] {
  background: #fff8d9;
  box-shadow: inset 0 0 0 1px #ecd98c;
}

.sap-int-wrap.rs-prac-flow.data-view .data-table td[contenteditable]:hover {
  background: #fff2b8;
}

.sap-int-wrap.rs-prac-flow.data-view .data-table td[contenteditable]:focus {
  background: #fff;
  outline: 3px solid #5ba4cf;
  outline-offset: -3px;
}

/* ---------- full screen ---------- */

.sap-int-wrap.rs-prac-flow.is-fullscreen {
  padding: 8px 14px 12px;
  gap: 10px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "bar bar" "method app" "results results";
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-results {
  max-height: 58vh;
}

.rs-prac-flow.is-fullscreen .rs-prac-method .sap-card {
  min-height: 100%;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-topbar {
  grid-area: bar;
  display: flex;
  overflow: visible;
  max-height: none;
}

.rs-prac-flow.is-fullscreen .rs-prac-topbar-title {
  font-size: clamp(1rem, 2.2vh, 1.35rem);
}

.rs-prac-flow.is-fullscreen .rs-prac-topbar-sub {
  display: inline;
}

.rs-prac-flow.is-fullscreen .rs-prac-topbar .fs-btn, .rs-prac-flow.is-fullscreen .rs-prac-topbar .rs-prac-viewbtn, .rs-prac-flow.is-fullscreen .rs-prac-topbar .gas-back-btn, .rs-prac-flow.is-fullscreen .rs-prac-topbar .rs-prac-font button {
  font-size: clamp(0.8rem, 1.6vh, 1rem);
}

.rs-prac-flow.is-fullscreen .rs-prac-method-head h3, .rs-prac-flow.is-fullscreen .rs-prac-results .sap-card > h3 {
  display: none;
}

.rs-prac-flow.is-fullscreen .rs-prac-method-head {
  display: none;
}

.rs-prac-flow.is-fullscreen .sap-card {
  padding: 10px 14px;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-method .sap-card {
  font-size: calc(clamp(0.9rem, 2.3vh, 1.5rem) * var(--rs-prac-scale, 1));
  line-height: 1.4;
}

.rs-prac-flow.is-fullscreen .rs-prac-method ol {
  margin-bottom: 8px;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-app {
  padding: 8px 12px;
}

.rs-prac-flow.is-fullscreen .rs-prac-app svg {
  max-height: 30vh;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .data-table {
  font-size: calc(clamp(0.95rem, 2.2vh, 1.4rem) * var(--rs-prac-scale, 1));
}

.rs-prac-flow.is-fullscreen.data-view .rs-prac-results .table-scroll-wrap::before {
  font-size: clamp(1rem, 2.1vh, 1.3rem);
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .data-table th, .sap-int-wrap.rs-prac-flow.is-fullscreen .data-table td {
  padding: clamp(3px, 0.55vh, 7px) 10px;
  line-height: 1.25;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-side {
  font-size: calc(clamp(0.9rem, 1.9vh, 1.25rem) * var(--rs-prac-scale, 1));
}

/* apparatus beside its controls (opt in with .rs-prac-app--side) */

@media (min-width: 900px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-app--side {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(200px, 1fr);
    gap: 14px;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .rs-prac-flow.is-fullscreen .rs-prac-app--side > svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }
}

@media (min-width: 900px) {
  .rs-prac-flow.is-fullscreen .rs-prac-app--side .rs-prac-controls {
    align-self: center;
  }
}

/* Method + table in full screen: method beside the blank table */

.sap-int-wrap.rs-prac-flow.data-view.is-fullscreen {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "bar bar" "method results";
}

@media (max-width: 560px) {
  .sap-int-wrap.rs-prac-flow {
    padding: 8px 8px 10px;
  }
}

@media (max-width: 560px) {
  .rs-prac-flow .table-scroll-wrap {
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .sap-int-wrap.rs-prac-flow .data-table {
    min-width: 480px;
  }
}

/* =========================================================
   v1.6 (7 Nov 2026): house launcher look
   The teal launcher above was lifted from the Measuring rate page. The newer
   pages (Metals & non-metals, Group 7) show a plain grey card with white
   option cards and coloured tags; these rules make that the default for every
   page, so a page no longer needs its own copy of the Measuring rate styles.
========================================================= */

.gas-menu-card {
  background: #f5f6fb;
  border: 1px solid #d0d4e0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 25px;
}

.gas-menu-card h3 {
  margin: 0 0 8px 0;
  color: var(--rs-ink);
  font-weight: 900;
  text-align: center;
}

.gas-menu-card p {
  margin: 0 0 16px 0;
  color: var(--rs-navy);
  text-align: center;
  font-weight: 700;
}

.gas-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 700px) {
  .gas-menu-grid {
    grid-template-columns: 1fr;
  }
}

.gas-menu-option {
  border: 1px solid #d0d4e0;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  transition: 0.2s;
}

.gas-menu-option:hover {
  border-color: #5ba4cf;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.gas-menu-option svg {
  width: 76px;
  height: 58px;
  background: #f5f6fb;
  border-radius: 10px;
}

.gas-menu-option strong {
  display: block;
  color: var(--rs-ink);
  font-size: 0.95rem;
  line-height: 1.2;
  margin-top: 6px;
}

.gas-iv-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gas-iv-conc {
  background: #fff0ec;
  color: var(--rs-chem-deep, #a42d12);
  border: 1px solid #f2bcb0;
}

.gas-iv-size {
  background: #f2f9fd;
  color: #1f6699;
  border: 1px solid #b9d9eb;
}

.gas-menu-option small {
  display: block;
  color: #5f6475;
  margin-top: 4px;
  font-weight: 800;
}

/* One option only: centre it rather than leaving half the card empty. */

.gas-menu-grid > .gas-menu-option:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 560px;
}

/* v1.7 (7 Nov 2026): editable values are keyboard buttons (rs-practical.js v1.3) */

.sap-int-wrap .editable-val[data-edit]:focus-visible {
  outline: 3px solid #5ba4cf;
  outline-offset: 2px;
  border-radius: 3px;
}

/* v1.8 (7 Nov 2026): the top bar and menu buttons look the same on every page.
   Some pages reset every button with "#page button { font: inherit }", which made
   these buttons large and wrapped the bar onto two lines, so the sizes are fixed here. */

.sap-int-wrap .rs-prac-topbar .fs-btn, .sap-int-wrap .rs-prac-topbar .rs-prac-viewbtn, .sap-int-wrap .rs-prac-topbar .gas-back-btn {
  font-family: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.sap-int-wrap .rs-prac-topbar .rs-prac-font button {
  font-family: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.sap-int-wrap .rs-prac-topbar-title {
  font-size: 1rem !important;
  font-weight: 900 !important;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar .fs-btn, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar .rs-prac-viewbtn, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar .gas-back-btn, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar .rs-prac-font button {
  font-size: clamp(0.8rem, 1.6vh, 1rem) !important;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar-title {
  font-size: clamp(1rem, 2.2vh, 1.35rem) !important;
}

.gas-menu-card .practical-default-btn {
  font-family: inherit !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.sap-int-wrap .sap-btn {
  font-family: inherit !important;
  font-weight: 800 !important;
}

/* ---------- v1.9: menu pills, one colour per kind of change ----------
   concentration = green, size / surface area = blue, temperature = red,
   other (a different solid, catalyst …) = plum. Amber stays for safety only. */

.gas-menu-card .gas-iv-tag {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gas-menu-card .gas-iv-conc {
  background: #edf7ee;
  color: #23692a;
  border: 1px solid #b9dcbc;
}

.gas-menu-card .gas-iv-size {
  background: #eef6fc;
  color: #1f6699;
  border: 1px solid #b4d5ea;
}

.gas-menu-card .gas-iv-temp {
  background: #fff0ec;
  color: #b8330f;
  border: 1px solid #f2bcb0;
}

.gas-menu-card .gas-iv-other {
  background: #fbeff6;
  color: #8e2a66;
  border: 1px solid #e9c2d9;
}

/* =========================================================
   v1.11 (15 Nov 2026) · rs-practical v1.4
   Top bar: ← Back to menu · title · ? How it works · Teacher tools ▾ · ⛶ Full screen.
   Teacher tools opens .rs-prac-tools-row inside the bar (a full-width line under it),
   so nothing is covered and only the row itself pushes the practical down.
========================================================= */

.sap-int-wrap.rs-prac-flow > .rs-prac-topbar {
  position: relative;
  flex-wrap: wrap;
  row-gap: 6px;
}

.sap-int-wrap.rs-prac-flow .rs-prac-topbar-title {
  flex: 1 1 0;
  min-width: 7em;
}

.rs-prac-topbar-btns {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.rs-prac-howto-slot {
  display: contents;
}

.sap-int-wrap .rs-prac-topbar .ct-help-btn, .sap-int-wrap .rs-prac-topbar .rs-prac-tools-btn, .sap-int-wrap .rs-prac-topbar .rs-prac-viewret {
  margin: 0;
  padding: 5px 11px;
  border-radius: 6px;
  box-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.sap-int-wrap .rs-prac-topbar .ct-help-btn {
  border: 1px solid #d0d4e0;
  background: #fff;
  color: #1d2b4f;
}

.sap-int-wrap .rs-prac-topbar .ct-help-btn:hover {
  background: #f5f6fb;
}

.sap-int-wrap .rs-prac-topbar .ct-help-btn[aria-expanded="true"] {
  border-color: var(--rs-navy,#394362);
  color: var(--rs-navy,#394362);
}

.sap-int-wrap .rs-prac-topbar .rs-prac-tools-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d0d4e0;
  background: #e7e9f5;
  color: var(--rs-navy);
}

.sap-int-wrap .rs-prac-topbar .rs-prac-tools-btn:hover {
  background: #d0d4e0;
}

.sap-int-wrap .rs-prac-topbar .rs-prac-tools-btn[aria-expanded="true"] {
  border-color: var(--rs-navy);
  background: var(--rs-navy);
  color: #fff;
}

.rs-prac-caret {
  font-size: 0.75em;
  transition: transform 0.15s;
}

.rs-prac-tools-btn[aria-expanded="true"] .rs-prac-caret {
  transform: rotate(180deg);
}

/* Method + table is on and the tools are closed: a way back in the bar */

.sap-int-wrap .rs-prac-topbar .rs-prac-viewret {
  display: none;
  border: 1px solid var(--rs-ink);
  background: var(--rs-ink);
  color: #fff;
}

.sap-int-wrap.rs-prac-flow.data-view:not(.rs-prac-tools-open) .rs-prac-topbar .rs-prac-viewret {
  display: inline-block;
}

.sap-int-wrap .rs-prac-topbar button:focus-visible {
  outline: 3px solid #5ba4cf;
  outline-offset: 2px;
}

/* the Teacher tools row */

.rs-prac-tools-row {
  order: 10;
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #d0d4e0;
  border-radius: 10px;
  background: #f5f6fb;
  color: var(--rs-ink);
}

.rs-prac-tools-row[hidden] {
  display: none !important;
}

.rs-prac-tools-sep {
  width: 1px;
  align-self: stretch;
  margin: 2px;
  background: #d0d4e0;
}

.rs-prac-tools-grp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sap-int-wrap .rs-prac-tools-row .rs-prac-tools-lbl {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--rs-navy);
}

.sap-int-wrap .rs-prac-tools-row button {
  margin: 0;
  font-family: inherit !important;
  line-height: 1.3 !important;
  cursor: pointer;
}

.sap-int-wrap .rs-prac-tools-row .rs-prac-reset-defaults {
  padding: 5px 11px;
  border: 1px solid #d0d4e0;
  border-radius: 6px;
  background: #e7e9f5;
  color: var(--rs-navy);
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.sap-int-wrap .rs-prac-tools-row .rs-prac-reset-defaults:hover {
  background: #d0d4e0;
}

.sap-int-wrap .rs-prac-tools-row .rs-prac-tools-close {
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #d0d4e0;
  border-radius: 6px;
  background: #fff;
  color: var(--rs-navy);
  font-size: 0.85rem !important;
  font-weight: 900 !important;
}

.sap-int-wrap .rs-prac-tools-row .rs-prac-tools-close:hover {
  background: #e7e9f5;
}

.rs-prac-tools-row button:focus-visible {
  outline: 3px solid #5ba4cf;
  outline-offset: 2px;
}

.rs-prac-flash {
  animation: rsPracFlash 1s ease;
}

@keyframes rsPracFlash {
  0% {
    background: #2a7d4f;
    color: #fff;
  }
}

/* Edit values switch */

.sap-int-wrap .rs-prac-tools-row .rs-prac-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border: 1px dashed #2980b9;
  border-radius: 999px;
  background: rgba(41, 128, 185, 0.06);
  color: #1f6fa5;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.rs-prac-switch-track {
  position: relative;
  flex: none;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: #b3b9c9;
  transition: background 0.15s;
}

.rs-prac-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: left 0.15s;
}

.sap-int-wrap .rs-prac-tools-row .rs-prac-switch[aria-checked="true"] {
  border-style: solid;
  border-color: #2980b9;
  background: #1f6fa5;
  color: #fff;
}

.rs-prac-switch[aria-checked="true"] .rs-prac-switch-track {
  background: #fff;
}

.rs-prac-switch[aria-checked="true"] .rs-prac-switch-track::after {
  left: 15px;
  background: #1f6fa5;
}

@media (prefers-reduced-motion: reduce) {
  .rs-prac-switch-track, .rs-prac-switch-track::after, .rs-prac-caret {
    transition: none;
  }
}

/* Edit values off: the values read as plain text and cannot be pressed */

.sap-int-wrap.rs-prac-flow.rs-prac-edit-off .editable-val {
  padding: 0 !important;
  border-bottom: 0 !important;
  background: none !important;
  color: inherit !important;
  font-weight: inherit !important;
  cursor: inherit !important;
  pointer-events: none;
}

.sap-int-wrap.rs-prac-flow.rs-prac-edit-off .rs-prac-edit-btn {
  display: none !important;
}

/* Reset default values lives in the Teacher tools row now */

.gas-menu-card .practical-default-btn.rs-prac-moved {
  display: none !important;
}

/* full screen: the new buttons grow with the bar */

.sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar .ct-help-btn, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar .rs-prac-tools-btn, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-topbar .rs-prac-viewret, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-tools-row .rs-prac-switch, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-tools-row .rs-prac-reset-defaults, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-tools-row .rs-prac-tools-lbl {
  font-size: clamp(0.8rem, 1.6vh, 1rem) !important;
}

/* How it works bubble (rs-cards.js appends it to the wrap as a <div>): undo the
   practical's own "> div" rules, which would show a hidden bubble or clip its arrow */

.sap-int-wrap.rs-prac-flow > .ct-tip {
  display: block;
  margin: 0;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 60;
  font-family: inherit;
}

.sap-int-wrap.rs-prac-flow > .ct-tip[hidden] {
  display: none !important;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen > .ct-tip {
  font-size: clamp(1rem, 1.9vh, 1.2rem);
}

/* phones: the title on its own line, the four buttons in two rows of two */

@media (max-width: 600px) {
  .sap-int-wrap.rs-prac-flow .rs-prac-topbar-title {
    order: -1;
    flex: 1 0 100%;
  }
}

@media (max-width: 600px) {
  .rs-prac-topbar .rs-prac-topbar-btns {
    display: contents;
  }
}

@media (max-width: 600px) {
  .sap-int-wrap .rs-prac-topbar > .gas-back-btn, .sap-int-wrap .rs-prac-topbar .ct-help-btn, .sap-int-wrap .rs-prac-topbar .rs-prac-tools-btn, .sap-int-wrap .rs-prac-topbar .fs-btn {
    flex: 1 1 40%;
    justify-content: center;
    text-align: center;
    padding: 7px 8px;
  }
}

@media (max-width: 600px) {
  .sap-int-wrap .rs-prac-topbar .rs-prac-viewret {
    flex: 1 0 100%;
  }
}

@media (max-width: 600px) {
  .rs-prac-tools-row {
    position: relative;
    gap: 8px;
    padding: 8px 44px 8px 8px;
  }
}

@media (max-width: 600px) {
  .rs-prac-tools-sep {
    display: none;
  }
}

@media (max-width: 600px) {
  .sap-int-wrap .rs-prac-tools-row .rs-prac-tools-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   Phones (rs-practical.js adds .rs-prac-pin below 576 px in portrait, never in
   full screen or Method + table): the apparatus panel and its Do step / Reset
   buttons stick under the fixed navbar while the practical is on screen. The
   method folds away; the caption on top of the panel opens it.
========================================================= */

.sap-int-wrap.rs-prac-flow {
  scroll-margin-top: calc(var(--rs-prac-pin-top, 0px) + 8px);
}

.rs-prac-pin-cap, .rs-prac-pin-close {
  display: none;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin > .rs-prac-method {
  display: none;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin.rs-prac-pin-open > .rs-prac-method {
  display: block;
  position: fixed;
  top: var(--rs-prac-sheet-top, 120px);
  left: 8px;
  right: 8px;
  z-index: 1025;
  max-height: calc(100vh - var(--rs-prac-sheet-top, 120px) - 12px);
  max-height: calc(100dvh - var(--rs-prac-sheet-top, 120px) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--rs-navy);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(37, 36, 47, 0.28);
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin-open > .rs-prac-method .sap-card {
  height: auto;
  overflow: visible;
  padding-top: 0;
  border: 0;
  font-size: calc(1rem * var(--rs-prac-scale, 1)) !important;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin-open > .rs-prac-method .rs-prac-pin-close {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 0 0 auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 0 0 0 10px;
  background: #e7e9f5;
  color: var(--rs-navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin-open > .rs-prac-method [data-rs-prac-current] {
  scroll-margin: 40px 0 8px;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin .rs-prac-pin-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d0d4e0;
  border-radius: 10px;
  background: #fff;
  color: var(--rs-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.rs-prac-pin-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.rs-prac-pin-more {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e7e9f5;
  color: var(--rs-navy);
  font-size: 15px;
  font-weight: 800;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin-open .rs-prac-pin-cap {
  border-color: var(--rs-navy);
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin .rs-prac-pin-cap:focus-visible, .rs-prac-pin-close:focus-visible {
  outline: 3px solid #5ba4cf;
  outline-offset: 2px;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin > .rs-prac-app {
  position: sticky;
  top: var(--rs-prac-pin-top, 0px);
  z-index: 20;
  gap: 8px;
  padding: 8px;
  transition: box-shadow 0.2s;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin.rs-prac-pin-tall > .rs-prac-app {
  position: relative;
  top: auto;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin > .rs-prac-app.is-stuck {
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 14px -8px rgba(37, 36, 47, 0.35);
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin > .rs-prac-app > svg {
  max-height: 25vh !important;
}

/* the stage line ("Step 2 of 4") becomes the caption */

.sap-int-wrap.rs-prac-flow.rs-prac-pin > .rs-prac-app [data-rs-prac-stage] {
  display: none !important;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin > .rs-prac-app > p:empty {
  display: none;
}

.sap-int-wrap.rs-prac-flow.rs-prac-pin > .rs-prac-app .sap-btn {
  min-height: 44px;
  font-size: 16px !important;
}

/* Release 22c (21 Nov 2026, Matthew's answers): the live practicals follow the review kit. The current method step (every practical's "...-step-on")
   is a navy bar on pale grey, not chemistry red on pink; "What the results show" has the navy edge of an explanation box.
   "Graphite, the exception" is a key note; the starters' clue box is an explanation. */

li[class*="-step-on"] {
  background: #eef1f8 !important;
  box-shadow: inset 3px 0 0 var(--rs-navy,#394362) !important;
}

.sap-int-wrap [class*="-conclusion"] {
  border-left: 4px solid var(--rs-navy,#394362) !important;
  border-radius: 0 10px 10px 0 !important;
  background: #f5f6fb !important;
}

.sap-int-wrap [class*="-concl-label"] {
  color: var(--rs-navy,#394362) !important;
}

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

.cft-clue {
  border-left: 4px solid var(--rs-navy,#394362) !important;
  background: #f5f6fb !important;
}

.sap-int-wrap .rs-prac-method > .rs-prac-concl-moved {
  margin: 0;
  font-size: calc(0.88rem * var(--rs-prac-scale, 1));
}

.sap-int-wrap .rs-prac-results-grid > .rs-prac-side:empty {
  display: none;
}

/* =========================================================
   v1.12 (21 Nov 2026) · use the space beside a long method
   Matthew (21 Nov): "slightly concerned by how much white space/empty space there is" and "we want to try to keep
   everything on the page where we can". On the page the method column is usually much taller than the apparatus
   beside it, which left a large empty area under the apparatus, with the results card below both.
   On the page (two columns wide, not full screen, not Method + table, not the phone pin), a practical whose results
   table has at most three columns and that has no chart now puts its results card in the right-hand column under
   the apparatus, with the method beside both; the conclusion goes under the table instead of beside it. Practicals
   with a chart or a wider table keep the layout they have. Practicals made with the practical kit (.prk-fit) choose
   their own layout. Full screen, Method + table and phones are unchanged.
========================================================= */

@media (min-width: 761px) {
  .sap-int-wrap.rs-prac-flow:not(.is-fullscreen):not(.data-view):not(.rs-prac-pin):not(.prk-fit):not(:has(.rs-prac-chart, .rs-prac-results tr > :nth-child(4))) {
    grid-template-areas: "bar bar" "method app" "method results";
    grid-template-rows: auto auto 1fr;
  }
}

@media (min-width: 761px) {
  .sap-int-wrap.rs-prac-flow:not(.is-fullscreen):not(.data-view):not(.rs-prac-pin):not(.prk-fit):not(:has(.rs-prac-chart, .rs-prac-results tr > :nth-child(4))) > .rs-prac-topbar {
    grid-area: bar;
  }
}

@media (min-width: 761px) {
  .sap-int-wrap.rs-prac-flow:not(.is-fullscreen):not(.data-view):not(.rs-prac-pin):not(.prk-fit):not(:has(.rs-prac-chart, .rs-prac-results tr > :nth-child(4))) > .rs-prac-method {
    grid-area: method;
  }
}

@media (min-width: 761px) {
  .sap-int-wrap.rs-prac-flow:not(.is-fullscreen):not(.data-view):not(.rs-prac-pin):not(.prk-fit):not(:has(.rs-prac-chart, .rs-prac-results tr > :nth-child(4))) > .rs-prac-app {
    grid-area: app;
  }
}

@media (min-width: 761px) {
  .sap-int-wrap.rs-prac-flow:not(.is-fullscreen):not(.data-view):not(.rs-prac-pin):not(.prk-fit):not(:has(.rs-prac-chart, .rs-prac-results tr > :nth-child(4))) > .rs-prac-results {
    grid-area: results;
    grid-column: auto;
  }
}

@media (min-width: 761px) {
  .sap-int-wrap.rs-prac-flow:not(.is-fullscreen):not(.data-view):not(.rs-prac-pin):not(.prk-fit):not(:has(.rs-prac-chart, .rs-prac-results tr > :nth-child(4))) .rs-prac-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Release 22e (21 Nov 2026): the conclusion moved under the method keeps the size of the results text (A- / A+ included) */

.sap-int-wrap.rs-prac-flow:not(.is-fullscreen) .rs-prac-method > .rs-prac-concl-moved {
  font-size: calc(0.88rem * var(--rs-prac-scale, 1)) !important;
}

/* Release 22e full-screen tables (21 Nov 2026): in full screen the results table turned sideways (time across the top) sizes its columns to their contents, so 100, 110 and 120
   are no longer squeezed against the cell edges; a table too wide for the space (mass loss) scrolls sideways instead of overlapping */

.sap-int-wrap.rs-prac-flow.is-fullscreen .gp-table.gp-across {
  table-layout: auto !important;
  font-variant-numeric: tabular-nums;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .gp-table.gp-across .gp-col-label {
  width: auto !important;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .gp-table.gp-across thead th:not(:first-child), .sap-int-wrap.rs-prac-flow.is-fullscreen .gp-table.gp-across td {
  padding-left: 3px !important;
  padding-right: 3px !important;
}

.sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-results .table-scroll-wrap {
  overflow-x: auto;
}

/* Release 22f phone full screen (22 Nov 2026): on a phone, full screen stacks the panels in one column (bar, apparatus, method, results) and scrolls,
   with the normal phone text sizes, instead of squeezing them into two narrow columns. Overrides each page's own full-screen grid, so !important. */

@media (max-width: 699.98px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen, .sap-int-wrap.rs-prac-flow.is-fullscreen:not(.data-view), .sap-int-wrap.rs-prac-flow.data-view.is-fullscreen {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(4, max-content) !important;
    grid-auto-rows: max-content !important;
    grid-template-areas: "bar" "app" "method" "results" !important;
    align-content: start !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 699.98px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-method, .sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-app, .sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-results {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    min-height: 0 !important;
  }
}

@media (max-width: 699.98px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen > .rs-prac-app svg[viewBox]:not([width]) {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    flex: none !important;
  }
}

@media (max-width: 699.98px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen .sap-card p, .sap-int-wrap.rs-prac-flow.is-fullscreen .sap-card ol, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-method .sap-card, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-method ol, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-method .rs-note, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-results p, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-results li {
    font-size: calc(0.95rem * var(--rs-prac-scale, 1)) !important;
  }
}

@media (max-width: 699.98px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen .data-table, .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-side {
    font-size: calc(0.9rem * var(--rs-prac-scale, 1)) !important;
  }
}

@media (max-width: 699.98px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen .sap-card h3 {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 699.98px) {
  .sap-int-wrap.rs-prac-flow.is-fullscreen .rs-prac-results-grid, .sap-int-wrap.rs-prac-flow.is-fullscreen:not(.data-view) .rs-prac-side {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Release 22f phone tables (22 Nov 2026): water, energy, group 7, metals, chromatography and loss in mass fit a phone without sideways scrolling */

@media (max-width: 575.98px) {
  :is(#wtpPrac, #enPrac, #rsG7Prac, #rsMnPrac, #chpPrac, #massPrac) .rs-prac-results table.data-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto !important;
  }
}

@media (max-width: 575.98px) {
  :is(#wtpPrac, #enPrac, #rsG7Prac, #rsMnPrac, #chpPrac, #massPrac) .rs-prac-results table.data-table col {
    width: auto !important;
  }
}

@media (max-width: 575.98px) {
  :is(#wtpPrac, #rsG7Prac, #rsMnPrac, #chpPrac) .rs-prac-results table.data-table th, :is(#wtpPrac, #rsG7Prac, #rsMnPrac, #chpPrac) .rs-prac-results table.data-table td {
    white-space: normal !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 0.9em !important;
  }
}

@media (max-width: 575.98px) {
  :is(#enPrac, #massPrac) .rs-prac-results table.gp-table:not(.gp-across) th, :is(#enPrac, #massPrac) .rs-prac-results table.gp-table:not(.gp-across) td {
    white-space: normal !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

@media (max-width: 575.98px) {
  :is(#enPrac, #massPrac) .rs-prac-results table.gp-table:not(.gp-across) td {
    white-space: nowrap !important;
    font-size: 0.84em !important;
    font-variant-numeric: tabular-nums;
  }
}

@media (max-width: 575.98px) {
  :is(#enPrac, #massPrac) .rs-prac-results table.gp-table:not(.gp-across) tbody th, #massPrac .rs-prac-results table.gp-table:not(.gp-across) thead th[scope="colgroup"] {
    font-size: 0.84em !important;
  }
}

.rs-page .gas-menu-card > p {
  margin-left: auto !important;
  margin-right: auto !important;
}

.rs-page .rs-prac-tools-row .pr-acid-grp button[aria-pressed="true"] {
  background: var(--rs-ink);
  border-color: var(--rs-ink);
  color: #fff;
}

.rs-page .rs-prac-hold {
  visibility: hidden;
}

.rs-page .rs-prac-stack {
  display: grid;
}

.rs-page .rs-prac-stack > * {
  grid-area: 1 / 1;
}

.rs-page .rs-prac-wait {
  color: #5f6475;
}

