/* Shared site footer: independent of page containers and legacy footer rules. */
.site-footer > .container {
  width: 92%;
  max-width: 1200px;
  padding-inline: 20px;
  margin-inline: auto;
}
.site-footer, .site-footer * { box-sizing: border-box; }
.site-footer { padding: 52px 0 0; background: #0a3b63; color: #fff; text-align: left; line-height: 1.6; font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 32px 28px;
  align-items: start;
  margin-bottom: 36px;
}
.site-footer .footer-grid > * { min-width: 0; }
.site-footer .footer-brand { grid-column: auto; }
.site-footer .footer-brand img {
  width: 220px !important;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin-bottom: 16px;
}
.site-footer .footer-brand p {
  max-width: 34ch;
  margin: 0;
  font-weight: 400;
  opacity: 1;
  font-size: 14px;
  line-height: 1.65;
  color: #c1d8e3;
}
.site-footer .footer-col h5 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  margin: 0 0 16px;
}
.site-footer .footer-col a {
  display: block;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
  line-height: 1.55;
  color: #c1d8e3;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.site-footer .footer-col a:hover, .site-footer .footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid #87d4e1; outline-offset: 4px; }
.site-footer .footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 22px 0;
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
  border-top: 1px solid rgba(193, 216, 227, .18);
  line-height: 1.55;
  text-align: left;
  color: #c1d8e3;
}
.site-footer .footer-bottom a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .site-footer .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-brand p { max-width: 56ch; }
}
@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
}
@media (max-width: 600px) {
  .site-footer { padding-top: 36px; }
  .site-footer > .container { width: 94%; padding-inline: 16px; }
  .site-footer .footer-grid { margin-bottom: 28px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Shared scroll-to-top control; positioned above the mobile bottom navigation. */
.ids-back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: var(--ids-top-bottom, max(20px, env(safe-area-inset-bottom)));
  z-index: 190;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  background: #0a3b63;
  color: #fff;
  box-shadow: 0 4px 18px rgba(10,59,99,.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, box-shadow .15s;
}
.ids-back-to-top[hidden] { display: none !important; }
.ids-back-to-top svg { display: block; width: 23px; height: 23px; }
.ids-back-to-top:focus-visible { outline: 3px solid #008ba5; outline-offset: 4px; }
.ids-back-to-top:active { background: #075570; }
body.modal-open .ids-back-to-top { visibility: hidden; }
@media (hover:hover) { .ids-back-to-top:hover { background:#075570; box-shadow:0 6px 22px rgba(10,59,99,.25); } }
@media (max-width:600px) { .ids-back-to-top { right:max(16px, env(safe-area-inset-right)); width:44px; height:44px; border-radius:12px; } }
@media (prefers-reduced-motion:reduce) { .ids-back-to-top { transition:none; } }
