/* Branch colors, shared by every page that shows the military branches.
   Generic service colors only: no official seals, emblems or logos (see CLAUDE.md).
   --br        main color; white text on it passes WCAG AA
   --br-accent trim color (stripes, icons on --br); never used for text on white
   Set data-branch="<slug>" on an element; children inherit. Icons: partials/branch_icon.html */
[data-branch]                 { --br: #1e293b; --br-accent: #94a3b8; }
[data-branch="army"]          { --br: #221f1c; --br-accent: #f2c300; }
[data-branch="navy"]          { --br: #0b2a52; --br-accent: #d4af37; }
[data-branch="air-force"]     { --br: #00308f; --br-accent: #c0c7d2; }
[data-branch="marine-corps"],
[data-branch="marines"]       { --br: #9e1b32; --br-accent: #ffc72c; }
[data-branch="coast-guard"]   { --br: #0a3161; --br-accent: #e5512a; }
[data-branch="space-force"]   { --br: #1b2433; --br-accent: #aab4c3; }

.branch-ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; color: var(--br); }

/* A row of links/buttons, one per branch (switchers, tabs) */
.br-pill { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s; }
/* margin, not gap: page styles may make the pill display:block */
.br-pill .branch-ico { margin-right: 7px; }
.br-pill:hover { border-color: var(--br) !important; }
.br-pill.current, .br-pill.active { background: var(--br) !important; color: #fff !important;
  border-color: var(--br) !important; box-shadow: inset 0 -3px 0 var(--br-accent); }
.br-pill.current .branch-ico, .br-pill.active .branch-ico { color: var(--br-accent); }

/* Page header band for a single-branch page */
.br-band { border-top: 4px solid var(--br) !important; position: relative; }
.br-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--br-accent) 0 64px, transparent 64px); }
