/* Fill the remaining viewport when there is room, and grow with the content. */
.site-footer {
  --footer-line: #abc6d42b;
  --footer-muted: #b7cbd5;
  --footer-accent: #ffb28e;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-block-size: max(0px, calc(100vh - var(--header-offset, 0px)));
  min-block-size: max(0px, calc(100dvh - var(--header-offset, 0px)));
  color: #f4f8fa;
  background: var(--site-chrome-bg, #062433);
  border-block-start: 0;
}
.footer-flow {
  flex: none;
  margin-block: auto;
  padding-block: clamp(16px, 3vh, 34px);
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 14px clamp(18px, 3vw, 44px);
  padding-block: 0 clamp(16px, 2.5vh, 26px);
}
.footer-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
}
.site-footer .footer-identity .footer-brand {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 116px;
  block-size: var(--site-brand-size);
}
.site-footer .footer-identity .footer-brand img {
  display: block;
  inline-size: var(--site-brand-size);
  block-size: var(--site-brand-size);
  object-fit: contain;
}
.site-footer .footer-identity p {
  margin: 0;
  /* Center the slogan beside the logo's lower wordmark. */
  margin-block-start: calc(var(--site-brand-size) * .54);
  color: #fff;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 650;
  line-height: 1.8;
  text-align: start;
}
.site-footer .footer-shortcuts { grid-column: auto; grid-row: auto; justify-self: stretch; padding: 0; border: 0; }
.site-footer .footer-shortcuts h2 { margin: 0 0 4px; color: var(--footer-muted); font-size: 11px; font-weight: 500; }
.site-footer .footer-shortcuts .footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 5px;
  padding: 0;
  margin: 0;
  border: 0;
}
.site-footer .footer-shortcuts .footer-nav a {
  justify-content: center;
  min-block-size: 36px;
  padding: 4px 6px;
  border: 1px solid var(--footer-line);
  border-radius: 8px;
  background: #ffffff08;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
}
:root { --quote-button-width: 120px; }
#site-header .header-quote,
.site-footer .footer-quote,
.site-footer .nile-app-actions .button {
  box-sizing: border-box;
  inline-size: var(--quote-button-width);
  min-inline-size: var(--quote-button-width);
  block-size: 44px;
  min-block-size: 44px;
  justify-content: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}
.site-footer .footer-main > .footer-quote { justify-self: end; }
.site-footer .footer-quote:hover { color: #fff; }
.site-footer .footer-details { padding-block: 0 clamp(12px, 2vh, 22px); }
.site-footer .footer-contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); align-items: stretch; gap: 10px; }
.site-footer .footer-contact-column {
  grid-column: auto;
  min-inline-size: 0;
  padding: 0;
  border: 1px solid var(--footer-line);
  border-radius: 14px;
  background: #ffffff08;
}
.site-footer .footer-contact-column > .footer-contact-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-block-size: 44px;
  margin: 0;
  padding: 9px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.footer-contact-heading .icon { inline-size: 17px; block-size: 17px; flex: none; color: var(--footer-accent); }
.footer-contact-body { padding: 0 12px 12px; }
.site-footer .footer-contact-body > .footer-detail-label:first-child { margin-top: 0; }
.site-footer .footer-detail-label { margin: 8px 0 3px; }
.site-footer .footer-detail-link { min-block-size: 26px; font-size: 12px; }
.site-footer .footer-email-link { overflow-wrap: anywhere; }
.site-footer .footer-address-list { gap: 7px; }
.site-footer .footer-address-link { padding-bottom: 7px; }
.site-footer .footer-address-link:last-child { padding-bottom: 0; }
.site-footer .footer-work-hours { margin-top: 8px; padding-top: 7px; }
.site-footer .nile-app-section { padding-block: 0; }
.site-footer .nile-app-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  padding: 5px 10px;
  border: 1px solid var(--footer-line);
  border-radius: 10px;
  background: #ffffff08;
}
.site-footer .nile-app-summary { align-items: center; gap: 8px; }
.site-footer .nile-app-summary img { inline-size: 32px; block-size: 32px; flex-basis: 32px; border-radius: 7px; }
.site-footer .nile-app-summary h2 { margin: 0; font-size: 12px; line-height: 1.45; }
.site-footer .nile-app-summary p { font-size: 10px; line-height: 1.55; }
.site-footer .nile-app-actions { align-self: center; inline-size: auto; }
.site-footer .footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 9px calc(9px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}
.site-footer .footer-bottom > span { width: 100%; margin: 0; text-align: inherit; }

@media (max-width: 900px) {
  .site-footer.has-mobile-quote { min-block-size: 0; }
  .site-footer.has-mobile-quote .footer-flow { margin-block: 0; padding-block: 10px; }
  .site-footer.has-mobile-quote .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .site-footer .footer-end-panel {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-block-size: max(0px, calc(100vh - var(--header-offset, 0px)));
    min-block-size: max(0px, calc(100dvh - var(--header-offset, 0px)));
    padding-block: 8px;
  }
  .site-footer .footer-end-panel > * { flex: none; }
  .site-footer .footer-viewport-measure {
    position: absolute;
    inset-block-start: 0;
    inline-size: 0;
    block-size: max(0px, calc(100vh - var(--header-offset, 0px)));
    block-size: max(0px, calc(100svh - var(--header-offset, 0px)));
    visibility: hidden;
    pointer-events: none;
  }
  .site-footer .footer-end-panel .footer-bottom { margin-block-start: auto; }
  .site-footer .footer-mobile-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
  .site-footer .footer-mobile-actions > .footer-quote { flex: none; }
  .site-footer .footer-mobile-actions > .nile-app-section { flex: 1; inline-size: auto; min-inline-size: 0; margin: 0; }
  .site-footer .footer-mobile-actions .nile-app-card { gap: 4px; padding: 3px 5px; }
  .site-footer .footer-mobile-actions .nile-app-summary > div { min-inline-size: 0; }
  .site-footer .footer-mobile-actions .nile-app-summary h2 { overflow-wrap: anywhere; }
  .site-footer .footer-mobile-contact-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-block-size: 44px;
    padding: 6px 10px;
    border: 1px solid var(--footer-line);
    border-radius: 8px;
    background: #ffffff08;
    color: #f4f8fa;
    font-size: 12px;
    text-align: center;
  }
  .site-footer .footer-mobile-contact-link[hidden] { display: none; }
  .site-footer #footer-contacts { scroll-margin-block-start: 16px; }
  .site-footer .footer-mobile-contact-link:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 2px; }
  .site-footer .footer-details { padding-block-end: 0; }
  .site-footer .footer-contact-grid { gap: 6px; }
  .site-footer .footer-contact-column > .footer-contact-heading { gap: 6px; min-block-size: 32px; padding: 5px 8px; font-size: 11px; }
  .site-footer .footer-contact-heading .icon { inline-size: 14px; block-size: 14px; }
  .site-footer .footer-contact-body { padding: 0 8px 7px; }
  .site-footer .footer-detail-label { margin: 4px 0 1px; line-height: 1.5; }
  .site-footer .footer-number-list, .site-footer .footer-messenger-list { gap: 1px; }
  .site-footer .footer-detail-link { gap: 5px; min-block-size: 24px; font-size: 11px; line-height: 1.5; }
  .site-footer .footer-detail-link .icon, .site-footer .footer-address-link > .icon { inline-size: 13px; block-size: 13px; flex-basis: 13px; }
  .site-footer .footer-email-link bdi { min-inline-size: 0; }
  .site-footer .footer-address-list { gap: 4px; }
  .site-footer .footer-address-link { gap: 6px; min-block-size: 24px; padding-block-end: 4px; line-height: 1.5; }
  .site-footer .footer-address-link strong { margin-block-end: 1px; font-size: 11px; }
  .site-footer .footer-work-hours { margin-block-start: 4px; padding-block-start: 4px; }
  .site-footer .footer-work-hours p { line-height: 1.55; }
  :root { --quote-button-width: 96px; }
  .site-footer .footer-main { inline-size: calc(100% - 28px); }
  .site-footer .footer-identity .footer-brand { inline-size: 90px; }
}
@media (max-width: 700px) {
  .site-footer.has-mobile-quote .footer-main { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block-end: 8px; }
  .site-footer .footer-main { grid-template-columns: minmax(0, 1fr) auto; }
  .site-footer .footer-main > .footer-quote { grid-column: 2; grid-row: 1; }
  .site-footer .footer-shortcuts { grid-column: 1 / -1; grid-row: 2; }
  .site-footer .footer-shortcuts .footer-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .site-footer .footer-shortcuts .footer-nav a { grid-column: span 2; }
  .site-footer .footer-shortcuts .footer-nav a:nth-child(n+4) { grid-column: span 3; }
  .site-footer .footer-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-contact-column--addresses { grid-column: 1 / -1; }
  .site-footer .nile-app-card { gap: 2px 7px; padding-inline: 7px; }
  .site-footer .nile-app-summary { gap: 5px; }
  .site-footer .nile-app-summary img { inline-size: 26px; block-size: 26px; flex-basis: 26px; border-radius: 6px; }
  .site-footer .nile-app-summary h2 { font-size: 11px; }
  .site-footer .nile-app-summary p { display: none; }
  .site-footer .footer-bottom { font-size: 9px; }
}
@media (max-width: 359px) {
  :root { --quote-button-width: 76px; }
  .site-footer .footer-main { inline-size: calc(100% - 24px); }
}
@media (max-width: 360px) {
  .site-footer .footer-identity p { font-size: 11px; }
}
