/* topbar.css: the black top bar from the homepage, on every inner page. Loaded last. */
.wm-top { position: fixed; left: 2rem; right: 2rem; top: 1.4rem; z-index: 60; display: flex; align-items: stretch; height: 2.9rem; background: #000; color: #fff; font-family: 'Host Grotesk', system-ui, sans-serif; text-shadow: none; }
.wm-top .brand { display: flex; align-items: center; gap: 0.6rem; background: linear-gradient(rgba(10,8,40,0.28), rgba(10,8,40,0.28)), url(assets/brand_strip.jpg) center / cover no-repeat; text-shadow: 0 1px 2px rgba(0,0,0,0.55); color: #fff; text-decoration: none; padding: 0 1.1rem 0 0.8rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.wm-top .brand img { height: 1.7rem; width: auto; display: block; filter: brightness(0) invert(1); }
.wm-top nav { margin-left: auto; display: flex; align-items: stretch; }
.wm-top nav a { display: flex; align-items: center; padding: 0 1.15rem; color: #fff; text-decoration: none; font-size: 1.02rem; font-weight: 700; border-left: 1px solid rgba(255,255,255,0.16); transition: background 0.12s ease; white-space: nowrap; opacity: 1; }
.wm-top nav a:hover, .wm-top nav a:focus-visible { background: #d43e35; outline: none; }
.wm-top nav a.talk { background: #fff; color: #000; border-left: 0; }
.wm-top nav a.talk:hover { background: #d43e35; color: #fff; }

/* The old stacked side menu is gone, so wide pages no longer need a gutter for it. */
@media (min-width: 1100px) {
  main.cs-container.cs-wide, main.cs-container { padding-left: 5rem; padding-right: 5rem; }
}

/* Phones: brand, a scrolling row of links, and the button. */
@media (max-width: 900px) {
  .wm-top { left: 0.8rem; right: 0.8rem; top: 0.8rem; height: 2.6rem; }
  .wm-top .brand span { display: none; }
  .wm-top .brand { padding: 0 0.7rem; }
  .wm-top nav { overflow-x: auto; scrollbar-width: none; }
  .wm-top nav::-webkit-scrollbar { display: none; }
  .wm-top nav a { padding: 0 0.75rem; font-size: 0.88rem; }
}

/* Narrow phones: all five links fit across the bar, nothing runs off the edge. */
@media (max-width: 520px) {
  .wm-top { left: 0.5rem; right: 0.5rem; }
  .wm-top .brand { padding: 0 0.45rem; }
  .wm-top .brand img { height: 1.5rem; }
  .wm-top nav { flex: 1; overflow: visible; }
  .wm-top nav a { flex: 1 1 auto; justify-content: center; padding: 0 0.3rem; font-size: clamp(0.66rem, 3.15vw, 0.84rem); letter-spacing: -0.01em; }
}
