/* Same cream page as Learn Sanskrit and the personal home. No music chrome. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 1.25rem 1rem 3.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  background: #fdf6e9;
  color: #2c221a;
  font-size: 1.125rem;
  line-height: 1.6;
}
main {
  max-width: 48rem;
  margin: 0 auto;
  overflow-wrap: anywhere;
}
h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}
h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.08rem;
  line-height: 1.35;
}
h2 > span.deva {
  display: block;
  line-height: 1.55;
}
h2 > span.deva + em {
  display: block;
  margin-top: 0.45rem;
  line-height: 1.45;
}
p { margin: 0 0 0.9rem; }
a { color: #b5451d; font-weight: 600; }
a:hover, a:focus-visible { color: #8a3414; }
ol, ul { margin: 0 0 0.9rem; padding-left: 1.4rem; }
li { margin: 0.35rem 0; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}
table.wide { min-width: 42rem; }
th, td {
  border: 1px solid rgba(44, 34, 26, 0.18);
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  text-align: left;
}
th {
  background: #f3e6d0;
  font-weight: 650;
}
th { white-space: nowrap; }
.table-scroll:has(td:first-child > a:only-child) th:first-child,
.table-scroll td:first-child:has(> a:only-child),
table.label th:first-child,
table.label td:first-child {
  white-space: nowrap;
  width: 1%;
}
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%;
}
.deva {
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  font-family: "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  color: #5a4638;
}
h1 .deva,
h2 .deva,
h3 .deva {
  font-weight: 500;
  color: inherit;
}
h2[id], h3[id] { scroll-margin-top: 4.5rem; }

body { padding: 0; }
.shell { display: block; }
.bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.45rem 1rem;
  background: rgba(253, 246, 233, 0.96);
  border-bottom: 1px solid rgba(44, 34, 26, 0.12);
  font-size: 0.98rem;
}
.bar-home, .bar-books, .bar-book { text-decoration: none; white-space: nowrap; }
.bar-home, .bar-books { color: #6d5646; font-weight: 650; }
.bar-sep { color: rgba(44, 34, 26, 0.35); }
.bar-book {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2c221a;
  font-weight: 750;
}
.bar-menu { position: relative; flex: 0 0 auto; }
.bar-menu > summary {
  cursor: pointer;
  list-style: none;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(181, 69, 29, 0.35);
  border-radius: 999px;
  background: #fffaf3;
  color: #b5451d;
  font-weight: 700;
}
.bar-menu > summary::-webkit-details-marker { display: none; }
.bar-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(20rem, 86vw);
  max-height: min(70vh, 26rem);
  overflow: auto;
  padding: 0.3rem;
  background: #fffaf3;
  border: 1px solid rgba(44, 34, 26, 0.14);
  border-radius: 0.7rem;
  box-shadow: 0 14px 36px rgba(44, 34, 26, 0.12);
}
.bar-panel .bar-season {
  display: block;
  padding: 0.55rem 0.65rem 0.12rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a3414;
}
.bar-panel a {
  display: block;
  padding: 0.48rem 0.65rem;
  border-radius: 0.4rem;
  color: #2c221a;
  font-weight: 600;
  text-decoration: none;
}
.bar-panel a:hover, .bar-panel a:focus-visible { background: rgba(181, 69, 29, 0.08); }
.bar-panel a[aria-current="true"] { background: #ead9bf; color: #8a3414; }
.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; }
.step {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0.15rem 0 1.15rem;
  font-size: 0.98rem;
}
.step a { text-decoration: none; }
.step-next { margin-left: auto; }

@media (min-width: 880px) {
  .bar { padding: 0.5rem 1.4rem; }
  .bar-menu > summary { max-width: 18rem; }
  main {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.4rem 1.4rem 3.5rem;
  }
}
@media (max-width: 879px) {
  main { padding: 1rem 1rem 3rem; }
}
section.summary {
  margin: 0.2rem 0 1.25rem;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 3px solid rgba(181, 69, 29, 0.45);
}
section.summary h2 { margin-top: 0.7rem; }
section.summary > h2:first-of-type { margin-top: 0; }
main details.depth {
  margin: 1.35rem 0 1.1rem;
  border: 1px solid rgba(44, 34, 26, 0.18);
  border-top: 3px solid #b5451d;
  border-radius: 0.35rem;
  background: #fffaf3;
  overflow-wrap: anywhere;
}
main details.depth > summary {
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  list-style: none;
}
main details.depth > summary::-webkit-details-marker { display: none; }
main details.depth > summary::before { content: "▸ "; }
main details.depth[open] > summary::before { content: "▾ "; }
main details.depth > h2:first-of-type { margin-top: 0.35rem; }
main details.depth > :last-child { margin-bottom: 0.8rem; }
