/*
 * The site footer (layouts/_footer), on the landing and the app layouts alike, so these rules
 * aren't scoped to either page type. Colors come from theme.css.
 *
 * Four columns (brand, product, legal, contact) on wide screens; on tablets the brand goes above
 * the other three, and on phones those wrap two to a row. The copyright is on its own line below.
 */
.site-footer {
  --footer-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  border-top: 1px solid var(--tn-border);
  background: var(--tn-bg-deep);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tn-comment);
}
.site-footer-inner,
.site-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.site-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--footer-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--tn-fg);
}
.site-footer-mark {
  color: var(--tn-blue);
  letter-spacing: -2px;
  text-shadow: 0 0 18px rgba(var(--tn-blue-rgb), 0.6);
}
.site-footer-note { margin: 0; max-width: 28em; }
.site-footer-badge { margin-top: 4px; line-height: 0; }
.site-footer-badge a { display: inline-block; border-radius: 10px; }
.site-footer-badge img { display: block; max-width: 100%; height: auto; }

.site-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer .site-footer-column h2 { /* beats the landing pages' general body.landing h2 */
  margin: 0 0 4px;
  font-family: var(--footer-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--tn-comment);
}
.site-footer-column a { color: var(--tn-fg-muted); text-decoration: none; }
.site-footer-column a:hover { color: var(--tn-fg); }
.site-footer-email { overflow-wrap: anywhere; }
.site-footer a:focus-visible { outline: 2px solid var(--tn-cyan); outline-offset: 2px; border-radius: 4px; }

.site-footer-languages { display: flex; flex-wrap: wrap; gap: 2px; margin: 8px 0 0 -6px; } /* aligns the first code with the links */
.site-footer-languages a {
  font-family: var(--footer-mono);
  font-size: 11.5px;
  color: var(--tn-comment);
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.site-footer-languages a:hover { color: var(--tn-fg); border-color: var(--tn-border); }
.site-footer-languages a.current { color: var(--tn-blue); border-color: rgba(var(--tn-blue-rgb), 0.45); }

.site-footer-bottom {
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid var(--tn-border);
  font-size: 12.5px;
}

@media (max-width: 860px) {
  .site-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; padding: 32px 16px 24px; }
  .site-footer-bottom { padding-left: 16px; padding-right: 16px; }
}
