@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic");

:root {
  --grey3: #333;
  --grey4: #444;
  --grey6: #666;
  --grey9: #999;
  --greyb: #bbb;
  --greyc: #ccc;
  --greyd: #ddd;
  --greye: #eee;

  --dark-grey: #151515;
  --erg-green: #339846;
  --erg-orange: #f56a3a;

  --transition-time: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: white;
}

main {
  display: block;
}

.erg-light-text {
  color: var(--greyb);
}

.erg-centered-text {
  text-align: center;
}

a {
  color: var(--erg-orange);
}

.erg-copy {
  line-height: 1.5;
  color: var(--dark-grey);

  @media (min-width: 40em) {
    line-height: 1.625;
  }

  @media (min-width: 60em) {
    line-height: 1.75;
  }

  & p {
    margin-top: 1rem;
  }

  & :is(sup, sub) {
    vertical-align: baseline;
    position: relative;
  }

  & sub {
    top: 0.375rem;
  }

  & sup {
    top: -0.375rem;
  }

  & :is(ul, ol) {
    margin-top: 1rem;
    padding-left: 2rem;

    & :is(ul, ol) {
      margin-top: 0;
    }
  }

  /* NOTE: em used, so marker position adjusts with font-size and line height */
  & ul li {
    position: relative;
    list-style-type: none;

    /* NOTE: first level marker – filled circle glyph */
    &::before {
      content: "\2022";
      position: absolute;
      top: 0.5625em;
      left: -0.75em;
      font-size: 1.625em;
      line-height: 0;
      color: var(--erg-orange);
    }
  }

  /* NOTE: second level marker – hallow circle glyph */
  & ul > li > ul > li::before {
    content: "\00ba";
    top: 1em;
    left: -1em;
    font-size: 1.1875em;
  }

  /* NOTE: third level marker – square glyph */
  & ul > li > ul > li > ul > li::before {
    content: "\2219";
    top: 0.25em;
    left: -0.4325em;
    font-size: 3.25em;
  }

  /* NOTE: second level ordered lists */
  & ol > li > ol > li {
    list-style-type: lower-alpha;
  }

  /* NOTE: third level ordered lists */
  & ol > li > ol > li > ol > li {
    list-style-type: lower-roman;
  }

  /* NOTE: remove padding and orange bullets for unbulleted lists */
  & .erg-unbulleted-list {
    padding-left: 0;

    & li::before {
      content: none;
    }
  }

  & :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;

    @media (min-width: 20em) {
      margin-top: 1rem;
      margin-bottom: 1rem;
    }

    @media (min-width: 40em) {
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;
      line-height: 1.375;
    }

    @media (min-width: 60em) {
      margin-top: 2rem;
      margin-bottom: 2rem;
      line-height: 1.5;
    }
  }

  /* NOTE: headings based roughly on the following scales:
    default: 1.0625 Minor Second
    @media (min-width: 20em): 1.125 Major Second
    @media (min-width: 40em): 1.2 Minor Third
    @media (min-width: 60em): 1.25 Major Third
  */

  & h1 {
    font-size: 1.625rem; /* 26px */

    @media (min-width: 20em) {
      font-size: 2rem; /* 32px */
    }

    @media (min-width: 40em) {
      font-size: 2.8125rem; /* 45px */
    }

    @media (min-width: 60em) {
      font-size: 3.25rem; /* 52px */
    }
  }

  & h2 {
    font-size: 1.5rem; /* 24px */

    @media (min-width: 20em) {
      font-size: 1.8125rem; /* 29px */
    }

    @media (min-width: 40em) {
      font-size: 2.3125rem; /* 37px */
    }

    @media (min-width: 60em) {
      font-size: 2.625rem; /* 42px */
    }
  }

  & h3 {
    font-size: 1.4375rem; /* 23px */

    @media (min-width: 20em) {
      font-size: 1.625rem; /* 26px */
    }

    @media (min-width: 40em) {
      font-size: 1.9375rem; /* 31px */
    }

    @media (min-width: 60em) {
      font-size: 2.125rem; /* 34px */
    }
  }

  & h4 {
    font-size: 1.375rem; /* 22px */

    @media (min-width: 20em) {
      font-size: 1.4375rem; /* 23px */
    }

    @media (min-width: 40em) {
      font-size: 1.625rem; /* 26px */
    }

    @media (min-width: 60em) {
      font-size: 1.6875rem; /* 27px */
    }
  }

  & h5 {
    font-size: 1.1875rem; /* 19px */

    @media (min-width: 20em) {
      font-size: 1.25rem; /* 20px */
    }

    @media (min-width: 40em) {
      font-size: 1.375rem; /* 22px */
    }

    @media (min-width: 60em) {
      font-size: 1.325rem; /* 22px */
    }
  }

  & h6 {
    font-size: 1.125rem; /* 18px */

    @media (min-width: 20em) {
      font-size: 1.125rem; /* 18px */
    }

    @media (min-width: 40em) {
      font-size: 1.125rem; /* 18px */
    }

    @media (min-width: 60em) {
      font-size: 1.125rem; /* 18px */
    }
  }

  /* NOTE: main page header */
  & .erg-page-header {
    margin-top: 1rem;
    margin-bottom: 1rem;

    @media (min-width: 20em) {
      margin-top: 2rem;
      margin-bottom: 2rem;
    }

    @media (min-width: 40em) {
      margin-top: 3rem;
      margin-bottom: 3rem;
    }

    @media (min-width: 60em) {
      margin-top: 4rem;
      margin-bottom: 4rem;
    }
  }

  & table {
    margin-top: 1rem;
    width: 100%;
    border-spacing: 1px;
    border-color: white;
    font-size: 0.875rem;
    line-height: 1.25;

    & tr {
      /* zebra striping */
      &:nth-of-type(even) {
        /* background-color: rgb(from var(--erg-orange) r g b / 20%); */
        background-color: color-mix(
          in srgb,
          var(--erg-orange) 20%,
          transparent
        );
      }

      &:nth-of-type(odd) {
        /* background-color: rgb(from var(--erg-orange) r g b / 10%); */
        background-color: color-mix(
          in srgb,
          var(--erg-orange) 10%,
          transparent
        );
      }
    }

    & th {
      padding: 0.5rem 0.625rem;
      /* text-shadow: 0 0 0.375rem rgb(from black r g b / 12.5%); */
      text-shadow: 0 0 0.375rem color-mix(in srgb, black 12.5%, transparent);
      color: white;
      /* background-color: rgb(from var(--erg-orange) r g b / 80%); */
      background-color: color-mix(in srgb, var(--erg-orange) 80%, transparent);
    }

    & td {
      padding: 0.375rem 0.625rem;
      vertical-align: top;
    }
  }
}

.erg-accent-text {
  font-weight: 700;
  line-height: 1.25;
  color: var(--erg-orange);
  text-transform: uppercase;
  letter-spacing: 1px;

  @media (min-width: 30em) {
    font-size: 1.125rem; /* 18px */
  }
}

.erg-lead-text {
  font-size: 1.125rem; /* 18px */

  @media (min-width: 20em) {
    font-size: 1.1875rem; /* 19px */
  }

  @media (min-width: 40em) {
    font-size: 1.25rem; /* 20px */
    text-align: justify;
  }
}

.erg-section-header {
  text-align: center;

  & .erg-section-title {
    margin-bottom: 0;
  }
}

:is(.erg-button, .erg-button-prev, .erg-button-next, .erg-button-large) {
  display: inline-block;
  border: 1px solid var(--erg-orange);
  border-radius: 3px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: white;
  background-color: var(--erg-orange);

  &:hover,
  &:focus {
    /* NOTE: when CSS relative color syntax is widely supported,
    we should use the following to darken the erg-orange color by 10% */
    /* background-color: hsl(from var(--erg-orange) h s calc(l - 10%)); */
    background-color: #f0470c;
  }
}

.erg-button-prev::before {
  content: "\00ab\00a0"; /* left double arrow */
  font-size: 1.25rem;
}

.erg-button-next::after {
  content: "\00a0\00bb"; /* right double arrow */
  font-size: 1.25rem;
}

.erg-button-large {
  border-color: var(--dark-grey);
  padding: 0.75rem 2rem;
  color: var(--dark-grey);
  background-color: white;

  &:hover,
  &:focus {
    border-color: var(--grey6);
    color: var(--grey6);
    background-color: inherit;
  }

  @media (min-width: 30em) {
    padding: 1rem 3.5rem;
  }
}

:is(.erg-quote-large, .erg-quote-small) {
  line-height: 1.25;
  font-style: italic;
  text-indent: -0.5625rem; /* hanging indent */

  @media (min-width: 30em) {
    line-height: 1.375;
  }

  @media (min-width: 60em) {
    line-height: 1.5;
  }

  /* curly quotes */
  & p::before {
    content: "“";
  }

  & p::after {
    content: "”";
  }
}

.erg-quote-large {
  font-weight: 600;
  font-size: 1.25rem; /* 20px */

  @media (min-width: 30em) {
    font-size: 1.375rem; /* 22px */
  }

  @media (min-width: 60em) {
    font-size: 1.5rem; /* 24px */
  }
}

.erg-quote-small {
  color: var(--grey9);

  @media (min-width: 30em) {
    font-size: 1.0625rem; /* 17px */
  }

  @media (min-width: 60em) {
    font-size: 1.125rem; /* 18px */
  }
}

.erg-quote-source {
  font-weight: 700;
  font-style: normal;

  /* remove curly quotes */
  &::before,
  &::after {
    display: none;
  }
}

.erg-details-list {
  margin-top: 1rem;
  border-top: 1px solid var(--greye);

  @media (min-width: 30em) {
    margin-top: 2rem;
  }

  & details {
    border-bottom: 1px solid var(--greye);
  }

  & summary {
    position: relative; /* relative positioning for the after pseudo icon */
    padding: 0.625rem 2.8125rem 0.625rem 1rem; /* extra right padding to account for +/- symbol */
    font-weight: 700;
    cursor: pointer;
  }

  & .erg-details-content {
    padding: 0.625rem 1rem; /* match padding from summary element */

    & *:first-child {
      margin-top: 0;
    }

    & li {
      margin-bottom: 0.5rem;
    }
  }

  /* hide webkit toggle triangle */
  & details summary::-webkit-details-marker,
  & details summary::marker {
    display: none;
    content: "";
  }

  & details summary::after {
    content: "+";
    position: absolute;
    top: 0.25rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--erg-orange);
  }

  & details[open] summary::after {
    content: "–";
    top: 0.125rem;
  }
}

.erg-rule-primary {
  margin: 3rem 0;
  border-top: 1px solid var(--greyd);
  border-bottom: 1px solid var(--greyd);
  border-left: none;
  border-right: none;
  height: 0.5rem;
}

.erg-rule-secondary {
  margin: 3rem auto;
  border: none;
  width: 6.25rem; /* 100px */
  height: 0.25rem;
  background-color: var(--greyc);
}

.erg-rule-gap {
  margin: 3rem auto 0;
  border: none;
}

.erg-form {
  & fieldset {
    border: none;

    & *:first-child {
      margin-top: 0;
    }
  }

  & label {
    display: block;
    font-size: 0.875rem;
  }

  & :is(input, textarea) {
    padding: 0.5rem;
    border: none;
    width: 100%;
    font-size: 1rem;
    background-color: var(--greye);
  }

  & textarea {
    font-family: inherit;
    resize: none;
  }

  & button {
    font-size: inherit;
    cursor: pointer;
  }
}

:is(.erg-container, .erg-wide-container, .erg-narrow-container) {
  position: relative;
  margin: 0 auto;
  padding: 0 1rem;

  /* remove compounding padding for nested containers */
  & :is(.erg-container, .erg-wide-container, .erg-narrow-container) {
    padding: 0;
  }
}

.erg-container {
  max-width: 66rem; /* 1024px (not including padding) */
}

.erg-wide-container {
  max-width: 80rem; /* 1248px (not including padding) */
}

.erg-narrow-container {
  max-width: 45.75rem; /* 700px (not including padding) */
}

.erg-cover-panel {
  position: relative;
  width: 100%;
  height: 100vh;
  color: white;
  /* text-shadow: 0 0 0.375rem rgb(from black r g b / 50%); */
  text-shadow: 0 0 0.375rem color-mix(in srgb, black 50%, transparent);
  /* NOTE: background image needs to be set separately */
  background-position: center center;
  background-size: cover;
}

.erg-cover-centered {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  max-width: 66rem; /* same max-width as .erg-container */
  padding: 0 1rem;
}

.erg-grid-block {
  display: flex;
  flex-flow: row wrap;

  & a {
    display: flex;
    text-decoration: none;

    /* show semi-transparent overlay and zoom in image on hover */
    &:hover,
    &:focus {
      & .erg-grid-figure::after {
        opacity: 0.5;
      }

      & img {
        transform: scale(1.1);
      }
    }
  }
}

.erg-grid-half {
  width: 100%;

  @media (min-width: 50em) {
    width: 50%;
  }
}

.erg-grid-third {
  width: 100%;

  @media (min-width: 40em) {
    width: 50%;
  }

  @media (min-width: 60em) {
    width: calc(100% / 3);
  }
}

.erg-grid-fourth {
  width: 100%;

  @media (min-width: 40em) {
    width: 50%;
  }

  @media (min-width: 60em) {
    width: 25%;
  }
}

.erg-grid-fifth {
  width: 100%;

  @media (min-width: 40em) {
    width: 50%;
  }

  @media (min-width: 60em) {
    width: 20%;
  }
}

.erg-margin-loose {
  margin: 1rem;
  width: calc(100% - 2rem);
}

.erg-margin-tight {
  margin: 1px;
  width: calc(100% - 2px);
}

.erg-grid-figure {
  position: relative;
  overflow: hidden;

  &::before {
    /* 8:5 aspect ratio */
    content: "";
    display: block;
    padding-top: calc(5 / 8 * 100%);
  }

  /* semi-transparent overlay */
  &::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  & img {
    /* fill figure with image */
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease;
    /* IE10 fix */
    border: none;
  }
}

.erg-media-block {
  overflow: hidden;

  & .erg-media-figure {
    margin: 0 auto 1rem;

    @media (min-width: 40em) {
      float: left;
      margin-right: 1rem;
    }
  }

  & .erg-media-text {
    overflow: hidden;
    padding: 0 1rem;
    text-align: center;

    @media (min-width: 40em) {
      text-align: left;
    }

    & *:first-child {
      margin-top: 0;
    }
  }
}

.erg-columns-two {
  margin-top: 1rem;
  column-gap: 2rem;
  column-count: 2; /* max number of columns */
  column-width: 20rem; /* 320px – min width of columns */

  & *:first-child {
    margin-top: 0;
  }

  /* prevent list item orphans inside columns */
  & li {
    display: inline-block;
    width: 100%;
  }
}

.erg-site-alert {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: var(--erg-green);
  /* box-shadow: 0 0 2px rgb(from black r g b / 50%); */
  box-shadow: 0 0 2px color-mix(in srgb, black 50%, transparent);

  & p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
    color: white;
  }

  & a {
    display: inline-block;
    padding: 0.375rem 0.5rem;
    color: inherit;
    text-decoration: none;

    &:hover .erg-site-alert-button,
    &:focus .erg-site-alert-button {
      /* background-color: rgb(from white r g b / 31.25%); */
      background-color: color-mix(in srgb, white 31.25%, transparent);
      /* text-shadow: 0 0 3px rgb(from black r g b / 25%); */
      text-shadow: 0 0 3px color-mix(in srgb, black 25%, transparent);
    }
  }

  & svg {
    display: inline;
    vertical-align: middle;
    position: relative;
    top: -1px;
  }

  & svg.erg-site-alert-dot {
    margin: 0 0.5rem;
    width: 4px;
    height: 4px;
    fill: currentColor;
  }

  & svg.erg-site-alert-arrow {
    margin-left: 0.25rem;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;

    & path {
      stroke-linecap: round;
      stroke-linejoin: round;
    }
  }

  & .erg-site-alert-title {
    font-weight: 700;
    /* text-shadow: 0 0 3px rgb(from black r g b / 12.5%); */
    text-shadow: 0 0 3px color-mix(in srgb, black 12.5%, transparent);
  }

  & .erg-site-alert-button {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    /* border: 1px solid rgb(from white r g b / 37.5%); */
    border: 1px solid color-mix(in srgb, white 37.5%, transparent);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
    /* background-color: rgb(from white r g b / 18.75%); */
    background-color: color-mix(in srgb, white 18.75%, transparent);
    /* text-shadow: 0 0 3px rgb(from black r g b / 12.5%); */
    text-shadow: 0 0 3px color-mix(in srgb, black 12.5%, transparent);
    transition: all var(--transition-time) ease-in-out;
  }
}

.erg-site-header {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  /* background-color: rgb(from white r g b / 93.75%); */
  background-color: color-mix(in srgb, white 93.75%, transparent);
  border-bottom: 1px solid var(--graye);
  overflow: hidden;

  @media (min-width: 60em) {
    height: 8.5rem;
    transition: height var(--transition-time) ease;
  }

  & nav {
    /*
      NOTE: max-height set to value larger than normal displayed height so it
      can be transitioned when .erg-nav-toggle is clicked
    */
    max-height: 25rem; /* 400px */
    transition: max-height var(--transition-time) ease;

    @media (min-width: 60em) {
      float: right;
      padding: 2.625rem 0.5rem;
      transition: padding var(--transition-time) ease;
    }

    & ul {
      list-style: none;
      text-align: center;
    }

    & li {
      @media (min-width: 60em) {
        float: left;
      }
    }

    & a {
      display: block;
      padding: 0.875rem 1.25rem;
      border-top: 1px solid var(--greye);
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--dark-grey);
      text-decoration: none;

      &:hover,
      &:focus {
        color: var(--erg-green);
      }

      @media (min-width: 60em) {
        /* allows for underline on .reversed-site-header nav links */
        margin: 0.5rem 0.875rem 0.3125rem;
        padding: 0.5rem 0;
        border-bottom: 0.1875rem solid transparent;
        /* pervious three rules are visually equivalent to "padding: 1rem 1.25rem;" */
        border-top: none;
      }

      @media (min-width: 70em) {
        margin: 0.5rem 1.25rem 0.3125rem;
      }
    }
  }
}

.erg-reversed-site-header {
  @media (min-width: 60em) {
    background-color: transparent;
    border-bottom: 1px solid transparent;

    & nav a {
      color: white;
      /* text-shadow: 0 0 0.375rem rgb(from black r g b / 50%); */
      text-shadow: 0 0 0.375rem color-mix(in srgb, black 50%, transparent);

      &:hover,
      &:focus {
        border-bottom-color: white;
        color: white;
      }
    }

    & .erg-site-logo a {
      background-position: -166px -6px;
    }
  }
}

.erg-nav-toggle {
  position: absolute;
  top: 0.5625rem;
  right: 1rem;
  width: 2.625rem;
  height: 2.625rem;
  background-image: url("../img/erg_icons.svg");
  background-size: 400px 200px;
  background-position: -62px -148px;
  /* hide text */
  text-indent: 400%;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer; /* pointer cursor since there's no href */

  /* hide nav when toggle isn't active */
  &[data-active="false"] + nav {
    max-height: 0;
  }

  @media (min-width: 60em) {
    display: none;
  }
}

.erg-site-logo {
  transform: scale(0.75);

  @media (min-width: 60em) {
    float: left;
    padding: 2.375rem 1rem;
    transform: scale(1);
    transition: padding var(--transition-time) ease,
      transform var(--transition-time) ease;
  }

  & a {
    display: block;
    margin: 0 auto;
    width: 158px;
    height: 60px;
    background-image: url("../img/erg_icons.svg");
    background-size: 400px 200px;
    background-position: -6px -6px;
    /* hide text */
    text-indent: 400%;
    white-space: nowrap;
    overflow: hidden;
  }
}

.erg-site-main {
  margin-top: 3.75rem; /* account for header height */
  padding-top: 0.0625rem; /* prevent children element's top margin from collapsing */

  @media (min-width: 60em) {
    margin-top: 12.5rem; /* re-account for header height */
    padding-top: 0;
  }
}

/* first section in .erg-site-main */
.erg-reversed-first-section {
  @media (min-width: 60em) {
    position: relative;
    margin-top: -12.5rem; /* position underneath reversed site header */

    /* semi-transparent overlay */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      /* background-color: rgb(from black r g b / 25%); */
      background-color: color-mix(in srgb, black 25%, transparent);
    }
  }
}

/* scrolled styles (data-attribute attached to body via JS) */
[data-scrolled="true"] {
  @media (min-width: 60em) {
    & .erg-site-header {
      height: 4.25rem;

      & nav {
        padding: 0.5rem;
      }
    }

    & .erg-site-logo {
      padding: 0.25rem 1rem;
      transform: scale(0.75);
    }

    /* undo styles applied for reversed-site-header */
    & .erg-reversed-site-header {
      /* background-color: rgb(from white r g b / 93.75%); */
      background-color: color-mix(in srgb, white 93.75%, transparent);
      border-bottom-color: var(--greye);

      & nav a {
        color: var(--dark-grey);
        text-shadow: none;

        &:hover,
        &:focus {
          color: var(--erg-green);
          border-bottom-color: transparent;
        }
      }

      & .erg-site-logo a {
        background-position: -6px -6px;
      }
    }

    & .erg-site-main {
      margin-top: 8.25rem;
    }

    & .erg-reversed-first-section {
      margin-top: -8.25rem;
    }
  }
}

.erg-site-footer {
  margin: 4rem 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--greye);
  overflow: hidden;

  & .erg-accreditations {
    & ul {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-flow: row wrap;
      margin: 0.375rem;
      list-style: none;
    }

    & li {
      margin: 0 1.5rem;
    }

    & a {
      display: block;
    }

    & img {
      height: 3rem;

      @media (min-width: 40em) {
        height: 3.5rem;
      }

      @media (min-width: 70em) {
        height: 4rem;
      }
    }
  }

  & nav {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    & ul {
      list-style: none;
    }

    & li {
      float: left;
    }

    & a {
      display: block;
      margin: 1rem;
      padding: 5px; /* makes text height equal to icons height */
      font-weight: 700;
      font-size: 0.875rem;
      color: var(--dark-grey);
      text-align: center;
      text-transform: uppercase;
      text-decoration: none;

      &:hover,
      &:focus {
        color: var(--erg-green);
      }
    }

    /* NOTE: social media icons */
    & :is(a[href*="twitter"], a[href*="facebook"], a[href*="linkedin"]) {
      width: 24px;
      height: 24px;
      background-image: url("../img/erg_icons.svg");
      background-size: 400px 200px;
      /* hide text */
      text-indent: 400%;
      white-space: nowrap;
      overflow: hidden;
    }

    & a[href*="twitter"] {
      background-position: -10px -80px;

      &:hover,
      &:focus {
        background-position: -10px -114px;
      }
    }

    & a[href*="facebook"] {
      background-position: -44px -80px;

      &:hover,
      &:focus {
        background-position: -44px -114px;
      }
    }

    & a[href*="linkedin"] {
      background-position: -78px -80px;

      &:hover,
      &:focus {
        background-position: -78px -114px;
      }
    }

    /* NOTE: center 'contact' and 'privacy policy' links above/below social media icons */
    & :is(li:first-of-type, li:last-of-type) {
      float: none;

      /* NOTE: re-apply float, so links are displayed inline with social media icons */
      @media (min-width: 30em) {
        float: left;
      }
    }

    & li:first-of-type a {
      margin-bottom: 0;
    }

    & li:last-of-type a {
      margin-top: 3.75rem;

      @media (min-width: 30em) {
        margin-top: 1rem;
      }
    }
  }
}

.erg-site-copyright {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--greyb);
  text-align: center;
}

/* hero heading (service pages) */
.erg-hero-heading {
  position: relative;
  /* match .erg-page-header margin */
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* background color is a fallback as background image is declared as inline style */
  background-color: var(--erg-green);
  background-size: cover;
  background-position: center center;

  /* semi-transparent overlay */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background-color: rgb(from black r g b / 25%); */
    background-color: color-mix(in srgb, black 25%, transparent);
  }

  @media (min-width: 20em) {
    margin-bottom: 1rem;
    /* match .erg-page-header margin */
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  @media (min-width: 40em) {
    margin-bottom: 2rem;
    /* match .erg-page-header margin */
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  @media (min-width: 60em) {
    /* account for .erg-site-header */
    position: relative;
    top: -4rem;
    margin-bottom: -2rem;
    /* match .erg-page-header margin */
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  & h1 {
    margin: 0;
    color: white;
    /* text-shadow: 0 0 0.375rem rgb(from black r g b / 50%); */
    text-shadow: 0 0 0.375rem color-mix(in srgb, black 50%, transparent);
  }
}

/* service tiles (homepage) */
.erg-service-tile {
  position: relative;
  color: white;
  background-color: transparent;

  & .erg-service-text {
    position: absolute;
    inset: 0;
  }

  & .erg-service-name {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1.25rem;
    text-align: center;
    /* text-shadow: 0 0 0.375rem rgb(from black r g b / 50%); */
    text-shadow: 0 0 0.375rem color-mix(in srgb, black 50%, transparent);
  }
}

/* project tiles (homepage, projects page, and service pages) */
.erg-project-tiles {
  margin-top: 1.5rem;
}

.erg-project-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  color: white;
  background-color: var(--dark-grey);

  & .erg-project-text {
    padding: 1rem 1.25rem;
  }

  & .erg-project-name {
    margin-top: 0;
  }

  & .erg-project-clients {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.375;
    color: transparent; /* invisible text, but still accessible and takes up space */

    /* absolutely positioned data-text attribute text (same text as paragraph) */
    &::after {
      content: attr(data-text);
      color: white;
      /* positioning and width match .erg-project-text padding */
      position: absolute;
      bottom: 1rem;
      left: 1.25rem;
      width: calc(100% - 2.5rem);
    }
  }
}

/* news tiles (news page, news story pages) */
.erg-news-tile {
  padding: 0.5rem;
  border-top: 1px solid var(--greye);

  &:hover {
    background-color: whitesmoke;
  }

  /* NOTE: bottom border below last news title */
  &:last-child {
    @media (min-width: 40em) {
      border-bottom: 1px solid var(--greye);
    }
  }

  /* NOTE: bottom border below second to last news title */
  &:nth-last-child(2) {
    @media (min-width: 50em) {
      border-bottom: 1px solid var(--greye);
    }
  }

  /* NOTE: vertical divider between left and right news tiles */
  &:nth-of-type(even) {
    @media (min-width: 50em) {
      border-right: 1px solid var(--greye);
    }
  }

  /* NOTE: special styling for first news tile */
  &:first-of-type {
    @media (min-width: 50em) {
      width: 100%;

      & .erg-news-figure + .erg-news-text {
        width: calc(100% - 14rem); /* 100% - news figure width + right margin */
      }

      & .erg-news-title {
        font-size: 1.5rem;
        line-height: 1.25;
      }
    }

    @media (min-width: 60em) {
      & .erg-news-title {
        font-size: 1.75rem;
      }
    }
  }

  & .erg-news-figure {
    overflow: hidden;
    border-radius: 0.25rem;

    @media (min-width: 40em) {
      float: left;
      margin-right: 1.5rem;
      width: 37.5%;
      max-width: 12.5rem; /* 200px */
    }
  }

  & .erg-news-figure + .erg-news-text {
    @media (min-width: 40em) {
      float: left;
      width: calc(100% - 14rem); /* 100% - news figure width + right margin */
    }

    @media (min-width: 50em) {
      width: calc(62.5% - 1.5rem); /* news figure width - right margin */
    }
  }

  & .erg-news-date {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--grey6);

    @media (min-width: 40em) {
      margin-top: 0;
    }
  }

  & .erg-news-title {
    margin-top: 0.25rem;
    margin-bottom: 0;
    color: var(--grey4);
  }
}

.erg-news-nav {
  margin-top: 3.5rem;
  text-align: center;

  /* prev/next links */
  & a {
    margin: 0.5rem 1rem;
  }
}

/* news header (news story pages) */
.erg-news-header {
  & .erg-page-header {
    margin-bottom: 0;
  }

  /* date text */
  & .erg-accent-text {
    margin: 1rem 0;

    @media (min-width: 20em) {
      margin: 1rem 0 2rem;
    }

    @media (min-width: 40em) {
      margin: 2rem 0 3rem;
    }

    @media (min-width: 60em) {
      margin: 3rem 0 4rem;
    }
  }
}

/* bio panels (service pages) */
.erg-bio-panel {
  margin: 2rem 1rem 4rem 1rem;
}

/* bio photos (service pages and bio pages) */
.erg-bio-photo {
  overflow: hidden;
  border-radius: 50%;
  width: 6.25rem; /* 100px */
  height: 6.25rem; /* 100px */

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

/* bio quote (bio pages) */
.erg-bio-quote {
  color: var(--grey9);

  @media (min-width: 40em) {
    text-align: justify;
  }
}

/* veteran icon (people page and bio pages) */
.erg-bio-veteran {
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-image: url("../img/us_flag_icon.svg");
  background-size: 1.5rem 1.5rem;
}

/* bio headers (bio pages) */
.erg-bio-header {
  margin-top: 4rem;
}

/* bio title (bio pages) */
.erg-bio-title {
  margin-top: 1rem;

  & .erg-bio-name {
    margin-bottom: 0;
  }

  & .erg-bio-position {
    margin-top: 0.25rem;
  }
}

/* primary photo (project pages, news story pages) */
.erg-primary-photo {
  margin-bottom: 2rem;

  @media (min-width: 30em) {
    margin-bottom: 3rem;
  }

  @media (min-width: 60em) {
    margin-bottom: 4rem;
  }

  & img {
    display: block;
    overflow: hidden;
    border-radius: 0.25rem;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    /* maintain 8:5 aspect ratio */
    max-width: 43.75rem; /* 700px */
    max-height: 27.375rem; /* 438px */
    object-fit: cover;
  }
}

/* slider */
[data-feature="slider"] {
  margin-top: 2rem;

  & [data-feature="slider-window"] {
    position: relative;
    overflow: hidden;

    & [data-feature="slider-panels"] {
      position: relative;
      /* width set with JS: 100% * number of panels */
      left: 0;
      transition: left var(--transition-time) ease;
    }

    & [data-feature="slider-panel"] {
      /* absolute positioning set with JS */
      /* left set with JS: width * index of panel */
      /* width set with JS: 100% / number of panels */
      top: 0;

      &[data-active="true"] {
        /* !important to override absolute positioning set with JS */
        position: relative !important;
      }
    }
  }

  & [data-feature="slider-numbers"] {
    margin-top: 0.5rem;
    text-align: center;

    & p {
      font-size: 0.8125rem;
      line-height: 0.75rem;
    }

    & span {
      margin: 0 0.125rem;
      font-weight: 600;
    }
  }

  & [data-feature="slider-dots"] {
    text-align: center;
    line-height: 0;

    & li {
      display: inline-block;
      margin: 0 0.1875rem;
    }

    & a {
      position: relative;
      display: block;
      width: 0.625rem;
      height: 0.625rem;
      border-radius: 50%;
      /* background-color: rgb(from white r g b / 50%); */
      background-color: color-mix(in srgb, white 50%, transparent);
      /* box-shadow: 0 0 2px rgb(from black r g b / 50%); */
      box-shadow: 0 0 2px color-mix(in srgb, black 50%, transparent);
    }

    /* NOTE: active dot indicator */
    & [data-active="true"] a,
    & a:hover,
    & a:focus {
      background-color: white;
    }

    /* NOTE: show card title on hover */
    & a:hover::before {
      content: attr(data-title);
      position: absolute;
      top: -2.875rem;
      left: -0.625rem;
      padding: 0.5rem 0.625rem 0.375rem;
      border-radius: 0.1875rem;
      font-size: 0.875rem;
      line-height: 1;
      white-space: nowrap;
      color: white;
      background: var(--grey4);
    }

    & a:hover::after {
      content: "";
      position: absolute;
      top: -1.125rem;
      left: 0;
      border-left: 0.375rem solid transparent;
      border-right: 0.375rem solid transparent;
      border-top: 0.375rem solid var(--grey4);
    }
  }

  & [data-feature="slider-arrows"] {
    & li {
      position: absolute;
      top: 0;
      list-style: none;
    }

    & [data-arrow="prev"] {
      left: 0;
    }

    & [data-arrow="next"] {
      right: 0;
    }

    & a {
      /* hide text */
      text-indent: 400%;
      white-space: nowrap;
      overflow: hidden;
      /* left/right arrow icons */
      display: block;
      width: 54px;
      height: 54px;
      opacity: 0.5;
      background-image: url("../img/orca_icons.svg");
      background-size: 400px 200px;

      &:hover {
        opacity: 1;
      }
    }

    & [data-arrow="prev"] a {
      background-position: -74px -10px;
    }

    & [data-arrow="next"] a {
      background-position: -138px -10px;
    }
  }

  & [data-feature="slider-menu"] {
    position: absolute;
    top: 0;
    right: 0;

    & [data-feature="slider-menu-toggle"] {
      float: right;
      /* hide text */
      text-indent: 400%;
      white-space: nowrap;
      overflow: hidden;
      /* hamburger icon */
      display: block;
      width: 54px;
      height: 54px;
      opacity: 0.5;
      background-image: url("../img/orca_icons.svg");
      background-size: 400px 200px;
      background-position: -10px -10px;

      &:hover {
        opacity: 1;
      }

      /* NOTE: display card list dropdown when paragraph (menu) is clicked */
      &[data-active="true"] + ul {
        display: block;
      }
    }

    & ul {
      /* initially hide card list */
      display: none;
      float: right;
      clear: right;
      margin: 0;
      /* display on top of card */
      position: relative;
      z-index: 1;
    }

    & li {
      list-style: none;
      background-color: var(--grey4);

      &:hover,
      &:focus,
      &[data-active="true"] {
        background-color: var(--grey3);
      }

      & a {
        display: block;
        padding: 0.25rem 0.5rem;
        border-top: 1px solid var(--grey6);
        font-size: 0.875rem;
        color: white;
      }
    }
  }

  & [data-feature="slider-tabs"] {
    overflow: hidden;
    margin-bottom: 1rem;

    & ul {
      margin: 0;
      padding: 0;
      border-top: 1px solid var(--greyd);
      list-style: none;

      @media (min-width: 50em) {
        display: flex;
        border-bottom: 1px solid var(--greyd);
      }
    }

    & li {
      border-bottom: 1px solid var(--greyd);
      width: 100%; /* width overridden with JS: 100% / number of tabs */

      @media (min-width: 50em) {
        display: flex;
        border-bottom: none;
      }
    }

    & a {
      display: block;
      border-bottom: 3px solid transparent;
      padding: 0.625rem 0.5rem;
      width: 100%;
      font-size: 1rem;
      line-height: 1.125;
      font-weight: 700;
      text-align: center;
      text-decoration: none;
      color: var(--dark-grey);
      background-color: white;

      @media (min-width: 50em) {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 0.5rem;
        font-size: 1.125rem;
      }
    }

    & [data-active="false"] a:hover,
    & [data-active="false"] a:focus,
    & [data-active="true"] a {
      color: white;
      background-color: var(--erg-orange);
    }

    & [data-active="true"] a {
      @media (min-width: 50em) {
        border-color: var(--erg-orange);
        color: var(--erg-orange);
        background-color: white;
      }
    }
  }
}

/* homepage – hero section */
.erg-home-hero-section {
  padding: 2rem 0 1.5rem;
  height: auto;
  /* section is also given class .erg-cover-panel */
  background-image: url("../img/hero_background.png");

  @media (min-width: 60em) {
    height: 100vh;
    min-height: 42.5rem;
  }

  & .erg-cover-centered {
    top: 0;
    transform: none;
    overflow: hidden;

    @media (min-width: 60em) {
      top: 50%;
      transform: translateY(-50%);
    }
  }

  & ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  & .erg-cover-text {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    letter-spacing: -0.5px;

    @media (min-width: 20em) {
      margin-bottom: 2rem;
      font-size: 1rem;
    }

    @media (min-width: 30em) {
      margin-bottom: 2.5rem;
      font-size: 1.5rem;
    }

    @media (min-width: 40em) {
      margin-bottom: 3rem;
      font-size: 1.75rem;
    }

    @media (min-width: 50em) {
      margin-bottom: 3.5rem;
      font-size: 2rem;
    }

    @media (min-width: 60em) {
      margin-bottom: 4rem;
      font-size: 2.5rem;
      line-height: 1.375;
    }
  }

  & span {
    font-size: 1rem;
    font-weight: 700;

    @media (min-width: 20em) {
      font-size: 1.25rem;
    }

    @media (min-width: 30em) {
      font-size: 1.75rem;
    }

    @media (min-width: 40em) {
      font-size: 2rem;
    }

    @media (min-width: 50em) {
      font-size: 2.5rem;
    }

    @media (min-width: 60em) {
      font-size: 3rem;
    }
  }

  /* NOTE: indent hero message text */
  @media (min-width: 40em) {
    & .erg-message-1 {
      text-indent: 4rem;
    }

    & .erg-message-2 {
      text-indent: 1rem;
    }

    & .erg-message-3 {
      text-indent: 3rem;
    }

    & .erg-message-4 {
      text-indent: 4rem;
    }

    & .erg-message-5 {
      text-indent: 2rem;
    }

    & .erg-message-6 {
      text-indent: 5rem;
    }
  }
}

/* homepage – hero scroll button */
.erg-hero-scroll {
  margin-top: 2rem;
  margin-bottom: -1.5rem;
  padding-bottom: 1.5rem;
  width: 100%;
  /* background-image: linear-gradient(to top, rgb(from black r g b / 66%), transparent); */
  background-image: linear-gradient(
    to top,
    color-mix(in srgb, black 66%, transparent),
    transparent
  );

  @media (min-width: 60em) {
    position: absolute;
    bottom: 1.5rem;
  }

  & a {
    display: inline-block;
    font-weight: 700;
    color: white;
    text-decoration: none;

    /* down arrow */
    &::after {
      content: "";
      display: block;
      margin: 0 auto;
      width: 42px;
      height: 42px;
      background-image: url("../img/erg_icons.svg");
      background-size: 400px 200px;
      background-position: -10px -148px;
      transition: transform 0.5s ease;
    }

    &:hover::after {
      transform: translateY(10px);
    }
  }
}

/* homepage – services section */
.erg-home-services-section {
  & .erg-grid-block {
    /* align services grid block with projects grid block below */
    padding: 0 1rem 1rem;
  }
}

/* homepage – projects section */
.erg-home-projects-section {
  margin-bottom: 4rem;

  & .erg-more-nav {
    text-align: center;
  }
}

/* homepage – projects section */
.erg-home-about-section {
  min-height: 45rem;
  /* NOTE: section is also given class .erg-cover-panel */
  background-image: linear-gradient(to top, rgb(6, 33, 80) 0%, transparent 100%),
    url("../img/hero_background.png");

  & .erg-section-header {
    color: white;
  }

  & .erg-cover-text {
    @media (min-width: 20em) {
      margin-bottom: 2rem;
      font-size: 1rem;
    }

    @media (min-width: 30em) {
      margin-bottom: 2.5rem;
      font-size: 1.25rem;
    }

    @media (min-width: 40em) {
      margin-bottom: 3rem;
      font-size: 1.5rem;
    }

    @media (min-width: 50em) {
      margin-bottom: 3.5rem;
      font-size: 1.75rem;
    }

    @media (min-width: 60em) {
      margin-bottom: 4rem;
      font-size: 2rem;
    }
  }

  & .erg-button-large {
    display: inherit;
    padding: 1rem;
    border-color: white;
    color: white;
    background-color: transparent;

    &:hover {
      /* background-color: rgb(from white r g b / 25%); */
      background-color: color-mix(in srgb, white 25%, transparent);
    }
  }
}

/* homepage – news section */
.erg-home-news-section {
  margin-bottom: 4rem;

  & .erg-home-news-tile {
    /* styles modeled after .erg-project-tile */
    overflow: hidden;
    border-radius: 0.25rem;
    color: white;
    background-color: var(--dark-grey);

    & .erg-home-news-text {
      padding: 1rem 1.25rem;
    }

    & .erg-home-news-date {
      margin-top: 0;
      font-size: 0.875rem;
      text-transform: uppercase;
    }

    & .erg-home-news-title {
      margin: 0.5rem 0 0 0;
    }
  }

  & .erg-more-nav {
    margin-top: 2rem;
    text-align: center;
  }
}

/* jobs page – hero section */
.erg-jobs-hero-section {
  margin-bottom: 2rem;
  padding: 0.25rem 0 2.75rem;
  color: white;
  background-image: url("../img/hero_background.png");
  background-position: center center;
  background-size: cover;

  @media (min-width: 30em) {
    margin-bottom: 3rem;
    padding: 2rem 0 5rem;
  }

  @media (min-width: 60em) {
    margin-bottom: 4rem;
    padding: 8rem 0;
  }

  & .erg-lead-text p {
    text-align: center; /* override lead-text's justified alignment */
  }
}

/* jobs page – benefits section */
.erg-jobs-benefits-section {
  & ul {
    padding-left: 0;
    text-align: center;

    /* replicate styling of .erg-unbulleted-list class */
    & li::before {
      content: none;
    }
  }
}

/* about page – intro section */
.erg-about-intro-section {
  & .erg-founder-message {
    margin-top: 2rem;

    @media (min-width: 40em) {
      margin-top: 4rem;
    }
  }

  & .erg-founder-photo {
    overflow: hidden;
    margin: 0 auto 1rem;
    border-radius: 50%;
    width: 10rem; /* 160px */
    height: 10rem; /* 160px */

    @media (min-width: 25em) {
      float: left;
      margin-right: 1.5rem;
      border-radius: 0.25rem;
      height: 11rem; /* 176px */
    }

    /* remove top margin of following element */
    & + * {
      margin-top: 0;
    }
  }
}

/* about page – people section */
.erg-about-people-section {
  & .erg-centered-text p {
    margin-bottom: 2rem;
  }
}

/* about page – clients section */
.erg-about-clients-section {
  & .erg-grid-figure::before {
    /* 1:1 aspect ratio */
    content: "";
    display: block;
    padding-top: 100%; /* calc(1 / 1 * 100%) */
  }

  & .erg-grid-fourth {
    @media (min-width: 20em) {
      width: 50%; /* 2 columns */
    }

    @media (min-width: 25em) {
      width: 25%; /* 4 columns */
    }
  }

  & .erg-margin-loose {
    @media (min-width: 40em) {
      /* increase left/right margin */
      margin: 1rem 2rem;
      width: calc(100% - 4rem);
    }

    @media (min-width: 50em) {
      /* increase left/right margin */
      margin: 1rem 3rem;
      width: calc(100% - 6rem);
    }
  }
}

/* about page – contracts section */
.erg-about-contracts-section {
  /* small screen table overrides */
  & table {
    & :is(th, td) {
      width: 100% !important;
      float: left;

      @media (min-width: 25em) {
        width: auto !important;
        float: none;
      }
    }

    & th:last-child {
      display: none;

      @media (min-width: 25em) {
        display: table-cell;
      }
    }
  }
}

/* about page – awards section */
.erg-about-awards-section {
  & li + li {
    margin-top: 1rem;
  }
}

/* about page – community section */
.erg-about-community-section {
  & h6 {
    margin-bottom: 0;

    /* reduce top margin of first header */
    &:first-of-type {
      margin-top: 1rem;
    }

    /* remove top margin of following paragraph */
    & + p {
      margin-top: 0;
    }
  }
}

/* about page – contact section */
.erg-about-contact-section {
  & .erg-contact-offices {
    @media (min-width: 50em) {
      float: left;
      width: calc(25% - 1rem);
    }
  }

  & .erg-office-select {
    margin-top: 0.5rem;
    padding: 0.25rem 0.375rem;
    width: 100%;
    font-size: 1rem;

    @media (min-width: 50em) {
      display: none; /* hide on large screens */
    }
  }

  & .erg-office-list {
    display: none; /* hide on small screens */

    @media (min-width: 50em) {
      display: inherit; /* show on large screens */
    }

    & li {
      padding: 0.5rem;
      border-bottom: 1px solid var(--greye);
      font-size: 0.875rem;
      line-height: 1.375;
      cursor: pointer;

      &:hover {
        background-color: var(--greye);
      }
    }
  }

  & .erg-contact-map {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;

    &::before {
      /* 1:1 aspect ratio */
      content: "";
      display: block;
      padding-top: 100%; /* calc(1 / 1 * 100%) */
    }

    @media (min-width: 25em) {
      &::before {
        /* 4:3 aspect ratio */
        padding-top: 75%; /* calc(3 / 4 * 100%) */
      }
    }

    & .erg-google-map {
      position: absolute;
      inset: 0;
    }
  }

  & :is(.erg-contact-map, .erg-contact-map-info) {
    @media (min-width: 50em) {
      float: right;
      width: calc(75% - 1rem);
    }
  }
}

/* NOTE: office info (Google Maps popup) */
.erg-office-info {
  max-width: 16rem;

  & p {
    margin-top: 0.375rem;
    line-height: 1.25;
  }

  & a {
    text-decoration: none;
    color: #427fed;
  }

  & .erg-office-name {
    font-size: 0.875rem;
    font-weight: 600;
  }

  /* leave room for icons */
  & :is(.erg-office-address, .erg-office-phone, .erg-office-google) {
    position: relative;
    margin-left: 1.25rem;

    &::before {
      content: "";
      display: inline-block;
      position: absolute;
      left: -1.125rem;
      top: 0.0625rem;
      width: 0.75rem;
      height: 0.75rem;
      background-image: url("../img/erg_icons.svg");
      background-size: 400px 200px;
    }
  }

  & .erg-office-address::before {
    background-position: -112px -80px;
  }

  & .erg-office-phone::before {
    background-position: -112px -103px;
  }

  & .erg-office-google::before {
    background-position: -112px -126px;
  }
}

.erg-map-button {
  padding: 0.5rem;
  border-radius: 3px;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.6875rem;
  text-align: center;
  color: black;
  background-color: white;
  /* box-shadow: 0 1px 4px -1px rgb(from black r g b / 30%); */
  box-shadow: 0 1px 4px -1px color-mix(in srgb, black 30%, transparent);
  cursor: pointer;

  &:hover {
    background-color: #ebebeb;
  }
}

.erg-contact-map-info {
  font-size: 0.8125rem;
  line-height: 1.375;
  color: var(--grey6);

  & p {
    margin-top: 0;
  }
}

.erg-contact-form {
  & fieldset {
    margin-top: 1.3125rem;
    padding: 0 1rem;

    & p {
      margin-top: 1.3125rem; /* same top margin as fieldset itself */
    }
  }
}

.erg-about-contact-section {
  & form {
    & :is(label, legend) {
      display: block;
      margin-top: 1rem;
      font-size: 0.875rem;
      font-weight: 700;
    }

    & fieldset {
      margin-top: 1rem;
      border: 0;
    }

    & :is(input[type="text"], input[type="email"], textarea) {
      padding: 0.5rem;
      border: none;
      width: 100%;
      font-size: 1rem;
      background-color: var(--greye);
    }

    & textarea {
      font-family: inherit;
    }

    & .form-checkboxes {
      & div {
        position: relative;
        margin: 0.5rem 0.25rem;
      }

      & input[type="checkbox"] {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0.125rem;
        width: 0.875rem;
        height: 0.875rem;
      }

      & label {
        margin-top: 0;
        margin-left: 1.25rem;
        font-weight: 400;
        line-height: 1.25;
        cursor: pointer;
      }
    }

    /* replicate .erg-button styles */
    & input[type="submit"] {
      display: inline-block;
      margin-top: 1rem;
      border: 1px solid var(--erg-orange);
      border-radius: 3px;
      padding: 0.5rem 1rem;
      font-weight: 700;
      font-size: inherit;
      line-height: 1;
      text-decoration: none;
      color: white;
      background-color: var(--erg-orange);
      cursor: pointer;

      &:hover,
      &:focus {
        /* NOTE: when CSS relative color syntax is widely supported,
        we should use the following to darken the erg-orange color by 10% */
        /* background-color: hsl(from var(--erg-orange) h s calc(l - 10%)); */
        background-color: #f0470c;
      }
    }

    & input[value="Preview"] {
      display: none;
    }
  }
}

/* people page */
.erg-people-tiles {
  margin-top: 1.5rem;

  /* NOTE: reduce overlay default opacity on hover */
  & a {
    &:hover,
    &:focus {
      & .erg-bio-photo::after {
        opacity: 0.25;
      }
    }
  }
}

.erg-people-tile {
  & .erg-bio-photo {
    margin: 0 auto;
    width: 9rem;
    height: 9rem;

    /* width/height set directly, so no need for before pseudo element */
    &::before {
      display: none;
    }

    /* ensure overlay also has border-radius applied */
    &::after {
      border-radius: 50%;
    }
  }

  & .erg-people-text {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-grey);
  }

  & .erg-bio-name {
    margin-bottom: -0.75rem;
  }
}

/* login page */
.erg-site-login {
  & #block-erg-local-tasks {
    position: static;
    margin-top: 1rem;

    @media (min-width: 60em) {
      position: absolute;
      margin-top: -2.5rem;
    }

    /* style "Log in" and "Reset your password" buttons as links */
    & :is(a, a:hover, a:focus) {
      border: 0;
      color: var(--erg-orange);
      background-color: white;
      text-decoration: underline;
    }

    /* hide "Log in" and "Reset your password" links when on respective page */
    & [data-drupal-link-system-path="user/login"].is-active,
    & [data-drupal-link-system-path="user/password"].is-active {
      display: none;
    }
  }

  & form {
    /* match narrow-container */
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 45.75rem;

    & .form-item {
      margin-bottom: 0.75rem;
    }

    & .description {
      font-size: 0.75rem;
      color: var(--grey6);
    }

    /* password reset info */
    & p {
      margin: -0.75rem 0 0.75rem;
      font-size: 0.75rem;
      color: var(--grey6);
    }

    & label {
      font-size: 0.8125rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--dark-grey);
    }

    & :is(input[type="text"], input[type="password"]) {
      margin: 0.125rem 0 0.25rem;
      padding: 0.125rem 0.25rem;
      width: 100%;
      font-size: 1rem;
      color: var(--grey4);
    }

    & input[type="submit"] {
      /* border: 1px solid rgb(from black r g b / 62.5%); */
      border: 1px solid color-mix(in srgb, black 62.5%, transparent);
      padding: 0.3125rem 0.4325rem;
      border-radius: 3px;
      font-size: 0.8125rem;
      line-height: 1;
      color: var(--grey4);
      /* background-color: rgb(from white r g b / 87.5%); */
      background-color: color-mix(in srgb, white 87.5%, transparent);
      cursor: pointer;

      &:hover,
      &:focus {
        color: white;
        /* background-color: rgb(from black r g b / 62.5%); */
        background-color: color-mix(in srgb, black 62.5%, transparent);
      }
    }
  }
}
