/* usehabla.com — the foot of every page (D-H101; scripts/site-pages.py writes it): the site's pages in short groups under
   small headings, quiet in the page's soft gray; below a hairline the mark and the publisher, and the language switch as
   one control. On the page's own width and twelve columns (site.css): each group starts where a section's heading or
   content does. Loaded by every page, the policy and the terms too (they keep their own sheet), so the colors fall back
   to the house look (light) where a page names none. Four columns on a desk, two on a phone; light and dark both.
   The light/dark switch is here too, the one sheet every page loads: a sun or a moon in the page's soft gray, drawn in
   currentColor, at the right of the header (theme.js presses it). Without a script it stays hidden and the page light. */
.foot { width: min(var(--page, 1100px), 100% - 2 * var(--edge, 1rem)); margin: 0 auto; padding: 3rem 0 2.75rem; border-top: 1px solid var(--line, #e3e3e6);
        color: var(--soft, #5b5b60); font-size: .875rem; line-height: 1.45; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--ink, #1c1c1e); }
.foot-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem var(--gap, 2rem); }
.foot-map h2 { margin: 0 0 .85rem; color: var(--ink, #1c1c1e); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.foot-map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot-map li { margin: 0; }
.foot-map [aria-current] { color: var(--ink, #1c1c1e); }
.foot-base { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 2.75rem; padding-top: 1.25rem;
             border-top: 1px solid var(--line, #e3e3e6); }
.foot-mark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink, #1c1c1e) !important; }
.foot-mark img { width: 20px; height: 20px; border-radius: 5px; }
.foot-lang { margin-left: auto; display: inline-flex; padding: 3px; border: 1px solid var(--line, #e3e3e6); border-radius: 999px; }
.foot-lang > * { padding: .3rem .8rem; border-radius: 999px; }
.foot-lang [aria-current] { background: var(--line, #e3e3e6); color: var(--ink, #1c1c1e); font-weight: 600; }

.theme { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; margin: -4px -6px -4px 0; border: 0; border-radius: 999px;
         background: none; color: var(--soft, #5b5b60); cursor: pointer; }
.theme[hidden] { display: none; }
.theme:hover { color: var(--ink, #1c1c1e); background: var(--line, #e3e3e6); }
.theme:focus-visible { outline: 2px solid var(--blue, #345fb2); outline-offset: 2px; }
.theme svg { width: 20px; height: 20px; }
.theme .sun, html[data-theme="dark"] .theme .moon { display: none; }
html[data-theme="dark"] .theme .sun { display: block; }
.theme-corner { position: absolute; top: 1rem; right: 1rem; }   /* the policy and the terms have no header: the switch sits in the corner */
@media (max-width: 760px) {
  .foot { padding-top: 2.25rem; }
  .foot-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .foot-lang { margin-left: 0; }
}
@media (max-width: 420px) {
  /* a narrow phone: the mark, the three links and the switch keep one line without touching (the English page's are the longest) */
  .top { gap: .5rem; }
  .top .brand { flex: none; }
  .top nav { gap: .25rem .6rem; font-size: .875rem; }
  .theme { width: 32px; margin-right: -4px; }
}
