/* Ordryx Help (ordryx.com/help): pages built by tools/build_help.py from
   help/*.md. The tokens, header, footer and .shot are site.css's; this is the
   reading layout: the list of pages on the left, the page beside it. */

.skip { position: absolute; left: 16px; top: -64px; padding: 10px 14px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 8px; z-index: 2; }
.skip:focus { top: 12px; }

.help { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 96px; }
@media (max-width: 900px) { .help { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; } }

/* the side: search, then every page by section */
.side { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; }
@media (max-width: 900px) { .side { position: static; max-height: none; overflow: visible; } }
.find input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field); color: var(--ink); font: 1rem/1.2 var(--sans); }
.find input::placeholder { color: var(--placeholder); }
.toc { margin-top: 20px; }
.toc summary { display: none; }
@media (max-width: 900px) {
  .toc { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0 14px; }
  .toc summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 600; color: var(--ink); }
  .toc[open] summary { border-bottom: 1px solid var(--line); }
  .toc nav { padding-bottom: 12px; }
}
.toc .label-sm { margin: 20px 0 6px; }
.toc .label-sm:first-child { margin-top: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 36px; padding: 4px 10px; border-radius: 6px; color: var(--fg-3); text-decoration: none; font-size: 0.9375rem; line-height: 1.3; }
@media (max-width: 900px) { .toc a { min-height: 44px; } }
.toc a:hover { color: var(--ink); background: var(--raised); }
.toc a[aria-current="page"] { color: var(--ink); background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }

/* the page */
.article { min-width: 0; max-width: 48rem; }
.page-head { display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.on-page { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.on-page ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.on-page a { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.9375rem; }
@media (max-width: 900px) { .on-page a { min-height: 44px; } }

.prose { margin-top: 28px; }
.prose > * + * { margin-top: 16px; }
.prose p, .prose li { color: var(--fg-3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(1.7rem, 3.4vw, 2.1rem); line-height: 1.05; scroll-margin-top: 16px; }
.prose h3 { margin-top: 32px; font-family: var(--sans); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; scroll-margin-top: 16px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose ol > li::marker { color: var(--accent-fg); font-weight: 600; }
.prose code { font: 0.875em/1 var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); }
.prose .shot { margin-top: 24px; margin-bottom: 8px; }
.prose .shot figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.prose .phone-shot { max-width: 320px; }

.callout { padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; background: var(--panel); }
.callout.tip { border-left-color: var(--ok); }
.callout.careful { border-left-color: var(--bad); }
.callout.coming-soon { border-left-color: var(--accent); background: var(--accent-bg); }

.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { background: var(--panel); color: var(--ink); font-weight: 600; }
.table td { color: var(--fg-3); }
.table tr:last-child td { border-bottom: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--accent); color: var(--ink); }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* search */
.results { list-style: none; padding: 0; }
.results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 600; font-size: 1.0625rem; }
.results .where { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--faint); }
.results p { margin-top: 6px; font-size: 0.9375rem; }
.results mark { background: var(--accent-bg); color: var(--ink); border-radius: 3px; padding: 0 2px; }
