/* footer-basic — tier 1. A quiet dark footer with no rules and no display type. Two zones on a
   twelve-column grid: the brand block at the left (logo, a short line, the address, the phone
   number set in the heading face as the one call), and the link groups set into the right half
   starting lower than the logo, level with the short line, each group as wide as its own
   words rather than in equal columns, its title a small accent-colored caption. Under them the
   legal line. Spacing separates everything. 375px: brand first, then the link groups two across
   (a group holding an email address across the row), then the legal line. */
.footer-basic_component {
  background-color: var(--color--background-alternate);
  color: var(--color--text-alternate);
}

.footer-basic_inner {
  display: grid;
  gap: var(--space--large);
  padding-top: var(--space--xxlarge);
  padding-bottom: var(--space--xlarge);
}

.footer-basic_top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space--large) var(--space--medium);
}

.footer-basic_brand {
  display: grid;
  grid-column: 1 / span 5;
  align-content: start;
  justify-items: start;
  gap: var(--space--small);
  min-width: 0;
}

.footer-basic_brand-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--size--tap);
}

.footer-basic_logo {
  width: auto;
  height: var(--size--icon-large);
  filter: var(--logo--filter-alternate);
}

.footer-basic_text {
  max-width: var(--max-width--xsmall);
  font-size: var(--text-size--medium);
}

.footer-basic_nap {
  display: grid;
  justify-items: start;
  font-style: normal;
}

.footer-basic_phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--size--tap);
  margin-top: var(--space--xsmall);
  font-family: var(--font--heading);
  font-size: var(--type--item);
  font-weight: var(--font-weight--heading);
  line-height: var(--line-height--heading);
  letter-spacing: var(--letter-spacing--heading);
  text-decoration: none;
}

.footer-basic_phone:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--border-width--strong);
  text-underline-offset: var(--space--xsmall);
}

/* the groups start level with the short line, not with the logo, and are as wide as their words */
.footer-basic_columns {
  display: flex;
  grid-column: 7 / -1;
  flex-wrap: wrap;
  align-content: start;
  gap: var(--space--medium) var(--space--xlarge);
  min-width: 0;
  padding-top: var(--space--xlarge);
}

.footer-basic_column {
  display: grid;
  flex: 0 1 auto;
  align-content: start;
  gap: var(--space--xsmall);
  min-width: var(--space--xhuge);
}

.footer-basic_column-title {
  color: var(--color--text-alternate);
  font-family: var(--font--body);
  font-size: var(--text-size--small);
  font-weight: var(--font-weight--semibold);
  line-height: var(--line-height--tight);
  letter-spacing: var(--letter-spacing--allcaps);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.footer-basic_links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-basic_link {
  display: inline-flex;
  align-items: center;
  min-width: var(--size--tap);
  min-height: var(--size--tap);
  font-size: var(--text-size--regular);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-basic_link:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--border-width--strong);
  text-underline-offset: var(--space--xsmall);
}

.footer-basic_bottom {
  display: grid;
  gap: var(--space--small);
}

.footer-basic_legal {
  font-size: var(--text-size--small);
  text-wrap: balance;
}

@media (max-width: 991px) {
  .footer-basic_brand {
    grid-column: 1 / span 6;
  }

  .footer-basic_columns {
    grid-column: 7 / -1;
    gap: var(--space--medium) var(--space--large);
  }
}

@media (max-width: 767px) {
  .footer-basic_top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-basic_brand,
  .footer-basic_columns {
    grid-column: 1 / -1;
  }

  .footer-basic_columns {
    padding-top: 0;
  }
}

@media (max-width: 479px) {
  .footer-basic_columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space--medium) var(--space--small);
  }

  .footer-basic_column {
    min-width: 0;
  }

  /* an email address does not fit half the row; its group takes the whole row rather than break
     the address mid-word (goal 16b) */
  .footer-basic_column:has(.footer-basic_link[href^="mailto:"]) {
    grid-column: 1 / -1;
  }
}
