/* Shared footer and page frame. Load after styles.css. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; min-width: 0; }
.site-header, .site-footer { flex-shrink: 0; }

.desktop-nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.site-footer {
  margin-top: auto;
  padding: 62px 0 26px;
  border-top: 3px solid var(--navy);
  background: #f0f4f8;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 52px;
  align-items: start;
}

.footer-identity, .footer-column { min-width: 0; }
.footer-brand { width: 172px; height: auto; }
.footer-identity > a { display: block; width: fit-content; max-width: 100%; }
.footer-company-name {
  margin: 24px 0 9px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.footer-identity address {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.85;
}
.footer-identity a:not(:has(img)) {
  padding: 4px 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-column h2 {
  margin: 4px 0 23px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.footer-column nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.footer-column nav a {
  display: inline-block;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-identity a:not(:has(img)):hover,
.footer-column nav a:hover,
.footer-legal a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid #cdd9e4;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-legal a { padding: 4px 0; text-decoration: none; }

@media (max-width: 1100px) {
  .footer-grid { gap: 32px; }
}

@media (max-width: 1000px) {
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 54px; }
  .footer-column h2 { margin-bottom: 18px; }
  .footer-bottom { margin-top: 38px; }
}

@media (max-width: 640px) {
  .site-footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-brand { width: 158px; }
  .footer-company-name { margin-top: 21px; }
  .footer-column h2 { margin-top: 0; margin-bottom: 12px; }
  .footer-column nav { gap: 4px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 34px; padding-top: 20px; }
  .footer-legal { gap: 8px 25px; }
}

@media print {
  body { display: block; min-height: 0; }
  body > main { flex: none; }
  .site-footer { display: none; }
}
