@font-face {
  font-family: "Inter";
  src:
    url("/assets/InterVariable.woff2") format("woff2"),
    url("/assets/InterVariable.woff2") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --ink-2: #080809;
  --ink-3: #131315;
  --paper: #eeeae1;
  --paper-2: #f5f1e7;
  --orange: #ff5a24;
  --smoke: #85827b;
  --line-dark: rgba(245, 241, 231, 0.12);
  --line-light: rgba(10, 10, 11, 0.14);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-hover: 180ms;
  --dur-state: 400ms;
  --dur-reveal: 1000ms;
}

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

html {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

body.drawer-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background-color: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: top var(--dur-hover) var(--ease);
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--paper-2);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ==========================================================================
   STICKY NAVIGATION (identical to getkimo.tech)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(10, 10, 11, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.site-nav {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  transition: opacity var(--dur-hover) var(--ease);
}

.nav-brand:hover {
  opacity: 0.84;
}

.nav-brand-mark {
  width: 22px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.nav-centre {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background-color: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--smoke);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease);
}

.nav-pill:hover {
  color: var(--paper-2);
}

.nav-pill.is-active {
  background-color: var(--paper-2);
  color: var(--ink);
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease),
    transform var(--dur-hover) var(--ease);
}

.nav-github:hover {
  background-color: var(--orange);
  color: var(--ink);
}

@media (max-width: 759px) {
  .site-nav {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 10px 16px;
  }

  .nav-pill {
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* ==========================================================================
   HERO SECTION (Dark --ink)
   ========================================================================== */

.hero {
  background-color: var(--ink);
  color: var(--paper-2);
  border-bottom: 1px solid var(--line-dark);
  padding: 64px 24px 0;
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--smoke);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--paper-2);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.24em;
  row-gap: 0.06em;
  font-variant-numeric: tabular-nums;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.word-inner {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform var(--dur-reveal) var(--ease);
}

.word-inner[data-step="1"] {
  transition-delay: 60ms;
}

.word-inner[data-step="2"] {
  transition-delay: 120ms;
}

.word-inner[data-step="3"] {
  transition-delay: 180ms;
}

html.is-ready .word-inner {
  transform: translate3d(0, 0, 0);
}

#hero-tool-count {
  color: var(--orange);
}

.hero-lede {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--paper);
  max-width: 58ch;
  margin-bottom: 36px;
  opacity: 0.9;
}

/* Search Field */

.search-shell {
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 0 16px;
  min-height: 58px;
  transition: border-color var(--dur-hover) var(--ease);
}

.search-box:focus-within {
  border-color: var(--orange);
}

.search-prompt {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
  user-select: none;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.4;
  padding: 16px 0;
}

.search-input::placeholder {
  color: var(--smoke);
}

.search-input:focus {
  outline: none;
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.result-count {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: lowercase;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-clear {
  appearance: none;
  background-color: var(--ink-2);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition:
    color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease);
}

.search-clear:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* Area Filter Bar with 400ms Sliding Orange Underline */

.area-bar-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--line-dark);
}

.area-bar-wrap::-webkit-scrollbar {
  display: none;
}

.area-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 100%;
}

.area-chip {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--smoke);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  padding: 14px 14px 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--dur-hover) var(--ease);
}

.area-chip:hover {
  color: var(--paper-2);
}

.area-chip.is-active {
  color: var(--paper-2);
}

.area-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--orange);
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--dur-state) var(--ease),
    width var(--dur-state) var(--ease);
  pointer-events: none;
}

/* MCP Protocol Bar */

.protocol-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--smoke);
}

.protocol-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.protocol-label {
  text-transform: lowercase;
  color: var(--smoke);
}

.protocol-item code {
  font-family: var(--font-mono);
  color: var(--paper);
  word-break: break-word;
}

.protocol-sep {
  color: var(--smoke);
  opacity: 0.5;
}

@media (max-width: 639px) {
  .hero {
    padding: 40px 16px 0;
  }

  .search-box {
    padding: 0 12px;
    min-height: 50px;
  }

  .search-input {
    font-size: 14px;
    padding: 12px 0;
  }

  .area-chip {
    padding: 12px 10px 14px;
  }

  .protocol-sep {
    display: none;
  }
}

/* ==========================================================================
   BODY: STICKY LEFT RAIL + GROUP SECTIONS (--paper bg, --ink text)
   ========================================================================== */

.registry-body {
  background-color: var(--paper);
  color: var(--ink);
  min-height: 60vh;
  padding: 48px 24px 96px;
}

.registry-layout {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Sticky Left Rail */

.group-rail {
  position: sticky;
  top: 76px;
}

.group-rail-sticky {
  border-top: 1px solid var(--line-light);
  padding-top: 14px;
}

.group-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  color: var(--smoke);
  margin-bottom: 10px;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
}

.group-rail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}

.rail-link:hover {
  background-color: rgba(10, 10, 11, 0.05);
}

.rail-link.is-active {
  background-color: var(--ink);
  color: var(--paper-2);
}

.rail-link-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-link-count {
  font-size: 11px;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.rail-link.is-active .rail-link-count {
  color: var(--orange);
}

/* Groups Column */

.groups-column {
  min-width: 0;
}

.groups-container {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.group-section {
  border-top: 1px solid var(--line-light);
  padding-top: 20px;
  scroll-margin-top: 84px;
}

.group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 16px;
}

.group-title-row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.group-id {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.group-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

.group-area-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  color: var(--smoke);
}

.group-blurb {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--smoke);
  text-wrap: balance;
}

/* Dense Responsive Tool Grid: 4 desktop, 2 tablet, 1 mobile */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tool-cell {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  background-color: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  transition:
    background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    transform var(--dur-hover) var(--ease);
}

.tool-cell:hover {
  background-color: #ffffff;
  border-color: var(--ink);
  transform: translate3d(0, -1px, 0);
}

.tool-cell.is-selected {
  background-color: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink);
}

.tool-cell-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tool-cell-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--smoke);
  opacity: 0;
  transform: translate3d(-4px, 0, 0);
  transition:
    opacity var(--dur-hover) var(--ease),
    transform var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
  flex-shrink: 0;
}

.tool-cell:hover .tool-cell-arrow,
.tool-cell:focus-visible .tool-cell-arrow,
.tool-cell.is-selected .tool-cell-arrow {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  color: var(--orange);
}

mark.match {
  background: transparent;
  color: var(--orange);
  font-weight: 600;
}

/* Empty State */

.empty-state {
  border-top: 1px solid var(--line-light);
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.empty-state[hidden] {
  display: none;
}

.empty-state-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}

.empty-reset {
  appearance: none;
  background-color: var(--ink);
  color: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: lowercase;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}

.empty-reset:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

@media (max-width: 1023px) {
  .registry-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .group-rail {
    display: none;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .registry-body {
    padding: 32px 16px 72px;
  }

  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   RIGHT-SIDE DRAWER (DESKTOP) / BOTTOM SHEET (MOBILE)
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(10, 10, 11, 0.56);
  opacity: 0;
  transition: opacity var(--dur-state) var(--ease);
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.drawer-backdrop[hidden] {
  display: none;
}

.tool-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(520px, 100vw);
  background-color: var(--ink);
  color: var(--paper-2);
  border-left: 1px solid var(--line-dark);
  transform: translate3d(100%, 0, 0);
  transition: transform var(--dur-state) var(--ease);
  display: flex;
  flex-direction: column;
}

.tool-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.tool-drawer[hidden] {
  display: none;
}

.drawer-sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 28px 28px 36px;
}

.drawer-handle {
  display: none;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}

.drawer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: lowercase;
}

.drawer-group {
  color: var(--orange);
}

.drawer-meta-sep {
  color: var(--smoke);
}

.drawer-area {
  color: var(--smoke);
}

.drawer-close {
  appearance: none;
  background-color: var(--ink-3);
  border: 1px solid var(--line-dark);
  color: var(--paper-2);
  border-radius: 4px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition:
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}

.drawer-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.drawer-close-hint {
  font-size: 11px;
  color: var(--smoke);
  text-transform: lowercase;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-tool-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--paper-2);
  word-break: break-word;
}

.drawer-summary {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
}

.drawer-summary[hidden] {
  display: none;
}

.snippet-block {
  background-color: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}

.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dark);
  background-color: var(--ink-2);
}

.snippet-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  color: var(--smoke);
}

.copy-btn {
  appearance: none;
  background-color: var(--paper-2);
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}

.copy-btn:hover {
  background-color: var(--orange);
  color: var(--ink);
}

.copy-btn.is-copied {
  background-color: var(--orange);
  color: var(--ink);
}

.snippet-pre {
  padding: 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.drawer-describe-note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--smoke);
  padding-top: 8px;
  border-top: 1px solid var(--line-dark);
}

@media (max-width: 759px) {
  .tool-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 86vh;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    border-radius: 12px 12px 0 0;
    transform: translate3d(0, 100%, 0);
  }

  .drawer-sheet {
    padding: 14px 18px 28px;
  }

  .drawer-handle {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background-color: var(--line-dark);
    margin: 0 auto 14px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   FOOTER (identical to getkimo.tech)
   ========================================================================== */

.site-footer {
  background-color: var(--ink-2);
  color: var(--paper-2);
  border-top: 1px solid var(--line-dark);
  padding: 36px 24px 0;
  overflow: hidden;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--smoke);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--paper);
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-wordmark-crop {
  overflow: hidden;
  line-height: 0.78;
  padding-top: 16px;
  user-select: none;
}

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 26vw, 22rem);
  letter-spacing: -0.055em;
  color: var(--paper-2);
  transform: translate3d(0, 14%, 0);
}

@media (max-width: 639px) {
  .site-footer {
    padding: 28px 16px 0;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .word-inner,
  .area-underline,
  .tool-cell,
  .tool-cell-arrow,
  .drawer-backdrop,
  .tool-drawer,
  .nav-pill,
  .nav-github,
  .rail-link,
  .copy-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* nav: page links stay visible on phones and scroll sideways */
@media (max-width: 760px) {
  .site-nav { grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 8px; }
  .nav-centre { display: flex !important; justify-self: end; justify-content: flex-start; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-centre::-webkit-scrollbar { display: none; }
  .nav-centre a { flex: none; padding: 6px 9px; font-size: 12px; min-height: 0; }
}
@media (max-width: 480px) { .nav-right { display: none !important; } }
