:root {
  color-scheme: light;
  --paper: #f9faf6;
  --ink: #152e30;
  --body: #344c4c;
  --dim: #526966;
  --green: #095f55;
  --deep: #0e4d46;
  --line: #d4dfd8;
  --sage: #e7f0e9;
  --sans: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "STIX Two Text", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 var(--sans); -webkit-text-size-adjust: 100%; }
main { overflow: clip; }
a { color: inherit; }
button, input { font: inherit; }
a:focus-visible, summary:focus-visible, input:focus-visible, .viewer-scroll:focus-visible { outline: 3px solid #b44628; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
strong { font-weight: 650; color: var(--ink); }
.wrap, .mast-inner { width: min(1140px, calc(100% - 104px)); margin: 0 auto; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip { position: fixed; z-index: 50; left: .5rem; top: .5rem; border-radius: 5px; background: #fff; padding: 8px 15px; transform: translateY(-170%); }
.skip:focus { transform: none; }
.mast { position: sticky; top: 0; z-index: 6; background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 67px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 670; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { display: block; border-radius: 9px; }
.brand i, footer i { font: italic 1.02em "Baskervville", Georgia, serif; letter-spacing: -.035em; }
.mast-type { border-left: 1px solid #b0c0b7; padding-left: 18px; color: var(--dim); font-size: 13px; letter-spacing: .05em; }
.top-nav { display: flex; gap: 24px; margin-left: auto; }
.top-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 600; color: var(--body); text-decoration: none; }
.top-nav a:hover, footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5.1vw, 76px); align-items: center; padding: 58px 0 38px; }
.hero-text { padding: 5px 0; }
.kicker, .eyebrow, .chapter-kind { font-weight: 660; color: var(--green); font-size: 13px; letter-spacing: .075em; }
.kicker { display: flex; align-items: center; gap: 10px; }
.rule { display: inline-block; width: 33px; height: 2px; background: var(--green); }
h1 { margin: 17px 0 17px; font: 720 clamp(47px, 4.75vw, 70px)/1.18 var(--serif); letter-spacing: -.052em; }
h1 span { display: block; color: var(--green); }
.hero-intro { font-size: clamp(16px,1.3vw,19px); max-width: 29em; line-height: 1.85; color: var(--body); }
.entry-path { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 14px; line-height: 1.55; margin-top: 25px; }
.entry-path strong { font-size: 13px; }
.entry-path span:not(.path-arrow) { padding: 3px 10px; background: #e7eee7; border-radius: 5px; font-weight: 620; color: var(--deep); }
.path-arrow { color: #5a736e; }
.route-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #baccc1; border-radius: 14px; overflow: hidden; }
.route { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 17px 25px; background: #f0f4ec; text-decoration: none; }
.route:not(:first-child) { border-left: 1px solid #c8d5ca; }
.route:hover { background: #e3eee4; }
.route-primary { color: #fff; background: var(--deep); }
.route-primary:hover { background: #083e39; }
.route-top { display: flex; align-items: center; gap: 9px; }
.route strong { font-size: 19px; font-weight: 660; color: inherit; }
.route-arrow { margin-left: auto; font-size: 21px; font-weight: 400; line-height: 1; }
.route-desc { color: var(--dim); font-size: 13px; line-height: 1.5; }
.route-primary .route-desc { color: #d9e9df; }
.route-glyph, .chapter-kind .glyph, .try .glyph { display: inline-flex; align-items: center; justify-content: center; }
.glyph { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.route:focus-visible { outline-offset: -5px; outline-color: #d77d43; z-index: 1; }
.import-section { padding: 46px 0 48px; display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; column-gap: clamp(38px,6vw,92px); }
.import-copy h2 { margin: 8px 0 13px; font-size: clamp(25px,2.2vw,33px); line-height: 1.35; letter-spacing: -.035em; }
.import-copy p:not(.eyebrow) { color: var(--body); }
.import-copy p.aside-text { margin-top: 9px; font-size: 14px; color: var(--dim); line-height: 1.7; }
.plate { min-width: 0; }
.plate-open { display: block; overflow: hidden; border: 1px solid #cfdbd4; background: #fff; border-radius: 14px; color: var(--dim); text-decoration: none; cursor: zoom-in; -webkit-tap-highlight-color: rgba(8,94,81,.12); }
.plate-open:hover { border-color: #78998a; }
.shot-window { display: block; overflow: hidden; isolation: isolate; }
.capture { width: 100%; height: auto; display: block; }
.plate-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 14px; border-top: 1px solid #dde5df; background: #fafcf9; font-size: 12px; line-height: 1.5; }
.plate-caption > :first-child { min-width: 0; }
.enlarge { white-space: nowrap; color: var(--green); font-weight: 650; flex: none; }
.enlarge span { display: inline-block; font: 16px/1 var(--sans); }
.hero-plate .plate-open { background: #dfede3; border-color: #bed0c3; border-radius: 19px; box-shadow: 0 10px 23px -21px #173e31; }
.entry-crops { display: grid; gap: 10px; padding: 16px 18px; background-color: #e1eee4; background-image: radial-gradient(#c3d4c9 .9px, transparent 1px); background-size: 9px 9px; }
.entry-crops .shot-window { border: 1px solid #cbdad0; border-radius: 9px; box-shadow: 0 2px 7px #123b2e0b; }
.hero-plate .plate-caption { padding: 9px 18px; background: #f4f8f1; }
.chapter { border-top: 1px solid #aebfb3; padding: 46px 0 48px; }
.chapter-head { margin-bottom: 24px; }
.chapter-kind { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chapter-kind .glyph { width: 17px; height: 17px; }
.version { margin-left: 2px; background: #e6eee7; border-radius: 4px; padding: 1px 7px; color: #315d4f; font-size: 12px; letter-spacing: .015em; }
.chapter-head h2, .help h2 { margin: 9px 0; font: 700 clamp(27px,2.7vw,40px)/1.36 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.chapter-head > p:last-child { color: var(--body); }
.walk-row { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(38px,6vw,92px); align-items: start; padding: 21px 0 26px; }
.walk-row + .walk-row { border-top: 1px solid var(--line); padding-top: 25px; }
.walk-copy { padding: 5px 0; }
h3 { font-size: clamp(18px,1.65vw,23px); letter-spacing: -.025em; line-height: 1.48; font-weight: 680; }
.walk-copy h3, .text-step h3, .pin-step h3 { display: flex; align-items: baseline; gap: 10px; }
.step { flex: none; display: inline-grid; place-items: center; align-self: start; margin-top: .17em; width: 1.75em; height: 1.75em; line-height: 1; border-radius: 50%; color: #fff; background: var(--green); font: 650 .68em/1 var(--sans); }
.walk-copy p, .text-step p, .pin-step > p, .note-path > p { margin-top: 11px; color: var(--body); }
.walk-copy p, .text-step p { max-width: 46em; }
.text-step { padding: 21px 0 13px; border-top: 1px solid var(--line); }
.try { display: flex; gap: 18px; align-items: baseline; background: #eaf1e8; border-left: 3px solid #497a61; padding: 15px 20px; border-radius: 0 8px 8px 0; margin-top: 16px; }
.try-label { display: inline-flex; align-items: center; white-space: nowrap; gap: 6px; font-size: 15px; font-weight: 680; color: var(--green); }
.try .glyph { width: 17px; height: 17px; }
.try p { color: var(--body); font-size: 15px; line-height: 1.8; }
.two-up, .note-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.pin-step { min-width: 0; }
.pin-step .plate { margin-top: 16px; }
.note-paths { margin-top: 31px; padding-top: 27px; border-top: 1px solid var(--line); }
.note-path { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.note-path h3 { font-weight: 680; }
.note-path > p:not(.mini-try) { flex: 1; margin-bottom: 13px; }
.note-path .mini-try { margin-top: 14px; }
.mini-try { font-size: 14px; line-height: 1.8; }
.mini-try strong { color: var(--green); margin-right: .3em; }
.help { display: grid; grid-template-columns: .36fr 1fr; gap: 44px; padding: 45px 0; border-top: 1px solid #aebfb3; }
.help h2 { margin: 0; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 0; font-size: 16px; font-weight: 640; line-height: 1.5; }
.questions summary::after { content: "+"; font: 23px/1 var(--sans); color: var(--green); }
.questions details[open] summary::after { content: "−"; }
.questions details > div { padding: 0 14px 17px 0; color: var(--body); font-size: 15px; }
.questions p + p { margin-top: 8px; }
.source { font-size: 13px; color: var(--green); }
.source a { text-underline-offset: 3px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 18px 0 30px; font-size: 13px; color: var(--dim); }
footer > span { color: var(--deep); font-weight: 650; font-size: 16px; }
footer a { text-decoration: none; }
.viewer { display: none; position: fixed; inset: 0; z-index: 20; background: #102c2bdf; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.viewer:target { display: flex; }
body:has(.viewer:target) { overflow: hidden; }
.viewer-shell { display: flex; flex-direction: column; width: min(850px,100%); height: min(94vh,1040px); height: min(94dvh,1040px); background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 60px #0a252954; }
.viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.viewer-header h2 { font-size: 17px; font-weight: 660; line-height: 1.45; }
.viewer-close { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 10px; min-height: 40px; border: 1px solid #b7cbc1; border-radius: 6px; color: var(--green); text-decoration: none; white-space: nowrap; font-size: 14px; }
.viewer-close span { font-size: 20px; line-height: 1; }
.viewer-tools { display: flex; gap: 22px; padding: 0 18px; background: #eef4ed; }
.viewer-tools label { display: inline-flex; align-items: center; gap: 6px; min-height: 41px; cursor: pointer; color: var(--deep); font-weight: 560; font-size: 14px; }
.viewer-tools input { margin: 0; width: 16px; height: 16px; accent-color: var(--green); }
.viewer-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #dce5df; padding: 12px; }
.viewer-photo { width: min(100%, 430px); margin: 0 auto; background: #fff; border: 1px solid #bacbc2; }
@supports (width: 1cqh) {
  .viewer-scroll { container-type: size; }
  .viewer-photo { width: min(100%, calc((100cqh - 2px) * var(--photo-ratio))); }
}
.viewer-description { padding: 9px 18px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.viewer:has(.note-toggle:not(:checked)) .overlay { display: none; }
.viewer:has(.size-toggle:checked) .viewer-photo { width: 860px; }
@media (max-width: 930px) {
  .wrap, .mast-inner { width: calc(100% - 64px); }
  .hero { gap: 30px; padding: 39px 0 30px; }
  h1 { font-size: clamp(43px, 5.5vw, 56px); }
  .entry-crops { padding: 10px; gap: 6px; }
  .route { padding: 14px 18px; }
  .walk-row, .import-section { gap: 32px; }
  .help { grid-template-columns: .32fr 1fr; gap: 24px; }
}
@media (max-width: 770px) {
  html { scroll-padding-top: 66px; }
  .wrap, .mast-inner { width: calc(100% - 40px); }
  .mast-inner { min-height: 56px; gap: 12px; }
  .top-nav { gap: 15px; }
  .mast-type { padding-left: 12px; }
  .hero { grid-template-columns: 1fr; gap: 19px; padding: 25px 0 21px; }
  .hero-text { padding: 0; }
  h1 { font-size: clamp(39px, 8.4vw, 56px); margin: 12px 0; line-height: 1.17; }
  .hero-intro { max-width: 35em; font-size: 16px; }
  .entry-path { margin-top: 13px; }
  .entry-crops { padding: 11px; gap: 7px; }
  .route { padding: 12px; }
  .route strong { font-size: 16px; }
  .route-top { gap: 6px; }
  .route-arrow { font-size: 17px; }
  .route-desc { font-size: 12px; }
  .import-section, .walk-row { grid-template-columns: 1fr; gap: 15px; }
  .import-section { padding: 32px 0; }
  .import-copy h2 br { display: none; }
  .chapter { padding: 33px 0; }
  .chapter-head { margin-bottom: 12px; }
  .chapter-head h2, .help h2 { font-size: 28px; }
  .walk-row { padding: 15px 0 22px; }
  .walk-row + .walk-row { padding-top: 17px; }
  .walk-copy { padding: 0; }
  .try { gap: 10px; padding: 12px 14px; }
  .help { display: block; padding: 30px 0; }
  .questions { margin-top: 14px; }
  .two-up, .note-paths { gap: 20px; }
}
@media (max-width: 530px) {
  .wrap, .mast-inner { width: calc(100% - 32px); }
  .top-nav { gap: 13px; }
  .top-nav a { font-size: 12px; }
  .mast-type { display: none; }
  .brand { font-size: 18px; gap: 7px; }
  .brand img { width: 29px; height: 29px; border-radius: 7px; }
  .kicker, .chapter-kind, .eyebrow { font-size: 12px; }
  .entry-crops { padding: 9px; gap: 5px; }
  .hero-plate .plate-caption, .plate-caption { padding: 7px 10px; font-size: 11px; min-height: 34px; }
  .route-picker { grid-template-columns: 1fr; border-radius: 10px; }
  .route { padding: 10px 13px; gap: 1px; }
  .route:not(:first-child) { border-left: 0; border-top: 1px solid #c8d5ca; }
  .route-desc { padding-left: 25px; }
  .route-glyph .glyph { width: 18px; height: 18px; }
  .import-copy h2 { font-size: 24px; }
  .plate-open, .hero-plate .plate-open { border-radius: 10px; }
  .chapter-head h2 { font-size: 27px; }
  .two-up, .note-paths { grid-template-columns: 1fr; }
  .two-up { gap: 23px; margin-top: 24px; }
  .pin-step .plate { margin-top: 12px; }
  .note-paths { margin-top: 24px; padding-top: 22px; }
  .note-path + .note-path { border-top: 1px solid var(--line); padding-top: 18px; }
  .try { display: block; }
  .try-label { margin-bottom: 4px; }
  .viewer { padding: 0; }
  .viewer-shell { width: 100%; max-width: none; height: 100vh; height: 100dvh; border-radius: 0; }
  .viewer-header { padding: max(9px,env(safe-area-inset-top)) 12px 9px; }
  .viewer-header h2 { font-size: 15px; }
  .viewer-tools { padding: 0 13px; }
  .viewer-scroll { padding: 6px; }
  .viewer:has(.size-toggle:checked) .viewer-photo { width: clamp(440px, 133vw, 700px); }
  .viewer-description { padding: 9px 12px max(10px,env(safe-area-inset-bottom)); font-size: 12px; }
}
@media print {
  :root { --paper: #fff; }
  .mast { position: static; }
  .wrap, .mast-inner { width: 100%; }
  .hero { padding: 10px 0; }
  .top-nav, .enlarge, footer a, .viewer, .viewer:target, .skip { display: none; }
  .route-picker, .plate, .try, .pin-step, .note-path, .walk-row { break-inside: avoid; }
  .chapter { padding: 18px 0; }
  .questions details > div { display: block; }
}

.system-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; }
.system-picker > span { margin-inline-end: 6px; font-size: 13px; color: var(--dim); }
.system-picker a { display: inline-flex; align-items: center; min-height: 42px; padding: 5px 13px; border: 1px solid #bfcec4; border-radius: 7px; font-size: 14px; text-decoration: none; }
.system-picker [aria-current="page"] { color: white; background: var(--deep); border-color: var(--deep); }
.mast-type { text-decoration: none; }
.shot-window { position: relative; }
.crop-overlay, .full-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.viewer-photo { position: relative; }
.manual-download { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; color: var(--green); text-underline-offset: 4px; font-size: 14px; }
#guide a:hover, .mast-type:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 530px) {
  .system-picker { margin-top: 14px; gap: 5px; }
  .system-picker > span { width: 100%; }
  .system-picker a { min-height: 44px; }
}
@media print { .system-picker a:not([aria-current]), .manual-download, .mast nav { display: none; } }
