/* ============================================================================
   ELECT site — header.css   (the landing + the playground)
   One header for the whole site (owner, 2026-10-04 — proof/header-options.html): the mark on the left (the
   E's three bars, logo.js), the menu in the middle, the page's one black button on the right. Reads only
   --site-* tokens. On a phone the menu folds into a button (site/header.js).
   ============================================================================ */
.site-header { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--site-space-4);
  height: var(--site-header-height); padding: 0 var(--site-space-6); background: var(--site-bg); border-bottom: 1px solid var(--site-line);
  line-height: 1.5; }   /* the same on every page (the landing's body is 1.6) */
.site-header.sticky { position: sticky; top: 0; }
.site-header .home { justify-self: start; display: inline-flex; align-items: center; line-height: 0; }
.site-header .home .elect-mark { display: block; }
/* The page you are on is underlined ON the header's own bottom line (owner): the links take the header's full height
   and reach 1px past it, over its border. */
.site-header nav { display: flex; gap: var(--site-space-5); align-self: stretch; }
.site-header nav a { display: flex; align-items: center; margin-bottom: -1px; font-size: var(--site-text-sm); color: var(--site-text-2); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color var(--elect-motion-effects-duration) ease, border-color var(--elect-motion-effects-duration) ease; }
.site-header nav a:hover { color: var(--site-text); }
.site-header nav a[aria-current="page"] { color: var(--site-text); font-weight: var(--site-weight-medium); border-bottom-color: var(--site-text); }
.site-header .end { justify-self: end; display: flex; align-items: center; gap: var(--site-space-2); }
/* The header's buttons are the site's PILLS (the playground's Export, the hero's call to action) — the same size on
   every page, whatever that page's own .pill padding is. */
.site-header .end .btn-primary, .site-header .menu-btn { border-radius: var(--site-radius-pill); padding: var(--site-space-2) var(--site-space-4);
  font-size: var(--site-text-sm); font-weight: var(--site-weight-medium); white-space: nowrap; }
.site-header .menu-btn { display: none; }

/* A phone: the menu folds into a button and opens as a list under the header. */
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 var(--site-space-4); }
  .site-header .menu-btn { display: inline-flex; }
  .site-header nav { display: none; }
  .site-header.open nav { display: grid; gap: var(--site-space-1); position: absolute; top: 100%; left: 0; right: 0;
    padding: var(--site-space-2) var(--site-space-4) var(--site-space-4); background: var(--site-bg); border-bottom: 1px solid var(--site-line); box-shadow: var(--site-shadow-sm); }
  .site-header.open nav a { display: block; margin: 0; font-size: var(--site-text-md); padding: var(--site-space-2) 0; border-bottom: 0; }
}
