/* The WEXTheory world on every page: bold tabular numerals, the strip of real scenes, the gantry
   strip of counted facts and the links in the top bar. Built on the tokens in style.css. */

/* Numerals use the site's own Inter: the owner found dot-matrix digits out of place (22 Oct 2026). */
.wx-led {
  font-family: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* A quiet strip of real test scenes behind the top of the page. */
.wx-wall {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(150px, 1fr));
  gap: 6px;
  height: 300px;
  padding: 6px;
  overflow: hidden;
  pointer-events: none;
}
.wx-wall img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.55);
}
.wx-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 72%, transparent) 0%, var(--bg) 92%);
}
[data-theme="light"] .wx-wall img {
  filter: grayscale(0.2) brightness(1.05) contrast(0.9);
  opacity: 0.55;
}
[data-theme="light"] .wx-wall::after {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, var(--bg) 88%);
}

/* One gantry strip of counted facts. */
.wx-gantry {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background-color: var(--bg-card);
  list-style: none;
}
.wx-gantry li {
  min-width: 170px;
}
.wx-gantry li + li {
  border-left: 1px solid var(--border);
}
.wx-gantry-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 22px 14px 18px;
}
.wx-gantry li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 22px 14px 18px;
}
.wx-gantry li:has(.wx-gantry-link) {
  padding: 0;
}
.wx-gantry .wx-led {
  font-size: 2rem;
  line-height: 1;
}
.wx-gantry .wx-led small {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.wx-gantry-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.wx-gantry-link {
  color: inherit;
  text-decoration: none;
}
.wx-gantry-link:hover .wx-gantry-label {
  color: var(--accent);
}

/* Links in the top bar of inner pages (templates/_nav_links.html). */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 14px;
}
.site-nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--text);
}
.site-nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
nav .burger-btn,
nav .theme-btn,
nav .nav-right .btn-ghost {
  border-color: var(--border-strong);
  border-radius: 10px;
}
@media (max-width: 960px) {
  .site-nav-links {
    display: none;
  }
}
