/* Shared design system for long-form reference pages (help.html,
   legal.html) — deliberately distinct from the site's dark cyan
   marketing theme, since dense reference content reads better in this
   denser, severity-coded, auto light/dark layout than it would forced
   into the hero/card marketing aesthetic. Everything is scoped under
   .help-page so nothing here can collide with (or be overridden by)
   css/style.css's global rules and :root variables — that file already
   defines .badge and --bg/--text/--border/etc. globally. */

.help-page{
  --bg:#f5f3ee; --surface:#ffffff; --surface-2:#edeae2; --border:#ddd8cc;
  --text:#181c22; --text-dim:#585f6b; --text-faint:#8a8f99;
  --accent:#c8791f; --accent-ink:#ffffff;
  --good:#1c8c5a; --good-bg:#e6f4ec;
  --warn:#b5790a; --warn-bg:#fbf1de;
  --danger:#c23c3c; --danger-bg:#fbeaea;
  --mono-bg:#111418; --mono-text:#d7dde6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  .help-page:not([data-theme="light"]){
    --bg:#0b0e13; --surface:#12161d; --surface-2:#181d26; --border:#252c38;
    --text:#e7ebf2; --text-dim:#a3aebd; --text-faint:#6d7683;
    --accent:#e8a34c; --accent-ink:#14181f;
    --good:#4bcf8f; --good-bg:#12271f;
    --warn:#e8b34c; --warn-bg:#2a2313;
    --danger:#f0716c; --danger-bg:#2a1717;
    --mono-bg:#080a0d; --mono-text:#c3ccd8;
    color-scheme: dark;
  }
}
.help-page[data-theme="dark"]{
  --bg:#0b0e13; --surface:#12161d; --surface-2:#181d26; --border:#252c38;
  --text:#e7ebf2; --text-dim:#a3aebd; --text-faint:#6d7683;
  --accent:#e8a34c; --accent-ink:#14181f;
  --good:#4bcf8f; --good-bg:#12271f;
  --warn:#e8b34c; --warn-bg:#2a2313;
  --danger:#f0716c; --danger-bg:#2a1717;
  --mono-bg:#080a0d; --mono-text:#c3ccd8;
  color-scheme: dark;
}

.help-page{
  background:var(--bg); color:var(--text);
  font-family:'IBM Plex Sans',system-ui,sans-serif;
  padding-inline:20px; padding-block:36px 64px;
  max-width:900px; margin:0 auto;
  font-size:14px;
}
.help-page h1, .help-page h2, .help-page h3{font-family:'Sora',system-ui,sans-serif; text-wrap:balance; margin:0;}
.help-page code, .help-page .mono{font-family:'IBM Plex Mono',ui-monospace,monospace;}

.help-page header{margin-bottom:8px;}
.help-page .eyebrow{
  font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent); margin-bottom:10px;
}
.help-page h1{font-size:clamp(28px,5vw,40px); font-weight:700; letter-spacing:-.01em;}
.help-page .subtitle{color:var(--text-dim); font-size:16px; line-height:1.55; margin-top:12px; max-width:60ch;}

.help-page nav.jumpnav{
  display:flex; gap:8px; flex-wrap:wrap; margin:28px 0 40px 0;
  padding:14px; background:var(--surface); border:1px solid var(--border); border-radius:10px;
}
.help-page nav.jumpnav a{
  font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--text-dim);
  text-decoration:none; padding:6px 10px; border-radius:6px; border:1px solid var(--border);
  background:var(--surface-2); white-space:nowrap;
}
.help-page nav.jumpnav a:hover{color:var(--text); border-color:var(--accent);}

.help-page section.group{margin-top:52px; scroll-margin-top:20px;}
.help-page .group-head{display:flex; align-items:baseline; gap:12px; margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid var(--border);}
.help-page .group-num{font-family:'IBM Plex Mono',monospace; color:var(--text-faint); font-size:13px;}
.help-page .group-head h2{font-size:20px;}
.help-page .group-desc{color:var(--text-dim); font-size:14px; margin-top:6px; max-width:62ch; line-height:1.5;}

.help-page .ticket{
  background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--border);
  border-radius:8px; padding:16px 18px; margin-bottom:14px;
}
.help-page .ticket.sev-info{border-left-color:var(--text-faint);}
.help-page .ticket.sev-warn{border-left-color:var(--warn);}
.help-page .ticket.sev-danger{border-left-color:var(--danger);}
.help-page .ticket.sev-good{border-left-color:var(--good);}

.help-page .symptom-row{display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap;}
.help-page .badge{
  font-family:'IBM Plex Mono',monospace; font-size:10.5px; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; padding:3px 8px; border-radius:100px; flex:none; margin-top:3px;
}
.help-page .badge.info{background:var(--surface-2); color:var(--text-dim);}
.help-page .badge.warn{background:var(--warn-bg); color:var(--warn);}
.help-page .badge.danger{background:var(--danger-bg); color:var(--danger);}
.help-page .badge.good{background:var(--good-bg); color:var(--good);}

.help-page .symptom{
  font-family:'IBM Plex Mono',monospace; font-size:13.5px;
  background:var(--mono-bg); color:var(--mono-text); padding:8px 10px; border-radius:6px;
  display:inline-block; line-height:1.5;
}
.help-page .why{color:var(--text-dim); font-size:14.5px; line-height:1.6; margin-top:12px;}
.help-page .why b{color:var(--text); font-weight:600;}

.help-page .tryit{margin-top:12px; padding-top:12px; border-top:1px dashed var(--border);}
.help-page .tryit-label{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); margin-bottom:8px; display:block;}
.help-page .tryit ol{margin:0; padding-left:20px; color:var(--text); font-size:14.5px; line-height:1.65;}
.help-page .tryit li{margin-bottom:4px;}
.help-page .tryit li:last-child{margin-bottom:0;}
.help-page .tryit p{margin:0; color:var(--text); font-size:14.5px; line-height:1.65;}

.help-page .stillstuck{
  margin-top:56px; padding:22px; border-radius:10px; background:var(--surface-2);
  border:1px solid var(--border); text-align:center;
}
.help-page .stillstuck h3{font-size:17px; margin-bottom:8px;}
.help-page .stillstuck p{color:var(--text-dim); font-size:14px; margin:0; line-height:1.6;}

/* ---- Base prose (added for legal.html — help.html's own content never
   needs plain paragraphs/lists outside a .ticket) ---- */
.help-page p{color:var(--text-dim); font-size:14.5px; line-height:1.65; margin:0 0 14px 0;}
.help-page p:last-child{margin-bottom:0;}
.help-page ul{margin:0 0 14px 0; padding-left:20px; color:var(--text-dim); font-size:14.5px; line-height:1.65;}
.help-page ul:last-child{margin-bottom:0;}
.help-page li{margin-bottom:6px;}
.help-page li:last-child{margin-bottom:0;}
.help-page b{color:var(--text); font-weight:600;}
.help-page i{font-style:italic;}
.help-page a{color:var(--accent);}

/* A neutral (non-severity) card for grouping plain reference content,
   e.g. one numbered clause of a legal document. */
.help-page .doc-section{
  background:var(--surface); border:1px solid var(--border); border-radius:8px;
  padding:20px 22px; margin-bottom:16px;
}
.help-page .doc-section h3{font-size:15.5px; margin-bottom:12px; color:var(--text);}

@media (max-width:480px){
  .help-page{padding-inline:16px;}
  .help-page nav.jumpnav{gap:6px;}
}
