/* The one look for every PostHog help article. The article pages hold only text and images;
   the frame (header, sidebar, footer, colours, fonts) comes from /posthog/frame.css.
   Change the look here and all articles change together.
   Box kinds: callouts (tip, note, warning, version, ...), plain panels (the default),
   side-by-side groups (before/after, compare, metrics, setup options), code, and the "Watch it" box. */

.help-article{max-width:760px;margin:0 auto;font-size:16px;line-height:1.6;overflow-wrap:break-word}
.help-back{display:none;margin:0 0 14px;font-size:14px;font-weight:600}
.help-back a{text-decoration:none}
.help-eyebrow{max-width:760px;margin:0 auto 6px}
.help-article h1{font-size:34px;line-height:1.15;margin:0 0 10px}
.help-why{margin:0 0 32px;font-size:18px;color:var(--text-2)}

.help-article h2,.help-article h3{scroll-margin-top:60px;color:var(--text);letter-spacing:-.01em}
.help-article h2{margin:40px 0 14px;padding-left:12px;border-left:4px solid var(--red);font-size:23px;line-height:1.25;font-weight:700}
.help-article h3{margin:26px 0 8px;font-size:18px;line-height:1.3;font-weight:600}
.help-article p{margin:0 0 14px}
.help-article ul{margin:0 0 14px;padding-left:22px}
.help-article li{margin:4px 0}
.help-article li > p{margin:0 0 6px}
.help-article strong{font-weight:600}
.help-article hr{margin:32px 0;border:0;border-top:1px solid var(--border-soft)}
.help-article a{color:var(--text);text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:1.5px;text-underline-offset:2px;overflow-wrap:anywhere}
.help-article a:hover{text-decoration-color:var(--text)}
.help-article code{padding:.1em .35em;border:1px solid var(--border-soft);border-radius:4px;background:var(--bar);font-family:var(--mono);font-size:.88em;overflow-wrap:anywhere}

/* numbered steps */
ol.help-steps{list-style:none;counter-reset:step;margin:0 0 28px;padding:0}
ol.help-steps > li{counter-increment:step;position:relative;margin:0 0 24px;padding-left:44px}
ol.help-steps > li::before{content:counter(step);position:absolute;left:0;top:-2px;width:30px;height:30px;border:1.5px solid var(--btn-border);border-radius:50%;
  background:var(--red);box-shadow:0 2px 0 #B62C00;color:#000;font-size:15px;font-weight:700;line-height:27px;text-align:center}

/* images */
figure.help-shot{margin:12px 0 0;border-radius:6px;overflow:hidden}
figure.help-shot img{display:block;width:100%;height:auto}
.help-shot-missing{display:flex;align-items:center;justify-content:center;min-height:160px;border:1px dashed var(--border);border-radius:6px;color:var(--text-2);font-size:14px}

/* ---- plain panel: every box unless a rule below says otherwise ---- */
.help-box{margin:18px 0;padding:14px 16px;border:1px solid var(--border-soft);border-radius:6px;background:var(--side)}
.help-box > :first-child{margin-top:0}
.help-box > :last-child{margin-bottom:0}
.help-box h3{margin:0 0 8px;font-size:16px}
.help-box figure.help-shot{margin:0 0 12px}
.help-box ol.help-steps{margin-bottom:0}
.help-box ol.help-steps > li:last-child{margin-bottom:0}
/* a box that opens with a short plain line uses it as its title */
.help-box-billed > p:first-child,.help-box-tile-effects > p:first-child,.help-box-before > p:first-child,.help-box-after > p:first-child{font-weight:700}
.help-box-question{font-size:17px;font-weight:600}
/* lists whose items start with a label */
.help-box-tile-effects ul{padding:0;list-style:none}
.help-box-tile-effects li em{display:block;font-style:normal;font-weight:600}
.help-box-symptoms li strong{display:block}
.help-box-symptoms li em{padding:0 6px;border:1px solid var(--border-soft);border-radius:4px;background:var(--bg);font-size:13px;font-style:normal;font-weight:600;white-space:nowrap}
.help-box-checklist ul{list-style:"\2713\00a0\00a0"}

/* ---- callouts: a label on top and a coloured edge, so the kind never depends on colour alone ---- */
.help-box-tip,.help-box-note,.help-box-map,.help-box-version,.help-box-version-note,.help-box-legal-note{border-left:4px solid var(--blue);background:var(--bg)}
.help-box-warning,.help-box-limit-hit{border-left:4px solid var(--red);background:#FFF9F1}
.help-box-version,.help-box-version-note,.help-box-legal-note{border-left-color:var(--muted)}
.help-box-tip::before,.help-box-note::before,.help-box-map::before,.help-box-version::before,.help-box-version-note::before,.help-box-legal-note::before,
.help-box-warning::before,.help-box-limit-hit::before{display:block;margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-2)}
.help-box-tip::before{content:"Tip"}
.help-box-note::before,.help-box-legal-note::before{content:"Note"}
.help-box-map::before{content:"Map key"}
.help-box-version::before,.help-box-version-note::before{content:"Version note"}
.help-box-warning::before{content:"Warning"}
.help-box-limit-hit::before{content:"Important"}

/* ---- side-by-side groups: no panel of their own, the boxes inside sit next to each other ---- */
.help-box-before-after,.help-box-compare,.help-box-pick-setup,.help-box-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:12px;padding:0;border:0;background:none}
.help-box-before-after > .help-box,.help-box-compare > .help-box,.help-box-pick-setup > .help-box,.help-box-metrics > .help-box{margin:0;background:var(--bg)}
.help-box-after{border-top:3px solid var(--red)}
.help-box-before{border-top:3px solid var(--border)}

/* ---- code ---- */
.help-box-code{border-color:var(--ink);background:var(--ink);color:var(--bg);font-family:var(--mono);font-size:14px;line-height:1.5;overflow-x:auto}
.help-box-code p{margin:0}
.help-box-code code{padding:0;border:0;background:none;color:inherit;font-size:1em;white-space:pre-wrap}

/* ---- "Watch it": the video that goes with the article ---- */
.help-box-watch,.help-box-watch-it{border-left:4px solid var(--red);background:var(--bg)}
.help-box-watch ul,.help-box-watch-it ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:2px 16px;margin:0;padding:0;list-style:none;font-size:14px;color:var(--text-2)}
.help-box-watch li,.help-box-watch-it li{margin:0}
.help-box-watch li > p,.help-box-watch-it li > p{margin:0}

/* the help index */
.help-index-head{margin-bottom:24px}

/* phones: the sidebar is gone, so give a way back */
@media (max-width:900px){
  .help-back{display:block}
}
@media (max-width:640px){
  .help-article h1{font-size:28px}
  .help-why{font-size:17px}
  ol.help-steps > li{padding-left:40px}
}
