/* The handbook uses the grade picker and classroom's existing blue, paper and ink. */
.curriculum-book {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f8ff;
  color: var(--text);
}
.curriculum-book details { min-width: 0; }
.curriculum-book summary {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 0 8px;
  min-height: 44px;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--game-blue, #174789);
  list-style: none;
  overflow-wrap: anywhere;
}
.curriculum-book summary::-webkit-details-marker { display: none; }
.curriculum-book summary::before { content: "›"; align-self: center; font-size: 1.33rem; line-height: 1; }
.curriculum-book details[open] > summary::before, .curriculum-book[open] > summary::before { transform: rotate(90deg); }
.curriculum-book summary small { grid-column: 2; color: #465674; line-height: 1.35; }
.curriculum-book summary[aria-current] { background: #e8f0ff; border-radius: 8px; }
.curriculum-book :is(summary,button,select,a):focus-visible { outline: 3px solid #2364ba; outline-offset: 1px; }
.curriculum-book-body { display: grid; gap: 7px; padding: 0 9px 9px; }
.curriculum-toolbar, .curriculum-lesson-header, .curriculum-options { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.curriculum-toolbar { justify-content: space-between; padding: 3px; font-size: .81rem; }
.curriculum-toolbar a, .curriculum-section a { color: #194e99; text-underline-offset: 3px; }
.curriculum-toolbar select {
  min-height: 44px;
  border: 1px solid #b7cbea;
  border-radius: 8px;
  background: white;
  color: #1d2b4f;
  font: inherit;
  padding: 4px 7px;
}
.curriculum-term { border-radius: 10px; background: white; border: 1px solid #d7e3f6; }
.curriculum-chapter { margin: 0 6px 5px; padding-bottom: 2px; border-radius: 9px; border: 1px solid #e2e9f6; }
.curriculum-chapter-body, .curriculum-lesson-body { display: grid; gap: 5px; padding: 0 7px 7px; }
.curriculum-objectives, .curriculum-lesson, .curriculum-section, .curriculum-step, .curriculum-memo {
  border: 1px solid #d9e4f5;
  border-radius: 8px;
  background: #f9fbff;
}
.curriculum-objectives ul, .curriculum-windows { margin: 0 11px 8px; padding-left: 1.15em; font-size: .88rem; }
.curriculum-windows { color: #465674; }
.curriculum-section > :not(summary), .curriculum-step > :not(summary), .curriculum-memo > :not(summary) { margin: 0 7px 7px; }
.curriculum-lesson-header { justify-content: space-between; }
.curriculum-lesson-header p, .curriculum-notice { margin: 0; color: #465674; font-size: .89rem; }
.curriculum-section a { display: inline-block; }
.curriculum-working { padding-inline-start: 1.28em; }
.curriculum-working li { padding: 5px 0; }
.curriculum-working p, .curriculum-feedback { margin: 0 0 3px; }
.curriculum-explanation { color: #465674; font-size: .88rem; }
.curriculum-answer { font-weight: 700; }
.curriculum-figure { max-width: 100%; overflow-x: auto; }
.curriculum-figure > svg:not(.tally-mark) { max-width: 100%; max-height: 250px; height: auto; }
.curriculum-figure svg.tally-mark, .curriculum-options svg.tally-mark {
  display: inline-block;
  width: 1.15em;
  height: 1em;
  vertical-align: -.1em;
}
.curriculum-options button[aria-pressed="true"] { border-color: #4c79be; background: #e8f0ff; }
.curriculum-feedback[data-result="correct"] { color: #0c7447; }
.curriculum-question h4 { margin: 0 0 6px; }
.curriculum-book button { min-height: 44px; }
.curriculum-book .katex { white-space: normal; }
body:has(#askFab) .app { padding-bottom: max(92px, env(safe-area-inset-bottom) + 82px); }

.curriculum-working li.curriculum-speaking {
  background: #e8f0ff;
  outline: 2px solid #4c79be;
  border-radius: 4px;
}
.curriculum-audio-status { margin: 4px 0; color: #465674; font-size: .86rem; }
.curriculum-audio-status:empty { display: none; }
