/*!
 * Bootstrap  v5.3.7 (https://getbootstrap.com/)
 * Copyright 2011-2025 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */

.book-page-layout {
  display: flex;
  gap: 2rem;
}

@media (max-width: 991.98px) {
  .book-page-layout {
    flex-direction: column;
  }
}

.book-page-layout__content {
  flex: 1;
  min-width: 0;
}

.book-page-layout__sidebar {
  flex: 0 0 320px;
  max-width: 320px;
}

@media (max-width: 991.98px) {
  .book-page-layout__sidebar {
    flex: 1;
    max-width: 100%;
  }
}

.page-node-type-book-content .content-above .block-page-title-block {
  margin-top: 32px !important;
  margin-bottom: 16px !important;
  letter-spacing: var(--spacing-letter-default, 0);
  font-size: 50px;
  font-weight: 700;
  font-style: normal;
  line-height: 140%;
}

.node--book-content .book-date {
  margin-bottom: 40px;
  letter-spacing: var(--spacing-letter-default, 0);
  color: #051a17;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 140%;
}

.node--book-content .book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 1rem;
}

.node--book-content .book-body {
  max-width: none;
}

.node--book-content .book-body :is(h2, h3, h4) {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.node--book-content .book-actions__download .file-download {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 16px 40px;
  gap: 4px;
  letter-spacing: var(--spacing-letter-default, 0);
  color: #051a17;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 140%;
}

.node--book-content .book-actions__download .file-download::after {
  display: flex;
  width: 16px;
  height: 16px;
  content: "";
  transition: background 0.2s ease;
  background: url(../../images/download.svg) no-repeat center/contain;
}

.node--book-content .book-actions__download .file-download:hover::after,
.node--book-content .book-actions__download .file-download:focus::after {
  background-image: url(../../images/download-white.svg);
}

.book-actions__share .simple-social-share-block {
  margin-top: 0 !important;
}

.book-sidebar {
  max-width: 290px;
  margin-inline-start: auto;
}

@media (max-width: 991.98px) {
  .book-sidebar {
    max-width: 100%;
    margin-top: 40px;
    margin-inline-start: 0;
  }
}

.book-sidebar__title {
  letter-spacing: 0.36px;
  color: #242424;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  line-height: 145%;
}

.block-book-navigation .menu-tree {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: book-chapter;
  border-inline-start: 2px solid #dee2e6;
}

.block-book-navigation .menu-tree > li {
  position: relative;
  counter-increment: book-chapter;
}

.block-book-navigation .menu-tree > li > a {
  display: block;
  margin-inline-start: -2px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-inline-start: calc(15px + 1.2em);
  padding-inline-end: 0;
  transition-timing-function: ease;
  transition-duration: 0.2s;
  transition-property: color, border-color;
  text-decoration: none;
  text-indent: -1.2em;
  letter-spacing: var(--spacing-letter-default, 0);
  color: #051a17;
  border-inline-start: 2px solid transparent;
  font-family: var(--font-body, "Roboto Condensed", sans-serif);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 160%;
}

.block-book-navigation .menu-tree > li > a::before {
  content: counter(book-chapter) ".  ";
}

.block-book-navigation .menu-tree > li > a:hover,
.block-book-navigation .menu-tree > li > a:focus {
  color: #20ad96;
  border-inline-start-color: #20ad96;
}

.block-book-navigation .menu-tree > li > a.is-active {
  color: #20ad96;
  border-inline-start-color: #20ad96;
}

.block-book-navigation .menu-tree > li.book-intro-item {
  counter-increment: none;
}

.block-book-navigation .menu-tree > li.book-intro-item > a::before {
  content: none;
}
