/* Copyright (c) 2026 doInit Tools. All rights reserved. See LICENSE.txt. */
/* Help page – the top bar, banner, how-to column and footer come from ../assets/site.css */
:root { --navy: #1e1b4b; --brand-soft: #eef2ff; --border: var(--line); --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace; }
code, kbd { font: 13px var(--mono); }
code { background: var(--soft); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; }
kbd { border: 1px solid #c7c9f5; border-bottom-width: 2px; background: #fff; color: var(--brand); padding: 0 6px; border-radius: 5px; }
body { font-size: 15.5px; line-height: 1.65; }

.hTitle { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 14px; }

/* Search, above the help */
.hSearchRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.hSearch { flex: 1 1 360px; max-width: 640px; height: 42px; padding: 0 18px; border: 1px solid var(--border); border-radius: 21px; background: #fff; color: var(--text); font: inherit; font-size: 15px; box-shadow: 0 2px 8px rgba(15,13,46,.05); }
.hSearch:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hVer { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Contents | help text */
.hLayout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.hToc { position: sticky; top: 72px; max-height: calc(100vh - 84px); overflow: auto; display: flex; flex-direction: column; font-size: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 10px 8px; }
.hToc a { padding: 4px 10px; border-radius: 7px; color: var(--text); }
.hToc a:hover { background: var(--soft); text-decoration: none; }
.hToc a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.hToc a[hidden] { display: none; }
.hTocGroup { margin: 12px 0 2px; padding: 0 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.hTocGroup[hidden] { display: none; }

.hMain { min-width: 0; }
.hMain section { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; margin-bottom: 16px; }
.hMain section[hidden] { display: none; }
.hMain h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
.hMain h3 { margin: 18px 0 4px; font-size: 16.5px; color: var(--ink); }
.hMain ul, .hMain ol { padding-left: 22px; }
.hMain li { margin: 5px 0; }
.hMain li::marker { color: var(--brand); font-weight: 700; }
.hMain b { color: var(--ink); }
.hAsk { margin: 0 0 12px; color: var(--muted); font-style: italic; }
.hNote { color: var(--muted); font-size: 14px; background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.hNoMatch { color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; }
.hTable { border-collapse: collapse; }
.hTable td { padding: 7px 16px 7px 0; border-bottom: 1px solid var(--soft); vertical-align: top; }
.hMain dt { font-weight: 700; color: var(--ink); margin-top: 10px; }
.hMain dd { margin: 2px 0 0 0; color: var(--text); }
mark { background: #ffe58f; padding: 0 1px; border-radius: 3px; }

/* Under each tool's question: its how-to guides */
.hGuides { margin: -4px 0 14px; padding: 9px 14px; border-left: 4px solid var(--brand); background: #f5f7ff; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.7; }
.hGuides b { color: var(--navy); margin-right: 2px; }

@media (max-width: 820px) {
  .hLayout { grid-template-columns: 1fr; }
  .hToc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .hTocGroup { width: 100%; }
  .hMain section { padding: 18px; }
}
@media print { .top, .hero, .hSearchRow, .hToc, .howto, footer { display: none; } .pageGrid, .hLayout { display: block; } .hMain section { break-inside: avoid; border: 0; } }
