/* Canonical reading base lives in /book-base.css (home/book-base.css). */
@import url("/book-base.css");

h2 > span.deva {
  display: block;
  line-height: 1.55;
}
h2 > span.deva + em {
  display: block;
  margin-top: 0.45rem;
  line-height: 1.45;
}
table.week {
  overflow-wrap: normal;
  min-width: 36rem;
}
table.week th {
  white-space: normal;
}
table.week th:first-child,
table.week td:first-child {
  white-space: nowrap;
  width: 1%;
}

body { padding: 0; }
.shell { display: block; }
.side {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f6ead4;
  border-bottom: 1px solid rgba(44, 34, 26, 0.16);
}
.books-toggle {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.books-toggle::-webkit-details-marker { display: none; }
.books-toggle::before {
  content: "▸ ";
}
.books[open] > .books-toggle::before { content: "▾ "; }
.side-inner {
  padding: 0.4rem 0.85rem 1rem;
  max-height: 70vh;
  overflow: auto;
}
.side-label {
  margin: 0.9rem 0 0.25rem;
  font-size: 0.95rem;
}
.side-inner > .side-label:first-child { margin-top: 0.15rem; }
.path { margin: 0.15rem 0 0.85rem; }
.path a { font-weight: 600; }
.side a {
  display: block;
  padding: 0.28rem 0.45rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  line-height: 1.35;
}
.side a:hover, .side a:focus-visible { background: rgba(181, 69, 29, 0.08); }
.side a[aria-current="page"], .side a[aria-current="true"] {
  background: #ead9bf;
}
.school { margin: 0.15rem 0 0.35rem; }
.school > a { margin-left: 0.85rem; }
.contents {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.contents li {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(44, 34, 26, 0.12);
}
.contents .chap { font-size: 1.08rem; }
.contents .count, .contents .blurb {
  display: block;
  font-weight: 450;
  margin-top: 0.2rem;
}
.contents .blurb { font-weight: 400; }
.school > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.28rem 0.2rem;
  font-weight: 700;
}
.school > summary::-webkit-details-marker { display: none; }
.school > summary::before {
  content: "▸ ";
  font-weight: 500;
}
.school[open] > summary::before { content: "▾ "; }
.school.nested { margin-left: 0.7rem; }
.where { font-size: 1rem; }
.where .sep { color: rgba(44, 34, 26, 0.45); padding: 0 0.2rem; }
/* Dark mode theme adaptations */
html[data-theme="dark"] .side {
  background: #241c16;
  border-bottom-color: rgba(243, 230, 212, 0.16);
}
html[data-theme="dark"] .side a:hover,
html[data-theme="dark"] .side a:focus-visible { background: rgba(224, 112, 64, 0.15); }
html[data-theme="dark"] .side a[aria-current="page"],
html[data-theme="dark"] .side a[aria-current="true"] { background: #3d2b20; }
html[data-theme="dark"] .contents li { border-bottom-color: rgba(243, 230, 212, 0.14); }
html[data-theme="dark"] .where .sep { color: rgba(243, 230, 212, 0.45); }
