.howto {
  max-width: 1056px;
  padding-block: 22px 66px;
}
.howto .trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}
.trail a { padding-block: 8px; color: inherit; }
.trail a:hover { color: var(--accent); }
.howto h1 {
  max-width: 17em;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.07;
  letter-spacing: -.044em;
  text-wrap: balance;
}
.howto .intro {
  max-width: 64ch;
  margin: 18px 0 30px;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.52;
  color: var(--muted);
}
.howto .intro-context {
  max-width: 66ch;
  margin: -15px 0 28px;
  font-size: 17px;
  line-height: 1.55;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 24px 0 26px clamp(34px, 3vw, 46px);
  border-top: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 25px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
}
.steps h2, .guide-note h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 1.65vw, 23px);
  letter-spacing: -.022em;
  line-height: 1.28;
}
.steps p, .guide-note p {
  max-width: 66ch;
  margin: 9px 0 0;
  font-size: 17px;
  line-height: 1.56;
  overflow-wrap: break-word;
}
.howto strong { font-weight: 625; }
.step-figure {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  margin: 16px 0 0;
}
.step-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step-figure a { display: block; border-radius: 12px; cursor: zoom-in; }
.step-figure a:hover img { border-color: var(--accent); }
.step-figure figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 1px 0;
  text-wrap: pretty;
}
.page-sequence-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 12px);
  padding: clamp(12px, 1.7vw, 22px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.page-sequence-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  gap: 18px;
  padding: 11px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 2px 6px 3px 3px;
  color: var(--ink);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.page-sequence-page b { color: var(--accent); font-size: 21px; font-variant-numeric: tabular-nums; }
@media (min-width: 821px) {
  .steps > li:has(> .step-figure) {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(238px, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(28px, 4.5vw, 70px);
    align-items: start;
  }
  .steps > li > h2, .steps > li > p { grid-column: 1; }
  .steps > li > .step-figure { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
.guide-note {
  max-width: 78ch;
  margin: 12px 0 0;
  padding: 16px 20px;
  border-inline-start: 3px solid var(--accent);
  background: var(--panel);
}
.guide-note h2 { font-size: 17px; }
.guide-note p { font-size: 15px; margin-top: 6px; }
.guide-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-top: 22px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.howto .guide-inline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
.howto .guide-inline:hover { text-decoration-thickness: 2px; }
.howto .guide-end .guide-download {
  min-height: 48px;
  padding-inline: 22px;
  color: white;
  background-color: var(--button);
  border-color: transparent;
  font-weight: 600;
}
.howto .guide-end .guide-download:hover {
  color: white;
  background-color: var(--button-hover);
  border-color: transparent;
}
@media (max-width: 720px) {
  .howto { padding-block: 14px 44px; }
  .howto .trail { margin-bottom: 18px; }
  .howto .intro { margin-block: 16px 24px; }
  .howto .intro-context { margin: -12px 0 24px; }
  .guide-note { margin-block: 6px 0; }
  .steps > li { padding-block: 15px 19px; }
  .steps > li::before { top: 16px; }
  .guide-end { margin-top: 26px; }
}
.camera-guide-figure { max-width:210px; }
