/* Mobile footer refinement: keep contact details inside the brand's visual column. */
@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    padding-top: 30px;
    padding-bottom: max(34px, env(safe-area-inset-bottom));
    min-height: 0;
    align-items: start;
  }
  .footer-identity {
    grid-column: 1;
    grid-row: 1;
    row-gap: 7px;
  }
  .footer-email {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 14px 0 0 37px;
    padding: 0;
    color: #58615b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .005em;
    text-decoration: none;
    border: 0;
    overflow-wrap: anywhere;
  }
  .footer-email:hover,
  .footer-email:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* English-only footer: no empty column reserved for a language switcher. */
.site-footer { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 760px) { .site-footer { grid-template-columns: minmax(0, 1fr); } }

/* A restrained registered-company / market identifier, on all viewport sizes. */
.footer-identity .footer-location {
  display: block;
  color: #69716d;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.5;
  text-transform: none;
  margin-top: 5px;
}
@media (max-width: 760px) {
  .footer-identity .footer-location { margin-top: 3px; }
}

/* Fix: adding company location made the old ':last-child' grid rule
   target the location instead of the business descriptor. Place each
   footer line explicitly so neither can fall into the narrow icon column. */
.footer-identity {
  grid-template-columns: 27px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 5px;
  align-items: start;
}
.footer-identity > .footer-lockup + span:not(.footer-location) {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
  margin: 0;
  min-width: 0;
  font-size: 9px;
  letter-spacing: .065em;
  line-height: 1.55;
}
.footer-identity > .footer-location,
.footer-identity > span.footer-location:last-child {
  grid-column: 2;
  grid-row: 3;
  padding: 0;
  margin: 2px 0 0;
  min-width: 0;
  font-size: 11px;
  letter-spacing: .015em;
  line-height: 1.5;
}
.footer-lockup .brand-symbol,
.footer-lockup .footer-brand { align-self: center; }
@media (max-width: 760px) {
  .footer-identity > .footer-lockup + span:not(.footer-location) { font-size: 9px; }
  .footer-identity > .footer-location,
  .footer-identity > span.footer-location:last-child { font-size: 10px; }
}
