: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 */
/**************/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

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;
}





/************/
/* 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;
  }
}
