/* Shared site header (every page): name, links, action, and the phone menu. Loads after the page's own CSS; tokens only, no script needed (details/summary). */
.bar { z-index: 30; }
.bar .wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); } /* services.css has no .wrap */
.nav { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; font-size: 16px; font-weight: 500; position: relative; z-index: 6; }
.nav .home { margin-right: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; font-stretch: 125%; font-size: 19px; letter-spacing: -0.02em; }
.nav .tide { width: 34px; height: 22px; color: var(--mark); flex: none; }
.nav .tide path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.nav .tide .grain { stroke: var(--warm); }
.nav .links { display: flex; gap: 26px; }
.nav .links a { text-decoration: none; }
.nav .links a:hover { text-decoration: underline; text-decoration-color: var(--warm); text-decoration-thickness: 2px; }
.nav .links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--warm); text-decoration-thickness: 2px; }
.nav .btn { padding: 13px 20px; font-size: 15px; }

/* Phone menu: details/summary, works without JavaScript */
.menu { display: none; }
@media (max-width: 900px) {
  /* The bar sticks to the top while the page scrolls. It sits directly under body (sticky only works inside its parent), so the page's own sections scroll under it. */
  .sec.bar { position: sticky; top: 0; padding-top: env(safe-area-inset-top, 0px); }
  html { scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
  .nav { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav .links, .nav .btn { display: none; }
  .menu { display: block; }
  .menu-btn { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink); font: 550 15px/1 var(--font); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background var(--t-fast) ease; }
  .menu-btn::-webkit-details-marker { display: none; }
  .menu-btn:hover, .menu[open] > .menu-btn { background: var(--raise); }
  .menu-btn svg { width: 20px; height: 20px; flex: none; }
  .menu-btn path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .menu-btn .i-x, .menu[open] .i-bars { display: none; }
  .menu[open] .i-x { display: inline; }
  .menu-panel { position: absolute; left: var(--gut); right: var(--gut); top: calc(100% - 4px); z-index: 20; display: flex; flex-direction: column; padding: 8px 20px 20px; background: var(--raise); color: var(--ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(4, 10, 18, 0.45); max-height: calc(100svh - 84px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 56px; font-size: 22px; font-weight: 650; font-stretch: 112%; letter-spacing: -0.01em; text-decoration: none; }
  .menu-panel a:not(.btn) + a:not(.btn) { box-shadow: inset 0 2px 0 var(--bg-2); }
  .menu-panel a:not(.btn):hover { color: var(--mark); }
  .menu-panel a[aria-current="page"] { color: var(--mark); }
  .menu-panel .btn { display: flex; justify-content: center; margin-top: 12px; padding: 18px 26px; font-size: 16px; }
}
@media (max-width: 560px) {
  .nav { gap: 8px; }
  .nav .home { gap: 8px; font-size: 16px; white-space: nowrap; }
  .nav .tide { width: 28px; height: 18px; }
}
@media (max-width: 380px) { .nav .home { font-size: 15px; } }
