/* Стилі довідки (help.html). Завантажуються тільки на сторінці допомоги —
   ToC, expand/collapse деталей, callout-блоки, заголовки розділів. */

.help-toc {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px; margin: 0 0 16px 0;
  background: rgba(30,41,59,0.5); border-radius: 10px;
  border: 1px solid #1e293b;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.help-toc a {
  padding: 6px 12px; border-radius: 6px;
  background: rgba(59,130,246,0.08); color: #93c5fd;
  text-decoration: none; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(59,130,246,0.15);
  transition: all 0.15s;
}
.help-toc a:hover { background: rgba(59,130,246,0.18); color: #dbeafe; }
html[data-theme-effective="light"] .help-toc {
  background: rgba(241,245,249,0.9); border-color: #e2e8f0;
}
html[data-theme-effective="light"] .help-toc a {
  background: rgba(59,130,246,0.08); color: #1d4ed8; border-color: rgba(59,130,246,0.2);
}

details.help-details {
  margin: 0 0 10px 0;
  padding: 0; border: 1px solid #1e293b; border-radius: 10px;
  background: #0f172a;
  overflow: hidden;
}
details.help-details > summary {
  padding: 14px 16px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: #f1f5f9;
  display: flex; align-items: center; gap: 8px;
  user-select: none;
}
details.help-details > summary::-webkit-details-marker { display: none; }
details.help-details > summary::after {
  content: '▾'; margin-left: auto; color: #64748b;
  transition: transform 0.15s;
}
details.help-details[open] > summary::after { transform: rotate(180deg); }
details.help-details > summary:hover { background: rgba(59,130,246,0.06); }
details.help-details[open] > summary { border-bottom: 1px solid #1e293b; }
details.help-details > .details-body { padding: 14px 16px 18px 16px; }
details.help-details > .details-body > *:first-child { margin-top: 0; }
details.help-details > .details-body > *:last-child { margin-bottom: 0; }

html[data-theme-effective="light"] details.help-details {
  background: #ffffff; border-color: #e2e8f0;
}
html[data-theme-effective="light"] details.help-details > summary { color: #0f172a; }
html[data-theme-effective="light"] details.help-details[open] > summary { border-bottom-color: #e2e8f0; }

.help-section-group {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: #475569; margin: 20px 0 8px 4px; font-weight: 600;
}
.help-emoji { font-size: 18px; line-height: 1; }
.callout {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(245,158,11,0.08); border-left: 3px solid #f59e0b;
  color: #cbd5e1; font-size: 13px; margin: 10px 0;
}
.callout.info { background: rgba(59,130,246,0.08); border-left-color: #3b82f6; }
.callout.success { background: rgba(34,197,94,0.08); border-left-color: #22c55e; }
.callout strong { color: #f1f5f9; }
html[data-theme-effective="light"] .callout { color: #334155; }
html[data-theme-effective="light"] .callout strong { color: #0f172a; }

.help-h3 { font-size: 14px; color: #f1f5f9; margin: 14px 0 6px; font-weight: 600; }
html[data-theme-effective="light"] .help-h3 { color: #0f172a; }
