/*
Theme Name: HiveDocs
Template: hivesite
Author: HivePress
Author URI: https://hivepress.io
Version: 1.0.1
Text Domain: hivedocs
*/
/*--------------------------------------------------------------
Layout
--------------------------------------------------------------*/
.document__content [id] {
  scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-height, 4.5rem) + 2rem);
}
.site-container {
  overflow: visible;
  overflow-x: clip;
}
.site-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  background-color: #fff;
}
@media screen and (max-width: 600px) {
  .site-header {
    top: 0;
  }
}
.site-content:has(.document__content) {
  padding: 0;
}
.header-navbar__start {
  flex-shrink: 0;
}
@media only screen and (max-width: 47.99em) {
  .header-navbar__burger {
    margin-right: 1.5rem !important;
  }
}
@media only screen and (min-width: 48em) {
  .header-navbar__burger {
    display: none;
  }
}
.header-navbar__burger li.external::after {
  position: absolute;
  top: -0.125rem;
  right: 0;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 18px;
  content: '\f30c';
  color: rgba(7, 36, 86, 0.35);
  transform: rotate(45deg);
}
.header-navbar__end,
.header-navbar__actions {
  min-width: 0;
}
/*--------------------------------------------------------------
Widgets
--------------------------------------------------------------*/
.widget_search form::before {
  flex: 0 0 2.5rem;
  margin-right: -2.5rem;
  pointer-events: none;
}
@media only screen and (max-width: 47.99em) {
  .widget_search form::before {
    font-size: 24px;
  }
}
.widget_search form input[type=search] {
  font-size: 1rem;
  padding: 0.4375rem 1rem 0.4375rem 2.5rem;
}
.header-navbar .widget_search {
  width: 16rem;
  min-width: 0;
}
@media only screen and (max-width: 47.99em) {
  .header-navbar .widget_search {
    transition: width 0.25s;
  }
  .header-navbar .widget_search:not(:focus-within):not(:has(input:not(:placeholder-shown))) {
    width: 2.5rem;
  }
  .header-navbar .widget_search:not(:focus-within):not(:has(input:not(:placeholder-shown))) input[type=search] {
    padding-right: 0;
  }
  .header-navbar .widget_search:not(:focus-within):not(:has(input:not(:placeholder-shown))) input[type=search]::placeholder {
    color: transparent;
  }
}
@media only screen and (min-width: 75em) {
  .header-navbar .widget_search {
    width: calc(min(24.42rem, calc(50vw - 25.42rem)) - 3rem);
  }
}
/*--------------------------------------------------------------
Documents
--------------------------------------------------------------*/
.document--block:not(:last-child) {
  margin-bottom: 1.5rem;
}
.document__title {
  margin-top: 0;
}
.document--block .document__title {
  margin-bottom: 0.5rem;
}
.document--block .breadcrumbs {
  margin-bottom: 0.25rem;
}
.document__text {
  color: rgba(15, 23, 39, 0.45);
}
@media only screen and (min-width: 48em) {
  .document__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.document__content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media only screen and (max-width: 47.99em) {
  .document__content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
@media only screen and (min-width: 48em) and (max-width: 74.99em) {
  .document__content {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin-left: min(16rem, 30vw);
  }
}
@media only screen and (min-width: 75em) {
  .document__menu,
  .document__toc {
    position: fixed;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-height, 4.5rem));
    width: min(24.42rem, calc(50vw - 25.42rem));
    padding-top: 3rem;
  }
}
.document__menu .widget {
  padding: 0;
}
@media only screen and (max-width: 47.99em) {
  .document__menu {
    display: none;
  }
}
@media only screen and (min-width: 48em) {
  .document__menu {
    position: fixed;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-height, 4.5rem));
    bottom: 0;
    left: 0;
    width: min(16rem, 30vw);
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-right: 1rem;
    padding-left: 2rem;
    overflow-y: auto;
    border-right: 1px solid rgba(7, 36, 86, 0.075);
  }
}
@media only screen and (min-width: 75em) {
  .document__menu {
    width: min(24.42rem, calc(50vw - 25.42rem));
  }
}
.document__toc {
  display: none;
}
@media only screen and (min-width: 75em) {
  .document__toc {
    display: block;
    right: 0;
    padding-right: 2rem;
    padding-left: 1rem;
  }
  .document__toc > .content-box {
    max-height: calc(100vh - (var(--wp-admin--admin-bar--height, 0px) + var(--header-height, 4.5rem)) - 6rem);
    padding: 2rem;
    overflow-y: auto;
  }
}
.document__toc .post__links {
  display: block;
  margin-top: 0;
  font-size: 1rem;
}
.document__toc .post__links ol {
  margin-left: 0;
}
.document__toc .post__links ol ol {
  padding-left: 0.5rem;
  list-style: none;
}
.document__toc .post__links > ol {
  padding: 0 0 0 1rem;
  box-shadow: none;
}
.document__toc .post__links li {
  padding-left: 0;
}
.document__toc .post__links li::before {
  content: none;
}
.document__toc .post__links li:hover:has(li:hover) > a {
  color: rgba(15, 23, 39, 0.65);
}
/*--------------------------------------------------------------
Code
--------------------------------------------------------------*/
code,
pre code.cm-s-default {
  color: rgba(15, 23, 39, 0.85);
}
.code-block {
  position: relative;
}
.code-block:not(:first-child) {
  margin-top: 1.5rem;
}
.code-block:not(:last-child) {
  margin-bottom: 1.5rem;
}
:is(h1, h2, h3, h4, h5, h6) + .code-block:not(:first-child) {
  margin-top: 0;
}
.code-block pre {
  margin: 0;
}
.code-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 18px;
  color: rgba(7, 36, 86, 0.35);
  background-color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
  cursor: pointer;
  transition: color 0.25s;
}
.code-copy:hover {
  color: #24b47e;
}
/*--------------------------------------------------------------
Heading links
--------------------------------------------------------------*/
[data-component="heading-links"] h2,
[data-component="heading-links"] h3 {
  position: relative;
}
[data-component="heading-links"] h2:hover > .heading-link,
[data-component="heading-links"] h3:hover > .heading-link {
  opacity: 1;
}
.heading-link {
  position: absolute;
  right: 100%;
  width: 2rem;
  text-align: center;
  color: rgba(7, 36, 86, 0.35);
  opacity: 0;
  transition: opacity 0.25s, color 0.25s;
}
@media only screen and (max-width: 47.99em) {
  .heading-link {
    display: none;
  }
}
.heading-link i {
  font-size: 0.75em;
  vertical-align: middle;
}
.heading-link:hover,
.heading-link:focus {
  color: #24b47e;
  opacity: 1;
}
/*--------------------------------------------------------------
External links
--------------------------------------------------------------*/
.document__content a.external::after {
  display: inline-block;
  vertical-align: bottom;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 16px;
  content: '\f30c';
  transform: rotate(45deg);
}
.document__content a.external:has(img)::after {
  content: none;
}
/*--------------------------------------------------------------
Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  margin-bottom: 0.5rem;
}
/*--------------------------------------------------------------
Toggles
--------------------------------------------------------------*/
.toggles ul ul {
  display: none;
  margin-left: -0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(7, 36, 86, 0.075);
}
.toggles li.active > ul {
  display: block;
}
.toggles li.current-menu-item > a {
  font-weight: 500;
}
.toggles li:not(.parent)::before {
  content: none;
}
.toggles li.external::before {
  content: '\f30c';
  transform: rotate(45deg);
}
.toggles li.parent::before {
  transition-property: color, transform;
}
.toggles li.parent.active::before {
  transform: rotate(90deg);
}
.toggles li:hover:has(li:hover):not(.current-menu-item) > a {
  color: rgba(15, 23, 39, 0.65);
}
.toggles li:hover:has(li:hover):not(.current-menu-item)::before {
  color: rgba(7, 36, 86, 0.35);
}
.toggles__label {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% + 1rem);
  margin-left: -1rem;
  padding: 0 0 0 1rem;
  font: inherit;
  text-align: left;
  color: rgba(15, 23, 39, 0.65);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}
.toggles__label:hover {
  color: #ffc107;
}
.toggles__button {
  position: absolute;
  z-index: 1;
  top: 0;
  left: -0.5rem;
  width: 1.5rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
/*--------------------------------------------------------------
Assistant
--------------------------------------------------------------*/
html:has(.page-template-template-assistant) {
  height: auto;
}
.page-template-template-assistant {
  height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.page-template-template-assistant .site-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.page-template-template-assistant .site-content {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0;
}
.page-template-template-assistant .site-content > .container {
  display: flex;
  flex: 1;
  max-width: none;
  padding: 0;
}
.assistant {
  display: flex;
  flex: 1;
}
.assistant iframe {
  display: block;
  flex: 1;
  width: 100%;
  border: 0;
}
