/* ============================================================
   앱 도움말 (features/app-help) 스타일 — 2026-08-30 신설
   테마 토큰(theme.css)만 쓴다 — 고정색을 박지 않아야 라이트/다크 전환에서 안 깨진다.
   ============================================================ */

.ah-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15, 23, 42, 0.55);
  align-items: center; justify-content: center;
  padding: 24px;
}
.ah-backdrop.ah-show { display: flex; }

.ah-panel {
  width: min(1100px, 100%);
  height: min(760px, 92vh);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.ah-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}
.ah-titlebar-label { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); }
.ah-close {
  background: transparent; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: var(--fs-lg); width: 30px; height: 30px; cursor: pointer;
}
.ah-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.ah-layout { flex: 1 1 auto; display: flex; min-height: 0; }

.ah-nav {
  width: 240px; flex: 0 0 auto;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 8px 0;
  background: var(--bg-sunken);
}
.ah-nav-group { margin-bottom: 6px; }
.ah-nav-gtitle {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; color: var(--text-tertiary);
  text-transform: uppercase; padding: 8px 14px 4px;
}
.ah-nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 14px; background: transparent; border: none; text-align: left;
  font-size: var(--fs-md); color: var(--text-secondary); cursor: pointer;
}
.ah-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.ah-nav-item.active {
  background: var(--status-info); color: var(--text-inverse); font-weight: 600;
}
.ah-nav-item.active .ah-nav-badge { color: var(--text-inverse); }
.ah-nav-ico { flex: 0 0 auto; font-size: var(--fs-md); }
.ah-nav-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-nav-badge {
  flex: 0 0 auto; font-size: 9px; color: var(--text-tertiary);
  border: 1px solid var(--border-medium); border-radius: var(--radius-full); padding: 1px 6px;
}
.ah-nav-item.pending { opacity: .72; }

.ah-body { flex: 1 1 auto; overflow-y: auto; padding: 20px 24px; }
.ah-empty { color: var(--text-tertiary); }

/* ── 슬라이드 콘텐츠 공통 (각 기능 설명 조각이 이 클래스를 쓴다) ── */
.ah-slide { max-width: 820px; }
.ah-head { margin-bottom: 14px; }
.ah-title { font-size: var(--fs-xl); font-weight: 800; color: var(--text-primary); margin: 0 0 4px; }
.ah-sub { font-size: var(--fs-md); color: var(--text-secondary); margin: 0; }
.ah-slide p { font-size: var(--fs-md); line-height: 1.65; color: var(--text-primary); margin: 0 0 12px; }
.ah-slide ul, .ah-slide ol { margin: 0 0 14px; padding-left: 20px; }
.ah-slide li { font-size: var(--fs-md); line-height: 1.6; color: var(--text-primary); margin-bottom: 6px; }
.ah-slide h4 { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); margin: 18px 0 8px; }
.ah-slide strong { color: var(--text-primary); }
.ah-slide code {
  font-family: var(--font-mono); font-size: var(--fs-sm);
  background: var(--bg-sunken); border: 1px solid var(--border-subtle); border-radius: 4px;
  padding: 1px 5px;
}

.ah-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: var(--fs-sm); }
.ah-table th, .ah-table td {
  border: 1px solid var(--border-subtle); padding: 6px 10px; text-align: left; vertical-align: top;
}
.ah-table th { background: var(--bg-sunken); color: var(--text-secondary); font-weight: 700; }
.ah-table-wrap { overflow-x: auto; margin-bottom: 14px; }

.ah-warn {
  border: 1px solid var(--status-warn); background: var(--status-warn-bg);
  border-radius: var(--radius-md); padding: 10px 14px; margin: 0 0 14px;
  font-size: var(--fs-md); color: var(--text-primary); line-height: 1.6;
}
/* 「쉽게 말하면」 — 항공·전산 용어를 모르는 사람이 먼저 읽는 블록 (2026-09-01 신설).
   ⛔ 요약이 아니라 «다른 언어로 같은 말»이다 — 아래 본문과 다른 내용을 적으면 안 된다. */
.ah-easy {
  border: 1px solid var(--accent-cyan); border-left-width: 4px;
  background: var(--bg-sunken);
  border-radius: var(--radius-md); padding: 12px 16px; margin: 0 0 16px;
}
.ah-easy-h {
  font-size: var(--fs-sm); font-weight: 800; color: var(--accent-cyan);
  letter-spacing: .02em; margin: 0 0 6px;
}
.ah-easy p { font-size: var(--fs-md); line-height: 1.7; margin: 0 0 8px; }
.ah-easy p:last-child { margin-bottom: 0; }
.ah-easy ul { margin: 0 0 8px; padding-left: 18px; }
.ah-easy li:last-child { margin-bottom: 0; }

/* 용어 풀이 — 「이 말은 이런 뜻」 짧은 정의 목록 */
.ah-terms { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 14px; }
.ah-terms dt { font-size: var(--fs-sm); font-weight: 700; color: var(--text-secondary); }
.ah-terms dd { font-size: var(--fs-sm); color: var(--text-primary); margin: 0; line-height: 1.55; }

.ah-note {
  border-left: 3px solid var(--accent-cyan); background: var(--bg-sunken);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 8px 14px; margin: 0 0 14px;
  font-size: var(--fs-md); color: var(--text-secondary); line-height: 1.6;
}
.ah-src { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: 18px; border-top: 1px dashed var(--border-subtle); padding-top: 8px; }

@media (max-width: 720px) {
  .ah-panel { height: 94vh; }
  .ah-layout { flex-direction: column; }
  .ah-nav { width: 100%; max-height: 34%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .ah-body { padding: 16px; }
}
