/* Shared emerald brand lockup: the header uses the approved footer proportions. */
.site-header .brand {
  align-items: center;
}

.site-header .brand > span {
  min-width: 0;
}

.site-header .brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header .brand small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* Keep every secondary and detail-page footer lockup identical to the home page. */
.footer .brand {
  align-items: center;
}

.footer .brand img {
  width: 48px;
  height: 48px;
}

.footer .brand > span {
  min-width: 0;
}

.footer .brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer .brand small {
  display: block;
  margin-top: 3px;
  color: #b9d9d0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.footer .brand + p {
  max-width: 318px;
}

/* Shared emerald footer: use the homepage information hierarchy on every
   secondary and detail page instead of each page carrying its own variant. */
body .footer {
  margin-top: 36px;
  padding: 42px 0 22px;
  background: #043d3b;
  color: #d3eee6;
}

.footer .footer-grid {
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: 36px;
}

.footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.footer p,
.footer li {
  margin: 0;
  color: #b9d9d0;
  font-size: 13px;
  line-height: 1.7;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 5px;
}

.footer a:hover,
.footer a:focus-visible {
  color: #a9f0d8;
}

.footer .copyright {
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #8ebcb0;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .site-header .brand strong {
    font-size: 18px;
  }

  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
