/* The help guide shares the site's colours and keeps longer instructions readable. */
.support-page .skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 100;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  transform: translateY(-180%);
}
.support-page .skip-link:focus {
  transform: translateY(0);
}
.support-page a:focus-visible,
.support-page summary:focus-visible,
.support-page [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.support-page .page-hero {
  padding-bottom: 44px;
}
.support-page .page-hero p:last-child {
  margin-bottom: 0;
}
.help-guide {
  padding: 0 0 56px;
}
.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.help-sidebar {
  position: sticky;
  top: 100px;
  min-width: 0;
}
.help-toc {
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.help-toc h2 {
  margin-bottom: 16px;
  font-size: .76rem;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.help-toc ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
  text-underline-offset: 4px;
}
.help-toc a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}
.help-content {
  min-width: 0;
  scroll-margin-top: 104px;
}
.help-section {
  padding: 0 0 44px;
  scroll-margin-top: 104px;
}
.help-section + .help-section {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.help-section:last-child {
  padding-bottom: 0;
}
.help-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.help-section h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.help-section p,
.help-section li,
.help-section dd {
  color: #4f5964;
  font-size: .98rem;
  line-height: 1.75;
}
.help-section p {
  margin-bottom: 16px;
}
.help-section strong {
  color: var(--ink);
}
.help-section a:not(.button) {
  color: var(--red-dark);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.help-section ul,
.help-section ol {
  margin: 16px 0;
  padding-left: 24px;
}
.help-section li + li {
  margin-top: 8px;
}
.help-section > :last-child,
.help-workflow > :last-child,
.help-plan > :last-child {
  margin-bottom: 0;
}
.help-section .help-intro {
  font-size: 1.04rem;
}
.help-steps > li {
  padding-left: 6px;
}
.help-steps > li + li {
  margin-top: 22px;
}
.help-steps > li::marker {
  color: var(--red-dark);
  font-weight: 800;
}
.help-steps > li > strong {
  display: block;
  margin-bottom: 4px;
}
.help-steps > li p {
  margin-bottom: 8px;
}
.help-workflows {
  display: grid;
  gap: 26px;
  margin-top: 24px;
}
.help-workflow {
  padding-left: 22px;
  border-left: 3px solid var(--line);
  scroll-margin-top: 104px;
}
.help-workflow h3 {
  margin-bottom: 10px;
}
.help-scan-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.help-scan-examples figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.help-scan-examples img {
  display: block;
  width: 100%;
  height: auto;
}
.help-scan-examples figcaption {
  padding: 0 18px 20px;
  color: #4f5964;
  font-size: .9rem;
  line-height: 1.65;
}
.help-scan-examples figcaption strong {
  display: block;
  margin-bottom: 6px;
}
.help-section .help-note {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #ffd1c2;
  border-radius: 12px;
  background: var(--soft-red);
  color: #7c2a13;
  font-size: .95rem;
  line-height: 1.7;
}
.help-note p,
.help-note li {
  color: inherit;
  font-size: inherit;
}
.help-note strong {
  color: #5b1b09;
}
.help-note > :last-child {
  margin-bottom: 0;
}
.help-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.help-status-grid > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.help-status-grid dt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-weight: 750;
}
.help-status-grid dd {
  margin: 0;
  font-size: .92rem;
}
.help-status-dot {
  display: inline-block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.help-status-dot.ready {
  background: var(--green);
}
.help-status-dot.waiting {
  background: var(--amber);
}
.help-status-dot.offline {
  background: #c83333;
}
.help-status-dot.unset {
  background: #7c858f;
}
.help-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  line-height: 1.65;
}
.help-table caption {
  padding: 16px;
  color: var(--muted);
  font-size: .88rem;
  text-align: left;
}
.help-table th,
.help-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.help-table thead th {
  background: var(--soft-grey);
  font-size: .86rem;
}
.help-table tbody th {
  font-weight: 700;
}
.help-table td {
  color: #4f5964;
}
.help-table tr:last-child > * {
  border-bottom: 0;
}
.help-table thead tr:last-child > * {
  border-bottom: 1px solid var(--line);
}
.help-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.help-plan {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.help-plan h3 {
  margin-bottom: 10px;
}
.help-section .faq {
  margin-top: 24px;
}
.help-section .faq summary {
  line-height: 1.5;
}
.help-section .faq ul {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }
  .help-sidebar {
    position: static;
  }
  .help-toc {
    max-height: none;
    overflow: visible;
  }
  .help-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}
@media (max-width: 620px) {
  .support-page .page-hero {
    padding: 46px 0 30px;
  }
  .help-guide {
    padding-bottom: 32px;
  }
  .help-toc {
    padding: 20px;
  }
  .help-toc ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .help-toc a {
    padding: 9px 0;
  }
  .help-status-grid,
  .help-plan-grid,
  .help-scan-examples {
    grid-template-columns: minmax(0, 1fr);
  }
  .help-section {
    padding-bottom: 34px;
  }
  .help-section + .help-section {
    padding-top: 34px;
  }
  .help-workflow {
    padding-left: 16px;
  }
  .help-note,
  .help-plan {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
