/* Help Center inside the Hub. Uses the Hub theme's own variables so it follows its colours and dark mode. */
.help-page { --help-line: rgba(var(--bs-inverse-rgb), .14); --help-muted: rgba(var(--bs-inverse-rgb), .62); --help-soft: rgba(var(--bs-inverse-rgb), .06); max-width: 1500px; margin: 0 auto; }
.help-page a { text-decoration: none; }
.help-article a, .help-callout a, .help-faq a, .help-table a { color: var(--bs-theme); text-decoration: underline; text-underline-offset: 2px; }
.help-eyebrow { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-theme); font-weight: 700; margin-bottom: .35rem; }
.help-eyebrow i { margin-right: .3rem; }

/* ---------- Headers ---------- */
.help-header, .help-hero { position: relative; border: 1px solid var(--help-line); border-radius: .75rem; z-index: 900; padding: 1.4rem 1.6rem; margin-bottom: 1.4rem;
  background: linear-gradient(90deg, rgba(var(--bs-body-bg-rgb, 0,0,0), .93) 38%, rgba(var(--bs-body-bg-rgb, 0,0,0), .6)), var(--help-header-image, none) center right / cover no-repeat, var(--help-soft); }
.help-header-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: 1.4rem; align-items: end; }
.help-header-lede { color: var(--help-muted); max-width: 62ch; margin: 0 0 .5rem; }
.help-header-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--help-muted); margin: 0; }
.help-header-meta i { color: var(--bs-theme); margin-right: .25rem; }
.help-plan-note { font-size: .85rem; color: var(--bs-theme); margin: .5rem 0 0; }
.help-page .breadcrumb { margin-bottom: .6rem; }

/* ---------- Search ---------- */
.help-search { position: relative; }
.help-search .form-control { padding-left: 2.4rem; height: 2.7rem; border-radius: 2rem; }
.help-search-icon { position: absolute; left: .95rem; top: .8rem; color: var(--help-muted); pointer-events: none; z-index: 2; }
.help-search-results { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + .35rem); max-height: 420px; overflow: auto; border: 1px solid var(--help-line); border-radius: .6rem; background: var(--bs-body-bg, #111); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.help-search-results a { display: block; padding: .6rem .85rem; border-bottom: 1px solid var(--help-line); color: inherit; }
.help-search-results a:last-child { border-bottom: 0; }
.help-search-results a:hover, .help-search-results a[aria-selected="true"] { background: rgba(var(--bs-theme-rgb), .15); }
.help-search-results strong { display: block; font-size: .92rem; }
.help-search-results em { font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-theme); margin-right: .4rem; }
.help-search-results small { color: var(--help-muted); font-size: .78rem; }
.help-search-empty { padding: .8rem .9rem; color: var(--help-muted); font-size: .88rem; }
.help-hero .help-search { max-width: 560px; margin: .75rem 0 1rem; }

/* ---------- Shell ---------- */
.help-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.help-shell-3 { grid-template-columns: 270px minmax(0, 1fr) 220px; }
.help-shell > * { min-width: 0; }
.help-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.help-toc { position: sticky; top: 76px; }
.help-toc-inner { border-left: 2px solid var(--help-line); padding-left: .9rem; }
.help-toc strong { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--help-muted); display: block; margin-bottom: .4rem; }
.help-toc ul { list-style: none; margin: 0; padding: 0; }
.help-toc a { display: block; padding: .22rem 0; font-size: .82rem; color: var(--help-muted); }
.help-toc a:hover, .help-toc a.active { color: var(--bs-theme); }

/* ---------- Topics navigation ---------- */
.help-nav { border: 1px solid var(--help-line); border-radius: .65rem; background: var(--help-soft); }
.help-nav summary { cursor: pointer; padding: .7rem .9rem; font-weight: 600; list-style: none; display: none; }
.help-nav summary::-webkit-details-marker { display: none; }
.help-nav nav { padding: .45rem; }
.help-nav a, .help-nav .help-nav-cat { display: flex; gap: .55rem; align-items: center; padding: .5rem .65rem; border-radius: .45rem; color: inherit; font-size: .9rem; }
.help-nav a:hover { background: rgba(var(--bs-theme-rgb), .12); }
.help-nav a.current { background: rgba(var(--bs-theme-rgb), .2); color: var(--bs-theme); font-weight: 600; }
.help-nav .help-nav-cat i, .help-nav .help-nav-home i { width: 1.1rem; text-align: center; color: var(--bs-theme); }
.help-nav .planned { opacity: .55; cursor: default; }
.help-nav .planned em { margin-left: auto; font-size: .65rem; font-style: normal; text-transform: uppercase; letter-spacing: .05em; }
.help-nav-group ul { list-style: none; margin: .1rem 0 .4rem 1.45rem; padding: 0 0 0 .6rem; border-left: 1px solid var(--help-line); }
.help-nav-group li a { font-size: .82rem; padding: .32rem .5rem; color: var(--help-muted); }
.help-nav-group li a.current { color: var(--bs-theme); }

/* ---------- Article typography ---------- */
.help-article { font-size: 1rem; line-height: 1.72; }
.help-article p { margin: 0 0 1rem; }
.help-h2 { font-size: 1.45rem; margin: 2.2rem 0 .9rem; padding-top: .3rem; scroll-margin-top: 90px; position: relative; }
.help-h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; scroll-margin-top: 90px; }
.help-anchor { position: absolute; left: -1.1rem; color: var(--help-muted); opacity: 0; font-weight: 400; text-decoration: none !important; }
.help-h2:hover .help-anchor { opacity: 1; }
.help-article code { background: var(--help-soft); padding: .1rem .35rem; border-radius: .3rem; font-size: .88em; }
.help-list { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.help-list li { margin-bottom: .35rem; }

/* Steps */
.help-steps { list-style: none; counter-reset: helpstep; margin: 1rem 0 1.6rem; padding: 0; }
.help-step { position: relative; counter-increment: helpstep; padding-left: 3.1rem; padding-bottom: 1.3rem; }
.help-step::before { content: counter(helpstep); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--bs-theme); color: #04201c; font-weight: 700; display: grid; place-items: center; }
.help-step::after { content: ""; position: absolute; left: 1.02rem; top: 2.3rem; bottom: .2rem; width: 2px; background: var(--help-line); }
.help-step:last-child::after { display: none; }
.help-step-text { font-weight: 500; margin-bottom: .45rem !important; }
.help-step-result { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; color: var(--help-muted); background: rgba(var(--bs-theme-rgb), .08); border: 1px solid rgba(var(--bs-theme-rgb), .25); border-radius: .5rem; padding: .55rem .75rem; margin: 0 0 .7rem !important; }
.help-step-result i { color: var(--bs-theme); margin-top: .2rem; }

/* Figures */
.help-figure { margin: 1.3rem auto 1.7rem; }
.help-zoom { display: block; position: relative; border: 1px solid var(--help-line); border-radius: .6rem; overflow: hidden; cursor: zoom-in; }
.help-zoom img { display: block; width: 100%; height: auto; }
.help-zoom-hint { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,0,0,.6); color: #fff; border-radius: 2rem; padding: .25rem .55rem; font-size: .8rem; opacity: 0; transition: opacity .15s; }
.help-zoom:hover .help-zoom-hint, .help-zoom:focus .help-zoom-hint { opacity: 1; }
.help-figure figcaption { text-align: center; font-size: .82rem; color: var(--help-muted); margin-top: .5rem; }

/* Callouts */
.help-callout { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; border: 1px solid var(--help-line); border-left-width: 4px; border-radius: .6rem; padding: .85rem 1rem; margin: 1.3rem 0; background: var(--help-soft); }
.help-callout-icon { font-size: 1.2rem; padding-top: .1rem; }
.help-callout-body strong { display: block; margin-bottom: .15rem; }
.help-callout-body p { margin: 0 !important; font-size: .95rem; }
.help-callout.note { border-left-color: #3b9ad9; } .help-callout.note .help-callout-icon { color: #3b9ad9; }
.help-callout.tip { border-left-color: var(--bs-theme); } .help-callout.tip .help-callout-icon { color: var(--bs-theme); }
.help-callout.warning { border-left-color: #f59e0b; background: rgba(245,158,11,.08); } .help-callout.warning .help-callout-icon { color: #f59e0b; }
.help-callout.plan { border-left-color: #a78bfa; } .help-callout.plan .help-callout-icon { color: #a78bfa; }

/* Tables */
.help-table-wrap { overflow-x: auto; margin: 1.3rem 0; border: 1px solid var(--help-line); border-radius: .6rem; }
.help-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.help-table caption { caption-side: top; padding: .6rem .9rem; font-weight: 600; text-align: left; }
.help-table th, .help-table td { padding: .6rem .9rem; border-top: 1px solid var(--help-line); vertical-align: top; text-align: left; }
.help-table thead th { background: var(--help-soft); border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--help-muted); white-space: nowrap; }
.help-table tbody th { font-weight: 600; min-width: 9rem; }

/* FAQ */
.help-faq { margin: 1.2rem 0; }
.help-faq-item { border: 1px solid var(--help-line); border-radius: .55rem; margin-bottom: .55rem; background: var(--help-soft); }
.help-faq-item summary { cursor: pointer; padding: .75rem 1rem; font-weight: 600; }
.help-faq-answer { padding: 0 1rem .6rem; }
.help-faq-answer p { margin: 0 0 .6rem !important; }

/* Path bar, prev/next, related */
.help-pathbar { border: 1px solid var(--help-line); border-radius: .6rem; padding: .7rem .9rem; margin-bottom: 1.4rem; background: var(--help-soft); }
.help-pathbar-title { display: flex; justify-content: space-between; gap: .6rem; font-size: .85rem; margin-bottom: .5rem; }
.help-pathbar-name i { color: var(--bs-theme); margin-right: .3rem; }
.help-pathbar-step { color: var(--help-muted); }
.help-pathbar ol { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.help-pathbar li { flex: 1; }
.help-pathbar li a { display: block; height: .38rem; border-radius: 1rem; background: var(--help-line); }
.help-pathbar li.done a { background: rgba(var(--bs-theme-rgb), .55); }
.help-pathbar li.current a { background: #f59e0b; }
.help-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 2.2rem 0 1.6rem; }
.help-prevnext a { border: 1px solid var(--help-line); border-radius: .6rem; padding: .8rem 1rem; color: inherit; display: block; }
.help-prevnext a:hover { border-color: var(--bs-theme); }
.help-prevnext span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--help-muted); }
.help-prevnext .next { text-align: right; grid-column: 2; }
.help-prevnext .prev { grid-column: 1; }
.help-related h2 { font-size: 1.2rem; margin: 1.6rem 0 .8rem; }
.help-related-grid, .help-list-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.help-list-cards { grid-template-columns: 1fr; }
.help-article-card { color: inherit; height: 100%; transition: border-color .12s, transform .12s; }
.help-article-card:hover { border-color: var(--bs-theme); transform: translateY(-1px); }
.help-article-card h2, .help-article-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.help-article-card p { margin: 0 0 .5rem; color: var(--help-muted); font-size: .92rem; }
.help-card-meta { font-size: .8rem; color: var(--bs-theme); font-weight: 600; }

/* ---------- Home ---------- */
.help-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.6rem; align-items: center; background: var(--help-soft); }
.help-hero h1 { font-size: 2.1rem; line-height: 1.15; }
.help-hero h1 .accent { color: var(--bs-theme); }
.help-hero-visual img { width: 100%; height: auto; border-radius: .7rem; border: 1px solid var(--help-line); display: block; }
.help-hero-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.help-block { margin: 2rem 0; }
.help-section-head h2 { font-size: 1.5rem; margin: 0 0 .3rem; }
.help-section-head p { color: var(--help-muted); margin-bottom: 1rem; }
.help-path-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.help-path-card { display: grid; grid-template-columns: 2.1rem 1fr; gap: .2rem .7rem; padding: .85rem 1rem; color: inherit; height: 100%; }
.help-path-card:hover { border-color: var(--bs-theme); }
.help-path-num { grid-row: span 2; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--bs-theme); color: #04201c; font-weight: 700; display: grid; place-items: center; }
.help-path-title { font-weight: 600; line-height: 1.3; }
.help-path-time { font-size: .78rem; color: var(--help-muted); }
.help-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.help-card { color: inherit; height: 100%; transition: border-color .12s, transform .12s; }
.help-card:hover { border-color: var(--bs-theme); transform: translateY(-2px); }
.help-card h3 { font-size: 1.1rem; margin: .5rem 0 .35rem; }
.help-card p { color: var(--help-muted); font-size: .92rem; }
.help-card-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .6rem; background: rgba(var(--bs-theme-rgb), .15); color: var(--bs-theme); font-size: 1.15rem; }
.help-card.planned { opacity: .55; }
.help-planned { color: var(--help-muted); padding: 1.2rem 0; }

/* ---------- Still need help ---------- */
.help-more { margin: 2.4rem 0 .5rem; }
.help-more h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.help-more p { color: var(--help-muted); }
.help-more-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Lightbox ---------- */
.help-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.88); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; cursor: zoom-out; }
.help-lightbox.open { display: flex; }
.help-lightbox img { max-width: 96vw; max-height: 82vh; border-radius: .5rem; box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.help-lightbox p { color: #ddd; margin: .8rem 0 0; font-size: .9rem; text-align: center; }
.help-lightbox button { position: absolute; top: .8rem; right: 1.1rem; background: transparent; color: #fff; border: 0; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .help-shell-3 { grid-template-columns: 250px minmax(0, 1fr); }
  .help-toc { display: none; }
}
@media (max-width: 991.98px) {
  .help-shell, .help-shell-3 { grid-template-columns: minmax(0, 1fr); }
  .help-side { position: static; max-height: none; }
  .help-nav summary { display: flex; gap: .5rem; align-items: center; }
  .help-nav:not([open]) nav { display: none; }
  .help-header-grid, .help-hero { grid-template-columns: 1fr; }
  .help-hero-visual { order: -1; }
  .help-anchor { display: none; }
}
@media (max-width: 575.98px) {
  .help-header, .help-hero { padding: 1rem; }
  .help-hero h1 { font-size: 1.6rem; }
  .help-prevnext { grid-template-columns: 1fr; }
  .help-prevnext .next, .help-prevnext .prev { grid-column: 1; text-align: left; }
}

/* Overview cards (icon, title, text) - the three pieces of a Gig Game session */
.help-feature-cards { margin: 1.2rem 0 1.4rem; }
.help-feature-card { height: 100%; }
.help-feature-icon { width: 52px; height: 52px; border-radius: .65rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--bs-theme-rgb), .15); color: var(--bs-theme); font-size: 1.4rem; margin-bottom: .75rem; }
.help-feature-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
.help-feature-text { font-size: .9rem; color: var(--help-muted); line-height: 1.55; margin: 0; }
.help-gohub { margin: .8rem 0 0; }
