/* 블로그 (/news) — Worker가 그리는 목록·글 페이지 전용 스타일. index.html의 색·글꼴을 따릅니다. */
@font-face{font-family:'A2z';src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-5Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'A2z';src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-7Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'A2z';src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-8ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}

:root{
  --brand:#0e5a3c; --brand-600:#0b4a31; --brand-100:#e9f2ee; --brand-200:#c9e0d6;
  --news-bg:#f4f4f2; --news-ink:#201e1d; --news-muted:#6c6a68; --news-body:#33312f;
  --news-title:'A2z',"IBM Plex Sans KR",system-ui,sans-serif;
  --news-text:"IBM Plex Sans KR",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.news-page{margin:0;background:var(--news-bg);color:var(--news-ink);font-family:var(--news-text);line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.news-page a{color:inherit}
.news-page img{max-width:100%;height:auto}
.news-skip{position:absolute;left:-9999px;top:0;padding:8px 12px;background:var(--brand);color:#fff}
.news-skip:focus{left:16px;z-index:50}

/* Header (index.html의 redesign-header와 같은 모양) */
.news-header{position:sticky;top:0;z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px clamp(16px,4vw,56px);background:rgba(244,244,242,.93);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--brand)}
.news-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--news-ink)}
.news-brand-mark{display:block;width:34px;height:34px;object-fit:contain}
.news-brand-name{font-family:var(--news-title);font-weight:800;font-size:17px;letter-spacing:.02em;white-space:nowrap}
.news-nav{display:flex;gap:22px;margin-left:auto;font-size:14px;font-weight:600;white-space:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
.news-nav::-webkit-scrollbar{display:none}
.news-nav a{text-decoration:none;padding:2px 0;border-bottom:2px solid transparent}
.news-nav a:hover,.news-nav a[aria-current="page"]{color:var(--brand);border-bottom-color:var(--brand)}

/* Main */
.news-main{max-width:1180px;margin:0 auto;padding:clamp(20px,4vw,48px) clamp(16px,4vw,56px) clamp(48px,7vw,96px)}
.news-breadcrumb ol{display:flex;flex-wrap:wrap;gap:4px 0;margin:0 0 20px;padding:0;list-style:none;font-size:12.5px;color:var(--news-muted)}
.news-breadcrumb li{min-width:0}
.news-breadcrumb li+li::before{content:"›";margin:0 8px;color:#a3a09d}
.news-breadcrumb a{text-decoration:none}
.news-breadcrumb a:hover{color:var(--brand);text-decoration:underline}
.news-breadcrumb [aria-current]{color:var(--news-ink);overflow-wrap:anywhere}
.news-kick{margin:0;font-size:11px;font-weight:700;letter-spacing:.2em;color:var(--brand)}
.news-hero{padding-bottom:22px;border-bottom:2px solid var(--brand)}
.news-hero h1{margin:12px 0 0;font-family:var(--news-title);font-weight:800;font-size:clamp(32px,6vw,72px);line-height:1.1;letter-spacing:-.035em;color:var(--brand)}
.news-hero p:last-child{margin:14px 0 0;max-width:62ch;font-size:15px;color:var(--news-body)}

.news-filters{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 26px}
.news-chip{border:1px solid var(--brand);padding:7px 14px;font-size:13px;font-weight:600;text-decoration:none;color:var(--brand);background:transparent}
.news-chip:hover{background:var(--brand-100)}
.news-chip[data-on="1"]{background:var(--brand);color:#fff}

.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px;margin:0;padding:0;list-style:none}
.news-card{height:100%;background:#fff;border:1px solid var(--brand-200);transition:border-color .15s ease,transform .15s ease}
.news-card:hover{border-color:var(--brand);transform:translateY(-2px)}
.news-card-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.news-card-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--brand-100)}
.news-card-cover-empty{display:grid;place-items:center}.news-card-cover-empty img{width:72px;height:72px;object-fit:contain;opacity:.85}
.news-card-copy{display:flex;flex-direction:column;gap:8px;flex:1;padding:18px 18px 16px}
.news-card h2{margin:0;font-family:var(--news-title);font-weight:700;font-size:18px;line-height:1.4;letter-spacing:-.01em;color:var(--news-ink)}
.news-card p{margin:0;font-size:13.5px;line-height:1.65;color:var(--news-body);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-card time{margin-top:auto;font-size:12px;color:var(--news-muted)}
.news-cat{display:inline-block;align-self:flex-start;padding:3px 9px;background:var(--brand-100);color:var(--brand);font-size:11.5px;font-weight:700;letter-spacing:.04em;text-decoration:none}
a.news-cat:hover{background:var(--brand);color:#fff}
.news-empty{padding:48px 0;text-align:center;color:var(--news-muted)}

.news-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:36px}
.news-pagination a,.news-pagination span{min-width:40px;padding:8px 12px;border:1px solid var(--brand);text-align:center;font-size:13px;font-weight:600;text-decoration:none;color:var(--brand)}
.news-pagination a:hover{background:var(--brand-100)}
.news-pagination span[aria-current]{background:var(--brand);color:#fff}

/* Article */
.news-article{max-width:760px;margin:0 auto}
.news-article-head h1{margin:14px 0 0;font-family:var(--news-title);font-weight:800;font-size:clamp(28px,4.6vw,46px);line-height:1.2;letter-spacing:-.03em;color:var(--brand);overflow-wrap:anywhere}
.news-summary{margin:16px 0 0;font-size:17px;line-height:1.7;color:var(--news-body)}
.news-meta{margin:14px 0 0;padding-bottom:20px;border-bottom:1px solid var(--brand-200);font-size:13px;color:var(--news-muted)}
.news-cover{display:block;width:100%;margin:24px 0 8px;border:1px solid var(--brand-200)}
.news-body{margin-top:24px;font-size:16.5px;line-height:1.85;color:var(--news-body);overflow-wrap:anywhere}
.news-body h2{margin:44px 0 12px;font-family:var(--news-title);font-weight:800;font-size:clamp(22px,3vw,28px);line-height:1.35;color:var(--news-ink)}
.news-body h3{margin:34px 0 10px;font-family:var(--news-title);font-weight:700;font-size:20px;color:var(--news-ink)}
.news-body h4{margin:26px 0 8px;font-size:17px;font-weight:700;color:var(--news-ink)}
.news-body p{margin:0 0 18px}
.news-body ul,.news-body ol{margin:0 0 18px;padding-left:1.4em}
.news-body li{margin:4px 0}
.news-body a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.news-body strong{color:var(--news-ink)}
.news-body blockquote{margin:0 0 18px;padding:12px 18px;border-left:4px solid var(--brand);background:var(--brand-100);color:var(--news-ink)}
.news-body blockquote p:last-child{margin-bottom:0}
.news-body hr{margin:36px 0;border:0;border-top:1px solid var(--brand-200)}
.news-body img{display:block;margin:20px auto;border:1px solid var(--brand-200)}
.news-body code{padding:1px 6px;background:#ebeae6;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em}
.news-body pre{margin:0 0 20px;padding:16px 18px;overflow-x:auto;background:#1f2a24;color:#e8f0eb;font-size:13.5px;line-height:1.6}
.news-body pre code{padding:0;background:none;color:inherit;font-size:inherit}
.news-table{margin:0 0 20px;overflow-x:auto}
.news-table table{width:100%;border-collapse:collapse;font-size:14.5px;background:#fff}
.news-table th,.news-table td{padding:9px 12px;border:1px solid var(--brand-200);text-align:left;vertical-align:top}
.news-table th{background:var(--brand-100);color:var(--news-ink);font-weight:700}
.news-tags{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 0;padding:0;list-style:none}
.news-tags li{padding:4px 10px;border:1px solid var(--brand-200);font-size:12.5px;color:var(--news-muted)}
.news-article-foot{margin-top:40px;padding-top:24px;border-top:2px solid var(--brand)}
.news-button{display:inline-block;padding:12px 18px;background:var(--brand);color:#fff!important;font-size:13px;font-weight:700;letter-spacing:.04em;text-decoration:none}
.news-button:hover{background:var(--brand-600)}
.news-error{max-width:640px;margin:8vh auto;text-align:center}
.news-error h1{margin:12px 0;font-family:var(--news-title);font-weight:800;font-size:clamp(26px,4vw,40px);color:var(--brand)}
.news-error p{color:var(--news-body)}

/* Footer (index.html의 footer와 같은 모양) */
.news-footer{background:var(--brand);color:#fff;padding:clamp(36px,6vw,72px) clamp(16px,4vw,56px) 0;overflow:hidden}
.news-footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:clamp(18px,3vw,40px);max-width:1180px;margin:0 auto;padding-top:22px;border-top:2px solid rgba(255,255,255,.5);font-size:12px;line-height:1.8;color:rgba(255,255,255,.86)}
.news-footer-title{margin-bottom:8px;font-weight:700;letter-spacing:.14em;color:#fff}
.news-footer a{color:#fff}
.news-footer-mark{max-width:1180px;margin:clamp(24px,4vw,48px) auto 0;font-family:var(--news-title);font-weight:800;font-size:clamp(64px,20vw,300px);line-height:.9;letter-spacing:-.035em;white-space:nowrap}

@media (max-width:640px){
  .news-header{padding-top:10px;padding-bottom:10px}
  .news-nav{order:3;width:100%;margin-left:0;gap:16px;font-size:13.5px}
  .news-brand-name{font-size:15px}
  .news-body{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.news-card{transition:none}.news-card:hover{transform:none}}

/* 헤더 오른쪽 로그인 영역(랜딩과 같은 구성: 등급 배지 + Google 로그인 / 이름·로그아웃). js/site-auth.js 가 채운다. */
.news-auth{display:flex;align-items:center;gap:10px;min-height:32px;flex-shrink:0;margin-left:auto}
.news-plan{font-size:11px;font-weight:700;letter-spacing:.04em;padding:3px 9px;border-radius:999px;border:1px solid var(--brand-200);background:var(--brand-100);color:var(--brand)}
.news-plan[data-plan="pro"],.news-plan[data-plan="basic"]{background:var(--brand);color:#fff;border-color:var(--brand)}
.news-gsi{display:flex;align-items:center;min-height:32px;min-width:180px}
.news-login-link{font-size:13px;font-weight:600;color:var(--brand);text-decoration:none;padding:5px 12px;border:1px solid var(--brand-200);border-radius:999px}
.news-account{display:flex;align-items:center;gap:8px}
.news-avatar{width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700}
.news-account-copy{display:flex;flex-direction:column;line-height:1.15}
.news-account-name{font-size:13px}
.news-account-email{font-size:11px;color:var(--news-muted)}
.news-logout{font:inherit;font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:999px;border:1px solid var(--brand-200);background:#fff;color:var(--news-ink);cursor:pointer}
.news-logout:hover{border-color:var(--brand);color:var(--brand)}
@media (max-width:640px){.news-auth{margin-left:auto}.news-account-copy{display:none}.news-gsi{min-width:0}}
.news-start{margin:0 0 28px;padding:24px;border:1px solid #dbe2ee;border-radius:14px;background:#f8faff}.news-start h2{font-size:21px;margin:0 0 10px}.news-start p{line-height:1.7;margin:0 0 12px;color:#536174}.news-start ul{margin:0;padding-left:20px;display:grid;gap:9px;line-height:1.7}.news-start a{color:inherit;text-underline-offset:4px}
.news-related{margin-top:32px}
.news-meta a{color:inherit;text-underline-offset:3px}
.news-toc,.news-service{margin:28px 0;padding:20px 24px;border:1px solid var(--brand-200);background:var(--brand-100);line-height:1.7;overflow-wrap:anywhere}
.news-toc summary{cursor:pointer;font-weight:700;color:var(--news-ink)}
.news-toc ol{margin:14px 0 0;padding-left:1.4em;display:grid;gap:8px}
.news-toc a,.news-service a{color:var(--brand);text-underline-offset:3px}
.news-service p{margin:8px 0 12px;color:var(--news-body)}
.news-body h2[id]{scroll-margin-top:110px}

/* 사용법 전자책 (/guide) — 정적 빌드 페이지 전용. 색·글꼴·헤더·푸터는 news.css 를 그대로 씁니다. */


: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)}}

.guide-help .g-help-header .news-nav a{white-space:nowrap}
.guide-help .g-help-footer .news-footer-grid{grid-template-columns:1fr}
