p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}

/* ── Accent colors (white and sepia themes) ── */

h1 {
  color: #0F6E56 !important;
}

h2 {
  color: #0F6E56 !important;
}

h3 {
  color: #0F6E56 !important;
  font-style: italic !important;
}

a:hover {
  color: #0F6E56 !important;
}

.book .book-body a {
  color: #185FA5;
}

/* Sepia forces body links to inherit brown; restore link blue */
html .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal a {
  color: #185FA5;
}

/* ── Night theme accents (lighter, for the dark background) ── */

html .book.color-theme-2 .book-body h1,
html .book.color-theme-2 .book-body h2,
html .book.color-theme-2 .book-body h3 {
  color: #5DCAA5 !important;
}

html .book.color-theme-2 .book-body a:hover {
  color: #5DCAA5 !important;
}

html .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal a {
  color: #7ec8e3;
}

html .book.color-theme-2 .book-body p.caption {
  color: #9aa1b8;
}

/* ── Sepia sidebar: warm cream to match the body (gitbook's default is black) ── */

html .book.color-theme-1 .book-summary {
  background: #ece1bd;
  color: #54431f;
  border-right: 1px solid #d8cba0;
}

html .book.color-theme-1 .book-summary ul.summary li a,
html .book.color-theme-1 .book-summary ul.summary li span {
  color: #6b5734;
}

html .book.color-theme-1 .book-summary ul.summary li.done > a {
  color: #6b5734;
}

html .book.color-theme-1 .book-summary ul.summary li.active > a,
html .book.color-theme-1 .book-summary ul.summary li a:hover {
  color: #0F6E56;
}

html .book.color-theme-1 .book-summary ul.summary li.divider {
  background: #d8cba0;
}

html .book.color-theme-1 .book-summary #book-search-input input {
  color: #54431f;
}

/* Part/appendix headers in the sidebar: gitbook dims these to 0.3, too faint */
.book .book-summary ul.summary li.part span,
.book .book-summary ul.summary li.appendix span {
  opacity: 0.75;
}

/* ── Schedule table (white theme) ── */

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93em;
  margin-top: 0.5em;
}

.schedule-table table th {
  background-color: #333;
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.schedule-table table td {
  padding: 10px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.65;
}

.schedule-table table tr:nth-child(even) td {
  background-color: #f7f7f7;
}

.schedule-table table tr:hover td {
  background-color: #eef3ea;
}

.schedule-table u {
  text-decoration: none;
  font-weight: 700;
  color: #444;
}

/* Schedule table – sepia */

.book.color-theme-1 .schedule-table table th {
  background-color: #5b451d;
  color: #f6eed6;
}

.book.color-theme-1 .schedule-table table td {
  border-bottom-color: #ddd0a7;
}

.book.color-theme-1 .schedule-table table tr:nth-child(even) td {
  background-color: #ece1bd;
}

.book.color-theme-1 .schedule-table table tr:hover td {
  background-color: #e4e8cf;
}

.book.color-theme-1 .schedule-table u {
  color: #54431f;
}

/* Schedule table – night */

.book.color-theme-2 .schedule-table table th {
  background-color: #22242f;
  color: #e6e9f3;
}

.book.color-theme-2 .schedule-table table td {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.book.color-theme-2 .schedule-table table tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.05);
}

.book.color-theme-2 .schedule-table table tr:hover td {
  background-color: rgba(93, 202, 165, 0.15);
}

.book.color-theme-2 .schedule-table u {
  color: #c1c6d7;
}
