/* ToolGuest tool-page footer.
 *
 * One block, three stacked rows: the brand mark and name, the site navigation,
 * and a single copyright line that names the tool on the page it closes. It is
 * rendered into the markup by automation/tool-footer/main.py, so the copy is
 * crawlable and identical in every page's HTML rather than assembled in the
 * browser.
 *
 * Styles are self-contained on purpose. The pages carry several design-token
 * conventions (Tailwind utilities, --border/--muted custom properties and plain
 * inline colours) and some set their own `footer` padding, alignment or colour,
 * so the block restates everything it needs rather than inheriting. Dark mode is
 * matched on all three site conventions at once — html.dark,
 * html[data-theme="dark"] and body.dark.
 */
.tf {
  --tf-ink: #18181b;
  --tf-muted: #52525b;
  --tf-faint: #a1a1aa;
  --tf-rule: rgba(24, 24, 27, 0.08);

  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 22px;
  text-align: center;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--tf-muted);
}

/* The <footer> tag itself. Pages used to carry a dozen different classes and
 * inline styles here, each with its own padding and margin, which stacked on
 * top of .tf's own and made the gap 40px on one page and 89px on another.
 * The rule colour is set here rather than read from .tf's --tf-rule: custom
 * properties inherit downwards, so a var declared on .tf is invisible up here. */
.tf-outer {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  background: none;
  text-align: center;
}

html.dark .tf-outer,
html[data-theme="dark"] .tf-outer,
body.dark .tf-outer {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.tf *,
.tf *::before,
.tf *::after {
  box-sizing: border-box;
}

/* Row 1 — the mark and the wordmark, on one centred line. */
.tf__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tf-ink);
  text-decoration: none;
}

.tf__brand img {
  display: block;
  width: auto;
  height: 24px;
  flex: 0 0 auto;
}

/* Row 2 — the five site links, middot-separated on one line. */
.tf__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  font-weight: 600;
}

.tf__nav a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tf-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.tf__nav a + a::before {
  content: "·";
  color: var(--tf-faint);
  padding: 0 10px;
  font-weight: 700;
}

.tf__nav a:hover,
.tf__nav a:focus-visible {
  color: var(--tf-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Row 3 — copyright, tool name, then the site-wide promise. */
.tf__copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--tf-faint);
}

.tf__copy strong {
  font-weight: 650;
  color: var(--tf-muted);
}

/* Row 4 — the disclosure badge AGENTS.md requires (see "Analytics"). Several
 * tool pages carried it before this footer was shared; keeping it here means
 * the claim is stated on every tool page rather than the eight that happened
 * to have it. */
.tf__badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--tf-faint);
}

.tf__badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #10b981;
}

.tf__nav a:focus-visible,
.tf__brand:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dark theme — all three conventions the site uses. */
html.dark .tf,
html[data-theme="dark"] .tf,
body.dark .tf {
  --tf-ink: #f4f4f5;
  --tf-muted: #a1a1aa;
  --tf-faint: #71717a;
  --tf-rule: rgba(255, 255, 255, 0.09);
}

@media (max-width: 480px) {
  .tf {
    padding: 24px 18px;
  }

  .tf__nav a,
  .tf__nav a + a::before {
    font-size: 11.5px;
  }

  .tf__nav a + a::before {
    padding: 0 7px;
  }
}
