/*
Theme Name: ABE Factors
Theme URI: https://abefactors.com
Author: Excentric
Author URI: https://excentric.ca
Description: Custom accessible WordPress theme for ABE Factors, built with Gutenberg and ACF Blocks.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: excentric-abefactors
*/

/* ===================================
   1. RESET / NORMALIZE
=================================== */
html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
   box-sizing: inherit;
}

.clearfix::after,
.clearfix::before {
  content: " ";
  display: table;
}

.clearfix::after {
   clear: both;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--wp--preset--font-family--primary);
  position: relative;
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--body);
  font-size: var(--wp--preset--font-size--body);
  line-height: 1.3;
  font-weight: 400;
  
}
.site-main {
	position: relative;
}
#page {
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  background-color: var(--wp--preset--color--white);
  position: relative;

}




audio,
canvas,
progress,
video {
   display: inline-block;
   vertical-align: baseline;
}

audio:not([controls]) {
   display: none;
   height: 0;
}

[hidden],
template {
   display: none;
}

::-moz-selection {
   background-color: var(--wp--preset--color--primary);
   color: var(--wp--preset--color--black);
}

::selection {
   background-color: var(--wp--preset--color--primary);
   color: var(--wp--preset--color--black);
}



abbr[title] {
   border-bottom: 1px dotted;
}

b,
strong {
   font-weight: bold;
}

dfn {
   font-style: italic;
}

mark {
   background: #ff0;
   color: var(--wp--preset--color--white);
}

small {
   font-size: 80%;
}

sub,
sup {
   font-size: 75%;
   line-height: 0;
   position: relative;
   vertical-align: baseline;
}

sup {
   top: -0.5em;
}

sub {
   bottom: -0.25em;
}

img {
   border: 0;
}

svg:not(:root) {
   overflow: hidden;
}

figure {
   margin: 1em 40px;
}

hr {
   box-sizing: content-box;
   height: 0;
}

pre {
   overflow: auto;
}

code,
kbd,
pre,
samp {
   font-family: monospace, monospace;
   font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
   color: inherit;
   font: inherit;
   margin: 0;
}

button {
   overflow: visible;
}

button,
select {
   text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
   cursor: pointer;
}

button[disabled],
html input[disabled] {
   cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
   border: 0;
   padding: 0;
}

input {
   line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
   box-sizing: border-box;
   padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
   height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
   -webkit-appearance: none;
}

fieldset {
   border: 1px solid #c0c0c0;
   margin: 0 2px;
   padding: 0.35em 0.625em 0.75em;
}

legend {
   border: 0;
   padding: 0;
}

textarea {
   overflow: auto;
}

optgroup {
   font-weight: bold;
}

table {
   border-collapse: collapse;
   border-spacing: 0;
}

td,
th {
   padding: 0;
}

.author-credits {
   text-align: left;
}

.author-credits a {
   color: var(--wp--preset--color--darkblue);
   text-decoration: none;
}

dfn,
cite,
em,
i {
   font-style: italic;
}

blockquote {
   margin: 0 1.5em;
}

address {
   margin: 0 0 1.5em;
}

blockquote,
q {
   quotes: """";
}

blockquote:before,
blockquote:after,
q:before,
q:after {
   content: "";
}

hr {
   border: 0;
   height: 1px;
   margin-bottom: 1.5em;
}



dt {
   font-weight: bold;
}

dd {
   margin: 0 1.5em 1.5em;
}

img {
   height: auto;
   /* Make sure images are scaled correctly. */
   max-width: 100%;
   
}

figure {
   margin: 0;
   /* Extra wide images within figure tags don't overflow the content area. */
}

table {
   margin: 0 0 1.5em;
   width: 100%;
}

pre {
   background: #eee;
   font-family: var(--wp--preset--font-family--primary);
   font-size: 15px;
   font-size: 0.9375rem;
   line-height: 1.6;
   margin-bottom: 1.6em;
   max-width: 100%;
   overflow: auto;
   padding: 1.6em;
}

code,
kbd,
tt,
var {
   font-family: var(--wp--preset--font-family--primary);
   font-size: 15px;
   font-size: 0.9375rem;
}

abbr,
acronym {
   border-bottom: 1px dotted var(--wp--preset--color--black);
   cursor: help;
}

mark,
ins {
   background: #fff9c0;
   text-decoration: none;
}

.hidden {
   display: none !important;
}
.wp-block-image.inline-block {
  display: inline-block;
  margin-bottom: 0;
}


#html5-watermark {
  display: none !important;
}


/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}
.entry-content iframe.gmap {
	margin: 0;
	width: 100%;
	max-width: 100%;
	padding: 0;
	display: block;
}
iframe.gmap {
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	filter: grayscale(100%);
}
/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/*--------------------------------------------------------------
# Site Header
  All header CSS is in css/navigation.css (focus, open/closed states, search)
  and css/header.css (layout and design).
--------------------------------------------------------------*/

/* ===================================
    Breadcurms
=================================== */

.breadcrumbs {
	padding: 12px 0;
	font-size: 16px;
	color: var(--wp--preset--color--black);
	font-weight: 300;
	border-bottom: 1px solid var(--wp--preset--color--lightgrey,#d0d6e6);
}

.breadcrumbs a {
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--wp--preset--color--primary);
}

.breadcrumbs .starter {
  display: none;
}


/* ===================================
    Home banner (slider.php)
    All banner CSS is in css/home-banner.css.
=================================== */


/* ===================================
    Page title (title.php)
    All page title CSS is in css/page-title.css.
=================================== */


/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.entry-header h1.entry-title {
  font-size: var(--wp--preset--font-size--x-large-80);
  line-height: 1.1;
  margin: 0 0 10px;
}

@media only screen and (max-width: 600px) {
  .entry-header h1.entry-title {
    font-size: var(--wp--preset--font-size--x-large-80);
  }
}
.hentry {
  margin: 0;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

.entry-header,
.page-header,
.entry-footer,
.site-info,
.post-navigation,
.page-navigation,
.comments-area,
.not-found .page-content,
.search .entry-summary {
  margin: 1.5em auto;
  padding-left: 14px;
  padding-right: 14px;

}

.entry-header .wp-post-image {
  margin-bottom:4rem;
}

.entry-footer span {
  margin-right: 1em;
}

.entry-footer {
  color: var(--wp--preset--color--black,#000);
  font-size: 100%;
  padding: 20px 0;
  border-top: 1px solid var(--wp--preset--color--lightgrey,#efefef);
  border-bottom: 1px solid var(--wp--preset--color--lightgrey,#efefef);
  margin-bottom: 0;

}

@media screen and (min-width: 664px) {

  .entry-header,
  .page-header,
  .entry-footer,
  .site-info,
  .post-navigation,
  .page-navigation,
  .comments-area,
  .not-found .page-content,
  .search .entry-summary {
    padding-left: 0;
    padding-right: 0;
  }
}


/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  border-bottom: 1px solid #111;
  margin: 0 auto 60px;

  overflow: hidden;
  padding-bottom: 60px;
  display: none;
}

.nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  width: 50%;
  flex: 1 0 50%;
  display: none;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* ===================================
   Sidebars
=================================== */
.widget-area {
  width: 25%;
}

.widget {
  margin: 0 0 1.5em;
  /* Make sure select elements fit in widgets. */
}

.widget select {
  max-width: 100%;
}

.sidebar-widget {
	margin-bottom: 20px;
	padding: 30px;
	background-color: var(--wp--preset--color--lightgrey,#efefef);
	color: var(--wp--preset--color--black);
}

.sidebar-widget.widget_search {
	padding: 0;
	background: transparent;
}

.sidebar-widget.widget_search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--lightgrey,#efefef);
}
.wp-block-search__inside-wrapper input[type="search"] {
	border: 0;
}
.sidebar-widget.widget_search .wp-block-search__label {
	display: none;
}
.sidebar-widget.widget_search .wp-block-search__inside-wrapper .wp-block-search__button {
	border-radius: 0;
}

.sidebar-widget ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}

.sidebar-widget p {
  margin-top: 0;

}


.sidebar-widget a {
  text-decoration: none;
}




.sidebar-widget .widget-title,
.sidebar-widget h3,
.sidebar-widget .widgettitle,
.related.products>h2,
.woocommerce-Tabs-panel h2 {
   font-weight: 400;
   margin-bottom: 20px;
  
   font-size: 1.2rem;
   line-height: 2rem;
   color: var(--wp--preset--color--black);
}



.sidebar-widget h2,
.sidebar-widget h3 {
  color: var(--wp--preset--color--black);
  font-size: 20px;
}

.sidebar-widget ul li {
	padding: 10px 0;
	border-bottom: 1px solid #DADBDC;
}
.sidebar-widget ul li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.sidebar-widget ul li a,
.sidebar-col .entry.loop-entry .entry-header .entry-title a {
   color: var(--wp--preset--color--black);
}

.sidebar-widget ul li a:hover,
.sidebar-col .entry.loop-entry .entry-header .entry-title a:hover {
   color: var(--wp--preset--color--secondary);
}

.sidebar-widget .wp-block-latest-posts__post-date {
   color: var(--wp--preset--color--secondary);
}



.sidebar-col .wp-block-kadence-posts .loop-entry .entry-header .entry-meta {
   margin: 0;
}

.sidebar-col .wp-block-kadence-posts .loop-entry .entry-header {
   margin-top: 0 !important;
   margin-bottom: 0;
}

body.single .sidebar-col .entry-meta .posted-on {
   background: none;
   padding: 0;
   line-height: 25px;
}
/*--------------------------------------------------------------
# Page Lyout
--------------------------------------------------------------*/


.page-row {
	overflow: hidden;
	display: flex;
	justify-content: space-between;
}

.page-col {
  width: 70%;
}

.sidebar-col {
  width: 27%;
}

.sidebar-widget-wrap {
	margin: 4rem 0;
}
@media screen and (max-width: 767px) {
  .page-row {
    flex-direction: column;
  }
  
  .page-col {
   
    width: 100%;
  }

  .sidebar-col {
   
    margin: 0;
    width: 100%;
  }

  .sidebar-wrap {
    margin: 50px 0;
  }
}
/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending {
  /* Theme Footer (when set to scrolling) */
  display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending {
  display: block;
}



/* ===================================
   Table
=================================== */

.wp-block-table thead {
  border-bottom: 2px solid;
}

.wp-block-table .has-fixed-layout th {
  text-align: left;
  font-weight: 400;
}

.wp-block-table {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.wp-block-table :where(figcaption) {
  color: var(--wp--preset--color--white);
  font-size: 24px;
  text-align: center;
  font-weight: 700;
  background-color: var(--wp--preset--color--primary);
  line-height: 32px;
  padding: 13px 30px;
  display: inline-block;
  width: auto;
}

.wp-block-table.is-style-stripes thead {
  border-bottom: 0;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
  text-align: left;
  font-weight: 700;
}

.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th {
  padding: .9em;
}

.wp-block-table.is-style-stripes tbody tr {
  background-color: var(--wp--preset--color--lightgrey);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(2n+1) {
  background-color: var(--wp--preset--color--white);
}

body.search-results .page-header {
	padding: 0 !important;
}
/* ===================================
   404 page
=================================== */
.error-404.not-found {
	padding-top: 100px;
	padding-bottom: 100px;
	text-align: center;
	background-color: var(--wp--preset--color--lightgrey);
	color: var(--wp--preset--color--black);
}

.error-404.not-found h1 {
	color: var(--wp--preset--color--white);
	font-size: clamp(6.25rem, -0.9754rem + 23.1214vw, 18.75rem);
	line-height: 0.75em;
	margin: 0px;
	font-weight: 700;
	text-shadow: 2px 2px 0px var(--wp--preset--color--secondary), -2px -2px 0px var(--wp--preset--color--primary), 0px 0px 8px #fff;
}

.error-404.not-found .page-content {
  max-width: 600px;
  padding-top: 30px;
  font-size: 20px;
}

.error-404.not-found .page-content .homebtn {
  margin-top: 30px;
}
/* ===================================
   Site Footer
   All footer CSS is in css/footer.css.
=================================== */


/*--------------------------------------------------------------
# Animation
All scroll-animation CSS (effects, delays, reduced motion) is in css/animations.css; the script is js/animations.js.
--------------------------------------------------------------*/

.section_footer .site_social_links li:nth-child(2) a {
    margin-top: 2px;
}