/* 진단·사례 — 회사 사이트 분위기에 맞춤(2026-11-17 총괄: 다른 페이지와 같은 분위기로).
   사이트 기준: 아이보리 바탕(#F8F7F3) · Noto Sans KR · 왼쪽 정렬 큰 제목(잉크 #142038 + 금색 #9C772C) ·
   설명은 회색(#626B78)으로 오른쪽 · 얇은 선(#E2DDD1). 머리·푸터는 사이트 것을 그대로 쓴다(build_diagnosis_page.py). */

/* 글꼴 — 시안의 Pretendard 대신 사이트 글꼴 */
.dx, .dx * { font-family: "Noto Sans KR", sans-serif !important; }
/* 진단 아래 '함께해주신 매장'은 토스증권식(총괄 11-19) — 글꼴은 Noto Sans KR 하나(예전 Josefin 라벨·Cinzel 숫자 예외는 뺐다) */

/* 본문 폭 — 사이트 머리(padding: 0 var(--space))와 왼쪽 끝을 맞춘다 */
.dx .wrap { width: calc(100% - var(--space, 64px) * 2); max-width: 1440px; }

/* 첫 화면: 네이비 + 가운데 정렬 → 아이보리 + 왼쪽 큰 제목 · 오른쪽 설명(프로젝트 쪽과 같은 짜임) */
.dx .editorial-intro { background: none; color: #142038; padding: 150px 0 clamp(44px, 5vw, 72px); }
.dx .editorial-intro::before { display: none; }
.dx .editorial-intro .hero-layout { justify-items: stretch; max-width: 1440px; }
.dx .editorial-intro .hero-copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 56px;
  width: 100%; max-width: none; margin: 0 0 clamp(30px, 3.6vw, 48px); text-align: left; }
.dx .editorial-intro h1 { font-size: clamp(40px, 4.9vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1.16; color: #142038; }
.dx .editorial-intro h1 span { color: #9c772c; }
.dx .editorial-intro .intro-copy { max-width: 440px; margin: 0; padding-bottom: 8px; font-size: 15px; line-height: 1.9; color: #626b78; }

/* 검색 칸 — 네이비 위에 떠 있던 흰 카드 → 아이보리 위 얇은 선 카드 */
.dx .editorial-intro .lookup-disclosure { width: 100%; padding: 16px; border: 1px solid #e2ddd1; border-radius: 10px;
  background: #fff; box-shadow: 0 26px 50px -40px #14203840; }

/* 조회 결과 — 가운데 810px 로 묶여 있어 왼쪽 정렬에선 오른쪽이 비었다 → 검색 칸과 같은 폭 */
.dx .editorial-intro .lookup-body { width: 100%; }

/* 검색 칸 안내 글씨 — 사이트 공통 규칙(input::placeholder 13px)이 덮어 작아졌다. 칸 글씨와 같은 16px 로 */
.dx .field input::placeholder { font-size: 16px; font-weight: 500; color: #8a8f99; }

/* 사례 칸 — 흰 바탕 → 사이트와 같은 아이보리, 위에 얇은 선으로만 나눈다 */
.dx .case-studies { background: none; border-top: 1px solid #e2ddd1; }
.dx .case-studies .wrap { max-width: 1440px; }

/* 제목 크기·굵기 — 사이트는 500~600 */
.dx :is(h2, h3) { font-weight: 600; }
.dx .case-heading h2 { font-weight: 700; letter-spacing: -.04em; color: var(--t1); }

@media (max-width: 760px) {
  .dx .editorial-intro { padding-top: 118px; }
  .dx .editorial-intro h1 { font-size: clamp(32px, 9vw, 44px); }
  .dx .editorial-intro .intro-copy { max-width: none; font-size: 14px; line-height: 1.8; }
  .dx .editorial-intro .lookup-disclosure { padding: 12px; }
}

/* ── 검색 칸을 눌렀을 때 금색 줄 없앰(총괄 2026-11-17) — 칸 테두리만 조금 진해진다 ── */
.dx .field:focus-within { border-color: #c4bcab; box-shadow: none; }
.dx .field input:focus-visible { outline: none; }

/* ── 매장 찾기 목록 — 사진과 글씨가 붙어 있었다. 사진 48px · 간격 14px · 위아래 여유 ── */
.dx .match-list [role="option"] { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; padding: 10px 14px; }
.dx .match-list [role="option"] img { width: 48px; height: 48px; border-radius: 6px; }
.dx .match-list [role="option"] strong { font-size: 15px; font-weight: 600; }
.dx .match-list [role="option"] small { font-size: 12.5px; }

/* ── 첫 화면 뒷배경 = 홈의 밤 도시(poster.webp · 휴대폰 poster-m.webp — 홈 첫 장면과 같은 그림, 총괄 2026-11-17) ──
   제목·검색 칸 뒤에만 깔고 아래는 아이보리로 녹인다(홈 cinema-stage 아래 그라데이션과 같은 방식). 조회 결과는 아이보리 위 */
.dx .editorial-intro { overflow: clip; }   /* 도시 그림이 아래 칸('함께해주신 매장')을 덮었다 */
.dx .editorial-intro::before { display: block; content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; width: auto; height: min(100%, 640px);
  aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; opacity: 1;   /* 휴대폰용 원 장식 규칙(opacity .55)이 도시를 회색으로 만들었다 */
  background: linear-gradient(180deg, rgba(5, 13, 27, .45) 0%, rgba(5, 13, 27, .58) 62%, rgba(248, 247, 243, 0) 90%, #f8f7f3 100%),
              url("/poster.webp?v=still-hq-20261015") center 58% / cover no-repeat; }
.dx .editorial-intro h1 { color: #f8f6f0; }
.dx .editorial-intro h1 span { color: #e8c874; }
.dx .editorial-intro .intro-copy { color: #d5dce7; }
.dx .editorial-intro .lookup-disclosure { border-color: transparent; box-shadow: 0 30px 60px -30px #050d1bcc; }
@media (max-width: 760px) {
  .dx .editorial-intro::before { height: min(100%, 700px); background-image: linear-gradient(180deg, rgba(5, 13, 27, .5) 0%, rgba(5, 13, 27, .62) 66%, rgba(248, 247, 243, 0) 90%, #f8f7f3 100%),
    url("/poster-m.webp?v=still-hq-20261015"); background-position: center 40%; }
}

/* ── 검색 칸 안내 글씨가 아이콘보다 5px 아래였다 — 사이트 공통 입력칸 여백이 붙어 있었다(2026-11-18). 여백을 없애고 세로 가운데 ── */
.dx .field > span { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.dx .field input { margin: 0; }

/* ── 첫 화면: 큰 제목 위, 설명 아래 — 둘 다 가운데(총괄 2026-11-18) ── */
.dx .editorial-intro .hero-copy { flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.dx .editorial-intro .intro-copy { max-width: 640px; padding-bottom: 0; text-align: center; }

/* ── 첫 화면을 세로로 넓게(총괄 2026-11-18: 1920 화면에서 답답해 보였다) ──
   도시 칸 높이 = 화면 높이의 78%(600~820px). 제목·설명·검색 칸은 그 안에서 세로 가운데. 조회 결과가 붙으면 아래로 늘고, 도시 그림은 위 칸에만 */
.dx .editorial-intro { --city-h: clamp(600px, 78vh, 820px); min-height: var(--city-h); display: grid; align-content: center;
  padding-top: 150px; padding-bottom: clamp(90px, 9vw, 150px); }
.dx .editorial-intro::before { height: min(100%, var(--city-h)); }
.dx .editorial-intro .hero-copy { gap: 22px; margin-bottom: clamp(36px, 4.2vw, 60px); }
.dx .editorial-intro h1 { font-size: clamp(40px, 5.2vw, 78px); }
.dx .editorial-intro .intro-copy { font-size: 16px; }
@media (max-width: 760px) {
  .dx .editorial-intro { --city-h: clamp(560px, 86svh, 720px); padding-top: 118px; padding-bottom: 80px; }
  .dx .editorial-intro::before { height: min(100%, var(--city-h)); }
  .dx .editorial-intro h1 { font-size: clamp(32px, 9vw, 44px); }
  .dx .editorial-intro .intro-copy { font-size: 14px; }
}

/* ── 결과 배치(총괄 2026-11-18): 위 왼쪽 = 우리 매장 키워드 · 오른쪽 = 진단표(이름·등급 → 순위 → 그래프·숫자 타일),
   그 아래 전체 폭 = 리뷰 칸 4개 → AI 진단 코멘트 → 상세 진단 받기. 휴대폰은 위에서 아래로 그대로 ── */
@media (min-width: 1000px) {
  .dx .diag { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
    grid-template-areas: "kw top" "kw rank" "kw status" "kw body" "metrics metrics" "comment comment" "button button";
    grid-template-rows: auto auto auto 1fr; column-gap: 28px; align-items: start; }
  .dx .diag > .keyword-comparison { grid-area: kw; align-self: stretch; margin-top: 0; }
  .dx .diag > .diag-top { grid-area: top; }
  .dx .diag > .rankbar { grid-area: rank; }
  .dx .diag > .diag-status { grid-area: status; }
  .dx .diag > #diag-body { grid-area: body; }
  .dx .diag > .quick-metrics { grid-area: metrics; }
  .dx .diag > .diag-comment { grid-area: comment; }
  .dx .diag > .button { grid-area: button; }
}
/* 휴대폰·좁은 화면: 키워드 목록과 진단표 사이 여백 */
@media (max-width: 999px) { .dx .diag > .keyword-comparison { margin: 0 0 16px; } }

/* ── 도시 배경을 더 길게(총괄 2026-11-18: 아래로 너무 짧다) — 첫 화면 전체 높이(최대 1080px), 아이보리로 녹는 구간은 맨 아래 10%만 ── */
.dx .editorial-intro { --city-h: clamp(720px, 100vh, 1080px); }
.dx .editorial-intro::before {
  background: linear-gradient(180deg, rgba(5, 13, 27, .45) 0%, rgba(5, 13, 27, .55) 78%, rgba(248, 247, 243, 0) 92%, #f8f7f3 100%),
              url("/poster.webp?v=still-hq-20261015") center 58% / cover no-repeat; }
@media (max-width: 760px) {
  .dx .editorial-intro { --city-h: clamp(640px, 100svh, 900px); }
  .dx .editorial-intro::before {
    background: linear-gradient(180deg, rgba(5, 13, 27, .5) 0%, rgba(5, 13, 27, .6) 78%, rgba(248, 247, 243, 0) 92%, #f8f7f3 100%),
                url("/poster-m.webp?v=still-hq-20261015") center 40% / cover no-repeat; }
}

/* ── 진단 결과가 붙어 칸이 길어지면 배경도 같이 길어지게(총괄 2026-11-18) ──
   칸 바탕 = 밤하늘 네이비(#050D1B, 홈 첫 장면 바탕과 같은 값)를 끝까지, 맨 아래 160px 만 아이보리로.
   도시 사진(::before)은 첫 화면 높이까지만 깔고 아래 20%를 투명하게 녹여 네이비로 잇는다 — 사진을 늘이면 확대돼 흐려져서 */
.dx .editorial-intro { background: linear-gradient(180deg, #050d1b 0, #050d1b calc(100% - 160px), #f8f7f3 100%); }
.dx .editorial-intro::before {
  background: linear-gradient(180deg, rgba(5, 13, 27, .45) 0%, rgba(5, 13, 27, .58) 100%),
              url("/poster.webp?v=still-hq-20261015") center 58% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
@media (max-width: 760px) {
  .dx .editorial-intro::before {
    background: linear-gradient(180deg, rgba(5, 13, 27, .5) 0%, rgba(5, 13, 27, .62) 100%),
                url("/poster-m.webp?v=still-hq-20261015") center 40% / cover no-repeat; }
}

/* ── 육각형 등급 글씨를 범례 점과 같은 계열 색으로(총괄 2026-11-18) — 범례 파스텔은 밝은 바탕에서 안 읽혀 한 단계 진하게 ── */
.dx .radar .axis-grade[data-grade="최적+"] { fill: #26805d; }
.dx .radar .axis-grade[data-grade="최적"] { fill: #26749f; }
.dx .radar .axis-grade[data-grade="준최"] { fill: #946c0e; }
.dx .radar .axis-grade[data-grade="일반"] { fill: #6650b5; }
.dx .radar .axis-grade[data-grade="성장 필요"] { fill: #c2502f; }

/* ── 육각형 칸 = 오른쪽 칸과 위아래 끝을 딱 맞춤, 육각형은 칸 한가운데(총괄 2026-11-18) ── */
.dx .editorial-intro #diag-body { align-items: stretch; }
.dx .editorial-intro .diag-plot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dx .editorial-intro .diag-plot .radar { width: 100%; max-width: 440px; margin-inline: auto; }

/* ── 순위 칸 = [검색어 순위 | 매장 진단 등급] 두 칸(총괄 2026-11-18) ──
   '매장이름 진단표 · 6/6개 항목 확인 · 등급 배지'를 여기로 합치고, 상태 한 줄·조회 기준 줄은 뺐다.
   등급 글씨 = 범례 점과 같은 색(네이비 위라 범례 파스텔 그대로 읽힌다) */
.dx .rankbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 22px 0 24px; margin: 0 0 14px; }
.dx .rb-cell { min-width: 0; padding: 0 28px; }
.dx .rb-cell + .rb-cell { border-left: 1px solid #ffffff22; }
.dx .rb-cell small, .dx .rb-grade h2 { display: block; margin: 0; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.4;
  letter-spacing: -.01em; color: #aab3c4; white-space: nowrap; text-overflow: ellipsis; }
.dx .rankbar .rb-number { min-height: 62px; margin-top: 8px; align-items: baseline; }
.dx .rankbar .rb-number b { font-size: 60px; }
.dx .rankbar .rb-grade-value { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; color: #e8c874; }
.dx .rb-grade-value[data-grade="최적+"] { color: #8fc7b0; }
.dx .rb-grade-value[data-grade="최적"] { color: #86c2df; }
.dx .rb-grade-value[data-grade="준최"] { color: #e4c579; }
.dx .rb-grade-value[data-grade="일반"] { color: #b6a9de; }
.dx .rb-grade-value[data-grade="성장 필요"] { color: #ed9d88; }

/* 그리드 — 오른쪽 열: 순위·진단 칸 → (안내 한 줄) → 그래프·숫자 타일. 그래프 칸이 남는 높이를 채워 왼쪽 키워드 목록과 아래 끝이 맞는다 */
@media (min-width: 1000px) {
  .dx .diag { grid-template-areas: "kw rank" "kw status" "kw body" "metrics metrics" "comment comment" "button button";
    grid-template-rows: auto auto 1fr; }
  .dx .diag > #diag-body { align-self: stretch; margin-top: 0; }
  .dx .diag > .rankbar { margin-top: 0; }
}
@media (max-width: 640px) {
  .dx .rankbar { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .dx .rb-cell { padding: 0 18px; }
  .dx .rb-cell + .rb-cell { margin-top: 14px; padding-top: 14px; border-left: 0; border-top: 1px solid #ffffff22; }
  .dx .rankbar .rb-number { min-height: 0; }
  .dx .rankbar .rb-number b { font-size: 50px; }
  .dx .rankbar .rb-grade-value { font-size: 36px; }
}

/* ── 리뷰 칸 평균 대비 배지(총괄 2026-11-18) — 진단표 범례와 같은 계열(최적+ 녹색 · 성장 필요 주황) ── */
.dx .quick-metrics dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dx .vs { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.dx .vs svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dx .vs.up { color: #26805d; background: #e5f2ec; }
.dx .vs.down { color: #c2502f; background: #fbebe5; }
.dx .vs.even { color: #6a7080; background: #f0eee8; }

/* ── 휴대폰 마무리 점검(총괄 2026-11-18: 그리드·크기·위치 전부) ──
   375·360·390 에서 재 본 것: 그래프 글씨가 실제로 8px 로 보였다(370 폭 그림을 282px 로 줄여서) → 등급을 아래 줄로 내리고(JS) 글씨 12.5
   · 10~11px 작은 글씨(열 이름·강점/점검 이름표·범례) → 12px · 리뷰 칸 배지가 칸마다 옆/아래로 다르게 붙었다 → 늘 숫자 아래
   · 키워드 줄 오른쪽 '100위 밖'이 테두리에 6px 로 붙었다 → 좌우 여백 10px */
@media (max-width: 640px) {
  .dx .editorial-intro .radar text { font-size: 12.5px; }
  .dx .editorial-intro .diag-plot { padding: 10px 6px 12px; }
  .dx .editorial-intro .radar-key, .dx .editorial-intro .diag-notes .grade-track { font-size: 12px; }
  .dx .takeaways dt { font-size: 12px; }
  .dx .keyword-column-labels, .dx .keyword-comparison-head > span { font-size: 12px; }
  .dx .keyword-comparison :is(.keyword-column-labels, .keyword-options button) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 58px; padding-inline: 10px; }
  .dx .keyword-column-labels span { white-space: nowrap; }   /* 12px 로 키우자 '현재 순위'가 '현재 순/위'로 갈렸다 */
  .dx .quick-metrics dd { flex-direction: column; align-items: flex-start; gap: 7px; }
}

/* 리뷰 칸 이름이 한쪽만 두 줄이 되면(360px 폭 '상위 30곳 방문자 리뷰 평균') 숫자 높이가 어긋났다 → 같은 줄 칸끼리 이름 높이를 맞춘다(subgrid) */
.dx .quick-metrics div:not([hidden]) { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 4px; }
.dx .quick-metrics dt { font-size: 12.5px; word-break: keep-all; text-wrap: balance; }   /* 11px → 12.5px(11-20 폰 점검) */
.dx .quick-metrics dd { margin-top: 0; align-self: start; }

/* ── 그래프 옆 칸(범례·강점·숫자 타일)을 그래프 칸 아래 끝까지(총괄 2026-11-18: 오른쪽 칸만 중간에서 끝났다) ──
   남는 높이를 숫자 타일 줄들이 똑같이 나눠 갖고, 타일 안 글씨는 세로 가운데. 그래프가 옆에 붙는 폭(761px~)에서만 — 휴대폰은 위아래로 쌓여 높이가 내용대로 */
@media (min-width: 761px) {
  .dx .editorial-intro .diag-notes { display: flex; flex-direction: column; }
  .dx .editorial-intro .diag-facts:not([hidden]) { flex: 1; grid-auto-rows: 1fr; }
  .dx .editorial-intro .diag-facts .fact { display: flex; flex-direction: column; justify-content: center; }
}

/* ── 함께해주신 매장(총괄 2026-11-18) — positionlab 의 구성(순위 변화 표 · 순위 기록+매출 · 사장님 대화 띠)만 참고, 모양은 솔성 ──
   01 여러 매장 한눈에 → 02 한 매장 깊게(네이비 요약 = 위 진단의 순위 칸과 같은 면) → 03 대화 캡처가 천천히 흐르는 띠.
   11-19 자료 다 채움(01 검색 화면 · 02 순위 기록 5 · 03 순위+매출 · 04 카톡 9) — 자리표시 칸(.cs-slot · '자료 준비 중')은 지웠다 */
/* 토스증권식 글자·색 체계(총괄 11-19) — 회색을 여러 개 쓰지 않고 남색(#142038) 한 가지의 진하기로만 위아래를 나눈다.
   밝은 면: t1 92% 제목·숫자 / t2 62% 설명 / t3 42% 덧말. 어두운 면: 흰색 92·62·42%. 선·칸 바탕도 같은 남색을 옅게.
   굵기는 500·700 만(사이트 글꼴에 있는 굵기), 숫자는 폭 고정. 금색은 블록마다 핵심 하나에만 */
.dx .case-studies { padding: clamp(56px, 7vw, 110px) 0;
  --t1: rgb(20 32 56 / .92); --t2: rgb(20 32 56 / .62); --t3: rgb(20 32 56 / .42);
  --line: rgb(20 32 56 / .1); --fill: rgb(20 32 56 / .04);
  --w1: rgb(255 255 255 / .92); --w2: rgb(255 255 255 / .62); --w3: rgb(255 255 255 / .42); --wline: rgb(255 255 255 / .12);
  --gold: #c9a84c; }
.dx .case-studies :is(.rk-to, .ly-n, .ly-v, .lyc-pct, .cs-shot-cap, .rk-days) { font-variant-numeric: tabular-nums lining-nums; }
.dx .case-heading .cs-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--t3); }
.dx .cs-block { margin-top: clamp(72px, 9vw, 136px); }   /* 11-20 '여백 없이 좁다' → 칸 사이 79 → 약 130px */
.dx .case-heading + .cs-block { margin-top: clamp(48px, 6vw, 88px); }
/* 큰 제목·칸 머리는 좌우 나눔(총괄 11-20 D안 — 리니어 칸 머리·편집 지면): 왼쪽에 번호+큰 제목, 오른쪽 아래에 설명.
   왼쪽 정렬만 하면 오른쪽이 비어 치우쳐 보이던 것(총괄 '너무 왼쪽')을 설명으로 채운다. 폰에선 위아래로 */
.dx .case-heading { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: end; }
.dx .case-heading .cs-eyebrow { grid-column: 1 / -1; }
.dx .case-heading h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.12; letter-spacing: -.05em; }
.dx .case-heading p:not(.cs-eyebrow) { margin: 0; padding-left: 20px; border-left: 2px solid #142038; font-size: 17px; font-weight: 500; color: var(--t2); text-wrap: pretty; }
.dx .cs-head > div { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: start; width: 100%; }   /* 위 선에서 제목·설명이 같은 거리로 시작 */
@media (max-width: 760px) {
  .dx .case-heading, .dx .cs-head > div { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .dx .case-heading p:not(.cs-eyebrow) { margin-top: 4px; }
}
.dx .cs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 12px 24px;
  padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid #142038; }   /* 칸 번호(01~04) 대신 위 가는 선(총괄 11-20 A안) */
.dx .cs-block > .cs-head + * { margin-top: clamp(24px, 3vw, 44px); }   /* 뒤에 오는 사진·카드·띠의 margin 규칙보다 우선 */
.dx .cs-head h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; color: var(--t1); line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; word-break: keep-all; }
.dx .cs-head p { margin: 0; padding-top: 8px; font-size: 16.5px; font-weight: 500; line-height: 1.7; color: var(--t2); word-break: keep-all; text-wrap: pretty; }

/* 03 순위 → 매출(총괄 2026-11-19) — 위: 한 매장의 원본 순위 기록 + 10월(금)·9월(회) 칸 덮개, 아래: 네이비 한 장에 L+(레이어드 + 색 포인트, 11-20) */
.dx .sl-card { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 18px 40px -34px #0f1c3566; }
.dx .sl-rank { margin: 0; padding-bottom: 24px; }
.dx .sl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 16px 24px;
  border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--t3); }
.dx .sl-bar b { margin-right: 10px; font-weight: 700; color: var(--t1); }
.dx .sl-keys { display: flex; gap: 16px; }
.dx .sl-keys i { display: inline-flex; align-items: center; gap: 7px; font-style: normal; font-weight: 500; color: var(--t2); }
.dx .sl-keys i::before { content: ""; width: 14px; height: 10px; border-radius: 3px; }
.dx .sl-keys .oct::before { background: #f5ebcd; box-shadow: inset 0 0 0 1px #c9a84c; }
.dx .sl-keys .sep::before { background: #eceef1; box-shadow: inset 0 0 0 1px rgb(20 32 56 / .2); }
.dx .sl-scroll { margin-top: 24px; padding-left: 24px; }
.dx .sl-shot { position: relative; min-width: 840px; max-width: 1123px; margin-inline: auto; }   /* 태블릿 이상은 칸 안에 다, 폰은 밀어서 */
.dx .rk-scroll .sl-shot img { width: 100%; height: auto; }
.dx .sl-tint { position: absolute; height: 22.73%; border-radius: 4px; mix-blend-mode: multiply; pointer-events: none; }
.dx .sl-tint.oct { background: #f5ebcd; }   /* 금은 채도를 낮춰 형광펜 노랑이 안 되게(11-19) */
.dx .sl-tint.sep { background: #eceef1; }   /* 남색을 옅게 — 글자색과 같은 가족 */

/* 03 매출 L+(총괄 11-20) — 색 약속은 매출 화면 원본과 같게: 오름 빨강 #F04452 · 내림 파랑 #3182F6 · 1위 금.
   어두운 바탕 위 작은 글씨는 밝은 쪽(#FF6D7A · #6AA8FF). 매출 화면은 오른쪽 아래가 빈 흰 면이라 두 장을 겹쳐 크게 쓴다 */
.dx .ly { background: #142038; color: var(--w1); }
.dx .lyc-say { margin: 0; padding: 38px 44px 0; font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -.035em; color: var(--w1); word-break: keep-all; }
.dx .lyc-say b { color: #f04452; }
.dx .lyc-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.12fr) minmax(0, 1.12fr); gap: 14px; align-items: stretch; padding: 24px 44px 6px; }
.dx .lyc-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px 24px 24px; border-radius: 16px; }
.dx .lyc-card.sep { background: rgb(49 130 246 / .12); box-shadow: inset 0 0 0 1px rgb(49 130 246 / .3); }
.dx .lyc-card.oct { background: rgb(240 68 82 / .13); box-shadow: inset 0 0 0 1px rgb(240 68 82 / .38); }
.dx .lyc-card.gain { justify-content: center; background: #f04452; color: #fff; box-shadow: 0 22px 44px -26px #f04452; }
.dx .lyc-chip { align-self: flex-start; margin: 0; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #fff; }
.dx .sep .lyc-chip { background: #3182f6; }
.dx .oct .lyc-chip { background: #f04452; }
.dx .gain .lyc-chip { background: rgb(255 255 255 / .22); }
.dx .ly-n { margin: 2px 0 0; font-size: 36px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }
.dx .lyc-card.oct .ly-n, .dx .lyc-card.gain .ly-n { font-size: 44px; }
.dx .lyc-card.gain .ly-n { color: #fff; }
.dx .ly-n small { margin-left: 2px; font-size: .42em; font-weight: 500; letter-spacing: 0; }
.dx .lyc-bar { height: 10px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / .1); }
.dx .lyc-bar i { display: block; height: 100%; border-radius: inherit; }
.dx .sep .lyc-bar i { background: #3182f6; }
.dx .oct .lyc-bar i { background: #f04452; }
.dx .lyc-dt { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--w2); }
.dx .lyc-dt em { font-style: normal; font-weight: 700; color: var(--w1); }   /* 사이트 공통 em 색(금·하늘) 끊기 */
.dx .lyc-dt .up { margin-right: 4px; font-weight: 800; color: #ff6d7a; }
.dx .lyc-dt .dn { margin-right: 4px; font-weight: 800; color: #6aa8ff; }
.dx .lyc-pct { align-self: flex-start; margin: 2px 0 0; padding: 6px 14px; border-radius: 10px; background: #fff; color: #f04452; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dx .lyc-arrow { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f04452; color: #fff; font-size: 22px; font-weight: 800; }
/* 겹친 사진 — 폭 62% 두 장, 앞 장(10월)은 오른쪽 끝·뒷장 높이 45% 지점부터(margin-top 은 폭 기준 % 라 화면 폭이 바뀌어도 같은 비율) */
.dx .ly-stage { position: relative; margin: 0 44px; padding: 44px 0 46px; }
.dx .ly-card { position: relative; width: 62%; margin: 0; }
.dx .ly-card.front { margin: -9.87% 0 0 auto; z-index: 1; }
.dx .ly-card img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.dx .ly-card.back img { box-shadow: 0 18px 40px -24px #000a; }
.dx .ly-card.front img { box-shadow: 0 34px 70px -22px #000c, 0 0 0 1px rgb(255 255 255 / .06); }
.dx .ly-tag { position: absolute; left: 16px; top: -15px; z-index: 2; margin: 0; padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.dx .ly-tag span { margin-left: 6px; font-weight: 500; color: rgb(255 255 255 / .85); }
.dx .ly-card.back .ly-tag { background: #3182f6; }
.dx .ly-card.front .ly-tag { background: #f04452; }
.dx .ly-ring { position: absolute; left: 2.6%; top: 67.5%; width: 31.6%; height: 31%; border: 2.5px solid #f04452; border-radius: 8px; box-shadow: 0 0 0 4px rgb(240 68 82 / .22); }
.dx .ly-card.back .ly-ring { border-color: #3182f6; box-shadow: 0 0 0 4px rgb(49 130 246 / .24); }
/* 같은 기간에 함께 바뀐 것 — 위 순위 기록에서 옮긴 숫자. 1위는 금, 늘어난 것은 빨강 */
.dx .ly-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 26px 44px 32px; background: #0f1a30; }
.dx .ly-stat { min-width: 0; margin: 0; padding: 0 24px; border-left: 1px solid var(--wline); }
.dx .ly-stat:first-child { padding-left: 0; border-left: 0; }
.dx .ly-stat small { display: block; font-size: 12.5px; font-weight: 500; color: var(--w3); }
.dx .ly-v { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--w1); white-space: nowrap; }
.dx .ly-stat span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--w2); }
.dx .ly-stat.gold .ly-v { color: #c9a84c; }
.dx .ly-stat.up .ly-v { color: #ff6d7a; }
@media (max-width: 999px) {
  .dx .lyc-head { grid-template-columns: minmax(0, 1fr); }
  .dx .lyc-arrow { justify-self: center; transform: rotate(90deg); }
  .dx .ly-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .dx .ly-stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* 03 사장님과 나눈 대화 — 같은 목록을 두 번 이어 붙여 끊김 없이 흐른다(뒤 묶음은 aria-hidden). 마우스를 올리면 멈춤, 움직임 줄이기 설정이면 손으로 넘김 */
/* 총괄 11-18: 화면 양 끝까지 붙이고 왼쪽→오른쪽으로 계속. 윈도 '애니메이션 효과' 끔(움직임 줄이기)이어도 흐른다 — 총괄 화면이 그 설정이라 멈춰 보였다.
   느리고 깜빡임 없음 · 마우스를 올리거나 칸에 초점이 가면 멈춤 */
.dx .case-studies { overflow-x: clip; }   /* 띠를 화면 끝까지 내도 가로 스크롤이 안 생기게 */
/* 04 카톡 띠(총괄 2026-11-20 '손으로 넘기고 누르면 크게') — 진짜 가로 스크롤 칸. 흐름은 diagnosis-page.js 가 스크롤 값을 조금씩 민다(스크립트가 없어도 손으로는 넘어간다) */
.dx .cs-marquee { margin: 24px calc(50% - 50vw) 0; overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dx .cs-marquee::-webkit-scrollbar { display: none; }
.dx .cs-marquee:focus-visible { outline: 2px solid #c9a84c; outline-offset: -2px; }
.dx .cs-track { display: flex; align-items: flex-start; gap: 16px; width: max-content; margin: 0; padding: 0 0 4px; list-style: none; }
.dx .cs-track li { flex: none; width: 300px; }   /* 캡처마다 원본 해상도가 달라도 폭을 같게 두면 글씨 크기가 거의 같다(줄 간격 13~15px) — 높이는 사진 그대로 */
.dx .cs-track img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -28px #0f1c3566; }
.dx .cs-track img { cursor: zoom-in; }
.dx .cs-track img:focus-visible { outline: 3px solid #c9a84c; outline-offset: 2px; }

@media (max-width: 640px) {
  .dx .cs-head h3 { font-size: 24px; }
  .dx .cs-head p { font-size: 14.5px; }
  .dx .sl-bar { padding: 13px 16px; font-size: 12.5px; }
  .dx .sl-keys { gap: 12px; }
  .dx .sl-rank { padding-bottom: 16px; }
  .dx .sl-scroll { margin-top: 16px; padding-left: 16px; }
  .dx .sl-shot { min-width: 1000px; }
  .dx .lyc-say { padding: 28px 20px 0; font-size: 21px; }
  .dx .lyc-head { padding: 18px 20px 4px; gap: 10px; }
  .dx .lyc-card { padding: 18px 18px 20px; }
  .dx .ly-n { font-size: 30px; }
  .dx .lyc-card.oct .ly-n, .dx .lyc-card.gain .ly-n { font-size: 34px; }
  .dx .ly-stage { margin: 0 20px; padding: 36px 0 34px; }
  .dx .ly-card { width: 100%; }
  .dx .ly-card.front { margin-top: 30px; }   /* 폰에선 겹치면 사진이 너무 작고 이름표가 날짜를 가림 — 위아래로 쌓는다 */
  .dx .ly-stats { padding: 22px 20px 26px; }
  .dx .ly-stat { padding: 0 14px; }
  .dx .ly-v { font-size: 21px; }
  .dx .cs-track { gap: 10px; }
  .dx .cs-track li { width: 220px; }
}

/* ── 헤더: 첫 화면(네이비) 위에서는 홈처럼 투명·흰 글씨(총괄 2026-11-18: 홈·프로젝트는 아래 배경과 색이 맞는데 여기만 아이보리였다) ──
   켜고 끄는 건 assets/diagnosis-page.js. 처음부터 켜진 채로 내보내 깜빡임 없음(build_diagnosis_page.py) */
header.header.dx-on-dark { background: transparent; color: #fff; border-color: #ffffff20; }
.menu-open header.header.dx-on-dark { background: var(--navy); border-color: #ffffff30; }

/* ── 함께해주신 매장 01 · 검색하면 이렇게 보입니다(총괄 2026-11-18 시안 C) ──
   실제 관리 업체 검색 화면. 왼쪽 큰 화면(처음엔 맛집) + 오른쪽 작은 칸 6개.
   캡처마다 세로 길이가 달라(폭 대비 1.6~2.8배) 작은 칸이 제각각 다른 곳을 잘라 보였다(총괄: "그리드가 다 다르다, 다 보이게") →
   칸은 모두 같은 크기(1:2), 캡처는 자르지 않고 칸 안에 통째로, 위쪽에 붙여 검색창 줄이 칸마다 같은 높이. 큰 화면은 작은 칸 두 줄 높이에 맞춘다 */
.dx .cs-shot-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; margin-top: 24px; align-items: stretch; }
.dx .cs-shot { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -32px #0f1c3566; }
.dx .cs-shot img { display: block; width: 100%; height: auto; }
.dx .cs-shot-main { display: flex; flex-direction: column; margin: 0; }
.dx .cs-shot-main .cs-shot { position: relative; flex: 1; min-height: 0; }
.dx .cs-shot-main .cs-shot img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; object-position: 50% 0; }   /* 높이를 안 보태게 — 큰 화면 높이는 오른쪽 칸이 정한다 */
.dx .cs-shot-main figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 4px 0; font-size: 18px; font-weight: 700; color: var(--t1); }
.dx .cs-pill { padding: 5px 11px; border-radius: 999px; background: var(--fill); color: var(--t2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dx .cs-shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dx .cs-shot-grid button { display: block; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  color: inherit; font: inherit; text-align: left; white-space: normal; cursor: pointer; }
.dx .cs-shot-grid .cs-shot { position: relative; aspect-ratio: 1 / 2; border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.dx .cs-shot-grid .cs-shot img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; object-position: 50% 0; }
.dx .cs-shot-grid button:hover .cs-shot { border-color: #c9a84c; box-shadow: 0 24px 48px -28px #0f1c3580; }
.dx .cs-shot-grid button:focus-visible { outline: 0; }
.dx .cs-shot-grid button:focus-visible .cs-shot { outline: 3px solid #c9a84c; outline-offset: 2px; }
.dx .cs-shot-cap { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 9px 2px 0; font-size: 15px; font-weight: 700; color: var(--t1); }
.dx .cs-shot-cap em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--t3); }
@media (max-width: 760px) {
  .dx .cs-shot-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dx .cs-shot-main .cs-shot { flex: none; aspect-ratio: 1 / 1.6; }
  .dx .cs-shot-grid { gap: 8px; }
  .dx .cs-shot-cap { font-size: 13px; }
  .dx .cs-shot-cap em { display: none; }
}

/* ── 함께해주신 매장 02 · 키워드 순위 변화(총괄 2026-11-18 "디자인 제대로") ──
   매장마다 카드 하나: 왼쪽 네이비 결과 칸(위 진단 순위 칸과 같은 면 — 네이비 #142038 · 금색 숫자 #E8C874)
   + 오른쪽 원본 기록 칸(흰 바탕 위 원본, 길면 옆으로 밀기). 11-19 토스증권식: 큰 숫자는 흰색 고딕, 금은 '최고 N위' 하나 */
.dx .rk-list { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.dx .rk-case { display: grid; grid-template-columns: 290px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; box-shadow: 0 18px 40px -34px #0f1c3566; }
.dx .rk-result { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 28px; background: #142038; color: #fff; }
.dx .rk-keep { margin: 0; line-height: 1; }
.dx .rk-keep > small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--w2); }
.dx .rk-to { font-size: 54px; font-weight: 700; letter-spacing: -.03em; color: var(--w1); }
.dx .rk-to small { margin-left: 3px; font-size: 22px; font-weight: 500; letter-spacing: 0; color: inherit; }
.dx .rk-days { margin: 0; padding-top: 12px; border-top: 1px solid var(--wline); font-size: 14px; font-weight: 500; color: var(--w2); }
.dx .rk-days b { font-weight: 700; color: var(--gold); }
.dx .rk-record { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 0; padding: 18px 0 18px 20px; }
.dx .rk-scroll { overflow-x: auto; overflow-y: hidden; padding-right: 20px; scrollbar-width: thin; scrollbar-color: rgb(20 32 56 / .2) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.dx .rk-scroll.end { -webkit-mask-image: none; mask-image: none; }
.dx .rk-scroll:focus-visible { outline: 2px solid #c9a84c; outline-offset: 2px; }
.dx .rk-scroll img { display: block; width: auto; max-width: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
/* 경쟁 매장 표 이름 — 겉모양은 그대로, 누르는 영역만 위아래로 넓힘(18px → 40px, 11-20 폰 점검) */
.dx .row-store { padding-block: 11px; margin-block: -11px; }
/* 02 폰에서는 카드 3장 + '기록 2개 더 보기'(11-20 폰 점검 — 02 가 폰에서 약 2화면) */
.dx .rk-more { display: none; }
@media (max-width: 640px) {
  .dx .rk-list:not(.open) > .rk-case:nth-child(n+4) { display: none; }
  .dx .rk-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 12px; border: 0; border-radius: 14px;
    background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; font-weight: 700; color: var(--t1); cursor: pointer; }
  .dx .rk-list.open + .rk-more { display: none; }
}
/* 사진마다 원래 글씨 크기가 달라 높이를 따로 — 표에서 글씨가 비슷하게 보이게 */
.dx .rk-scroll img.r1 { height: 180px; }
.dx .rk-scroll img.r2 { height: 160px; }
.dx .rk-scroll img.r3 { height: 140px; }
.dx .rk-scroll img.r4 { height: 156px; }
.dx .rk-scroll img.r5 { height: 154px; }
@media (max-width: 999px) { .dx .rk-case { grid-template-columns: 240px minmax(0, 1fr); } .dx .rk-result { padding: 22px; } .dx .rk-to { font-size: 52px; } }
@media (max-width: 640px) {
  .dx .rk-case { grid-template-columns: minmax(0, 1fr); }
  .dx .rk-result { gap: 10px; padding: 18px 18px 16px; }
  .dx .rk-to { font-size: 46px; }
  .dx .rk-to small { font-size: 17px; }
  .dx .rk-days { padding-top: 10px; }
  .dx .rk-record { padding: 14px 0 16px 14px; }
  .dx .rk-scroll img.r1 { height: 144px; }
  .dx .rk-scroll img.r2 { height: 128px; }
  .dx .rk-scroll img.r3 { height: 112px; }
  .dx .rk-scroll img.r4 { height: 125px; }
  .dx .rk-scroll img.r5 { height: 123px; }
}

/* 함께해주신 매장 맨 아래 안내 한 줄(총괄 11-19: 쓸데없는 설명은 다 빼고 이것만 남김) */
.dx .cs-foot { margin: clamp(36px, 4vw, 56px) 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--t3); }

/* 마무리 칸(총괄 11-20 — 사다리 C + 금빛 A): 1단계 무료 진단(옅은 금빛) → 2단계 상세 진단(남색 + 금색 버튼).
   레퍼런스 실측 공식 '짙은 기준색 하나 + 옅게 물들인 카드 + 강한 포인트 하나'를 브랜드 남색·금으로. 글자 명암비: 8A6A22/FBF4E2 4.6 · 남색/금 7.1 */
.dx .ct { margin-top: clamp(72px, 9vw, 136px); }
.dx .ct h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; color: var(--t1); word-break: keep-all; text-wrap: balance; text-align: center; }   /* 11-20 총괄 '가운데로' */
.dx .ct h2 em { font-style: normal; color: #8a6a22; }
.dx .cv-ladder { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; gap: 14px; margin-top: 28px; }
.dx .cv-step { display: flex; flex-direction: column; gap: 10px; padding: 28px 30px; border-radius: 20px; background: #fbf4e2; box-shadow: inset 0 0 0 1px rgb(201 168 76 / .4);
  color: var(--t1); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dx .cv-step:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(201 168 76 / .4), 0 20px 40px -28px #0f1c3566; }
.dx .cv-step:focus-visible { outline: 3px solid #c9a84c; outline-offset: 3px; }
.dx .cv-step em { font-style: normal; font-size: 13px; font-weight: 700; color: #8a6a22; }
.dx .cv-step b { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.04em; }
.dx .cv-step ul { display: grid; gap: 6px; margin: 4px 0 18px; padding: 0; list-style: none; }
.dx .cv-step li { position: relative; padding-left: 16px; font-size: 15px; font-weight: 500; color: var(--t2); word-break: keep-all; }
.dx .cv-step li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: #c9a84c; }
/* 카드 아래 눌리는 입체 버튼(11-20 총괄 C안 — '누르는 기능 같지 않다'). 윗면 + 아래 두께(5px) + 옅은 그림자로 떠 보이고, 누르면 내려감.
   남색은 두께와 윗면 색이 비슷하면 두께가 안 보여(총괄 '왼쪽은 입체감이 안 든다') 윗면을 한 단계 밝게(#1F3157), 두께는 더 짙게(#08101F) + 윗면 가장자리 빛 */
.dx .cv-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; margin-top: auto; padding: 0 20px;
  border-radius: 12px; background: #1f3157; color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 5px 0 #08101f, 0 14px 22px -12px rgb(15 28 53 / .6);
  transform: translateY(-2px); transition: transform .08s, box-shadow .08s, background-color .15s; }
.dx .cv-go i { font-style: normal; font-size: 20px; transition: transform .15s; }
.dx .cv-step:hover { transform: none; }
.dx .cv-step:hover .cv-go, .dx .cv-step:focus-visible .cv-go { background: #25395f; transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 6px 0 #08101f, 0 16px 24px -12px rgb(15 28 53 / .6); }
.dx .cv-step:hover .cv-go i, .dx .cv-step:focus-visible .cv-go i { transform: translateX(4px); }
.dx .cv-step:active .cv-go { transform: translateY(3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 0 0 #08101f, 0 4px 8px -6px rgb(15 28 53 / .6); }
.dx .cv-step.dark { background: #142038; box-shadow: none; color: #fff; }
.dx .cv-step.dark:hover { box-shadow: 0 20px 40px -24px #0f1c3599; }
.dx .cv-step.dark em { color: #c9a84c; }
.dx .cv-step.dark li { color: var(--w2); }
.dx .cv-step.dark .cv-go { background: #c9a84c; color: #142038; box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), 0 5px 0 #8a6a22, 0 14px 22px -12px rgb(0 0 0 / .55); }
.dx .cv-step.dark:hover .cv-go, .dx .cv-step.dark:focus-visible .cv-go { background: #d3b257; box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), 0 6px 0 #8a6a22, 0 16px 24px -12px rgb(0 0 0 / .55); }
.dx .cv-step.dark:active .cv-go { box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), 0 0 0 #8a6a22, 0 4px 8px -6px rgb(0 0 0 / .55); }
.dx .cv-arrow { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #c9a84c; color: #142038; font-size: 20px; }
@media (max-width: 760px) {
  .dx .cv-ladder { grid-template-columns: minmax(0, 1fr); }
  .dx .cv-arrow { justify-self: center; transform: rotate(90deg); }
  .dx .cv-step { padding: 24px; }
}

/* 사진 크게 보기 창(diagnosis-page.js showBig) — body 에 붙어 .dx 밖이라 이름으로만 잡는다 */
.cs-lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.cs-lightbox::backdrop { background: rgb(9 16 30 / .9); }
.cs-lb-body { box-sizing: border-box; display: flex; height: 100%; padding: 68px 16px 28px; overflow: auto; overscroll-behavior: contain; }
.cs-lb-body img { display: block; width: min(100%, 600px); height: auto; margin: auto; border-radius: 12px; box-shadow: 0 30px 60px -24px #000; }   /* margin:auto — 짧으면 가운데, 길면 위부터 밀어 본다 */
.cs-lb-close { position: fixed; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font: 700 20px/44px system-ui, sans-serif; cursor: pointer; }
.cs-lb-close:hover { background: rgb(255 255 255 / .26); }
.cs-lb-close:focus-visible { outline: 2px solid #c9a84c; outline-offset: 2px; }
.dx .cs-shot-main img { cursor: zoom-in; }

/* 01 검색 화면 — 폰은 큰 사진 하나 + 작은 칸 대신 같은 크기 카드 7장을 옆으로 넘긴다(총괄 2026-11-20). 옆 카드가 살짝 보여 넘길 수 있음을 알린다 */
@media (max-width: 760px) {
  .dx .cs-shot-body { display: flex; gap: 12px; margin-inline: calc(50% - 50vw); padding: 2px calc(50vw - 50%) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: calc(50vw - 50%); overscroll-behavior-x: contain; scrollbar-width: none; }
  .dx .cs-shot-body::-webkit-scrollbar { display: none; }
  .dx .cs-shot-body > div, .dx .cs-shot-grid { display: contents; }
  .dx .cs-shot-main, .dx .cs-shot-grid li { flex: none; width: min(56vw, 240px); scroll-snap-align: start; }
  .dx .cs-shot-main .cs-shot, .dx .cs-shot-grid .cs-shot { flex: none; aspect-ratio: 1 / 1.9; border-radius: 14px; }
  .dx .cs-shot-main .cs-shot img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .dx .cs-shot-main figcaption { margin: 9px 2px 0; font-size: 13px; }
  .dx .cs-shot-main .cs-pill { padding: 0; background: none; font-size: 12px; font-weight: 500; color: var(--t3); }
  .dx .cs-shot-cap em { display: inline; }
}

/* 폰 전체 크기 약 75%(총괄 2026-11-20 '모바일이 너무 크다') — 제목·큰 숫자·여백·사진을 줄인다. 본문 13px 아래로는 안 내리고, 입력칸 16px(아이폰 확대 방지)·누르는 칸 44px 은 그대로 */
@media (max-width: 640px) {
  .dx .editorial-intro { --city-h: clamp(480px, 74svh, 640px); padding-top: 96px; padding-bottom: 56px; }
  .dx .editorial-intro h1 { font-size: clamp(25px, 7vw, 30px); }
  .dx .editorial-intro .intro-copy { font-size: 13px; margin-top: 8px; }
  .dx .editorial-intro .hero-copy { gap: 12px; margin-bottom: 18px; }
  .dx .case-studies { padding: 44px 0; }
  .dx .case-heading .cs-eyebrow { margin-bottom: 8px; font-size: 12px; }
  .dx .case-heading h2 { font-size: 26px; }
  .dx .case-heading p:not(.cs-eyebrow) { padding-left: 14px; font-size: 14px; }
  .dx .cs-block { margin-top: 54px; }
  .dx .case-heading + .cs-block { margin-top: 36px; }
  .dx .cs-head { padding-top: 21px; }
  .dx .cs-head h3 { font-size: 19px; }
  .dx .cs-head p { padding-top: 4px; font-size: 13.5px; line-height: 1.65; }
  .dx .cs-block > .cs-head + * { margin-top: 18px; }
  .dx .rk-result { padding: 16px; }
  .dx .rk-to { font-size: 34px; }
  .dx .rk-to small { font-size: 13px; }
  .dx .rk-days { font-size: 13px; padding-top: 8px; }
  .dx .lyc-say { padding: 21px 16px 0; font-size: 16px; }
  .dx .ly-n { font-size: 23px; }
  .dx .lyc-card.oct .ly-n, .dx .lyc-card.gain .ly-n { font-size: 26px; }
  .dx .ly-v { font-size: 16px; }
  .dx .ly-stats { padding: 16px 14px 20px; }
  .dx .cs-marquee { margin-top: 18px; }
  .dx .cs-track { gap: 8px; }
  .dx .cs-track li { width: 165px; }
  .dx .cs-track img { border-radius: 10px; }
  .dx .cs-foot { margin-top: 28px; font-size: 12px; }
  .dx .ct { margin-top: 54px; }
  .dx .ct h2 { font-size: 21px; }
  .dx .cv-step { padding: 18px; gap: 7px; border-radius: 16px; }
  .dx .cv-step b { font-size: 19px; }
  .dx .cv-step ul { margin-bottom: 14px; gap: 4px; }
  .dx .cv-step li { font-size: 13.5px; }
  .dx .cv-go { min-height: 48px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
}
