/* Shared by every prototype: local Latin fonts, the skip link and the
   persistent "All concepts" switch. Direction styling lives beside each page. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f2f2f3;
  color: #0a0a0b;
  font: 600 14px/1 "Geist Variable", system-ui, sans-serif;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Persistent, small, and out of the reading column. */
.proto-switch {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.9);
  color: #f2f2f3;
  font: 500 12px/1 "Geist Mono Variable", ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
}

.proto-switch:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.proto-switch:focus-visible {
  outline: 2px solid #ff9a4a;
  outline-offset: 3px;
}

.proto-switch__grid {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 2px;
}

.proto-switch__grid i {
  width: 4px;
  height: 4px;
  background: currentColor;
  opacity: 0.7;
}

/* Intentional horizontal scroll for long commands and wide tables. Every
   .scroll-x element carries tabindex="0" so its hidden part is reachable
   from the keyboard. Pages never mask body overflow. */
.scroll-x {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

@media print {
  .proto-switch,
  .skip-link {
    display: none;
  }
}
