/* width */
::-webkit-scrollbar {
  width: 10px;
}

pb-page > header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* logo and title */

.header {
  display: flex;
}

header .logo {
  min-width: var(--pb-logo-image-width);
  min-height: var(--pb-logo-image-height);
  display: block;
  flex-grow: 0;
  margin-block: 16px;
  margin-left: 16px;
  margin-right: 0;
}

.header-title {
  flex-grow: 1;
  margin: 13px 12px;
}

.header-title .structure-link {
  clear: both;
  float: left;
}

#hw,
#gw {
  font: normal normal normal 1em/1.3 var(--pb-serif-font-family);
  letter-spacing: 0.24px;
}

.werke {
  font: normal normal normal 1em/1.8 var(--pb-serif-font-family);
  margin-left: 0;
  margin-right: 0;
  display: inline-block;
}

#schriften {
  font: normal normal normal 0.9em/1.25 var(--pb-serif-font-family); /* update font things */
  letter-spacing: 1.43px;
  text-transform: uppercase;
  margin-left: 0;
}

.structure-link {
  text-decoration: none;
}

.edition-link {
  text-decoration: none;
  margin-right: 16px;
  margin-top: 12px;
}

.edition-link:after {
  content: "↗︎";
}

/*navbar*/

.toolbar {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 26px;
  gap: 6px;
}

nav,
menu {
  margin: 0;
  padding-left: 0;
  display: flex;
}

nav {
  max-width: 424px;
  width: 100%;
}

.hamburger {
  display: none;
}

menu {
  max-width: 494px;
  width: 100%;
}

/* toolbar things */

nav > ul,
menu > ul {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: inherit;
  gap: 6px;
}

nav .toolbar-item,
menu .toolbar-item {
  width: 100%;
  flex: 1;
}

.nav-head-button,
.menu-head-button {
  display: block;
  padding: 3.5px;
  font: normal normal normal 0.94em/1.25 var(--pb-base-font-family);
  text-align: center;
  height: 19px;
}

#page-list {
  font-family: var(--pb-base-font-family);
}

/* toolbar buttons */

.btn-pages,
.btn-zoom {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.btn-zoom {
  flex-grow: 1;
  vertical-align: middle;
  display: table-cell;
  transform: translate(-4px, -11px);
  width: 20px;
}

i.material-icons {
  padding: 4px;
  font-size: 16px;
  vertical-align: middle;
  cursor: pointer;
}

/* dropdown */

.dropdown-content {
  display: none;
  position: absolute;
  width: 400px;
  max-height: calc(100vh - 55vh);
  overflow-y: auto;
  box-shadow: 0px 3px 6px #00000029;
  z-index: 1;
  padding: 20px;
  font: normal normal 300 0.94em/1.6 var(--pb-base-font-family);
  text-align: left;
}

nav .toolbar-item:last-child > .dropdown-content {
  width: 260px;
}

menu .toolbar-item:nth-child(2) > .dropdown-content {
  width: 350px;
}

form > p,
pb-toggle-feature {
  text-transform: uppercase;
  line-height: 2;
  letter-spacing: 0.82px;
  padding: 0;
  margin: 5px 0;
}

menu .toolbar-item:nth-child(3) > .dropdown-content {
  width: 21.5vw;
}

menu .toolbar-item:nth-child(3) > .dropdown-content pb-view {
  margin: 0;
}

.dropdown:hover > .dropdown-content,
.dropdown:focus-within > .dropdown-content,
.dropdown > .dropdown-content:hover,
.dropdown > .dropdown-content:focus {
  display: block;
  visibility: visible;
}

.dropdown:hover,
.dropdown:focus-within {
  cursor: pointer;
}

.dropdown-content > ul {
  list-style-type: none;
  padding: 0;
}

.dropdown-content > ul ul {
  list-style-type: none;
}

#title-in-toc {
  font: normal normal 300 0.94em/1.6 var(--pb-base-font-family);
}

.other-toc-indent {
  margin-left: 28px;
  display: block;
}

.collapse-toc-indent,
.other-toc-indent {
  padding: 4px 8px;
  display: block;
}

.toc-other-part-title {
  padding-bottom: 8px;
}

/* table of content */

.toc a {
  font-family: var(--pb-base-font-family);
  text-decoration: none;
}

#toc2 {
  text-transform: none;
  line-height: normal;
}

/* burger dropdown */

.pages-responsive {
  display: none;
}
.burger-dropdown {
  display: none;
}

.burger-dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  box-shadow: 0px 3px 6px #00000029;
  z-index: 1;
  font: normal normal 300 0.94em/1.6 var(--pb-base-font-family);
  text-align: left;
  width: 100%;
  height: fit-content;
}

.burger-dropdown:hover > .burger-dropdown-content,
.burger-dropdown:focus-within > .burger-dropdown-content,
.burger-dropdown > .burger-dropdown-content:hover,
.burger-dropdown > .burger-dropdown-content:focus {
  display: block;
  visibility: visible;
}

.burger-dropdown:hover,
.burger-dropdown:focus-within {
  cursor: pointer;
}

.burger-dropdown-content > ul {
  list-style-type: none;
  padding: 0% 15%;
  text-transform: uppercase;
  /*min-height: 20vh;*/
  /*max-height: 50vh; */
  overflow: auto;
  font-size: 0.94rem;
}

.burger-dropdown-content > ul ul {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
}

.burger-dropdown-content ul li a {
  display: flex;
  padding-top: 2%;
  padding-bottom: 2%;
}

#toc2 ul {
  flex-direction: column;
}

#toc2 a {
  display: unset;
  font-size: 0.85em;
}

.burger-dropdown-content > ul::-webkit-scrollbar {
  display: none;
}

.arrow-link-white {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white"><path d="M7.293 4.707 14.586 12l-7.293 7.293 1.414 1.414L17.414 12 8.707 3.293 7.293 4.707z"/></svg>');
  background-position: right;
  width: 1.2em;

  background-repeat: no-repeat;
  background-size: contain;
  margin-left: auto;
  margin-top: 0;
}

.skip-link {
  height: 30px;
  left: 50%;
  padding: 8px;
  box-shadow: 0px 3px 6px #00000029;
  position: absolute;
  transform: translateY(-1000px);
  transition: transform 0.3s;
}

.skip-link:focus {
  transform: translateY(0%);
}
