/* The footer of every page (landing page, version 5, city pages, legal pages): the name, then the downloads, help
   and the legal pages in columns. Its markup comes from footerHTML in prayer.js; the legal pages carry it written out.
   Colours come from the page's own tokens (the landing page calls its hairline --glass-edge, the others --edge). */
footer { position: relative; z-index: 2; background: var(--ground-2); color: var(--ink-2); font-size: 0.88rem; line-height: 1.5;
  padding: 40px max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.foot { max-width: 1180px; margin-inline: auto; display: grid; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand b { font: 600 1.1rem var(--font-display); color: var(--ink); }
.foot-brand p { margin: 2px 0 0; color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 24px 40px; }
.foot-cols > div { display: grid; align-content: start; gap: 4px; }
.foot-cols h3 { font: 600 0.78rem var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 0 0 6px; }
:lang(ar) .foot-cols h3, .plain-type .foot-cols h3 { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.foot-cols a { color: var(--ink); font-weight: 600; text-decoration: none; padding-block: 6px; width: fit-content; }
.foot-cols a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.foot-cols a[aria-current] { color: var(--gold); }
.foot-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--glass-edge, var(--edge)); color: var(--ink-2); }
@media (max-width: 560px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
