/* ToolGuest site directory.
 *
 * A static, crawlable list of every tool and policy page, injected into each
 * page's footer by automation/seo-links/main.py. The homepage directory is
 * rendered by JavaScript, so before this block the site had no static internal
 * links at all: the homepage passed no link equity to its tool pages, and two
 * pages (epoch-converter, disclaimer) were orphaned. This block is plain HTML,
 * so a crawler sees it without running a script.
 *
 * Styles are self-contained because the pages use several design-token
 * conventions (Tailwind utilities, --border/--muted custom properties and plain
 * colours). Dark mode is matched on all three site conventions at once.
 */
.tg-dir {
  width: 100%;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  margin-top: 18px;
  padding-top: 16px;
}

.tg-dir__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #18181b;
}

.tg-dir__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 20px;
}

.tg-dir__group h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}

.tg-dir__group ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tg-dir__group a {
  font-size: 12.5px;
  color: #52525b;
  text-decoration: none;
}

.tg-dir__group a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.tg-dir__legal {
  margin: 12px 0 0;
  font-size: 12px;
  color: #71717a;
}

.tg-dir__legal a {
  color: #52525b;
  text-decoration: none;
}

.tg-dir__legal a:hover {
  text-decoration: underline;
}

.tg-dir__sep {
  padding: 0 6px;
  color: #a1a1aa;
}

:where(html.dark, html[data-theme="dark"], body.dark) .tg-dir {
  border-top-color: rgba(255, 255, 255, 0.1);
}

:where(html.dark, html[data-theme="dark"], body.dark) .tg-dir__title {
  color: #fafafa;
}

:where(html.dark, html[data-theme="dark"], body.dark) .tg-dir__group h3 {
  color: #a1a1aa;
}

:where(html.dark, html[data-theme="dark"], body.dark) .tg-dir__group a,
:where(html.dark, html[data-theme="dark"], body.dark) .tg-dir__legal a {
  color: #a1a1aa;
}

:where(html.dark, html[data-theme="dark"], body.dark) .tg-dir__group a:hover {
  color: #818cf8;
}

:where(html.dark, html[data-theme="dark"], body.dark) .tg-dir__legal {
  color: #71717a;
}
