/* shared/styles/crosssite.css
   Cross-site nav bar shared across every *.unchartedworksllc.com site.
   Sits above each site's own header and lets users hop between
   Uncharted Works (marketing) → ATLAS (product) → Store (catalog) → Account.

   Each site's .eleventy.js passthrough-copies this into its assets/ output
   and the layout links it. Edit here once, updates everywhere on next build.

   Color tokens (--cs-*) are mapped from each site's own palette in its
   style.css :root, so this bar inherits the host site's look in both
   light and dark themes. Sensible fallbacks are provided. */

.crosssite {
  background: var(--cs-bg, #efeadc);
  border-bottom: 1px solid var(--cs-rule, #c8c0ae);
  color: var(--cs-fg, #6a6255);
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
}
.cs-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
}

.cs-nav, .cs-auth {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.cs-nav { gap: 2px; }

/* All font properties are explicitly declared on .cs-link rather than
   inherited from .crosssite. Inheritance always loses to a direct
   declaration on the element, so any host-site rule like `nav a { font-size: ... }`
   would override an inherited size. Prefixing with .crosssite raises
   specificity to (0,0,2,0) so we beat unscoped tag selectors like `nav a`. */
.crosssite .cs-link {
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cs-fg, #6a6255);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.crosssite .cs-link:hover {
  color: var(--cs-fg-strong, #231f20);
  background: var(--cs-hover, rgba(0, 0, 0, 0.04));
  text-decoration: none;
}

/* Current-site marker — small dot before the label */
.crosssite .cs-link.cs-current {
  color: var(--cs-fg-strong, #231f20);
  font-weight: 600;
}
.crosssite .cs-link.cs-current::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cs-accent, #2190c1);
}

/* UW root link: same font/size/weight as the product links, just separated
   from them by a thin rule so the family structure reads "UW | products". */
.crosssite .cs-link.cs-uw {
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid var(--cs-rule, #c8c0ae);
  border-radius: 0;
}

/* Auth side — Create account is a quiet outlined chip */
.crosssite .cs-link.cs-cta {
  border: 1px solid var(--cs-rule, #c8c0ae);
  color: var(--cs-fg-strong, #231f20);
  padding: 5px 11px;
}
.crosssite .cs-link.cs-cta:hover {
  border-color: var(--cs-accent, #2190c1);
  color: var(--cs-accent, #2190c1);
  background: transparent;
}

.cs-divider {
  width: 1px;
  height: 14px;
  background: var(--cs-rule, #c8c0ae);
  margin: 0 4px;
  display: inline-block;
}

@media (max-width: 720px) {
  .crosssite .cs-row { padding: 8px 20px; }
  .crosssite .cs-link { padding: 6px 8px; }
  .crosssite .cs-link.cs-uw { padding-right: 10px; margin-right: 2px; }
  /* Hide ATLAS/Store on tiny screens — UW + auth are the priority */
  .crosssite .cs-nav .cs-link.cs-product { display: none; }
}
