/* Keep the original desktop and tablet footer intact.  Phones get a compact,
   deliberately ordered footer that makes the three support routes and both
   brand marks easy to scan. */
.footer-help,
.footer-about {
  display: none;
}

@media (max-width: 750px) {
  footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 0 18px !important;
    padding: 31px 7vw 27px !important;
    align-items: center !important;
  }

  footer > p {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: min(100%, 310px);
    margin: 0 0 16px !important;
    text-align: center !important;
    line-height: 1.35;
  }

  footer > .footer-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    gap: 9px;
    width: 100% !important;
    margin: 0 0 22px !important;
    justify-content: stretch !important;
  }

  footer .footer-help,
  footer .footer-about,
  footer .footer-actions > .footer-faq {
    display: inline-flex !important;
    grid-column: auto !important;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 6px 4px;
    font-size: 9px;
    letter-spacing: .06em;
  }

  footer > .footer-year {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    width: 68px;
    margin: 0 !important;
    text-align: left !important;
  }

  footer > .footer-year .footer-enterprises-mark {
    display: block;
    width: 64px !important;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 0 5px rgba(196, 232, 255, .48));
  }

  footer .footer-enterprise {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 4 !important;
    justify-self: start !important;
    width: 108px;
    margin: 4px 0 0 !important;
    color: #d7ebf5;
    font: 700 8px 'DM Mono', monospace;
    letter-spacing: .08em;
    line-height: 1.2;
    text-align: left;
  }

  footer > .brand {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    width: 132px !important;
    height: 58px !important;
    margin: 0 !important;
    transform: none !important;
    background-size: contain !important;
    background-position: center !important;
  }

  footer .footer-domain {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 4 !important;
    justify-self: end !important;
    width: 148px;
    margin: 4px 0 0 !important;
    font-size: 8px;
    letter-spacing: .055em;
    line-height: 1.2;
    text-align: center !important;
  }
}
