/* Mapping Guide: restrained instructional layout. */
body.how-to-page { background: #f4f1e9; }

.how-to-edit-page .site-header {
  border-bottom-color: rgba(37, 59, 54, .12);
  background: rgba(255, 255, 255, .97);
}

.how-to-edit-page main {
  padding-top: 22px;
  background: #f4f1e9;
}

.how-to-edit-page main .content-grid {
  width: min(1036px, calc(100% - 48px));
}

.how-original-hero {
  width: min(1250px, calc(100% - 30px));
  min-height: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  background-position: center 58%;
}

.how-original-hero-content { min-height: 320px; }

.how-original-hero-overlay {
  background: linear-gradient(90deg, rgba(20, 47, 41, .66), rgba(20, 47, 41, .42)) !important;
}

.how-original-hero-content > div:last-child {
  padding: 24px 0;
  text-align: center;
}

.how-original-hero h1 {
  margin-inline: auto;
  color: #fff;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -.055em;
  text-shadow: 0 2px 18px rgba(8, 25, 21, .28);
}

.how-section {
  padding: 48px 0;
  scroll-margin-top: 96px;
  background: #f4f1e9;
}


.how-section-head {
  display: block;
  padding: 0;
}

.how-section-head > div:last-child { padding: 0; }

.how-section-head h2,
.save-copy h2,
.how-next-head h2 {
  margin-bottom: 18px;
  color: #1f3b50;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.05em;
}

.how-section-head > div:last-child > p:not(.eyebrow),
.save-copy > p:not(.eyebrow),
.how-next-head > div:last-child > p:not(.eyebrow) {
  max-width: 790px;
  color: #405360;
  font-size: 17px;
  line-height: 1.58;
}

.how-section--error .how-section-head > div:last-child > p:not(.eyebrow),
.how-section--prompt .how-section-head > div:last-child > p:not(.eyebrow) {
  max-width: none !important;
  white-space: normal;
}

.how-section--error .error-evidence-grid,
.how-section--prompt .prompt-steps-grid {
  display: block;
  padding: 28px 0 0;
  border: 0;
}

.how-section--error .error-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.how-section--prompt .prompt-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.how-section--error .error-step-card,
.how-section--error .street-view-tip,
.how-section--prompt .prompt-step {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  grid-template-rows: auto 1fr;
  gap: 18px 48px;
  padding: 0;
  border: 0 !important;

  border-radius: 0;
  background: transparent !important;
}

.how-to-edit-page .how-section--error .error-step-header,
.how-to-edit-page .how-section--prompt .prompt-step-header {
  grid-column: 1;
  min-height: 0;
  display: flex !important;
  align-items: baseline;
  gap: 8px;
}

.how-to-edit-page .how-section--error .error-step-header span,
.how-to-edit-page .how-section--prompt .prompt-step-header span {
  width: auto;
  height: auto;
  display: inline;
  margin: 0;
  padding: 0;
  color: #1f3b50 !important;
  background: transparent;
  font-family: var(--display) !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

.error-step-header h3,
.prompt-step h3 {
  margin: 0;
  color: #1f3b50;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.street-view-tip .tip-image,
.error-map-figure .how-image-button,
.prompt-step .how-image-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  margin: 0;
}

.tip-copy,
.error-map-figure > p,
.prompt-step > p {
  grid-column: 1;
  margin: 0;
  color: #405360;
  font-size: 14px;
  line-height: 1.58;
}

.tip-copy p { font-size: inherit; line-height: inherit; }
.tip-copy em { font-size: 12px; }

.how-image-button {
  overflow: hidden;
  border: 1px solid rgba(37, 59, 54, .15) !important;
  border-radius: 6px !important;
  background: #e9eef0;
  box-shadow: none !important;
}

.how-to-edit-page .how-section .how-image-button {
  box-shadow: none !important;
  filter: none !important;
}

.how-image-button img { transition: transform 300ms cubic-bezier(.22, 1, .36, 1); }
.how-image-button:hover img { transform: none; }

.how-section--prompt .prompt-step {
  display: flex;
  flex-direction: column;
  grid-column: auto !important;
  grid-row: auto !important;
  gap: 0;
  border-top: 0 !important;
}

.how-section--prompt .prompt-step-header {
  order: 1;
  margin-bottom: 22px;
}

.how-section--prompt .prompt-step > p {
  order: 2;
  min-height: 70px;
  margin-bottom: 24px;
}

.how-section--prompt .prompt-step .how-image-button {
  position: relative;
  order: 3;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden !important;
  aspect-ratio: 16 / 10;
  margin: auto 0 0;
  border-radius: 0 !important;
}

.how-section--prompt .prompt-step .how-image-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  clip-path: none !important;
  object-fit: cover;
}

.how-section--error .error-step-card,
.how-section--error .street-view-tip {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-section--error .error-step-header {
  order: 1;
  margin-bottom: 22px;
}

.how-section--error .tip-copy,
.how-section--error .error-map-figure > p {
  order: 2;
  min-height: 154px;
  margin-bottom: 24px;
}

.how-section--error .street-view-tip .tip-image,
.how-section--error .error-map-figure .how-image-button {
  position: relative;
  order: 3;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: auto 0 0;
}

.how-section--error .street-view-tip .tip-image,
.how-section--error .street-view-tip .tip-image .how-image-button,
.how-section--error .error-map-figure .how-image-button {
  border-radius: 0 !important;
}

.how-section--error .street-view-tip .tip-image .how-image-button,
.how-section--error .error-map-figure .how-image-button {
  overflow: hidden !important;
}

.how-section--error .street-view-tip .tip-image .how-image-button {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
}

.how-section--error .street-view-tip .tip-image img,
.how-section--error .error-map-figure .how-image-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  clip-path: none !important;
  object-fit: cover;
}

.how-to-edit-page .how-section--error .how-crosscheck {
  width: min(1036px, calc(100% - 48px));
  display: block;
  margin: 28px auto 0;
  padding: 14px 0 0;
  border: 0 !important;
  border-top: 1px solid rgba(37, 59, 54, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.how-to-edit-page .how-section--error .how-crosscheck::before {
  content: "Note";
  display: block;
  margin-bottom: 5px;
  color: #8b4d38;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-to-edit-page .how-section--error .how-crosscheck p {
  max-width: 72ch;
  margin: 0;
  color: #596a63;
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}

.how-to-edit-page .how-section--error .how-crosscheck a {
  color: #9a4f32;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.how-to-edit-page .how-section--error .how-crosscheck a:hover {
  color: #6f321f;
  text-decoration-thickness: 2px;
}

.how-to-edit-page .how-section--error .how-crosscheck a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #9a4f32;
  outline-offset: 3px;
}

.how-to-edit-page .how-section--prompt {
  background: #f4f1e9 !important;
}

.how-section--save {
  padding: 48px 0;
  color: #253b36;
  background: #f4f1e9 !important;
}

.how-section--save .save-layout {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.how-section--save .save-image {
  width: calc((100% - 40px) / 2);
  padding: 0;
}

.how-section--save .save-copy {
  width: 100%;
  padding: 0;
}

.how-section--save .save-copy { order: 1; }
.how-section--save .save-image { order: 2; }

.how-section--save .save-copy h2 {
  margin: 0 0 18px;
  color: #1f3b50 !important;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.05em;
}

.how-section--save .save-copy > p:not(.eyebrow) {
  max-width: 790px !important;
  min-height: 0;
  margin: 0 0 42px;
  color: #405360 !important;
  font-size: 17px;
  line-height: 1.58;
}

.how-section--save .save-image .how-image-button {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden !important;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 0 !important;
}

.how-section--save .save-image .how-image-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  clip-path: none !important;
  object-fit: cover;
}

.how-next-section {
  padding: 40px 0;
  border-top: 0;
  color: #253b36;
  background: #f4f1e9 !important;
}

.how-to-edit-page .site-footer {
  background: #1d291b !important;
}

.how-next-head {
  display: block;
  text-align: left;
}

.how-next-head > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title action"
    "copy action";
  align-items: center;
  column-gap: clamp(48px, 8vw, 120px);
  padding: 0;
}

.how-next-head h2 {
  grid-area: title;
  margin: 0 0 16px;
  color: #253b36;
  font-size: clamp(28px, 3vw, 36px);
}

.how-next-head > div:last-child > p:not(.eyebrow) {
  grid-area: copy;
  max-width: 760px !important;
  margin: 0;
  color: #52635c;
}

.how-next-head .button {
  grid-area: action;
  position: relative;
  min-width: 248px;
  min-height: 50px;
  margin: 0;
  padding: 0 30px;
  border-radius: 0 !important;
  color: #253b36;
  background: #f4f1e9;
  box-shadow: 0 3px 0 rgba(37, 59, 54, .18) !important;
}

.how-next-head .button:hover { color: #fff; background: #b96f47; }

.how-next-cta-label {
  transition: transform 240ms ease;
}

.how-next-cta-arrow {
  position: absolute;
  right: 22px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.how-next-cta:is(:hover, :focus-visible) .how-next-cta-label {
  transform: translateX(-10px);
}

.how-next-cta:is(:hover, :focus-visible) .how-next-cta-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .how-next-cta-label,
  .how-next-cta-arrow {
    transition: none;
  }
}

@media (max-width: 760px) {
  .how-to-edit-page main { padding-top: 12px; }

  .how-to-edit-page main .content-grid,
  .how-to-edit-page .how-section--error .how-crosscheck {
    width: calc(100% - 32px);
  }

  .how-original-hero {
    width: calc(100% - 24px);
    min-height: 260px;
    background-position: 43% center;
  }

  .how-original-hero-content {
    min-height: 260px;
    display: grid;
  }

  .how-original-hero-content > div:last-child { padding: 20px 0; }
  .how-original-hero h1 { font-size: clamp(43px, 13vw, 60px); }

  .how-section { padding: 36px 0; }
  .how-section-head h2,
  .save-copy h2,
  .how-next-head h2 { font-size: 28px; }

  .how-section-head > div:last-child > p:not(.eyebrow),
  .save-copy > p:not(.eyebrow),
  .how-next-head > div:last-child > p:not(.eyebrow) { font-size: 16px; }

  .how-section--error .how-section-head > div:last-child > p:not(.eyebrow),
  .how-section--prompt .how-section-head > div:last-child > p:not(.eyebrow) {
    white-space: normal;
  }

  .how-section--error .error-evidence-grid,
  .how-section--prompt .prompt-steps-grid { padding-top: 28px; }

  .how-section--error .error-evidence-grid,
  .how-section--prompt .prompt-steps-grid {
    display: block;
  }

  .how-section--error .error-step-card,
  .how-section--error .street-view-tip,
  .how-section--prompt .prompt-step {
    display: block;
    padding: 0 0 28px;
  }

  .error-step-header,
  .prompt-step-header { margin-bottom: 22px; }

  .street-view-tip .tip-image,
  .error-map-figure .how-image-button,
  .prompt-step .how-image-button { margin: 0 0 20px; }

  .tip-copy,
  .error-map-figure > p,
  .prompt-step > p { font-size: 14px; }

  .how-section--prompt .prompt-step > p {
    min-height: 0;
    margin-bottom: 20px;
  }

  .how-section--error .tip-copy,
  .how-section--error .error-map-figure > p {
    min-height: 0;
    margin-bottom: 20px;
  }

  .how-section--save { padding: 36px 0; }
  .how-section--save .save-layout { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .how-section--save .save-image,
  .how-section--save .save-copy { width: 100%; }
  .how-section--save .save-copy > p:not(.eyebrow) { margin-bottom: 28px; font-size: 16px; }
  .how-next-section { padding: 36px 0; }
  .how-next-head > div:last-child { display: block; }
  .how-next-head h2 { margin-bottom: 16px; }
  .how-next-head > div:last-child > p:not(.eyebrow) { margin-bottom: 28px; }
  .how-next-head .button { width: 100%; min-width: 0; min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .how-image-button img { transition: none; }
}


/* Keep section boundaries useful and screenshot frames unobtrusive. */
.how-to-edit-page .how-section + .how-section,
.how-to-edit-page .how-next-section { border-top: 1px solid rgba(37, 59, 54, .14); }
html body .how-to-edit-page .how-section :is(.error-step-card, .prompt-step, .street-view-tip) {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html body .how-to-edit-page .how-image-button {
  border-radius: 0 !important;
  box-shadow: none !important;
}
