/* ============================================================
   CROSS-SITE NAV — Goroshi LLC ecosystem strip
   ------------------------------------------------------------
   WHY: each Cloudflare Pages site is an island. This strip
   sits ABOVE the per-site nav and lets a logged-in user
   (Stefano, Fano, Shellye) hop between the 4 surfaces:
   goroshillc.com / portal / atc / glance.
   ------------------------------------------------------------
   PALETTE (locked Apple-neutral):
     #FFFFFF bg / #1D1D1F ink / #6E6E73 muted / #86868B subtle
     #E5E5E7 hairline / #0066CC active-link-when-needed
   FONT: Helvetica Neue stack. No emojis, no glyphs.
   ============================================================ */

.goroshi-xnav {
  /* WHY: position above site-header. white bg so it's visually subtle.
     sticky+top:0+z-index:200 so it always sits above per-site nav, even
     when a per-site nav is itself position:fixed (atc-sales). */
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E7;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #6E6E73;
  /* WHY: respect iPhone safe-area top inset when this is the literal first element */
  padding-top: env(safe-area-inset-top, 0);
  position: sticky;
  top: 0;
  z-index: 200;
}

.goroshi-xnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px; /* WHY: 44pt tap-target floor */
  gap: 12px;
}

.goroshi-xnav-brand {
  font-size: 12px;
  font-weight: 600;
  color: #1D1D1F;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 12px 4px; /* WHY: 44pt tap with min-height container */
  display: inline-flex;
  align-items: center;
}

.goroshi-xnav-brand:hover,
.goroshi-xnav-brand:focus { color: #000000; }

.goroshi-xnav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.goroshi-xnav-links li { margin: 0; padding: 0; }

.goroshi-xnav-links a {
  display: inline-flex;
  align-items: center;
  /* WHY: 44pt tap target via min-height + padding */
  min-height: 44px;
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 400;
  color: #6E6E73;
  text-decoration: none;
  letter-spacing: -0.005em;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.goroshi-xnav-links a:hover,
.goroshi-xnav-links a:focus {
  color: #1D1D1F;
  background: #F5F5F7;
  outline: none;
}

.goroshi-xnav-links a:focus-visible {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}

/* WHY: active page = ink-colored + semibold per spec */
.goroshi-xnav-links a[aria-current="page"],
.goroshi-xnav-links a.is-current {
  color: #1D1D1F;
  font-weight: 600;
}

/* WHY: hamburger toggle hidden on >=640px, shown on small viewports */
.goroshi-xnav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 12px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  color: #1D1D1F;
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
}

.goroshi-xnav-toggle:hover { background: #F5F5F7; }

.goroshi-xnav-toggle:focus-visible {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}

.goroshi-xnav-toggle-bars {
  display: block;
  position: relative;
  width: 18px;
  height: 12px;
}

.goroshi-xnav-toggle-bars::before,
.goroshi-xnav-toggle-bars::after,
.goroshi-xnav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: #1D1D1F;
}

.goroshi-xnav-toggle-bars::before { top: 0; }
.goroshi-xnav-toggle-bars span     { top: 5px; }
.goroshi-xnav-toggle-bars::after   { bottom: 0; }

/* ============================================================
   MOBILE: < 640px collapses to hamburger
   ============================================================ */
@media (max-width: 639px) {
  .goroshi-xnav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .goroshi-xnav-links {
    /* WHY: hidden by default on mobile, shown when [data-open="true"] */
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E7;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 8px 8px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  }
  .goroshi-xnav[data-open="true"] .goroshi-xnav-links { display: flex; }
  .goroshi-xnav-links a {
    width: 100%;
    padding: 12px 10px;
    border-radius: 6px;
  }
}

/* ============================================================
   PRINT: hide the strip entirely
   ============================================================ */
@media print {
  .goroshi-xnav { display: none !important; }
}
