/* One footer composition for home, games, editorial pages and tools. */
footer[data-site-footer] {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: block;
  width: var(--tf-shell-width, min(var(--tf-shell), calc(100% - 2 * var(--tf-header-gutter))));
  max-width: none;
  margin: 12px auto max(36px, env(safe-area-inset-bottom, 0px));
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--tf-border);
  border-radius: 0;
  color: var(--tf-muted);
  background: transparent;
  box-shadow: none;
  font: 400 1rem / 1.5 var(--tf-font);
  letter-spacing: normal;
  text-align: start;
}
footer[data-site-footer] .site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 28px;
  margin: 0;
  padding: 0;
}
footer[data-site-footer] .site-footer-inner > * { min-width: 0; }
footer[data-site-footer] .site-footer-brand { display: grid; gap: 8px; max-width: 24rem; }
footer[data-site-footer] .site-footer-title {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .45rem;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  color: var(--tf-text);
  font: var(--tf-weight-bold) 1.4rem / 1 var(--tf-font);
  letter-spacing: -.05em;
  text-decoration: none;
}
footer[data-site-footer] .brand-name { font: inherit; letter-spacing: inherit; white-space: nowrap; }
footer[data-site-footer] .brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; line-height: 1; }
footer[data-site-footer] .brand-mark img { display: block; width: 32px; height: 32px; }
footer[data-site-footer] .site-footer-title:is(:hover, :focus-visible) .brand-name { color: var(--tf-accent-text); }
footer[data-site-footer] .site-footer-copy { margin: 0; color: var(--tf-muted); font-size: .9rem; line-height: 1.5; }
footer[data-site-footer] .site-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-self: center; gap: 10px 16px; margin: 0; padding: 0; }
footer[data-site-footer] :is(.site-footer-nav a, .site-footer-brevo) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tf-muted);
  font: 500 .875rem / 1.5 var(--tf-font);
  letter-spacing: normal;
  text-decoration: none;
  transform: none;
  transition: color 160ms ease;
}
footer[data-site-footer] :is(.site-footer-nav a, .site-footer-brevo):is(:hover, :focus-visible) { color: var(--tf-text); transform: none; }
footer[data-site-footer] a:focus-visible { outline: var(--tf-focus-ring); outline-offset: 4px; }
footer[data-site-footer] .site-footer-meta { display: grid; justify-items: end; gap: 8px; margin: 0; text-align: end; }
footer[data-site-footer] a.site-footer-brevo { gap: 6px; color: var(--tf-accent-text); }
footer[data-site-footer] .site-footer-copyright { grid-column: auto; margin: 0; color: var(--tf-subtle); font-size: .84rem; line-height: 1.4; }
html[data-tf-appearance="light"] footer[data-site-footer] a.site-footer-brevo { color: var(--tf-muted); }

@media (max-width: 1020px) {
  footer[data-site-footer] .site-footer-inner { grid-template-columns: 1fr auto; }
  footer[data-site-footer] .site-footer-nav { justify-content: flex-end; }
  footer[data-site-footer] .site-footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; justify-items: start; text-align: start; }
}
@media (max-width: 780px) {
  footer[data-site-footer] .site-footer-inner { grid-template-columns: 1fr; gap: 20px; }
  footer[data-site-footer] .site-footer-nav { justify-content: flex-start; gap: 8px 20px; }
  footer[data-site-footer] .site-footer-meta { display: grid; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  footer[data-site-footer] a { transition: none; }
}
