/* Three native TOC groups.  Only the existing contents sheet is affected. */
#book .catalogue-toc {
  --toc-panel-height: 34cqw;
  --toc-rule: #4e534033;
}
#book .catalogue-toc .ref-contents-main {
  top: 9.1%;
  bottom: 8.1%;
  width: 46.67%;
  display: flex;
  flex-direction: column;
}
#book .catalogue-toc .ref-contents-main h2 {
  flex: none;
  margin: 0 0 3cqw;
}
#book .catalogue-toc-nav {
  display: block;
  flex: none;
  min-height: 0;
}
#book .catalogue-toc-group {
  margin: 0;
  border-bottom: .06cqw solid var(--toc-rule);
}
#book .catalogue-toc-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5cqw;
  min-height: 6.2cqw;
  padding: .6cqw .1cqw;
  list-style: none;
  cursor: pointer;
  font: 400 2.25cqw/1.35 Jardin, sans-serif;
  color: #1D1A15;
}
#book .catalogue-toc-group summary::-webkit-details-marker { display: none; }
#book .catalogue-toc-group summary::marker { content: ""; }
#book .catalogue-toc-chevron {
  flex: none;
  width: .8cqw;
  height: .8cqw;
  margin-inline: .5cqw;
  border-inline-end: .1cqw solid #4E5340;
  border-bottom: .1cqw solid #4E5340;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}
#book .catalogue-toc-group[open] .catalogue-toc-chevron { transform: rotate(225deg); }
#book .catalogue-toc-group[open] summary { color: #4E5340; }
#book .catalogue-toc-panel {
  max-height: var(--toc-panel-height);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: #4e534055 transparent;
  padding: .3cqw .2cqw 1.2cqw 1cqw;
  margin: 0 0 1cqw;
}
#book .catalogue-toc-panel::-webkit-scrollbar { width: 3px; }
#book .catalogue-toc-panel::-webkit-scrollbar-thumb { background: #4e534055; border-radius: 3px; }
#book .catalogue-toc-list { list-style: none; padding: 0; margin: 0; }
#book .catalogue-toc-list li { margin: 0; padding: 0; }
#book .catalogue-toc-variants {
  list-style: none;
  margin: 0 1.3cqw .6cqw 0;
  padding: 0 1.1cqw 0 0;
  border-inline-start: .06cqw solid var(--toc-rule);
}
#book .catalogue-toc .catalogue-toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6cqw;
  min-height: 3.8cqw;
  padding: .35cqw .25cqw;
  color: #1D1A15;
  text-decoration: none;
  font: 400 1.8cqw/1.45 Sefira, sans-serif;
  border: 0;
  height: auto;
}
#book .catalogue-toc-label { min-width: 0; }
#book .catalogue-toc-label[lang="en"] { letter-spacing: .04em; }
#book .catalogue-toc .catalogue-toc-pages {
  flex: none;
  color: #4E5340;
  font: 400 1.6cqw/1.4 Sefira, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#book .catalogue-toc .catalogue-toc-overview {
  margin-bottom: .6cqw;
  color: #4E5340;
  border-bottom: .06cqw solid var(--toc-rule);
}
#book .catalogue-toc .catalogue-toc-variant {
  min-height: 3.2cqw;
  font-size: 1.5cqw;
  color: #4E5340;
}
#book .catalogue-toc .catalogue-toc-outdoor {
  flex: none;
  min-height: 5cqw;
  margin-top: 2cqw;
  font-size: 1.7cqw;
}
#book .catalogue-toc .catalogue-toc-note {
  margin: 1cqw 0 0;
  font-size: 1.15cqw;
  color: #4E5340;
}
#book .catalogue-toc summary:focus-visible,
#book .catalogue-toc a:focus-visible,
#book .catalogue-toc-panel:focus-visible {
  outline: 1.5px solid #4E5340;
  outline-offset: -1.5px;
  border-radius: 2px;
}
@media (hover: hover) {
  #book .catalogue-toc summary:hover { color: #4E5340; }
  #book .catalogue-toc .catalogue-toc-link:hover { color: #4E5340; text-decoration: underline; text-underline-offset: .2em; }
}
@media (max-width: 600px) {
  #book .catalogue-toc {
    --toc-panel-height: max(48px, calc(77cqw - 200px));
  }
  #book .catalogue-toc .ref-contents-window { width: 31.5%; }
  #book .catalogue-toc .ref-contents-main {
    top: 10.2%;
    right: 3.5%;
    width: 60%;
    bottom: 8%;
  }
  #book .catalogue-toc .ref-contents-main h2 {
    font-size: clamp(20px, 4.5cqw, 28px);
    line-height: 1.25;
    margin-bottom: 2.5cqw;
  }
  #book .catalogue-toc-group summary {
    min-height: 34px;
    padding-block: 4px;
    font-size: clamp(13px, 2.25cqw, 16px);
  }
  #book .catalogue-toc-chevron {
    width: 5px;
    height: 5px;
    border-width: 1px;
    margin-inline: 3px;
  }
  #book .catalogue-toc .catalogue-toc-link {
    min-height: 29px;
    padding-block: 3px;
    font-size: clamp(11px, 1.8cqw, 13px);
    gap: 8px;
  }
  #book .catalogue-toc .catalogue-toc-pages { font-size: 10px; }
  #book .catalogue-toc .catalogue-toc-variant { min-height: 26px; font-size: 10px; }
  #book .catalogue-toc .catalogue-toc-outdoor { min-height: 30px; margin-top: 1.5cqw; }
  #book .catalogue-toc .catalogue-toc-note { font-size: 9px; margin-top: .5cqw; }
}
@media (prefers-reduced-motion: reduce) {
  #book .catalogue-toc-chevron { transition: none; }
}
