/*
Theme Name: RhinoPress
Theme URI: https://tinrhino.com/
Author: GeekCurse
Author URI: https://tinrhino.com/
Description: RhinoPress is a clean, editable WordPress documentation theme with native block and Classic Editor components.
Version: 0.18
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: MIT
License URI: https://opensource.org/license/mit
Text Domain: idocs-wp
*/

/* WordPress integration overrides layered above the licensed upstream CSS. */
:root {
  --idocswp-header-height: 70px;
  --idocswp-sidebar-width: 260px;
  --idocswp-accent: #0366d6;
  --idocswp-blue: var(--idocswp-accent);
  --idocswp-content-width: 850px;
  --idocswp-logo-height: 38px;
  --idocswp-text: #4c4d4d;
}

body.admin-bar #header.sticky-top {
  top: 32px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--idocswp-blue) !important;
  outline-offset: 2px;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-height: var(--idocswp-logo-height);
}

#header .rhinopress-wordmark {
  color: #252b33;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

#header .rhinopress-wordmark:hover,
#header .rhinopress-wordmark:focus {
  color: #252b33;
  text-decoration: none;
}

#header .rhinopress-wordmark-press {
  color: var(--idocswp-blue);
  font-weight: 500;
}

@media (max-width: 575.98px) {
  #header .rhinopress-wordmark {
    font-size: 21px;
  }
}


.idocswp-search {
  position: relative;
  width: min(320px, 32vw);
}

.idocswp-search > .fa-search {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 2;
  color: #8e9aa6;
  transform: translateY(-50%);
}

#idocswp-search-input {
  width: 100%;
  height: 38px;
  padding: 7px 12px 7px 34px;
  color: var(--idocswp-text);
  background: #f5f7f9;
  border: 1px solid #e2e6ea;
  border-radius: 2px;
  font-size: 14px;
}

#idocswp-search-input:focus {
  background: #fff;
  border-color: var(--idocswp-blue);
  box-shadow: 0 0 0 2px rgba(3, 102, 214, .15);
  outline: 0;
}

.idocswp-search-results {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 1050;
  max-height: 360px;
  padding: 6px 0;
  margin: 0;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #dfe3e7;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, .14);
}

.idocswp-search-results[hidden] {
  display: none;
}

.idocswp-search-results button {
  width: 100%;
  padding: 9px 14px;
  color: var(--idocswp-text);
  text-align: left;
  background: transparent;
  border: 0;
}

.idocswp-search-results button:hover,
.idocswp-search-results button:focus,
.idocswp-search-results [aria-selected="true"] {
  color: var(--idocswp-blue);
  background: #f5f7f9;
  outline: 0;
}

.idocswp-search-results small {
  display: block;
  color: #6c757d;
}

.idocs-navigation.docs-navigation-dark,
.idocs-navigation.docs-navigation-dark .nav .nav-item .nav-link {
  color: rgba(255, 255, 255, .72);
  background: #212529 !important;
}

.idocs-navigation.docs-navigation-dark .nav .nav-item .nav-link.active,
.idocs-navigation.docs-navigation-dark .nav .nav-item .nav-link:hover {
  color: #fff;
}

.idocs-navigation {
  scrollbar-gutter: stable;
}

.idocs-content .wp-block-table {
  overflow-x: auto;
}

.idocs-content {
  width: calc(100% - var(--idocswp-sidebar-width));
  max-width: calc(100% - var(--idocswp-sidebar-width));
  overflow-x: hidden;
  box-sizing: border-box;
}

.idocs-content > .container {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.idocs-content .wp-block-image img,
.idocs-content img {
  max-width: 100%;
  height: auto;
}

.idocs-content .alert > :last-child {
  margin-bottom: 0;
}

.idocswp-setup-prompt {
  padding: 5rem 0;
}

@media (max-width: 991.98px) {
  .idocswp-search {
    width: min(280px, 40vw);
  }
}

@media (max-width: 782px) {
  body.admin-bar #header.sticky-top {
    top: 46px;
  }
}

@media (max-width: 767.98px) {
  .idocs-content {
    width: 100%;
    max-width: 100%;
  }

  .idocswp-search {
    width: min(210px, 52vw);
    margin-left: auto !important;
  }

  .idocswp-setting-links {
    padding-top: 10px;
  }
}

@media (max-width: 480px) {
  .idocswp-search {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* RhinoPress footer variants. */
#footer.idocswp-footer {
  border-top: 0;
}
#footer.idocswp-footer.idocswp-footer-seamless {
  color: var(--idocswp-text);
}
#footer.idocswp-footer.idocswp-footer-seamless,
#footer.idocswp-footer.idocswp-footer-seamless .container {
  background: #fff !important;
}
#footer.idocswp-footer.idocswp-footer-divider {
  border-top: 1px solid #e2e8ea;
}
#header .primary-menu.bg-dark .rhinopress-wordmark-rhino {
  color: #fff;
}
#back-to-top {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 8px !important;
  line-height: 1 !important;
}
#back-to-top:hover,
#back-to-top:focus {
  background: transparent !important;
  box-shadow: none !important;
}
#back-to-top .fa {
  color: #6c757d;
}
