/*
 * Pressly Bootstrap 3 -> Bootstrap 5.3.8 visual compatibility layer
 * -----------------------------------------------------------------
 * Keeps the original Callie layout/rhythm while the markup uses
 * Bootstrap 5 utilities and grid classes.
 */

/* Bootstrap 3 used a 10px root and a 1.42857143 body line-height. */
html {
  font-size: 10px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  line-height: 1.42857143;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
}

a {
  text-decoration: none;
}

/* Preserve Bootstrap 3's 30px gutters and fixed container widths. */
.container,
.container-fluid {
  --bs-gutter-x: 30px;
}

.row {
  --bs-gutter-x: 30px;
}

@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1170px;
  }
}

/* Bootstrap 3 typography values used by the original template. */
.lead {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .lead {
    font-size: 21px;
  }
}

blockquote.blockquote {
  font-size: 17.5px;
}

blockquote.blockquote .blockquote-footer {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 80%;
  line-height: 1.42857143;
}

/* .form-group was removed in Bootstrap 5. */
.pressly-form-group {
  margin-bottom: 15px;
}

/* Bootstrap 3's media object was removed in Bootstrap 5.
   Flex utilities now provide layout; these rules keep the old sizing details. */
.media-body {
  min-width: 0;
}

.media-object {
  display: block;
}

.media-heading {
  margin-top: 0;
  margin-bottom: 5px;
}


/* Bootstrap 3 automatically cleared floated children inside containers.
   The legacy Pressly header still uses floats for the social icons and
   action buttons, while the centered logo is absolutely positioned.
   Bootstrap 5 removed that clearfix, which made #nav-top collapse and
   pulled the main navigation up over the logo. Restore the old container
   clearfix behavior. */
.container::before,
.container::after,
.container-fluid::before,
.container-fluid::after {
  display: table;
  content: " ";
}

.container::after,
.container-fluid::after {
  clear: both;
}
