:root {
  --rb-nav-paper: #f7f2e9;
  --rb-nav-panel: #fffaf2;
  --rb-nav-ink: #151716;
  --rb-nav-muted: #59635f;
  --rb-nav-line: #ded3c4;
  --rb-nav-dark: #12201d;
  --rb-nav-teal: #1f6f63;
  --rb-nav-coral: #b84f3f;
  --rb-nav-bot: #5b3a8f;
  --rb-nav-bot-bg: #f2ecff;
}

.rb-site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(222, 211, 196, 0.9);
  background: rgba(247, 242, 233, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rb-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--rb-nav-dark);
  font: 850 0.9rem Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  text-decoration: none;
  transform: translateY(-150%);
}

.rb-skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #ffd89d;
  outline-offset: 2px;
}

.rb-site-nav,
.rb-site-nav *,
.rb-site-nav *::before,
.rb-site-nav *::after {
  box-sizing: border-box;
}

.rb-nav-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}

.rb-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--rb-nav-ink);
  font: 900 0.98rem Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  text-decoration: none;
}

.rb-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--rb-nav-dark);
  font: 900 1.15rem/1 "Courier New", Courier, monospace;
}

.rb-nav-links,
.rb-bot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-nav-links li,
.rb-bot-links li {
  flex: 0 0 auto;
  max-width: 100%;
}

.rb-nav-links {
  flex: 1 1 auto;
}

.rb-bot-links {
  flex: 0 1 auto;
  padding-left: 12px;
  border-left: 1px solid rgba(222, 211, 196, 0.86);
}

.rb-nav-links a,
.rb-bot-links a,
.rb-nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.rb-nav-links a {
  padding: 8px 10px;
  color: #34413d;
  font: 820 0.91rem Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.rb-nav-links a:hover,
.rb-nav-links a:focus-visible {
  color: var(--rb-nav-teal);
  background: rgba(255, 250, 242, 0.92);
  outline: none;
}

.rb-nav-links a[aria-current="page"],
.rb-bot-links a[aria-current="page"] {
  color: var(--rb-nav-teal);
  background: rgba(255, 250, 242, 0.96);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 99, 0.18);
}

.rb-nav-cta {
  flex: 0 0 auto;
  height: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--rb-nav-coral);
  color: #fff;
  background: var(--rb-nav-coral);
  font: 880 0.9rem/1 Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.rb-nav-cta:hover,
.rb-nav-cta:focus-visible {
  background: #a94335;
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(31, 111, 99, 0.42);
  outline-offset: 3px;
}

a.bot-link,
.rb-agent-resource a,
a[href$=".json"],
a[href$=".csv"],
a[href*="/api/"] {
  color: var(--rb-nav-bot);
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a.bot-link::after,
.rb-agent-resource a::after,
a[href$=".json"]::after,
a[href$=".csv"]::after,
a[href*="/api/"]::after {
  content: "BOT";
  display: inline-flex;
  align-items: center;
  margin-left: 0.42em;
  padding: 0.08em 0.38em;
  border: 1px solid rgba(91, 58, 143, 0.2);
  border-radius: 999px;
  color: var(--rb-nav-bot);
  background: var(--rb-nav-bot-bg);
  font: 800 0.64em/1.45 "Courier New", Courier, monospace;
  letter-spacing: 0.02em;
  vertical-align: 0.08em;
}

.rb-bot-links a {
  padding: 7px 9px;
  background: rgba(242, 236, 255, 0.62);
  font-size: 0.8rem;
}

.rb-bot-links a:hover,
.rb-bot-links a:focus-visible {
  background: var(--rb-nav-bot-bg);
  outline: none;
}

@media (max-width: 1040px) {
  .rb-nav-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .rb-brand {
    min-height: 42px;
  }

  .rb-nav-links {
    order: 3;
    width: 100%;
  }

  .rb-nav-links a {
    padding-inline: 8px;
  }

  .rb-bot-links {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .rb-site-nav {
    position: static;
  }

  .rb-nav-inner {
    width: min(100% - 28px, 1180px);
  }

  .rb-nav-cta {
    order: 1;
  }

  .rb-nav-links {
    order: 2;
    align-items: flex-start;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .rb-nav-links a,
  .rb-bot-links a {
    max-width: 100%;
  }

  .rb-bot-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    overflow-x: visible;
    flex-wrap: wrap;
    scrollbar-width: thin;
  }

  .rb-nav-cta {
    margin-left: auto;
    max-width: calc(100% - 170px);
    white-space: normal;
    text-align: center;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 460px) {
  .rb-nav-inner {
    gap: 8px;
  }

  .rb-nav-cta {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}
