/* ==========================================================================
   OGS suite in-app Help — shared drawer, one look across every tool.
   Loaded once from CloudFront (like ogs-theme.css). Reads the per-app content
   in window.OGSHelp and injects a "?" launcher + a themed slide-over guide.
   All colors come from the shared theme tokens (--ogs-*), so it matches OGS
   Default and the Bloomberg Terminal theme automatically.
   ========================================================================== */
/* Footer-integrated help — a subtle link that sits in the suite footer. */
.ogs-help-link {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 16px;
  padding: 0; background: none; border: 0; cursor: pointer; line-height: 1;
  font-family: var(--ogs-font, system-ui, sans-serif); font-size: 12px; font-weight: 500;
  color: var(--ogs-text-dim, #8592ad); transition: color .12s ease;
}
.ogs-help-link:hover { color: var(--ogs-text, #e8edf7); }
.ogs-help-link .ogs-help-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 999px; font-size: 10px; font-weight: 700;
  border: 1px solid currentColor;
}
:root[data-ogs-theme="terminal"] .ogs-help-link .ogs-help-q { border-radius: 0; }
/* Fallback launcher — only when a page has no footer; small + clears the footer strip. */
.ogs-help-fab {
  position: fixed; right: 16px; bottom: 46px; z-index: 100050;
  width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ogs-border, rgba(255,255,255,.16)); border-radius: 999px;
  background: color-mix(in srgb, var(--ogs-surface, #14171d) 88%, transparent);
  color: var(--ogs-text-dim, #8592ad); cursor: pointer; opacity: .82;
  transition: opacity .12s ease, color .12s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ogs-help-fab:hover { opacity: 1; color: var(--ogs-text, #e8edf7); }
.ogs-help-fab .ogs-help-qm { font-size: 13px; font-weight: 700; }
:root[data-ogs-theme="terminal"] .ogs-help-fab { border-radius: 0; }

/* backdrop + drawer */
.ogs-help-overlay {
  position: fixed; inset: 0; z-index: 100051;
  background: rgba(3,5,10,.55); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.ogs-help-overlay.open { opacity: 1; pointer-events: auto; }
.ogs-help-drawer {
  position: fixed; top: 0; right: 0; z-index: 100052;
  height: 100%; width: min(460px, 100vw);
  display: flex; flex-direction: column;
  background: var(--ogs-surface, #14171d); color: var(--ogs-text, #e8edf7);
  border-left: 1px solid var(--ogs-border, rgba(255,255,255,.10));
  font-family: var(--ogs-font, system-ui, sans-serif);
  transform: translateX(100%); transition: transform .22s cubic-bezier(.4,0,.2,1);
  box-shadow: -18px 0 50px rgba(0,0,0,.4);
}
.ogs-help-overlay.open + .ogs-help-drawer,
.ogs-help-drawer.open { transform: translateX(0); }

.ogs-help-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--ogs-hairline, rgba(255,255,255,.08));
}
.ogs-help-head .ogs-help-eyebrow {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ogs-text-dim, #8592ad); font-weight: 600;
}
.ogs-help-head .ogs-help-title { font-size: 17px; font-weight: 700; color: var(--ogs-text, #e8edf7); line-height: 1.15; }
.ogs-help-close {
  margin-left: auto; flex: 0 0 auto; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ogs-border, rgba(255,255,255,.12)); border-radius: var(--ogs-radius-sm, 6px);
  background: transparent; color: var(--ogs-text-dim, #8592ad); cursor: pointer; font-size: 18px; line-height: 1;
}
.ogs-help-close:hover { color: var(--ogs-text, #e8edf7); border-color: var(--ogs-text-dim, #8592ad); }

.ogs-help-body { flex: 1 1 auto; overflow-y: auto; padding: 18px; }
.ogs-help-tagline { font-size: 14px; color: var(--ogs-text, #e8edf7); line-height: 1.5; margin: 0 0 4px; }

.ogs-help-section { margin-top: 22px; }
.ogs-help-section > h3 {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ogs-accent, #5a82dc); font-weight: 700; margin: 0 0 10px;
}
/* numbered steps */
.ogs-help-steps { list-style: none; margin: 0; padding: 0; counter-reset: ogsstep; }
.ogs-help-steps > li { position: relative; padding: 0 0 14px 34px; }
.ogs-help-steps > li:before {
  counter-increment: ogsstep; content: counter(ogsstep);
  position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--ogs-accent, #336cd2); color: var(--ogs-accent-ink, #fff);
  font-size: 12px; font-weight: 700;
}
:root[data-ogs-theme="terminal"] .ogs-help-steps > li:before { border-radius: 0; }
.ogs-help-steps .ogs-help-st { font-weight: 600; font-size: 13.5px; color: var(--ogs-text, #e8edf7); }
.ogs-help-steps .ogs-help-sb { font-size: 13px; color: var(--ogs-text-dim, #8592ad); line-height: 1.5; margin-top: 2px; }

/* term/definition + task list */
.ogs-help-defs { display: grid; gap: 12px; }
.ogs-help-defs .ogs-help-term { font-weight: 600; font-size: 13.5px; color: var(--ogs-text, #e8edf7); }
.ogs-help-defs .ogs-help-def { font-size: 13px; color: var(--ogs-text-dim, #8592ad); line-height: 1.5; margin-top: 1px; }

/* troubleshooting = disclosure list */
.ogs-help-qa { border-top: 1px solid var(--ogs-hairline, rgba(255,255,255,.08)); }
.ogs-help-qa details { border-bottom: 1px solid var(--ogs-hairline, rgba(255,255,255,.08)); }
.ogs-help-qa summary {
  cursor: pointer; padding: 11px 0; font-size: 13.5px; font-weight: 600;
  color: var(--ogs-text, #e8edf7); list-style: none; display: flex; align-items: center; gap: 8px;
}
.ogs-help-qa summary::-webkit-details-marker { display: none; }
.ogs-help-qa summary:before { content: "+"; color: var(--ogs-text-dim, #8592ad); font-weight: 700; width: 12px; }
.ogs-help-qa details[open] summary:before { content: "\2212"; }
.ogs-help-qa .ogs-help-a { font-size: 13px; color: var(--ogs-text-dim, #8592ad); line-height: 1.5; padding: 0 0 12px 20px; }

.ogs-help-support {
  margin-top: 22px; padding: 12px 14px; font-size: 13px; line-height: 1.5;
  color: var(--ogs-text-dim, #8592ad);
  background: var(--ogs-surface-2, #1b2029); border: 1px solid var(--ogs-border, rgba(255,255,255,.10));
  border-radius: var(--ogs-radius-sm, 6px);
}
:root[data-ogs-theme="terminal"] .ogs-help-support { border-radius: 0; }
.ogs-help-body code { font-family: var(--ogs-font-mono, monospace); font-size: 12.5px;
  background: var(--ogs-surface-2, #1b2029); padding: 1px 5px; border-radius: 4px; }
.ogs-help-body a { color: var(--ogs-link, #5a82dc); }


