/**
Theme Name: History and Social Justice
Author: OddBird
Author URI: http://wpastra.com/about/
Description: Child theme for Astra
Version: 1.0.16
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: history-and-social-justice
Template: astra
*/
/* Typography */
/* -------------------------------------- */
.hero-title h1:last-child,
.hero-title h2:last-child,
.hero-title h3:last-child,
.hero-title h4:last-child,
.hero-title h5:last-child,
.hero-title p:last-child {
  margin-bottom: 0;
}

.long-title h1 {
  font-size: 2.25rem;
}

/* Links */
/* -------------------------------------- */
.entry-title a,
.entry-content a,
.entry-content h1 a,
.entry-content h2 a,
.entry-content h3 a,
.entry-content h4 a,
.entry-content h5 a,
.entry-content h6 a,
.elementor-widget-heading .elementor-heading-title > a {
  color: #0f6382;
  text-decoration: underline solid rgba(0, 122, 118, 0);
}
.entry-title a:hover,
.entry-title a:focus,
.entry-content a:hover,
.entry-content a:focus,
.entry-content h1 a:hover,
.entry-content h1 a:focus,
.entry-content h2 a:hover,
.entry-content h2 a:focus,
.entry-content h3 a:hover,
.entry-content h3 a:focus,
.entry-content h4 a:hover,
.entry-content h4 a:focus,
.entry-content h5 a:hover,
.entry-content h5 a:focus,
.entry-content h6 a:hover,
.entry-content h6 a:focus,
.elementor-widget-heading .elementor-heading-title > a:hover,
.elementor-widget-heading .elementor-heading-title > a:focus {
  color: #007a76;
  text-decoration: underline solid rgba(0, 122, 118, 0.3);
}

.entry-meta a:hover,
.entry-meta a:focus {
  color: #007a76;
  text-decoration: underline solid rgba(0, 122, 118, 0.3);
}

.entry-content .dark-bg a,
.entry-content .dark-bg h1 a,
.entry-content .dark-bg h2 a,
.entry-content .dark-bg h3 a,
.entry-content .dark-bg h4 a,
.entry-content .dark-bg h5 a,
.entry-content .dark-bg h6 a {
  color: #bae6f8;
}
.entry-content .dark-bg a:hover,
.entry-content .dark-bg a:focus,
.entry-content .dark-bg h1 a:hover,
.entry-content .dark-bg h1 a:focus,
.entry-content .dark-bg h2 a:hover,
.entry-content .dark-bg h2 a:focus,
.entry-content .dark-bg h3 a:hover,
.entry-content .dark-bg h3 a:focus,
.entry-content .dark-bg h4 a:hover,
.entry-content .dark-bg h4 a:focus,
.entry-content .dark-bg h5 a:hover,
.entry-content .dark-bg h5 a:focus,
.entry-content .dark-bg h6 a:hover,
.entry-content .dark-bg h6 a:focus {
  color: #cef0fd;
  text-decoration: underline;
}

.hsj-btn-link {
  border: 1px solid #0f6382;
  display: inline-block;
  padding: 0.5em 1em;
}
.hsj-btn-link a {
  color: #bae6f8;
}
.hsj-btn-link a:hover,
.hsj-btn-link a:focus {
  color: #cef0fd;
  text-decoration: underline;
}
.hsj-btn-link:focus,
.hsj-btn-link:hover {
  background: #0f6382;
  color: #fff;
}

.dark-bg {
  color: #fff;
}
.dark-bg a {
  color: #bae6f8;
}
.dark-bg a:hover,
.dark-bg a:focus {
  color: #cef0fd;
  text-decoration: underline;
}

/* Header & Navigation */
/* -------------------------------------- */
.main-header-bar {
  line-height: 3;
}

@media screen and (min-width: 1000px) {
  #masthead .ast-container {
    padding-left: 1.2em;
    padding-right: 1.2em;
  }

  .ast-masthead-custom-menu-items.search-custom-menu-item {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}
.ast-header-break-point
  .main-header-bar
  .main-header-bar-navigation
  .menu-item-has-children
  > .ast-menu-toggle,
.ast-header-break-point
  .main-header-bar
  .main-header-bar-navigation
  .page_item_has_children
  > .ast-menu-toggle {
  font-size: 0.795em;
}
.main-header-bar .main-header-bar-navigation .menu-item-has-children > a::after,
.main-header-bar
  .main-header-bar-navigation
  .page_item_has_children
  > a::after {
  font-size: 0.45em;
  margin-left: 0.4em;
}

.ast-header-break-point .main-navigation ul.children li a,
.ast-header-break-point .main-navigation ul.sub-menu li a {
  line-height: 1.5;
  padding-bottom: 0.75em;
  padding-top: 0.75em;
}
.ast-header-break-point .main-navigation ul.children li a::before,
.ast-header-break-point .main-navigation ul.sub-menu li a::before {
  content: "";
  margin-right: 0;
  transform: none;
}
.ast-header-break-point .main-navigation ul.children li li a,
.ast-header-break-point .main-navigation ul.sub-menu li li a {
  padding-left: 60px;
}

.main-header-menu .sub-menu {
  background-color: #f5f8fa;
}
.main-header-menu .sub-menu .sub-menu {
  background-color: #ebf1f4;
}
.main-header-menu .sub-menu .sub-menu .sub-menu {
  background-color: #e1eaef;
}
.main-header-menu .sub-menu a {
  padding-left: 25px;
  padding-right: 25px;
}
.main-header-menu
  .sub-menu
  li.menu-item-has-children.ast-left-align-sub-menu
  > a::after {
  left: 1em;
  position: absolute;
  right: auto;
  top: 50%;
  transform: translate(0, -50%) rotate(90deg);
}
.main-header-menu
  .sub-menu
  .ast-right-align-sub-menu.menu-item:focus
  > .sub-menu,
.main-header-menu
  .sub-menu
  .ast-right-align-sub-menu.menu-item.focus
  > .sub-menu,
.main-header-menu
  .sub-menu
  .ast-right-align-sub-menu.menu-item:hover
  > .sub-menu {
  left: 90%;
}
.main-header-menu > .menu-item a {
  font-size: 0.825rem;
}
.main-header-menu > .menu-item > a {
  font-weight: bold;
  padding-left: 0.5em;
  padding-right: 0.5em;
}
.main-header-menu > .menu-item li a {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Linked images */
/* -------------------------------------- */
.entry-content a img {
  border: 2px solid rgba(0, 122, 118, 0);
  transition: border-color 300ms;
}
.entry-content a:hover img,
.entry-content a:focus img {
  border-color: rgba(0, 122, 118, 0.5);
}

/* Widget  - Recent Posts with thumbnails */
/* -------------------------------------- */
.rpwwt-widget ul {
  margin-left: 0;
}
.rpwwt-widget li {
  border-bottom: 1px solid #ddd;
  display: block;
  line-height: 1.3;
  list-style-type: none;
  margin-bottom: 1em;
  min-height: 87px;
  padding-bottom: 1em;
}
#secondary .rpwwt-widget li {
  margin-bottom: 1em;
}
.rpwwt-widget img {
  float: left;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
}

.rpwwt-post-title {
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.3;
}

.rpwwt-post-categories {
  color: #777;
  font-size: 0.875em;
  padding-top: 0.5em;
  text-transform: lowercase;
}
.dark-bg .rpwwt-post-categories {
  color: #cfcfcf;
}
.rpwwt-post-categories a {
  text-transform: none;
}

.dark-bg a .rpwwt-post-title,
.dark-bg .rpwwt-post-categories a {
  text-decoration: underline solid rgba(0, 122, 118, 0);
}

/* Titles/Headings */
/* -------------------------------------- */
.ast-single-post .entry-title,
.page-title {
  text-align: center;
}

.ast-page-builder-template .entry-header {
  margin-bottom: 0;
  margin-top: 1.25em;
}

.single-sundowntown .entry-header {
  margin-bottom: 0;
}

.single-sundowntown .entry-title {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .single-sundowntown .entry-title {
    font-size: 3rem;
  }
}

.single-sundowntown h2,
.single-sundowntown .entry-content h2 {
  font-size: 1.7rem;
  margin-bottom: 0;
}
@media (min-width: 545px) and (max-width: 768px) {
  .single-sundowntown h2,
  .single-sundowntown .entry-content h2 {
    font-size: 1.7rem;
  }
}

/* Text / Image / Element Positioning */
/* -------------------------------------- */
.aligncenter {
  margin-bottom: 1rem;
}

/* Images */
/* -------------------------------------- */
.hsj-state {
  margin-bottom: 2em;
}

/* Images */
/* -------------------------------------- */
.elementor-image {
  position: relative;
}

@media (min-width: 768px) {
  .hero-image:before {
    content: url(https://live-loewen-wordpress.pantheonsite.io/wp-content/uploads/2020/04/lines-overlay.svg);
    bottom: 0%;
    display: block;
    height: 101%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 101%;
    z-index: 1;
  }
}

.angled-hero-row {
  background: linear-gradient(-75deg, #edf2f7, white 3%, white 62%, #edf2f7);
}

.wp-caption-text,
figcaption,
caption {
  font-family: Garamond, "Apple Garamond", Georgia, Times, "Times New Roman",
    serif;
  font-size: 85%;
  font-style: italic;
  margin-top: 0.5em;
}

.wp-caption .wp-caption-text {
  margin-top: 0.5em;
}

/* Grid */
/* -------------------------------------- */
@media (min-width: 993px) {
  .split-cols {
    display: grid;
    grid-gap: 2em;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Def Lists */
/* -------------------------------------- */
.single-sundowntown dl {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 1.25em;
}
@media (min-width: 640px) {
  .single-sundowntown dl {
    grid-gap: 0.125em;
    grid-template-columns: repeat(2, 1fr);
  }
}
.single-sundowntown dt {
  grid-column: 1;
}
.single-sundowntown dd {
  margin: 0 0 0.5em;
}
@media (min-width: 640px) {
  .single-sundowntown dd {
    grid-column: 2;
    margin-bottom: 0;
  }
}

/* Lists */
/* -------------------------------------- */
.hsj-inline-list {
  display: grid;
  list-style: none;
  margin: 0 0 1.25em;
}

/* Tables */
/* -------------------------------------- */
[scope="row"] {
  font-weight: bold;
}

.hsj-table caption {
  margin-bottom: 0.5em;
  text-align: left;
}
.hsj-table td {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.hsj-table td,
.hsj-table th {
  font-size: 0.675em;
  padding: 0.125em 0.25em;
  text-align: right;
}
.hsj-table tr:nth-of-type(odd) {
  background-color: #f8f8f8;
}

/* Archive Pages */
/* -------------------------------------- */
.blog .entry-content,
.archive .entry-content {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
}

.search-results .post-content,
.search-results .blog-layout-1 .post-content {
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 993px) {
  .search-results .post-content,
  .search-results .blog-layout-1 .post-content {
    padding-left: 40px;
    padding-right: 40px;
  }
}
.search-results.ast-page-builder-template .entry-header {
  margin-top: 2em;
  padding-left: 0;
  padding-right: 0;
}
.search-results.ast-page-builder-template .ast-archive-description {
  margin-bottom: 1.5em;
  margin-top: 2em;
}

/*  Sundown Towns Location Archive */
/* -------------------------------------- */
.hsj-ast {
  color: #6b7a1f;
}

.tax-location.ast-page-builder-template .entry-header {
  margin-top: 0;
}
.tax-location.ast-page-builder-template .ast-archive-description {
  margin-bottom: 1.5em;
  margin-top: 2em;
}
.tax-location.ast-page-builder-template
  .ast-archive-description.tax-description {
  border-bottom: 0;
}
.tax-location.ast-page-builder-template .ast-archive-description p {
  font-size: unset;
}
.tax-location.ast-page-builder-template .blog-layout-1 {
  border: 0;
  padding-bottom: 0;
}
.tax-location.ast-page-builder-template .entry-title {
  font-size: 1.4rem;
}
.tax-location.ast-page-builder-template .entry-content {
  padding-top: 0;
}
.tax-location .tax-description .textwidget {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 993px) {
  .tax-location .tax-description .textwidget {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: 1fr auto;
  }
}

/*  Sundown Towns Single */
/* -------------------------------------- */
.single-sundowntown.ast-separate-container .ast-article-single {
  padding-top: 0;
}
@media (min-width: 993px) {
  .single-sundowntown.ast-separate-container #primary {
    margin-top: 2em;
  }
}
.single-sundowntown .entry-content h2 + h2 {
  margin-top: 0.5em;
}
.single-sundowntown .sundown-town-form {
  margin-top: 1rem;
}

/*  Forms */
/* -------------------------------------- */
.wpcf7 input[type="file"] {
  font-size: 0.875rem;
}
.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
  padding: 0.75em;
}
.wpcf7 .wpcf7-response-output {
  margin: 1em 0;
  padding: 0.25em 0.5em;
}

/* Footer */
/* -------------------------------------- */
footer .hfe-nav-menu__layout-horizontal .hfe-nav-menu {
  margin-left: -15px;
}
footer p:last-child {
  margin-bottom: 0.5em;
}
