:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  color: #21332c;
  background: #f5f8f6;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 52rem); margin-inline: auto; }
a { color: #006c4e; text-decoration-thickness: 1px; text-underline-offset: .19em; }
a:hover { color: #004d37; }
:focus-visible { outline: 3px solid #137355; outline-offset: 3px; }
.skip { position: absolute; top: -5rem; left: 1rem; padding: .5rem; background: white; }
.skip:focus { top: .5rem; }
header { background: #fff; border-bottom: 1px solid #d6e1da; }
.bar, footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; padding-block: .8rem; }
.bar a { text-decoration: none; font-size: .94rem; }
main { padding-block: clamp(1.4rem, 4vw, 3.2rem) 2rem; }
h1, h2, h3 { line-height: 1.4; color: #152c22; text-wrap: pretty; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 .55rem; }
h2 { font-size: clamp(1.34rem, 2.5vw, 1.65rem); margin: 0 0 .9rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .35rem; }
p { margin: .6rem 0; }
.intro { color: #496255; margin: 0 0 1rem; }
.contents { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; margin: .75rem 0 1.25rem; }
.contents a { padding-block: .18rem; font-size: .94rem; }
article { background: #fff; border: 1px solid #d7e3db; border-radius: 1rem; padding: clamp(1rem, 4vw, 2.25rem); }
section { scroll-margin: 1rem; }
section + section { border-top: 1px solid #dce5de; padding-top: 1.6rem; margin-top: 1.6rem; }
section > :last-child, .step > :last-child { margin-bottom: 0; }
ul, ol { padding-inline-start: 1.4rem; }
li + li { margin-top: .5rem; }
.types { display: grid; grid-template-columns: max-content 1fr; margin: .65rem 0; gap: .5rem 1rem; }
dt { font-weight: 650; }
dd { margin: 0; }
.note { padding: .8rem 1rem; border-left: .25rem solid #168462; background: #eaf5ee; }
.sample { border: 1px solid #d9e6de; border-radius: .5rem; padding: .6rem .8rem; }
.sample span { display: block; margin-bottom: .2rem; font-weight: 600; }
code { overflow-wrap: anywhere; font: .86rem/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.steps, .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.steps h3 { margin: 0 0 .35rem; }
.steps { margin: 1.2rem 0; }
.step { min-width: 0; }
figure { margin: 1rem 0 1.35rem; padding: .7rem; border: 1px solid #dce6df; border-radius: .65rem; background: #f7f9f7; }
figure > a { display: block; }
figure img { display: block; width: 100%; height: auto; border-radius: .3rem; }
.step img, .pair img { max-width: 16.5rem; margin-inline: auto; }
figcaption { font-size: .89rem; color: #455e51; margin-top: .5rem; }
details { border-bottom: 1px solid #dbe5df; padding: .8rem 0; }
details:first-of-type { border-top: 1px solid #dbe5df; }
summary { font-weight: 650; cursor: pointer; }
details[open] summary { color: #006c4e; }
footer { padding-top: 1.25rem; font-size: .94rem; }
@media (max-width: 39rem) {
  .steps, .pair { grid-template-columns: 1fr; gap: .8rem; }
  .wrap { width: min(100% - 1.35rem, 52rem); }
  .types { grid-template-columns: auto; gap: .15rem; }
  dd { margin-bottom: .45rem; }
  .contents { gap: .2rem 1rem; }
}
