/* The help centre (keepcount.ca/help): the guides' own stylesheet (/guides/guide.css: fonts, colours, sizes, notes) plus the few
   things the help pages add. Written by scripts/guides/help-site.mjs to public/help/help.css. Light only, like the guides. */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand-ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 10; }
.skip:focus { left: 0; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 16px 0 6px; }
.top .brand { display: flex; align-items: center; gap: 12px; margin: 0; color: inherit; text-decoration: none; min-height: 44px; }
.top-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--t-small); font-weight: 600; }
.top-links a { display: inline-flex; align-items: center; min-height: 44px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 4px 0 0; padding: 0; font-size: var(--t-small); color: var(--muted); }
.crumbs li { margin: 0; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

main { padding: 8px 0 28px; }
.front h1, .head h1, .article h1 { max-width: 24ch; margin: 6px 0 0; }
.front .lede, .head .lede { max-width: 64ch; }
.front h2 { margin: 30px 0 12px; font-size: var(--t-h3); }
.plain { list-style: none; padding: 0; }
.plain a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tiles li { margin: 0; }
.tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; }
.tile b { font-family: var(--font-display); font-size: 1.25rem; color: var(--brand-ink); }
.tile span { font-size: var(--t-small); color: var(--ink); }
.tile small { font-size: var(--t-fine); color: var(--muted); margin-top: auto; }
.tile:hover { border-color: var(--brand); }

.head { padding: 6px 0 4px; }
.head .meta { font-size: var(--t-small); color: var(--muted); margin: 12px 0 0; }
.head .print-link { font-size: var(--t-small); margin: 8px 0 0; }
.head .print-link a { display: inline-flex; align-items: center; min-height: 44px; }
.part { margin: 26px 0 0; }
.part h2 { font-size: var(--t-h2); margin-bottom: 8px; }
.toc { list-style: decimal; padding-left: 34px; margin: 10px 0 0; max-width: 78ch; }
.toc li { margin: 0 0 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.toc li::marker { color: var(--muted); font-weight: 600; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-line); }
.toc span { display: block; font-size: var(--t-small); color: var(--muted); margin-top: -6px; }

.article { max-width: 880px; }
.article .kicker { margin-top: 10px; }
.article .line { font-size: var(--t-lede); line-height: 1.35; margin: 12px 0 14px; max-width: 60ch; }
.article .catch { font-size: var(--t-body); line-height: 1.4; margin: 0 0 16px; padding: 10px 14px; background: var(--accent-soft); border-radius: 10px; color: #4e3a0c; max-width: 70ch; }
.article .catch b { color: var(--accent-ink); }
.shot { margin: 0 0 16px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.shot a { display: block; border-radius: 12px; }
.article .more { padding: 6px 0 0; }
.article .more h2 { font-size: var(--t-h3); margin: 8px 0 10px; }
.article .more p, .article .more li { max-width: 70ch; }
.article .watch { margin: 0 0 16px; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 24px 0 18px; }
.pager a { display: flex; flex-direction: column; gap: 2px; min-width: 200px; max-width: 100%; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--brand-ink); font-weight: 600; }
.pager a[rel="next"] { text-align: right; margin-left: auto; }
.pager small { font-size: var(--t-fine); color: var(--muted); font-weight: 400; }
.fine { font-size: var(--t-fine); color: var(--muted); max-width: 90ch; }

@media (max-width: 640px) {
  .top-links { gap: 0 14px; }
  .pager a { flex: 1 1 100%; }
  .pager a[rel="next"] { text-align: left; }
  .toc { padding-left: 28px; }
}

/* search */
.search { margin: 14px 0 6px; max-width: 760px; }
.search[hidden] { display: none; }
.search label { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: 4px; }
.search .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search input[type="search"] { flex: 1 1 260px; min-height: 48px; padding: 8px 14px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; }
.search select { min-height: 48px; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; }
.search .btn { min-height: 48px; padding: 8px 20px; font: inherit; font-weight: 600; color: #fff; background: var(--brand-ink); border: 0; border-radius: 12px; cursor: pointer; }
.search input:focus-visible, .search select:focus-visible, .search .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.search:not(.big) { margin: 0 0 8px; }
.search:not(.big) label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search:not(.big) input[type="search"] { min-height: 44px; }
.search:not(.big) .btn { min-height: 44px; }
.results { list-style: none; margin: 14px 0 0; padding: 0; max-width: 78ch; }
.results li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.results a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-line); }
.results span { display: block; font-size: var(--t-small); color: var(--ink); margin-top: -4px; }
.results small { display: block; font-size: var(--t-fine); color: var(--muted); margin-top: 2px; }
#search-none { max-width: 70ch; }

/* articles */
.article .body { max-width: 70ch; margin-top: 8px; }
.article .body h2 { font-size: var(--t-h3); margin: 22px 0 8px; }
.article .body ul, .article .body ol { padding-left: 24px; margin: 0 0 12px; }
.article .body li { margin-bottom: 6px; }
.related { margin: 22px 0 8px; max-width: 70ch; }
.related h2 { font-size: var(--t-h3); margin-bottom: 6px; }
.topics li { margin-bottom: 6px; }
.topics a { font-weight: 600; }
