/* Help centre (js/help.js): section list on the left, one slide on the right. */
dialog.help-center { width: min(1080px, 96vw); height: min(740px, 92vh); max-height: 92vh; padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--panel); color: var(--text); }
dialog.help-center[open] { display: flex; flex-direction: column; }
dialog.help-center::backdrop { background: var(--backdrop); }
.hc-head { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s4); border-bottom: 1px solid var(--border); flex: none; }
.hc-head b { font-size: var(--fs-lg); }
.hc-head .hc-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.hc-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); flex: 1; min-height: 0; }
.hc-nav { display: flex; flex-direction: column; gap: 2px; padding: var(--s2); border-right: 1px solid var(--border); overflow-y: auto; background: var(--bg); }
.hc-nav button { display: flex; align-items: center; gap: var(--s2); min-height: var(--h-md); padding: 4px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.hc-nav button:hover { background: var(--panel2); color: var(--text); }
.hc-nav button.active { background: var(--accent-soft); color: var(--text); }
.hc-nav button span { flex: 1; }
.hc-nav button em { font-style: normal; font-size: var(--fs-2xs); color: var(--soft); font-variant-numeric: tabular-nums; }
.hc-nav .icon { width: 16px; height: 16px; flex: none; }
.hc-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hc-main { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5); outline: none; }
.hc-slide { max-width: 820px; margin: 0 auto; }
.hc-shot { margin: 0 0 var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--chart-bg); }
.hc-shot img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; object-position: center top; }
.hc-slide h3 { margin: 0 0 var(--s2); font-size: var(--fs-xl); line-height: 1.25; }
.hc-slide p { margin: 0 0 var(--s2); line-height: 1.55; color: var(--text); font-size: var(--fs-md); }
.hc-note { color: var(--muted) !important; font-size: var(--fs-sm) !important; }
.hc-ex { display: flex; gap: var(--s3); align-items: baseline; margin-top: var(--s3); padding: 10px var(--s3); border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--accent-soft); font-size: var(--fs-sm); line-height: 1.5; }
.hc-ex b { flex: none; color: var(--accent-hover); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .06em; }
.hc-table { width: 100%; border-collapse: collapse; margin-top: var(--s3); font-size: var(--fs-sm); }
.hc-table td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hc-table .hc-k { width: 190px; white-space: nowrap; }
.hc-table .hc-d { display: block; color: var(--text); }
.hc-table .hc-x { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); }
.hc-table .hc-g { width: 170px; color: var(--muted); font-size: var(--fs-xs); }
.hc-compact td { padding: 5px 8px; }
.hc-chord { white-space: nowrap; }
.hc-chord kbd { margin: 0 1px; }
.hc-or { margin: 0 6px; color: var(--soft); font-size: var(--fs-2xs); }
.hc-foot { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s4); border-top: 1px solid var(--border); flex: none; }
.hc-foot .btn { display: inline-flex; align-items: center; gap: 4px; min-width: 92px; justify-content: center; }
.hc-foot .btn:disabled { opacity: .4; cursor: default; }
.hc-dots { flex: 1; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.hc-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hc-dots button::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--border-strong); transition: background var(--dur-fast), transform var(--dur-fast); }
.hc-dots button.on::after { background: var(--accent); transform: scale(1.35); }
.hc-dots button:hover::after { background: var(--muted); }
.hc-dots button:focus-visible, .hc-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 639px) {
  dialog.help-center { width: 100% !important; max-width: 100% !important; height: calc(100dvh - var(--m-nav, 56px) - 12px) !important; max-height: calc(100dvh - var(--m-nav, 56px) - 12px) !important; }
  .hc-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .hc-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--border); padding: 6px; }
  .hc-nav button { flex: none; white-space: nowrap; }
  .hc-nav button em { display: none; }
  .hc-main { padding: var(--s3) var(--s4); }
  .hc-shot img { max-height: 220px; }
  .hc-table .hc-k { width: auto; white-space: normal; }
  .hc-table .hc-g { display: none; }
  .hc-foot .btn { min-width: 0; }
}
