:root{--ink:#172033;--muted:#667188;--line:#dce3ee;--paper:#fff;--canvas:#f4f7fb;--blue:#3f6df6;--blue-dark:#2d56cb;--blue-soft:#edf2ff;--green:#16845b;--green-soft:#eaf8f1;--amber:#ae6b09;--amber-soft:#fff7e9;--shadow:0 18px 50px rgba(28,42,68,.1);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{margin:0;background:radial-gradient(circle at 8% 0,#e6eeff 0,transparent 28%),var(--canvas);color:var(--ink);font:15px/1.62 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}

.page{width:min(1140px,calc(100% - 36px));margin:0 auto}

.hero{padding:64px 0 38px;text-align:center}

.eyebrow{margin-bottom:8px;color:var(--blue-dark);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}

.hero h1{max-width:820px;margin:0 auto 12px;font-size:clamp(32px,5vw,48px);letter-spacing:-1.5px;line-height:1.05}

.hero p{max-width:730px;margin:0 auto;color:var(--muted);font-size:17px}

.contents{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;margin-bottom:28px;padding:20px 24px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 6px 22px rgba(28,42,68,.05)}

.contents h2{margin:0 0 8px;font-size:15px}

.contents ul{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none}

.contents a{color:#45536e;font-size:13px;text-decoration:none}

.contents a:hover{color:var(--blue);font-weight:750;text-decoration:none}

.contents-subitem a:before{margin-right:5px;color:#91a0ba;content:"↳"}


.chapter{margin:18px 0;padding:clamp(24px,4vw,44px);border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:0 7px 26px rgba(28,42,68,.045)}

.chapter h2{margin:0 0 18px;font-size:clamp(24px,3vw,31px);letter-spacing:-.5px;line-height:1.18}

.chapter h3{margin:31px 0 10px;font-size:20px;line-height:1.25}

.chapter .section-heading{display:flex;align-items:baseline;gap:12px}

.chapter h4{margin:20px 0 7px;font-size:16px}

.chapter p{margin:10px 0;color:#344158}

.chapter li{margin:7px 0;color:#344158}

.chapter a{color:var(--blue-dark);font-weight:650}

.feature-list{display:grid;gap:10px;margin:18px 0;padding:0;list-style:none}

.feature-list li{position:relative;margin:0;padding:12px 14px 12px 40px;border:1px solid #e5eaf2;border-radius:12px;background:#fbfcfe}

.feature-list li:before{position:absolute;left:14px;top:14px;width:16px;height:16px;border-radius:5px;background:var(--blue-soft);color:var(--blue);content:"✓";font-size:11px;font-weight:900;line-height:16px;text-align:center}

.note{margin:18px 0;padding:14px 16px;border:1px solid #cddbf9;border-left:4px solid var(--blue);border-radius:10px;background:#f7f9ff;color:#405071}

.note strong{color:var(--ink)}

.devtools-setup{margin:18px 0;border:1px solid #cbd9fa;border-radius:14px;background:#f8faff;overflow:hidden}

.devtools-setup summary{display:flex;align-items:center;gap:10px;padding:15px 17px;cursor:pointer;color:#263a67;font-weight:800;list-style:none}

.devtools-setup summary::-webkit-details-marker{display:none}

.devtools-setup summary:after{display:grid;flex:0 0 28px;place-items:center;width:28px;height:28px;margin-left:4px;border-radius:8px;background:var(--blue-soft);color:var(--blue);content:"＋";font-size:18px;line-height:1}

.devtools-setup[open] summary{background:#f1f5ff}

.devtools-setup[open] summary:after{margin-left:auto;content:"−"}

.devtools-setup[open] .expand-hint{display:none}

.devtools-setup-body{padding:4px 17px 17px;border-top:1px solid #dce5f8;background:#fff}

.devtools-setup-body>.gallery{margin-bottom:0}

.gallery{margin:22px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#f8faff}

.gallery-stage{position:relative;min-height:360px;padding:20px 64px 18px;display:grid;place-items:center;background:linear-gradient(135deg,#eef3ff,#f9fbff);touch-action:pan-y pinch-zoom}

.gallery-slide{display:none;width:100%;text-align:center}

.gallery-slide.active{display:block}

.gallery-slide img{display:block;max-width:100%;max-height:470px;margin:auto;border:1px solid #d8e0ef;border-radius:10px;background:#fff;box-shadow:0 14px 34px rgba(43,64,106,.15)}

.gallery-control{position:absolute;top:50%;display:grid;place-items:center;width:36px;height:36px;transform:translateY(-50%);border:1px solid #cbd6eb;border-radius:50%;background:#fff;color:var(--blue-dark);cursor:pointer;font-size:22px;line-height:1}

.gallery-control:hover{border-color:var(--blue);background:var(--blue-soft)}

.gallery-control.prev{left:16px}

.gallery-control.next{right:16px}

.gallery-caption{display:flex;align-items:flex-start;gap:12px;padding:15px 20px;border-top:1px solid var(--line);background:#fff}

.gallery-caption-number{display:grid;flex:0 0 auto;place-items:center;width:25px;height:25px;border-radius:7px;background:var(--blue);color:#fff;font-size:12px;font-weight:800}

.gallery-caption b{display:block;margin-bottom:1px;font-size:14px}

.gallery-caption span{display:block;color:var(--muted);font-size:13px}

.gallery-caption .map-menu-icon,.lightbox-caption .map-menu-icon{display:inline-grid;width:23px;height:23px;margin:0 4px 0 0;place-items:center;border:1px solid #62bb7a;border-radius:50%;background:#fff;color:#16884c;font-size:17px;font-weight:800;line-height:1;vertical-align:middle}

.gallery-dots{display:flex;gap:0;padding:0 16px 10px;background:#fff}

.gallery-dot{position:relative;width:28px;height:28px;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer}

.gallery-dot:after{position:absolute;left:50%;top:50%;width:7px;height:7px;transform:translate(-50%,-50%);border-radius:50%;background:#c8d1e2;content:"";transition:width .15s,background .15s,border-radius .15s}

.gallery-dot.active:after{width:20px;border-radius:6px;background:var(--blue)}

.method-advisor{margin:20px 0;padding:22px;border:1px solid #cbd9fa;border-radius:16px;background:linear-gradient(135deg,#f5f8ff,#fff)}

.method-advisor h3{margin:0 0 5px}

.method-advisor>p{margin-top:0;color:var(--muted)}

.method-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:18px 0}

.method-choice{position:relative;display:block;min-height:104px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;transition:.15s ease}

.method-choice:hover{border-color:#aac0f5;transform:translateY(-1px)}

.method-choice input{position:absolute;opacity:0}

.method-choice:has(input:checked){border-color:var(--blue);background:var(--blue-soft);box-shadow:0 0 0 3px rgba(63,109,246,.12)}

.method-choice b{display:block;margin-bottom:5px;font-size:13px;line-height:1.25}

.method-choice small{display:block;color:var(--muted);font-size:11px;line-height:1.35}

.method-options{display:flex;flex-wrap:wrap;gap:12px 20px;margin:8px 0 16px}

.method-options label{display:flex;align-items:center;gap:7px;color:#44516a;font-size:13px;cursor:pointer}

.advisor-result{padding:13px 15px;border-radius:10px;background:var(--green-soft);color:#205a43;font-size:13px}

.advisor-result strong{color:#164a36}

.method-list{display:grid;gap:10px;margin:22px 0}

.method-list details{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}

.method-list summary{display:flex;align-items:center;gap:11px;padding:15px 17px;cursor:pointer;font-weight:800;list-style:none}

.method-list summary::-webkit-details-marker{display:none}

.method-list summary:after{margin-left:auto;color:var(--blue);content:"＋";font-size:18px}

.method-list details[open] summary{border-bottom:1px solid var(--line);background:#f8faff}

.method-list details[open] summary:after{content:"−"}

.method-index{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:var(--blue-soft);color:var(--blue-dark);font-size:12px}

.method-body{padding:3px 18px 18px}

.method-body ol{padding-left:21px}

.builder-map{display:grid;grid-template-columns:1fr;gap:10px;margin:16px 0}

.builder-map article{padding:14px;border:1px solid #e2e7ef;border-radius:12px;background:#fbfcfe}

.builder-map h4{margin:0 0 4px}

.builder-map p{margin:0;color:var(--muted);font-size:13px}

.builder-steps{display:grid;gap:0;margin:14px 0 20px!important;padding:0!important;list-style:none;counter-reset:builder-step}

.builder-steps li{position:relative;margin:0;padding:11px 10px 11px 42px;border-bottom:1px solid #e4e9f2;counter-increment:builder-step}

.builder-steps li:first-child{border-top:1px solid #e4e9f2}

.builder-steps li:before{position:absolute;left:7px;top:11px;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--blue-soft);color:var(--blue-dark);content:counter(builder-step);font-size:12px;font-weight:850}

.stable-result-options{margin-top:8px}

.stable-result-options li{margin:8px 0}

.syntax-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

.syntax-example{padding:14px;border:1px solid #e2e7ef;border-radius:12px;background:#fbfcfe}

.syntax-example code{display:block;margin-bottom:8px;padding:8px;border-radius:7px;background:#202a3b;color:#eaf0ff;font:12px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}

.syntax-example p{margin:0;color:var(--muted);font-size:13px}

.faq details{border-bottom:1px solid var(--line)}

.faq summary{display:flex;align-items:center;gap:12px;padding:14px 0;cursor:pointer;font-weight:750;list-style:none}

.faq summary::-webkit-details-marker{display:none}

.faq summary:after{display:grid;flex:0 0 28px;place-items:center;width:28px;height:28px;margin-left:auto;border-radius:8px;background:var(--blue-soft);color:var(--blue);content:"＋";font-size:18px;line-height:1}

.faq details[open] summary:after{content:"−"}

.faq details>p:last-child,.faq details>ul:last-child{padding-bottom:13px}

.footer{padding:25px 0 52px;color:var(--muted);font-size:13px;text-align:center}

@media(max-width:880px){.method-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.contents{grid-template-columns:1fr}


}

@media(max-width:620px){.page{width:min(100% - 20px,1140px)}

.hero{padding-top:38px}

.chapter{padding:22px 18px;border-radius:16px}

.gallery-stage{min-height:230px;padding:15px 46px}

.gallery-control.prev{left:7px}

.gallery-control.next{right:7px}

.method-grid,.syntax-grid,.builder-map{grid-template-columns:1fr}

.method-choice{min-height:auto}

.contents ul{display:block}

.contents li{margin:5px 0}

}


/* Instruction page refinements */
.chapter h2{display:flex;align-items:baseline;gap:12px}
.top-link{display:inline-block;margin-left:auto;color:#74809a!important;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;transition:color .15s,font-weight .15s,transform .15s}
.top-link:hover{color:var(--blue)!important;font-weight:800;text-decoration:none;transform:scale(1.035)}
.feature-list{display:block;margin:15px 0;padding-left:22px;list-style:disc}
.feature-list li{margin:6px 0;padding:0;border:0;border-radius:0;background:transparent}
.feature-list li:before{content:none}
.gallery-slide img{cursor:zoom-in}
.gallery-slide img:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.lightbox-open,.lightbox-open body{overflow:hidden}
.image-lightbox[hidden]{display:none}
.image-lightbox{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:38px;background:rgba(13,22,38,.86)}
.lightbox-content{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;max-width:min(1440px,96vw);max-height:92vh;border:0;overflow:visible;background:transparent;touch-action:pan-y pinch-zoom}
.lightbox-content img{display:block;max-width:100%;max-height:calc(92vh - 112px);margin:auto;border:1px solid rgba(255,255,255,.3);border-radius:14px;object-fit:contain;background:#eef2f8;box-shadow:0 24px 70px rgba(0,0,0,.38)}
.lightbox-caption{display:block;padding:16px 19px 17px;border:1px solid #c9d8fa;border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.22)}
.lightbox-caption b{display:block;margin-bottom:4px;color:var(--ink);font-size:16px;line-height:1.35}
.lightbox-caption span{display:block;color:#526078;font-size:14px;line-height:1.5}
.lightbox-close{position:fixed;right:18px;top:15px;width:38px;height:38px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;font-size:27px;line-height:1}
.method-grid,.method-choice,.advisor-result{display:none}
.method-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.guide-switch{display:flex!important;align-items:center!important;gap:11px!important;padding:12px 13px;border:1px solid var(--line);border-radius:11px;background:#fff;transition:border-color .15s,background .15s}
.guide-switch:has(input:checked){border-color:#9fb7f4;background:#f5f8ff}
.guide-switch input{position:absolute;opacity:0}
.guide-switch-control{position:relative;display:block;flex:0 0 auto;width:32px;height:18px;border-radius:999px;background:#aeb8c8;transition:background .15s}
.guide-switch-control:after{position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);content:"";transition:transform .15s}
.guide-switch input:checked+.guide-switch-control{background:var(--blue)}
.guide-switch input:checked+.guide-switch-control:after{transform:translateX(14px)}
.guide-switch b{display:block;color:var(--ink);font-size:13px}
.guide-switch small{display:block;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.35}
.advisor-hint{margin:0!important;color:var(--muted)!important;font-size:12px}
.method-list details{position:relative;transition:border-color .15s,box-shadow .15s,background .15s,transform .15s}
.method-list details.recommended{border-color:#527df7;background:linear-gradient(90deg,#edf3ff,#fafcff);box-shadow:0 0 0 4px rgba(63,109,246,.16),0 10px 24px rgba(45,86,203,.11);transform:translateX(4px)}
.method-list details.recommended:before{position:absolute;z-index:2;left:-1px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:var(--blue);content:""}
.method-list details.recommended summary{color:var(--blue-dark)}
.expand-hint{margin-left:auto;color:#8390a6;font-size:11px;font-weight:650}
.method-list summary:after{display:grid;flex:0 0 28px;place-items:center;width:28px;height:28px;margin-left:4px;border-radius:8px;background:var(--blue-soft);line-height:1;text-align:center}
.method-list details[open] summary:after{margin-left:auto}
.method-list details[open] .expand-hint{display:none}
.syntax-example{background:#f8faff}
.syntax-example h4{margin:0 0 7px;font-size:14px}
.syntax-example code{border:1px solid #d5e0f7;background:#eef3ff;color:#274b9a;font-weight:650}
.cheatsheet-table{width:100%;margin:14px 0;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.cheatsheet-table th,.cheatsheet-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.cheatsheet-table th{background:#f2f6ff;color:#334d83;font-size:13px}
.cheatsheet-table tr:last-child td{border-bottom:0}
.instruction-shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0;padding:0;list-style:none;counter-reset:import-step}
.instruction-shots li{position:relative;margin:0;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;counter-increment:import-step}
.instruction-shots li:before{display:grid;place-items:center;width:22px;height:22px;margin-bottom:8px;border-radius:7px;background:var(--blue);color:#fff;content:counter(import-step);font-size:11px;font-weight:800}
.instruction-shots strong{display:block;margin-bottom:10px;font-size:13px;line-height:1.45}
.instruction-shots img{display:block;width:100%;border:1px solid #d8e0ef;border-radius:8px;cursor:zoom-in}
.reference-shot{display:block;max-width:100%;margin:14px auto;border:1px solid #d8e0ef;border-radius:10px;box-shadow:0 8px 22px rgba(43,64,106,.1);cursor:zoom-in}
.chapter a:not(.top-link){padding:1px 4px;border-radius:4px;background:#eef3ff;color:#2d56cb;text-decoration:none;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.chapter a:not(.top-link):hover{background:#dfe9ff;color:#2347ad}
.chapter a.button{display:inline-flex;align-items:center;padding:9px 13px;border:1px solid #8ba8ec;border-radius:8px;background:#f4f7ff;color:#294fae;font-size:13px;font-weight:750}
.chapter a.button:hover{border-color:#6387df;background:#e7eeff;color:#1f439f}
.instruction-video-frame{position:relative;overflow:hidden;width:100%;margin:18px 0 12px;aspect-ratio:16/9;border-radius:14px;background:#121722;box-shadow:0 10px 26px rgba(28,42,68,.14)}
.instruction-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.instruction-video-fallback{text-align:center}
.feature-list>li>ul{margin:5px 0 2px;padding-left:21px}
.feature-list>li>ul li{margin:3px 0}
.method-switches{grid-template-columns:repeat(3,minmax(0,1fr))}
.syntax-grid{grid-template-columns:1fr;counter-reset:selector-type}
.syntax-example{position:relative;padding:15px 16px 15px 58px;counter-increment:selector-type}
.syntax-example:before{position:absolute;left:17px;top:15px;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--blue-soft);color:var(--blue-dark);content:counter(selector-type);font-size:12px;font-weight:850}
.syntax-example code{width:max-content;max-width:100%;min-width:180px}
.syntax-example p code,.syntax-example li code,.syntax-example h4 code{display:inline;width:auto;min-width:0;margin:0;padding:2px 5px;border-radius:5px;white-space:normal;overflow-wrap:anywhere}
.lightbox-nav{position:fixed;z-index:102;top:50%;display:grid;place-items:center;width:46px;height:46px;transform:translateY(-50%);border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;font-size:34px;line-height:1}
.lightbox-nav:hover{background:rgba(255,255,255,.25)}
.lightbox-nav[hidden]{display:none}
.lightbox-prev{left:18px}
.lightbox-next{right:18px}
.selector-limit{margin-top:18px!important;padding:15px 17px;border:1px solid #cddbf9;border-radius:11px;background:#f7f9ff}
.embedded-contexts{margin-top:28px;padding:18px 20px;border:1px solid #d5def0;border-radius:14px;background:linear-gradient(135deg,#f8faff,#fff)}
.embedded-contexts h3{margin-top:0}
.summary-link{padding:0!important;background:transparent!important;color:inherit!important}
.operator-reference{margin:14px 0;padding:13px 14px;border:1px solid #d9e3f7;border-radius:10px;background:#fff}
.operator-reference h5{margin:0 0 9px;color:var(--ink);font-size:13px}
.operator-reference dl{display:grid;margin:0}
.operator-reference dl>div{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:14px;align-items:baseline;padding:8px 0;border-bottom:1px solid #e7ecf5}
.operator-reference dl>div:last-child{border-bottom:0}
.operator-reference dt,.operator-reference dd{margin:0;color:#4d5a70;font-size:12px}
.operator-reference dt code{display:inline-block;width:auto;min-width:0;margin:0;padding:4px 7px;white-space:nowrap}
.operator-reference dd code{display:inline;width:auto;min-width:0;margin:0;padding:2px 5px;white-space:nowrap}
.syntax-example.syntax-fixed{min-height:var(--syntax-collapsed-height)}
.syntax-example.syntax-measuring{height:auto!important;min-height:0!important}
.syntax-example.syntax-fixed:not(.expanded){height:var(--syntax-collapsed-height);overflow:hidden}
.syntax-example.syntax-collapsible{padding-right:16px}
.syntax-example.syntax-collapsible h4{padding-right:44px}
.syntax-example.syntax-collapsible:not(.expanded):after{position:absolute;z-index:1;right:0;bottom:0;left:0;height:28px;background:linear-gradient(transparent,#f8faff 88%);content:"";pointer-events:none}
.syntax-toggle{position:absolute;z-index:2;right:15px;top:11px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;appearance:none;background:var(--blue-soft);color:var(--blue);cursor:pointer;font-family:inherit;font-size:18px;font-weight:800;line-height:1}
.syntax-toggle:hover{background:#dfe8ff;color:var(--blue-dark)}
.syntax-example.expanded{height:auto}
.structure-example{margin:12px 0 18px;border:1px solid #d9e3f3;border-radius:11px;overflow:hidden;background:#fff}
.structure-example>span{display:block;padding:9px 12px;border-bottom:1px solid #e1e7f1;background:#f1f5fc;color:#38517c;font-size:12px;font-weight:800}
.structure-example pre{margin:0;padding:13px 15px;overflow:auto;background:#edf3ff;color:#274b9a;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}
.structure-example pre code{font:inherit}
.structure-example p{margin:0!important;padding:10px 12px;color:var(--muted)!important;font-size:12px}
@media(max-width:620px){.method-switches,.instruction-shots{grid-template-columns:1fr}
.operator-reference dl>div{grid-template-columns:1fr;gap:2px}
.image-lightbox{padding:14px}
.lightbox-close{right:10px;top:8px;width:44px;height:44px}
.lightbox-content{max-width:100%;max-height:94vh}
.lightbox-content img{max-height:calc(94vh - 110px)}
.gallery-control{width:44px;height:44px}
.gallery-control.prev{left:4px}
.gallery-control.next{right:4px}
.method-list summary{align-items:flex-start;min-width:0}
.method-list summary .expand-hint{display:none}
.method-list summary:after{flex:0 0 32px;width:32px;height:32px;margin-left:auto}
.summary-link{min-width:0;overflow-wrap:anywhere}
.top-link{display:inline-flex;align-items:center;min-height:44px;margin:-10px -4px -10px auto;padding:10px 4px}
.lightbox-nav{width:44px;height:44px}
.lightbox-prev{left:6px}
.lightbox-next{right:6px}
}
