/* ==========================================================================
   Zahlensysteme – Offline-Kurs
   Stylesheet im Stil eines Moodle-Kurses (Theme "Boost").

   Aufbau:
     1. Variablen
     2. Grundlayout (Navbar, Kursindex, Inhaltsbereich)
     3. Kursindex (Sidebar)
     4. Seitenkopf, Breadcrumb, Buttons
     5. Kursstartseite (Abschnitte, Aktivitäten)
     6. Kapitelinhalte (Text, Bilder, Tabellen)
     7. Hinweiskästen, Aufgaben, Musterlösungen
     8. Merksätze, Beispiele, Schreibweise
     9. Aktivitätsnavigation, Footer
    10. Responsive & Druck
   Die interaktiven Werkzeuge haben ein eigenes Stylesheet (tools.css).
   ========================================================================== */

/* 1. Variablen ------------------------------------------------------------ */
:root {
  --primary: #0f6cbf;
  --primary-dark: #0c589c;
  --primary-light: #e7f1fa;
  --success: #357a32;
  --success-light: #d7e6d6;
  --warning: #b35c00;
  --warning-light: #fcefdc;
  --danger: #ca3120;
  --danger-light: #f4d6d2;
  --info: #087a8a;
  --info-light: #e1f2f4;
  --task: #e07a2e;
  --task-light: #fdf3eb;

  --text: #1d2125;
  --text-muted: #6a737b;
  --border: #dee2e6;
  --bg: #fff;
  --bg-light: #f8f9fa;
  --bg-hover: #f1f3f5;

  --icon-content: #399be2;
  --icon-assessment: #eb66a2;
  --icon-interface: #a378ff;

  --level-a: #357a32;
  --level-b: #0f6cbf;
  --level-c: #a33fbf;

  --navbar-height: 60px;
  --drawer-width: 285px;
  --content-max: 920px;
  --radius: .5rem;
  --shadow: 0 2px 4px rgba(0, 0, 0, .08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 2. Grundlayout ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--navbar-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(15, 108, 191, .5);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: .5rem 1rem;
  background: var(--primary);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: .5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.navbar-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.navbar-logo {
  width: 32px;
  height: 32px;
}

.navbar-nav {
  display: flex;
  gap: .25rem;
  margin: 0 0 0 1rem;
  padding: 0;
  list-style: none;
  align-self: stretch;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 .75rem;
  color: var(--text);
  border-bottom: 3px solid transparent;
}

.navbar-nav a:hover {
  text-decoration: none;
  background: var(--bg-hover);
}

.navbar-nav a[aria-current="page"] {
  border-bottom-color: var(--primary);
}

.navbar-progress {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--text-muted);
}

.progress {
  width: 120px;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--border);
}

.progress-bar {
  height: 100%;
  background: var(--success);
  transition: width .3s;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--bg-hover);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: currentColor;
}

/* Seitenlayout */
.page {
  padding-top: var(--navbar-height);
  transition: padding-left .25s;
}

body.drawer-open .page {
  padding-left: var(--drawer-width);
}

.page-content {
  max-width: calc(var(--content-max) + 4rem);
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

/* 3. Kursindex (Sidebar) -------------------------------------------------- */
.drawer {
  position: fixed;
  top: var(--navbar-height);
  bottom: 0;
  left: 0;
  z-index: 1020;
  width: var(--drawer-width);
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .25s, visibility .25s;
}

body.drawer-open .drawer {
  transform: none;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem .75rem .5rem 1rem;
}

.drawer-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 .5rem 1.5rem;
}

.courseindex-section {
  margin-bottom: .25rem;
}

.courseindex-section-title {
  display: flex;
  align-items: center;
  gap: .25rem;
  width: 100%;
  padding: .5rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.courseindex-section-title:hover {
  background: var(--bg-hover);
}

.courseindex-section-title .icon {
  transition: transform .2s;
}

.courseindex-section-title[aria-expanded="false"] .icon {
  transform: rotate(-90deg);
}

.courseindex-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.courseindex-list[hidden] {
  display: none;
}

.courseindex-item > a {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .375rem .5rem .375rem 1.75rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
}

.courseindex-item > a:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.courseindex-item.is-current > a {
  background: var(--primary-light);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}

.courseindex-item .nr {
  min-width: 1.5em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.courseindex-item .label {
  flex: 1;
}

.completion-dot {
  width: 1rem;
  height: 1rem;
  margin-top: .15rem;
  flex-shrink: 0;
  border: 2px solid #adb5bd;
  border-radius: 50%;
}

.is-complete .completion-dot {
  border-color: var(--success);
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5.3-5.3 1.1 1.1z'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.courseindex-toc {
  margin: .125rem 0 .5rem 3.75rem;
  padding: 0 0 0 .5rem;
  list-style: none;
  border-left: 1px solid var(--border);
  font-size: .8125rem;
}

.courseindex-toc a {
  display: block;
  padding: .2rem .5rem;
  color: var(--text-muted);
  border-radius: var(--radius);
}

.courseindex-toc a:hover {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

.courseindex-toc a.is-active {
  color: var(--primary);
  font-weight: 600;
}

.drawer-backdrop {
  display: none;
}

/* 4. Seitenkopf, Breadcrumb, Buttons -------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0 0 .75rem;
  padding: 0;
  list-style: none;
  font-size: .875rem;
}

.breadcrumb li + li::before {
  content: "/";
  padding-right: .25rem;
  color: var(--text-muted);
}

.breadcrumb [aria-current] {
  color: var(--text-muted);
}

.page-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-header .page-header-label {
  display: block;
  margin-bottom: .125rem;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--icon-content);
  color: #fff;
}

.activity-icon .icon {
  width: 24px;
  height: 24px;
}

.activity-icon.is-small {
  width: 36px;
  height: 36px;
}

.activity-icon.is-small .icon {
  width: 20px;
  height: 20px;
}

.activity-icon.type-training {
  background: var(--icon-assessment);
}

.activity-icon.type-reference,
.activity-icon.type-tool {
  background: var(--icon-interface);
}

.activity-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: .875rem;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-completion[aria-pressed="true"] {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.btn-sm {
  padding: .125rem .5rem;
  font-size: .8125rem;
}

/* 5. Kursstartseite ------------------------------------------------------- */
.course-header {
  margin-bottom: 1.5rem;
}

.course-header h1 {
  margin: 0 0 .25rem;
  font-size: 2rem;
}

.course-header p {
  margin: 0;
  color: var(--text-muted);
}

.course-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .5rem;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.course-section {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.course-section-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
}

.course-section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.course-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  cursor: pointer;
}

.course-section-toggle .icon {
  transition: transform .2s;
}

.course-section-toggle[aria-expanded="false"] .icon {
  transform: rotate(-90deg);
}

.course-section-summary {
  margin: 0;
  padding: 0 1rem 1rem 3.25rem;
}

.course-section-summary > :first-child {
  margin-top: 0;
}

.course-section-summary > :last-child {
  margin-bottom: 0;
}

.course-section-progress {
  margin-left: auto;
  font-size: .8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.activity-list {
  margin: 0;
  padding: 0 1rem 1rem;
  list-style: none;
}

.activity-list[hidden] {
  display: none;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border-top: 1px solid var(--border);
}

.activity-item:hover {
  background: var(--bg-light);
}

.activity-item-body {
  flex: 1;
  min-width: 0;
}

.activity-item-title {
  font-weight: 600;
}

.activity-item-desc {
  margin: .125rem 0 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.activity-badge {
  align-self: center;
  padding: .125rem .5rem;
  border-radius: 1rem;
  font-size: .75rem;
  white-space: nowrap;
  background: var(--bg-hover);
  color: var(--text-muted);
}

.is-complete .activity-badge {
  background: var(--success-light);
  color: var(--success);
}

/* 6. Kapitelinhalte ------------------------------------------------------- */
.chapter h2 {
  margin: 2.25rem 0 1rem;
  padding-bottom: .375rem;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--task);
}

.chapter h3 {
  margin: 1.75rem 0 .75rem;
  font-size: 1.15rem;
}

.chapter h4 {
  margin: 1.25rem 0 .5rem;
  font-size: 1rem;
}

.chapter img {
  max-width: 100%;
  height: auto;
}

.chapter figure {
  margin: 1.25rem 0;
}

.chapter figcaption {
  margin-top: .375rem;
  font-size: .8125rem;
  color: var(--text-muted);
}

.chapter figure img {
  border: 1px solid var(--border);
  border-radius: 4px;
}

.chapter .figure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.chapter .figure-row figure {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.chapter table {
  border-collapse: collapse;
  width: 100%;
  font-size: .875rem;
}

.chapter th,
.chapter td {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.chapter th {
  background: var(--bg-light);
}

.chapter code {
  padding: .1em .3em;
  border-radius: 3px;
  background: var(--bg-hover);
  font-family: var(--font-mono);
  font-size: .875em;
  color: #b8336a;
}

kbd {
  padding: .1em .4em;
  border: 1px solid #adb5bd;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--bg-light);
  font-family: var(--font-mono);
  font-size: .8125em;
}

.lead {
  font-size: 1.0625rem;
}

/* 7. Hinweiskästen, Aufgaben, Musterlösungen ------------------------------ */
.callout {
  margin: 1.25rem 0;
  padding: .75rem 1rem;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: var(--radius);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  margin: 0 0 .375rem;
  font-weight: 700;
}

.callout-goals {
  border-color: var(--primary);
  background: var(--primary-light);
}

.callout-goals .callout-title {
  color: var(--primary-dark);
}

.callout-note {
  border-color: var(--info);
  background: var(--info-light);
}

.callout-note .callout-title {
  color: var(--info);
}

.callout-warning {
  border-color: var(--danger);
  background: var(--danger-light);
}

.callout-warning .callout-title {
  color: var(--danger);
}

.callout-tip {
  border-color: var(--warning);
  background: var(--warning-light);
}

.callout-tip .callout-title {
  color: var(--warning);
}

.callout-check {
  border-color: var(--info);
  background: var(--bg-light);
}

.callout-check .callout-title {
  color: var(--info);
}

.task {
  position: relative;
  margin: 2rem 0 1.25rem;
  padding: 1.25rem 1rem .75rem;
  border: 1px solid var(--task);
  border-radius: var(--radius);
  background: var(--bg);
}

.task > h3 {
  position: absolute;
  top: 0;
  left: .75rem;
  transform: translateY(-50%);
  margin: 0;
  padding: .125rem .625rem;
  border-radius: .375rem;
  background: var(--task);
  color: #fff;
  font-size: .9375rem;
  line-height: 1.4;
}

.task > p:first-of-type {
  margin-top: 0;
}

.task > :last-child {
  margin-bottom: 0;
}

.solution {
  margin: .75rem 0 .25rem;
}

.solution > summary {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .625rem;
  border-radius: .375rem;
  background: var(--info);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.solution > summary::-webkit-details-marker {
  display: none;
}

.solution > summary::before {
  content: "\25B6";
  font-size: .7em;
  transition: transform .2s;
}

.solution[open] > summary::before {
  transform: rotate(90deg);
}

.solution > summary:hover {
  background: #066571;
}

.solution-body {
  margin-top: .5rem;
  padding: .75rem;
  border: 1px solid var(--info);
  border-radius: var(--radius);
  background: var(--bg-light);
}

.solution-body > :first-child {
  margin-top: 0;
}

.solution-body > :last-child {
  margin-bottom: 0;
}

.solution-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-left: auto;
}

/* 8. Merksätze, Beispiele, Schreibweise ----------------------------------- */
.callout-rule {
  border-color: var(--success);
  background: var(--success-light);
}

.callout-rule .callout-title {
  color: var(--success);
}

.callout-rule .copy-hint {
  margin: .5rem 0 0;
  font-size: .8125rem;
  font-style: italic;
  text-align: right;
  color: var(--text-muted);
}

.example {
  margin: 1.25rem 0;
  padding: .75rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.example > :last-child {
  margin-bottom: 0;
}

.example-title {
  margin: 0 0 .375rem;
  font-weight: 700;
}

.example-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 1.25rem;
}

.example-row > .example {
  margin: .5rem 0;
}

/* Stellenwerttafeln und Wertetabellen mit zentrierten Spalten */
.chapter table.values {
  width: auto;
  margin: 0 auto;
}

.chapter table.values th,
.chapter table.values td {
  min-width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chapter table.values td.color-cell {
  min-width: 2.5rem;
}

.formula {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.mono {
  font-family: var(--font-mono);
}

/* Teilaufgaben in mehreren Spalten, wie auf dem Arbeitsblatt */
.subtasks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .25rem 1.5rem;
  margin: .75rem 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.subtasks.is-wide {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.subtasks > li::before {
  content: attr(data-nr) ") ";
  font-weight: 600;
}

/* Niveaustufe A/B/C als Plakette an der Aufgabenüberschrift */
.task[data-level] > h3::after {
  content: attr(data-level);
  display: inline-block;
  margin-left: .5rem;
  padding: 0 .375rem;
  border-radius: .25rem;
  background: #fff;
  color: var(--level-a);
  font-size: .75rem;
  line-height: 1.5;
  vertical-align: .1em;
}

.task[data-level="B"] > h3::after {
  color: var(--level-b);
}

.task[data-level="C"] > h3::after {
  color: var(--level-c);
}

.level-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.level-legend .level {
  display: inline-block;
  min-width: 1.5rem;
  margin-right: .375rem;
  border-radius: .25rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.level-a { background: var(--level-a); }
.level-b { background: var(--level-b); }
.level-c { background: var(--level-c); }

.swatch {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: .25em;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 3px;
  vertical-align: -.125em;
}

/* 9. Aktivitätsnavigation, Footer ----------------------------------------- */
.activity-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.activity-nav .prev {
  justify-self: start;
}

.activity-nav .next {
  justify-self: end;
  text-align: right;
}

.activity-nav select {
  max-width: 260px;
  padding: .375rem .5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .875rem;
  background: var(--bg);
}

.completion-bar {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.site-footer {
  padding: 1.5rem 2rem;
  background: #343a40;
  color: #dee2e6;
  font-size: .8125rem;
}

.site-footer p {
  max-width: calc(var(--content-max) + 4rem);
  margin: 0 auto;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.noscript-warning {
  margin: 2rem;
  padding: 1rem;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-light);
}

/* 10. Responsive & Druck --------------------------------------------------- */
@media (max-width: 991.98px) {
  body.drawer-open .page {
    padding-left: 0;
  }

  .drawer {
    box-shadow: 0 0 1rem rgba(0, 0, 0, .2);
  }

  body.drawer-open .drawer-backdrop {
    display: block;
    position: fixed;
    inset: var(--navbar-height) 0 0 0;
    z-index: 1010;
    background: rgba(0, 0, 0, .35);
  }

  .navbar-nav,
  .navbar-progress .progress {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .page-content {
    padding: 1rem 1rem 2rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .activity-nav {
    grid-template-columns: 1fr 1fr;
  }

  .activity-nav .jump {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .course-section-summary {
    padding-left: 1rem;
  }
}

@media print {
  .navbar,
  .drawer,
  .drawer-backdrop,
  .activity-nav,
  .completion-bar,
  .back-to-top,
  .solution-toolbar,
  .btn-completion,
  .site-footer {
    display: none !important;
  }

  body.drawer-open .page,
  .page {
    padding: 0;
  }

  .solution:not([open]) {
    display: none;
  }

  .task,
  .callout,
  .example,
  .tool {
    break-inside: avoid;
  }
}
