/* TaTasque — the QUALITY GUIDE sheet (guide.js). Copyright Rapid Surveys Pty Ltd. App tokens only (--bg --card --ink --muted --line --accent --accent-ink
 * --ok --err --hover). Namespaced .qg-. Phone first; the sheet never scrolls sideways. */
.qg-screen.overlay { display: block; background: var(--bg); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; z-index: 52; }
html.qg-open, html.qg-open body { overflow: hidden; }
.qg-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: var(--ink); color: #fff; }
html.th-under .qg-bar { padding-top: 8px; }
.qg-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qg-titles h2 { margin: 0; font-size: 18px; line-height: 1.25; color: #fff; text-transform: none; letter-spacing: 0; outline: none; }
.qg-sub { font-size: 12px; color: #9aa6b5; }
.qg-x { width: auto; flex: none; margin: 0; min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 20px; font-weight: 600; }
.qg-x:focus-visible { outline-color: #fff; }
.qg-wrap { max-width: 760px; margin: 0 auto; padding: 12px 16px 96px; }
.qg-body { line-height: 1.55; font-size: 16px; overflow-wrap: anywhere; }
.qg-body p { margin: 0 0 10px; }
.qg-hint { color: var(--muted); }
.qg-body .qg-q { margin: 14px 0 2px; }
.qg-body .qg-note { background: var(--hover); border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.qg-body .qg-foot { color: var(--muted); font-size: 14px; margin-top: 18px; }
.qg-toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 10px; margin: 14px 0; }
.qg-toc h2 { margin: 4px 0; font-size: 15px; text-transform: none; letter-spacing: 0; }
.qg-toc ol { margin: 0; padding-left: 1.3em; }
.qg-toc a { display: inline-block; padding: 8px 0; color: var(--accent); font-weight: 600; text-decoration: none; min-height: 24px; }
.qg-toc a:hover { text-decoration: underline; }
.qg-sec { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px 14px; margin: 0 0 16px; }
.qg-sec > h2 { display: flex; gap: 10px; align-items: baseline; font-size: 20px; margin: 14px 0 8px; text-transform: none; letter-spacing: 0; }
.qg-body h3 { display: flex; gap: 8px; align-items: baseline; font-size: 17px; margin: 22px 0 6px; text-transform: none; letter-spacing: 0; }
.qg-no { color: var(--accent); font-variant-numeric: tabular-nums; flex: none; }
.qg-steps { margin: 6px 0 12px; padding-left: 1.5em; display: grid; gap: 7px; }
.qg-body ul { margin: 6px 0 10px; padding-left: 1.2em; display: grid; gap: 4px; }
.qg-fig { margin: 12px auto 16px; max-width: 280px; text-align: center; }
.qg-fig img, .qg-body img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1520; background: var(--hover); border: 1px solid var(--line); border-radius: 12px; }
.qg-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.qg-tablewrap { overflow-x: auto; margin: 8px 0 12px; }
.qg-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.qg-body th, .qg-body td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
.qg-body th { font-size: 13px; color: var(--muted); border-top: 0; }
.qg-body [id] { scroll-margin-top: 70px; }
/* the "?" on a task's Quality tab (task.js) and the button on the Quality standards header (library.js) */
.qg-help { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; flex: none; margin: 0; width: auto; }
.qg-help b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 14px; }
.qg-help:focus-visible { outline-color: #fff; }
@media (max-width: 480px) { .qg-help span { display: none; } .qg-help { padding: 0 8px; } .qg-sec { padding-inline: 12px; } }
.qg-tabhelp { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.qg-tabhelp a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.qg-tabhelp a b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 14px; }
.qg-tabhelp a:hover span { text-decoration: underline; }
