/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:root {
  /* color palette */
  --color-white: #fff;
  --color-black: #000;
  --color-near-black: #1a1a1a;
  --gray-50: #f8f8f8;
  --gray-100: #f6f6f6;
  --gray-200: #eaeaea;
  --gray-300: #e8e8e8;
  --gray-350: #dadada;
  --gray-400: #ccc;
  --gray-500: #757575;
  --gray-600: #505050;

  /* brand colors */
  --background-color: white;
  --light-color: var(--gray-50);
  --dark-color: var(--gray-600);
  --text-color: #131313;
  --link-color: #008938;
  --link-hover-color: #006b2b;
  --subway-green: #009245;
  --subway-yellow: #ffc600;
  --subway-green-dark: #006b2b;
  --carousel-indicator-active: #008938;
  --blue: #5e9ed6;

  /* fonts */
  --body-font-family: "Subway Sans", georgia, "Helvetica Neue", helvetica, arial, sans-serif;
  --heading-font-family: "Subway Sans Bold", georgia, "Helvetica Neue", helvetica, arial, sans-serif;
  --nav-links-font-family: 'Subway Sans Condensed', georgia, "Helvetica Neue", helvetica, arial, sans-serif;
  --subway-bold-font: 'Subway Sans Bold', georgia, "Helvetica Neue", helvetica, arial, sans-serif;
  --subway-semibold-font: 'Subway Sans SemiBold', georgia, "Helvetica Neue", helvetica, arial, sans-serif;
  --subway-medium-font: 'Subway Sans Medium', georgia, "Helvetica Neue", helvetica, arial, sans-serif;

  /* body sizes */
  --body-font-size-m: 16px;
  --body-font-size-s: 19px;
  --body-font-size-xs: 17px;

  /* heading sizes */
  --heading-font-size-xxl: 55px;
  --heading-font-size-xl: 44px;
  --heading-font-size-l: 34px;
  --heading-font-size-m: 27px;
  --heading-font-size-s: 24px;
  --heading-font-size-xs: 22px;

  /* fixed component font sizes (non-responsive, used across multiple blocks) */
  --font-size-18: 18px;
  --font-size-20: 20px;
  --font-size-24: 24px;
  --font-size-26: 26px;
  --font-size-28: 28px;
  --font-size-32: 32px;
  --font-size-36: 36px;
  --font-size-38: 38px;
  --font-size-45: 45px;
  --font-size-60: 60px;

  /* font weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* spacing scale — multiples of 4; --space-2 is a half-step */
  --space-0: 0;
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-44: 44px;
  --space-48: 48px;
  --space-56: 56px;
  --space-60: 60px;
  --space-64: 64px;
  --space-80: 80px;
  --space-100: 100px;
  --space-140: 140px;
  --space-160: 160px;

  /* additional spacing — values used across multiple blocks, outside the 4px scale */
  --space-5: 5px;
  --space-6: 6px;
  --space-10: 10px;
  --space-13: 13px;
  --space-14: 14px;
  --space-15: 15px;
  --space-30: 30px;

  /* semantic spacing aliases */
  --spacing-xs: var(--space-8);
  --spacing-s: var(--space-16);
  --spacing-m: var(--space-24);
  --spacing-l: var(--space-32);
  --spacing-xl: var(--space-40);
  --spacing-xxl: var(--space-48);

  /* border radius */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-full: 50%;
  --radius-button: var(--radius-lg);

  /* layout */
  --nav-height: 72px;
}

/* fallback fonts */
@font-face {
  font-family: roboto-condensed-fallback;
  size-adjust: 88.82%;
  src: local('Arial');
}

@font-face {
  font-family: roboto-fallback;
  size-adjust: 99.529%;
  src: local('Arial');
}

@media (width >= 1024px) {
  :root {
    /* body sizes */
    --body-font-size-m: 18px;
    --body-font-size-s: 16px;
    --body-font-size-xs: 14px;

    /* heading sizes */
    --heading-font-size-xxl: 45px;
    --heading-font-size-xl: 36px;
    --heading-font-size-l: 28px;
    --heading-font-size-m: 22px;
    --heading-font-size-s: 20px;
    --heading-font-size-xs: 18px;
  }
}

body {
  font-family: var(--body-font-family);
  font-weight: 400;
  font-style: normal;
  margin: 0;
  font-stretch: normal;
  font-size: var(--body-font-size-m);
  color: #000;
}

body.appear {
  display: block;
}

header {
  min-height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 2;
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  scroll-margin: 40px;
}

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

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

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

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* buttons */
a.button:any-link,
button {
    box-sizing: border-box;
    display: inline-block;
    max-width: 100%;
    margin: 12px 0;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 0.5em 1.2em;
    font-family: var(--body-font-family);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    background-color: var(--link-color);
    color: var(--background-color);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.button:hover,
a.button:focus,
button:hover,
button:focus {
  background-color: var(--link-hover-color);
  cursor: pointer;
}

button:disabled,
button:disabled:hover {
  background-color: var(--light-color);
  cursor: unset;
}

a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

a.button.secondary,
button.secondary {
  background-color: unset;
  border: 2px solid currentcolor;
  color: var(--text-color);
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections */
main > .section {
  margin: 60px 0;
}

main > .section > div {
  box-sizing: border-box;
  max-width: 1280px;
  margin: auto;
  padding: 0 21px;
}

main > .section:first-of-type {
  margin-top: 0;
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 40px 0;
}

main .section.promo {
  background-color: var(--background-color);
  margin: 0;
  padding: 40px 0;
}

main .section.large-title :is(h1, h2, h3, h4, h5, h6) {
  font-size: var(--font-size-45);
  font-weight: var(--font-weight-black);
}

@media (width >= 670px) {
  main .section.large-title :is(h1, h2, h3, h4, h5, h6) {
    font-size: var(--font-size-60);
  }
}

main .section.contained > div {
  max-width: 762px;
  font-size: var(--font-size-18);
  line-height: 1.5;
}

main .section.contained p {
  padding-top: 20px;
}

@media (width >= 670px) {
  main > .section > div {
    padding: 0 60px;
  }
}

main .section.extra-top-spacing {
  padding-top: 140px;
}
