/* World History chapter index follows the compact numbered rows used by
   the Uttarakhand Gorkha reader, while retaining bookmark/filter controls. */
body[data-world-history-article] #sidebar .toc-list{gap:9px}
body[data-world-history-article] #sidebar .toc-link{
  display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 7px;
  border:0;border-radius:8px;color:var(--ink-soft);font-size:13px;
  font-weight:600;line-height:1.35;overflow:hidden;
}
body[data-world-history-article] #sidebar .toc-link:hover,
body[data-world-history-article] #sidebar .toc-link:focus-visible,
body[data-world-history-article] #sidebar .toc-link.active{background:var(--card);color:var(--ink)}
body[data-world-history-article] #sidebar .toc-link::before{display:none}
body[data-world-history-article] #sidebar .toc-link .num{
  display:inline-flex;flex:0 0 34px;width:34px;height:34px;
  align-items:center;justify-content:center;border:1px solid var(--line);
  border-radius:9px;color:var(--ink-soft);
  font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;
  font-variant-numeric:tabular-nums;
}
body[data-world-history-article] #sidebar .toc-link .title{min-width:0;flex:1}
body[data-world-history-article] #sidebar .toc-link.bookmarked{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 48%,var(--line))}
body[data-world-history-article] #sidebar .toc-link.done::after{
  content:'✓';display:inline-flex;flex:0 0 20px;width:20px;height:20px;
  align-items:center;justify-content:center;margin:0 3px 0 auto;
  border-radius:50%;background:var(--accent);color:var(--card);
  font-family:Arial,sans-serif;font-size:12px;line-height:1;font-weight:800;
}
@media(max-width:560px){
  body[data-world-history-article] #sidebar .toc-list{gap:7px}
  body[data-world-history-article] #sidebar .toc-link .num{flex-basis:32px;width:32px;height:32px;font-size:11px}
}
