/* ============================================================
   Negotiation Copilot — Suite Skin
   The shared design layer every tool includes. Two things:
   (1) design tokens (palette / type / spacing)
   (2) the unified .nc-topbar component
   Everything is namespaced .nc- so it never clashes with a
   tool's own styles. Each tool adds, in <head>:
       <link rel="stylesheet" href="https://smartnership.org/suite-skin.css">
   and pastes the topbar snippet (see suite-topbar.html) as the
   first element in <body>, marking its own link class="on".
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;600;700&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,500&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* palette — SMARTnership brand */
  --sn-navy:    #071625;
  --sn-navy-2:  #0e2236;
  --sn-blue:    #023d67;
  --sn-orange:  #fd7702;
  --sn-orange-ink: #071625;
  --sn-paper:   #f4f1ec;
  --sn-ink:     #1b2733;
  --sn-line:    rgba(255,255,255,.12);

  /* type */
  --sn-font-display: 'Red Hat Display', system-ui, sans-serif;
  --sn-font-serif:   'Fraunces', Georgia, serif;
  --sn-font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* shape */
  --sn-radius:    10px;
  --sn-radius-lg: 14px;
}

/* ---- the unified top-bar ---------------------------------- */
.nc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--sn-navy);
  padding: 12px 24px;
  font-family: var(--sn-font-display);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  margin: 0;
  border: 0;
}
/* Hard resets so a host tool's element-level styles (nav{}, etc.)
   can never bleed into the shared bar. Scoped to the <nav> only so the
   .nc-suite button keeps its own styling. */
.nc-topbar, .nc-topbar * { box-sizing: border-box; }
.nc-topbar nav {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  margin: 0; padding: 0; max-width: none;
  position: static; float: none; inset: auto; width: auto; height: auto;
}
.nc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  padding: 0;
}
/* Real SMARTnership logo (white, for the dark bar) — injected via CSS so it
   lives in one place. The hand-drawn .nc-mark in older markup is hidden. */
.nc-brand .nc-mark { display: none; }
.nc-brand::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 90px;
  height: 30px;
  background: url('https://smartnership.org/copilot/assets/smartnership-logo-white.png') left center / contain no-repeat;
}
.nc-brand span {
  border-left: 1px solid rgba(255,255,255,.28);
  padding-left: 12px;
}
.nc-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nc-nav::-webkit-scrollbar { display: none; }
.nc-nav a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}
.nc-nav a:hover { color: #fff; }
.nc-nav a.on { color: var(--sn-orange); }
.nc-suite {
  background: var(--sn-orange);
  color: var(--sn-orange-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: var(--sn-radius);
  white-space: nowrap;
  flex: 0 0 auto;
}
.nc-suite:hover { filter: brightness(1.06); }

@media (max-width: 720px) {
  .nc-topbar { padding: 10px 14px; gap: 10px; }
  .nc-brand span { display: none; }      /* mark only on mobile */
  .nc-nav { gap: 13px; }
  .nc-nav a { font-size: 12px; }
}
