/* ====== Ignition · Navigation ======
   The Ignition sidebar: rail, expanded overlay, flyouts, tooltips, mobile drawer,
   account item. Restyles the markup /src/sidebar/sidebar.js emits (no new classes
   except .lp-nav-section-label and .lp-dept-icon, both Ignition-only).

   Linked on every page (after tokens.css; on Ignition pages after components.css).
   Every rule is still scoped to body.lp-nav, so legacy pages are untouched
   until Phase 2 makes the Ignition sidebar the default sitewide.
   Moved verbatim from components.css §5 in Phase 0. */

/* ── Base layout (was /src/sidebar/sidebar.css, folded in during Phase 4) ──
   Positioning, rail/expanded widths, drawer, accordion, tooltips, and the version
   row the Ignition rules below restyle. Kept verbatim and first, so the cascade
   order is unchanged. */
/* ====== Launchpad Sidebar ====== */

/* ── Sidebar Container ── */
.lp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 64px;
  background: linear-gradient(180deg, #0a1418 0%, #060e12 100%);
  border-right: 1px solid var(--border, #1a2e36);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.lp-sidebar.lp-expanded {
  width: 250px;
}

/* ── Logo ── */
.lp-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--accent-green, #59e900);
  transition: padding 0.3s ease;
}
.lp-sidebar-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-sidebar.lp-expanded .lp-sidebar-logo {
  justify-content: flex-start;
  padding-left: 20px;
}
/* Collapsed: round icon */
.lp-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  transition: opacity 0.2s ease, width 0.3s ease, height 0.3s ease;
}
/* Expanded: full wordmark */
.lp-logo-full {
  display: none;
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lp-sidebar.lp-expanded .lp-logo-icon {
  display: none;
}
.lp-sidebar.lp-expanded .lp-logo-full {
  display: block;
  height: 36px;
  opacity: 0.9;
}
.lp-sidebar.lp-expanded .lp-logo-full:hover {
  opacity: 1;
}

/* ── Nav List ── */
.lp-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  transition: padding 0.3s ease, gap 0.3s ease;
}
.lp-sidebar-nav::-webkit-scrollbar { display: none; }

/* ── External Links Section ── */
.lp-sidebar-external {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 0;
  padding: 0;
  gap: 2px;
  border-top: none;
  flex-shrink: 0;
}
.lp-sidebar-external::before {
  display: none;
}

/* ── WIP (greyed out) ── */
.lp-nav-parent.lp-wip > .lp-nav-parent-header {
  opacity: 0.4;
}
.lp-nav-parent.lp-wip > .lp-nav-parent-header:hover {
  opacity: 0.7;
}

/* ── Nav Item (direct link) ── */
.lp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  min-height: 38px;
  flex-shrink: 0;
  padding: 0 20px;
  gap: 12px;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, height 0.3s ease, min-height 0.3s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
}
/* Section break before action items */
.lp-sidebar-section-break {
  display: none;
}
/* Horizontal divider between nav groups */
.lp-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 12px;
  flex-shrink: 0;
  transition: margin 0.3s ease;
}
.lp-nav-item:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.04);
}
.lp-nav-item.lp-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.lp-coming-soon {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-orange, #ff6b35);
  background: rgba(255, 107, 53, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.lp-nav-item.lp-active {
  color: var(--accent-green, #59e900);
  border-left-color: var(--accent-green, #59e900);
  background: rgba(89,233,0,0.06);
}
.lp-nav-item.lp-active .lp-nav-icon svg {
  stroke: var(--accent-green, #59e900);
}

/* ── Account Item ── */
.lp-nav-account {
  cursor: pointer;
}
.lp-nav-account::after {
  display: none;
}
.lp-nav-account {
  margin-bottom: 0;
}
.lp-nav-account.lp-signed-in {
  color: var(--accent-green, #59e900);
}
.lp-nav-account.lp-signed-in .lp-nav-icon {
  display: flex;
}
.lp-nav-account.lp-signed-in .lp-nav-icon svg {
  stroke: var(--accent-green, #59e900);
}
.lp-account-initials {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-green, #59e900);
  color: #0a1418;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  font-family: 'Archivo', sans-serif;
  text-align: center;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0;
}
.lp-sidebar:not(.lp-expanded) .lp-account-label {   /* visually hidden, still read (PB-006) */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.lp-nav-account .lp-account-initials {
  display: none !important;
}

/* ── Nav Icon ── */
.lp-nav-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Nav Label ── */
.lp-nav-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.lp-sidebar.lp-expanded .lp-nav-label {
  opacity: 1;
  pointer-events: auto;
}

/* ── Parent Item (expandable) ── */
.lp-nav-parent {
  flex-direction: column;
  height: auto;
  padding: 0;
  flex-shrink: 0;
}
.lp-nav-parent-header {
  display: flex;
  align-items: center;
  height: 38px;
  min-height: 38px;
  padding: 0 20px;
  gap: 12px;
  color: var(--text-dim, #6b7a82);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, height 0.3s ease, min-height 0.3s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
  width: 100%;
}
.lp-nav-parent-header:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.04);
}
.lp-nav-parent.lp-active > .lp-nav-parent-header {
  color: var(--accent-green, #59e900);
  border-left-color: var(--accent-green, #59e900);
  background: rgba(89,233,0,0.06);
}

/* Chevron for parent items */
.lp-nav-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lp-sidebar.lp-expanded .lp-nav-chevron {
  opacity: 0.5;
}
.lp-nav-parent.lp-open > .lp-nav-parent-header .lp-nav-chevron {
  transform: rotate(90deg);
}

/* ── Sub-items ── */
.lp-nav-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.lp-nav-parent.lp-open > .lp-nav-children {
  max-height: 400px;
}
.lp-nav-child {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 20px 0 55px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
}
.lp-sidebar.lp-expanded .lp-nav-child {
  opacity: 1;
}
.lp-nav-child:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.03);
}
.lp-nav-child.lp-active {
  color: var(--accent-green, #59e900);
}
.lp-nav-child.lp-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.lp-sidebar.lp-expanded .lp-nav-child.lp-disabled {
  opacity: 0.35;
}
/* ── Sub-item Icons (accordion) ── */
.lp-nav-child-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.lp-nav-child-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-nav-child-badge {
  margin-left: auto;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim, #6b7a82);
  opacity: 0.6;
}

/* ── Collapsed: Parent highlight on flyout open ── */
.lp-nav-parent {
  position: relative;
}
.lp-nav-parent.lp-flyout-active > .lp-nav-parent-header {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.06);
}

/* ── HubSpot-style Flyout Panel ── */
.lp-flyout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
}
.lp-flyout-panel {
  position: fixed;
  z-index: 1001;
  background: #0d1a1f;
  border: 1px solid var(--border, #1a2e36);
  border-radius: 10px;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}
.lp-flyout-panel.lp-flyout-panel-visible {
  opacity: 1;
  transform: translateX(0);
}
.lp-flyout-panel-items {
  padding: 6px 0;
}
.lp-flyout-panel-item {
  display: flex;
  align-items: center;
  padding: 10px 24px 10px 18px;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lp-flyout-panel-item:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.04);
}
.lp-flyout-panel-item.lp-active {
  color: var(--accent-green, #59e900);
}
.lp-flyout-panel-item.lp-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
/* ── Sub-item Icons (flyout) ── */
.lp-flyout-item-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-flyout-item-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ── External-link indicator on off-site subitems (right-aligned, muted) ── */
.lp-ext-icon {
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  opacity: 0.55;
}
.lp-ext-icon svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-flyout-panel-badge {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim, #6b7a82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: auto;
  white-space: nowrap;
}

/* ── Collapsed Icon-Only Tooltip (for direct links) ── */
.lp-tooltip {
  display: none;
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #111e24;
  border: 1px solid var(--border, #1a2e36);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text, #f0f2f5);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1001;
  pointer-events: none;
}
.lp-sidebar:not(.lp-expanded) .lp-nav-item:hover > .lp-tooltip {
  display: block;
}

/* ── Toggle Button ── */
.lp-sidebar-toggle-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 14px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border, #1a2e36);
  transition: padding 0.3s ease;
}
.lp-sidebar.lp-expanded .lp-sidebar-toggle-wrap {
  justify-content: space-between;
  gap: 10px;
  padding-left: 20px;
  padding-right: 18px;
}

/* ── Version Badge (lives in the toggle row, left of the collapse button) ── */
.lp-sidebar-version-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lp-sidebar-mc-label,
.lp-sidebar-version {
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.lp-sidebar.lp-version-visible .lp-sidebar-mc-label,
.lp-sidebar.lp-version-visible .lp-sidebar-version {
  display: inline;
  opacity: 1;
}
.lp-sidebar-mc-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text, #f0f2f5);
  letter-spacing: 0.2px;
}
.lp-sidebar-version {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-dim, #6b7a82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lp-sidebar-version:hover {
  color: var(--text, #f0f2f5);
  border-color: rgba(255,255,255,0.25);
}
.lp-sidebar-footer-left {
  display: none;
  align-items: center;
  gap: 5px;
}
.lp-sidebar.lp-expanded .lp-sidebar-footer-left {
  display: flex;
}
.lp-sidebar-divider {
  display: none;
  font-size: 0.6rem;
  color: var(--accent-orange, #f5a623);
  opacity: 0.6;
}
.lp-sidebar.lp-expanded .lp-sidebar-divider {
  display: inline;
}
.lp-sidebar-copyright {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim, #6b7a82);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.lp-sidebar-title {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}
.lp-sidebar-title:hover {
  color: var(--accent-green, #59e900);
}
.lp-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2, #111e24);
  border: 1px solid var(--border, #1a2e36);
  color: var(--text-dim, #6b7a82);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lp-sidebar-toggle:hover {
  color: var(--text, #f0f2f5);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}
.lp-sidebar-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.lp-sidebar:not(.lp-expanded) .lp-sidebar-toggle svg {
  transform: rotate(180deg);
}

/* ── Content Wrapper Push ── */
.lp-content {
  margin-left: 64px;
  transition: margin-left 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.lp-sidebar.lp-expanded ~ .lp-content {
  margin-left: 64px;
}

/* ── Hamburger Button (hidden on desktop) ── */
.lp-hamburger {
  display: none;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: var(--surface-2, #111e24);
  border: 1px solid var(--border, #1a2e36);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  box-sizing: border-box;
}
.lp-hamburger-wrap {
  display: none;
  margin-left: auto;
}
.lp-hamburger svg {
  color: #fff;
  transition: opacity 0.2s ease;
}
.lp-hamburger:hover svg {
  opacity: 0.8;
}
.lp-hamburger .lp-hamburger-close {
  display: none;
}
.lp-mobile-menu-open .lp-hamburger .lp-hamburger-menu {
  display: none;
}
.lp-mobile-menu-open .lp-hamburger .lp-hamburger-close {
  display: block;
}

/* ── Mobile Backdrop ── */
.lp-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.lp-mobile-menu-open .lp-mobile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ── Compact sidebar at short viewport heights ── */
@media (max-height: 750px) {
  .lp-sidebar-nav { padding: 6px 0; gap: 1px; }
  .lp-nav-item {
    height: 30px;
    min-height: 30px;
  }
  .lp-nav-parent-header {
    height: 30px;
    min-height: 30px;
  }
  .lp-nav-divider { margin: 4px 12px; }
  .lp-sidebar-toggle-wrap { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-height: 600px) {
  .lp-sidebar-nav { padding: 4px 0; gap: 0; }
  .lp-nav-item {
    height: 26px;
    min-height: 26px;
  }
  .lp-nav-parent-header {
    height: 26px;
    min-height: 26px;
  }
  .lp-nav-divider { margin: 2px 12px; }
  .lp-sidebar-toggle-wrap { padding-top: 6px; padding-bottom: 6px; }
}

/* ── Mobile Logo (hidden on desktop) ── */
.lp-mobile-logo {
  display: none;
  align-items: center;
  flex-shrink: 0;
}
.lp-mobile-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

/* ── Mobile: Hide Sidebar, Show Hamburger ── */
@media (max-width: 768px) {
  .lp-hamburger {
    display: flex;
  }
  .lp-hamburger-wrap {
    display: flex;
  }
  .lp-mobile-logo {
    display: flex;
  }
  .lp-sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 2000;
  }
  .lp-mobile-menu-open .lp-sidebar {
    transform: translateX(0);
  }
  .lp-content {
    margin-left: 0 !important;
  }
  .lp-sidebar-toggle-wrap .lp-sidebar-toggle {
    display: none;
  }
  .lp-tooltip {
    display: none !important;
  }
  /* Hide flyout panels on mobile — use inline accordion instead */
  .lp-flyout-panel,
  .lp-flyout-backdrop {
    display: none !important;
  }
  /* Show accordion children on mobile */
  .lp-nav-child {
    opacity: 1;
  }
  .lp-nav-chevron {
    opacity: 0.5;
  }
}

/* Account panel: the shared .lp-modal template (src/auth/auth-modal.js, src/ignition/modals.css) */

/* ── Schedule CTA pulse ── */
@keyframes lp-pulse-orange {
  0%, 75% { color: inherit; }
  80% { color: #59e900; }
  88% { color: #59e900; }
  95%, 100% { color: inherit; }
}
.lp-pulse-orange {
  animation: lp-pulse-orange 12s ease-in-out infinite;
}

/* ── Show Your Support pulse ── */
@keyframes lp-pulse-pink {
  0%, 80% { color: inherit; }
  85% { color: #ff69b4; }
  92% { color: #ff69b4; }
  97%, 100% { color: inherit; }
}
.lp-pulse-pink {
  animation: lp-pulse-pink 20s ease-in-out infinite;
}

/* ── Ignition restyle ── */

/* ── Sidebar ──
   Overrides /src/sidebar/sidebar.css. Prefixed with #lp-sidebar so the ID beats
   that file's class chains; flyouts are appended to <body>, so they use the
   body.lp-nav prefix instead. Layout stays an overlay: the content rail
   is 64px, and the expanded sidebar (248px) slides over it. */
/* One header height on every page (Scott, 2026-11-14): Mission Control's 51px header (50 +
   1px line), so the sidebar's logo bar lines up everywhere. Every page but Revenue LaunchPad
   uses the Ignition header; Revenue's own header row sits above a 1px line (its scroll-compact
   state stays smaller). */
body.lp-nav:not(.lp-ignition) .header-bar:not(.compact) > .header { height: calc(var(--lp-bar-h) - 1px); }

body.lp-nav #lp-sidebar {
  width: 64px;
  background: var(--lp-sidebar-bg);
  border-right: 1px solid var(--lp-line);
  transition: width .2s ease, transform .25s ease;
}
body.lp-nav #lp-sidebar.lp-expanded { width: 248px; }
body.lp-nav .lp-sidebar ~ .lp-content { margin-left: 64px; }

/* Logo bar: same height and green line as the header, so the lines meet */
body.lp-nav #lp-sidebar .lp-sidebar-logo {
  height: var(--lp-bar-h);
  box-sizing: border-box;
  padding: 0 14px;
  justify-content: center;
  border-bottom: 1px solid var(--lp-green);
  box-shadow: var(--lp-glow-line);
  position: relative;
  z-index: 1;
}
body.lp-nav #lp-sidebar.lp-expanded .lp-sidebar-logo { justify-content: flex-start; padding-left: 16px; }
body.lp-nav #lp-sidebar .lp-logo-icon { width: 30px; height: 30px; }
body.lp-nav #lp-sidebar.lp-expanded .lp-logo-full { height: 30px; }

body.lp-nav #lp-sidebar .lp-sidebar-nav { padding: 12px 0; gap: 0; }

/* Real buttons since Phase 2 (Account, Submit Feedback, Show Your Support, group headers):
   reset the browser's button look; buttons don't stretch like divs, so size them to the row. */
body.lp-nav #lp-sidebar button.lp-nav-item,
body.lp-nav #lp-sidebar button.lp-nav-parent-header {
  -webkit-appearance: none;
  appearance: none;
  width: calc(100% - 24px);
  border: 0;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

/* Rows: links, actions, and parent headers share one look */
body.lp-nav #lp-sidebar .lp-nav-item,
body.lp-nav #lp-sidebar .lp-nav-parent-header {
  position: relative;
  width: auto;
  height: 42px;
  min-height: 42px;
  margin: 1px 12px;
  padding: 0 10px 0 6px;
  gap: 12px;
  box-sizing: border-box;
  border-left: 0;
  border-radius: 11px;
  color: var(--lp-text-nav);
  background: transparent;
  transition: background-color .15s, color .15s;
}
body.lp-nav #lp-sidebar .lp-nav-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Icon tile */
body.lp-nav #lp-sidebar .lp-nav-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--lp-icon);
  transition: background-color .15s, color .15s, box-shadow .2s;
}
body.lp-nav #lp-sidebar .lp-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
}
/* Ignition drops the legacy attention pulses (the orange one is CTA-only, and pink isn't in the palette) */
body.lp-nav #lp-sidebar .lp-pulse-orange,
body.lp-nav #lp-sidebar .lp-pulse-pink { animation: none; }

/* Hover + open flyout */
body.lp-nav #lp-sidebar .lp-nav-item:hover,
body.lp-nav #lp-sidebar .lp-nav-parent-header:hover,
body.lp-nav #lp-sidebar .lp-nav-parent.lp-flyout-active > .lp-nav-parent-header {
  color: var(--lp-text);
  background: var(--lp-hover);
}
body.lp-nav #lp-sidebar .lp-nav-item:hover .lp-nav-icon,
body.lp-nav #lp-sidebar .lp-nav-parent-header:hover .lp-nav-icon,
body.lp-nav #lp-sidebar .lp-nav-parent.lp-flyout-active > .lp-nav-parent-header .lp-nav-icon {
  color: var(--lp-text);
  background: #1e1b22;
}
body.lp-nav #lp-sidebar .lp-nav-item:focus-visible {
  outline: var(--lp-focus);
  outline-offset: -2px;
}

/* Active page: green tile + glowing bar on the left edge */
body.lp-nav #lp-sidebar .lp-nav-item.lp-active,
body.lp-nav #lp-sidebar .lp-nav-parent.lp-active > .lp-nav-parent-header {
  color: var(--lp-text);
  background: rgba(var(--lp-green-rgb), .07);
}
body.lp-nav #lp-sidebar .lp-nav-item.lp-active .lp-nav-icon,
body.lp-nav #lp-sidebar .lp-nav-parent.lp-active > .lp-nav-parent-header .lp-nav-icon {
  color: var(--lp-green-ink);
  background: var(--lp-green);
  box-shadow: 0 6px 16px -6px rgba(var(--lp-green-rgb), .75);
}
body.lp-nav #lp-sidebar .lp-nav-item.lp-active .lp-nav-icon svg,
body.lp-nav #lp-sidebar .lp-nav-parent.lp-active > .lp-nav-parent-header .lp-nav-icon svg { stroke: currentColor; }
body.lp-nav #lp-sidebar .lp-nav-item.lp-active::before,
body.lp-nav #lp-sidebar .lp-nav-parent.lp-active > .lp-nav-parent-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lp-green);
  box-shadow: 0 0 10px rgba(var(--lp-green-rgb), .8);
}

/* Account: round avatar ring; green when signed in */
body.lp-nav #lp-sidebar .lp-nav-account .lp-nav-icon {
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--lp-surface-raised-border);
}
body.lp-nav #lp-sidebar .lp-nav-account.lp-signed-in .lp-nav-icon {
  color: var(--lp-green);
  box-shadow: inset 0 0 0 1px rgba(var(--lp-green-rgb), .5);
}
body.lp-nav #lp-sidebar .lp-nav-account.lp-signed-in .lp-nav-icon svg { stroke: currentColor; }

/* Schedule Strategy Call: the sidebar's one orange CTA */
body.lp-nav #lp-sidebar .lp-schedule-cta,
body.lp-nav #lp-sidebar .lp-schedule-cta .lp-nav-icon { color: #ff9a66; }
body.lp-nav #lp-sidebar .lp-schedule-cta:hover .lp-nav-icon {
  color: var(--lp-cta-ink-hover);
  background: var(--lp-cta-hover);
}

/* Chevrons nudge right on hover */
body.lp-nav #lp-sidebar .lp-nav-chevron { color: #6f6668; transition: transform .2s, color .15s, opacity .2s; }
body.lp-nav #lp-sidebar.lp-expanded .lp-nav-chevron { opacity: 1; }
body.lp-nav #lp-sidebar .lp-nav-parent-header:hover .lp-nav-chevron { color: #d6cdcb; transform: translateX(2px); }
body.lp-nav #lp-sidebar .lp-nav-parent.lp-open > .lp-nav-parent-header .lp-nav-chevron { transform: rotate(90deg); }

/* Section labels (expanded) ↔ hairline dividers (collapsed) */
body.lp-nav #lp-sidebar .lp-nav-section-label {
  padding: 16px 24px 6px;
  font-family: var(--lp-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lp-text-label);
  white-space: nowrap;
}
body.lp-nav #lp-sidebar .lp-nav-divider { height: 1px; margin: 10px 14px; background: var(--lp-line); }
body.lp-nav #lp-sidebar.lp-expanded .lp-nav-divider { display: none; }
body.lp-nav #lp-sidebar:not(.lp-expanded) .lp-nav-section-label { display: none; }

/* Collapsed rail: centered icons, labels out of flow */
body.lp-nav #lp-sidebar:not(.lp-expanded) .lp-nav-item,
body.lp-nav #lp-sidebar:not(.lp-expanded) .lp-nav-parent-header {
  justify-content: center;
  padding: 0;
  margin: 1px 9px;
}
/* Buttons match links: same 9px side margins in the rail, so every icon shares one center */
body.lp-nav #lp-sidebar:not(.lp-expanded) button.lp-nav-item,
body.lp-nav #lp-sidebar:not(.lp-expanded) button.lp-nav-parent-header { width: calc(100% - 18px); }
/* Collapsed: labels are visually hidden but still read, so every icon-only button and link keeps
   its accessible name (PB-006, 2026-11-17; was display: none, which left them nameless). */
body.lp-nav #lp-sidebar:not(.lp-expanded) .lp-nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
body.lp-nav #lp-sidebar:not(.lp-expanded) .lp-nav-chevron { display: none; }
body.lp-nav #lp-sidebar:not(.lp-expanded) .lp-nav-item.lp-active::before,
body.lp-nav #lp-sidebar:not(.lp-expanded) .lp-nav-parent.lp-active > .lp-nav-parent-header::before { left: -9px; }

/* Collapsed tooltip. position: fixed escapes the sidebar's overflow clipping
   (legacy tooltips are clipped and never visible); with top unset, the
   tooltip keeps its static, vertically centered spot inside the row. */
body.lp-nav #lp-sidebar .lp-tooltip {
  position: fixed;
  left: 62px;
  top: auto;
  transform: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--lp-surface-raised);
  border: 1px solid var(--lp-surface-raised-border);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .85);
  color: var(--lp-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Accordion children (mobile drawer) */
body.lp-nav #lp-sidebar .lp-nav-children { position: relative; visibility: hidden; }   /* collapsed: out of the Tab order too */
body.lp-nav #lp-sidebar .lp-nav-parent.lp-open > .lp-nav-children { visibility: visible; }
body.lp-nav #lp-sidebar .lp-nav-parent.lp-open > .lp-nav-children { margin: 2px 0 8px; }
body.lp-nav #lp-sidebar .lp-nav-children::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #2a2529;
}
body.lp-nav #lp-sidebar .lp-nav-child {
  position: relative;
  height: 34px;
  margin: 0 12px;
  padding: 0 12px 0 44px;
  gap: 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #aea5a7;
  transition: background-color .15s, color .15s;
}
body.lp-nav #lp-sidebar .lp-nav-child:hover { color: var(--lp-text); background: var(--lp-hover); }
body.lp-nav #lp-sidebar .lp-nav-child.lp-active { color: var(--lp-green); }
body.lp-nav #lp-sidebar .lp-nav-child-icon { margin-right: 0; }

/* Submenu icons: tinted by GTM department (data-dept on the icon wrapper) */
body.lp-nav .lp-dept-icon { color: var(--dept-tint, var(--lp-icon)); }
body.lp-nav .lp-flyout-item-icon.lp-dept-icon,
body.lp-nav #lp-sidebar .lp-nav-child-icon.lp-dept-icon { width: 16px; height: 16px; }
body.lp-nav .lp-flyout-item-icon.lp-dept-icon svg,
body.lp-nav #lp-sidebar .lp-nav-child-icon.lp-dept-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; }

/* Flyout panels (desktop hover) */
body.lp-nav .lp-flyout-panel {
  min-width: 240px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--lp-surface-raised);
  border: 1px solid var(--lp-surface-raised-border);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .85);
}
body.lp-nav .lp-flyout-panel-items { padding: 0; }
body.lp-nav .lp-flyout-panel-item {
  height: 36px;
  padding: 0 14px 0 12px;
  gap: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-text-nav);
}
body.lp-nav .lp-flyout-panel-item:hover { color: var(--lp-text); background: rgba(255, 255, 255, .05); }
body.lp-nav .lp-flyout-panel-item.lp-active { color: var(--lp-green); }
body.lp-nav .lp-flyout-panel-item.lp-disabled { opacity: .45; }

/* Bottom bar: --lp-foot-h + the same 1px gray hairline as the footer, so at the bottom
   of a page the two read as one bar (green lines are for the header only) */
/* The toggle never moves (2026-11-17): it sits 17px from the left in both states, which centers
   its 30px button in the 64px collapsed rail; the label and version push to the right edge. */
body.lp-nav #lp-sidebar .lp-sidebar-toggle-wrap {
  height: var(--lp-foot-h);
  box-sizing: content-box;
  padding: 0 0 0 17px;
  border-top: 1px solid var(--lp-line);
  justify-content: flex-start;
  transition: none;
}
body.lp-nav #lp-sidebar.lp-expanded .lp-sidebar-toggle-wrap { padding: 0 14px 0 17px; justify-content: flex-start; }
body.lp-nav #lp-sidebar .lp-sidebar-toggle { flex: none; }
body.lp-nav #lp-sidebar .lp-sidebar-version-wrap { margin-left: auto; }
body.lp-nav #lp-sidebar .lp-sidebar-mc-label { font-size: 14px; font-weight: 700; color: var(--lp-text); letter-spacing: 0; }
body.lp-nav #lp-sidebar .lp-sidebar-version {
  font-size: 11px;
  font-weight: 600;
  color: #a99fa1;
  background: none;
  border: 1px solid #2a2427;
  border-radius: 6px;
  padding: 2px 6px;
}
body.lp-nav #lp-sidebar .lp-sidebar-version:hover { color: var(--lp-text); border-color: rgba(var(--lp-green-rgb), .55); }
body.lp-nav #lp-sidebar .lp-sidebar-toggle,
body.lp-nav .lp-hamburger {
  width: 36px;
  height: 36px;
  border-radius: var(--lp-radius-btn);
  border: 1px solid #2a2427;
  background: #151216;
  color: #d6cdcb;
  transition: border-color .15s, color .15s;
}
body.lp-nav #lp-sidebar .lp-sidebar-toggle:hover,
body.lp-nav .lp-hamburger:hover { border-color: rgba(var(--lp-green-rgb), .55); color: var(--lp-text); background: #151216; }
/* Header menu button scales with the 51px header; the toggle sits quietly in the --lp-foot-h bar */
body.lp-nav .lp-hamburger { width: 32px; height: 32px; border-radius: 9px; }
body.lp-nav .lp-header .lp-mobile-logo img { width: 24px; height: 24px; }
body.lp-nav #lp-sidebar .lp-sidebar-toggle { width: 30px; height: 30px; border-radius: 8px; }
body.lp-nav #lp-sidebar .lp-sidebar-toggle svg { width: 13px; height: 13px; }

/* Short viewports: shrink rows so the whole nav fits (legacy file does the same at 750/600px) */
@media (max-height: 860px) {
  body.lp-nav #lp-sidebar .lp-sidebar-nav { padding: 8px 0; }
  body.lp-nav #lp-sidebar .lp-nav-item,
  body.lp-nav #lp-sidebar .lp-nav-parent-header { height: 36px; min-height: 36px; }
  body.lp-nav #lp-sidebar .lp-nav-icon { flex-basis: 28px; width: 28px; height: 28px; }
  body.lp-nav #lp-sidebar .lp-nav-section-label { padding: 12px 24px 4px; }
  body.lp-nav #lp-sidebar .lp-nav-divider { margin: 7px 14px; }
  body.lp-nav #lp-sidebar .lp-nav-item.lp-active::before,
  body.lp-nav #lp-sidebar .lp-nav-parent.lp-active > .lp-nav-parent-header::before { top: 9px; bottom: 9px; }
}
@media (max-height: 720px) {
  body.lp-nav #lp-sidebar .lp-nav-item,
  body.lp-nav #lp-sidebar .lp-nav-parent-header { height: 31px; min-height: 31px; }
  body.lp-nav #lp-sidebar .lp-nav-icon { flex-basis: 26px; width: 26px; height: 26px; border-radius: 8px; }
  body.lp-nav #lp-sidebar .lp-nav-section-label { padding: 8px 24px 2px; }
  body.lp-nav #lp-sidebar .lp-nav-divider { margin: 4px 14px; }
}
@media (max-height: 640px) {
  body.lp-nav #lp-sidebar .lp-sidebar-nav { padding: 4px 0; }
  body.lp-nav #lp-sidebar .lp-nav-item,
  body.lp-nav #lp-sidebar .lp-nav-parent-header { height: 28px; min-height: 28px; }
  body.lp-nav #lp-sidebar .lp-nav-icon { flex-basis: 24px; width: 24px; height: 24px; }
  body.lp-nav #lp-sidebar .lp-nav-icon svg { width: 16px; height: 16px; }
  /* Labels give way to hairlines so the full nav still fits */
  body.lp-nav #lp-sidebar .lp-nav-section-label { display: none; }
  body.lp-nav #lp-sidebar.lp-expanded .lp-nav-divider { display: block; margin: 4px 14px; }
}

/* Mobile drawer (≤768px): legacy behavior, Ignition surface */
@media (max-width: 768px) {
  body.lp-nav #lp-sidebar { width: 280px; }
  body.lp-nav #lp-sidebar .lp-tooltip { display: none; }
}

/* Print: the sidebar never prints; content takes the full page width */
@media print {
  body.lp-nav #lp-sidebar, body.lp-nav .lp-mobile-backdrop { display: none !important; }
  body.lp-nav .lp-sidebar ~ .lp-content, body.lp-nav .lp-content { margin-left: 0 !important; }
}

/* ── Skip link (PB-005, 2026-11-17): added by sidebar.js on every page. Off-screen until focused,
   then pinned top-left above the header and sidebar. Its target gets no focus ring of its own. ── */
body.lp-nav .lp-skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 10px;
  font: 800 14px/1.2 var(--lp-font, 'Archivo', sans-serif);
  color: var(--lp-green-ink, #0a1404);
  background: var(--lp-green, #59e900);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transform: translateY(-200%);
}
body.lp-nav .lp-skip:focus { transform: none; outline: 2px solid #ffffff; outline-offset: 2px; }
body.lp-nav .lp-skip-target:focus { outline: none; }

