/* Patch 39. The desktop footer retains its original layout. */
@media (max-width: 800px) {
  footer:has(.footer-grid > div:first-child > .company-brand--footer) {
    padding-top: 0;
  }
  .footer-grid:has(> div:first-child > .company-brand--footer) {
    --az-footer-gutter: 24px;
    padding-left: var(--az-footer-gutter);
    padding-right: var(--az-footer-gutter);
  }
  .footer-grid > div:first-child:has(> .company-brand--footer) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) clamp(100px, 31vw, 150px);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(12px, 4vw, 24px);
    row-gap: 8px;
    min-width: 0;
    margin-left: calc(-1 * var(--az-footer-gutter));
    margin-right: calc(-1 * var(--az-footer-gutter));
    padding: 20px var(--az-footer-gutter);
    background: #fff;
    border-bottom: 1px solid #e4e8eb;
  }
  .footer-grid > div:first-child:has(> .company-brand--footer) > a.logo {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-size: clamp(22px, 6vw, 26px);
    line-height: 1.05;
  }
  .footer-grid > div:first-child:has(> .company-brand--footer) > p {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    margin: 0;
    color: #67737c;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }
  .footer-grid > div:first-child:has(> .company-brand--footer) > a.company-brand--footer {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}
@media (max-width: 520px) {
  .footer-grid:has(> div:first-child > .company-brand--footer) {
    --az-footer-gutter: 17px;
  }
}
