/* ══════════════════════════════════════════════════════
   BostonSWUG persistent sidebar — namespaced, safe to load
   alongside a page's own stylesheet (only touches .sidebar*
   and .site-main; relies on --ink/--gold/etc already being
   defined in the host page's :root).
   ══════════════════════════════════════════════════════ */

:root { --sidebar-w: 280px; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--ink2);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 300;
  padding: 24px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--ff-body);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 4px 4px 4px;
}
.sidebar-logo img { height: 38px; width: auto; display: block; }
.sidebar-logo-text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: var(--white);
}
.sidebar-logo-text span { color: var(--gold); }

.sidebar-block { display: flex; flex-direction: column; gap: 8px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white3);
  padding: 0 8px;
}

.sidebar-cta {
  display: block;
  text-decoration: none;
  border-radius: var(--r);
  padding: 12px;
  border: 1px solid rgba(193,41,46,.3);
  background: linear-gradient(160deg, rgba(193,41,46,.18), rgba(193,41,46,.03));
  transition: border-color .2s, background .2s;
}
.sidebar-cta:hover { border-color: rgba(193,41,46,.55); background: linear-gradient(160deg, rgba(193,41,46,.26), rgba(193,41,46,.05)); }
.sidebar-cta-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 5px;
}
.sidebar-cta-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 3px;
}
.sidebar-cta-meta { font-size: 11px; color: var(--white3); }

.sidebar-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 10px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--white2);
  transition: background .15s, color .15s;
}
.sidebar-link:hover { background: var(--ink3); color: var(--white); }
.sidebar-link.active { background: var(--gold-dim); color: var(--white); }
.sidebar-link .sl-title { font-size: 13px; font-weight: 600; }
.sidebar-link .sl-meta { font-size: 10.5px; color: var(--white3); }

.sidebar-note {
  font-size: 11px;
  color: var(--white3);
  line-height: 1.6;
  padding: 8px 8px 0;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 400;
  width: 42px; height: 42px;
  background: rgba(19,21,28,.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sidebar-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
}
.sidebar-toggle span::before, .sidebar-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}
.sidebar-toggle span::before { top: -6px; }
.sidebar-toggle span::after { top: 6px; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,6,9,.7);
  z-index: 290;
}

/* ── MAIN LAYOUT ──
   Persistent on desktop (pushes .site-main and the host page's fixed
   nav over by --sidebar-w); collapses to an overlay drawer on narrower
   screens, matching the breakpoint the fest2026 pages already use for
   their own nav-to-hamburger switch. */
.site-main { margin-left: var(--sidebar-w); }

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: 24px 0 48px rgba(0,0,0,.4);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .sidebar-toggle { display: flex; }
  .site-main { margin-left: 0; }
}
