/* 06-components/boot-header — the masthead rendered as a resolving boot/log line
   (composes c-boot), with the primary nav and the auth-state cluster
   hanging off it so the nav reads as arguments to a running process, not tabs.
   Under .is-flat (admin) the same grammar renders flat and monochrome. */
.c-boot-header {
  border-block-end: 1px solid var(--rule);
  padding-block: var(--space-sm);
  background: color-mix(in srgb, var(--brand) 3%, transparent);
}

/* The resolving boot/status line; the wordmark is the machine naming itself. */
.c-boot-header__title {
  font-size: var(--text-sm);
}
.c-boot-header__brand {
  color: var(--brand);
  letter-spacing: var(--tracking-label);
  text-shadow: var(--glow) color-mix(in srgb, var(--brand) 45%, transparent);
}
.c-boot-header__brand:hover { text-shadow: var(--glow) var(--brand); }

/* The nav + auth row beneath the boot line. */
.c-boot-header__bar {
  --o-cluster-gap: var(--space-sm) var(--space-lg);
  margin-block-start: var(--space-xs);
}

.c-boot-header__nav {
  --o-cluster-gap: var(--space-xs) var(--space-md);
}
.c-boot-header__nav a {
  font-family: var(--font-chrome);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-chrome);
}
/* Active nav item: never colour alone — a leading prompt glyph + underline. */
.c-boot-header__nav a.is-active {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.c-boot-header__nav a.is-active::before {
  content: "> ";
  color: var(--brand);
}

/* The identity cluster: donor marker, name, admin door, sign out. */
.c-boot-header__auth {
  --o-cluster-gap: var(--space-xs) var(--space-sm);
}
.c-boot-header__user {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  max-width: min(46vw, 26ch);
  font-family: var(--font-chrome);
  font-size: var(--text-sm);
  color: var(--ink);
}
/* A long MC/username fallback truncates rather than shoving the cluster offscreen. */
.c-boot-header__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The admin door: a bracketed key for holders, distinct from a plain nav link. */
.c-boot-header__admin {
  font-family: var(--font-chrome);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-chrome);
  white-space: nowrap;
}
.c-boot-header__admin::before { content: "["; opacity: 0.6; }
.c-boot-header__admin::after  { content: "]"; opacity: 0.6; }

/* Admin drops the CRT: the same grammar, flat and monochrome — no glow, no tint. */
.is-flat .c-boot-header { background: none; }
.is-flat .c-boot-header__brand,
.is-flat .c-boot-header__brand:hover { text-shadow: none; }
