/* The site's footer (templates/footer.html), drawn with the look's tokens (looks.css) so it suits every look. The page's
   body is a column (style.css, auth.css), so the footer's auto top margin rests it at the bottom of a short page. */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--header-line);
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  backdrop-filter: var(--header-blur);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding: 14px 16px;
}
.site-footer .foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.site-footer .foot-brand b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1rem; color: var(--text); }
.site-footer .mark { border-radius: 4px; flex: none; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.site-footer .foot-copy { margin-left: auto; }
@media (max-width: 640px) {
  .site-footer .foot-copy { margin-left: 0; width: 100%; }  /* the copyright takes a line of its own on a phone */
}

/* The Analytics link, a button that looks like the footer's links (analytics.js opens the card with it) */
.site-footer .foot-link { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.site-footer .foot-link:hover { text-decoration: underline; border: 0; box-shadow: none; }
.site-footer .foot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* The card that asks about Google Analytics (footer.html, analytics.js): at the bottom of the window, over the page,
   in the look. A first visit where consent comes first sees it until they choose; anyone can open it from the footer. */
.consent {
  position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: start;
  width: min(30rem, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px;
  background: var(--card-solid); border: 1px solid var(--card-line); border-radius: var(--card-radius);
  box-shadow: var(--card-shadow), 0 24px 60px rgba(0, 0, 0, 0.35); color: var(--text); font-size: 0.9375rem;
  animation: consent-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
.consent[hidden] { display: none; }
.consent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--card-radius) var(--card-radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
@keyframes consent-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.consent-mark { width: 40px; height: 40px; padding: 8px; box-sizing: border-box; border-radius: 12px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
  background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: 0 0 calc(18px * var(--glow)) color-mix(in srgb, var(--accent) 35%, transparent); }
.consent-words b { display: block; margin-bottom: 4px; font: var(--display-weight) 1.0625rem var(--font-display); }
.consent-words p { margin: 0; color: color-mix(in srgb, var(--text) 82%, transparent); line-height: 1.45; }
.consent-words a { color: var(--accent); font-weight: 600; }
.consent-go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent-go button { margin: 0; padding: 9px 16px; font: inherit; font-weight: 700; border-radius: var(--ctl-radius); cursor: pointer;
  border: 1px solid var(--ctl-line); border-bottom-width: var(--ctl-depth); background: var(--ctl-bg); color: var(--text); }
.consent-go .consent-yes { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-line); border-bottom-width: var(--primary-depth); box-shadow: var(--primary-shadow); }
.consent-go button:hover { filter: brightness(1.08); }
.consent-go button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.still .consent { animation: none; }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 480px) { .consent-go button { flex: 1; } }
