/*
 * KB국민은행 디자인 레퍼런스(DESIGN_KB.md)를 따른 스타일.
 *
 * 라이트 팔레트는 레퍼런스의 selector-backed 토큰 그대로다.
 * 다크 팔레트는 레퍼런스에 evidence 가 없어 라이트 값의 명도를 뒤집어 파생한 것이며
 * KB 공식 사양이 아니다. 형태 토큰(각진 0px, 그림자 없음)은 두 테마가 공유한다.
 */

:root {
  --radius: 0px;              /* KB 토큰: rounded.square */
  --accent: #ffcc00;          /* KB 토큰: colors.header-accent */
  --accent-text: #000000;
  --font: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR",
          "Noto Sans CJK KR", "Hiragino Sans", "Microsoft JhengHei", "Segoe UI",
          system-ui, sans-serif;
}

/* 다크 (기본) — 파생 값 */
html[data-theme="dark"] {
  --canvas: #151515;
  --surface: #1e1e1e;
  --fg: #e6e6e6;
  --fg-strong: #ffffff;
  --muted: #a5a5a5;
  --item-fg: #dddddd;
  --hairline: #525252;
  --link: #6ba3ff;            /* #0c4ad1 은 어두운 배경에서 대비가 부족해 밝게 옮김 */
  --accent-hover: #ffd633;
  --disabled-bg: #262626;
  --disabled-fg: #6b6b6b;
  --ok: #4ade80;
  --fail: #f87171;
  --drop-hover: #2a2617;
  color-scheme: dark;
}

/* 라이트 — KB 토큰 그대로 */
html[data-theme="light"] {
  --canvas: #ffffff;          /* colors.canvas */
  --surface: #fafafa;
  --fg: #333333;              /* colors.foreground */
  --fg-strong: #000000;       /* colors.foreground-strong */
  --muted: #5a5a5a;           /* colors.muted */
  --item-fg: #222222;
  --hairline: #bfbfbf;        /* colors.hairline — 원본 #dddddd 는 canvas 배경과 대비가 부족해 진하게 조정 */
  --link: #0c4ad1;            /* colors.link */
  --accent-hover: #e6b800;
  --disabled-bg: #f2f2f2;
  --disabled-fg: #a0a0a0;
  --ok: #1a7f37;
  --fail: #c1121f;
  --drop-hover: #fffbe6;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 0 132px;         /* 하단 고정 실행 바 자리 */
  background: var(--canvas);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;            /* KB 토큰: typography.body */
  line-height: 1.5;
}

/* ------------------------------------------------------------------ 헤더 */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 58px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-accent { width: 4px; height: 22px; background: var(--accent); flex: none; }
.header-title { font-size: 20px; font-weight: 700; color: var(--fg-strong); }
.header-subtitle { color: var(--muted); font-size: 13px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.locale-nav { display: flex; gap: 2px; }
.locale-link {
  color: var(--item-fg);
  text-decoration: none;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  white-space: nowrap;
}
.locale-link:hover { border-color: var(--hairline); color: var(--fg-strong); }
.locale-link.is-current {
  color: var(--fg-strong);
  border-color: var(--hairline);
  border-bottom: 3px solid var(--accent);
}

/* ------------------------------------------------------------------ 레이아웃 */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intro-title { font-size: 24px; font-weight: 700; color: var(--fg-strong); margin: 0 0 6px; }
.intro-tagline { color: var(--muted); margin: 0; }

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 10px;
}
.panel .section-title { margin-top: 14px; }
.panel > .text-input { width: 100%; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ------------------------------------------------------------------ 드롭 영역 */
.dropzone {
  background: var(--surface);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--muted); }
.dropzone.is-dragging { border-color: var(--accent); background: var(--drop-hover); }
/* Input folder 사용 중일 때 (데스크톱 앱과 같은 상호 배제 규칙) */
.dropzone.is-locked {
  cursor: default;
  pointer-events: none;
  border-color: var(--hairline);
  background: var(--disabled-bg);
}
.dropzone.is-locked .dropzone-title,
.dropzone.is-locked .dropzone-arrow { color: var(--disabled-fg); }
.dropzone-arrow { font-size: 24px; color: var(--muted); }
.dropzone-title { font-size: 20px; font-weight: 700; color: var(--fg-strong); margin: 6px 0; }
.dropzone-hint { color: var(--muted); font-size: 13px; margin: 2px 0; }

/* ------------------------------------------------------------------ 선택 토글 */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row-tight { gap: 6px; flex: none; }
.pill {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 7px 14px;
  color: var(--item-fg);
  font: inherit;
  cursor: pointer;
}
.pill:hover { border-color: var(--muted); }
.pill.is-selected {
  border: 1px solid var(--fg-strong);
  border-bottom: 3px solid var(--accent);
  color: var(--fg-strong);
}

/* ------------------------------------------------------------------ 입력 */
.input-row { display: flex; gap: 10px; align-items: flex-end; }
.field { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-label { color: var(--muted); font-size: 13px; }
.text-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--fg);
  font: inherit;
}
.text-input:focus { outline: none; border-color: var(--fg-strong); }
.text-input[readonly] { background: var(--surface); color: var(--muted); }
/* Input/Output folder 행: 경로 표시 칸은 늘어나고 버튼들은 제 크기만큼만 차지한다 */
.input-row .text-input[readonly] { flex: 1; }
.input-row .btn-ghost, .input-row .btn-link { flex: none; white-space: nowrap; }
#inputFolderHint, #outputFolderHint { white-space: pre-line; }

/* ------------------------------------------------------------------ 버튼 */
.btn-primary {
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 13px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-text);
  cursor: pointer;
}
.btn-primary:hover:enabled { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:disabled {
  background: var(--disabled-bg);
  border-color: var(--hairline);
  color: var(--disabled-fg);
  cursor: default;
}

.btn-ghost {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--item-fg);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--fg-strong); color: var(--fg-strong); }

.btn-link {
  background: none;
  border: none;
  color: var(--link);
  font: inherit;
  font-size: 13px;
  padding: 4px 8px 4px 9px;   /* KB 토큰: inline-link 좌우 여백 */
  cursor: pointer;
}
.btn-link:hover { color: var(--fg-strong); text-decoration: underline; }

.btn-retry {
  background: var(--canvas);
  border: 1px solid var(--fg-strong);
  border-radius: var(--radius);
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--fg-strong);
  cursor: pointer;
  white-space: nowrap;
}
.btn-retry:hover { background: var(--accent); color: var(--accent-text); }

/* ------------------------------------------------------------------ 파일 목록 (썸네일 그리드) */
.file-list {
  list-style: none;
  margin: 0;
  padding: 2px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.file-tile { display: flex; flex-direction: column; gap: 5px; min-width: 0; cursor: grab; }
.file-tile.is-dragging { opacity: 0.4; }

/* 삽입 위치 표시: 그리드는 줄바꿈 때문에 선 하나로 표시할 수 없어, 가장 가까운
   타일에 삽입될 쪽(좌/우) 테두리를 강조하는 방식으로 보여준다. */
.file-tile.drop-target-before { box-shadow: inset 3px 0 0 var(--accent); }
.file-tile.drop-target-after { box-shadow: inset -3px 0 0 var(--accent); }

.thumb-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--muted);
}

.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.thumb-remove:hover { background: var(--fail); }

.thumb-status {
  position: absolute;
  left: 4px;
  right: 26px;
  bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 1px 4px;
  border-radius: 2px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb-status.status-done { background: rgba(26, 127, 55, 0.82); }
.thumb-status.status-failed { background: rgba(193, 18, 31, 0.82); }

.thumb-name {
  font-size: 12px;
  color: var(--item-fg);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-retry {
  background: var(--canvas);
  border: 1px solid var(--fg-strong);
  border-radius: var(--radius);
  padding: 3px 5px;
  font: inherit;
  font-size: 11px;
  color: var(--fg-strong);
  cursor: pointer;
  white-space: normal;
  line-height: 1.25;
}
.thumb-retry:hover { background: var(--accent); color: var(--accent-text); }

.thumb-download {
  display: block;
  text-align: center;
  font-size: 11.5px;
  color: var(--link);
  text-decoration: none;
}
.thumb-download:hover { color: var(--fg-strong); text-decoration: underline; }

/* ------------------------------------------------------------------ 이용 방법 (랜딩 3단계) */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-step { min-width: 0; }
.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--fg-strong);
  border-radius: var(--radius);
  color: var(--fg-strong);
  font-weight: 700;
  font-size: 13px;
}
.how-step-title { font-size: 14px; font-weight: 700; color: var(--fg-strong); margin: 10px 0 4px; }
.how-step-desc { color: var(--muted); font-size: 13px; margin: 0; }

/* ------------------------------------------------------------------ 본문(기능/FAQ) */
.prose-list { margin: 0; padding-left: 18px; color: var(--fg); }
.prose-list li { margin: 4px 0; }
.faq-item { border-top: 1px solid var(--hairline); padding: 10px 0; }
.faq-item:first-of-type { border-top: none; }
.faq-item summary { cursor: pointer; color: var(--fg-strong); font-weight: 700; }
.faq-item p { color: var(--muted); margin: 8px 0 0; }

/* ------------------------------------------------------------------ 사이트 푸터
   상단 내비게이션에는 문의를 두지 않고, 여기 하단에 간략히만 둔다. */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand { font-size: 15px; font-weight: 700; color: var(--fg-strong); }
.footer-tagline { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.footer-locales { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}
.footer-contact { color: var(--link); text-decoration: none; }
.footer-contact:hover { color: var(--fg-strong); text-decoration: underline; }

/* ------------------------------------------------------------------ 하단 실행 바 */
.runbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 10px 24px 16px;
  z-index: 10;
}
/* 실행 버튼은 화면 폭과 상관없이 본문과 같은 축에서 항상 가운데에 놓인다. */
.runbar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.runbar-inner > * { width: 100%; }
.runbar .hint { margin: 0 0 8px; text-align: center; }
.progress {
  height: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .header { padding: 0 14px; gap: 8px; height: auto; min-height: 58px; flex-wrap: wrap; padding-block: 8px; }
  .header-subtitle { display: none; }
  .header-actions { width: 100%; margin-left: 0; justify-content: space-between; }
  .page { padding: 16px 14px 8px; }
  .runbar { padding: 10px 14px 14px; }
  .input-row { flex-wrap: wrap; }
  .file-list { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .how-steps { grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==================================================================
   안내 영역 개선: 상징 아이콘 · 히어로 일러스트 · 신뢰 배지 · 기능/용도 카드
   (아이콘은 모두 인라인 SVG — 색은 currentColor, 외부 이미지/CDN 없음)
   ================================================================== */
.icon { flex: none; display: block; }

/* 헤더의 Chrome 확장 버튼 */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--accent);
  border-bottom-width: 3px;
  border-radius: var(--radius);
  color: var(--fg-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta .icon { color: var(--accent); }
.header-cta:hover { background: var(--accent); color: var(--accent-text); }
.header-cta:hover .icon { color: var(--accent-text); }

/* 히어로: 문구 + '큰 파일 -> 작은 파일' 일러스트 */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
}
.intro-title { font-size: 26px; line-height: 1.3; }
.intro-tagline { max-width: 52ch; }

.trust {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; color: var(--item-fg); font-size: 13px; }
.trust-item .icon { color: var(--accent); }

.hero-visual { display: flex; align-items: center; gap: 10px; }
.hv-card {
  width: 122px;
  padding: 12px 12px 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}
.hv-after { border-color: var(--fg-strong); border-bottom: 3px solid var(--accent); color: var(--fg-strong); }
.hv-label { font-size: 12px; }
.hv-size { font-size: 19px; color: var(--fg-strong); letter-spacing: -0.2px; }
.hv-bar { display: block; height: 8px; margin-top: 4px; background: var(--hairline); }
.hv-bar i { display: block; height: 100%; background: var(--muted); }
.hv-after .hv-bar i { background: var(--accent); }
.hv-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--accent); }
.hv-goal {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  padding: 2px 7px;
  white-space: nowrap;
}

/* 이용 방법: 아이콘 + 번호 */
.how-step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--hairline);
  border-bottom: 3px solid var(--accent);
  background: var(--surface);
  color: var(--fg-strong);
}
.how-step-icon .how-step-num {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 22px;
  height: 22px;
  border: none;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
}

/* 기능 카드 */
.feature-grid, .usecase-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { border: 1px solid var(--hairline); background: var(--surface); padding: 14px 16px 16px; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-bottom: 3px solid var(--accent);
  background: var(--canvas);
  color: var(--fg-strong);
}
.feature-title { font-size: 15px; font-weight: 700; color: var(--fg-strong); margin: 10px 0 4px; }
.feature-desc { color: var(--muted); font-size: 13px; margin: 0; }

/* 이런 때 편해요 */
.usecase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usecase { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.usecase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--hairline);
  color: var(--accent);
  background: var(--surface);
}
.usecase-title { font-size: 14px; font-weight: 700; color: var(--fg-strong); margin: 0 0 2px; }
.usecase-desc { color: var(--muted); font-size: 12.5px; margin: 0; }

/* Chrome 확장 프로그램 안내 띠 */
.ext-band { display: flex; align-items: center; gap: 16px; background: var(--surface); border-left: 4px solid var(--accent); }
.ext-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--accent);
}
.ext-text { flex: 1; min-width: 0; }
.ext-title { font-size: 16px; font-weight: 700; color: var(--fg-strong); margin: 0 0 4px; }
.ext-desc { color: var(--muted); font-size: 13px; margin: 0; }
.btn-cta { display: inline-block; width: auto; flex: none; text-align: center; text-decoration: none; padding: 12px 20px; font-size: 14px; }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .hero-visual { justify-content: flex-start; }
  .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-cta span { display: none; }
  .header-cta { padding: 5px 8px; }
  .intro-title { font-size: 22px; }
  .hv-card { width: 104px; }
  .feature-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .ext-band { flex-direction: column; align-items: flex-start; }
  .btn-cta { width: 100%; }
}

/* 한국어는 어절 단위로 줄바꿈해 '다.' 같은 외톨이 글자를 막는다 (일본어·중국어는 해당 없음) */
html[lang="ko"] body { word-break: keep-all; }
.intro-tagline { max-width: 56ch; }
.btn-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ==================================================================
   광고 단위 · 가이드 글 · 개인정보처리방침
   ================================================================== */

/* 광고 단위: 광고가 실제로 채워졌을 때만 펼친다(static/ads.js 가 is-filled 를 붙임).
   승인 전이거나 광고가 없을 때 빈 상자와 "광고" 라벨이 남지 않게 한다.
   폭은 유지하고(반응형 광고 크기 계산에 필요) 높이만 0으로 접어 둔다. */
.ad-slot { height: 0; overflow: hidden; margin: 0; padding: 0; }
.ad-slot.is-filled { height: auto; overflow: visible; padding: 4px 0; }
.ad-label {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.ad-slot ins.adsbygoogle { min-height: 0; }

/* 푸터 링크 */
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-link { color: var(--link); font-size: 13px; text-decoration: none; }
.footer-link:hover { color: var(--fg-strong); text-decoration: underline; }

/* 도구 페이지의 가이드 카드 */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-item { border: 1px solid var(--hairline); background: var(--surface); padding: 12px 14px 14px; }
.guide-link { color: var(--fg-strong); font-weight: 700; font-size: 14px; text-decoration: none; }
.guide-link:hover { color: var(--link); text-decoration: underline; }
.guide-desc { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.guide-list-page { grid-template-columns: 1fr; }
.guide-list-page .guide-link { font-size: 16px; }
.guide-list-page .guide-desc { font-size: 13.5px; }

/* 콘텐츠 페이지(가이드·방침): 도구 페이지의 하단 고정 바 여백이 필요 없다 */
body.content-page { padding-bottom: 0; }
.header-title-link { text-decoration: none; }
.article-page { max-width: 760px; padding-top: 18px; padding-bottom: 28px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article-title { font-size: 26px; line-height: 1.35; color: var(--fg-strong); margin: 6px 0 4px; }
.article-meta { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.article-intro { font-size: 15px; line-height: 1.75; color: var(--fg); margin: 0 0 8px; }
.article-section h2 {
  font-size: 18px;
  color: var(--fg-strong);
  margin: 28px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.article p, .article li { font-size: 15px; line-height: 1.8; }
.article p { margin: 10px 0; }
.article ul, .article ol { padding-left: 22px; margin: 10px 0; }
.article li { margin: 4px 0; }
.article a { color: var(--link); }
.article a:hover { color: var(--fg-strong); }
.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  font-size: 14px;
}
.table-wrap { overflow-x: auto; margin: 12px 0; }
.article-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.article-table th, .article-table td { border: 1px solid var(--hairline); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.55; }
.article-table th { background: var(--surface); color: var(--fg-strong); }

.cta-box {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
}
.cta-box strong { color: var(--fg-strong); font-size: 16px; }
.cta-box p { color: var(--muted); font-size: 13px; margin: 4px 0 0; line-height: 1.55; }
.related { list-style: none; padding: 0; }
.related li::before { content: "→ "; color: var(--accent); }
.article-back { margin-top: 30px; }

@media (max-width: 640px) {
  .guide-list { grid-template-columns: 1fr; }
  .article-title { font-size: 22px; }
  .cta-box { flex-direction: column; align-items: stretch; text-align: left; }
  .article-page { padding-left: 14px; padding-right: 14px; }
}
