/* Handbook chapter navigation and dashboard links follow the shared LSC theme. */
:root:root .dashboard-heading-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ui-text);
  text-decoration: none;
  border-radius: 4px;
}
:root:root .dashboard-heading-link::after { content: "→"; color: var(--ui-muted); }
:root:root .dashboard-heading-link:hover { text-decoration: underline; text-underline-offset: .2em; }
:root:root :is(.dashboard-heading-link, .handbook-index a):focus-visible {
  outline: 2px solid var(--ui-text);
  outline-offset: 5px;
}
:root:root .handbook-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
:root:root .handbook-index { position: sticky; top: 1rem; display: grid; gap: .3rem; padding: .8rem; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); }
:root:root .handbook-index:empty { display: none; }
:root:root .handbook-index a { padding: .5rem .65rem; color: var(--ui-text); text-decoration: none; border-radius: 6px; font-size: .88rem; overflow-wrap: anywhere; }
:root:root .handbook-index a:hover { background: var(--ui-surface-soft); text-decoration: underline; text-underline-offset: .2em; }
:root:root .handbook-content { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
:root:root .handbook-card { padding: 1.4rem 1.6rem; border: 1px solid var(--ui-border); border-left: 4px solid var(--ui-text); border-radius: 12px; background: var(--ui-surface); color: var(--ui-text); box-shadow: none; scroll-margin-top: 1.5rem; }
:root:root .handbook-card h2 { margin: 0 0 .6rem; color: var(--ui-text); font-size: 1.2rem; line-height: 1.35; }
:root:root .handbook-intro { margin: 0 0 1.1rem; color: var(--ui-muted); font-weight: 500; line-height: 1.6; max-width: 80ch; }
:root:root .handbook-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 2rem; padding: 1.1rem 0 0 1.15rem; border-top: 1px solid var(--ui-border); color: var(--ui-text); line-height: 1.6; }
:root:root .handbook-card li + li { margin: 0; }
:root:root .handbook-card li { padding-left: .2rem; overflow-wrap: anywhere; }
:root:root .handbook-card li::marker { color: var(--ui-muted); }
@media (max-width: 1100px) {
  :root:root .handbook-layout { grid-template-columns: minmax(0, 1fr); }
  :root:root .handbook-index { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  :root:root .handbook-card { padding: 1rem; }
  :root:root .handbook-card ul { grid-template-columns: minmax(0, 1fr); }
}
