/* The header shared by every page of the homepage site (index, contact, privacy, terms, 404).
   Matches the service's header (server/src/ui.ts). nav.js adds the phone menu and signed-in state. */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251,253,251,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #d5e8dc; }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 22px; position: relative; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: #13261e; text-decoration: none; letter-spacing: -.3px; }
.nav .logo .word span { color: #2e9466; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links > a { color: #5b6e64; text-decoration: none; font-size: 15px; }
.nav-links > a:hover, .nav-links > a[aria-current] { color: #175a41; }
.nav-links > a[aria-current]:not(.nav-cta) { font-weight: 600; }
.nav-links .nav-cta { display: inline-block; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 10px; padding: 9px 16px; background: #ff9a62; color: #4a1f05; box-shadow: 0 1px 2px rgba(150,70,20,.25); }
.nav-links .nav-cta:hover { background: #f5874a; color: #4a1f05; }
.nav-links .acct-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid #d5e8dc; border-radius: 99px; background: #fff; color: #13261e; font-size: 14px; font-weight: 600; text-decoration: none; max-width: 230px; }
.nav-links .acct-chip:hover { border-color: #1f6f50; color: #13261e; }
.acct-chip .av { width: 28px; height: 28px; border-radius: 50%; background: #1f6f50; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.acct-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links .region select { font: inherit; font-size: 14px; color: #13261e; background: #fff; border: 1px solid #d5e8dc; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.nav-links .region select:hover { border-color: #1f6f50; }
.nav-links .region select:focus-visible { outline: 3px solid #6fd08c; outline-offset: 1px; }
.menu-btn { display: none; margin-left: auto; padding: 8px; background: none; border: 1px solid #d5e8dc; border-radius: 10px; color: #13261e; cursor: pointer; }
.menu-btn:hover { background: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: #fff; border: 2px solid #1f6f50; border-radius: 8px; padding: 8px 14px; font-weight: 600; }
.skip:focus { top: 10px; }
html { scroll-padding-top: 80px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid #d5e8dc; box-shadow: 0 18px 30px rgba(19,38,30,.1); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 4px; border-bottom: 1px solid #eef8f1; font-size: 16px; }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; padding: 12px 16px; border-bottom: 0; }
  .nav-links .region { padding: 10px 4px; border-bottom: 1px solid #eef8f1; }
  .nav-links .region select { width: 100%; font-size: 16px; padding: 9px 10px; }
  .nav-links .acct-chip { order: -1; border: 0; padding: 8px 0; max-width: none; background: none; }
}
@media (max-width: 600px) { .nav-in { padding: 0 16px; } }
