@layer reset, base, components;

@layer reset {
  /* Box sizing rules */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* Remove default margin */
  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  /* Remove list styles on ul, ol elements */
  ul,
  ol {
    list-style: none;
    padding: 0;
  }

  /* Set core root defaults */
  html:focus-within {
    scroll-behavior: smooth;
  }

  /* Set core body defaults */
  body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
  }

  /* A elements that don't have a class get default styles */
  a:not([class]) {
    text-decoration-skip-ink: auto;
  }

  /* Make images easier to work with */
  img,
  picture {
    max-width: 100%;
    display: block;
  }

  /* Inherit fonts for inputs and buttons */
  input,
  button,
  textarea,
  select {
    font: inherit;
  }

  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
  @media (prefers-reduced-motion: reduce) {
    html:focus-within {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer base {
  :root {
    --font-base: 14px;
    --font-family-secondary: "Raleway", Arial, sans-serif;
    --font-family-primary: "Open Sans", Arial, sans-serif;
    --color-primary: #217e9d; /* Teal/Blue */
    --color-success: #0f9d58; /* Green (converted from rgb(15, 157, 88)) */
    --color-neutral: #747478; /* Gray */
    --color-bg-air: #0193be; /* Air Background Blue */
    --color-accent: #6aae97; /* Light Green/Teal Accent */
    --color-hover: #ee8301; /* Orange Hover state */
  }

  body {
    font-size: var(--font-base);
    font-family: var(--font-family-primary);
    background: white;
    padding: 30px;
  }

  a {
    color: var(--color-primary);
    text-decoration: underline;

    &:hover {
      color: var(--color-hover) !important;
    }

    &:focus {
      outline: 2px solid var(--color-primary);
      outline-offset: 2px;
    }
  }

  .maps {
    transition: all 0.3s ease-in-out;
    .container {
      background: white;
      padding-bottom: 45px;
      @media (width >= 1024px) {
        background: rgba(255, 255, 255, 0.8);
      }
    }

    h1 {
      padding-block: 15px;
      color: var(--color-primary);
      font-weight: 400;
      font-size: 2.275rem;
      font-family: var(--font-family-secondary);
    }
    p {
      color: var(--color-success);
      font-size: 1.125rem;
      line-height: 24px;
      margin-bottom: 10px;
      @media (width >= 1024px) {
        font-size: 1.185rem;
      }
    }
  }
}

@layer components {
  .page-introduction {
    ul:not(.breadcrumb) {
      margin: 0 0 21px 31px;
      padding-left: 21px;
      @media (width >= 1024px) {
        margin: 0 0 21px 31px;
        padding-left: 21px;
      }
      li {
        &:before {
          content: "\2022";
          position: relative;
          display: block;
          height: 0;
          width: 0;
          left: -0.75em;
          top: -0.05em;
          color: var(--color-accent);
          font-size: 22px;
        }
        a {
          font-family: var(--font-family-primary);
          font-size: 1.3125rem;
          color: var(--color-primary);
          text-decoration: underline;
        }
      }
    }
    .breadcrumb {
      list-style-type: none;
      margin: 0;
      margin-bottom: 20px;
      padding: 0;
      font-size: 0.7142857142857143rem;
      @media (min-width: 1024px) {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
      }

      > li + li::before {
        padding: 0 5px;
        color: var(--color-neutral);
        content: "/\00a0";
      }
      a.active {
        color: var(--color-neutral);
      }
    }
  }

  a[href="#top"] {
    display: flex;
    width: fit-content;
    margin-inline-start: auto;
    align-items: center;
    gap: 3px;
  }
}
