/* Custom styles for blander theme - Bootstrap 5.3 compatible */
/* Base typography */
html {
  font-size: 10px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: Georgia, "Gelasio", "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.55;
  color: #424446;
  background-color: #fff;
}

/* Links */
a {
  color: #29ABE0;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #1b8dbb;
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.3;
  color: #313131;
}

h1 small, h2 small, h3 small, h4 small, h5 small, h6 small,
.h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small,
h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small,
.h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small {
  font-weight: normal;
  line-height: 1;
  color: #8a8a8a;
}

h1, .h1, h2, .h2, h3, .h3 {
  margin-top: 31px;
  margin-bottom: 15.5px;
}

h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small,
h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small {
  font-size: 65%;
}

h4, .h4, h5, .h5, h6, .h6 {
  margin-top: 15.5px;
  margin-bottom: 15.5px;
}

h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small,
h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small {
  font-size: 75%;
}

h1, .h1 { font-size: 42px; }
h2, .h2 { font-size: 37px; }
h3, .h3 { font-size: 31px; }
h4, .h4 { font-size: 25px; }
h5, .h5 { font-size: 20px; }
h6, .h6 { font-size: 17px; }

/* Paragraphs */
p {
  margin: 0 0 30px;
}

/* Horizontal rule */
hr {
  margin-top: 31px;
  margin-bottom: 31px;
  border: 0;
  border-top: 1px solid #f0f0f0;
  opacity: 1;
}

/* Container - match BS3 widths */
@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

/* Row - match BS3 negative margins */
.row {
  --bs-gutter-x: 30px;
}

/* Navbar - match BS3 appearance */
.navbar {
  font-size: 18px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  min-height: 60px;
  margin-bottom: 31px;
  border: 1px solid transparent;
  border-width: 0 0 1px;
  border-color: #e7e7e7;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .navbar-brand {
  font-size: 25px;
  font-weight: 400;
  padding: 14.5px 15px;
  height: 60px;
  line-height: 31px;
}

.navbar .nav-link {
  padding: 15px;
  line-height: 31px;
  color: #777;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #333;
}

.navbar .nav-item.active .nav-link {
  color: #555;
  background-color: #e7e7e7;
}

/* Custom hamburger animation */
.navbar-toggler {
  border: none;
  padding: 9px 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  background-color: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 0;
}

.navbar-toggler .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  position: relative;
  background-color: #000000;
  border-radius: 1px;
  transition: all 25ms;
}

.navbar-toggler.collapsed .icon-bar {
  background-color: #000000;
}

.navbar-toggler.collapsed .icon-bar.top-bar {
  transform: rotate(0deg);
  top: 0;
}

.navbar-toggler.collapsed .icon-bar.middle-bar {
  opacity: 1;
  width: 100%;
  margin-left: 0;
}

.navbar-toggler.collapsed .icon-bar.bottom-bar {
  transform: rotate(0deg);
  bottom: 0;
}

.navbar-toggler .icon-bar.top-bar {
  transform: rotate(45deg);
  top: 6px;
}

.navbar-toggler .icon-bar.middle-bar {
  opacity: 0;
  width: 0;
  margin-left: 50%;
}

.navbar-toggler .icon-bar.bottom-bar {
  transform: rotate(-45deg);
  bottom: 6px;
}


/* Navbar collapse styles (always collapsed) */
.navbar-collapse {
  border-top: 1px solid #e7e7e7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  padding: 0 15px;
}

.navbar-collapse.collapsing {
  transition: height 25ms ease;
}

.navbar-collapse .navbar-nav {
  margin: 7.5px -15px;
}

.navbar-collapse .nav-link {
  padding: 10px 15px;
}

/* Code styling */
code {
  font-size: 85%;
  color: #be5a63;
  background-color: #f0f0f0;
  padding: 2px 4px;
  border-radius: 4px;
}

pre {
  background-color: #272822;
  color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 15px;
  font-size: 19px;
}

pre code {
  color: inherit;
  background-color: transparent;
  padding: 0;
}

.highlight pre {
  font-size: 15px;
}

/* Button - match BS3 btn-default style */
.btn {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.btn-outline-secondary {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.btn-outline-secondary:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-sm {
  padding: 1px 5px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.tag {
  color: #6c757d;
  background-color: #e9ecef;
  border-color: #e9ecef;
  text-decoration: none;
}

.tag:hover,
.tag:focus {
  background-color: #ced4da;
  border-color: #ced4da;
  text-decoration: none;
}

/* Text colors - match BS3 */
.text-muted {
  color: #adb5bd !important;
}

.text-primary {
  color: #535353 !important;
}

/* text-success used for article titles - keep the blue link color */
.text-success {
  color: #29ABE0 !important;
}

a.text-success:hover,
a.text-success:focus {
  color: #1b8dbb !important;
  text-decoration: underline;
}

/* Blockquote - match BS3 */
blockquote {
  padding: 15.5px 31px;
  margin: 0 0 31px;
  font-size: 25px;
  border-left: 5px solid #bdbdbd;
}

/* Definition lists */
dl {
  margin-bottom: 31px;
}

dt {
  font-weight: 700;
}

dd {
  margin-left: 0;
}

/* Footnotes */
.footnote {
  font-size: 17px;
  font-weight: 300;
}

/* Gallery */
.gallery-thumbnail {
  margin-bottom: 20px;
}

.gallery-thumbnail:hover {
  opacity: 0.8;
}

/* Pager (BS3 compatibility for pagination) */
.pager {
  padding-left: 0;
  margin: 20px 0;
  list-style: none;
  text-align: center;
}

.pager li {
  display: inline;
}

.pager li > a,
.pager li > span {
  display: inline-block;
  padding: 5px 14px;
  background-color: #e9ecef;
  border: 1px solid #e9ecef;
  border-radius: 15px;
}

.pager li > a:hover,
.pager li > a:focus {
  text-decoration: none;
  background-color: #ced4da;
  border-color: #ced4da;
}

.pager .previous > a,
.pager .previous > span {
  float: left;
}

.pager .next > a,
.pager .next > span {
  float: right;
}

.pager::after {
  content: "";
  display: table;
  clear: both;
}

/* Tables - match BS3 */
table {
  background-color: transparent;
  border-collapse: collapse;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 31px;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.55;
  vertical-align: top;
  border-top: 1px solid #bdbdbd;
}

.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #bdbdbd;
}

/* Image styling */
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-rounded {
  border-radius: 6px;
}

.img-thumbnail {
  padding: 4px;
  line-height: 1.55;
  background-color: #f0f0f0;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
}

.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Print styles */
@media print {
  .navbar {
    display: none;
  }
}
