@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/styles/fonts/poppins-300.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/styles/fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/styles/fonts/poppins-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/styles/fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/styles/fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/styles/fonts/poppins-700.woff2") format("woff2");
}

:root {
  /* grid */
  --grid-container-width: 83.4%;
  --grid-column-width: calc(var(--grid-container-width) / 12);
  --grid-gutter-width: 8.3%;

  /* spacing */
  --spacing-xxl: 48px;
  --spacing-xl: 32px;
  --spacing-l: 24px;
  --spacing-m: 12px;
  --spacing-s: 8px;
  --spacing-xs: 4px;

  /* color schemes */
  color-scheme: dark light;

  /* brand colors */
  --color-midnight: #191B22;
  --color-midnight-light: #F6F8F4;
  --color-charcoal: #272B36;
  --color-charcoal-light: #E6EBE1;
  --color-forest: #406E0C;
  --color-leaf: #62A814;
  --color-white: #FFFFFF;

  /* color tokens */
  --color-gray-100: #EFF2EC;
  --color-gray-200: #D2D8CC;
  --color-gray-300: #B4BCAD;
  --color-gray-400: #999;
  --color-gray-500: #7d7d7d;
  --color-gray-600: #636363;
  --color-gray-700: #494949;
  --color-gray-800: #313131;
  --color-gray-900: #1b1b1b;
  --color-green-100: #d4f5c4;
  --color-green-200: #a8e88a;
  --color-green-300: #7fd454;
  --color-green-400: #62A814;
  --color-green-500: #549210;
  --color-green-600: #406E0C;
  --color-green-700: #335808;
  --color-green-800: #254206;
  --color-green-900: #1a2e04;
  --color-blue-100: #B8B8FF;
  --color-blue-200: #8A8AFF;
  --color-blue-300: #5C5CFF;
  --color-blue-400: #2E2EFF;
  --color-blue-500: #0000FF;
  --color-blue-600: #0000D1;
  --color-blue-700: #0000A3;
  --color-blue-800: #000075;
  --color-blue-900: #000047;
  --color-red-100: #ffecea;
  --color-red-200: #ffc4be;
  --color-red-300: #ff9990;
  --color-red-400: #ff6759;
  --color-red-500: #f81400;
  --color-red-600: #c71000;
  --color-red-700: #950c00;
  --color-red-800: #670800;
  --color-red-900: #3c0500;

  /* named colors */
  --color-light-base: 255 255 255;
  --color-dark-base: 25 27 34;
  --color-light: rgb(255 255 255);
  --color-dark: rgb(25 27 34);
  --color-text: light-dark(var(--color-dark), var(--color-light));
  --color-link: var(--color-leaf);
  --color-link-hover: var(--color-forest);
  --color-brand: var(--color-forest);
  --color-accent: light-dark(var(--color-forest), var(--color-leaf));
  --color-background: light-dark(var(--color-midnight-light), var(--color-midnight));
  --color-shaded: light-dark(var(--color-charcoal-light), var(--color-charcoal));
  --color-sas-blue: #017cc2;
  --color-jmp-blue: #1475bb;
  --color-zaxbys-red: #952939;

  /* fonts */
  --font-family: poppins, "Trebuchet MS", sans-serif;

  /* headings */
  --heading-font-size-xxl: clamp(32px, 5vw, 48px);
  --heading-font-size-xl: clamp(26px, 4vw, 36px);
  --heading-font-size-l: clamp(22px, 3vw, 28px);
  --heading-font-size-m: clamp(18px, 2.5vw, 20px);
  --heading-font-size-s: 16px;
  --heading-font-size-xs: 14px;
  --heading-line-height: 1.15;

  /* body */
  --body-font-size-xxxl: clamp(20px, 2.5vw, 25px);
  --body-font-size-xxl: clamp(18px, 2.2vw, 22px);
  --body-font-size-xl: clamp(17px, 2vw, 20px);
  --body-font-size-l: clamp(16px, 1.8vw, 18px);
  --body-font-size-m: 16px;
  --body-font-size-s: 14px;
  --body-font-size-xs: 12px;
  --body-line-height: 1.6;

  /* misc */
  --header-height: 64px;
  --breadcrumb-height: 24px;
  --border-radius: 1rem;
  --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

::selection {
  background-color: var(--color-brand);
  color: var(--color-light);
}

* {
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: #406e0c var(--card-bg);
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--card-bg);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-forest);
  border-radius: 3px;
}

.light-scheme {
  color-scheme: light;
}

.dark-scheme {
  color-scheme: dark;
}

html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--body-font-size-m);
  line-height: var(--body-line-height);
  padding: var(--header-height) 0 0;

  &.has-breadcrumb {
    margin: calc(var(--header-height) + var(--breadcrumb-height)) 0 0;
  }

  &.no-header {
    --header-height: 0;

    margin: 0;
  }
}

header {
  display: none;
  height: var(--header-height);
  position: fixed;
}

br {
  display: block;
  content: '';
  margin: 0;
}

hr {
  border: none;
  border-top: 4px solid var(--color-forest);
}

u {
  text-decoration: underline;
  text-decoration-color: var(--color-forest);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
  line-height: 1.35;
}

img {
  border-radius: var(--border-radius);
}

iframe {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease-in-out;

  &:hover {
    color: var(--color-link-hover);
  }

  &.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-s);
    padding: 12px 20px;
    margin: 0.25rem 0;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--body-font-size-s);
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    border-radius: 12px;
    border: 1px solid rgb(from var(--color-brand) r g b / 15%);
    background: rgb(from var(--color-brand) r g b / 6%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-accent);
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgb(from var(--color-brand) r g b / 8%), inset 0 -1px 0 rgb(0 0 0 / 10%);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    &:hover {
      background: rgb(from var(--color-brand) r g b / 14%);
      border-color: rgb(from var(--color-brand) r g b / 28%);
      box-shadow: inset 0 1px 0 rgb(from var(--color-brand) r g b / 14%), 0 8px 24px rgb(from var(--color-brand) r g b / 10%), 0 2px 8px rgb(0 0 0 / 20%);
      transform: translateY(-2px);
    }

    &.btn-primary {
      background: rgb(from var(--color-brand) r g b / 15%);
      border-color: rgb(from var(--color-brand) r g b / 30%);
      color: var(--color-accent);
      box-shadow: inset 0 1px 0 rgb(from var(--color-brand) r g b / 10%), inset 0 -1px 0 rgb(0 0 0 / 10%);

      &:hover {
        background: rgb(from var(--color-brand) r g b / 25%);
        border-color: rgb(from var(--color-brand) r g b / 50%);
        color: var(--color-accent);
        box-shadow: inset 0 1px 0 rgb(from var(--color-brand) r g b / 16%), 0 8px 24px rgb(from var(--color-brand) r g b / 12%), 0 2px 8px rgb(0 0 0 / 20%);
      }

      &.btn-outline {
        background: transparent;
        color: var(--color-accent);
      }
    }

    &.btn-accent {
      background: var(--color-charcoal);
      border-color: var(--color-charcoal);
      color: var(--color-light);
      box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 -1px 0 rgb(0 0 0 / 15%);

      &:hover {
        background: var(--color-midnight);
        border-color: var(--color-midnight);
        color: var(--color-light);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 8px 24px rgb(0 0 0 / 20%), 0 2px 8px rgb(0 0 0 / 15%);
      }

      &.btn-outline {
        background: transparent;
        color: var(--color-text);
      }
    }

    &.btn-secondary {
      background: var(--color-midnight);
      border-color: var(--color-midnight);
      color: var(--color-light);
      box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), inset 0 -1px 0 rgb(0 0 0 / 15%);

      &:hover {
        background: var(--color-charcoal);
        border-color: var(--color-charcoal);
        color: var(--color-light);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 8px 24px rgb(0 0 0 / 20%), 0 2px 8px rgb(0 0 0 / 15%);
      }

      &.btn-outline {
        background: transparent;
        color: var(--color-text);
      }
    }

    &.btn-negative {
      background: rgb(from var(--color-red-600) r g b / 15%);
      border-color: rgb(from var(--color-red-600) r g b / 30%);
      color: var(--color-red-600);
      box-shadow: inset 0 1px 0 rgb(from var(--color-red-600) r g b / 8%), inset 0 -1px 0 rgb(0 0 0 / 10%);

      &:hover {
        background: rgb(from var(--color-red-600) r g b / 25%);
        border-color: rgb(from var(--color-red-600) r g b / 50%);
      }

      &.btn-outline {
        background: transparent;
        color: var(--color-red-600);
      }
    }
  }

}

.dark-scheme a.btn.btn-primary {
  color: var(--color-light);

  &:hover {
    color: var(--color-light);
  }
}

.dark-scheme a.btn.btn-accent,
.dark-scheme a.btn.btn-secondary {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 15%);
  color: var(--color-light);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), inset 0 -1px 0 rgb(0 0 0 / 10%);

  &:hover {
    background: rgb(255 255 255 / 16%);
    border-color: rgb(255 255 255 / 28%);
    color: var(--color-light);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 8px 24px rgb(0 0 0 / 25%), 0 2px 8px rgb(0 0 0 / 15%);
    transform: translateY(-2px);
  }

  &.btn-outline {
    background: transparent;
    color: var(--color-light);
  }
}

/* sections */
.section {
  display: block;

  > .default-content {
    max-width: var(--grid-container-width);
    margin: 0 auto;
  }
}

main {
  ul,
  ol {
    padding-inline-start: 24px;

    /* Reduce nested lists even further */
    ul,
    ol {
      padding-inline-start: 12px;
    }
  }
}

button {
  cursor: pointer;
}

li {
  margin-block: 1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--heading-line-height);
  margin: 0.75rem 0 0.5rem 0;
}

p {
  margin: 1rem 0 0.5rem 0;
}

h1 { font-size: var(--heading-font-size-xxl); }
h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

strong {
  font-weight: 600;
}

input,
textarea,
select,
button {
  font: inherit;
}

img {
  width: 100%;
  height: auto;
}

svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  color: var(--icon-color, currentColor);
}

/* @media (width >= 600px) {} */

/* @media (width >= 900px) {} */

/* @media (width >= 1200px) {} */

@media (width >= 1440px) {
  :root {
    --grid-container-width: 1200px;
  }
}

main > div,
.has-template,
div[data-status] {
  display: none;
}

aem-sidekick {
  opacity: 0;

  &[open="true"].is-ready {
    opacity: 1;
  }
}
