/* WebSquare AI 퍼블리싱 페이지 — 본문만 꾸민다. 공통 헤더·푸터는 site-chrome.css.
   문서 페이지(docs-library.css)와 같은 종이색·잉크색을 쓴다. */
.ws-body {
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  --ws-paper: #f5f2ec;
  --ws-ink: #17334b;
  --ws-muted: #566476;
  --ws-navy: #294762;
  --ws-clay: #b45137;
  --ws-rule: #ddd9d0;
  background: var(--ws-paper);
}
.ws-body *, .ws-body *::before, .ws-body *::after { box-sizing: border-box; }
.ws-skip { position: fixed; left: 20px; top: -80px; z-index: 10000; padding: 12px 18px; background: #fff; color: var(--ws-ink); }
.ws-skip:focus { top: 12px; }
.ws-width { width: 100%; padding-inline: clamp(22px, 5vw, 88px); }
.ws-page { color: var(--ws-ink); font-size: 16px; line-height: 1.65; }
.ws-page h1, .ws-page h2, .ws-page h3 { color: var(--ws-ink); word-break: keep-all; }
.ws-page a { color: inherit; text-decoration: none; }
.ws-page a:hover { color: var(--ws-clay); text-decoration: underline; text-underline-offset: 5px; }
.ws-page code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; padding: 1px 5px; border-radius: 4px; background: #ffffffb8; border: 1px solid var(--ws-rule); }

.ws-hero { padding-block: 40px 10px; }   /* padding 축약형이 .ws-width 의 좌우 여백을 0 으로 덮어 글이 왼쪽 끝에 붙었다(2026-10-08) */
.ws-eyebrow { margin: 0 0 18px; color: var(--ws-clay); font-size: 12px; font-weight: 750; letter-spacing: .18em; }
.ws-hero h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.2; letter-spacing: -.045em; font-weight: 750; margin: 0 0 22px; }
.ws-lead { max-width: 820px; margin: 0 0 26px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; color: var(--ws-muted); word-break: keep-all; }
.ws-lead b { color: var(--ws-ink); font-weight: 650; }
.ws-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--ws-rule); }
.ws-facts li { display: flex; align-items: baseline; gap: 10px; }
.ws-facts b { font-size: 30px; font-weight: 750; letter-spacing: -.04em; color: var(--ws-navy); }
.ws-facts span { font-size: 14px; color: var(--ws-muted); }

.ws-section-heading { margin-bottom: 22px; }
.ws-section-heading h2 { margin: 0 0 8px; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.35; font-weight: 720; letter-spacing: -.04em; }
.ws-section-heading > p { margin: 0; color: var(--ws-muted); font-size: 16px; word-break: keep-all; }

/* 실제 결과 — 숫자 4칸 + 점수 분포 막대(2026-10-09). 막대 폭은 각 li 의 --w */
.ws-result { padding-block: 40px 10px; }
.ws-result-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.ws-result-stats li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #ffffffb8; border: 1px solid var(--ws-rule); border-radius: 12px; }
.ws-result-stats b { font-size: 32px; font-weight: 750; letter-spacing: -.04em; line-height: 1.15; color: var(--ws-navy); }
.ws-result-stats li:first-child b { color: var(--ws-clay); }
.ws-result-stats small { font-size: 15px; font-weight: 650; color: var(--ws-muted); letter-spacing: 0; }
.ws-result-stats span { font-size: 14px; color: var(--ws-muted); word-break: keep-all; }
.ws-result-chart { margin: 0; padding: 20px 24px; background: #ffffffb8; border: 1px solid var(--ws-rule); border-radius: 12px; }
.ws-result-chart figcaption { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.ws-result-chart figcaption span { font-weight: 400; color: var(--ws-muted); font-size: 14px; }
.ws-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ws-bars li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 54px; align-items: center; gap: 12px; }
.ws-bar-label { font-size: 14px; color: var(--ws-muted); white-space: nowrap; }
.ws-bar { height: 22px; background: #eceae4; border-radius: 6px; overflow: hidden; }
.ws-bar i { display: block; height: 100%; width: var(--w); background: var(--ws-navy); border-radius: 6px; }
.ws-bars b { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ws-bar-fail .ws-bar i { background: #b8b2a6; }
.ws-bar-fail .ws-bar-label, .ws-bar-fail b { color: #8a8478; }
.ws-result-note { margin: 14px 0 0; font-size: 14px; color: var(--ws-muted); word-break: keep-all; max-width: 900px; }
@media (max-width: 880px) {
  .ws-result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-result-stats b { font-size: 26px; }
  .ws-bars li { grid-template-columns: 78px minmax(0, 1fr) 46px; gap: 8px; }
}

.ws-diagram { padding-block: 36px 20px; }
.ws-figure { margin: 0; padding: 26px clamp(12px, 3vw, 40px) 18px; background: #ffffffb8; border: 1px solid var(--ws-rule); border-radius: 14px; }
.ws-svg { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto; }
.ws-figure figcaption { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ws-muted); }
.ws-figure figcaption b { color: var(--ws-ink); font-weight: 650; }
/* SVG 안 글자·상자 — 생성물이 아니라 이 페이지 전용 스타일 */
.ws-svg text { font-family: var(--font-sans); }
.ws-svg .l { font-size: 11px; fill: var(--ws-muted); letter-spacing: .02em; }
.ws-svg .h { font-size: 13px; font-weight: 650; fill: #1b2a3a; }
.ws-svg .t { font-size: 12px; fill: #1b2a3a; }
.ws-svg .s { font-size: 11px; fill: #4a5a6c; }
.ws-svg .e { stroke: #8a94a3; stroke-width: 1; fill: none; }
.ws-svg .n rect { stroke-width: 1; }
.ws-svg .box rect { fill: #fbfaf7; stroke: #c9c3b7; }
.ws-svg .gray rect { fill: #eeeeea; stroke: #9aa0a6; }
.ws-svg .blue rect { fill: #e3eefb; stroke: #4a7fc1; }
.ws-svg .teal rect { fill: #dff3f1; stroke: #2f9c92; }
.ws-svg .amber rect { fill: #fff2cf; stroke: #d99a1c; }
.ws-svg .purple rect { fill: #ebe4fb; stroke: #7a5cc5; }
.ws-svg .coral rect { fill: #fde6dd; stroke: #d9663f; }
.ws-svg .green rect { fill: #e2f3e3; stroke: #3c9a56; }
.ws-svg .pink rect { fill: #fbe3ee; stroke: #c9548a; }

.ws-layers { padding-block: 30px 10px; }
.ws-layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ws-layer-grid.ws-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-hub { margin: 0; }   /* Agent Hub 구성도(agent.html) — 폭에 맞춰 줄고, 누르면 원본 크기 */
.ws-hub img { display: block; width: 100%; height: auto; border: 1px solid var(--ws-rule); border-radius: 12px; background: #fff; }   /* 카드가 1~2장인 구역(agent.html, 2026-10-12) — 3칸이면 오른쪽이 비어 보였다 */
.ws-layer { position: relative; padding: 22px 24px 22px 34px; background: #ffffffb8; border: 1px solid var(--ws-rule); border-radius: 12px; }
.ws-layer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; border-radius: 12px 0 0 12px; background: var(--ws-navy); }
.ws-layer-profile::before { background: var(--ws-clay); }
.ws-layer-tag { margin: 0 0 6px; font-size: 12px; font-weight: 750; letter-spacing: .14em; color: var(--ws-navy); }
.ws-layer-profile .ws-layer-tag { color: var(--ws-clay); }
.ws-layer h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.ws-layer p:last-child { margin: 0; font-size: 15px; color: var(--ws-muted); word-break: keep-all; }

.ws-flow { padding-block: 30px 40px; }
.ws-steps { margin: 0; padding: 0; list-style: none; counter-reset: ws; display: grid; gap: 10px; }
.ws-steps li { counter-increment: ws; display: grid; grid-template-columns: 44px 150px minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px 20px; background: #ffffff8c; border: 1px solid var(--ws-rule); border-radius: 10px; }
.ws-steps li::before { content: counter(ws, decimal-leading-zero); font-size: 13px; font-weight: 750; color: var(--ws-clay); letter-spacing: .06em; padding-top: 3px; }
.ws-steps b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.ws-steps span { font-size: 15px; color: var(--ws-muted); word-break: keep-all; }

.ws-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; margin-bottom: 40px; border-top: 1px solid var(--ws-rule); }
.ws-help p { margin: 0; font-size: 17px; font-weight: 650; }
.ws-help a { font-size: 15px; font-weight: 650; color: var(--ws-clay); }

@media (max-width: 880px) {
  .ws-layer-grid { grid-template-columns: 1fr; }
  .ws-layer-grid.ws-grid-2 { grid-template-columns: 1fr; }
  .ws-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .ws-steps span { grid-column: 2; }
  .ws-facts { gap: 12px 24px; }
  .ws-facts b { font-size: 24px; }
}

/* 실제 화면 그림(히어로 아래, 2026-10-08) — 칸 폭에 맞추고, 누르면 .ws-zoom 막에 원래 크기로 */
.ws-shot { margin: 26px 0 0; }
.ws-shot-link { display: block; border: 1px solid var(--ws-rule); border-radius: 12px; overflow: hidden; background: #0f1a24; box-shadow: 0 10px 30px rgba(23, 51, 75, .14); cursor: zoom-in; }
.ws-shot-link img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.ws-shot-link:hover img { transform: scale(1.01); }
.ws-shot figcaption { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ws-muted); word-break: keep-all; }
.ws-shot figcaption b { color: var(--ws-ink); font-weight: 650; }
.ws-zoom { position: fixed; inset: 0; z-index: 10001; overflow: auto; background: rgba(8, 14, 20, .9); cursor: zoom-out; display: flex; outline: none; }
.ws-zoom img { margin: auto; max-width: none; padding: 20px; box-sizing: content-box; }

/* 그림 모음(CutDrama 영상 종류 · 2026-11-19) — 그림 + 아래 이름표. 좁은 화면은 2칸 → 1칸 */
.ws-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.ws-gallery figure { margin: 0; }
.ws-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ws-rule); border-radius: 10px; background: #0f1a24; }
.ws-gallery figcaption { margin: 8px 2px 0; font-size: 14px; color: var(--ws-muted); word-break: keep-all; }
.ws-gallery figcaption b { color: var(--ws-ink); font-weight: 650; margin-right: 6px; }
.ws-hero-shot { margin: 30px 0 0; }
.ws-hero-shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(23, 51, 75, .16); }
.ws-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 22px; border-radius: 999px; background: var(--ws-clay); color: #fff !important; font-weight: 650; text-decoration: none !important; }
.ws-cta:hover { filter: brightness(1.08); }
@media (max-width: 880px) { .ws-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ws-gallery { grid-template-columns: 1fr; } }
