/* Adapted from ag-fifthpendium-dndbeyond/styles/{variables,journal,tmc,table-of-contents}.css.
   Keep the authored light book palette in both site themes, as other readers do. */
.sourcebook-page.sourcebook--tmc-2024 {
  --tmc-green: #086018;
  --tmc-green-head: #2a6e2a;
  --tmc-green-soft: #d8e0d0;
  --tmc-green-faint: #eef3ea;
  --tmc-border-soft: #e2eae0;
  --tmc-border: #d8d8d8;
  --tmc-page: #fff;
  --tmc-font: Roboto, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --rh-sourcebook-accent: var(--tmc-green);
  --rh-sourcebook-accent-muted: var(--tmc-green-soft);
  --rh-sourcebook-heading-color: var(--tmc-green-head);
  --rh-sourcebook-heading-font: var(--tmc-font);
  --rh-sourcebook-heading-underline-color: var(--tmc-green);
  --rh-sourcebook-heading-underline-image: none;
  --rh-sourcebook-chapter-title-color: var(--tmc-green-head);
  --rh-sourcebook-chapter-title-underline-image: none;
  --rh-sourcebook-table-header-bg: var(--tmc-green-soft);
  --rh-sourcebook-table-odd-bg: var(--tmc-page);
  --rh-sourcebook-table-even-bg: var(--tmc-green-faint);
  --rh-sourcebook-table-hover-bg: #f4f6f5;
  --rh-sourcebook-table-border: var(--tmc-border);
  --rh-sourcebook-surface-bg: var(--tmc-page);
  --rh-sourcebook-text: #242527;
  --rh-sourcebook-text-muted: #676767;
  --rh-sourcebook-page-background-image: none;
  --rh-sourcebook-content-background-color: var(--tmc-page);
  --rh-sourcebook-nav-header-bg: var(--tmc-green-soft);
  --rh-sourcebook-nav-header-text: var(--rh-sourcebook-text);
  --rh-sourcebook-nav-active-bg: var(--tmc-green-faint);
  --rh-sourcebook-nav-hover-bg: var(--tmc-green-soft);
  --rh-sourcebook-nav-border: var(--tmc-border);
  --rh-sourcebook-nav-depth-0-bg: var(--tmc-page);
  --rh-sourcebook-nav-depth-1-bg: var(--tmc-page);
  --rh-sourcebook-nav-depth-2-bg: var(--tmc-green-faint);
  --rh-sourcebook-nav-depth-3-bg: var(--tmc-green-soft);
  --rh-sourcebook-toc-header-bg: var(--tmc-page);
  --rh-sourcebook-toc-header-text: var(--tmc-green-head);
}

.sourcebook--tmc-2024 .sourcebook-toc-panel {
  border-block-start: 3px solid var(--tmc-green);
}

.sourcebook--tmc-2024 .sourcebook-toc-header {
  border-block-end: 1px solid var(--tmc-green);
}

.sourcebook--tmc-2024 .sourcebook-toc-header h1 {
  text-transform: none;
}

.sourcebook--tmc-2024 .sourcebook-reader-main {
  border-block-start: 3px solid var(--tmc-green);
}

.sourcebook--tmc-2024 .sourcebook-reader-header {
  padding-block-start: 0.75rem;
}

.sourcebook--tmc-2024 .sourcebook-reader-header h1 {
  border-block-end-width: 1px;
  line-height: 1.2;
}

.sourcebook--tmc-2024 .sourcebook-reader-content {
  font-family: var(--tmc-font);
  line-height: 1.55;
}

.sourcebook--tmc-2024 .sourcebook-reader-content :is(h1, h2, h3, h4, h5) {
  font-weight: 700;
}

.sourcebook--tmc-2024 .sourcebook-reader-content .inline-h4 {
  color: var(--tmc-green-head);
}

.sourcebook--tmc-2024 .sourcebook-reader-content hr {
  border: 0;
  border-block-start: 1px solid var(--tmc-border-soft);
  margin-block: 1.2em;
}

/* Subclass taglines are a plain green small-caps line in the source book. */
.sourcebook--tmc-2024 .sourcebook-reader-content blockquote {
  margin: 0.25em 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tmc-green-head);
}

.sourcebook--tmc-2024 .sourcebook-reader-content blockquote p {
  color: inherit;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.02em;
}

.sourcebook--tmc-2024 .sourcebook-reader-content table {
  font-family: var(--tmc-font);
}

.sourcebook--tmc-2024 .sourcebook-reader-content table caption {
  color: var(--tmc-green-head);
  font-family: var(--tmc-font);
}

.sourcebook--tmc-2024 .sourcebook-reader-content table thead :is(th, td) {
  border-block-end-width: 1px;
}
