/* 사용 설명서(POS 설치 · POS 사용 · 가맹점 앱 음식/쇼핑몰) — 긴 설명서용 읽기 레이아웃 */
.pg-hero--doc .pg-hero__lead a{color:var(--blue);text-decoration:underline;text-underline-offset:.2em}
.docs{padding:0 0 clamp(72px,8vw,140px);background:#fff;font-size:clamp(16px,1.08vw,18px);line-height:1.8;color:#2b3340}
.docs__wrap{display:grid;grid-template-columns:clamp(250px,20vw,330px) minmax(0,1fr);gap:clamp(32px,5vw,100px);align-items:start}
.docs__main{min-width:0;max-width:900px}
.docs .toc{position:sticky;top:calc(var(--hdr) + 24px);max-height:calc(100svh - var(--hdr) - 48px);overflow:auto;padding-right:6px}
.docs .toc summary{display:none}
.docs .toc .cap{margin:0 0 .6em;color:var(--ink3);font-size:14px;font-weight:800}
.docs .toc ol{display:grid;gap:2px;margin:0;padding:0;list-style:none;max-width:none}
.docs .toc a{display:flex;gap:.7em;padding:.45em .8em;border-radius:12px;color:var(--ink2);font-size:14.5px;font-weight:600;line-height:1.45;text-decoration:none;transition:background .2s,color .2s}
.docs .toc a:hover{background:var(--mist);color:var(--ink)}
.docs .toc a.is-on{background:var(--ink);color:#fff}
.docs .toc a .n{flex:none;min-width:1.4em;color:var(--blue);font-weight:800;font-variant-numeric:tabular-nums}
.docs .toc a.is-on .n{color:var(--wave)}
.docs .toc ol ol{margin:2px 0 8px}
.docs .toc ol ol a{padding:.3em .8em .3em 2.8em;color:var(--ink3);font-size:13.5px;font-weight:500}
.lead{max-width:62ch;margin:0 0 1.2em;color:var(--ink2);font-size:1.06em}
section.ch{padding:clamp(34px,3.4vw,60px) 0 .6em;border-top:1px solid var(--line);scroll-margin-top:84px}
section.ch:first-of-type{padding-top:0;border-top:0}
.docs h2{display:flex;align-items:center;gap:.6em;margin:0 0 .6em;color:var(--ink);font-size:clamp(24px,2vw,34px);font-weight:800;letter-spacing:-.035em;line-height:1.25}
.docs h2 .num{flex:none;display:grid;place-items:center;min-width:1.7em;height:1.7em;padding:0 .4em;border-radius:.55em;background:var(--ink);color:#fff;font-size:.62em;font-weight:800;letter-spacing:0}
.docs h3{margin:1.9em 0 .5em;color:var(--ink);font-size:clamp(18px,1.4vw,23px);font-weight:800;letter-spacing:-.025em;line-height:1.35;scroll-margin-top:84px}
.docs h4{margin:1.4em 0 .4em;color:var(--ink);font-size:1.02em;font-weight:800}
.docs p{margin:0 0 .85em;max-width:68ch}
.docs ul,.docs ol{margin:0 0 1em;padding-left:1.4em;max-width:68ch}
.docs ul{list-style:disc}
.docs ol{list-style:decimal}
.docs li{margin:.3em 0}
.docs li::marker{color:var(--ink3)}
.docs a{color:var(--blue);text-decoration:underline;text-underline-offset:.2em}
.docs b,.docs strong{color:var(--ink);font-weight:800}
.docs code{padding:.1em .45em;border-radius:6px;background:var(--mist);color:var(--ink);font-size:.88em;word-break:break-all}
.docs .btn{display:inline-block;height:auto;padding:0 .5em;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:.92em;font-weight:700;line-height:1.55;box-shadow:0 1px 2px rgba(25,31,40,.06);transform:none;text-decoration:none}
.docs .btn.blue{border-color:var(--blue);background:var(--blue);color:#fff}
.docs .btn.green{border-color:#127d3f;background:#127d3f;color:#fff}
.docs .btn.red{border-color:#c8451f;background:#c8451f;color:#fff}
.docs kbd{padding:.05em .45em;border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;background:var(--mist);font:inherit;font-size:.88em;font-weight:700}
.docs .word{color:var(--blue);font-weight:700}
.docs ol.steps{counter-reset:s;margin:.8em 0 1.2em;padding:0;list-style:none}
.docs ol.steps li{position:relative;margin:0 0 .8em;padding-left:2.6em;counter-increment:s}
.docs ol.steps li::before{content:counter(s);position:absolute;left:0;top:.1em;display:grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:var(--ink);color:#fff;font-size:.86em;font-weight:800}
.docs .note{display:block;max-width:72ch;margin:1em 0 1.3em;padding:1em 1.3em;border-radius:18px;background:var(--mist);color:var(--ink2)}
.docs .note .lb{display:inline-block;margin-bottom:.35em;padding:.1em .7em;border-radius:999px;background:var(--ink);color:#fff;font-size:.78em;font-weight:800}
.docs .note.warn{background:#fff3e0}
.docs .note.warn .lb{background:#c8451f}
.docs .note p:last-child{margin-bottom:0}
.docs figure{margin:1.2em 0 1.8em}
.docs figure img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:16px;background:#fff;cursor:zoom-in}
.docs figcaption{margin-top:.6em;color:var(--ink2);font-size:.86em;line-height:1.55}
.docs figure.narrow{max-width:560px}
.docs .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2em}
.docs .two figure{margin:0}
.docs .annot{position:relative}
.docs .annot .pin{position:absolute;display:grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:var(--blue);color:#fff;font-size:.85em;font-weight:800;box-shadow:0 0 0 3px #fff;transform:translate(-50%,-50%)}
.docs ol.legend{columns:2;column-gap:2em;max-width:none;padding:0;list-style:none;font-size:.92em}
.docs ol.legend li{position:relative;margin:0 0 .5em;padding-left:2.2em;break-inside:avoid}
.docs ol.legend li .k{position:absolute;left:0;top:.1em;display:grid;place-items:center;width:1.6em;height:1.6em;border-radius:50%;background:var(--blue);color:#fff;font-size:.8em;font-weight:800}
.docs table{width:100%;max-width:72ch;margin:.6em 0 1.3em;border-collapse:collapse;font-size:.92em}
.docs th,.docs td{padding:.7em .8em;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.docs th{color:var(--ink3);font-size:.9em;font-weight:800;white-space:nowrap}
.docs td.sw{width:2.4em}
.sw i{display:inline-block;width:1.8em;height:1.2em;border:2px solid #b91c1c;border-radius:.4em;background:#fee2e2;vertical-align:middle}
.sw i.cook{border-color:#d29a00;background:#fff4cc}
.sw i.served{border-color:#8a94a6;background:#f7f8fa}
.sw i.wait{border-style:dashed;border-color:#e0a58c;background:#fffaf7}
.sw i.free{border-color:#d8dfea;background:#fff;opacity:.7}
.docs details.faq{max-width:72ch;margin:0 0 .7em;padding:0 1.2em;border-radius:18px;background:var(--mist)}
.docs details.faq summary{display:flex;gap:.7em;padding:.9em 0;cursor:pointer;color:var(--ink);font-weight:800;list-style:none}
.docs details.faq summary::-webkit-details-marker{display:none}
.docs details.faq summary::before{content:"Q";flex:none;display:grid;place-items:center;width:1.7em;height:1.7em;margin-top:.05em;border-radius:50%;background:var(--ink);color:#fff;font-size:.82em;font-weight:800}
.docs details.faq[open] summary{border-bottom:1px solid #dde1e6}
.docs details.faq .a{padding:.8em 0 1em 2.4em}
.docs details.faq .a p:last-child{margin-bottom:0}
.docs .foot{margin-top:2.4em;padding-top:1.2em;border-top:1px solid var(--line);color:var(--ink2);font-size:.88em;line-height:1.7}
/* 확대 보기(라이트박스): 화면 캡처가 밝아서 ✕ ‹ › 가 흰 바탕에 묻히고, 긴 설명이 쪽수(5/45)와 겹치는 것을 막음 */
.lbox button{background:rgba(10,12,18,.66);box-shadow:0 0 0 1px rgba(255,255,255,.45)}
.lbox button:hover{background:rgba(10,12,18,.88)}
.lbox__x{right:12px;top:12px}
.lbox__c{top:16px;bottom:auto;left:16px;transform:none;padding:.3em .8em;border-radius:99px;background:rgba(10,12,18,.66);color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.45)}
/* 앱 화면(폰) 캡처: 가로로 나란히, 각 화면 아래에 설명 */
.docs .shots{display:grid;gap:clamp(14px,1.6vw,26px);margin:1.4em 0 2em;max-width:none}
.docs .shots--1{grid-template-columns:minmax(0,300px)}
.docs .shots--2{grid-template-columns:repeat(2,minmax(0,300px))}
.docs .shots--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.docs .shots--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.docs .ph{margin:0}
.docs .ph__f{overflow:hidden;border:.45em solid #0b0d12;border-radius:2.2em;background:#0b0d12;box-shadow:0 1.6em 2.6em -1.4em rgba(17,19,23,.45);font-size:clamp(6px,.62vw,9px)}
.docs .ph__f img{display:block;width:100%;height:auto;border:0;border-radius:1.6em;cursor:zoom-in}
.docs .ph figcaption{margin-top:.8em;color:var(--ink2);font-size:.84em;line-height:1.55}
@media (max-width:1023px){
  .docs .shots--3,.docs .shots--4{grid-template-columns:repeat(2,minmax(0,300px))}
  .docs .ph__f{font-size:clamp(7px,1.2vw,10px)}
}
@media (max-width:560px){
  .docs .shots--2,.docs .shots--3,.docs .shots--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .docs .ph__f{font-size:7px}
  /* 좁은 폰: 표 칸을 줄이고, 그래도 넘치면 표만 옆으로 밀어 보기(페이지 가로 스크롤 방지) */
  .docs table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:.86em}
  .docs table>tbody,.docs table>thead{display:table;width:100%}
  .docs th,.docs td{padding:.6em .45em}
}
@media print{.docs .ph{break-inside:avoid}}
.docs .phside{display:grid;grid-template-columns:minmax(190px,290px) minmax(0,1fr);gap:clamp(18px,2.4vw,40px);align-items:start;margin:1.4em 0 2em}
.docs .phside .ph__f{font-size:clamp(6px,.62vw,9px)}
.docs .phside figcaption{margin:0;align-self:center;color:var(--ink2);font-size:.95em;line-height:1.75}
@media (max-width:700px){.docs .phside{grid-template-columns:minmax(0,1fr)}.docs .phside .ph__f{max-width:280px}}
@media print{.docs .phside{break-inside:avoid}}
@media (max-width:1023px){
  .docs__wrap{grid-template-columns:minmax(0,1fr);gap:24px}
  .docs .toc{position:static;max-height:none;padding:6px 18px;border-radius:20px;background:var(--mist)}
  .docs .toc summary{display:flex;align-items:center;justify-content:space-between;padding:.8em 0;color:var(--ink);font-weight:800;cursor:pointer;list-style:none}
  .docs .toc summary::-webkit-details-marker{display:none}
  .docs .toc summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .3s}
  .docs .toc details[open] summary::after{transform:rotate(-135deg)}
  .docs .toc .cap{display:none}
  .docs .toc>details>ol{margin:0 0 10px}
  .docs .two{grid-template-columns:minmax(0,1fr)}
  .docs ol.legend{columns:1}
}
@media print{
  /* pages.css(브로슈어)가 모든 페이지에 가로 A4·여백 0을 걸어 두므로 설명서는 세로 A4·여백 12/14mm 로 되돌림 */
  @page{size:A4 portrait;margin:14mm 12mm}
  .pg-hero--doc>.wrap,.docs .wrap{width:100%}
  .skip{display:none!important}
  .docs .toc{display:none}
  .docs__wrap{display:block}
  .docs{padding-bottom:0;font-size:10.5pt;line-height:1.7}
  .pg-hero--doc{padding:0 0 14pt}
  .pg-hero--doc .crumbs,.pg-hero--doc .pg-hero__meta .btn{display:none}
  .pg-hero--doc .pg-hero__eyebrow{margin-bottom:6pt;font-size:10pt}
  .pg-hero--doc .pg-hero__title{max-width:none;font-size:24pt}
  .pg-hero--doc .pg-hero__lead{margin-top:8pt;font-size:11pt}
  .pg-hero--doc .pg-hero__meta{margin-top:10pt}
  section.ch{break-before:page;padding:0;border-top:0}
  section.ch:first-of-type{break-before:auto}
  .docs h2,.docs h3,.docs h4,.docs h2+.lead,.docs h3+p,.docs h4+p{break-after:avoid}
  .docs .note,.docs .shots,.docs ol.steps li,.docs tr,.docs details.faq{break-inside:avoid}
  .docs figure img{border-color:#999}
  /* 인쇄·PDF에서는 닫혀 있는 자주 묻는 문제의 답도 모두 펼쳐 보이게 */
  .docs details.faq::details-content{content-visibility:visible;display:block;height:auto}
  .docs details.faq:not([open])>summary{border-bottom:1px solid #dde1e6}
  /* 폰 화면: 종이 한 장에 들어가는 크기로 고정(세로 A4 안에서 4~2개를 한 줄에) */
  .docs .shots{gap:10px;margin:10pt 0 12pt}
  .docs .shots--1{grid-template-columns:minmax(0,170px)}
  .docs .shots--2{grid-template-columns:repeat(2,minmax(0,170px))}
  .docs .shots--3{grid-template-columns:repeat(3,minmax(0,170px))}
  .docs .shots--4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .docs .ph__f,.docs .phside .ph__f{max-width:none;font-size:5.5px;box-shadow:none}
  .docs .phside{grid-template-columns:190px minmax(0,1fr);gap:16px;margin:10pt 0 12pt}
}
