/* ============================================================================
   VENDORED FILE — DO NOT EDIT BY HAND.

   Verbatim copy of the canonical CCI design system:
     repo:   cybercraft-institute/cci-styles
     file:   menu/cci-menu.css
     commit: b1d2cde68a67bc9d19d83cc9085c91b924828172

   Refresh:     npm run sync:cci-styles
   Check drift: npm run sync:cci-styles -- --check
   Update:      bump PINNED_COMMIT in scripts/sync-cci-styles.mjs, then refresh.
   ============================================================================ */

/* ============================================================================
   CCI shared site menu — canonical styles (pairs with menu/cci-menu.js).

   The cross-site slide-in menu, matching the Network graph's menu-mode
   drawer: frosted dark panel from the right, big uppercase entries, yellow
   accents. Consumers vendor this file verbatim (same sync pattern as
   cci.css) and open/close it via cci-menu.js.

   Markup contract (built by cci-menu.js):
     body > .cci-menu-backdrop + nav.cci-menu-panel
   Toggle buttons carry [data-cci-menu-toggle] — style them with the app's
   own header button classes, or use .cci-menu-toggle below.
   Open state: body.cci-menu-open.

   NOTE for the Network repo: the graph renders the menu INSIDE its drawer
   with its own engine — it hand-syncs the ITEM LIST from cci-menu.js, not
   these styles (documented there).
   ========================================================================= */

/* Default toggle (burger) — matches the Network graph's control pills. */
.cci-menu-toggle {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 2px solid var(--cci-yellow, #ffed00);
  padding: 6px 9px;
  cursor: pointer;
}
.cci-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cci-ink, #f4f4f6);
}
.cci-menu-toggle:hover,
.cci-menu-toggle:focus-visible {
  background: var(--cci-yellow, #ffed00);
  outline: none;
}
.cci-menu-toggle:hover span,
.cci-menu-toggle:focus-visible span {
  background: #111114;
}

.cci-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 899;
  background: rgba(10, 10, 12, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.cci-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  width: min(340px, 88vw);
  box-sizing: border-box;
  padding: 58px 34px 34px;
  background: linear-gradient(to bottom, rgba(58, 58, 66, 0.97), rgba(14, 14, 16, 0.97));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 1px solid var(--cci-hairline, rgba(255, 255, 255, 0.16));
  transform: translateX(102%);
  transition: transform 260ms ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

body.cci-menu-open .cci-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.cci-menu-open .cci-menu-panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .cci-menu-backdrop,
  .cci-menu-panel {
    transition: none;
  }
}

/* Close × — the one way out that's always visible (backdrop + Escape also
   close). The toggle button disappears behind the backdrop while open, so
   the open panel never shows a hamburger. */
.cci-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  appearance: none;
  background: var(--cci-yellow, #ffed00);
  border: none;
  color: #000000;
  font-size: 20px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cci-menu-close:hover,
.cci-menu-close:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 237, 0, 0.35);
  outline: none;
}

/* App-specific entries (session-aware, rendered by the host app) sit above
   the CCI list, styled as a compact group. */
.cci-menu-app {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--cci-hairline, rgba(255, 255, 255, 0.16));
}
.cci-menu-app a,
.cci-menu-app button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  align-self: flex-start;
  color: var(--cci-ink, #f4f4f6);
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.cci-menu-app a:hover,
.cci-menu-app a:focus-visible,
.cci-menu-app button:hover,
.cci-menu-app button:focus-visible {
  color: var(--cci-yellow, #ffed00);
  outline: none;
}
.cci-menu-app a.active {
  border-bottom: 2px solid var(--cci-yellow, #ffed00);
}

/* The CCI cross-site list. */
.cci-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cci-menu-list a {
  display: inline-block;
  color: var(--cci-ink, #f4f4f6);
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.cci-menu-list a:hover,
.cci-menu-list a:focus-visible {
  color: var(--cci-yellow, #ffed00);
  border-bottom-color: var(--cci-yellow, #ffed00);
  outline: none;
}

/* Footer group: app extras (language toggle) + CTA + legal. */
.cci-menu-secondary {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--cci-hairline, rgba(255, 255, 255, 0.16));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cci-menu-secondary a,
.cci-menu-secondary button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  align-self: flex-start;
  color: var(--cci-muted, #a4a4ac);
  text-decoration: none;
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.cci-menu-secondary a:hover,
.cci-menu-secondary a:focus-visible,
.cci-menu-secondary button:hover,
.cci-menu-secondary button:focus-visible {
  color: var(--cci-yellow, #ffed00);
  outline: none;
}
.cci-menu-secondary .cci-menu-cta {
  color: var(--cci-yellow, #ffed00);
  font-weight: 600;
}

@media (max-width: 640px) {
  .cci-menu-panel {
    padding: 54px 26px 28px; /* keep room for the × */
  }
  .cci-menu-list a {
    font-size: 19px;
  }
}
