/* Shared top bar for every GigDough page (home and app). Colors come from theme.css.
   Same width on every page so the logo and links never move. */
.site-nav {
  border-bottom: 1px solid var(--space);
  background: var(--space);
}

.site-nav-inner {
  max-width: 125rem;
  margin: 0 auto;
  padding: max(1.08rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 1.08rem max(1rem, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img { display: block; height: 2.6rem; width: auto; }   /* the GigDough logo, same on every page */
@media (max-width: 50rem) { .site-logo img { height: 2.3rem; } }

.site-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-links a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-family: "Futura", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95em;
  text-transform: uppercase;
  color: var(--ochre);
  text-decoration: none;
}
.site-links a:hover { color: var(--hover); }
.gd-buyer .site-links li:has(> a[href="./"]) { display: none; }   /* buyers: no Home link (nav.js) */
.site-links a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.site-logo:focus-visible, .site-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 30rem) {   /* small phones: links drop to a second row under the logo when they don't fit */
  .site-nav-inner { flex-wrap: wrap; row-gap: 0.6rem; }
  .site-links { flex-wrap: wrap; }
}
@media (max-width: 26rem) {
  .site-logo img { height: 1.7rem; }
  .site-links a { padding: 0.4rem 0.5rem; font-size: 0.9em; }
}

/* Page loading bar (app/progress.js): a thin line in the accent color across the very top of the window */
.page-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 0; height: 3px; opacity: 0; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-70);
}

/* Footer social icons (every page): own row, brand colors */
.foot-social { display: flex; gap: 1rem; justify-content: center; }
.foot-social a { display: inline-flex; }
.foot-social a:hover { filter: brightness(1.2); }
.foot-social svg { width: 1.6rem; height: 1.6rem; }
.ig-1 { stop-color: var(--ig-1); } .ig-2 { stop-color: var(--ig-2); } .ig-3 { stop-color: var(--ig-3); } .ig-4 { stop-color: var(--ig-4); } .ig-5 { stop-color: var(--ig-5); }
.foot-social .fb { stroke: var(--fb); }
