/* CertaCal help pages (built by docs/manuals/source/build-help.js). */
:root {
  --brand: #01274c; --brand-ink: #fff; --bg: #f5f7fa; --surface: #fff; --text: #111827;
  --muted: #5b6b7f; --border: #dbe2ea; --accent: #1f6fb2;
  --tip: #e8f1fb; --important: #fdecec; --why: #eef6ee; --note: #f3f4f6; --try: #fff6e0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --surface: #121a2b; --text: #e5e9f0; --muted: #9aa8bb; --border: #26324a; --accent: #6aa8e8;
    --tip: #12253d; --important: #3a1717; --why: #14281a; --note: #1b2333; --try: #33280e; }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; overflow-wrap: break-word; }
a { color: var(--accent); }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  background: var(--brand); color: var(--brand-ink);
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.top a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; background: #fff; padding: 2px; }
.back { margin-left: auto; font-size: 14px; opacity: 0.9; text-decoration: underline !important; white-space: nowrap; }
.toc-toggle { display: none; margin-left: auto; background: rgba(255,255,255,.12); color: inherit; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; }
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; }
.toc { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; padding: 18px 12px 30px 16px; font-size: 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 1px 0; }
.toc li.l1 { margin-top: 10px; font-weight: 650; }
.toc li.l2 { padding-left: 12px; }
.toc a { display: block; padding: 3px 6px; border-radius: 6px; color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.here { background: var(--surface); color: var(--accent); }
.searchbar { margin-bottom: 12px; }
.searchbar input { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.found { font-size: 13px; color: var(--muted); margin: 6px 2px 0; }
main { padding: 22px max(22px, env(safe-area-inset-right, 0px)) calc(60px + env(safe-area-inset-bottom, 0px)) 22px; min-width: 0; }
.intro { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.chapter { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px 14px; margin: 18px 0; }
.chapter.hidden { display: none; }
h2 { font-size: 24px; line-height: 1.25; margin: 18px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
h4 { font-size: 16px; margin: 18px 0 4px; }
p.cont { margin: 2px 0 8px; }
p.sub { padding-left: 14px; }
li { margin: 3px 0; }
li.sub { margin-left: 22px; list-style: circle; }
code { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .9em; background: var(--note); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.table { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { background: var(--brand); color: var(--brand-ink); text-align: left; font-weight: 600; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; min-width: 110px; }
tr:last-child td { border-bottom: none; }
.callout { border-radius: 8px; padding: 10px 14px; margin: 12px 0; border-left: 4px solid var(--accent); }
.callout.tip { background: var(--tip); }
.callout.important { background: var(--important); border-left-color: #b42318; }
.callout.why { background: var(--why); border-left-color: #2f6b3a; }
.callout.note { background: var(--note); border-left-color: var(--muted); }
.callout.try { background: var(--try); border-left-color: #9a6700; }
figure { margin: 14px 0; }
figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
figure.phone img { max-width: 300px; }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 5px; font-style: italic; }
mark { background: #ffe58a; color: #111; border-radius: 2px; }
footer { margin-top: 30px; font-size: 14px; color: var(--muted); }
/* the choose-your-guide page */
.cards { max-width: 980px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--accent); }
.card span { color: var(--accent); font-size: 14px; }
.card small { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc-toggle { display: inline-block; }
  .back { margin-left: 0; font-size: 13px; }
  .toc { display: none; position: fixed; inset: 56px 0 0 0; z-index: 9; max-height: none; background: var(--bg); padding: 14px 16px calc(30px + env(safe-area-inset-bottom, 0px)); }
  .toc.open { display: block; }
  main { padding: 14px 12px 50px; }
  .chapter { padding: 2px 14px 10px; }
  h2 { font-size: 21px; }
  figure.phone img { max-width: 70%; }
}
.legal { margin-top: 28px; font-size: 14px; }
