/* CHST Exam Study Guide pages. No external fonts, images, or scripts. */
.book-wrap {
  --max: 1080px;
}

.book-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.book-cover {
  width: min(100%, 20rem);
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.book-hero-text {
  flex: 1 1 18rem;
}

.book-hero-text h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.book-hero-text h2::before {
  display: none;
}

.book-subtitle {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.book-byline,
.book-edition {
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.book-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .book-layout--sidetoc {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    align-items: start;
  }

  .book-sidetoc {
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
  }
}

.book-sidetoc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.book-sidetoc h2 {
  margin: 0 0 0.6rem;
}

.book-sidetoc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-sidetoc li {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.book-sidetoc .toc-h3 {
  margin-left: 0.85rem;
  font-size: 0.85rem;
}

.book-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-toc > ol > li {
  margin: 0.85rem 0 0.4rem;
}

.book-toc .toc-part {
  font-weight: 700;
  color: var(--text);
}

.book-toc .toc-h2,
.book-toc .toc-h3 {
  margin: 0.25rem 0;
}

.book-toc .toc-h2 {
  padding-left: 0.9rem;
}

.book-toc .toc-h3 {
  padding-left: 1.8rem;
  font-size: 0.92rem;
}

.book-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1rem;
  padding: 0.7rem 0;
}

.book-pager a {
  font-weight: 650;
}

.book-notice,
.book-disclaimer {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.callout {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0.85rem 0;
  background: var(--bg-elevated);
}

.callout--key {
  border-left-color: var(--accent);
}

.callout--ca {
  border-left-color: #3d8fd6;
}

.example {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0.85rem 0;
  background: var(--bg-elevated);
}

.example-title {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.formula {
  font-family: var(--mono);
  font-size: 0.92rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.85rem 0;
  overflow-x: auto;
}

.scenario {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0 0.75rem;
}

.instruction {
  color: var(--text);
  margin: 0.65rem 0;
}

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

.book-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.book-table th,
.book-table td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.book-table th {
  background: #142b4c;
  color: #fff;
  font-weight: 650;
}

.book-table td {
  background: var(--bg-elevated);
}

.book-bullets {
  margin: 0.4rem 0 0.85rem;
  padding: 0 0 0 1.2rem;
}

.book-bullets li {
  margin: 0.25rem 0;
}

.question {
  border-top: 1px solid var(--border);
  padding: 1rem 0 0.6rem;
  margin: 0;
}

.question:target {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.q-stem {
  margin: 0 0 0.5rem;
}

.q-options {
  margin: 0 0 0.55rem;
  padding-left: 1.6rem;
}

.q-options li {
  margin: 0.2rem 0;
}

.q-cite {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}

.q-answer {
  margin: 0.35rem 0 0.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
}

.q-answer summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--accent);
  padding: 0.3rem 0;
}

.q-answer summary:hover,
.q-answer summary:focus-visible {
  text-decoration: underline;
}

.q-answer p {
  margin: 0.4rem 0 0.55rem;
}

.key-entry {
  margin: 0 0 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.key-entry:target {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.section-anchor {
  scroll-margin-top: 0.75rem;
}

.book-content h2.section-anchor,
.book-content h3.section-anchor,
.book-content h4.section-anchor {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.4rem 0 0.65rem;
}

.book-content h2.section-anchor {
  font-size: 1.4rem;
  color: var(--accent);
}

.book-content h2.section-anchor::before,
.book-content h3.section-anchor::before,
.book-content h4.section-anchor::before {
  display: none;
}

.book-content h4.section-anchor {
  font-size: 1.08rem;
}

.book-content .section p + p,
.book-body p + p {
  margin-top: 0.65rem;
}
