/* Kish footer: prevent the brand from overflowing narrow columns. */
@media (max-width: 1100px) {
  footer .footer-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px 32px;
  }

  footer .footer-top > .brand {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
  }

  footer .footer-top > * {
    min-width: 0;
  }

  footer .footer-top > a:not(.brand) {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.7;
  }

  footer .footer-bottom {
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
  }
}

@media (max-width: 760px) {
  footer .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 34px;
  }

  footer .footer-top > .brand {
    grid-column: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 38px;
    letter-spacing: 4px;
  }

  footer .footer-top .brand img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
  }

  footer .footer-top .brand > span {
    min-width: 0;
    white-space: nowrap;
  }

  footer .footer-top .brand small {
    font-size: 6px;
    letter-spacing: 1.6px;
    margin-top: 9px;
  }

  footer .footer-top > p {
    font-size: 27px;
    line-height: 1.25;
    max-width: 100%;
    margin: 0;
  }

  footer .footer-top > a:not(.brand) {
    font-size: 11px;
    justify-self: start;
    padding: 5px 0;
  }

  footer .page-footer-links {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 12px 24px;
    padding-bottom: 25px;
  }

  footer .page-footer-links a {
    padding: 6px 0;
  }

  footer .footer-bottom {
    justify-content: flex-start;
    font-size: 9px;
    line-height: 1.7;
  }

  footer .footer-bottom > span,
  footer .footer-bottom > a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  footer .footer-top > .brand {
    font-size: 34px;
    gap: 12px;
    letter-spacing: 3px;
  }

  footer .footer-top .brand img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  footer .footer-top .brand small {
    font-size: 5.5px;
    letter-spacing: 1.4px;
  }
}
