/**
 * Help centre styles.
 *
 * Scoped to the help surface only: the sidebar (`.help-sidebar`) and the article
 * body (`.help-doc`). Everything here is expressed in the site palette from
 * style.css — Josefin Sans, ink #3b4045, accent #ea553b — so help documents read
 * as part of the site rather than as pasted-in artwork.
 *
 * The custom properties declared on `.help-doc` are deliberately short-named
 * (--paper, --panel, --accent …) because inline SVG figures inside a document
 * reference them directly; keeping the names stable lets a diagram be dropped in
 * without rewriting its fills.
 */

/*--
    Layout
--*/
.help-section {
  padding: 60px 0 90px;
}

@media (max-width: 991px) {
  .help-section {
    padding: 40px 0 60px;
  }
}

/*--
    Sidebar
--*/
.help-sidebar {
  position: sticky;
  top: 100px;
  font-size: 14px;
}

@media (max-width: 991px) {
  .help-sidebar {
    position: static;
    top: auto;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
  }
}

.help-sidebar__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c757d;
  border-bottom: 2px solid #3b4045;
  padding-bottom: 8px;
  margin: 0 0 4px;
}

.help-sidebar__topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-sidebar__topic {
  display: block;
  padding: 12px 0 12px 14px;
  border-left: 2px solid transparent;
  color: #3b4045;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.help-sidebar__topic:hover {
  color: #ea553b;
  border-left-color: #dee2e6;
}

.help-sidebar__topic.is-active {
  color: #ea553b;
  border-left-color: #ea553b;
}

.help-sidebar__summary {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: #6c757d;
}

.help-sidebar__sections {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 16px;
  border-left: 2px solid #ea553b;
}

.help-sidebar__sections a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #6c757d;
}

.help-sidebar__sections a:hover {
  color: #ea553b;
}

.help-sidebar__footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
  font-size: 13.5px;
  color: #6c757d;
}

.help-sidebar__footer p {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.help-sidebar__footer a {
  color: #ea553b;
  font-weight: 600;
}

/*--
    Document body
--*/
.help-doc {
  --paper: #ffffff;
  --panel: #f8f9fa;
  --ink: #3b4045;
  --muted: #6c757d;
  --line: #dee2e6;
  --accent: #ea553b;
  --ok: #2f7d4f;
  --sans: "Josefin Sans", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;

  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  max-width: 1000px;
}

.help-doc p {
  font-size: 16px;
  line-height: 1.6;
}

.help-doc code,
.help-doc .mono {
  font-family: var(--mono);
  font-size: 0.86em;
  color: inherit;
}

/* -- document header -- */
.help-doc .doc-topline {
  border-top: 4px solid var(--ink);
}

.help-doc .doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.help-doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  margin: 36px 0 14px;
}

.help-doc .doc-lede {
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}

.help-doc .doc-lede .law {
  font-weight: 600;
}

.help-doc .doc-lede-sub {
  max-width: 62ch;
  color: var(--muted);
  margin: 0;
}

/* -- sections -- */
.help-doc .doc-section {
  margin-top: 60px;
  scroll-margin-top: 110px;
}

.help-doc .doc-sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.help-doc .doc-sec-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.help-doc .doc-sec-head h2 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.help-doc .doc-sec-intro {
  max-width: 68ch;
  color: var(--muted);
  margin: 0 0 22px;
}

.help-doc .doc-sec-intro strong,
.help-doc p strong {
  color: var(--ink);
  font-weight: 600;
}

/* -- object cards -- */
.help-doc .doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.help-doc .doc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-doc .doc-card__eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.help-doc .doc-card h3 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
}

.help-doc .doc-card__def {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.help-doc .doc-card__fact {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.help-doc .doc-card__fact b {
  color: var(--ink);
  font-weight: 600;
}

.help-doc .doc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.help-doc .doc-chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 5px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.help-doc .doc-chip.is-live {
  border-color: var(--ok);
  color: var(--ok);
}

.help-doc .doc-chip.is-gone {
  border-style: dashed;
}

.help-doc .doc-chip.is-hot {
  border-color: var(--accent);
  color: var(--accent);
}

/* -- figures -- */
.help-doc .doc-figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
}

.help-doc .doc-figure__body {
  padding: 22px 22px 14px;
  overflow-x: auto;
}

.help-doc .doc-figure__body svg {
  display: block;
  min-width: 720px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.help-doc .doc-figure__caption {
  border-top: 1px solid var(--line);
  padding: 12px 22px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.help-doc .doc-fig-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-right: 10px;
}

/* Diagram text classes — page CSS applies inside inline SVG. */
.help-doc .d-lane {
  font: 600 11px var(--mono);
  letter-spacing: 0.14em;
  fill: currentColor;
  opacity: 0.65;
}

.help-doc .d-title {
  font: 600 12.5px var(--sans);
  fill: currentColor;
}

.help-doc .d-title-acc {
  font: 600 12.5px var(--sans);
  fill: var(--accent);
}

.help-doc .d-sub {
  font: 400 10.5px var(--mono);
  fill: currentColor;
  opacity: 0.68;
}

.help-doc .d-sub-acc {
  font: 500 10.5px var(--mono);
  fill: var(--accent);
}

.help-doc .d-lbl {
  font: 500 10px var(--mono);
  fill: currentColor;
  opacity: 0.75;
}

.help-doc .d-lbl-acc {
  font: 600 10px var(--mono);
  fill: var(--accent);
}

.help-doc .d-call {
  font: 600 11px var(--mono);
  fill: currentColor;
}

.help-doc .d-ok {
  font: 600 11px var(--mono);
  fill: var(--ok);
}

/* -- numbered flow legend -- */
.help-doc .doc-legend {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 4px 28px;
  counter-reset: step;
}

.help-doc .doc-legend li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 40px;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.help-doc .doc-legend li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 11px;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 600 12px/22px var(--mono);
  text-align: center;
}

.help-doc .doc-legend b {
  font-weight: 600;
}

.help-doc .doc-legend .why {
  color: var(--muted);
}

/* -- checks table -- */
.help-doc .doc-table-wrap {
  overflow-x: auto;
  margin-top: 26px;
}

.help-doc .doc-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 13.5px;
}

.help-doc .doc-table caption {
  text-align: left;
  caption-side: top;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-bottom: 10px;
}

.help-doc .doc-table th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 8px 14px 8px 0;
  border-bottom: 1.5px solid var(--ink);
}

.help-doc .doc-table td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}

.help-doc .doc-table td.n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  width: 28px;
}

.help-doc .doc-table td .mono {
  white-space: nowrap;
}

.help-doc .doc-table-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 72ch;
}

/* -- design rules -- */
.help-doc .doc-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.help-doc .doc-rulecard {
  border-top: 3px solid var(--ink);
  padding-top: 12px;
}

.help-doc .doc-rulecard h3 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.help-doc .doc-rulecard p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* -- closing note -- */
.help-doc .doc-footnote {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 640px) {
  .help-doc .doc-legend {
    grid-template-columns: 1fr;
  }
}
