/* Contact footer, using the existing white, navy and red brand palette. */
.site-footer {
  padding-block: 56px 20px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.site-footer .footer-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(180px, .65fr);
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer .footer-brand { display: inline-block; font-size: 28px; line-height: 1.2; }
.site-footer .footer-brand::after { width: 40px; height: 3px; margin-top: 14px; border-radius: 2px; }
.site-footer .footer-institution-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 26px; }
.site-footer .footer-logos { display: flex; flex-wrap: wrap; gap: 16px; max-width: 100%; }
.site-footer .footer-logos img { height: clamp(28px, 2.8vw, 40px); width: auto; max-width: 100%; object-fit: contain; flex-shrink: 0; }
.site-footer .footer-logos .footer-mara-logo { height: 64px; }
.footer-kkdw-mark { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 96px; flex: none; }
.site-footer .footer-kkdw-mark img { height: 48px; width: auto; }
.footer-kkdw-mark > span { color: #111; font: 700 7px/1.3 Arial, sans-serif; text-align: center; }
.site-footer .footer-institution { margin: 0 0 14px; font-size: 14px; line-height: 1.7; }
.site-footer .footer-institution span { margin-top: 4px; line-height: 1.7; }
.footer-about, .footer-contact, .footer-social { min-width: 0; }
.footer-tagline { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer .footer-heading {
  margin: 0 0 18px;
  color: var(--brand-navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.footer-contact { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.footer-contact address { font-size: 14px; font-style: normal; line-height: 1.8; }
.footer-contact address strong, .footer-contact address span { display: block; }
.footer-contact address span { color: var(--muted); margin-top: 4px; }
.footer-contact-details { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-contact-details > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.footer-contact-details > div + div { margin-top: 8px; }
.footer-contact-details dt { color: var(--muted); font-size: 11px; font-weight: 650; }
.footer-contact-details dd { margin: 0; min-width: 0; }
.footer-contact-details a { display: inline-block; align-content: center; min-height: 44px; max-width: 100%; color: var(--brand-blue); overflow-wrap: anywhere; font-weight: 650; text-decoration: underline; text-decoration-color: #b8c9e0; text-underline-offset: 4px; }
.footer-social { padding-top: 24px; }
.footer-social ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-social li + li { border-top: 0; }
.footer-social a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; color: var(--brand-navy); background: var(--white); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 650; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.footer-social a:hover { border-color: #a9bfde; background: #eaf2ff; }
.footer-social-icon { width: 20px; height: 20px; flex: none; }
.footer-social a > .icon { width: 17px; height: 17px; margin-left: auto; color: var(--brand-blue); }
.site-footer a:hover { color: var(--brand-red); }
.site-footer a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; border-radius: 2px; }
.site-footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; font-size: 12px; }
.site-footer .footer-bottom p { margin: 0; }
.site-footer .back-top { min-height: 44px; flex: none; gap: 10px; }
.site-footer .back-top .icon { width: 32px; height: 32px; padding: 7px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; color: var(--brand-blue); }
@media (max-width: 1000px) {
  .site-footer .footer-main { grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr); gap: 30px; }
  .footer-about { grid-column: 1 / -1; }
  .site-footer .footer-institution-wrap { margin-top: 22px; }
}
@media (max-width: 600px) {
  .site-footer { padding-block: 32px 16px; }
  .site-footer .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 24px; }
  .site-footer .footer-heading { margin-bottom: 12px; }
  .footer-contact { padding: 20px; }
  .footer-social { padding-top: 0; }
  .site-footer .footer-brand { font-size: 26px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 400px) {
  .site-footer .footer-logos { gap: 10px; }
  .site-footer .footer-logos img { height: 26px; }
  .site-footer .footer-logos .footer-mara-logo { height: 48px; }
  .footer-kkdw-mark { width: 76px; }
  .site-footer .footer-kkdw-mark img { height: 34px; }
  .footer-kkdw-mark > span { font-size: 6px; }
  .site-footer .footer-logos { gap: 8px; }
}
