:root {
  color-scheme: light;
  --page: #f3f5f4;
  --surface: #ffffff;
  --surface-subtle: #f7f9f8;
  --line: #dce2df;
  --line-strong: #cbd4d0;
  --text: #18201d;
  --muted: #5d6b65;
  --green: #167642;
  --green-dark: #0e5a31;
  --green-soft: #e9f6ee;
  --orange: #b85d10;
  --orange-soft: #fff2e3;
  --red: #9b3636;
  --red-soft: #fbecec;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a { color: var(--green-dark); }
a:hover { color: var(--green); }

:focus-visible {
  outline: 3px solid rgba(22, 118, 66, .22);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.help-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.help-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.help-brand img {
  display: block;
  width: 176px;
  height: auto;
}

.help-brand__copy {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.help-brand__copy strong,
.help-brand__copy span { display: block; }
.help-brand__copy span { color: var(--muted); font-size: 12px; font-weight: 700; }

.back-button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.back-button:hover { border-color: var(--green); background: var(--green-soft); }

.help-title {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.help-title__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 38px;
}

.help-title p { max-width: 70ch; margin: 12px 0 0; color: var(--muted); font-weight: 600; }
.help-title h1 { max-width: 26ch; margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }

.help-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 54px;
  align-items: start;
}

.help-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 4px;
}

.help-nav strong { margin-bottom: 5px; font-size: 12px; }
.help-nav a {
  display: block;
  border-radius: 6px;
  color: #425149;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.help-nav a:hover { background: var(--green-soft); color: var(--green-dark); }

.help-article { min-width: 0; }
.help-section { scroll-margin-top: 20px; padding-bottom: 44px; }
.help-section + .help-section { padding-top: 44px; border-top: 1px solid var(--line); }
.help-section:last-child { padding-bottom: 0; }
.help-section h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.35; letter-spacing: -.015em; text-wrap: balance; }
.help-section h3 { margin: 26px 0 8px; font-size: 17px; line-height: 1.45; }
.help-section p { max-width: 72ch; margin: 0 0 15px; }
.help-section ul,
.help-section ol { padding-left: 1.4em; }
.help-section li + li { margin-top: 7px; }

.steps {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.callout {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}
.callout strong { display: block; margin-bottom: 3px; }
.callout.is-info { border-color: #b9d9c6; background: var(--green-soft); }
.callout.is-warning { border-color: #e5bd94; background: var(--orange-soft); }
.callout.is-danger { border-color: #dfb0b0; background: var(--red-soft); }

.check-list { margin: 20px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 12px 11px 40px; border-top: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; top: 11px; left: 13px; color: var(--green); font-weight: 900; }

.comparison-wrap { max-width: 100%; margin: 20px 0; overflow-x: auto; }
.comparison { width: 100%; min-width: 600px; border-collapse: collapse; background: var(--surface); font-size: 13px; }
.comparison th,
.comparison td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { background: var(--surface-subtle); }

.help-footer { border-top: 1px solid var(--line); background: var(--surface); }
.help-footer__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 760px) {
  .help-header__inner { min-height: 68px; }
  .help-brand img { width: 145px; }
  .help-brand__copy { display: none; }
  .help-title__inner { padding: 32px 0; }
  .help-title h1 { font-size: 25px; }
  .help-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .help-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 7px;
  }
  .help-nav strong { display: none; }
  .help-nav a { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); }
}

@media (max-width: 460px) {
  .help-header__inner,
  .help-title__inner,
  .help-layout,
  .help-footer__inner { width: min(100% - 28px, 1180px); }
  .back-button { min-height: 38px; padding: 0 10px; }
  .help-title h1 { font-size: 23px; }
  .help-section h2 { font-size: 21px; }
  .help-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 15px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
