/* Shared site header and footer. Used on every page.
   All class names start with rb- so they never clash with page styles. */

.rb-header, .rb-footer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.rb-header *, .rb-footer * { box-sizing: border-box; }

.rb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e5e7eb;
}
.rb-header-inner, .rb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.rb-header-inner { min-height: 64px; }
.rb-logo { display: inline-flex; align-items: center; min-height: 44px; }
.rb-logo img { height: 30px; width: auto; display: block; }

.rb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.rb-nav a {
  display: inline-block;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.rb-nav a:hover { color: #111111; }
.rb-nav a[aria-current="page"] {
  font-weight: 600;
  color: #111111;
  border-bottom-color: #111111;
}

.rb-footer { border-top: 1px solid #e5e7eb; }
.rb-footer-inner { padding: 32px; gap: 12px 24px; }
.rb-footer .rb-logo { min-height: 0; }
.rb-footer .rb-logo img { height: 26px; }
.rb-footer-links { display: flex; flex-wrap: wrap; gap: 0 8px; }
.rb-footer-links a {
  display: inline-block;
  padding: 12px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
}
.rb-footer-links a:hover { color: #111111; text-decoration: underline; }

a:focus-visible { outline: 2px solid #111111; outline-offset: 3px; }

@media (max-width: 560px) {
  .rb-header-inner, .rb-footer-inner { padding-left: 20px; padding-right: 20px; }
  .rb-nav a { padding: 12px 8px; }
}

.rb-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.rb-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #ffffff; background: #111111;
  border: 1px solid #111111; text-decoration: none;
}
.rb-header-cta:hover { background: #000000; color: #ffffff; }
@media (max-width: 640px) {
  .rb-header-right { display: contents; }
  .rb-header-cta { order: 2; margin-left: auto; }
  .rb-header-right .rb-nav { order: 3; width: 100%; }
}
