/* ============================================================================
 * Swagg Brown — Help Center styles
 * ==========================================================================*/
.hc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
  background: rgba(6, 5, 4, 0.78);
  backdrop-filter: blur(4px);
}
.hc-overlay[hidden] { display: none; }
body.hc-lock { overflow: hidden; }

.hc-modal {
  width: min(1080px, 96vw);
  height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1b1712, #100d09);
  border: 1px solid rgba(199, 154, 58, 0.45);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: hcPop 0.2s ease;
}
@keyframes hcPop { from { opacity: 0; transform: translateY(12px) scale(.985);} to { opacity: 1; transform: none; } }

.hc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(199, 154, 58, 0.22);
  background: rgba(0,0,0,0.2);
}
.hc-title { font-size: 1.05rem; font-weight: 700; color: #f0d999; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hc-logo { font-size: 1.15rem; }
.hc-searchbar { flex: 1 1 auto; position: relative; display: flex; }
.hc-search {
  width: 100%;
  padding: 10px 36px 10px 14px;
  font-size: 0.95rem;
  color: #f2ead9;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(199, 154, 58, 0.4);
  border-radius: 10px;
  outline: none;
}
.hc-search:focus { border-color: #c79a3a; box-shadow: 0 0 0 3px rgba(199,154,58,0.18); }
.hc-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: #b9ac93; cursor: pointer; font-size: 0.9rem; padding: 6px;
}
.hc-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(199,154,58,0.3);
  color: #f2ead9; cursor: pointer; font-size: 0.9rem;
}
.hc-close:hover { background: rgba(199,154,58,0.2); }

.hc-filters {
  display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto;
  border-bottom: 1px solid rgba(199,154,58,0.14); white-space: nowrap;
  scrollbar-width: thin;
}
.hc-chip {
  flex: 0 0 auto; padding: 6px 12px; font-size: 0.8rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(199,154,58,0.25);
  color: #cbbfa6; cursor: pointer;
}
.hc-chip.is-active { background: linear-gradient(180deg, #e9c268, #c79a3a); color: #1a140a; border-color: transparent; font-weight: 700; }

.hc-body { flex: 1 1 auto; display: flex; min-height: 0; }
.hc-side {
  flex: 0 0 240px; overflow-y: auto; padding: 10px;
  border-right: 1px solid rgba(199,154,58,0.14); background: rgba(0,0,0,0.15);
}
.hc-cat {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px; margin-bottom: 2px; border-radius: 8px; border: 0;
  background: transparent; color: #cbbfa6; cursor: pointer; font-size: 0.85rem;
}
.hc-cat:hover { background: rgba(199,154,58,0.12); color: #f2ead9; }
.hc-cat-ico { flex: 0 0 auto; width: 20px; text-align: center; }
.hc-cat-name { flex: 1 1 auto; }
.hc-cat-n { flex: 0 0 auto; font-size: 0.7rem; color: #8f8368; background: rgba(255,255,255,0.06); border-radius: 999px; padding: 1px 7px; }

.hc-content { flex: 1 1 auto; overflow-y: auto; padding: 20px 26px; color: #e9e0cf; }
.hc-content:focus { outline: none; }

/* Home */
.hc-hero h2 { margin: 0 0 6px; font-size: 1.5rem; color: #f0d999; }
.hc-hero p { margin: 0 0 12px; color: #b9ac93; font-size: 0.9rem; }
.hc-popwrap, .hc-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.hc-pop-l, .hc-recent-l { font-size: 0.78rem; color: #8f8368; margin-right: 4px; }
.hc-pop {
  padding: 5px 11px; font-size: 0.78rem; border-radius: 999px; cursor: pointer;
  background: rgba(199,154,58,0.1); border: 1px solid rgba(199,154,58,0.3); color: #e7d6ab;
}
.hc-pop:hover { background: rgba(199,154,58,0.22); }
.hc-pop-recent { background: rgba(255,255,255,0.05); }

.hc-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.hc-home-cat { background: rgba(255,255,255,0.03); border: 1px solid rgba(199,154,58,0.14); border-radius: 12px; padding: 12px 14px; }
.hc-home-cat-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.95rem; color: #f0d999; cursor: pointer; }
.hc-home-cat-h:hover { color: #ffe9c4; }
.hc-home-links { list-style: none; margin: 0; padding: 0; }
.hc-home-links li { margin: 3px 0; }
.hc-home-links a { color: #cbbfa6; text-decoration: none; font-size: 0.85rem; }
.hc-home-links a:hover { color: #ffe9c4; text-decoration: underline; }
.hc-more { margin-top: 6px; background: transparent; border: 0; color: #c79a3a; cursor: pointer; font-size: 0.8rem; padding: 0; }

/* Results */
.hc-results-head { font-size: 0.82rem; color: #8f8368; margin-bottom: 12px; }
.hc-results { display: grid; gap: 10px; }
.hc-result {
  display: grid; gap: 3px; text-align: left; width: 100%;
  padding: 12px 14px; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(199,154,58,0.16); color: #e9e0cf;
}
.hc-result:hover { background: rgba(199,154,58,0.1); border-color: rgba(199,154,58,0.4); }
.hc-result-cat { font-size: 0.72rem; color: #c79a3a; text-transform: uppercase; letter-spacing: 0.04em; }
.hc-result-title { font-size: 0.98rem; font-weight: 600; color: #f2ead9; }
.hc-result-sum { font-size: 0.83rem; color: #b9ac93; }
.hc-result-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hc-score { background: rgba(255,255,255,0.06); border-radius: 4px; padding: 0 5px; color: #8f8368; font-size: 0.65rem; }

.hc-badge { display: inline-block; font-size: 0.66rem; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.hc-badge-plan { background: rgba(199,154,58,0.16); border: 1px solid rgba(199,154,58,0.4); color: #ffe9c4; }
.hc-badge-role { background: rgba(120,180,255,0.14); border: 1px solid rgba(120,180,255,0.4); color: #cfe4ff; }

/* No results */
.hc-noresults { padding: 20px; text-align: center; color: #b9ac93; }
.hc-noresults h3 { color: #f0d999; }
.hc-noresults ul { list-style: none; padding: 0; display: inline-block; text-align: left; }
.hc-noresults li { margin: 4px 0; }
.hc-noresults a { color: #c79a3a; }

/* Crumbs + article */
.hc-crumbs { font-size: 0.78rem; color: #8f8368; margin-bottom: 10px; }
.hc-crumbs button { background: transparent; border: 0; color: #c79a3a; cursor: pointer; padding: 0; font-size: 0.78rem; }
.hc-crumbs button:hover { text-decoration: underline; }
.hc-cat-title { color: #f0d999; margin: 0 0 14px; }

.hc-article h1 { font-size: 1.5rem; color: #f0d999; margin: 0 0 6px; }
.hc-article-sum { font-size: 0.95rem; color: #cbbfa6; margin: 0 0 12px; }
.hc-article-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 0.75rem; color: #8f8368; padding-bottom: 12px; border-bottom: 1px solid rgba(199,154,58,0.14); margin-bottom: 16px; }
.hc-article-body { font-size: 0.92rem; line-height: 1.6; }
.hc-article-body h4 { color: #e7d6ab; margin: 16px 0 6px; font-size: 1rem; }
.hc-article-body p { margin: 8px 0; }
.hc-article-body ul, .hc-article-body ol { margin: 8px 0; padding-left: 22px; }
.hc-article-body li { margin: 4px 0; }
.hc-article-body a { color: #e7b955; cursor: pointer; }
.hc-article-body a:hover { color: #ffd77a; }
.hc-article-body code { background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

.hc-note { margin: 12px 0; padding: 10px 12px 10px 14px; border-left: 3px solid #c79a3a; background: rgba(199,154,58,0.08); border-radius: 6px; font-size: 0.86rem; }
.hc-note.hc-warn { border-left-color: #e07a3a; background: rgba(224,122,58,0.1); }
.hc-note.hc-coming { border-left-color: #6b8fd0; background: rgba(107,143,208,0.1); }

.hc-article-browsers { margin-top: 18px; font-size: 0.78rem; color: #8f8368; }
.hc-related { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(199,154,58,0.14); }
.hc-related h4 { color: #e7d6ab; margin: 0 0 6px; }
.hc-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hc-related a { color: #c79a3a; text-decoration: none; font-size: 0.86rem; cursor: pointer; }
.hc-related a:hover { text-decoration: underline; }

.hc-article-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(199,154,58,0.14); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hc-feedback { font-size: 0.82rem; color: #b9ac93; }
.hc-fb-btn { margin-left: 6px; padding: 4px 12px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(199,154,58,0.3); color: #e9e0cf; cursor: pointer; }
.hc-fb-btn:hover { background: rgba(199,154,58,0.18); }
.hc-contact { color: #c79a3a; font-size: 0.82rem; text-decoration: none; }
.hc-contact:hover { text-decoration: underline; }

/* Context-help dots sprinkled in the app */
.hc-help-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 5px; padding: 0;
  font-size: 10px; font-weight: 700; line-height: 1;
  border-radius: 50%; cursor: pointer; vertical-align: middle;
  background: rgba(199,154,58,0.2); border: 1px solid rgba(199,154,58,0.5); color: #ffe9c4;
}
.hc-help-dot:hover { background: #c79a3a; color: #1a140a; }

/* Mobile */
@media (max-width: 760px) {
  .hc-overlay { padding: 0; }
  .hc-modal { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
  .hc-title { display: none; }
  .hc-body { flex-direction: column; }
  .hc-side {
    flex: 0 0 auto; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden;
    border-right: 0; border-bottom: 1px solid rgba(199,154,58,0.14); padding: 8px 10px; white-space: nowrap;
  }
  .hc-cat { width: auto; flex: 0 0 auto; }
  .hc-cat-name { display: none; }
  .hc-content { padding: 16px; }
  .hc-home-grid { grid-template-columns: 1fr; }
  .hc-tours-grid { grid-template-columns: 1fr; }
}

/* ===================== Guided tours (Explain this screen) ===================== */
.hc-tours {
  margin: 4px 0 22px; padding: 16px; border-radius: 14px;
  border: 1px solid rgba(199,154,58,0.28);
  background: linear-gradient(180deg, rgba(199,154,58,0.10), rgba(199,154,58,0.02));
}
.hc-tours-h { margin: 0 0 12px; font-size: 15px; color: #f0d9a8; }
.hc-tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.hc-tour-card-btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.22);
  color: #eee; transition: border-color .15s, transform .1s, background .15s;
}
.hc-tour-card-btn:hover { border-color: rgba(199,154,58,0.6); background: rgba(0,0,0,0.32); transform: translateY(-1px); }
.hc-tour-card-icon { font-size: 24px; line-height: 1; }
.hc-tour-card-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hc-tour-card-text strong { font-size: 14px; }
.hc-tour-card-text span { font-size: 12px; opacity: .72; line-height: 1.35; }
.hc-tour-card-go { font-size: 12px; color: #c79a3a; white-space: nowrap; font-weight: 600; }

/* Spotlight tour overlay (lives on <body>, above the studio) */
.hc-tour { position: fixed; inset: 0; z-index: 100000; display: none; }
.hc-tour.is-open { display: block; }
.hc-tour-catch { position: absolute; inset: 0; background: transparent; }
.hc-tour-ring {
  position: absolute; border-radius: 12px; pointer-events: none;
  border: 2px solid #c79a3a;
  box-shadow: 0 0 0 9999px rgba(6,8,12,0.70), 0 0 18px rgba(199,154,58,0.55);
  transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease, opacity .15s ease;
}
.hc-tour-card {
  position: absolute; width: 360px; max-width: calc(100vw - 24px);
  background: #14171d; color: #eee; border: 1px solid rgba(199,154,58,0.4);
  border-radius: 14px; padding: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  transition: left .2s ease, top .2s ease;
}
.hc-tour-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-tour-eyebrow { font-size: 12px; color: #f0d9a8; font-weight: 600; }
.hc-tour-x { background: none; border: 0; color: #999; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.hc-tour-x:hover { color: #fff; background: rgba(255,255,255,0.08); }
.hc-tour-count { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-top: 6px; }
.hc-tour-title { margin: 4px 0 6px; font-size: 17px; }
.hc-tour-body { margin: 0; font-size: 13.5px; line-height: 1.5; opacity: .9; }
.hc-tour-link {
  display: inline-block; margin-top: 10px; background: none; border: 0; cursor: pointer;
  color: #c79a3a; font-size: 13px; font-weight: 600; padding: 0;
}
.hc-tour-link:hover { text-decoration: underline; }
.hc-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.hc-tour-skip { background: none; border: 0; color: #999; font-size: 12px; cursor: pointer; }
.hc-tour-skip:hover { color: #ccc; text-decoration: underline; }
.hc-tour-nav { display: flex; gap: 8px; }
.hc-tour-btn {
  padding: 8px 16px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #eee;
}
.hc-tour-btn:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.hc-tour-btn:disabled { opacity: .4; cursor: default; }
.hc-tour-primary { background: #c79a3a; border-color: #c79a3a; color: #14100a; }
.hc-tour-primary:hover { background: #d8ab4b; }

/* Deep Tips integration: the "Tips" toggle also governs the inline "?" help
   dots, so turning tooltips off hides all inline guidance consistently. */
html.tips-hidden .hc-help-dot { display: none !important; }
