/* Shared help popups: a "?" icon (data-help="id") opens a dialog from /help/help.json. See docs/HELP-MAINTENANCE.md. */
.help-q{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;margin:0 0 0 8px;padding:0;border:1.5px solid #6d3df0;border-radius:50%;background:#efeaff;color:#4a22c4;font:800 14px/1 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;letter-spacing:0;text-transform:none;text-shadow:none;vertical-align:middle;cursor:pointer;flex:0 0 auto;-webkit-tap-highlight-color:transparent}
.help-q::before{content:"";position:absolute;inset:-10px}
.help-q:hover{background:#6d3df0;color:#fff}
.help-q:focus-visible{outline:3px solid #ffb800;outline-offset:2px}
h1 .help-q{top:-.12em}
.banner .help-q,.hero .help-q{background:rgba(255,255,255,.94);color:#0d1530;border-color:#fff}
.help-q.help-pill{width:auto;height:auto;border-radius:99px;padding:6px 12px 6px 8px;gap:6px;font-size:13.5px;font-weight:700;margin:4px 0}
.help-q.help-pill::after{content:attr(data-label)}
.help-q.help-pill .help-mark{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#6d3df0;color:#fff;font-weight:800;font-size:13px}
.help-q.help-float{position:fixed;right:14px;bottom:14px;width:44px;height:44px;margin:0;font-size:22px;background:#fff;color:#0d1530;border-color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.35);z-index:99990}
.help-ov{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(13,21,48,.6)}
.help-ov[hidden]{display:none}
.help-dlg{position:relative;box-sizing:border-box;width:100%;max-width:560px;max-height:min(86vh,720px);overflow:auto;-webkit-overflow-scrolling:touch;background:#fff;color:#1b2340;border-radius:18px;padding:22px 22px 24px;box-shadow:0 24px 60px rgba(0,0,0,.4);font:400 15.5px/1.5 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;text-align:left}
.help-dlg:focus{outline:none}
.help-dlg h2{margin:0 40px 8px 0;font:800 22px/1.2 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#0d1530}
.help-dlg h3{margin:18px 0 6px;font:800 13px/1.2 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#5b32d6}
.help-dlg p{margin:0 0 8px}
.help-dlg ol{margin:0;padding-left:22px}.help-dlg li{margin:0 0 6px}
.help-dlg details{border-top:1px solid #e3e6f0;padding:8px 0}.help-dlg details:last-of-type{border-bottom:1px solid #e3e6f0}
.help-dlg summary{cursor:pointer;font-weight:700;color:#0d1530}
.help-dlg details p{margin:6px 0 0}
.help-dlg .help-links{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
.help-dlg .help-links a{display:inline-block;padding:9px 14px;border-radius:99px;background:#0d1530;color:#fff;font-weight:700;font-size:14px;text-decoration:none}
.help-dlg .help-links a:hover{background:#6d3df0}
.help-dlg .help-aud{display:inline-block;margin:0 0 8px;padding:2px 10px;border-radius:99px;background:#fff4d6;color:#7a5600;font-size:12px;font-weight:800}
.help-x{position:absolute;top:10px;right:10px;width:40px;height:40px;border:0;border-radius:50%;background:#f1f3f9;color:#0d1530;font:400 26px/1 system-ui,sans-serif;cursor:pointer}
.help-x:hover{background:#e3e6f0}.help-x:focus-visible{outline:3px solid #ffb800}
html.help-lock{overflow:hidden}
@media(max-width:600px){
  .help-ov{align-items:flex-end;padding:0}
  .help-dlg{max-width:none;max-height:88vh;border-radius:20px 20px 0 0;padding:20px 18px calc(24px + env(safe-area-inset-bottom))}
  .help-dlg h2{font-size:20px}
}
@media(prefers-reduced-motion:no-preference){.help-dlg{animation:help-in .16s ease-out}@keyframes help-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}}
/* admin */
.admin-help-link{display:none;align-items:center;padding:6px 12px;border:1.5px solid var(--line,#dfe2ee);border-radius:99px;background:#fff;color:var(--navy,#0d1530);font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
body[data-viewer-role="admin"] .admin-help-link{display:inline-flex}
.admin-help-link:hover{border-color:#6d3df0;color:#6d3df0}
.help-row{margin:0 0 8px}
.admin-drill .help-q{margin-left:8px}
.help-q.help-pill{white-space:nowrap;flex:0 0 auto}
.mp-helpwrap{flex:0 0 auto;display:inline-flex}
@media(max-width:420px){.help-q.help-pill{font-size:13px;padding:5px 10px 5px 6px}}
