@import url("/warm-tokens.css?v=20260725b");

/* Dense study pages: a compact reading map after the hero. */
.study-contents {
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  background: var(--bg-card, rgba(255, 255, 255, 0.55));
}

.study-contents-inner {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.9rem 1.35rem;
  flex-wrap: wrap;
}

.study-contents-label {
  color: var(--text-muted, currentColor);
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.study-contents a {
  color: var(--text-secondary, currentColor);
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  text-decoration: none;
}

.study-contents a:hover {
  color: var(--accent, currentColor);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

@media (max-width: 640px) {
  .study-contents-inner {
    gap: 0.7rem 1rem;
  }

  .study-contents-label {
    flex-basis: 100%;
  }
}

/*
 * Shared site-shell contract for standalone Track Record studies and utility
 * pages. Page-specific styles retain their analytical layouts; this file owns
 * the primary navigation typography and footer presentation.
 */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  z-index: 10000;
  padding: 0.55rem 1rem;
  border-radius: 0 0 8px 8px;
  color: #fff;
  background: var(--wt-teal);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--wt-teal);
  outline-offset: 3px;
}

.site-nav {
  height: 64px;
  padding: 0 2rem;
  background: rgba(251, 247, 240, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--wt-border);
  transition: border-color 0.3s;
}

.site-nav .nav-logo {
  gap: 0.6rem;
}

.site-nav .nav-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.site-nav .nav-wordmark {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav .wm-right {
  color: var(--wt-ink);
}

.site-nav .wm-fidelity {
  color: var(--wt-teal);
}

.site-nav .wm-ai {
  color: var(--wt-ink-4);
  font-size: 0.72rem;
  font-weight: 400;
  margin-left: 0;
}

.site-nav .nav-links {
  gap: 0;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  display: block;
  padding: 0.4rem 0.8rem;
  color: var(--wt-ink-3);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  border-radius: 6px;
}

.site-nav .nav-links a:hover {
  color: var(--wt-teal);
  background: var(--wt-teal-glow);
}

.site-nav .nav-links a.nav-active {
  color: var(--wt-teal);
  font-weight: 600;
}

.site-nav .nav-links a.nav-cta {
  padding: 0.4rem 1rem !important;
  color: #fff !important;
  background: var(--wt-teal) !important;
  font-weight: 700 !important;
}

.site-nav .nav-links a.nav-cta:hover {
  color: #fff !important;
  background: var(--wt-teal-dim) !important;
}

.site-nav .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  touch-action: manipulation;
}

.site-nav .menu-toggle span,
.site-nav .menu-toggle span:nth-child(2) {
  position: static;
  width: 22px;
  height: 2px;
  margin: 0;
  background: var(--wt-ink);
  transform: none;
}

@media (max-width: 960px) {
  .site-nav {
    padding: 0 1.25rem;
  }

  .site-nav .menu-toggle {
    display: flex;
  }

  .site-nav .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.5rem;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(251, 247, 240, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--wt-border);
  }

  .site-nav .nav-links.open {
    display: flex;
  }

  .site-nav .nav-links a {
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
  }
}

footer {
  border-top-color: rgba(255, 255, 255, 0.07);
  color: rgba(251, 247, 240, 0.68);
  background: var(--wt-bg-footer, #23201c);
}

footer .footer-tagline {
  color: rgba(251, 247, 240, 0.68);
}

footer .footer-map {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  z-index: auto;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

footer .footer-col h4 {
  color: rgba(251, 247, 240, 0.68);
}

footer .footer-col a,
footer .footer-links a {
  color: rgba(251, 247, 240, 0.72);
}

footer .footer-col a:hover,
footer .footer-links a:hover {
  color: rgba(251, 247, 240, 0.88);
}

footer .footer-info,
footer .footer-legal {
  color: rgba(251, 247, 240, 0.64);
}

footer .footer-info a {
  color: rgba(251, 247, 240, 0.78);
}

footer .footer-info a:hover {
  color: rgba(251, 247, 240, 0.88);
}

main[id] {
  scroll-margin-top: 5rem;
}

main[tabindex="-1"]:focus {
  outline: none;
}

html.site-menu-open,
html.site-menu-open body {
  overflow: hidden;
}

.site-table-shell,
.site-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--wt-teal) var(--wt-bg-warm);
}

.site-table-scroll:focus-visible {
  outline: 3px solid var(--wt-teal);
  outline-offset: 3px;
}

.site-table-scroll[data-site-overflow] {
  border-inline-end: 2px solid var(--wt-border-teal);
}
