:root {
  --navbar-height: 46px;
  --nav-link-hover-color: #97310e;
  --table-border-color: #ddd;
  --r-docs-nav-padding-top: 10px;
  --tooltip-border-color: var(--bs-gray-500);
}

/* Override bootstrap 4 and 5 changes */
html {
  font-size: 10px;
}
body {
  font-size: 14px;
  line-height: 1.4286;
  padding-top: var(--navbar-height);
}
.btn {
  font-size: 14px;
  white-space: nowrap;
}
a, .btn:hover, .btn:focus {
  text-decoration: none;
}
.dropdown-item {
  color:#dd4814;
  white-space: unset;
  padding: 0;
}
a:hover, a:focus,
.dropdown-item:hover, .dropdown-item:focus {
  background-color: transparent;
  color: var(--nav-link-hover-color);
  text-decoration: underline;
}
ul {
  padding-left: 40px;
}
h1, h2, h3 {
  margin-top:20px;
  margin-bottom:10px;
  line-height:1.1;
}
h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 32px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
.r-docs-content ol {
  padding-left: 40px;
}
.page-link { text-decoration: none; }
#accordion .accordion-button {
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: Tahoma, Arial, sans-serif;
}

/* Use only web safe fonts when font-smoothing is not enabled */
/* stylelint-disable selector-class-pattern */
html.hasFontSmoothing-false :is(body, .tooltip, .popover) {
    font-family: Ubuntu, Tahoma, Arial, sans-serif;
}
html.hasFontSmoothing-false :is(code, kbd, pre, samp, .btn-code, .term) {
    font-family: "Courier New", monospace;
}
/* stylelint-enable */

/* _layouts/rmilter.html */
.affix { position: static; }
@media screen and (min-width: 768px) {
  .affix {
    position: fixed;
    top: 50px;
	  margin-top: 50px;
  }
}

.row-footer{ background-color: #E8E8E8; }
.btn-code {
  font-family: monospace;
  text-decoration: none;
  background-color: white !important;
  color: #000000 !important;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

code, kbd, pre, samp { font-family: monospace; }
.highlight, pre { border-radius: 4px; }
pre {
  padding: 9.5px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  color: #000000;
}
/* Markdown single backticks (` `) in-line code blocks */
:not(pre) > code {
  padding: 2px 4px;
  background-color: rgba(0 0 0 / 0.08);
  border-radius: 4px;
  color: inherit;
}
pre code {
  white-space: pre-wrap;
}

a.btn svg.fa-square-caret-down,
.r-post-changes svg {
  transition: .35s ease-in-out;
}
a.btn:not(.collapsed) svg.fa-square-caret-down,
.r-post-changes.open svg {
  transform: rotateX(180deg);
}

.navbar-brand { height: var(--navbar-height); }

.r-nav-container .navbar-toggler {
  padding: 8px 9px;
  border-color: #fff;
}
.r-nav-container .navbar-toggler:hover {
  border-color: var(--nav-link-hover-color);
  background-color: var(--nav-link-hover-color);
}
.r-nav-container .navbar-toggler .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
}
.r-nav-container .navbar-toggler .icon-bar + .icon-bar {
  margin-top: 4px;
}

.breadcrumb{
  background-color: transparent;
  padding-left: 0;
}
ul.nav-stacked .nav-link:hover { background-color: rgb(238 238 238); }

.compare-table .icon-red { color: rgb(250 57 57); }
.compare-table .icon-green { color: #00E025; }

table {
  border-radius: 5px;
  border: 1px solid var(--table-border-color);
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 2px 2px 8px var(--table-border-color);
  margin: 2rem 1rem;
}

th, td {
  border-right: 1px solid var(--table-border-color);
  border-bottom: 1px solid var(--table-border-color);
  padding: 6px 13px;
}
th {
  padding-left: 30px !important;
  background-color: #E8E8E8 !important;
}
th:last-child, td:last-child { border-right: none; }
tr:nth-child(2n) > td,
tr:nth-child(2n) > th {
  background-color: #f8f8f8;
}
thead:last-child td, tbody tr:last-child td { border-bottom: none; }

/* Anchors for headings */
.header-link {
  position: relative;
  left: 0.6em;
  opacity: 0;
  font-size: 0.8em;
  -webkit-transition: opacity 0.2s ease-in-out 0.1s;
  -moz-transition: opacity 0.2s ease-in-out 0.1s;
  -ms-transition: opacity 0.2s ease-in-out 0.1s;
}
h2:hover .header-link,
h3:hover .header-link,
h4:hover .header-link,
h5:hover .header-link,
h6:hover .header-link {
  opacity: 1;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  width:5rem;
  height:5rem;
}
.who-uses .carousel-indicators button,
.who-uses .carousel-control-next-icon,
.who-uses .carousel-control-prev-icon {
  filter: invert(50%);
}
.carousel-control-next,
.carousel-control-prev {
  width: 10%;
}
.who-uses .blockquote {
  font-size: 14px;
  border-color: #E8E8E8;
}
.who-uses .blockquote-footer { color:#aea79f }

@media (max-width: 768px) {
  .who-uses .blockquote{
    font-size: 10px;
  }
}
.news-row { background-image: linear-gradient(to right, #E8E8E8, white 30%, white 70%, #E8E8E8); }
@media (min-width: 768px) {
  .bottom-right {
    position: absolute;
    bottom: 15px;
    right: 10px;
  }
}

.dropdown-menu { background-color: #E8E8E8; }
.dropdown-menu > li {
  display: table-cell;
  font-weight: bold;
  font-size: 18px;
  padding: 1rem 1rem 0;
  line-height: 150%;
}
@media screen and (max-width: 767px) {
  .dropdown-menu > li { display: block; }
}
.dropdown-menu ul {
  list-style: none;
  padding-left: 0;
  font-size: 14px;
}
.dropdown-menu.show {
  display: table;
  table-layout: fixed;
}

#navbar .donate button { border: 1px solid #CCC; }

div#toc {
  display: inline-block;
  padding: 10px;
  border: 1px solid #AAA;
  background-color: #FAFAFA;
}

.edit-btn { background-color: #e8e7e7; }

.button-fixed-bottom {
  background: #dc4813;
  color: white;
  padding: 22px;
  display: none;
}
.button-fixed-bottom:hover,
.button-fixed-bottom:focus {
  background: #ca3e0c;
  color: white;
}

/* _posts\2019-05-16-rspamd-performance.md */
.term {
  background-color: black;
  background-image: radial-gradient(rgb(0 150 0 / 0.75), black 120%);
  margin: 0;
  overflow: hidden;
  padding: 2rem;
  color: white;
  font: 1.3rem Inconsolata, monospace;
  text-shadow: 0 0 5px #c8c8c8;
}
.term::selection {
  background: #0080ff;
  text-shadow: none;
}

/* Algolia search */
/* stylelint-disable selector-class-pattern */
.ais-SearchBox-form { border-radius: 3px; }
.ais-SearchBox-form::before { /* Search icon */
  height: 16px;
  width: 16px;
  margin-top: unset;
  transform: translateY(-50%);
  left: 0.5rem;
}
.ais-SearchBox-input { padding-right: 2.5rem; }
@media(max-width:1199px) {
  form.ais-InstantSearch { width: 50%; }
}
@media(min-width:1200px) {
  .ais-SearchBox-input { width: 130px; }
}
@media(min-width:1400px) {
  .ais-SearchBox-input:focus { width: 300px; }
}
.ais-SearchBox-loadingIndicator, .ais-SearchBox-reset { right: 0.5rem; }
#pagination .ais-Panel { margin-bottom: 2px; }
.ais-hits {
  top: var(--navbar-height);
  padding: 0;
  position:fixed;
  background-color: #eeeeee;
}
.ais-hits>.ais-InstantSearch {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
}
#hits { overflow-y: auto; }
.ais-Hits-item a { font-size: 21px; }
.ais-Hits-item:nth-child(odd) { background-image: linear-gradient(to right, white, white 30%, #E8E8E8 70%, #E8E8E8); }
.ais-Hits-item:nth-child(even) { background-image: linear-gradient(to right, #E8E8E8, #E8E8E8 30%, white 70%, white); }
/* stylelint-enable */

.nav>li>a:hover,
.nav>li>a:focus {
  text-decoration:none;
  background-color:#eeeeee
}
#navbar .nav-link{
  height: var(--navbar-height);
}
#navbar .navbar-nav .nav-link {
  color: #ffffff;
  padding: 0 9px;
}
#navbar .navbar-nav>li>a:hover,
#navbar .navbar-nav>li>a:focus {
  background-color: var(--nav-link-hover-color);
}

.tooltip-inner {
    border: 1px solid;
    border-color: var(--tooltip-border-color);
    background-color: #FFFFE1;
    color: var(--bs-body-fg);
    font-size: 1.2rem;
}
/* stylelint-disable no-descending-specificity */
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: var(--tooltip-border-color);
}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: var(--tooltip-border-color);
}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: var(--tooltip-border-color);
}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: var(--tooltip-border-color);
}
/* stylelint-enable */

.btn-social-icon.btn-xs :first-child {
    font-size: 1em;
}

.site-map h2 { font-size: 24px; }
.site-map > div > ul { padding-left: 1.5rem; }
