/* =============================================================================
   help-modal.css — Help "?" modal (shared by both casings)
   Mirrors the design-switcher (.c-welcome-*) modal look, but wider and scrollable
   for the Symbol|Beschreibung tables. Built by assets/js/help-modal.js.
   ============================================================================= */

.c-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 32, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.c-help {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow: auto;
  background: #ffffff;
  color: #1f2937;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  padding: 24px 26px 22px;
}

.c-help-x {
  position: absolute;
  top: 10px; right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.c-help-x:hover { background: rgba(0, 0, 0, 0.06); color: #1f2937; }

.c-help-title {
  margin: 0 30px 14px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #005aaa;
}

.c-help-section { margin: 0 0 1.4rem; }
.c-help-section:last-child { margin-bottom: 0.2rem; }
.c-help-section h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}
.c-help-lead { margin: 0 0 0.7rem; color: #475467; line-height: 1.45; }

/* Symbol | Beschreibung table (echoes the old guide's two-column style). */
.c-help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.c-help-table th {
  text-align: left;
  background: #8a8f98;
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
}
.c-help-table th:first-child { width: 76px; border-top-left-radius: 6px; }
.c-help-table th:last-child { border-top-right-radius: 6px; }
.c-help-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #eceff2;
  vertical-align: middle;
  line-height: 1.4;
  color: #333;
}
.c-help-symcell { text-align: center; }

/* Dark tile with a white glyph — matches the screenshots' symbol chips. */
.c-help-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #3b4149;
  color: #fff;
  font-size: 1.15rem;
}
.c-help-sym--text { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }

.c-help-note { margin: 0 0 0.6rem; line-height: 1.45; color: #333; }
.c-help-note strong { color: #1f2937; }

/* ---- Dark theme ---- */
[data-theme="dark"] .c-help { background: #1e2530; color: #dbe2ea; }
[data-theme="dark"] .c-help-title { color: #5aa9e6; }
[data-theme="dark"] .c-help-section h3 { color: #eef2f6; }
[data-theme="dark"] .c-help-lead { color: #aab4c2; }
[data-theme="dark"] .c-help-x { color: #aab4c2; }
[data-theme="dark"] .c-help-x:hover { background: rgba(255,255,255,0.08); color: #fff; }
[data-theme="dark"] .c-help-table th { background: #2b3440; }
[data-theme="dark"] .c-help-table td { border-bottom-color: #2b3440; color: #cbd3dc; }
[data-theme="dark"] .c-help-sym { background: #0d1117; }
[data-theme="dark"] .c-help-note,
[data-theme="dark"] .c-help-note strong { color: #dbe2ea; }

@media (max-width: 480px) {
  .c-help { padding: 20px 16px 18px; }
  .c-help-sym { width: 38px; height: 38px; font-size: 1rem; }
  .c-help-table th:first-child { width: 58px; }
}
