/* ------------------------------------------------------------------
   Bearrr — the footer of every page: the home page, its translations and
   legal.html. Its markup is generated by docs/landing-pages/build.mjs.
   On the home page it sits in the night, on legal.html on the paper; the
   colours below are the paper's, and the night swaps them.
   ------------------------------------------------------------------ */
.footer{--ft-ink:var(--ink-2,#616B7A);--ft-strong:var(--head,#27303F);--ft-head:var(--honey-deep,#C98A2C);--ft-dim:var(--ink-2,#7A8494);--ft-rule:var(--line,rgba(39,48,63,.12));--ft-hover:rgba(39,48,63,.06);
  position:relative;z-index:3;padding:0 0 30px;color:var(--ft-ink)}
.night .footer{--ft-ink:rgba(216,220,232,.88);--ft-strong:#fff;--ft-head:#FDBF68;--ft-dim:rgba(216,220,232,.72);--ft-rule:rgba(255,255,255,.14);--ft-hover:rgba(255,255,255,.1)}
.f-main{display:flex;flex-wrap:wrap;justify-content:space-between;gap:32px 40px;padding-top:40px;border-top:1px solid var(--ft-rule)}
.f-brand{display:inline-block;text-decoration:none}
.f-brand b{display:block;font-family:'Baloo 2','Figtree',system-ui,sans-serif;font-weight:800;font-size:30px;line-height:1;color:var(--ft-strong);padding-top:3px}
.f-tag{margin:10px 0 0;max-width:290px;font-size:14px;line-height:1.5;color:var(--ft-dim)}
.f-cols{display:flex;flex-wrap:wrap;gap:22px 72px}
.f-h{margin:0 0 10px;font-family:var(--f-display,'Baloo 2','Figtree',system-ui,sans-serif);font-weight:700;font-size:16px;line-height:1.3;color:var(--ft-head)}
.f-cols a{display:block;padding:4px 0;font-size:14px;line-height:1.4;color:var(--ft-ink);text-decoration:none;white-space:nowrap}
.f-cols a:hover{color:var(--ft-strong)}
.f-base{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;margin-top:32px;padding-top:20px;border-top:1px solid var(--ft-rule);font-size:14px}
.f-base>span{color:var(--ft-dim)}

/* Language picker: a <details>, so the links are in the page for crawlers and
   work without JS. The list opens upwards, over the footer, as a card. */
.lang-picker{position:relative}
.lang-picker summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 15px 0 12px;border:1px solid var(--ft-rule);border-radius:99px;
  cursor:pointer;list-style:none;font-weight:600;font-size:14px;color:var(--ft-strong)}
.lang-picker summary::-webkit-details-marker{display:none}
.lang-picker summary:hover,.lang-picker[open] summary{background:var(--ft-hover)}
.lang-ic{width:18px;height:18px;flex:none}
.lang-picker ul{list-style:none;margin:0;position:absolute;right:0;bottom:calc(100% + 8px);z-index:10;
  display:grid;grid-template-columns:repeat(3,1fr);gap:2px;width:min(630px,calc(100vw - 40px));
  padding:8px;border-radius:20px;background:#fff;box-shadow:0 20px 44px -16px rgba(0,0,0,.6)}
.lang-picker li{margin:0}
.lang-picker a{display:block;padding:9px 12px;border-radius:10px;font-size:14px;color:#27303F;text-decoration:none}
.lang-picker a:hover{background:#FFF8EF}
.lang-picker a[aria-current="page"]{font-weight:700}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

@media (max-width:900px){
  .f-main{flex-direction:column;gap:24px;padding-top:26px}
  .f-cols{gap:22px 34px}
  .f-cols a{padding:10px 0}
  .f-base{margin-top:24px;padding-top:16px}
  /* On phones the list spans the footer instead of hanging off the button
     and past the edge of the screen. */
  .lang-picker ul{right:auto;left:0;grid-template-columns:repeat(2,1fr)}
  .lang-picker a{padding:11px 12px}
}
