/* Shared footer (stamped into every page by scripts/sync_footer.py).
   Self-contained: its own colours (always dark, like the site's dark theme) and a <div>, not a
   <footer>, so no page's own "footer { … }" rules touch it. */
.br-footer {
  --ft-bg: #1a1613; --ft-bar: #26211c; --ft-fg: #f0ede6; --ft-muted: #a8a095; --ft-line: rgba(255,255,255,.09); --ft-accent: #e06b3a;
  display: block; width: 100%; align-self: stretch; flex: none; margin: 56px 0 0; background: var(--ft-bg); color: var(--ft-fg);
  text-align: left; font: 14px/1.5 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; box-sizing: border-box;
}
.br-footer *, .br-footer *::before, .br-footer *::after { box-sizing: border-box; }
.br-footer a { color: inherit; text-decoration: none; }
/* pages have bare element rules (nav, ul, li, p, a …): reset what the footer uses */
.br-footer ul, .br-footer li, .br-footer p { margin: 0; padding: 0; list-style: none; color: inherit; font-size: inherit; line-height: inherit; }
.br-footer-col { display: block; padding: 0; min-width: 0; }
.br-footer-top {
  display: block; text-align: center; padding: 13px 16px; background: var(--ft-bar); color: var(--ft-fg);
  font-size: 13px; font-weight: 500; transition: background .15s;
}
.br-footer-top:hover { background: #312a24; }
.br-footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 44px max(20px, env(safe-area-inset-left, 0px)) 36px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
}
.br-footer-logo { font: 900 1.35rem 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; color: var(--ft-fg); }
.br-footer-logo span { color: var(--ft-accent); }
.br-footer .br-footer-brand p { margin: 10px 0 16px; color: var(--ft-muted); max-width: 30ch; }
.br-footer .br-footer-donate {
  display: inline-block; padding: 8px 14px; border: 1px solid rgba(76,175,120,.4); border-radius: 6px; font-size: 14px; font-weight: 500;
  background: none; color: #4caf78; transition: background .15s, border-color .15s;
}
.br-footer .br-footer-donate:hover { background: rgba(76,175,120,.12); border-color: #4caf78; color: #4caf78; }
.br-footer .br-footer-h { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ft-muted); }
.br-footer .br-footer-col ul { display: grid; gap: 9px; }
.br-footer .br-footer-col a { color: var(--ft-fg); font-size: 14px; margin: 0; }
.br-footer-col a:hover { color: var(--ft-accent); text-decoration: underline; text-underline-offset: 3px; }
.br-footer a:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 3px; border-radius: 4px; }
.br-footer .br-footer-base {
  border-top: 1px solid var(--ft-line); text-align: center; padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  font-size: 12.5px; color: var(--ft-muted);
}
@media (max-width: 760px) {
  .br-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 32px; }
  .br-footer-brand { grid-column: 1 / -1; }
  .br-footer-inner > :nth-child(3) { order: 2; }      /* Extensions (one link) after Explore | About */
}
@media (max-width: 380px) {
  .br-footer-inner { grid-template-columns: 1fr; }
}
