/* ============================================================
   안전과장 · custom.css
   1) 자격증별 탭 / 중복기출 잠금
   2) 토익스피킹 학습자료 (study.html)
   3) 인라인 광고 (콘텐츠 사이)
   ============================================================ */

/* ============================================
   1. 상단 탭
   ============================================ */
.main-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--primary);
  margin: 30px 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.main-tabs::-webkit-scrollbar { height: 4px; }
.main-tabs::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.main-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.main-tab:hover { color: var(--primary); }

.main-tab.active {
  color: var(--secondary);
  border-bottom-color: var(--primary);
}

/* 탭 안 문항수 배지 (중복 선언 통합) */
.tab-cnt {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  margin-left: 2px;
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.main-tab.active .tab-cnt {
  background: var(--primary);
  color: #fff;
}

/* ===== 중복기출 잠금 박스 ===== */
.lock-box {
  background: white;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.lock-box .lock-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.lock-box .lock-text {
  color: var(--gray-600);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

/* ===== 입장코드 오류 ===== */
.code-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: -4px 0 10px;
  font-weight: 600;
}

/* ===== 카드 과목 표기 ===== */
.exam-subjects {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 카드 제목 줄바꿈 개선 ===== */
.exam-card h3 {
  word-break: keep-all;
  line-height: 1.4;
}

/* ===== 토익 탭 활성 시 다른 목록 숨김 ===== */
.toeic-hidden { display: none !important; }

/* ===== 모바일 ===== */
@media (max-width: 768px) {
  .main-tabs { margin: 20px 0 16px; }
  .main-tab {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .lock-box { padding: 36px 16px; }
}


/* ============================================
   2. 토익스피킹 학습자료 (study.html)
   ============================================ */
.study-intro {
  background: var(--gray-100, #f6f7f9);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.study-head { margin: 26px 0 10px; }

.study-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.study-title {
  font-size: 1.6rem;
  color: var(--secondary);
  margin: 0 0 6px;
  word-break: keep-all;
}

.study-sub {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.study-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.study-meta span {
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--gray-600);
}
.study-meta b { color: var(--primary); margin-right: 4px; }

/* ===== 목차 (자동 번호 제거 → 제목의 번호만 사용) ===== */
.study-toc {
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
}
.study-toc b { color: var(--secondary); display: block; margin-bottom: 6px; }
.study-toc ol,
.study-toc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.9;
}
.study-toc li { padding-left: 2px; }
.study-toc a { color: var(--gray-600); text-decoration: none; }
.study-toc a:hover { color: var(--primary); text-decoration: underline; }

/* ===== 본문 섹션 ===== */
.study-sec {
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  scroll-margin-top: 80px;
}
.study-sec h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--secondary);
  border-bottom: 2px solid var(--gray-100, #f1f3f5);
  padding-bottom: 8px;
  word-break: keep-all;
}

.sec-note { color: var(--gray-600); font-size: 0.88rem; line-height: 1.75; margin: 0 0 12px; }
.sec-bullets { margin: 0 0 12px; padding-left: 20px; }
.sec-bullets li {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--gray-700, #374151);
  word-break: keep-all;
}

.sec-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.sec-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 420px; }
.sec-table th, .sec-table td {
  border: 1px solid var(--gray-200, #e5e7eb);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.sec-table th {
  background: var(--gray-100, #f6f7f9);
  color: var(--secondary);
  font-weight: 700;
  white-space: nowrap;
}

.phrase-list { display: grid; gap: 8px; }
.phrase {
  background: var(--gray-100, #f8f9fb);
  border-radius: 10px;
  padding: 11px 14px;
  border-left: 3px solid var(--primary);
}
.ph-en { font-size: 0.95rem; font-weight: 600; color: #1f2937; line-height: 1.55; }
.ph-ko { font-size: 0.82rem; color: var(--gray-500); margin-top: 3px; line-height: 1.55; }
.ph-tip { font-size: 0.78rem; color: var(--primary); margin-top: 5px; line-height: 1.55; }

.sec-tip, .sec-warn {
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.84rem;
  line-height: 1.7;
  margin-top: 12px;
}
.sec-tip { background: #eef7ff; color: #1d5c9e; }
.sec-warn { background: #fff5f5; color: #b4232a; }

.study-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 10px;
}
.study-nav a { text-decoration: none; }

@media (max-width: 768px) {
  .study-title { font-size: 1.3rem; }
  .study-sec { padding: 18px 16px 14px; }
}


/* ============================================
   3. 콘텐츠 사이 인라인 광고 (inline-ads.js)
   ============================================ */
.ad-inline {
  margin: 26px 0;
  padding: 6px 0;
  min-height: 100px;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  background: #fcfcfd;
  overflow: hidden;
}

.ad-inline .ad-label {
  display: block;
  font-size: 0.6rem;
  color: #c2c8ce;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 4px 0 6px;
}

.ad-inline ins { display: block; width: 100%; }

/* 시험/해설 화면에 넣을 경우 : 보기와 충분히 띄워 오클릭 방지 */
.exam-body .ad-inline,
.review-list .ad-inline { margin-top: 48px; }

@media (max-width: 768px) {
  .ad-inline { margin: 20px 0; min-height: 90px; }
}
/* ============================================
   4. 콘텐츠 보호 (protect.js)
   ============================================ */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;   /* 모바일 롱프레스 메뉴 차단 */
  -webkit-tap-highlight-color: transparent;
}

/* 입력창·허용 영역은 정상 선택 가능 */
input, textarea, select, [contenteditable="true"], .allow-select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}

img { -webkit-user-drag: none; user-drag: none; pointer-events: auto; }

/* 안내 토스트 */
.protect-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(14px);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}
.protect-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ============================================
   5. 자기소개서 AI 작성기 (resume.html)
   ============================================ */
.ai-key-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; font-size: 0.85rem;
}
.ai-key-box summary { cursor: pointer; font-weight: 700; color: #92400e; }
.key-state {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px;
  background: var(--gray-200, #e5e7eb); color: var(--gray-600); font-size: 0.7rem; font-weight: 700;
}
.key-state.ok { background: #16a34a; color: #fff; }

.ai-form { display: block; }
.ai-label {
  display: block; font-size: 0.84rem; font-weight: 700;
  color: var(--secondary); margin: 16px 0 6px;
}
.ai-label span { font-weight: 500; color: var(--gray-400); font-size: 0.78rem; }

.ai-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ai-row > .ai-input { flex: 1 1 180px; }

.ai-input, .ai-textarea {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 0.88rem;
  color: #1f2937; background: #fff;
  border: 1px solid var(--gray-300, #d1d5db); border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ai-input:focus, .ai-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ai-textarea { line-height: 1.7; resize: vertical; min-height: 110px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 7px 13px; font-size: 0.82rem; font-weight: 600;
  color: var(--gray-600); background: #fff;
  border: 1px solid var(--gray-300, #d1d5db); border-radius: 20px;
  transition: all .13s ease; user-select: none;
}
.chip span:hover { border-color: var(--primary); color: var(--primary); }
.chip input:checked + span {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

.ai-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.ai-btns .btn-primary { flex: 1 1 200px; }
.ai-hint { font-size: 0.78rem; color: var(--gray-500); line-height: 1.65; margin: 4px 0 0; }
.ai-hint a { color: var(--primary); }
.ai-count { font-size: 0.78rem; color: var(--gray-500); margin-left: auto; }

/* ===== 결과 ===== */
.ai-result-wrap {
  margin-top: 18px; border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 12px; overflow: hidden; background: #fff;
}
.ai-result-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--gray-100, #f6f7f9);
  border-bottom: 1px solid var(--gray-200, #e5e7eb); font-size: 0.88rem;
}
.ai-result-head > div { display: flex; gap: 6px; }

.ai-output { padding: 18px 18px 8px; font-size: 0.88rem; line-height: 1.85; color: #374151; }
.ai-output h3 {
  font-size: 1.02rem; color: var(--secondary); margin: 20px 0 8px;
  padding-bottom: 6px; border-bottom: 2px solid var(--gray-100, #f1f3f5);
}
.ai-output h3:first-child { margin-top: 0; }
.ai-output h4 { font-size: 0.94rem; color: var(--primary); margin: 16px 0 6px; }
.ai-output p { margin: 0 0 9px; word-break: break-word; }
.ai-output ul { margin: 0 0 10px; padding-left: 20px; }
.ai-output li { margin-bottom: 4px; }
.ai-output strong { color: #111827; }
.ai-output code {
  background: var(--gray-100, #f1f3f5); padding: 1px 6px;
  border-radius: 4px; font-size: 0.82rem; color: #b4232a;
}
.ai-output blockquote {
  margin: 8px 0 12px; padding: 9px 13px; background: #eef7ff;
  border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0;
  color: #1d5c9e; font-size: 0.84rem;
}
.ai-table-wrap { overflow-x: auto; margin: 8px 0 14px; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 400px; }
.ai-table th, .ai-table td {
  border: 1px solid var(--gray-200, #e5e7eb); padding: 8px 10px;
  text-align: left; vertical-align: top;
}
.ai-table th { background: var(--gray-100, #f6f7f9); color: var(--secondary); font-weight: 700; }

.ai-sources {
  padding: 0 18px 16px; font-size: 0.78rem; color: var(--gray-500);
}
.ai-sources b { display: block; margin-bottom: 5px; color: var(--gray-600); }
.ai-sources ul { margin: 0; padding-left: 18px; line-height: 1.75; }
.ai-sources a { color: var(--primary); word-break: break-all; }

/* ===== 로딩 ===== */
.ai-loading {
  display: flex; align-items: center; gap: 9px;
  padding: 26px 4px; color: var(--gray-500); font-size: 0.86rem;
}
.spin {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--gray-200, #e5e7eb); border-top-color: var(--primary);
  border-radius: 50%; animation: ai-spin .8s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .ai-btns .btn-primary { flex: 1 1 100%; }
  .ai-output { padding: 14px 14px 6px; font-size: 0.85rem; }
  .chip span { padding: 6px 11px; font-size: 0.78rem; }
}
/* ============================================================
   6. 공통 레이아웃 (index / interview / study / resume 공용)
      ※ 각 HTML의 인라인 <style> 을 이곳으로 이관
   ============================================================ */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }

/* ----- 상단 바 ----- */
.topbar .container { display: flex; align-items: center; gap: 14px; }
.topbar .logo { flex: 0 0 auto; white-space: nowrap; }
.topbar .topbar-actions { flex: 0 0 auto; margin-left: auto; }

/* 상단 배너(쿠팡) */
.topbar-ad {
  flex: 1 1 auto; display: flex; align-items: center;
  justify-content: flex-start; overflow: hidden; max-height: 60px; line-height: 0;
}
.topbar-ad a { display: block; line-height: 0; }
.topbar-ad img {
  display: block; height: 46px; width: auto;
  max-width: 100%; border-radius: 6px;
}

/* ----- 광고 존 ----- */
.ad-zone {
  display: block; margin: 26px auto 10px;
  max-width: 100%; overflow: hidden; text-align: center;
}
.ad-zone .adsbygoogle { display: block; width: 100%; }
.ad-zone .ad-label,
.ad-label {
  display: block; font-size: 0.62rem; color: #c2c8ce;
  letter-spacing: 0.06em; margin-bottom: 4px; text-align: center;
}
.ad-zone-coupang { display: flex; justify-content: center; }

/* ----- 푸터 ----- */
.site-footer {
  flex-shrink: 0; margin-top: auto; padding: 18px 12px 22px;
  text-align: center; font-size: 0.72rem; line-height: 1.6;
  color: #9aa1ab; border-top: 1px solid var(--gray-200, #e5e7eb);
  background: #fff; word-break: keep-all;
}
.site-footer .footer-links { margin-bottom: 6px; }
.site-footer .footer-links a { color: #9aa1ab; text-decoration: none; margin: 0 6px; }
.site-footer .footer-links a:hover { text-decoration: underline; }

@media (max-width: 900px) { .topbar-ad { display: none; } }
@media (max-width: 768px) {
  .ad-zone { margin: 18px auto 6px; }
  .site-footer { font-size: 0.68rem; padding: 16px 14px 20px; }
}


/* ============================================================
   7. 빠른 메뉴 카드 (index.html 진입점)
   ============================================================ */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 12px;
  margin: 22px 0 6px;
}
.qm-card {
  position: relative; display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius, 12px); padding: 16px 18px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.qm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
  border-color: var(--primary);
}
.qm-card .qm-ico { display: block; font-size: 1.5rem; margin-bottom: 6px; line-height: 1; }
.qm-card .qm-t {
  display: block; font-size: 1rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 4px; word-break: keep-all;
}
.qm-card .qm-d {
  display: block; font-size: 0.8rem; color: var(--gray-500);
  line-height: 1.6; word-break: keep-all;
}
.qm-card .qm-badge {
  position: absolute; top: 10px; right: 12px;
  background: var(--primary); color: #fff;
  font-size: 0.62rem; font-weight: 800; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 999px;
}
.qm-card.hot {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .14);
}

@media (max-width: 768px) {
  .quick-menu { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qm-card { padding: 14px 14px; }
  .qm-card .qm-t { font-size: 0.92rem; }
  .qm-card .qm-d { font-size: 0.74rem; }
}


/* ============================================================
   8. 랜덤 기출문제 카드 강조 (index.html)
   ============================================================ */
.random-exam-card {
  border: 2px solid #2563eb !important;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18) !important;
  position: relative;
}
.random-exam-card::before {
  content: "🎲 RANDOM";
  position: absolute; top: 10px; right: 12px;
  background: #2563eb; color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 999px; z-index: 2;
}
@media (max-width: 768px) {
  .random-exam-card::before { font-size: 0.6rem; padding: 2px 6px; }
}


/* ============================================================
   9. 면접 완전정복 (interview.html)
      ※ 전부 .page-interview 스코프 — 섹션 5의 .chip 등과 충돌 방지
   ============================================================ */

/* ----- 히어로 ----- */
.page-interview .iv-hero {
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  color: #fff; border-radius: 16px; padding: 26px 24px; margin: 22px 0 18px;
}
.page-interview .iv-hero h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.02em; }
.page-interview .iv-hero p { margin: 0; font-size: .9rem; opacity: .92; line-height: 1.6; }
.page-interview .iv-back {
  display: inline-block; margin-top: 14px; font-size: .8rem; color: #fff;
  background: rgba(255, 255, 255, .18); padding: 6px 13px;
  border-radius: 99px; text-decoration: none;
}

/* ----- 서브탭 ----- */
.page-interview .iv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.page-interview .iv-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 99px;
  border: 1px solid #dbeafe; background: linear-gradient(135deg, #eff6ff, #f0fdfa);
  color: #1d4ed8; font-family: inherit; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.page-interview .iv-tab:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, .16); }
.page-interview .iv-tab.active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-color: #2563eb; color: #fff;
}

/* ----- 뷰 전환 ----- */
.page-interview .iv-view { display: none; }
.page-interview .iv-view.on { display: block; animation: ivFade .25s ease; }
@keyframes ivFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ----- 섹션 박스 ----- */
.page-interview .iv-sec {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 20px 22px; margin-bottom: 16px;
}
.page-interview .iv-sec > h3 {
  margin: 0 0 14px; font-size: 1.12rem; color: #0f172a; letter-spacing: -.01em;
  padding-bottom: 10px; border-bottom: 2px solid #eff6ff;
  display: flex; align-items: center; gap: 8px;
}
.page-interview .iv-sec h4 { margin: 18px 0 8px; font-size: .97rem; color: #1d4ed8; }
.page-interview .iv-sec p,
.page-interview .iv-sec li { font-size: .9rem; line-height: 1.75; color: #334155; }
.page-interview .iv-sec ul,
.page-interview .iv-sec ol { padding-left: 20px; margin: 8px 0; }
.page-interview .iv-sec li { margin-bottom: 5px; }
.page-interview .iv-sec b { color: #0f172a; }

.page-interview .iv-lead {
  font-size: .9rem; color: #475569; line-height: 1.75; background: #f8fafc;
  border-left: 3px solid #94a3b8; padding: 10px 14px;
  border-radius: 0 8px 8px 0; margin: 0 0 14px;
}
.page-interview code {
  background: #f1f5f9; padding: 1px 6px; border-radius: 4px;
  font-size: .82rem; color: #1d4ed8;
}

/* ----- 강조 박스 ----- */
.page-interview .box { border-radius: 10px; padding: 13px 16px; margin: 12px 0; font-size: .88rem; line-height: 1.7; }
.page-interview .box.tip  { background: #f0fdf4; border-left: 4px solid #22c55e; color: #14532d; }
.page-interview .box.warn { background: #fffbeb; border-left: 4px solid #f59e0b; color: #78350f; }
.page-interview .box.bad  { background: #fef2f2; border-left: 4px solid #ef4444; color: #7f1d1d; }
.page-interview .box.info { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a8a; }
.page-interview .box .bt  { display: block; font-weight: 800; margin-bottom: 5px; }

/* ----- 비교 카드 ----- */
.page-interview .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.page-interview .vs > div { border-radius: 10px; padding: 13px 15px; font-size: .86rem; line-height: 1.7; }
.page-interview .vs .no { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.page-interview .vs .ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.page-interview .vs .lb { display: block; font-weight: 800; font-size: .78rem; letter-spacing: .04em; margin-bottom: 6px; }

/* ----- 표 ----- */
.page-interview .iv-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .86rem; }
.page-interview .iv-table th,
.page-interview .iv-table td {
  border: 1px solid #e5e7eb; padding: 9px 11px;
  text-align: left; vertical-align: top; line-height: 1.6;
}
.page-interview .iv-table th { background: #f1f5f9; color: #0f172a; font-weight: 700; white-space: nowrap; }
.page-interview .iv-table tbody tr:nth-child(even) { background: #fafbfc; }

/* ----- 스텝 ----- */
.page-interview .steps { counter-reset: st; margin: 12px 0; }
.page-interview .step {
  position: relative; padding: 0 0 14px 40px;
  border-left: 2px dashed #cbd5e1; margin-left: 12px;
}
.page-interview .step:last-child { border-left-color: transparent; padding-bottom: 0; }
.page-interview .step::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: -14px; top: 0; width: 26px; height: 26px;
  border-radius: 50%; background: #2563eb; color: #fff;
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.page-interview .step .st-t { font-weight: 800; color: #0f172a; font-size: .92rem; margin-bottom: 3px; }
.page-interview .step .st-d { font-size: .86rem; color: #475569; line-height: 1.7; }

/* ----- 질문 아코디언 ----- */
.page-interview .qa {
  border: 1px solid #e5e7eb; border-radius: 11px;
  margin-bottom: 9px; overflow: hidden; background: #fff;
}
.page-interview .qa summary {
  cursor: pointer; padding: 14px 16px; font-size: .93rem; font-weight: 700; color: #0f172a;
  display: flex; align-items: flex-start; gap: 9px; list-style: none; line-height: 1.55;
}
.page-interview .qa summary::-webkit-details-marker { display: none; }
.page-interview .qa summary::after { content: "▾"; margin-left: auto; color: #94a3b8; font-size: .8rem; flex: 0 0 auto; }
.page-interview .qa[open] summary { background: #eff6ff; color: #1d4ed8; }
.page-interview .qa[open] summary::after { content: "▴"; }
.page-interview .qa .qbody { padding: 4px 16px 16px; border-top: 1px solid #f1f5f9; }
.page-interview .qa .row { margin-top: 11px; font-size: .87rem; line-height: 1.72; color: #334155; }
.page-interview .qa .row .k {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 99px; margin-right: 6px; vertical-align: 1px;
}
.page-interview .k.intent { background: #e0e7ff; color: #3730a3; }
.page-interview .k.design { background: #dbeafe; color: #1e40af; }
.page-interview .k.script { background: #dcfce7; color: #166534; }
.page-interview .k.minus  { background: #fee2e2; color: #991b1b; }
.page-interview .qa .quote,
.page-interview .quote {
  display: block; margin-top: 6px; padding: 11px 13px; background: #f8fafc;
  border-left: 3px solid #22c55e; border-radius: 0 8px 8px 0;
  color: #0f172a; font-size: .86rem; line-height: 1.75;
}

/* ----- 칩 (섹션 5의 .chip 무력화 포함) ----- */
.page-interview .chip {
  position: static; cursor: default;
  display: inline-block; font-size: .7rem; font-weight: 800;
  padding: 3px 9px; border-radius: 99px;
  background: #2563eb; color: #fff; border: 0;
  margin: 0 5px 5px 0; letter-spacing: .03em;
}
.page-interview .chip.g { background: #e2e8f0; color: #334155; }

/* ----- 미니 카드 ----- */
.page-interview .grid2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px; margin: 12px 0;
}
.page-interview .mini { border: 1px solid #e5e7eb; border-radius: 11px; padding: 14px 16px; background: #fff; }
.page-interview .mini h5 { margin: 0 0 8px; font-size: .92rem; color: #1d4ed8; }
.page-interview .mini ul { margin: 0; padding-left: 18px; }
.page-interview .mini li { font-size: .85rem; line-height: 1.7; color: #334155; }

/* ----- 기업별 뷰 ----- */
.page-interview .co-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.page-interview .co-btn {
  padding: 8px 14px; border-radius: 99px; border: 1px solid #e2e8f0; background: #fff;
  font-family: inherit; font-size: .86rem; font-weight: 700; color: #475569; cursor: pointer;
}
.page-interview .co-btn.active { background: #0f172a; border-color: #0f172a; color: #fff; }
.page-interview .empty {
  text-align: center; padding: 46px 20px; color: #94a3b8;
  font-size: .9rem; line-height: 1.8;
  border: 2px dashed #e2e8f0; border-radius: 14px; background: #fafbfc;
}

@media (max-width: 640px) {
  .page-interview .iv-hero { padding: 20px 18px; }
  .page-interview .iv-hero h2 { font-size: 1.25rem; }
  .page-interview .iv-sec { padding: 16px 15px; }
  .page-interview .vs { grid-template-columns: 1fr; }
  .page-interview .iv-tab { flex: 1 1 44%; justify-content: center; font-size: .84rem; padding: 9px 8px; }
  .page-interview .iv-table { font-size: .8rem; }
  .page-interview .iv-table th,
  .page-interview .iv-table td { padding: 7px 8px; }
}

