/* CelDrive site header — THE shared header. One definition, used by the
   landing (index.html) and every sub-page. Do not fork this: if the landing
   and a sub-page ever look different, that's a bug in here, not a reason to
   copy it. Values are the landing's originals.

   It carries its own tokens + font so it renders identically no matter which
   stylesheet the host page loads (sub-pages load styles.css, the landing
   doesn't). Selectors are scoped under .chdr so the older styles.css rules
   for .btn/.link/.brand can't reach in and change it. */

.chdr {
  --c-surface: #141a17;
  --c-surface-2: #1a211d;
  --c-line: #2a332e;
  --c-fg: #eef2f0;
  --c-dim: #8b978f;
  --c-accent: #34e08a;
  --c-ink: #04160c;
  --c-shadow: 0 30px 80px -26px rgba(0, 0, 0, .85);

  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
}
.chdr *, .chdr *::before, .chdr *::after { box-sizing: border-box; }

.chdr .chdr-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px;
  color: var(--c-fg); text-decoration: none;
  margin-right: auto;
}
.chdr .chdr-glyph {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--c-accent); color: var(--c-ink);
  display: grid; place-items: center;
}
.chdr .chdr-glyph svg { width: 16px; height: 16px; }

.chdr .chdr-menu { position: relative; display: flex; margin-right: 4px; }
.chdr .chdr-ham {
  appearance: none; border: 1px solid var(--c-line);
  background: var(--c-surface); color: var(--c-fg);
  width: 36px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; cursor: pointer;
}
.chdr .chdr-ham span { display: block; width: 15px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.chdr .chdr-ham span::before, .chdr .chdr-ham span::after { content: ""; position: absolute; left: 0; width: 15px; height: 2px; background: currentColor; border-radius: 2px; }
.chdr .chdr-ham span::before { top: -5px; }
.chdr .chdr-ham span::after { top: 5px; }

.chdr .chdr-pop {
  position: absolute; left: 0; top: 40px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 12px; box-shadow: var(--c-shadow);
  padding: 6px; min-width: 190px; display: none; z-index: 60;
}
.chdr .chdr-pop.open { display: block; }
.chdr .chdr-pop a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--c-fg); text-decoration: none; font-size: 14px; }
.chdr .chdr-pop a:hover { background: var(--c-surface-2); color: var(--c-accent); }

.chdr .chdr-lang { display: flex; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; margin-right: 4px; }
.chdr .chdr-lang button { appearance: none; border: 0; background: none; color: var(--c-dim); font: inherit; font-size: 12px; font-weight: 640; padding: 6px 11px; cursor: pointer; }
.chdr .chdr-lang button.on { background: var(--c-surface); color: var(--c-fg); }

.chdr .chdr-link { color: var(--c-fg); text-decoration: none; font-size: 14px; font-weight: 540; padding: 8px 12px; border-radius: 8px; }

.chdr .chdr-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  font-weight: 650; font-size: 14.5px;
  background: var(--c-accent); color: var(--c-ink);
  padding: 10px 17px; border-radius: 10px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}

@media (max-width: 560px) {
  .chdr { padding: 14px 16px; }
  .chdr .chdr-link { display: none; }
}
