/* 사용법 전자책 (/guide) — 정적 빌드 페이지 전용. 색·글꼴·헤더·푸터는 news.css 를 그대로 씁니다. */
@import url("news.css?v=20261015b");

:root{
  --g-line:#dcdad5; --g-card:#fff; --g-code-bg:#1f2a24; --g-code-ink:#e8f0eb;
  --g-tip:#0e5a3c; --g-tip-bg:#e9f2ee; --g-warn:#b4530a; --g-warn-bg:#fdf1e6; --g-info:#55524f; --g-info-bg:#efeeeb;
  --g-head-h:64px; --g-radius:10px;
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.guide-page{--news-text:"IBM Plex Sans KR",system-ui,-apple-system,"Segoe UI","Malgun Gothic",sans-serif}
.guide-page button{font:inherit;cursor:pointer}

/* ---------- 표지 ---------- */
.g-hero{max-width:820px;margin:0 auto;padding:clamp(16px,5vw,56px) 0 clamp(28px,5vw,48px);text-align:center}
.g-hero h1{margin:12px 0 0;font-family:var(--news-title);font-weight:800;font-size:clamp(30px,6vw,60px);line-height:1.12;letter-spacing:-.035em;color:var(--brand);overflow-wrap:anywhere}
.g-hero-lead{margin:14px auto 26px;max-width:46ch;font-size:16px;color:var(--news-body)}
.g-hero .g-search{text-align:left}
.g-hero .g-search-input{height:60px;font-size:17px;border-width:2px}
.g-apps{border-top:2px solid var(--brand);padding-top:22px}
.g-apps-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.g-apps-head h2{margin:0;font-family:var(--news-title);font-weight:800;font-size:clamp(20px,3vw,26px)}
.g-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px;margin:0;padding:0;list-style:none}
.g-card{display:flex;flex-direction:column;background:var(--g-card);border:1px solid var(--brand-200);transition:border-color .15s ease,transform .15s ease}
.g-card:hover{border-color:var(--brand);transform:translateY(-2px)}
.g-card-link{display:flex;flex-direction:column;flex:1;text-decoration:none;color:inherit}
.g-card-cover{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top;background:var(--brand-100);border-bottom:1px solid var(--brand-200)}
.g-card-cover--empty{display:grid;place-items:center}.g-card-cover--empty img{width:72px;height:72px;object-fit:contain}
.g-card-copy{display:flex;flex-direction:column;gap:6px;padding:18px 18px 8px}
.g-card-no{font-size:11.5px;font-weight:700;letter-spacing:.06em;color:var(--brand)}
.g-card-name{font-family:var(--news-title);font-weight:800;font-size:20px;line-height:1.3}
.g-card-tag{font-size:14px;line-height:1.6;color:var(--news-body)}
.g-card-actions{display:flex;gap:8px;padding:12px 18px 18px}
.g-card-read{flex:1;padding:10px 14px;background:var(--brand);color:#fff!important;text-align:center;font-size:13.5px;font-weight:700;text-decoration:none}
.g-card-read:hover{background:var(--brand-600)}

/* ---------- 검색 ---------- */
.g-search{position:relative;margin:0 0 24px}
.g-search-field{display:block}
.g-search-input{width:100%;height:48px;padding:0 16px 0 44px;border:1px solid var(--brand);border-radius:0;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230e5a3c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='m13 13 5 5'/%3E%3C/svg%3E") no-repeat 15px center;font:inherit;font-size:15.5px;color:var(--news-ink);-webkit-appearance:none;appearance:none}
.g-search-input:focus{outline:3px solid var(--brand-200);outline-offset:0}
.g-only{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;color:var(--news-muted);cursor:pointer}
.g-only input{accent-color:var(--brand)}
.g-results{margin:8px 0 0;padding:6px;list-style:none;background:#fff;border:1px solid var(--brand-200);box-shadow:0 10px 30px rgba(0,0,0,.08)}
.g-results li a{display:block;padding:10px 12px;text-decoration:none;border-radius:6px}
.g-results li a:hover,.g-results li a:focus{background:var(--brand-100);outline:none}
.g-res-app{display:block;font-size:11.5px;font-weight:700;color:var(--brand);letter-spacing:.04em}
.g-res-title{display:block;font-weight:700;font-size:15px;color:var(--news-ink)}
.g-res-text{display:block;font-size:13px;line-height:1.55;color:var(--news-muted);overflow-wrap:anywhere}
.g-results mark{background:#ffe9a8;color:inherit;padding:0 1px}
.g-res-empty{padding:12px;font-size:14px;color:var(--news-muted)}

/* ---------- 앱 장 배치 ---------- */
.g-layout{display:grid;grid-template-columns:260px minmax(0,760px);justify-content:center;gap:clamp(24px,4vw,56px);max-width:1180px;margin:0 auto;padding:clamp(20px,4vw,40px) clamp(16px,4vw,56px) clamp(48px,7vw,96px)}
.g-side{position:relative}
.g-toc{position:sticky;top:calc(var(--g-head-h) + 20px);max-height:calc(100vh - var(--g-head-h) - 40px);overflow:auto;padding:4px 2px 16px 0}
.g-toc-app{display:block;margin-bottom:12px;padding-bottom:10px;border-bottom:2px solid var(--brand);font-family:var(--news-title);font-weight:800;font-size:18px;color:var(--brand);text-decoration:none}
.g-toc-list{margin:0 0 18px;padding:0;list-style:none;counter-reset:none}
.g-toc-list a{display:flex;gap:10px;align-items:baseline;padding:7px 10px;border-left:3px solid transparent;font-size:14px;line-height:1.45;color:var(--news-body);text-decoration:none}
.g-toc-list a:hover{background:var(--brand-100)}
.g-toc-list a[aria-current="true"]{border-left-color:var(--brand);background:var(--brand-100);color:var(--brand);font-weight:700}
.g-toc-no{flex:none;min-width:1.4em;font-size:12px;font-weight:700;color:var(--news-muted)}
.g-toc-back{display:block;margin-top:14px;font-size:13px;color:var(--news-muted);text-decoration:none}
.g-toc-back:hover{color:var(--brand)}
.g-main{min-width:0}
.g-main .news-breadcrumb ol{margin-bottom:14px}

.g-mbar{display:none}

/* 장 머리 */
.g-chapter{padding-bottom:28px;margin-bottom:12px;border-bottom:2px solid var(--brand);scroll-margin-top:calc(var(--g-head-h) + 12px)}
.g-chapter h1{margin:10px 0 0;font-family:var(--news-title);font-weight:800;font-size:clamp(28px,4.6vw,46px);line-height:1.18;letter-spacing:-.03em;color:var(--brand);word-break:keep-all;overflow-wrap:anywhere}
.g-chapter-tag{margin:12px 0 0;font-size:18px;line-height:1.6;color:var(--news-ink)}
.g-chapter-actions{margin-top:18px}

/* 요약 카드 */
.summary-card{margin:20px 0;padding:16px 18px;background:#fff;border:1px solid var(--brand-200);border-left:4px solid var(--brand)}
dl.summary-card div{display:grid;grid-template-columns:5em minmax(0,1fr);gap:12px;padding:4px 0}
dl.summary-card dt{font-weight:700;color:var(--brand);font-size:14px}
dl.summary-card dd{margin:0;font-size:15px;color:var(--news-body)}
div.summary-card>strong{display:block;margin-bottom:6px;color:var(--brand)}
.summary-card p:last-child,.summary-card ul:last-child{margin-bottom:0}

/* 절 */
.g-sec{padding:36px 0 8px;scroll-margin-top:calc(var(--g-head-h) + 12px)}
.g-sec+.g-sec{border-top:1px solid var(--brand-200)}
.g-sec-head{display:flex;align-items:flex-start;gap:12px}
.g-sec h2,.p-sec h2{flex:1;min-width:0;margin:0;font-family:var(--news-title);font-weight:800;font-size:clamp(23px,3.2vw,30px);line-height:1.3;color:var(--news-ink);overflow-wrap:anywhere}
.g-sec-no{display:inline-grid;place-items:center;width:1.5em;height:1.5em;margin-right:.45em;border-radius:50%;background:var(--brand);color:#fff;font-size:.6em;vertical-align:.25em}
.g-copy-link{flex:none;margin-top:4px;padding:6px 10px;border:1px solid var(--brand-200);background:#fff;color:var(--brand);font-size:12.5px;font-weight:600;white-space:nowrap}
.g-copy-link:hover{border-color:var(--brand)}
.g-copy-link[data-done]{background:var(--brand);color:#fff;border-color:var(--brand)}
.g-sec-meta{margin:8px 0 0;font-size:12.5px;color:var(--news-muted)}
.g-sec-summary{margin:12px 0 0;padding:12px 16px;background:var(--brand-100);font-size:15.5px;line-height:1.65;color:var(--news-ink)}

/* 본문 */
.g-body{margin-top:20px;font-size:16.5px;line-height:1.85;color:var(--news-body);overflow-wrap:anywhere}
.g-body h3{margin:36px 0 10px;font-family:var(--news-title);font-weight:700;font-size:21px;line-height:1.4;color:var(--news-ink)}
.g-body h4{margin:26px 0 8px;font-size:17px;font-weight:700;color:var(--news-ink)}
.g-body p{margin:0 0 18px}
.g-body ul{margin:0 0 18px;padding-left:1.4em}
.g-body li{margin:4px 0}
.g-body a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.g-body strong{color:var(--news-ink)}
.g-body blockquote{margin:0 0 18px;padding:12px 18px;border-left:4px solid var(--brand);background:var(--brand-100);color:var(--news-ink)}
.g-body blockquote p:last-child{margin-bottom:0}
.g-body hr{margin:36px 0;border:0;border-top:1px solid var(--brand-200)}
.g-body code{padding:1px 6px;background:#ebeae6;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;border-radius:4px}
.g-body img{max-width:100%;height:auto}
.broken-link{color:#b42318;text-decoration:line-through}

/* 단계 목록 */
ol.steps{margin:0 0 22px;padding:0;list-style:none;counter-reset:step}
ol.steps>li{position:relative;margin:0;padding:2px 0 18px 54px;counter-increment:step}
ol.steps>li::before{content:counter(step);position:absolute;left:0;top:0;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;font-family:var(--news-title);font-weight:800;font-size:17px;line-height:1}
ol.steps>li:not(:last-child)::after{content:"";position:absolute;left:17px;top:42px;bottom:4px;width:2px;background:var(--brand-200)}
ol.steps>li>p:first-child{margin-top:4px}
ol.steps>li>:last-child{margin-bottom:0}
ol.steps ol.steps>li{padding-left:44px}
ol.steps ol.steps>li::before{width:28px;height:28px;font-size:14px}
ol.steps ol.steps>li::after{left:13px;top:34px}

/* 캡처 틀 */
.shot{margin:22px 0 26px}
.shot-frame{position:relative;background:#fff;border:1px solid var(--g-line);border-radius:var(--g-radius);overflow:hidden;box-shadow:0 14px 34px -14px rgba(20,40,30,.28),0 2px 6px rgba(0,0,0,.05)}
.shot-media{position:relative;line-height:0}
.shot-media img{display:block;width:100%;height:auto;margin:0;border:0}
.shot-bar{display:flex;align-items:center;gap:12px;height:34px;padding:0 12px;background:#efeeea;border-bottom:1px solid var(--g-line);line-height:1}
.shot-dots{display:flex;gap:6px;flex:none}
.shot-dots i{width:10px;height:10px;border-radius:50%;background:#d4d1cb}
.shot-dots i:nth-child(1){background:#ef6a5e}.shot-dots i:nth-child(2){background:#f4bf4f}.shot-dots i:nth-child(3){background:#61c454}
.shot-url{flex:1;min-width:0;height:22px;padding:0 10px;border-radius:6px;background:#fff;font:12px/22px ui-monospace,SFMono-Regular,Consolas,monospace;color:#6c6a68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shot--phone .shot-frame{width:60%;max-width:340px;margin:0 auto;padding:10px;border-radius:36px;background:#1d1d1f;border:0}
.shot--phone .shot-media{border-radius:27px;overflow:hidden}
.shot--phone .shot-frame::before{content:"";position:absolute;z-index:2;top:16px;left:50%;width:30%;height:20px;transform:translateX(-50%);border-radius:12px;background:#1d1d1f}
.shot figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 14px;margin-top:10px;font-size:13.5px;line-height:1.5;color:var(--news-muted)}
.shot--phone figcaption{justify-content:center;text-align:center}
.shot-cap{color:var(--news-body)}
.shot-date{font-size:12px}
.pin{position:absolute;z-index:3;display:grid;place-items:center;width:28px;height:28px;margin:-14px 0 0 -14px;border:2px solid #fff;border-radius:50%;background:var(--brand);color:#fff;font:800 14px/1 var(--news-text);box-shadow:0 2px 8px rgba(0,0,0,.3)}

/* 콜아웃 */
.callout{margin:0 0 20px;padding:14px 18px;border-left:4px solid var(--g-info);background:var(--g-info-bg);border-radius:0 8px 8px 0;font-size:15.5px;line-height:1.7}
.callout>strong{display:block;margin-bottom:4px;color:var(--g-info)}
.callout>strong::before{margin-right:6px}
.callout--tip{border-color:var(--g-tip);background:var(--g-tip-bg)}.callout--tip>strong{color:var(--g-tip)}.callout--tip>strong::before{content:"✔"}
.callout--warn{border-color:var(--g-warn);background:var(--g-warn-bg)}.callout--warn>strong{color:var(--g-warn)}.callout--warn>strong::before{content:"!"}
.callout--info>strong::before{content:"i";font-style:italic}
.callout>:last-child{margin-bottom:0}

/* 비교표 */
.table-wrap{margin:0 0 22px;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--brand-200)}
table.compare{width:100%;min-width:420px;border-collapse:separate;border-spacing:0;font-size:14.5px;line-height:1.55;background:#fff}
.compare th,.compare td{padding:10px 12px;border-bottom:1px solid var(--brand-200);border-right:1px solid var(--brand-200);text-align:left;vertical-align:top}
.compare thead th{background:var(--brand-100);color:var(--news-ink);font-weight:700}
.compare tbody th{position:sticky;left:0;z-index:1;background:#f8f8f6;font-weight:700;color:var(--news-ink)}
.compare thead th:first-child{position:sticky;left:0;z-index:2}
.compare tr:last-child>*{border-bottom:0}
.compare tr>:last-child{border-right:0}

/* 코드 상자 */
.code{position:relative;margin:0 0 20px}
.code pre{margin:0;padding:16px 18px;padding-right:72px;overflow-x:auto;background:var(--g-code-bg);color:var(--g-code-ink);border-radius:8px;font:13.5px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.code pre code{padding:0;background:none;color:inherit;font-size:inherit;white-space:pre}
.code .copy{position:absolute;top:8px;right:8px;padding:5px 10px;border:1px solid rgba(255,255,255,.35);border-radius:6px;background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:600}
.code .copy:hover{background:rgba(255,255,255,.18)}
.code .copy[data-done]{background:#fff;color:var(--brand)}

/* FAQ */
.faq{margin:0 0 10px;background:#fff;border:1px solid var(--brand-200)}
.faq summary{padding:14px 44px 14px 16px;position:relative;font-weight:700;color:var(--news-ink);cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:20px;color:var(--brand)}
.faq[open] summary::after{content:"−"}
.faq-body{padding:0 16px 4px}

/* 다음 단계 카드 */
.g-next{display:flex;flex-direction:column;gap:2px;margin:26px 0 8px;padding:16px 48px 16px 18px;position:relative;background:#fff;border:1px solid var(--brand);text-decoration:none;color:var(--news-ink)}
.g-next::after{content:"→";position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:22px;color:var(--brand)}
.g-next:hover{background:var(--brand-100)}
.g-next-label{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--brand)}
.g-next strong{font-size:16.5px}

/* PDF 버튼 */
.g-pdf{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--brand);background:#fff;color:var(--brand)!important;font-size:13.5px;font-weight:700;text-decoration:none;white-space:nowrap}
.g-pdf::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1h2v8l3-3 1.4 1.4L8 12.8 2.6 7.4 4 6l3 3zM2 14h12v2H2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1h2v8l3-3 1.4 1.4L8 12.8 2.6 7.4 4 6l3 3zM2 14h12v2H2z'/%3E%3C/svg%3E") center/contain no-repeat}
.g-pdf:hover{background:var(--brand-100)}
.g-pdf--all{background:var(--brand);color:#fff!important}
.g-pdf--all:hover{background:var(--brand-600)}
.g-card-actions .g-pdf{padding:10px 14px}
.g-toc .g-pdf{width:100%;justify-content:center}

/* 하단 시트(휴대폰 목차) */
.g-sheet{width:100%;max-width:100%;max-height:80vh;margin:auto 0 0;padding:0 0 calc(16px + env(safe-area-inset-bottom));border:0;border-radius:18px 18px 0 0;background:#fff;color:var(--news-ink);overflow:auto}
.g-sheet::backdrop{background:rgba(20,20,20,.45)}
.g-sheet-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px 12px;background:#fff;border-bottom:1px solid var(--brand-200)}
.g-sheet-close{padding:6px 12px;border:1px solid var(--brand-200);background:#fff;color:var(--brand);font-weight:600}
.g-sheet .g-toc-list{margin:8px 8px 14px}
.g-sheet .g-toc-list a{padding:11px 12px;font-size:15px}
.g-sheet .g-pdf{margin:0 18px}

/* ---------- 휴대폰·태블릿 ---------- */
@media (max-width:1023px){
  :root{--g-head-h:48px}
  .guide-app .g-header{position:static}
  .g-mbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:8px;height:48px;padding:0 clamp(16px,4vw,56px);background:rgba(244,244,242,.96);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--brand-200)}
  .g-mbar-name{flex:1;min-width:0;font-family:var(--news-title);font-weight:800;font-size:16px;color:var(--brand);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .g-mbar-btn{flex:none;padding:6px 12px;border:1px solid var(--brand);background:#fff;color:var(--brand);font-size:13px;font-weight:700}
  .g-layout{display:block;padding-top:18px}
  .g-side{display:none}
}
@media (max-width:640px){
  .g-hero{text-align:left}
  .g-hero-lead{margin-left:0}
  .g-hero .g-search-input{height:54px;font-size:16px}
  .g-search-input{font-size:16px}
  .g-body{font-size:16px}
  .g-sec-head{flex-wrap:wrap}
  .g-copy-link{margin-top:0}
  ol.steps>li{padding-left:46px}
  ol.steps>li::before{width:32px;height:32px;font-size:15px}
  ol.steps>li:not(:last-child)::after{left:15px;top:38px}
  .shot--phone .shot-frame{width:70%;padding:8px;border-radius:30px}
  .shot--phone .shot-media{border-radius:23px}
  .shot--phone .shot-frame::before{top:13px;height:16px}
  .shot-bar{height:28px;gap:8px;padding:0 8px}.shot-dots i{width:8px;height:8px}.shot-url{height:18px;font-size:10.5px;line-height:18px}
  .pin{width:22px;height:22px;margin:-11px 0 0 -11px;font-size:12px}
}
@media (prefers-reduced-motion:reduce){.g-card{transition:none}.g-card:hover{transform:none}}

/* ---------- 브라우저 인쇄(웹 페이지에서 Ctrl+P) ---------- */
@media print{
  .news-header,.news-footer,.g-mbar,.g-side,.g-search,.g-copy-link,.g-next,.g-pdf,.news-skip,.news-breadcrumb,.g-sheet,.code .copy{display:none!important}
  body.news-page{background:#fff}
  .g-layout{display:block;padding:0}
  .g-sec{break-before:page}
  .shot,.callout,.table-wrap,.code,ol.steps>li{break-inside:avoid}
  .shot-frame{box-shadow:none}
  .faq-body{display:block}
  a{color:inherit}
}

/* ---------- 인쇄 원본 페이지(/guide/<앱>/print, PDF 원본) ---------- */
@page{size:A4;margin:16mm 14mm}
body.g-print{margin:0;background:#fff;color:var(--news-ink);font-family:"IBM Plex Sans KR","Malgun Gothic",system-ui,sans-serif;line-height:1.7;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.g-print .p-cover,.g-print .p-toc,.g-print .p-sec,.g-print .p-app{break-before:page;page-break-before:always}
.g-print>section:first-child,.g-print .p-app>.p-cover{break-before:auto;page-break-before:auto}
.g-print .p-app{break-before:page;page-break-before:always}
.g-print .p-app>.p-cover{break-before:avoid}
.p-cover{display:flex;flex-direction:column;justify-content:center;min-height:240mm;padding:0 6mm}
.p-cover h1{margin:10px 0 0;font-family:var(--news-title);font-weight:800;font-size:40px;line-height:1.15;letter-spacing:-.03em;color:var(--brand)}
.p-cover-tag{margin:14px 0 0;font-size:18px;color:var(--news-ink)}
.p-cover-aud{margin:6px 0 0;font-size:14px;color:var(--news-muted)}
.p-cover .shot{margin:26px 0 0}
.p-cover-meta{margin-top:auto;padding-top:18px;border-top:2px solid var(--brand);font-size:12.5px;color:var(--news-muted)}
.p-toc h2{margin:0 0 16px;font-family:var(--news-title);font-weight:800;font-size:26px;color:var(--brand)}
.p-toc ol{margin:0;padding-left:1.4em;font-size:15px}
.p-toc li{margin:0 0 10px}
.p-toc li span{display:block;font-size:12.5px;color:var(--news-muted)}
.p-toc a{color:var(--news-ink);text-decoration:none}
.p-toc ol ol{margin-top:6px;font-size:14px}
.p-sec h2{display:block;margin-bottom:4px;font-size:25px;padding-bottom:8px;border-bottom:2px solid var(--brand)}
.g-print .g-body{font-size:13.5px;line-height:1.75}
.g-print .g-body h3{font-size:17px;margin-top:22px}
.g-print .g-sec-summary{font-size:13.5px}
.g-print .shot{break-inside:avoid;margin:14px 0 18px}
.g-print .shot--browser .shot-frame{box-shadow:none}
.g-print .shot--phone .shot-frame{width:42%}
.g-print .shot .shot-frame{width:var(--shot-print-width,100%);max-width:100%;margin-left:auto;margin-right:auto}
.g-print .shot--phone .shot-frame{max-width:42%}
.g-print .callout,.g-print .table-wrap,.g-print .code,.g-print .faq,.g-print ol.steps>li{break-inside:avoid}
.g-print .table-wrap{overflow:visible}
.g-print table.compare{min-width:0}
.g-print .compare tbody th{position:static}
.g-print .code pre{white-space:pre-wrap;word-break:break-all;padding-right:18px}
.g-print .code .copy{display:none}
.g-print .faq summary::after{content:none}
.g-print .g-body a{color:var(--brand)}
@media screen{body.g-print{max-width:210mm;margin:0 auto;padding:16mm 14mm;background:#fff}}

/* ---------- 목차 카드: 책 표지 모양 ---------- */
.g-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,186px),1fr));gap:26px 20px;align-items:start}
.g-book-card{background:transparent;border:0;overflow:visible}
.g-book-card:hover{border:0;transform:none}
.g-book-card .g-card-link{padding:6px 10px 0 4px}
.g-book{position:relative;display:block;width:100%;aspect-ratio:3/4.2;--book-a:#0e5a3c;--book-b:#1d7a55;--book-ink:#fff;--book-spine:#07301f;
  transform:perspective(900px) rotateY(-6deg);transform-origin:left center;transition:transform .2s ease,filter .2s ease;
  filter:drop-shadow(10px 12px 16px rgba(20,30,25,.28))}
.g-book-card:hover .g-book,.g-card-link:focus-visible .g-book{transform:perspective(900px) rotateY(-2deg) translateY(-4px);filter:drop-shadow(12px 16px 20px rgba(20,30,25,.34))}
.g-book-spine{position:absolute;inset:0 auto 0 0;width:14px;border-radius:3px 0 0 3px;background:linear-gradient(90deg,var(--book-spine) 0%,color-mix(in srgb,var(--book-spine) 60%,var(--book-a)) 55%,rgba(0,0,0,.28) 100%)}
.g-book-cover{position:absolute;inset:0 0 0 14px;display:flex;flex-direction:column;gap:6px;padding:16px 14px 12px;border-radius:0 6px 6px 0;overflow:hidden;color:var(--book-ink);
  background:linear-gradient(160deg,var(--book-a) 0%,var(--book-b) 70%,color-mix(in srgb,var(--book-b) 80%,#fff) 100%);
  box-shadow:inset 6px 0 10px -6px rgba(0,0,0,.45),inset -2px 0 0 rgba(255,255,255,.12)}
.g-book-cover::after{content:"";position:absolute;right:0;top:0;bottom:0;width:7px;background:repeating-linear-gradient(180deg,#fff 0 1px,#e6e3dc 1px 2px);opacity:.9}
.g-book-series{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.g-book-title{font-family:var(--news-title);font-weight:800;font-size:clamp(16px,1.6vw,20px);line-height:1.25;letter-spacing:-.02em;color:var(--book-ink);word-break:keep-all}
.g-book-sub{font-size:11.5px;line-height:1.45;opacity:.9;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.g-book-art{display:block;margin-top:auto;aspect-ratio:16/10;background:#fff;padding:4px;border-radius:3px;box-shadow:0 6px 14px rgba(0,0,0,.25)}
.g-book-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.g-book-art .g-book-art--empty{object-fit:contain;padding:18%}
.g-book-foot{display:flex;justify-content:space-between;gap:8px;font-size:9.5px;letter-spacing:.04em;opacity:.8;white-space:nowrap;overflow:hidden}
.g-book-card .g-card-actions{padding:14px 10px 0 4px}
[data-app="solution"] .g-book{--book-a:#0e5a3c;--book-b:#1f7f5a;--book-spine:#072d1e}
[data-app="pixel"] .g-book{--book-a:#0b3d3b;--book-b:#167a74;--book-spine:#062221}
[data-app="poster"] .g-book{--book-a:#1b3a8a;--book-b:#2f6fe0;--book-spine:#0e1f4d}
[data-app="cardnews"] .g-book{--book-a:#3b2a86;--book-b:#6b5bd6;--book-spine:#1f1550}
[data-app="edu"] .g-book{--book-a:#0f3f52;--book-b:#1f7f9c;--book-spine:#07222d}
@media (max-width:640px){.g-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.g-book{transform:perspective(700px) rotateY(-5deg)}.g-book-title{font-size:15.5px}.g-book-sub{font-size:11px;-webkit-line-clamp:2}.g-book-foot span:last-child{display:none}}
@media (prefers-reduced-motion:reduce){.g-book{transition:none}.g-book-card:hover .g-book{transform:perspective(900px) rotateY(-6deg)}}
