/* The illustrated guide shares the live builder's fonts and palette.
   All diagrams are decorative HTML/SVG: real actions remain links to the app. */
body.mapstl-redesign #info-page:has(> .help-guide) {
  max-width: 1120px;
  padding: 54px 0 40px;
}
.help-guide { --help-green: #078c39; --help-ink: #193246; --help-muted: #677787; --help-line: #dce5ed; }
body.mapstl-redesign #info-page .help-guide :is(h1, h2, h3) {
  font-family: var(--heading-font, 'Manrope', sans-serif);
  color: var(--help-ink);
  letter-spacing: -.04em;
}
body.mapstl-redesign #info-page .help-guide :is(p, li) { color: var(--help-muted); line-height: 1.75; }
.help-guide :is(a, summary):focus-visible { outline: 3px solid #078c39; outline-offset: 5px; }
.help-hero { max-width: 760px; margin: 0 auto 40px; text-align: center; }
body.mapstl-redesign #info-page .help-eyebrow { margin: 0 0 18px; color: var(--help-green); font-size: 12px; font-weight: 750; letter-spacing: .16em; }
body.mapstl-redesign #info-page .help-hero h1 { font-size: clamp(34px, 4.5vw, 54px); font-weight: 750; line-height: 1.14; margin: 0 0 20px; }
.help-hero h1 span { color: var(--help-green); }
body.mapstl-redesign #info-page .help-lead { max-width: 620px; margin: 0 auto 25px; font-size: 17px; }
body.mapstl-redesign #info-page .help-guide .help-cta { gap: 24px; padding: 13px 22px; border-radius: 7px; background: var(--help-green); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
body.mapstl-redesign #info-page .help-guide .help-cta:hover { background: #087b34; }
.help-cta > span { font-size: 20px; font-weight: 400; }
body.mapstl-redesign #info-page .help-free-note { font-size: 12px; margin: 13px 0 0; }
.help-step-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--help-line); background: #fff; border-radius: 10px; }
.help-step-nav a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 5px; border-radius: 6px; background: #f3f6f8; color: #415d70; font-size: 14px; font-weight: 600; text-decoration: none; }
.help-step-nav a:hover { background: #e9f8e7; color: #117d32; text-decoration: none; }
.help-step-nav a > span { display: grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; border-radius: 50%; background: #e5eee3; color: #37813d; font-size: 11px; font-weight: 750; }
body.mapstl-redesign #info-page .help-illustration-note { margin: 12px 0 26px; text-align: center; font-size: 12px; }
.help-steps { display: grid; gap: 20px; }
.help-step { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 48px; padding: 40px 44px; border: 1px solid var(--help-line); border-radius: 12px; background: #fff; scroll-margin-top: 30px; }
.help-step-copy { min-width: 0; }
.help-step-label { display: flex; align-items: center; gap: 10px; color: var(--help-green); font-size: 13px; font-weight: 650; }
.help-step-label > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e8f7e6; color: var(--help-green); font-size: 12px; font-weight: 750; }
body.mapstl-redesign #info-page .help-step h2 { margin: 17px 0 17px; font-size: clamp(24px, 2.5vw, 29px); line-height: 1.2; font-weight: 750; }
body.mapstl-redesign #info-page .help-step p { margin: 0 0 13px; font-size: 14px; }
.help-step strong, .help-advanced strong { color: #334e5d; font-weight: 650; }
body.mapstl-redesign #info-page .help-step .help-tip { padding: 13px 15px; margin: 20px 0 0; background: #f1f8ee; border-left: 3px solid #8fd278; border-radius: 0 6px 6px 0; color: #57734e; font-size: 12px; line-height: 1.65; }
.help-visual { min-width: 0; width: 100%; margin: 0; padding: 22px 22px 13px; border: 1px solid #dce5ed; border-radius: 10px; background: #f4f7f9; box-shadow: 0 7px 25px #19324606; }
.help-visual > div { min-width: 0; }
.help-visual figcaption { margin: 15px 0 0; font-size: 10px; text-align: center; color: #728493; }
.help-art { display: block; width: 100%; height: auto; }
.help-mock-search { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 9px 12px; border: 1px solid #d9e3e9; border-radius: 6px; background: #fff; font-size: 13px; color: var(--help-ink); }
.help-mock-search > span:first-child { font-size: 22px; color: #819589; line-height: 1; }
.help-mock-search strong { font-weight: 550; }
.help-mock-key { margin-left: auto; color: var(--help-green); padding: 1px 6px; border-radius: 3px; background: #edf6e9; }
.help-ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: #5c7180; font-size: 12px; border-bottom: 1px solid #dde6ea; }
.help-ui-row strong { color: #314e60; font-weight: 650; }
.help-mock-range { position: relative; height: 4px; margin: 10px 0; border-radius: 9px; background: #dbe5df; }
.help-mock-range::before { content: ''; position: absolute; inset: 0 70% 0 0; border-radius: inherit; background: var(--help-green); }
.help-mock-range i { position: absolute; top: -4px; left: 30%; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--help-green); box-shadow: 0 0 0 1px var(--help-green); }
.help-range-ends { display: flex; justify-content: space-between; font-size: 10px; color: #7b8b91; }
.help-mock-heading { margin-bottom: 18px; font-size: 14px; line-height: 1.45; font-weight: 650; color: #304f60; }
.help-mock-layers { display: grid; gap: 9px; }
.help-mock-layers > div { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid #dce5ed; border-radius: 7px; }
.help-mock-layers strong { color: #415b6b; font-size: 12px; font-weight: 600; }
.help-layer-icon { position: relative; display: block; flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; background: #f7eee4; color: #b78855; }
.help-layer-city::before { content: ''; position: absolute; inset: 7px 7px 6px; border: 2px solid currentColor; border-bottom-width: 5px; }
.help-layer-water { background: #e8f2fa; color: #5c9ebf; }
.help-layer-water::before { content: ''; position: absolute; inset: 8px; border-radius: 0 50% 50%; transform: rotate(45deg); background: currentColor; }
.help-layer-roads { background: #f9ebe6; color: #d4977d; }
.help-layer-roads::before { content: ''; position: absolute; inset: 5px 10px; border-inline: 2px solid; transform: rotate(30deg); }
.help-layer-forest { background: #e8f1e4; color: #709c56; }
.help-layer-forest::before { content: ''; position: absolute; top: 5px; left: 7px; border: 7px solid transparent; border-top: 0; border-bottom: 14px solid currentColor; }
.help-mock-toggle { position: relative; width: 26px; height: 15px; flex-shrink: 0; border-radius: 20px; margin-left: auto; background: var(--help-green); }
.help-mock-toggle::after { content: ''; position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.help-mock-caption { font-size: 11px; line-height: 1.6; color: #758894; margin-top: 18px; }
.help-mock-swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.help-mock-swatches > span { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 10px; color: #83949d; }
.help-mock-swatches i { display: block; width: 100%; aspect-ratio: 1; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 1px #dce5ed; }
.help-color-example { display: flex; align-items: center; gap: 9px; padding: 11px 13px; margin: 22px 0; background: #fff; border: 1px solid var(--help-line); border-radius: 6px; }
.help-color-example > span { display: block; width: 22px; height: 22px; border-radius: 4px; }
.help-color-example strong { font: 600 13px ui-monospace, monospace; color: #506877; }
.help-color-example small { margin-left: auto; color: #8a9aa5; font-size: 10px; }
.help-color-assignment { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-color-assignment > span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #506877; }
.help-color-assignment i { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.help-dimension-art { display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; align-items: center; max-width: 300px; margin: 0 auto 16px; }
.help-dimension-art > span:first-child { grid-column: 1; margin: 0 26px; border-bottom: 1px solid #a7bac3; padding-bottom: 5px; }
.help-dimension-art > span { color: #667e8b; font-size: 11px; text-align: center; }
.help-dimension-art > span:last-child { writing-mode: vertical-rl; border-left: 1px solid #a7bac3; padding-left: 4px; height: 90px; justify-self: end; }
.help-dimension-art > div { grid-column: 1; }
.help-preview-art { max-width: 350px; margin-inline: auto; }
.help-preview-state { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #47674a; }
.help-preview-state strong { font-weight: 600; }
.help-status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--help-green); }
.help-progress-track { height: 5px; overflow: hidden; border-radius: 8px; background: #dce6dc; margin: 12px 0 16px; }
.help-progress-track > span { display: block; height: 100%; width: 58%; border-radius: inherit; background: var(--help-green); }
.help-mock-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #69818f; font-size: 10px; }
.help-mock-actions > span:first-child { padding: 6px 10px; border: 1px solid #d5e0e8; border-radius: 5px; background: #fff; }
.help-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.help-format-grid > div { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 15px 12px; border: 1px solid #d8e3ea; border-radius: 7px; background: #fff; }
.help-format-grid b { display: block; padding: 8px 6px; min-width: 40px; border: 1px solid #d2e9cc; border-radius: 4px; background: #eef8ea; color: #477a3b; font-size: 12px; text-align: center; }
.help-format-grid > div:nth-child(n+3) b { background: #eff4f8; border-color: #dbe6ed; color: #6d8494; }
.help-format-grid strong { color: #4d6574; font-size: 11px; font-weight: 600; }
.help-format-grid > div > span { position: absolute; right: 12px; top: 18px; color: var(--help-green); font-size: 20px; }
.help-advanced { margin-top: 64px; }
.help-section-heading { max-width: 640px; margin: 0 auto 28px; text-align: center; }
body.mapstl-redesign #info-page .help-guide :is(.help-section-heading h2, .help-faq h2, .help-ending h2) { margin: 0 0 12px; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.25; font-weight: 750; }
body.mapstl-redesign #info-page .help-section-heading p { margin: 0; font-size: 15px; }
.help-advanced-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.help-advanced-card { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--help-line); border-radius: 10px; }
.help-advanced-art { display: grid; align-items: center; height: 115px; margin-bottom: 18px; background: #f4f8f1; border-radius: 7px; overflow: hidden; }
.help-advanced-art > svg { max-height: 115px; }
body.mapstl-redesign #info-page .help-advanced h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; }
body.mapstl-redesign #info-page .help-advanced p { margin: 0; font-size: 13px; }
.help-save-art { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 15px; }
.help-save-art > span { display: grid; place-items: center; width: 60px; height: 60px; background: #e0efd7; border: 1px solid #c3dfb5; border-radius: 12px; font-size: 38px; color: #5c9445; }
.help-save-art > div { display: flex; flex-direction: column; gap: 9px; width: 80px; }
.help-save-art i { height: 6px; border-radius: 5px; background: #d9e5d4; }
.help-save-art i:first-child { background: #9dbc8c; width: 70%; }
.help-save-art i:last-child { width: 85%; }
.help-faq { display: grid; grid-template-columns: .6fr 1.4fr; gap: 45px; margin-top: 64px; }
.help-faq details { border-bottom: 1px solid #d5e0e8; }
.help-faq details:first-child { border-top: 1px solid #d5e0e8; }
.help-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; color: #344f60; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary > span { font-size: 20px; color: var(--help-green); font-weight: 400; transition: transform .15s; }
.help-faq details[open] summary > span { transform: rotate(45deg); }
body.mapstl-redesign #info-page .help-faq p { margin: 0 0 20px; font-size: 13px; }
.help-faq a, .help-sources-link a { text-decoration: underline; text-underline-offset: 3px; }
.help-ending { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 36px; margin-top: 56px; border: 1px solid #d3e7cd; border-radius: 10px; background: #edf7e9; }
body.mapstl-redesign #info-page .help-ending h2 { font-size: 24px; margin-bottom: 9px; }
body.mapstl-redesign #info-page .help-ending p { margin: 0; font-size: 14px; }
.help-ending .help-cta { flex-shrink: 0; }
body.mapstl-redesign #info-page .help-sources-link { margin: 22px 0 0; text-align: center; font-size: 12px; }
@media (max-width: 900px) {
  .help-step { gap: 28px; padding: 30px; }
  .help-visual { padding: 18px 16px 12px; }
  .help-step-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-advanced-grid { gap: 12px; }
  .help-advanced-card { padding: 18px; }
  .help-faq { grid-template-columns: 1fr; gap: 14px; }
  .help-ending { padding: 28px; }
}
@media (max-width: 650px) {
  body.mapstl-redesign #info-page:has(> .help-guide) { padding: 32px 0 26px; }
  .help-hero { margin-bottom: 28px; }
  body.mapstl-redesign #info-page .help-hero h1 { font-size: clamp(30px, 8.5vw, 42px); }
  body.mapstl-redesign #info-page .help-lead { font-size: 15px; }
  .help-step-nav { padding: 8px; gap: 6px; }
  .help-step-nav a { gap: 5px; font-size: 12px; }
  .help-step-nav a > span { width: 21px; height: 21px; font-size: 10px; }
  .help-step { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; scroll-margin-top: 16px; }
  .help-visual { max-width: 420px; justify-self: center; }
  .help-advanced { margin-top: 40px; }
  .help-advanced-grid { grid-template-columns: 1fr; gap: 16px; }
  .help-advanced-card { padding: 24px; }
  .help-advanced-art { max-width: 300px; margin-inline: auto; }
  .help-faq { margin-top: 40px; }
  .help-ending { flex-direction: column; align-items: flex-start; margin-top: 36px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .help-faq summary > span { transition: none; }
}
@media (max-width: 400px) {
  .help-step-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
