.chem-concept-visual {
  margin: 18px 0;
  color: #244657;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  min-width: 0;
}
.chem-concept-visual h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.chem-concept-visual p {
  margin: 10px 0;
}
.chem-concept-visual svg {
  width: 100%;
  height: auto;
  display: block;
}
.chem-concept-visual figcaption {
  border-top: 1px solid #d4e0e6;
  padding-top: 12px;
  color: #536b77;
  font-size: 14px;
  line-height: 1.6;
}
.chem-concept-cards,
.chem-concept-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.chem-concept-cards > section,
.chem-concept-compare > section {
  padding: 16px;
  min-width: 0;
  border: 1px solid #d3e0e7;
  border-radius: 12px;
}
.chem-concept-cards svg {
  max-height: 240px;
  margin-bottom: 16px;
}
.chem-concept-cards strong {
  font-size: 16px;
}
.chem-concept-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chem-concept-key {
  padding: 12px 0;
  font-size: 14px;
  color: #4c6370;
}
.chem-new-surface {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #e7a45c;
  border: 1px solid #9b6126;
  vertical-align: middle;
  margin-right: 5px;
}
.chem-concept-nuclide {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
  padding: 20px 10px;
}
.chem-nuclide-symbol {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px 0;
  line-height: 1;
  gap: 5px;
}
.chem-nuclide-symbol > span {
  display: grid;
  gap: 20px;
  font-size: 30px;
}
.chem-nuclide-symbol > strong {
  font-size: 76px;
  font-weight: 600;
}
.chem-concept-visual dl {
  margin: 0;
}
.chem-concept-visual dl > div {
  padding: 12px 0;
  border-bottom: 1px solid #dbe5ea;
}
.chem-concept-visual dt {
  font-weight: 800;
}
.chem-concept-visual dd {
  margin: 5px 0 0;
}
.chem-concept-readings {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.chem-concept-readings section {
  border: 1px solid #aac6d6;
  border-radius: 12px;
  padding: 20px;
}
.chem-concept-readings section > span {
  font-size: 14px;
  font-weight: 750;
}
.chem-concept-readings h3 {
  font-size: 30px;
  margin: 8px 0;
}
.chem-interval-arrow {
  font-size: 26px;
  text-align: center;
}
.chem-polymer-change {
  border-block: 1px solid #dce5eb;
  padding: 16px 0;
}
@media (max-width: 650px) {
  .chem-concept-cards,
  .chem-concept-compare,
  .chem-concept-nuclide {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .chem-concept-cards svg {
    max-height: 240px;
  }
  .chem-concept-readings {
    gap: 6px;
    grid-template-columns: 1fr 20px 1fr;
  }
  .chem-concept-readings section {
    padding: 13px;
  }
  .chem-concept-readings h3 {
    font-size: 26px;
  }
  .chem-nuclide-symbol {
    padding: 15px 0;
  }
}
.chem-memory-map {
  color: var(--navy);
  font: 1rem/1.55 var(--font-sans);
  background: #fff;
  border: 1px solid var(--memory-border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  container-type: inline-size;
}
.chem-notes section.chem-memory-map {
  padding: 24px;
  border-top: 5px solid var(--memory-blue);
}
.memory-map-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--memory-border);
}
.memory-map-number {
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 800;
  border: 1px solid #adc6d6;
  color: var(--memory-blue);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.memory-map-heading .memory-map-kicker {
  margin: 0 0 6px;
  color: var(--memory-blue);
  font-weight: 750;
  font-size: 0.875rem;
}
.memory-map-heading h2 {
  font: 750 clamp(1.25rem, 3vw, 1.65rem)/1.25 var(--font-sans);
  margin: 0 0 8px;
}
.memory-map-heading p {
  margin: 0;
}
.memory-map-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
  align-items: start;
}
.memory-map-panel {
  min-width: 0;
}
.memory-map-panel > h3 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 16px;
  font: 750 1.05rem/1.4 var(--font-sans);
}
.memory-map-panel > h3 > span {
  color: var(--memory-blue);
  font-size: 0.875rem;
}
.memory-map-panel:nth-child(even) > h3 > span {
  color: var(--memory-green);
}
.memory-formula {
  white-space: pre-line;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.6;
  padding: 14px 15px;
  margin: 12px 0;
  background: #eaf3f8;
  border-left: 4px solid var(--memory-blue);
  border-radius: 0 8px 8px 0;
  overflow-wrap: anywhere;
}
.memory-relations {
  display: grid;
  gap: 8px;
}
.memory-relation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e0e9ed;
  padding: 9px 0;
}
.memory-relation strong {
  font-weight: 650;
  color: var(--memory-blue);
}
.memory-relation > span:last-child {
  color: #234f49;
}
.memory-link {
  font-size: 1.35rem;
  text-align: center;
  color: var(--memory-green);
}
.memory-detail {
  margin: 14px 0 0;
  font-size: 0.9375rem;
}
.memory-trap {
  border-left: 3px solid #ba8127;
  background: #fff7e7;
  padding: 10px 12px;
  border-radius: 0 7px 7px 0;
  font-size: 0.875rem;
  margin: 14px 0 0;
}
.memory-trap > strong {
  display: block;
  color: var(--memory-gold);
  margin-bottom: 4px;
}
.memory-map-footer {
  border-top: 1px solid var(--memory-border);
  padding-top: 16px;
  margin: 22px 0 0;
  font-size: 0.875rem;
  color: #4b6473;
}
.memory-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}
.memory-table-wrap:focus-visible {
  outline: 3px solid var(--memory-blue);
  outline-offset: 3px;
}
.memory-table-wrap table {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}
.memory-table-wrap th,
.memory-table-wrap td {
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #cfdee5;
}
.memory-table-wrap thead th {
  background: #e9f1f6;
  color: #284c66;
}
.memory-table-wrap tbody th {
  color: var(--memory-blue);
  font-weight: 750;
}
.memory-table-wrap tbody tr:nth-child(even) {
  background: #f5f8fa;
}
.memory-drawing {
  margin: 12px 0;
}
.memory-drawing > figcaption {
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 8px;
}
.memory-drawing > svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 340px;
  margin: auto;
}
.memory-drawing svg text {
  fill: #284f67;
  font: 14px var(--font-sans);
  text-anchor: middle;
  stroke: none;
}
.memory-drawing svg .topic-art-large {
  font-size: 28px;
  font-weight: 750;
}
.memory-axis {
  stroke: #5c788a;
  stroke-width: 1.5;
  fill: none;
}
.memory-curve {
  stroke: var(--memory-blue);
  stroke-width: 3;
  fill: none;
}
.memory-energy-pair {
  display: grid;
  gap: 14px;
}
.memory-energy-pair .memory-drawing {
  margin: 0;
  padding: 9px;
  border: 1px solid #d9e4e9;
  border-radius: 8px;
}
.memory-energy-pair .memory-drawing + .memory-drawing .memory-curve {
  stroke: var(--memory-green);
}
.memory-state-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 0.875rem;
}
.memory-state-models svg {
  width: 100%;
  display: block;
}
.memory-mole-hub {
  border: 1px solid #bbd1df;
  border-radius: 10px;
  overflow: hidden;
}
.memory-hub-title,
.memory-mole-result {
  padding: 11px 13px;
  background: #eaf3f8;
  font-weight: 650;
}
.memory-mole-route {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  border-bottom: 1px solid #dfebf0;
}
.memory-mole-route > span:first-child {
  font-weight: 650;
  grid-column: 1/-1;
}
.memory-conversion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  color: #466575;
}
.memory-mole-route strong {
  color: var(--memory-blue);
  text-align: right;
}
.memory-mole-result {
  color: var(--memory-green);
}
.memory-nuclide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 0;
}
.memory-nuclide-symbol {
  display: flex;
  align-items: center;
  color: var(--memory-blue);
  line-height: 1;
}
.memory-nuclide-symbol > span {
  display: grid;
  gap: 10px;
  font-size: 1.15rem;
}
.memory-nuclide-symbol > strong {
  font-size: 3.2rem;
  margin-left: 5px;
}
.memory-nuclide-symbol sup {
  font-size: 1.3rem;
  vertical-align: super;
}
.memory-nuclide dl {
  margin: 0;
  font-size: 0.875rem;
}
.memory-nuclide dt {
  font-weight: 750;
}
.memory-nuclide dd {
  margin: 0 0 8px !important;
}
.memory-ph-strip {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
  text-align: center;
}
.memory-ph-strip span {
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 4px solid #a56a31;
  color: #513815;
  background: #fff0da;
}
.memory-ph-strip .neutral {
  background: #e3f2ed;
  border-color: #258574;
  color: #174b40;
}
.memory-ph-strip .alkaline {
  background: #e6effa;
  border-color: #416da6;
  color: #24446c;
}
.memory-ph-key {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.875rem;
  margin-top: 7px;
}
.chem-memory-map .chem-exam-figure,
.chem-memory-map .chem-visual {
  margin: 12px 0;
  border-radius: 9px;
  box-shadow: none;
}
.chem-memory-map .chem-exam-figure figcaption {
  font-size: 0.875rem;
}
.chem-memory-map .chem-exam-figure svg {
  height: auto;
  max-height: none;
}
.chem-memory-map .chem-structure-panels {
  grid-template-columns: 1fr;
}
.chem-memory-map .chem-structure-panels svg {
  max-height: none;
}
.chem-memory-map .chem-exam-figure > .chem-diagram-scroll {
  overflow-x: auto;
}
.chem-memory-topic > .chem-memory-map {
  margin: 16px;
}
@container (max-width: 620px) {
  .memory-map-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .chem-memory-map,
  .chem-notes section.chem-memory-map {
    padding: 18px 14px;
  }
  .memory-map-panels {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .memory-map-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .memory-map-heading {
    gap: 10px;
  }
  .chem-memory-topic > .chem-memory-map {
    margin: 12px 6px;
  }
}
@media print {
  .chem-memory-map,
  .chem-notes section.chem-memory-map {
    border: 1px solid #9bb5c5;
    border-top: 4px solid #285e92;
    padding: 5mm;
    font-size: 10pt;
    line-height: 1.4;
    color: #132b3a;
    border-radius: 0;
    container-type: normal;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .memory-map-panels {
    display: block;
    padding-top: 4mm;
    columns: 2;
    column-gap: 6mm;
  }
  .memory-map-panel {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 5mm;
  }
  .memory-map-panel > h3 {
    font-size: 11pt;
    margin-bottom: 3mm;
  }
  .memory-map-heading h2 {
    font-size: 16pt;
  }
  .memory-map-heading {
    padding-bottom: 4mm;
  }
  .memory-map-number {
    width: 10mm;
    height: 10mm;
  }
  .memory-formula {
    font-size: 10.5pt;
    padding: 3mm;
  }
  .memory-detail,
  .memory-trap,
  .memory-table-wrap table,
  .memory-drawing > figcaption,
  .memory-map-kicker,
  .memory-map-footer,
  .memory-conversion {
    font-size: 9.5pt !important;
  }
  .memory-relation {
    padding: 2mm 0;
  }
  .memory-table-wrap {
    overflow: visible;
  }
  .memory-table-wrap table {
    min-width: 0;
  }
  .memory-table-wrap th,
  .memory-table-wrap td {
    padding: 2mm 1.5mm;
  }
  .memory-energy-pair svg {
    max-height: 35mm;
  }
  .chem-memory-map .chem-exam-figure svg {
    min-width: 0 !important;
    max-height: 48mm;
  }
  .chem-memory-map .chem-exam-figure {
    break-inside: avoid;
  }
  .chem-memory-map + section {
    break-before: page;
  }
}
.chem-page {
  background: #f5f8fa;
  color: #163547;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.75;
}
.chem-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5%;
  border-bottom: 1px solid #d8e4e9;
  gap: 18px;
  background: white;
}
.chem-topbar a {
  font-weight: 750;
  color: #176d86;
}
.chem-topbar > span:last-child {
  font-size: 14px;
  color: #4c6d7a;
}
.chem-shell {
  max-width: 1240px;
  margin: auto;
  padding: 36px 26px 80px;
}
.chem-heading {
  margin-bottom: 32px;
}
.chem-heading h1 {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 14px 0;
}
.chem-heading > p {
  max-width: 780px;
  color: #557280;
}
.subject-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.subject-nav a {
  padding: 11px 18px;
  border: 1px solid #bfced7;
  border-radius: 12px;
  background: white;
  font-weight: 700;
  color: #176c82;
}
.subject-nav a[aria-current] {
  background: #174865;
  color: white;
  border-color: #174865;
}
.chem-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 28px;
}
.chem-rail {
  align-self: start;
  position: sticky;
  top: 20px;
  border: 1px solid #d3e1e7;
  border-radius: 18px;
  background: white;
  padding: 22px;
}
.chem-rail > progress {
  width: 100%;
  accent-color: #197d96;
}
.chem-rail p {
  font-size: 14px;
  color: #607985;
}
.chem-rail button {
  display: flex;
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 13px 9px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  margin: 7px 0;
  background: transparent;
  line-height: 1.5;
  font-size: 15px;
  color: #254c60;
}
.chem-rail button > span:first-child {
  font-weight: 800;
  color: #167e8f;
}
.chem-rail button small {
  display: block;
  font-size: 13px;
  margin-top: 4px;
  color: #5d7785;
}
.chem-rail .selected {
  background: #e8f4f7;
}
.chem-main {
  min-width: 0;
}
.chem-card {
  border: 1px solid #cedfe6;
  border-radius: 22px;
  background: white;
  padding: 30px;
  margin: 18px 0;
  box-shadow: 0 3px 14px #103c5410;
}
.chem-card h2 {
  font-size: 28px;
  line-height: 1.45;
  white-space: pre-line;
  margin: 12px 0 22px;
}
.chem-card h3 {
  font-size: 23px;
  margin: 30px 0 15px;
}
.chem-card > p {
  margin: 17px 0;
}
.chem-goal {
  font-size: 18px;
  color: #27708a;
}
.chem-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.chem-terms > div {
  background: #f1f7fa;
  padding: 16px;
  border-radius: 12px;
}
.chem-terms dt {
  font-weight: 800;
  color: #1c5873;
}
.chem-terms dd {
  margin: 6px 0 0;
}
.chem-stage-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chem-stage-nav button {
  padding: 11px 14px;
  border: 1px solid #bed4de;
  border-radius: 10px;
  background: white;
  font-size: 14px;
}
.chem-stage-nav button.selected {
  background: #174865;
  color: white;
}
.chem-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 20px 0;
}
.chem-steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 20px 60px;
  margin: 15px 0;
  background: #f4f8fa;
  border: 1px solid #deeaef;
  border-radius: 16px;
}
.chem-steps li:before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 23px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #1c788a;
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 25px;
}
.chem-steps p {
  margin: 9px 0;
  white-space: pre-line;
}
.chem-equation {
  font-size: 19px;
  font-weight: 650;
  color: #154a60;
  background: #e8f1f6;
  padding: 12px;
  border-radius: 9px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.chem-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.chem-actions button,
.chem-primary,
.chem-notes nav button {
  padding: 13px 18px;
  border: 1px solid #a8c4d1;
  border-radius: 12px;
  background: white;
  color: #175b74;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.chem-actions .chem-primary,
.chem-primary {
  background: #185b79;
  color: white;
  border-color: #185b79;
}
.chem-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}
.chem-input {
  display: grid;
  gap: 12px;
  font-weight: 700;
  margin: 22px 0;
}
.chem-input input,
.chem-input textarea {
  width: 100%;
  border: 2px solid #a9c4d1;
  border-radius: 12px;
  padding: 15px;
  font-size: 18px;
  line-height: 1.6;
  background: #fff;
  font-weight: 400;
}
.chem-choices {
  border: 0;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}
.chem-choices legend {
  font-weight: 700;
  margin: 10px 0;
}
.chem-choices label {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #cadde6;
  border-radius: 14px;
  background: #fbfdfe;
  cursor: pointer;
}
.chem-choices input {
  margin-top: 8px;
  accent-color: #1c7c91;
}
.chem-feedback {
  background: #edf6f7;
  border-left: 4px solid #398392;
  padding: 15px 18px;
}
.chem-help {
  border-top: 2px solid #cce2e8;
  margin-top: 24px;
  padding-top: 15px;
}
.chem-final {
  background: #e3f1ec;
  padding: 18px;
  border-radius: 12px;
  color: #165545;
  white-space: pre-line;
}
.chem-recap summary {
  font-weight: 750;
  color: #1b6b82;
  cursor: pointer;
}
.chem-visual {
  margin: 28px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #d5e4eb;
  border-radius: 16px;
}
.chem-visual svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  font-family: inherit;
  overflow: visible;
}
.chem-visual figcaption {
  color: #456d80;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 14px;
}
.chem-small {
  font-size: 14px;
  line-height: 1.8;
  color: #5b7684;
}
.chem-home-memory {
  padding: 25px 30px;
  border-radius: 20px;
  background: #e9f3f8;
  margin: 30px 0;
}
.chem-home-memory h2 {
  font-size: 25px;
}
.chem-home-memory ul {
  padding-left: 20px;
}
.chem-home-memory li {
  margin: 8px 0;
}
.chem-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.chem-topic-grid > a {
  background: white;
  border: 1px solid #cfdee6;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.chem-topic-grid > a:hover {
  border-color: #17869a;
}
.chem-topic-grid h2 {
  font-size: 25px;
  line-height: 1.25;
  margin: 4px 0;
}
.chem-topic-grid p {
  font-size: 15px;
  line-height: 1.75;
  color: #557280;
  flex: 1;
}
.chem-topic-grid progress {
  width: 100%;
  accent-color: #218797;
}
.chem-topic-grid div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
.chem-topic-grid small {
  font-size: 13px;
  color: #5a7582;
}
.chem-topic-grid strong {
  color: #16728b;
}
.chem-daily {
  max-width: 950px;
}
.chem-notes {
  max-width: 960px;
  margin: auto;
  padding: 35px 28px;
  font-size: 17px;
  line-height: 1.8;
  color: #1b3c4c;
}
.chem-notes nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.chem-notes section {
  margin: 30px 0;
  border-top: 1px solid #d4e1e7;
  padding-top: 22px;
}
.chem-notes dt {
  font-weight: 750;
}
.chem-notes dd {
  margin: 4px 0 15px;
}
.chem-notes h1 {
  font-size: 36px;
  line-height: 1.25;
}
.study-guide-panel {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid #cadddf;
  border-radius: 18px;
  background: white;
  font-size: 16px;
  line-height: 1.85;
}
.study-guide-panel summary {
  font-weight: 800;
  color: #156d79;
  cursor: pointer;
}
.study-guide-panel ol {
  padding-left: 26px;
}
.study-guide-panel li {
  margin: 20px 0;
}
.study-guide-panel p {
  margin: 10px 0;
}
.study-guide-panel .study-why {
  background: #f0f6f5;
  padding: 13px;
  border-radius: 10px;
}
.study-free-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.study-free-nav button {
  padding: 12px;
  border: 1px solid #b9ced0;
  border-radius: 10px;
  background: #f6fafb;
  color: #195c68;
  font-weight: 700;
}
.study-full-help {
  margin-top: 20px;
  border-top: 1px solid #d5e2e4;
}
.study-expression {
  font-size: 23px;
}
.chem-page button:focus-visible,
.subject-nav a:focus-visible,
.teacher-page button:focus-visible {
  outline: 3px solid #df9a25;
  outline-offset: 3px;
}
@media (max-width: 850px) {
  .chem-topic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chem-layout {
    grid-template-columns: 1fr;
  }
  .chem-rail {
    position: static;
  }
  .chem-rail button {
    display: inline-flex;
    width: calc(50% - 4px);
    vertical-align: top;
  }
  .chem-heading h1 {
    font-size: 38px;
  }
  .chem-topbar {
    flex-wrap: wrap;
    font-size: 14px;
  }
  .chem-shell {
    padding: 24px 17px 60px;
  }
}
@media (max-width: 540px) {
  .chem-topic-grid,
  .chem-terms {
    grid-template-columns: 1fr;
  }
  .chem-card {
    padding: 22px 18px;
  }
  .chem-card h2 {
    font-size: 24px;
  }
  .chem-rail button {
    width: 100%;
  }
  .chem-steps li {
    padding: 18px 15px 18px 48px;
  }
  .chem-steps li:before {
    left: 12px;
    top: 20px;
  }
  .chem-visual {
    padding: 10px;
  }
  .chem-stage-nav button {
    flex: 1;
  }
  .chem-topbar > span:last-child {
    width: 100%;
  }
  .chem-heading h1 {
    font-size: 34px;
  }
  .chem-home-memory {
    padding: 22px;
  }
  .study-guide-panel {
    padding: 18px;
  }
}
@media print {
  .chem-notes nav,
  .learning-presence-notice {
    display: none !important;
  }
  .chem-notes {
    padding: 0;
    font-size: 11pt;
    line-height: 1.5;
  }
  .chem-notes h1 {
    font-size: 24pt;
  }
  .chem-notes section {
    break-before: auto;
  }
  .chem-steps li,
  .chem-visual {
    break-inside: avoid;
  }
  .chem-notes h2,
  .chem-notes h3 {
    break-after: avoid;
  }
  .chem-visual svg {
    max-height: 300px;
  }
}

.chem-exam-figure {
  margin: 22px 0;
  border: 1px solid #c7d6e1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  break-inside: avoid;
}
.chem-exam-figure > figcaption {
  padding: 15px 18px;
  border-bottom: 1px solid #dfe7ed;
  background: #f1f6fb;
  color: #345368;
  font-size: 14px;
  line-height: 1.65;
}
.chem-diagram-scroll,
.chem-data-scroll {
  overflow-x: auto;
  max-width: 100%;
  padding: 12px;
}
.chem-diagram-scroll > svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 680px;
  min-width: 0;
  margin: auto;
}
.chem-exam-figure table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}
.chem-exam-figure th,
.chem-exam-figure td {
  padding: 11px 13px;
  border-bottom: 1px solid #dce6ed;
  vertical-align: top;
  min-width: 90px;
}
.chem-exam-figure th {
  background: #eef4f9;
  font-weight: 750;
  color: #274b69;
}
.chem-exam-figure tr:last-child td {
  border-bottom: 0;
}
.chem-data-values {
  margin: 0;
  padding: 12px 17px;
  border-top: 1px solid #dfe7ed;
  font-size: 14px;
}
.chem-data-values > summary {
  cursor: pointer;
  font-weight: 700;
  color: #315b7a;
  min-height: 32px;
}
.chem-particle-panels,
.chem-structure-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.chem-particle-panels > div,
.chem-structure-panels > div {
  flex: 1 1 250px;
  max-width: 360px;
  text-align: center;
  min-width: 0;
}
.chem-particle-panels svg,
.chem-structure-panels svg {
  display: block;
  width: 100%;
  height: auto;
}
.chem-particle-panels > div > strong,
.chem-structure-panels > div > strong {
  display: block;
  padding: 10px;
  color: #314f72;
  font-size: 16px;
}
.chem-particle-key {
  flex-basis: 100%;
  font-size: 14px;
  color: #435f74;
  padding: 0 10px;
}
.chem-notes > nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cad8e5;
  border-radius: 9px;
  background: #fff;
  color: #315777;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
@media (max-width: 600px) {
  .chem-exam-figure > figcaption {
    font-size: 14px;
    padding: 12px;
  }
  .chem-data-scroll {
    padding: 5px;
  }
  .chem-exam-figure th,
  .chem-exam-figure td {
    padding: 10px;
    font-size: 14px;
  }
  .chem-diagram-scroll {
    padding: 10px 4px;
  }
  .chem-exam-figure:has(.chem-diagram-scroll > svg):after {
    content: 'Swipe across the diagram if needed';
    display: block;
    padding: 8px 12px;
    background: #f3f7fa;
    color: #506b7c;
    font-size: 12px;
  }
}
@media print {
  .chem-diagram-scroll,
  .chem-data-scroll {
    overflow: visible;
  }
  .chem-diagram-scroll > svg {
    min-width: 0;
  }
  .chem-exam-figure {
    break-inside: avoid;
  }
}
