/* Shared by Django's _footer.html and React's SiteFooter. Keep this stylesheet self-contained:
   the footer has a fixed deep teal palette in both themes and does not depend on public page CSS. */
.site-footer {
  --footer-bg: #102c2e;
  --footer-text: #cbd5e1;
  --footer-muted: #a8c2c4;
  --footer-rule: #335255;
  box-sizing: border-box;
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 2rem;
  font-size: .875rem;
  line-height: 1.6;
  color-scheme: dark;
}
.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }
.footer-inner { max-width: 90rem; padding: 0 2.5rem; margin: 0 auto; }
.footer-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 2.5rem 0; border-bottom: 1px solid var(--footer-rule);
}
.footer-intro h2 {
  color: #fff; margin: 0 0 .5rem; font-size: 2rem; line-height: 1.2;
  font-weight: 650; letter-spacing: -.035em;
}
.footer-intro p { margin: 0; color: var(--footer-text); font-size: .9375rem; }
.site-footer .footer-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem;
  flex: none; min-height: 3rem; padding: .75rem 1.25rem; border-radius: 8px;
  background: #087f83; color: #fff; text-decoration: none; font-weight: 600;
}
.site-footer .footer-cta:hover { background: #06666a; }
.footer-cta svg { width: 18px; height: 18px; }
.footer-main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 4rem; padding: 2.5rem 0;
}
.footer-brand { max-width: 20rem; }
.footer-brand-link { display: inline-flex; border-radius: 4px; margin-bottom: .75rem; }
.footer-brand-link .brand-logo { width: 176px; height: 48px; }
.footer-brand p { margin: 0; color: var(--footer-text); font-size: .875rem; }
.footer-brand .footer-source { margin-top: 1rem; font-size: .75rem; color: var(--footer-muted); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-group h3 {
  color: #fff; margin: .75rem 0 .75rem; font-size: .8125rem; line-height: 1.5;
  font-weight: 600; letter-spacing: .01em;
}
.footer-group ul { list-style: none; padding: 0; margin: 0; }
.footer-group li { margin: 0; padding: 0; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 2.25rem;
  color: var(--footer-text); text-decoration: none; text-underline-offset: 4px;
}
.footer-links a:hover, .site-footer .language-links a:hover { color: #fff; text-decoration: underline; }
.site-footer a:focus-visible, .site-footer select:focus-visible {
  outline: 2px solid #fff; outline-offset: 4px;
}
.footer-bottom { padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--footer-rule); }
.footer-utility { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copy { color: var(--footer-text); font-size: .75rem; margin: 0; }
.site-footer .language-switch { margin: 0; }
.site-footer .language-switch select {
  width: auto; min-height: 2.75rem; padding: .5rem 2.5rem .5rem 1rem;
  border: 1px solid var(--footer-rule); border-radius: 8px;
  background: var(--footer-bg); color: var(--footer-text); font: inherit; font-size: .8125rem;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23cbd5e1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right .75rem center; background-repeat: no-repeat;
}
.site-footer .language-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.site-footer .language-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer .language-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--footer-text); }
.footer-disclaimer { max-width: 95ch; margin: .75rem 0 0; color: var(--footer-muted); font-size: .75rem; line-height: 1.6; }
@media (max-width: 89.9rem) { .footer-inner { padding-inline: 2rem; } }
@media (max-width: 63.9rem) {
  .footer-inner { padding-inline: 1.5rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2rem; }
  .footer-links { gap: 1rem; }
}
@media (max-width: 47.9rem) {
  .footer-inner { padding-inline: 1rem; }
  .footer-intro { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 2rem 0; }
  .footer-intro h2 { font-size: 1.625rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 2rem 0; }
  .footer-brand { max-width: 28rem; }
  .footer-group h3 { margin-top: 0; }
  .footer-links a { min-height: 2.75rem; font-size: .8125rem; }
  .footer-bottom { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}
@media print { .site-footer { display: none; } }
