/* ==========================================================================
   수리수리 차키수리 (carkeysuri.com) Unified Alternating Dark-Light System v51
   - 기준 디자인: 변경 전 메인(index.html)의 화이트 헤더 + 딥네이비 히어로 + 라이트/다크 교차 리듬
   - 단일 폰트: Pretendard v1.3.9 전 페이지 100% 통일
   - 단일 헤더(.header) · 단일 모바일 드로어(#mobileDrawer) · 단일 푸터(.site-footer)
   ========================================================================== */

/* 1. 전 페이지 단일 폰트(Pretendard) 통일 */
html, body, button, input, select, textarea {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
}

code, pre, kbd, samp,
.case-report-num,
.cert-serial-val {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

html, body {
  max-width: 100%;
  overflow-x: clip !important;
}

body {
  margin: 0 !important;
  padding-top: 64px !important;
}

/* 2. 단일 공통 화이트 헤더 (.header) — index.html 원본 규격 100% 통일 (상단 빈 여백 0px 밀착) */
header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05) !important;
  padding: 0 !important;
}

header.header .header-inner {
  max-width: 1180px !important;
  height: 64px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  box-sizing: border-box !important;
}

header.header .brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

header.header .brand-text-col {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

header.header .brand-title-korean {
  font-size: 1.22rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

header.header .brand-title-korean .highlight-blue {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
}

header.header .brand-sub-badge {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

header.header .header-gnb {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 auto !important;
  flex-wrap: nowrap !important;
}

header.header .gnb-link {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-decoration: none !important;
  padding: 7px 11px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

header.header .gnb-link:hover,
header.header .gnb-link.active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

header.header .header-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

header.header .btn-phone-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 4px 11px !important;
  border-radius: 6px !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(59, 130, 246, 0.32) !important;
  color: #2563eb !important;
  font-size: 0.79rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

header.header .btn-phone-header.is-night-closed {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #d97706 !important;
}

header.header .btn-hamburger,
header.header #btnHamburger {
  display: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4.5px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  background: #1e293b !important;
  border: 1.5px solid #3b82f6 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
}

header.header .btn-hamburger span,
header.header .btn-hamburger .ham-bar {
  display: block !important;
  width: 19px !important;
  height: 2.2px !important;
  background-color: #ffffff !important;
  border-radius: 2px !important;
}

@media (max-width: 1024px) {
  header.header .header-gnb {
    display: none !important;
  }
  header.header .btn-hamburger,
  header.header #btnHamburger {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 58px !important;
  }
  header.header .header-inner {
    height: 58px !important;
    padding: 0 12px !important;
    gap: 6px !important;
  }
  header.header .brand-title-korean {
    font-size: 1.06rem !important;
  }
  header.header .brand-sub-badge {
    font-size: 0.6rem !important;
  }
  header.header .btn-phone-header {
    height: 29px !important;
    min-height: 29px !important;
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
  }
  header.header .btn-hamburger,
  header.header #btnHamburger {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

/* 3. 단일 공통 모바일 드로어 (#mobileDrawer — index.html 원본 딥네이비 규격) */
.mobile-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 99998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.mobile-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

aside.mobile-drawer#mobileDrawer {
  position: fixed !important;
  top: 0 !important;
  right: -360px !important;
  bottom: 0 !important;
  width: min(320px, 86vw) !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #0b1120 !important;
  color: #f8fafc !important;
  border-left: 2px solid #2563eb !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.75) !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow-y: auto !important;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

aside.mobile-drawer#mobileDrawer.active {
  right: 0 !important;
}

aside.mobile-drawer#mobileDrawer .drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 10px !important;
}

aside.mobile-drawer#mobileDrawer .drawer-brand {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

aside.mobile-drawer#mobileDrawer .drawer-brand .highlight-blue {
  color: #3b82f6 !important;
}

aside.mobile-drawer#mobileDrawer .btn-drawer-close {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  cursor: pointer !important;
}

aside.mobile-drawer#mobileDrawer .drawer-hotline-slim {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
  border: 1px solid #3b82f6 !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  margin-bottom: 10px !important;
  text-decoration: none !important;
}

aside.mobile-drawer#mobileDrawer .drawer-hotline-slim.is-night-closed {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.94) 100%) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

aside.mobile-drawer#mobileDrawer .hotline-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  background: #22c55e !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #22c55e !important;
  flex-shrink: 0 !important;
}

aside.mobile-drawer#mobileDrawer .drawer-hotline-slim.is-night-closed .hotline-pulse-dot {
  background: #f59e0b !important;
  box-shadow: 0 0 8px #f59e0b !important;
}

aside.mobile-drawer#mobileDrawer .hotline-text {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #93c5fd !important;
  margin-left: 6px !important;
  margin-right: auto !important;
}

aside.mobile-drawer#mobileDrawer .hotline-num {
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
}

aside.mobile-drawer#mobileDrawer .drawer-menu-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

aside.mobile-drawer#mobileDrawer .drawer-card-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

aside.mobile-drawer#mobileDrawer .drawer-card-item.primary {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
}

aside.mobile-drawer#mobileDrawer .drawer-card-item .d-icon {
  font-size: 1.02rem !important;
  flex-shrink: 0 !important;
}

aside.mobile-drawer#mobileDrawer .drawer-card-item .d-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  flex: 1 !important;
}

aside.mobile-drawer#mobileDrawer .drawer-card-item .d-arr {
  font-size: 0.85rem !important;
  color: #60a5fa !important;
}

aside.mobile-drawer#mobileDrawer .drawer-card-item .d-tag {
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  background: #f59e0b !important;
  color: #000000 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
}

aside.mobile-drawer#mobileDrawer .drawer-menu-sub-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}

aside.mobile-drawer#mobileDrawer .drawer-sub-card {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  text-decoration: none !important;
}

aside.mobile-drawer#mobileDrawer .drawer-sub-card .sub-text {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}

aside.mobile-drawer#mobileDrawer .drawer-mini-footer {
  font-size: 0.68rem !important;
  color: #64748b !important;
  text-align: center !important;
  line-height: 1.35 !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* 4. 메인 #cases 좌측 다크 포토카드 빈 여백 정렬만 깔끔히 보정 (원본 다크 배경 보존) */
.case-visual-box {
  justify-content: flex-start !important;
  gap: 14px !important;
}

/* 5. 서브페이지 전용 메인식 다크 ↔ 라이트 교차 섹션 아키텍처 */
/* Band A: 메인 .hero-wrap 과 동일한 딥네이비 서브 히어로 */
.ck-sub-hero {
  background: linear-gradient(180deg, #090d16 0%, #0f172a 60%, #111e38 100%);
  border-bottom: 1px solid #1e293b;
  padding: 40px 20px 44px;
  color: #ffffff;
}

.ck-sub-hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.ck-breadcrumb {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 14px;
  display: inline-flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.ck-breadcrumb a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
}

.ck-breadcrumb a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.ck-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.38);
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 15px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.ck-sub-h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
  word-break: keep-all;
}

.ck-sub-h1 .sky {
  color: #38bdf8;
}

.ck-sub-lead {
  font-size: 0.96rem;
  color: #94a3b8;
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.62;
  word-break: keep-all;
}

/* Band B: 밝은 소프트 그레이 섹션 (메인 #calculatorSection / #pricing 동일 톤) */
.ck-band-light {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 54px 20px;
  color: #0f172a;
}

/* Band C: 밝은 순백 섹션 (메인 #comparison / #cases / #faq 동일 톤) */
.ck-band-white {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 54px 20px;
  color: #0f172a;
}

/* Band D: 딥네이비 포인트 섹션 (메인 #stats / #warranty 동일 톤) */
.ck-band-dark {
  background: linear-gradient(135deg, #091224 0%, #0f1e3d 50%, #091224 100%);
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  padding: 56px 20px;
  color: #ffffff;
}

.ck-band-container {
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
}

.ck-sec-head {
  text-align: center;
  margin-bottom: 30px;
}

.ck-sec-pill-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.ck-sec-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.ck-sec-title-light {
  font-size: clamp(1.38rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 0 8px 0;
  word-break: keep-all;
}

.ck-sec-title-dark {
  font-size: clamp(1.38rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 0 8px 0;
  word-break: keep-all;
}

.ck-sec-desc-light {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.6;
  word-break: keep-all;
}

.ck-sec-desc-dark {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.6;
  word-break: keep-all;
}

/* 다크 포인트 밴드 내부 카드 (메인 #warranty 좌측 카드 톤) */
.ck-dark-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.ck-dark-feature-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ck-dark-feature-card h3 {
  font-size: 1.04rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ck-dark-feature-card p {
  font-size: 0.87rem;
  color: #cbd5e1;
  line-height: 1.62;
  margin: 0;
  word-break: keep-all;
}

/* 라이트 밴드 내부 표준 비교표 (메인 #comparison 테이블 톤) */
.ck-light-table-wrap {
  overflow-x: auto;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.ck-light-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
  min-width: 600px;
}

.ck-light-table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  padding: 13px 16px;
  white-space: nowrap;
}

.ck-light-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.55;
  vertical-align: middle;
}

.ck-light-table tr:nth-child(even) td {
  background: #f8fafc;
}

.ck-light-table tr:last-child td {
  border-bottom: none;
}

.ck-light-table td.highlight {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

/* 라이트 밴드 내부 메인식 다크 CTA 배너 (메인 #faq 하단 배너와 100% 동일) */
.ck-bottom-cta-banner {
  margin-top: 28px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}

/* 서브페이지 푸터 상단 여백 정리 (바로 위 라이트 섹션과 또렷한 경계 형성) */
body.is-subpage footer.site-footer {
  margin-top: 0 !important;
  border-top: 1px solid #1e293b !important;
}

/* 서브페이지 하단 고정 도크 */
.subpage-cta-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #1e293b;
  padding: 10px 20px;
  z-index: 950;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.subpage-cta-dock-inner {
  max-width: 1080px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.subpage-dock-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 600;
}

.subpage-dock-text strong {
  color: #38bdf8;
  font-weight: 800;
}

.subpage-dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 9999px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

@media (max-width: 900px) {
  .subpage-dock-text {
    display: none;
  }
  .subpage-dock-btn {
    width: 100%;
  }
}

/* 8. 전 페이지 두괄식 첫 문장 줄바꿈 & 한국어 타이포그래피(어절 보호·계단/외톨이 방지) 시스템 */
h1, h2, h3, h4,
.ck-sub-h1,
.ck-sec-title-light,
.ck-sec-title-dark,
.sec-title,
.section-headline,
.comparison-title,
.v4-title,
.guide-item-title,
.work-body h3,
.case-report-title {
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  text-wrap: balance;
}

p, li, summary, label, button, td, th,
.ck-sub-lead,
.ck-sec-desc-light,
.ck-sec-desc-dark,
.sec-desc,
.section-subtext,
.faq-q-txt,
.faq-question-title,
.faq-a-body,
.faq-body-content,
.diag-row span,
.timeline-desc,
.work-meta,
.work-spec,
.case-caption-text {
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  text-wrap: pretty;
}

.nw {
  white-space: nowrap !important;
}

.faq-question-title {
  display: block !important;
}

/* 전 페이지 FAQ · 시공사례 · 가이드 두괄식 첫 문장 줄바꿈 및 시각적 호흡 확보 */
.faq-a-body > strong:first-child,
.faq-body-content > strong:first-child,
.guide-faq-item p > strong:first-child,
.playbook-card p > strong:first-child,
.work-body p > strong:first-child,
.case-caption-text > strong:first-child,
.content-p > strong:first-child {
  display: block !important;
  margin-bottom: 7px !important;
  font-weight: 800 !important;
  line-height: 1.56 !important;
  word-break: keep-all !important;
  text-wrap: pretty;
}

.faq-a-body > strong:first-child,
.faq-body-content > strong:first-child,
.guide-faq-item p > strong:first-child,
.playbook-card p > strong:first-child,
.work-body p > strong:first-child,
.content-p > strong:first-child {
  color: #0f172a !important;
}

/* 모바일 비교표·요금표 첫 열 세로 글자 찌그러짐 원천 차단 */
.diag-table th:first-child,
.diag-table td:first-child {
  white-space: nowrap !important;
  min-width: 108px;
}

.ck-light-table th {
  word-break: keep-all !important;
  white-space: nowrap;
}

.ck-light-table td:first-child {
  min-width: 176px;
  word-break: keep-all !important;
}

.ck-light-table td:nth-child(2),
.ck-light-table td:nth-child(3) {
  white-space: nowrap;
}

/* 브레드크럼 끝 화살표(›) 단독 줄남음 방지 */
.ck-breadcrumb {
  row-gap: 4px !important;
}
.ck-breadcrumb a,
.ck-breadcrumb span {
  white-space: nowrap;
}
.ck-breadcrumb span:last-child {
  white-space: normal;
  word-break: keep-all !important;
}

/* 메인 #cases 모바일 배지·일련번호·1년보증 푸터 줄깨짐 방지 */
.case-report-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 6px 10px !important;
}
.case-report-pill,
.case-report-num {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.case-photo-overlay-tag .case-photo-pill {
  white-space: nowrap !important;
  font-size: 0.75rem !important;
}
.case-warranty-footer > span:first-child {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
@media (max-width: 640px) {
  .case-warranty-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }
  .case-photo-overlay-tag {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  .case-photo-overlay-tag .case-photo-pill {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
  }
  /* 푸터 약관 링크 바 모바일 파이프(|) 끝 매달림 제거 */
  .samsam-legal-board div:last-child > span {
    display: none !important;
  }
}

.ms-visual-diag-pill {
  white-space: nowrap !important;
}

@media (max-width: 520px) {
  section.hero-wrap h1.hero-title-main span.hero-h1-row2 {
    font-size: clamp(0.95rem, 4.35vw, 1.08rem) !important;
    letter-spacing: -0.03em !important;
    white-space: normal !important;
  }
}

.work-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px 8px !important;
}

.work-time-chip {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 9. 미러수리 방식 메인 4컷 그림 자가진단 카드 그리드 (#spoke-hub) */
.ms-visual-diag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 980px) {
  .ms-visual-diag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .ms-visual-diag-grid {
    grid-template-columns: 1fr;
  }
}
.ms-visual-diag-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ms-visual-diag-card:hover {
  transform: translateY(-4px);
  border-color: #60a5fa;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}
.ms-visual-diag-stage {
  background: linear-gradient(180deg, #eff6ff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
}
.ms-visual-diag-stage svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}
.ms-visual-diag-body {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ms-visual-diag-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.73rem;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.ms-visual-diag-pill.is-free {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.ms-visual-diag-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.38;
  word-break: keep-all;
}
.ms-visual-diag-desc {
  font-size: 0.81rem;
  color: #475569;
  margin: 0;
  line-height: 1.48;
  word-break: keep-all;
}

.ms-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .ms-quick-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .ms-quick-links-grid {
    grid-template-columns: 1fr;
  }
}
