/* ============================================================
   AEROGYAN HELP CENTER — styles (2026-11-16)
   The site's own tokens (--bg-surface, --text-primary, --brand-600…):
   inside the app they come from styles.css; on the public page
   /help (html.hc-standalone) they are set here, light and dark.
   ============================================================ */
html.hc-standalone {
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe; --brand-300: #a5b4fc;
  --brand-500: #6366f1; --brand-600: #4f46e5; --brand-700: #4338ca;
  --bg-page: #f6f4f1; --bg-surface: #ffffff; --bg-surface-2: #fafaf8; --bg-surface-3: #f1efeb;
  --border-subtle: #ebe7e0; --border-default: #ded9cf;
  --text-primary: #14161c; --text-secondary: #4a4d5a; --text-tertiary: #6b6e7a;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html.hc-standalone[data-theme="dark"] {
  --brand-50: rgba(99,102,241,.14); --brand-100: rgba(99,102,241,.22); --brand-200: #3a3f8f; --brand-300: #a5b4fc;
  --brand-600: #818cf8; --brand-700: #a5b4fc;
  --bg-page: #101216; --bg-surface: #181b20; --bg-surface-2: #1f2329; --bg-surface-3: #272c33;
  --border-subtle: #262b32; --border-default: #333a43;
  --text-primary: #eceef1; --text-secondary: #b6bac1; --text-tertiary: #9399a3;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html.hc-standalone:not([data-theme="light"]) {
    --brand-50: rgba(99,102,241,.14); --brand-100: rgba(99,102,241,.22); --brand-200: #3a3f8f; --brand-300: #a5b4fc;
    --brand-600: #818cf8; --brand-700: #a5b4fc;
    --bg-page: #101216; --bg-surface: #181b20; --bg-surface-2: #1f2329; --bg-surface-3: #272c33;
    --border-subtle: #262b32; --border-default: #333a43;
    --text-primary: #eceef1; --text-secondary: #b6bac1; --text-tertiary: #9399a3;
    color-scheme: dark;
  }
}

/* ---------- the public page ---------- */
html.hc-standalone, html.hc-standalone body { margin: 0; background: var(--bg-page); color: var(--text-primary); }
.hc-body { font: 16px/1.6 var(--font-sans); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
.hc-body *, .hc-body *::before, .hc-body *::after { box-sizing: border-box; }
.hc-skip { position: absolute; left: -9999px; top: 8px; background: var(--brand-600); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.hc-skip:focus { left: 12px; }
.hc-top { position: sticky; top: 0; z-index: 20; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding-top: env(safe-area-inset-top); }
.hc-top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.hc-logo { display: flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; font-size: 17px; min-width: 0; }
.hc-logo img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.hc-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-logo b { color: var(--brand-600); }
.hc-top-fill { flex: 1; }
.hc-theme, .hc-top-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; flex: none; }
.hc-theme { width: 38px; justify-content: center; padding: 0; }
.hc-top-btn { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
html.hc-standalone[data-theme="dark"] .hc-top-btn { color: #0b0d14; }
.hc-body > .hc { max-width: 1180px; margin: 0 auto; padding: 18px 16px 48px; outline: none; }
.hc-foot { max-width: 1180px; margin: 0 auto; padding: 8px 16px calc(40px + env(safe-area-inset-bottom)); color: var(--text-secondary); font-size: 14px; text-align: center; }
.hc-foot a { color: var(--brand-600); }

/* the server-drawn page before help.js takes over (and without JavaScript) */
.hc-static .hc-static-roles { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-static .hc-static-roles a { padding: 6px 12px; border: 1px solid var(--border-default); border-radius: 999px; color: var(--text-primary); text-decoration: none; }
.hc-static-role { margin-top: 28px; }
.hc-static .hc-card h4 { margin: 0 0 6px; font-size: 17px; }

/* ---------- the Help Center (both places) ---------- */
.hc { --hc-r: 14px; color: var(--text-primary); font-family: var(--font-sans); }
.hc h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; margin: 4px 0 6px; letter-spacing: -.01em; }
.hc h2 { font-size: 20px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.hc h2 > i { color: var(--brand-600); font-size: 17px; }
.hc h3 { font-size: 17px; margin: 0; line-height: 1.35; }
.hc p { margin: 0 0 8px; }
.hc .hc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc-sub, .hc-sec-intro { color: var(--text-secondary); }
.hc-loading { padding: 40px 0; color: var(--text-secondary); display: flex; gap: 10px; align-items: center; justify-content: center; }
.hc-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-default); border-top-color: var(--brand-600); animation: hc-spin .8s linear infinite; }
@keyframes hc-spin { to { transform: rotate(360deg); } }

.hc-head { margin-bottom: 14px; }
.hc-bar { position: sticky; top: 59px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; background: var(--bg-page); }
.hc-embedded .hc-bar { top: 0; background: var(--bg-page, var(--bg-surface)); }
.hc-roles { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-surface-3); border: 1px solid var(--border-subtle); flex: none; max-width: 100%; }
.hc-roles button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.hc-roles button[aria-pressed="true"] { background: var(--bg-surface); color: var(--brand-600); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hc-roles button:focus-visible, .hc-btn:focus-visible, .hc-toc a:focus-visible, .hc-faq summary:focus-visible, .hc-start-list a:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.hc-search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.hc-search:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.hc-search > i { color: var(--text-tertiary); }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 16px; }
.hc-count { min-height: 1.4em; margin: 2px 0 0; color: var(--text-secondary); font-size: 14px; }
.hc-count .hc-btn { margin-left: 4px; }

.hc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.hc-toc { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.hc-embedded .hc-toc { top: 70px; max-height: calc(100vh - 160px); }
.hc-toc summary { font-weight: 700; cursor: pointer; padding: 6px 0; list-style: none; display: flex; gap: 8px; align-items: center; }
.hc-toc summary::-webkit-details-marker { display: none; }
.hc-toc ul { list-style: none; margin: 4px 0 0; padding: 0; }
.hc-toc a { display: flex; gap: 9px; align-items: baseline; padding: 6px 10px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.hc-toc a i { width: 16px; text-align: center; color: var(--text-tertiary); flex: none; }
.hc-toc a:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.hc-main { min-width: 0; }

.hc-start, .hc-sec { margin: 0 0 30px; scroll-margin-top: 130px; }
.hc-embedded .hc-start, .hc-embedded .hc-sec { scroll-margin-top: 76px; }
.hc-start { padding: 18px; border-radius: var(--hc-r); background: var(--brand-50); border: 1px solid var(--brand-100); }
.hc-start-list { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: hcs; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.hc-start-list li { counter-increment: hcs; }
.hc-start-list a { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-primary); text-decoration: none; height: 100%; align-content: start; }
.hc-start-list a::before { content: counter(hcs); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.hc-start-list b { font-size: 14.5px; line-height: 1.3; }
.hc-start-list span { font-size: 12.5px; color: var(--text-secondary); line-height: 1.35; overflow-wrap: anywhere; }

.hc-cards { display: grid; gap: 14px; }
.hc-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--hc-r); padding: 16px 18px; scroll-margin-top: 130px; transition: box-shadow .3s, border-color .3s; min-width: 0; }
.hc-embedded .hc-card { scroll-margin-top: 76px; }
.hc-card.hc-hit { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.hc-card-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.hc-card-h > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hc-card-h h3 { flex: 1 1 100%; }
.hc-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 16px; }
.hc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 1px 8px; border-radius: 999px; }
.hc-card-sec { font-size: 12.5px; color: var(--text-tertiary); }
.hc-what { color: var(--text-primary); }
.hc-where { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--text-secondary); background: var(--bg-surface-2); border: 1px solid var(--border-subtle); padding: 6px 10px; border-radius: 9px; overflow-wrap: anywhere; }
.hc-where > i { color: var(--brand-600); flex: none; font-size: 12px; }
.hc-steps { margin: 10px 0 6px; padding: 0; list-style: none; counter-reset: hcst; }
.hc-steps li { counter-increment: hcst; position: relative; padding: 3px 0 5px 36px; overflow-wrap: anywhere; }
.hc-steps li::before { content: counter(hcst); position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.hc-tips { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; color: var(--text-secondary); }
.hc-tips li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; overflow-wrap: anywhere; }
.hc-tips li > i { color: #d97706; flex: none; font-size: 12px; }
.hc-note { font-size: 13.5px; color: var(--text-secondary); }
.hc mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
html[data-theme="dark"] .hc mark { background: #854d0e; }
.hc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hc-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border-radius: 10px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.hc-btn:hover { border-color: var(--brand-300); }
.hc-btn-primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
html[data-theme="dark"] .hc-btn-primary { color: #0b0d14; }
.hc-btn-ghost { background: transparent; color: var(--text-secondary); }
.hc-btn-sm { min-height: 30px; padding: 3px 10px; font-size: 13px; }
.hc-copied { color: #15803d; border-color: #86efac; }

.hc-faqs { display: grid; gap: 8px; }
.hc-faq { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 0 16px; scroll-margin-top: 130px; }
.hc-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after { content: '+'; color: var(--brand-600); font-weight: 700; font-size: 18px; line-height: 1; }
.hc-faq[open] summary::after { content: '−'; }
.hc-faq p { color: var(--text-secondary); }
.hc-faq .hc-btn { margin-bottom: 12px; }
.hc-faq.hc-hit { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.hc-empty { text-align: center; padding: 36px 16px; color: var(--text-secondary); }
.hc-empty > i { font-size: 28px; color: var(--text-tertiary); margin-bottom: 8px; }

/* ---------- phones and tablets ---------- */
@media (max-width: 899px) {
  .hc-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hc-toc { position: static; max-height: none; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 4px 12px; }
  .hc-bar { top: 57px; }
}
@media (max-width: 520px) {
  .hc-top-btn span { display: none; }
  .hc-top-btn { width: 38px; justify-content: center; padding: 0; }
  .hc-roles { width: 100%; }
  .hc-roles button { flex: 1; justify-content: center; padding: 7px 6px; font-size: 13.5px; }
  .hc-card { padding: 14px; }
  .hc-ic { width: 32px; height: 32px; font-size: 14px; }
  .hc-start-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- printing: every card, no controls ---------- */
@media print {
  .hc-top, .hc-bar, .hc-toc, .hc-acts, .hc-foot, .hc-skip, .hc-count, .hc-faq .hc-btn { display: none !important; }
  .hc-layout { display: block; }
  html.hc-standalone, html.hc-standalone body { background: #fff; color: #000; }
  .hc-card, .hc-faq, .hc-start { break-inside: avoid; border-color: #bbb; box-shadow: none; }
  .hc-faq summary::after { content: ''; }
  .hc a { color: #000; }
}

/* ---------- inside AeroGyan: the overlay (guide.js aeroHelpCenter) ---------- */
.hc-ov { position: fixed; inset: 0; z-index: 10065; background: var(--bg-page, #f6f4f1); display: flex; flex-direction: column; }
.hc-ov-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); }
.hc-ov-bar h2 { margin: 0; font-size: 17px; display: flex; gap: 9px; align-items: center; min-width: 0; color: var(--text-primary); }
.hc-ov-bar h2 i { color: var(--brand-600); }
.hc-ov-bar .hc-ov-fill { flex: 1; }
.hc-ov-bar a, .hc-ov-bar button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.hc-ov-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.hc-ov-scroll > .hc { max-width: 1180px; margin: 0 auto; padding: 14px 16px 48px; }
@media (max-width: 520px) { .hc-ov-bar .hc-ov-full span { display: none; } }
/* the Help app (/apps/help/): the Help Center is the whole page under the app bar */
.hc-ov.hc-ov-app { top: var(--oa-top, 52px); z-index: 955; }
.hc-ov.hc-ov-app .hc-ov-bar { display: none; }
@media print { .hc-ov { position: static; } .hc-ov-bar { display: none; } .hc-ov-scroll { overflow: visible; } }
