/* What's New (/en/whats-new/) 전용 — 공용 styles.css 는 건드리지 않는다.
   승인 목업(2026-11-04 알렌님) 그대로, 색·글꼴·둥글기는 사이트 토큰을 쓴다.
   사이트에 없는 토큰 3개(--wn-tint-all*, --wn-skeleton)만 여기서 정의한다. */
.wn-page {
  --wn-tint-all: #efebe4; --wn-tint-all-text: #4d463c; --wn-skeleton: #ece7df;
}
[data-theme="dark"] .wn-page {
  --wn-tint-all: #1c1b19; --wn-tint-all-text: #c9c2b8; --wn-skeleton: #1f1d1b;
}

/* 제품 필터 */
.wn-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.wn-filter button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--fg-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.wn-filter button:hover { color: var(--fg); }
.wn-filter button i { width: 8px; height: 8px; border-radius: 50%; }
.wn-filter button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.wn-page .dot-xmanager { background: var(--brand-xmanager); }
.wn-page .dot-xshell { background: var(--brand-xshell); }
.wn-page .dot-xftp { background: var(--brand-xftp); }
.wn-page .dot-xlpd { background: var(--brand-xlpd); }
.wn-page .dot-all, .wn-page .dot-powersuite, .wn-page .dot-xshellplus { background: var(--fg-subtle); }

/* 2단 — .feature-page-body 와 같은 틀, 목차 칸만 280px */
.wn-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; padding: 32px 0 80px; }
.wn-main { min-width: 0; }  /* 그림은 칸 전체(~900px), 글은 65ch 로 따로 묶는다 */

/* 목차: 날짜(작은 회색) 아래 그 업데이트의 기능 제목 */
.wn-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 22px; }
.wn-toc .toc-date { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--fg-subtle); padding: 0 12px 6px; font-variant-numeric: tabular-nums; }
.wn-toc .toc-date:hover { color: var(--fg); }
.wn-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.wn-toc li a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; line-height: 1.3; color: var(--fg-muted); border-radius: var(--radius-sm); transition: background-color 0.15s ease, color 0.15s ease; }
.wn-toc li a:hover { color: var(--fg); background: color-mix(in oklch, var(--bg-elev) 60%, transparent); }
.wn-toc li a.active { color: var(--fg); background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; }
.wn-toc .dots { display: inline-flex; gap: 3px; width: 24px; flex-shrink: 0; }
.wn-toc .dots i { width: 7px; height: 7px; border-radius: 50%; }
.wn-toc .toc-more a { font-size: 13px; }
.wn-toc-mobile { display: none; }
@media (max-width: 900px) {
  .wn-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wn-body > .wn-toc { display: none; }
  .wn-toc-mobile { display: block; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elev); margin-bottom: 32px; }
  .wn-toc-mobile summary { padding: 12px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
  .wn-toc-mobile .wn-toc { position: static; max-height: 55vh; padding: 4px 8px 12px; }
}

/* 날짜별 업데이트 */
.wn-update { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 48px; }
.wn-update:last-of-type { border-bottom: 0; margin-bottom: 0; }
.wn-head h2 { font-weight: 800; font-size: 32px; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 12px; }
.wn-builds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--fg-muted); }
.wn-builds li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wn-builds li i { width: 7px; height: 7px; border-radius: 50%; }
.wn-builds li b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 제품 태그 — 사이트 틴트 토큰 */
.wn-page .tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wn-page .ptag { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.wn-page .p-xmanager { background: var(--tint-xmanager); color: var(--tint-xmanager-text); }
.wn-page .p-xshell { background: var(--tint-xshell); color: var(--tint-xshell-text); }
.wn-page .p-xftp { background: var(--tint-xftp); color: var(--tint-xftp-text); }
.wn-page .p-xlpd { background: var(--tint-xlpd); color: var(--tint-xlpd-text); }
.wn-page .p-all { background: var(--wn-tint-all); color: var(--wn-tint-all-text); }

/* 기능 — 제목 먼저, 그 아래 그림(있을 때만), 그 아래 글 */
.wn-feat { display: flex; flex-direction: column; gap: 18px; }
.wn-feat-head { display: flex; flex-direction: column; gap: 8px; max-width: 65ch; }
.wn-feat h3, .wn-more h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
.wn-note { margin: 0; font-size: 13px; color: var(--fg-subtle); }
/* 그림 — 기능 부분만 잘라 크기가 제각각이라 고정 틀 없이 원래 크기, 칸보다 넓을 때만 줄인다(키우지 않음) */
.wn-shot { margin: 0; max-width: 100%; }
/* 테두리는 그림에 딱 붙는 링크에 둔다 — 그림에 두면 border-box 라 원래 크기 그림도 2px 줄어 '줄어든 그림' 으로 잡힌다 */
.wn-shot a { display: block; width: fit-content; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: default; }
.wn-shot a.scaled { cursor: zoom-in; }
.wn-shot img { display: block; max-width: 100%; height: auto; }
.wn-lightbox { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; overflow: auto; cursor: zoom-out; }
.wn-lightbox::backdrop { background: rgb(0 0 0 / 0.8); }
.wn-lightbox img { display: block; margin: auto; max-width: none; position: relative; top: 50%; transform: translateY(-50%); }
.wn-lightbox.tall img { top: 0; transform: none; }
.wn-text code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.92em; padding: 1px 5px; border-radius: var(--radius-sm); background: var(--bg-elev); color: var(--fg); }
.wn-text { margin: 0; max-width: 65ch; color: var(--fg-muted); line-height: 1.6; }
.wn-writeup-pending { display: flex; flex-direction: column; gap: 9px; max-width: 65ch; }
.wn-writeup-pending i { display: block; height: 10px; border-radius: 4px; background: var(--wn-skeleton); }
.wn-writeup-pending i.short { width: 55%; }

/* 개선·버그 수정 */
.wn-more { display: flex; flex-direction: column; gap: 14px; }
.wn-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: 65ch; }
.wn-list li { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: baseline; column-gap: 12px; }
.wn-list li .tags { gap: 4px; }  /* 태그 칸 고정 — 줄이 넘어가도 글 아래로만 감긴다 */
.wn-fixes { margin: 4px 0 0; font-size: 13px; color: var(--fg-subtle); display: flex; flex-wrap: wrap; gap: 4px 0; align-items: baseline; }
.wn-fixes-label { margin-right: 8px; }
.wn-fixes ul { list-style: none; margin: 0; padding: 0; display: contents; }
.wn-fixes li:not([hidden]) ~ li:not([hidden])::before { content: "·"; margin: 0 8px; color: var(--fg-subtle); }
.wn-fixes a { color: var(--fg-muted); font-variant-numeric: tabular-nums; border-bottom: 1px solid transparent; }
.wn-fixes a:hover { color: var(--fg); border-bottom-color: var(--accent); }
.wn-empty { color: var(--fg-muted); }

/* 필터가 숨긴 것 — 위에서 display 를 준 요소(flex 등)도 확실히 숨긴다 */
.wn-page [hidden] { display: none !important; }

/* 한국어: 어절 중간에서 줄이 끊기지 않게(이 페이지 본문만 — 사이트 전체 CJK 규칙은 .ai_docs/plans/2026-10-09-cjk-linebreak-rollout.md) */
html[lang="ko"] .wn-page { word-break: keep-all; overflow-wrap: break-word; }
