/* Styles for the help viewer (index.html in each help folder) and the landing page. */
:root { --panel: #f5f6f8; --line: #d9dce1; --text: #1f2328; --muted: #5d6470; --accent: #1f5fa8; --accent-bg: #e3edf9; --hover: #eceef2; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.4 "Segoe UI", system-ui, sans-serif; color: var(--text); background: #fff; display: grid; grid-template-rows: auto 1fr; }
header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
header h1 { font-size: 16px; margin: 0; font-weight: 600; flex: 1; }
header a { color: var(--accent); text-decoration: none; }
#menuBtn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
main { display: grid; grid-template-columns: 320px 1fr; min-height: 0; }
aside { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 0; cursor: pointer; font: inherit; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.pane { flex: 1; overflow: auto; padding: 8px 0; display: none; }
.pane.active { display: block; }
.pane input { width: calc(100% - 24px); margin: 4px 12px 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
ul.tree, ul.tree ul { list-style: none; margin: 0; padding: 0; }
ul.tree ul { padding-left: 14px; }
.row { display: flex; padding: 3px 12px 3px 6px; cursor: pointer; border-radius: 3px; margin: 0 6px; }
.row:hover, .kw:hover, .result:hover { background: var(--hover); }
.row.current { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.twisty { width: 16px; flex: none; color: var(--muted); user-select: none; }
li.closed > ul { display: none; }
.kw { padding: 3px 18px; cursor: pointer; }
.kw .sub { display: block; padding-left: 14px; color: var(--accent); }
.result { padding: 6px 18px; cursor: pointer; border-bottom: 1px solid var(--line); }
.result b { display: block; color: var(--accent); font-weight: 600; }
.result span { color: var(--muted); font-size: 12px; }
.note { padding: 8px 18px; color: var(--muted); }
iframe { border: 0; width: 100%; height: 100%; background: #fff; }
@media (max-width: 760px) {
  #menuBtn { display: inline-block; }
  main { grid-template-columns: 1fr; }
  aside { position: fixed; inset: 49px 0 0 0; z-index: 2; display: none; }
  body.nav-open aside { display: flex; }
}

/* Landing page */
body.landing { display: block; font-size: 15px; line-height: 1.5; padding: 32px 16px; }
.landing main { display: block; max-width: 640px; margin: 0 auto; }
.landing h1 { font-size: 22px; margin: 0 0 4px; }
.landing p { color: var(--muted); margin: 0 0 24px; }
.landing a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; color: var(--accent); text-decoration: none; font-weight: 600; }
.landing a:hover { background: var(--accent-bg); }
.landing a span { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
