/* SUSHIJARO 「UI만」 스킨 시안 — dickwu/apple-design 스킬 기준 (2026-11-22)
   원칙: 화면 구조·순서·문구·동작(UX)은 그대로. 색·글꼴·선·모서리·그림자·누름 반응만 바꿔요.
   켜기: SZ_UI_V2=1 (src/lib/ui2.js). 이 파일은 공통(base). 화면별 규칙은 home.css·clinic.css·pages.css 에.
   서명(signature) 하나 = 회전초밥 접시(용량·순위 접시). 그 밖은 조용하게. */

/* ── 1. 토큰 다시 맞추기 (기존 변수 이름 그대로, 값만) ──
   대비는 흰색(#FFFFFF) 위 기준 */
html.ui2{
  --washi:#FFFFFF;          /* 바탕: 흰색(사용자 결정 11/22) — 무늬 없음 */
  --washi-2:#EFEAE1;
  --card:#FFFFFF;
  --line:#E7E0D4;           /* 선: 더 옅게(장식선 → 구분선) */
  --sumi:#24201D;           /* 본문 15.9:1 */
  --sumi-2:#5E534B;         /* 보조 7.4:1 (원래 값 유지) */
  --ai:#1F3A5F;             /* 남색: 내비·선택·링크 11.6:1 */
  --ai-soft:#E8EDF4;
  --shu:#B3352A;            /* 슈: 주 행동 버튼과 경고만 6.0:1 */
  --shu-dark:#8F2A21;
  --wasabi:#2F6110;         /* 이득·됨 7.4:1 */
  --wasabi-soft:#EAF3E0; --wasabi-line:#CFE3BA;
  --tamago-text:#6E4A00;    /* 조건·확인 필요 8.4:1 */
  --tamago-soft:#FFF4D4; --tamago-line:#EFD892;
  --shadow:0 1px 2px rgba(40,30,20,.05),0 2px 8px rgba(40,30,20,.04);
  --u2-press:scale(.97);
  --u2-font:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,system-ui,'Apple SD Gothic Neo','Hiragino Sans','PingFang TC',sans-serif;
}

/* ── 2. 바탕·장식 걷어내기 ── */
html.ui2 body.seigaiha{background-image:none;background-color:var(--washi)}
html.ui2 .top-noren{height:5px;gap:0}                 /* 노렌 띠: 얇은 남색 선 하나로 */
html.ui2 .top-noren span{border-radius:0}
html.ui2 .wood,html.ui2 .geta,html.ui2 .tag{background:var(--card);background-image:none;border:1px solid var(--line);box-shadow:none}
html.ui2 .tag:before{display:none}

/* ── 3. 글꼴: 본문 글꼴 하나. Jua 는 로고 글자에만 ── */
html.ui2 body,html.ui2 body *{font-family:var(--u2-font)!important}
html.ui2 .brand b{font-family:'Jua',var(--u2-font)!important}
/* 예전에 Jua(굵기 1개)로 쓰던 곳은 Pretendard 700 으로 무게를 되살려요 (목록: 기존 CSS 에서 font-family:Jua 를 쓰던 선택자 106개) */
html.ui2 .adm .adm-h1,
html.ui2 .adm-stat b,
html.ui2 .af-n,
html.ui2 .af-relax a b,
html.ui2 .af-relax-h,
html.ui2 .at-nums b,
html.ui2 .big-total,
html.ui2 .brand b,
html.ui2 .bt-total b,
html.ui2 .btn,
html.ui2 .calc-headline,
html.ui2 .cc2-head h1,
html.ui2 .cc2-sheet-h,
html.ui2 .cc2-sheet-yes,
html.ui2 .cl-res-h,
html.ui2 .cmp-big,
html.ui2 .cmp-count,
html.ui2 .cmp-tray-title,
html.ui2 .cond-cell b,
html.ui2 .cond-wrap .ra-reset,
html.ui2 .course-msg,
html.ui2 .cr-h,
html.ui2 .cs-num b,
html.ui2 .cv2-bar-sum b,
html.ui2 .cv2-big b,
html.ui2 .cv2-head h1,
html.ui2 .cv2-plate,
html.ui2 .detail-head h1,
html.ui2 .dl-panel h2,
html.ui2 .dose-current b,
html.ui2 .eg-cta b,
html.ui2 .enfx-opt,
html.ui2 .fc-brand b,
html.ui2 .fc-btn,
html.ui2 .fc-h1,
html.ui2 .fc-h2,
html.ui2 .fc-stamp,
html.ui2 .fd-h,
html.ui2 .fd-pill>span>b,
html.ui2 .fs-line,
html.ui2 .guide-steps .no,
html.ui2 .jx-btn,
html.ui2 .jx-headline .jx-n,
html.ui2 .jx-sh h3,
html.ui2 .lg-one,
html.ui2 .map-card-price b,
html.ui2 .map-pin,
html.ui2 .map-pin em,
html.ui2 .map-pin.price,
html.ui2 .msg-box header,
html.ui2 .noren span,
html.ui2 .ns-form h2,
html.ui2 .ns-sent h3,
html.ui2 .nx h2,
html.ui2 .nx-n,
html.ui2 .panel h2,
html.ui2 .pc-go,
html.ui2 .pen-svg .pen-eq,
html.ui2 .ph-op,
html.ui2 .plate,
html.ui2 .pr-plate,
html.ui2 .prep-course .slot .empty,
html.ui2 .prep-pens,
html.ui2 .price-col b,
html.ui2 .quiz-q legend,
html.ui2 .ra-list .price-col b,
html.ui2 .ra-plate b,
html.ui2 .ra-sh h2,
html.ui2 .rg-title,
html.ui2 .rk b,
html.ui2 .route-card b,
html.ui2 .rvh .big,
html.ui2 .rvh .go,
html.ui2 .sa-badge b,
html.ui2 .sa-hint em,
html.ui2 .sa-morebtn b,
html.ui2 .sa-morecard b,
html.ui2 .sa-rev b,
html.ui2 .sa-sub em,
html.ui2 .sa-t em,
html.ui2 .sa-walk b,
html.ui2 .save-pill,
html.ui2 .sl-count b,
html.ui2 .st-dev-price,
html.ui2 .st-done-t,
html.ui2 .st-his-head h2,
html.ui2 .stamp,
html.ui2 .stepper a.step,
html.ui2 .stepper button,
html.ui2 .stepper output,
html.ui2 .te-bt b,
html.ui2 .te-city b,
html.ui2 .te-more>summary b,
html.ui2 .te-q,
html.ui2 .three li::before,
html.ui2 .tl-h1,
html.ui2 .trip-d input,
html.ui2 .trip-dday,
html.ui2 .trip-sec,
html.ui2 .trip-title,
html.ui2 .ts-cancel-h,
html.ui2 .ts-steps h2,
html.ui2 .tsa-stats b,
html.ui2 .unit,
html.ui2 h1.page,
html.ui2 html.map-mode .ra-meta{font-weight:700}
html.ui2 body{letter-spacing:-.005em}
html.ui2 h1{letter-spacing:-.022em}
html.ui2 h2{letter-spacing:-.015em}
html.ui2 :lang(ko){word-break:keep-all}

/* ── 4. 표면: 두꺼운 선·바닥 그림자 → 1px 선 + 옅은 그림자 ── */
html.ui2 .card,html.ui2 .cv2-box,html.ui2 .panel{border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
html.ui2 .cond-bar{border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px}
html.ui2 .cv2-fact,html.ui2 .pg{border:1px solid var(--line);box-shadow:none}

/* ── 5. 버튼: 평평한 채움 + 누르는 순간 반응 ── */
html.ui2 .btn{font-weight:700;letter-spacing:-.01em;border-radius:14px}
html.ui2 .btn.primary{box-shadow:none;background:var(--shu)}
html.ui2 .btn.primary:active{background:var(--shu-dark)}
html.ui2 .btn.ghost{box-shadow:none;border-width:1px}
html.ui2 .site-head .icon-btn{border:1px solid var(--line);border-radius:999px;background:#fff}
html.ui2 .site-head .app-actions .icon-btn{position:relative}
html.ui2 .site-head .app-actions .icon-btn::after{content:"";position:absolute;inset:-2px}   /* 모양 40px 그대로(머리 높이 유지), 누름 44px */
html.ui2 :is(.btn,.icon-btn,.jx-btn,.eg-save,.cmp-add,.ss-btn,.near-cta,.entry-chip,.rank-item,.pg,.cv2-plate,.tabbar a,.site-nav a){transition:transform .1s ease-out,background-color .15s ease-out}
html.ui2 :is(.btn,.icon-btn,.jx-btn,.eg-save,.cmp-add,.ss-btn,.near-cta,.entry-chip,.pg,.cv2-plate):active{transform:var(--u2-press)}
html.ui2 .rank-item:active{background:var(--washi-2)}
@media (hover:hover){html.ui2 .rank-item:hover{background:#FBF9F5}}

/* ── 6. 칩: 테두리 빼고 옅은 바탕, 최소 12px ── */
html.ui2 .chip{border:0;border-radius:6px;font-size:12px;font-weight:600;padding:3px 7px}
html.ui2 .chip.warn{border:0}
html.ui2 .chip.mute{background:var(--washi-2);color:var(--sumi-2)}
html.ui2 .jx-chip{font-size:12px!important}

/* ── 8. 서명: 접시는 그대로 색을 살리고, 입체감만 정돈 ── */
html.ui2 .ra-plate{box-shadow:0 1px 0 var(--rd),0 2px 6px rgba(0,0,0,.08)}
html.ui2 .plate i,html.ui2 .cv2-plate{box-shadow:inset 0 0 0 4px rgba(255,255,255,.55),0 1px 3px rgba(0,0,0,.12)}
html.ui2 .cv2-plate.on{outline:2.5px solid var(--ai);outline-offset:2px}

/* ── 9. 내비: 위 탭 알약, 아래 탭 막대 반투명 ── */
html.ui2 .site-nav a[aria-current=page]{box-shadow:none}
@media (max-width:1023px){
  html.ui2 .tabbar{background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-top:0;box-shadow:inset 0 .5px 0 rgba(60,50,40,.18)}
  html.ui2 .tabbar a{font-weight:600;color:#6F665D}
  html.ui2 .tabbar a[aria-current=page]{color:var(--ai)}
  html.ui2 .tabbar a[aria-current=page] svg{background:none;padding:0;width:24px}
}
html.ui2 .map-fab{box-shadow:0 1px 3px rgba(0,0,0,.1),0 8px 24px rgba(0,0,0,.14)}

/* ── 10. 접근성 설정 ── */
@media (prefers-reduced-transparency:reduce){html.ui2 .tabbar{background:#FFFFFF;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (prefers-contrast:more){html.ui2{--line:#B9AE9E;--sumi-2:#3F3832}}
@media (prefers-reduced-motion:reduce){html.ui2 *{transition:none!important}}

/* ── 12. 머리·공통 부품 보완 (세션 A·B 측정에서 남은 것) ── */
html.ui2 .lang-list a{min-height:44px}                 /* 언어 메뉴 항목 37 → 44 */
html.ui2 .lang-menu .lang-code{font-size:12px}         /* 머리 언어 코드 11 → 12 */
html.ui2 .site-head a.brand{padding-block:5px;margin-block:-5px}  /* 로고 링크 누름 34 → 44, 머리 높이는 그대로 */
html.ui2 .rank-item .badges .chip{font-size:12px}      /* 홈 밖(/china 등) 목록 줄 칩 11 → 12 */
/* 입력칸 테두리: 선이 1px 로 가늘어진 만큼 색을 진하게 — 흰 바탕 대비 3.5:1 (WCAG 1.4.11 입력 경계 3:1 이상) */
html.ui2 :is(input.in,select.in,textarea.in){border-color:#958775}
html.ui2 :is(input.in,select.in,textarea.in):focus{border-color:var(--ai)}
