/* The site's left menu (<aside class="rail">), shared by the generated pages (website/seo_pages.py rail()) and
   privacy.html; index.html, track-record.html and bubbles/template.html carry the same rules inline. Self-contained
   colours so it looks the same whatever a page names its own variables. Phones (860 px and below): hidden, the page's
   own top bar takes over, as on the home page. */
.shell { display: flex; min-height: 100vh; }
.shell > .page { flex: 1; min-width: 0; }
.rail {
  --rail-border: #1d1d21; --rail-hover: #17171a; --rail-fg: #f4f4f5; --rail-muted: #8d8d96; --rail-dim: #55555d; --rail-go: #44dfa0;
  position: sticky; top: 0; height: 100vh; width: 220px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 28px; box-sizing: border-box;
  border-right: 1px solid var(--rail-border); padding-block: 20px; padding-inline: 16px; background: #000;
  font: 15px/1.55 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
.rail a { color: inherit; text-decoration: none; }
.rail .brand { display: flex; align-items: center; gap: 10px; padding-inline: 8px; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; color: var(--rail-fg); }
.rail .brand img { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.rail .nav { display: flex; flex-direction: column; gap: 2px; }
.rail .nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--rail-muted); transition: background .15s, color .15s; }
.rail .nav a:hover, .rail .nav a[aria-current="page"] { background: var(--rail-hover); color: var(--rail-fg); }
.rail .nav svg { width: 18px; height: 18px; opacity: .9; flex: none; }
/* Sub-items of Home (KOLs, After the call, How it works only scroll the home page): no icon, smaller, indented under
   the label with a thin guide line from the Home icon. */
.rail .nav a.nav-sub { position: relative; padding: 5px 12px 5px 42px; font-size: 13.5px; border-radius: 10px; }
.rail .nav a.nav-sub::before { content: ""; position: absolute; left: 20.5px; top: -2px; bottom: 0; width: 1px; background: #2c2c32; }
.rail .nav a.nav-sub + a:not(.nav-sub) { margin-top: 6px; }
.rail-foot { margin-top: auto; display: grid; gap: 10px; padding-inline: 8px; color: var(--rail-dim); font-size: 13px; }
.rail-foot .tag { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.rail .live { display: inline-flex; align-items: center; gap: 8px; color: var(--rail-muted); }
.rail .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--rail-go); animation: rail-beat 2s infinite; }
@keyframes rail-beat { 0% { box-shadow: 0 0 0 0 rgba(68, 223, 160, .6); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (max-width: 860px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail .live i { animation: none; } .rail .nav a { transition: none; } }
