/* Religious Education uses the Mathematics reader as its visual and structural source of truth. */

.physics-body[data-religious-education-view="overview"],
.physics-body[data-religious-education-view="lesson"] {
  min-height: 100vh;
}

.physics-home-hero h1,
.lesson-title-row h1 {
  text-wrap: balance;
}

.geo-theme-card[hidden],
.geo-tree-lesson[hidden],
.geo-objective-stream[hidden] {
  display: none !important;
}

.geo-objective-stream {
  min-width: 0;
}

.geo-objective-loading {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.geo-objective-loading::before {
  content: '';
  width: 30px;
  height: 30px;
  border: 3px solid rgba(147, 197, 253, .18);
  border-top-color: #93c5fd;
  border-radius: 999px;
  animation: math-spin .8s linear infinite;
}

.geo-objective-error,
.geo-load-error,
.geo-fatal {
  padding: 22px;
  border: 1px solid rgba(251, 113, 133, .28);
  border-radius: 18px;
  background: rgba(251, 113, 133, .07);
  color: #fecdd3;
}

.geo-objective-error {
  display: grid;
  gap: 7px;
}

.geo-load-error,
.geo-fatal {
  max-width: 760px;
  margin: 120px auto 40px;
}

.geo-load-error h2,
.geo-fatal h1 {
  margin-top: 0;
  color: #fff;
}

.geo-load-error button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #93c5fd, #6ee7b7);
  color: #06101f;
  font-weight: 850;
  cursor: pointer;
}

.note-content .religious-education-note-content {
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.note-content .religious-education-note-content > :first-child,
.note-content .religious-education-solutions-body > :first-child,
.note-content .religious-education-mastery > :first-child {
  margin-top: 0;
}

.note-content details.religious-education-solutions {
  margin: 22px 0;
  border: 1px solid rgba(52, 211, 153, .28);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(52, 211, 153, .055);
}

.note-content details.religious-education-solutions > summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 900;
  color: #a7f3d0;
  background: rgba(52, 211, 153, .08);
  list-style: none;
}

.note-content details.religious-education-solutions > summary::-webkit-details-marker {
  display: none;
}

.note-content details.religious-education-solutions > .religious-education-solutions-body {
  padding: 4px 18px 18px;
}

.note-content .religious-education-mastery {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 18px;
  background: rgba(96, 165, 250, .055);
}

.note-content .task-list {
  list-style: none;
  padding-left: 0;
}

.note-content .task-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.note-content .task-list input {
  width: 18px;
  height: 18px;
  margin-top: .45em;
  accent-color: #60a5fa;
}

.note-content .table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  margin: 18px 0;
  border-radius: 14px;
}

.note-content .table-scroll table {
  min-width: 620px;
  margin: 0;
}

.note-content .math-display,
.note-content .katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.course-unit .unit-lessons a span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .note-content .table-scroll table {
    min-width: 540px;
  }
}
