/* Help uses the existing Road Ledger palette and type. The index acts as a
   route through longer instructions, without hiding the content behind JS. */
.help-page .site-header {
  background: var(--ink);
}
.help-page .page-hero {
  padding-top: 52px;
}
.help-breadcrumb {
  font-size: 14px;
}
.help-breadcrumb a {
  text-underline-offset: 4px;
}
.help-page .page-hero h1 {
  max-width: 20ch;
}
.help-layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: 56px 80px;
  align-items: start;
}
.help-index {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 3px;
}
.help-index h2 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.help-index nav {
  display: flex;
  flex-direction: column;
}
.help-index nav a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}
.help-index a:hover {
  color: var(--indigo-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.help-related {
  display: block;
  margin-top: 24px;
  font-weight: 600;
  font-size: 15px;
}
.help-content {
  max-width: 76ch;
  min-width: 0;
}
.help-section {
  scroll-margin-top: 110px;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.help-section:last-child {
  margin-bottom: 0;
}
.help-section h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}
.help-audience {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.help-section ol {
  padding-left: 1.5em;
}
.help-section li {
  padding-left: 8px;
  margin-block: 0 18px;
}
.help-section a {
  text-underline-offset: 3px;
}
.help-note {
  background: var(--paper-2);
  border-left: 3px solid var(--amber-ink);
  padding: 18px 22px;
}
.help-top {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  padding-block: 7px;
}
.help-answer {
  border-top: 1px solid var(--line);
}
.help-answer summary {
  cursor: pointer;
  padding: 20px 4px;
  font-weight: 600;
  line-height: 1.5;
}
.help-answer[open] summary {
  color: var(--indigo-deep);
}
.help-answer > div {
  padding: 0 4px 24px;
}
.help-answer > div > a {
  font-size: 15px;
  font-weight: 500;
}
.help-section dt {
  font-weight: 600;
  margin-top: 24px;
}
.help-section dd {
  margin: 8px 0 20px;
}
@media (max-width: 800px) {
  .help-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 36px;
  }
  .help-index {
    position: static;
    max-height: none;
  }
  .help-index nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .help-index h2 {
    grid-column: 1 / -1;
  }
  .help-section {
    scroll-margin-top: 90px;
  }
}
@media (max-width: 480px) {
  .help-index nav {
    grid-template-columns: 1fr;
  }
  .help-page .nav-cta > .btn {
    display: none;
  }
  .help-note {
    padding: 16px;
  }
}
@media print {
  .help-index,
  .site-header,
  .site-footer,
  .help-top {
    display: none;
  }
  .help-layout {
    display: block;
  }
  .help-answer > div {
    display: block !important;
  }
  .help-page .page-hero {
    background: white;
    color: black;
  }
  .help-page .page-hero h1,
  .help-page .page-hero p {
    color: black;
  }
}
/* Shared navigation in styles.css handles both scripted and no-script layouts. */
@media (max-width: 480px) {
  .help-page .nav-cta > .btn {
    display: inline-flex;
  }
}
@media (max-width: 1060px) {
  .help-section {
    scroll-margin-top: 170px;
  }
}
