/* Marshall help pages. One stylesheet, shared by every page under /help/.
   Served under the application's standard CSP (style-src 'self'), so nothing
   here may move inline. Kept deliberately plain: these pages are read when
   something is not working, including on a phone in a court corridor. */

:root {
  --help-ink: #1d2129;
  --help-muted: #5a6072;
  --help-accent: #52207e;
  --help-rule: #d9dce3;
  --help-surface: #ffffff;
  --help-ground: #f5f4f7;
  --help-note: #f3eef9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --help-ink: #e8e6ee;
    --help-muted: #a9adbc;
    --help-accent: #c9a9e8;
    --help-rule: #3a3d49;
    --help-surface: #22242c;
    --help-ground: #17181d;
    --help-note: #2b2534;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--help-ink);
  background: var(--help-ground);
}

.helpHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.helpWordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--help-accent);
}

.helpHeaderTag {
  font-size: 1rem;
  color: var(--help-muted);
}

.helpHeaderNav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.helpHeaderNav a,
.helpFooter a {
  color: var(--help-accent);
  text-decoration: none;
}

.helpHeaderNav a:hover,
.helpFooter a:hover,
main a:hover {
  text-decoration: underline;
}

main {
  max-width: 46rem;
  margin: 1rem auto 0;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--help-surface);
  border: 1px solid var(--help-rule);
  border-radius: 10px;
}

main a {
  color: var(--help-accent);
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--help-rule);
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.35rem;
}

p,
ul,
ol {
  margin: 0.5rem 0;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.3rem 0;
}

dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

dd {
  margin: 0.15rem 0 0 0;
  color: var(--help-muted);
}

dl {
  margin: 0.5rem 0 0.5rem 0;
}

.helpLead {
  color: var(--help-muted);
  font-size: 1.05rem;
}

.helpNotice {
  background: var(--help-note);
  border-left: 3px solid var(--help-accent);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.helpTopicList {
  list-style: none;
  padding: 0;
}

.helpTopicList li {
  margin: 0.75rem 0;
}

.helpTopicList a {
  font-weight: 600;
}

.helpTopicList span {
  display: block;
  color: var(--help-muted);
  font-size: 0.95rem;
}

/* Data-governance tables (subprocessors, retention schedule). Wide content
   scrolls inside its own wrapper so the page never scrolls sideways. */
.helpTableWrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.helpTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.helpTable th,
.helpTable td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--help-rule);
}

.helpTable th {
  background: var(--help-note);
}

.helpFooter {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  color: var(--help-muted);
  font-size: 0.9rem;
}
