:root {
  --button-base: #dfecc1;
  --button-hover: #bcd483;
  --focus: #006a3232;
  --text-main: #0f2c15;
  --text-bright: var(--text-main);
  --form-text: var(--text-main);
}

main, footer {
  position: relative;
  z-index: 0;
}




/**************/
/* TYPOGRAPHY */
/**************/

p, .post-content p  {
  hyphens: auto;
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: .3em;
}

.text-mini    { font-size: .5em; }
.text-smaller { font-size: .7em; }
.text-bigger  { font-size: 1.3em; }
.text-2em     { font-size: 2em; }
.text-3em     { font-size: 3em; }
@media screen and (min-width: 500px) {
  .text-4em   { font-size: 4em; }
  .text-5em   { font-size: 5em; }
}

.white { color: white }

.weak {
  opacity: .7;
}





/**********/
/* LAYOUT */
/**********/

.max-600 { max-width: 600px !important; margin-left: auto !important; margin-right: auto !important; }
.max-800 { max-width: 800px !important; margin-left: auto !important; margin-right: auto !important; }

.card {
  background-color: white;
  border: 1px solid #d3d4d5;
  border-radius: 5px;
  padding: 20px;
}

@media screen and (min-width: 700px) {
  #results {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .6rem;
  }
  .challenge {
    max-width: calc(50% - 0.3rem);
  }
}

.m-0 { margin: 0 !important; }

.mt-0 { margin-top: 0 !important; }
.mt-05{ margin-top:.5em !important; }
.mt-1 { margin-top: 1em !important; }
.mt-2 { margin-top: 2em !important; }
.mt-3 { margin-top: 3em !important; }
.mt-4 { margin-top: 4em !important; }
.mt-5 { margin-top: 5em !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-05{ margin-bottom:.5em !important; }
.mb-1 { margin-bottom: 1em !important; }
.mb-2 { margin-bottom: 2em !important; }
.mb-3 { margin-bottom: 3em !important; }
.mb-4 { margin-bottom: 4em !important; }
.mb-5 { margin-bottom: 5em !important; }

.right {
  text-align: right;
  white-space: nowrap;
}

.absolutely-right {
  position: absolute;
  right: 0;
  translate: -100%;
}

.fullwidth {
  width: 100%;
}

.max-fit-content {
  max-width: fit-content;
}

#results .challenge {
  border-radius: 5px;
  box-sizing: border-box;
  flex: 1 1 calc(50% - 0.3rem);
  margin-bottom: .6rem;
}

.name, .completedCheckpoints, .latestCheckpointAddedOn {
  margin: 0 0 .2em;
}

.name {
  font-size: 1.3em;
  font-weight: 800;
}

.latestCheckpointAddedOn {
  font-size: .7em;
  opacity: .7;
  margin: 0;
}





/**************/
/* NAVIGATION */
/**************/

ul.awb-menu__sub-ul {
  border: 1px solid var(--awb-color4);
  margin-top: -1px;
}

.awb-menu__main-li, .awb-menu__main-li span .awb-menu__sub-li, .awb-menu__sub-ul {
  transition: none !important;
}

.awb-menu__open-nav-submenu-hover {
  font-size: 14px;
}

.awb-menu__main-a_regular > .awb-menu__open-nav-submenu-hover {
  display: none !important;
}





/***********/
/* STYLIZE */
/***********/

.glass {
  background-color: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(10px) contrast(1);
}





/************/
/* PRODUCTS */
/************/

/*** GRID ***/
.product-grid-item p {
  hyphens: manual;
  line-height: 1.1;
  margin-bottom: .5em;
}

.product-grid-item a {
  color: var(--text-main);
}

.cart-loading i {
  background-color: #006a32;
}

.product-grid-item .product-image:hover {
  outline: 1px solid var(--awb-color4);
}

.product-image.square-ratio {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 ratio */
  overflow: hidden;
}

.product-image.square-ratio a {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.product-image.square-ratio img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.woocommerce .price {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
}

.single-post .woocommerce .woocommerce-Price-amount {
  font-weight: 700;
  padding-right: .5em;
}

.single-post .woocommerce del .woocommerce-Price-amount {
  font-weight: 400;
}

.woocommerce .button-container a {
  background-color: var(--awb-color3);
  border: 1px solid var(--awb-color3);
  color: var(--awb-color2); 
  padding: .3em 1em;
  font-size: .8em;
  border-radius: 5em;
  margin-top: .5em;
  margin-left: -.2em;
}

.woocommerce .button-container a:hover {
  background-color: var(--awb-color6);
  border-color: var(--awb-color2);
}


/*** SINGLE ***/
.single-product .fusion-imageframe.has-aspect-ratio img {
  object-fit: contain;
  width: 100%;
  padding: 10%;
}

.single-product .brand {
  font-family: "Noto Serif";
  font-style: italic;
  font-weight: 700;
}





/************/
/* ARTICLES */
/************/

.gestalt {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.gestalt > div {
  flex-grow: var(--ratio);
  flex-shrink: 1;
  flex-basis: 0;
  aspect-ratio: attr(data-ratio number); /* fallback */
  display: flex;
}

.gestalt img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

@media screen and (min-width: 1000px) {
  .single-post .woocommerce,
  p.gestalt {
    margin-left: -25%;
    margin-right: -25%;
    width: 150%;
  }
} 




/*********/
/* FORMS */
/*********/

button[type=submit] {
  display: block;
}





/**********/
/* TABLES */
/**********/

table {
  width: 100%;
  margin-bottom: 1em;
}

tr th, tr td {
  border: 1px solid;
  border-color: var(--text-main);
  font-variant-numeric: tabular-nums;
  padding: 10px;
}






@media print {
  .body {
    background-color: #ffffff;
  }

  .no-print, .no-print * {
    display: none !important;
  }

  th, td {
    padding: 4px;
  }

  select, input, input:-internal-autofill-selected {
    background-color: #ffffff !important;
    border: 1px solid #000;
  }
}





/**********/
/* @MEDIA */
/**********/

/* Mobile Styles */
@media screen and (max-width: 640px) {
  .no-mobile,
  .fusion-post-cards .fusion-onsale {
    display: none;
  }
}
