/* Global navigation only: no application layout or private scripts on posts. */
body.tc-has-site-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
#tc-site-nav {
  --tc-nav-primary: #0f5132;
  --tc-nav-soft: #e7f3ec;
  --tc-nav-surface: #fff;
  --tc-nav-muted: #6b7280;
  --tc-nav-border: #e3e7e5;
  box-sizing: border-box;
  display: flex;
  position: fixed;
  inset: auto auto 0 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  min-height: 72px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--tc-nav-surface);
  border: 1px solid var(--tc-nav-border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgb(17 43 28 / 8%);
  z-index: 999;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
#tc-site-nav .tc-site-nav-item {
  box-sizing: border-box;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 2px;
  border-radius: 12px;
  color: var(--tc-nav-muted);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
}
#tc-site-nav .tc-icon { width: 22px; height: 22px; flex-shrink: 0; }
#tc-site-nav .tc-site-nav-item:hover,
#tc-site-nav .tc-site-nav-item[aria-current='page'] { background: var(--tc-nav-soft); color: var(--tc-nav-primary); }
#tc-site-nav .tc-site-nav-item[aria-current='page'] { font-weight: 650; }
#tc-site-nav .tc-site-nav-item:focus-visible { outline: 2px solid var(--tc-nav-primary); outline-offset: -2px; }
body:has(.tc-app[data-theme='dark']) #tc-site-nav {
  --tc-nav-primary: #4fa77b;
  --tc-nav-soft: #203d2c;
  --tc-nav-surface: #18201c;
  --tc-nav-muted: #a8b0ab;
  --tc-nav-border: #303a34;
}
@media print {
  #tc-site-nav { display: none; }
  body.tc-has-site-nav { padding-bottom: 0; }
}
