/* ---------------------------------------------------------------------------
 * Shared site chrome: the header bar, the grouped section menu, and the theme
 * toggle.
 *
 * Four pages carry this. The markup stays inline in each page so the nav works
 * without JavaScript and each link is a real URL — the design mockup used
 * buttons and client-side routing, but shareable links and a working back
 * button are worth more than the routing was.
 * ------------------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--panel, #0B3529);
  color: var(--cream-text, #EAE9D5);
  padding: 0 var(--s4, 1.5rem);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: var(--s4, 1.5rem);
  flex-wrap: wrap;
}

.site-brand { display: flex; align-items: center; gap: .625rem; padding: .75rem 0; }
.site-brand svg { display: block; flex: none; }
.site-brand .name {
  margin: 0; font-size: .9375rem; font-weight: 700;
  color: var(--cream-text, #EAE9D5); letter-spacing: -.01em; line-height: 1.2;
}
.site-brand .who {
  margin: 0; font-size: .6875rem; color: var(--sage, #6E9C86); line-height: 1.3;
}

/* Two labelled groups — Intelligence, Production — so the four destinations
   read as two kinds of work rather than a flat list. */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s3, 1rem);
  flex-wrap: wrap;
  padding: .5rem 0;
}
.nav-group { display: flex; align-items: center; gap: .375rem; }
.nav-group-label {
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage, #6E9C86);
  margin-right: .125rem;
  white-space: nowrap;
}

.nav-link {
  color: var(--cream-text, #EAE9D5);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  padding: .3125rem .8125rem;
  border-radius: 999px;
  border: 1px solid #ffffff22;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.nav-link:hover { border-color: var(--sage, #6E9C86); background: #ffffff0f; }

/* The current section reads as selected rather than as another destination. */
.nav-link[aria-current="page"] {
  background: var(--emerald, #2C785E);
  border-color: var(--emerald, #2C785E);
  font-weight: 600;
}
.nav-link:focus-visible { outline: 2px solid var(--sage, #6E9C86); outline-offset: 2px; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: .375rem;
  background: transparent;
  color: var(--sage, #6E9C86);
  border: 1px solid #ffffff22;
  border-radius: 999px;
  padding: .3125rem .75rem;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--cream-text, #EAE9D5); border-color: var(--sage, #6E9C86); }
.theme-toggle:focus-visible { outline: 2px solid var(--sage, #6E9C86); outline-offset: 2px; }

/* Page furniture shared by the production pages. */
.page-eyebrow {
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent, var(--accent-on-ground, #2C785E));
  margin: 0 0 var(--s2, .75rem);
}
.page-title {
  color: var(--ink, #103224); font-weight: 700; line-height: 1.12;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: 0 0 var(--s3, 1rem);
  letter-spacing: -.015em;
}
.page-lede { max-width: 68ch; margin: 0 0 var(--s5, 2rem); }

/* On a phone the nav wraps to its own row rather than shrinking below a
   comfortable tap target. */
@media (max-width: 760px) {
  .site-nav { width: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .nav-group-label { display: none; }
  .site-nav { gap: .5rem; }
}
