/* ============================================================
   Rebeauty Builder — 테넌트 사이트 테마 레이어 (모바일 퍼스트)
   site.css 뒤에 로드된다. 레이아웃(구조) × 스킨(비주얼)만 담당.
   스킨 토큰은 <html style="--bg:…"> 인라인 변수로 주입된다.

   설계 원칙
   1) 기본 스타일은 모바일. 데스크톱은 min-width 미디어쿼리로 올린다.
   2) 터치 타깃 최소 44px, iOS 안전영역(safe-area) 반영.
   3) 가로 스크롤 금지 — 넘칠 수 있는 요소는 자체 컨테이너에서만 스크롤.
   ============================================================ */

/* ---------------------------------------------------------- 기반 */
.site {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  /* clip 이어야 한다. hidden 은 다른 축을 auto 로 만들어 body 를 스크롤 컨테이너로 바꾸고,
     그러면 하위의 position:sticky(헤더·레일·탭바)가 전부 죽는다. clip 은 스크롤 컨테이너를 만들지 않는다. */
  overflow-x: clip;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--brand) 18%, transparent);
  text-size-adjust: 100%;
}
.site a { color: inherit; }
.site .muted, .site .st-card-meta, .site .st-detail-region { color: var(--mut); }
.site h1, .site h2, .site h3, .site .st-card-title, .site .st-detail-title, .site .st-section-title {
  font-family: var(--font-head, var(--font));
  font-weight: var(--head-weight, 800);
  letter-spacing: var(--head-track, -0.02em);
}
.site :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* 컨테이너 폭 */
.site .st-wrap { max-width: var(--wrap, 1200px); padding-inline: var(--pad, 16px); }
.cont-full .st-wrap { max-width: none; }

/* 배경 텍스처 */
.tex-grain .site::before, .site.tex-grain::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site.tex-dots  { background-image: radial-gradient(color-mix(in srgb, var(--fg) 8%, transparent) 1px, transparent 1px); background-size: 18px 18px; }
.site.tex-grid  { background-image: linear-gradient(color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px),
                                    linear-gradient(90deg, color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px);
                  background-size: 28px 28px; }

/* ---------------------------------------------------------- 헤더 */
.site .st-header {
  background: var(--surface); border-bottom: var(--border-w, 1px) solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site .st-header-inner { height: 56px; gap: .75rem; }
/* 브랜드는 남는 폭을 다 쓰고 모자랄 때만 말줄임 (예전 46vw 상한은 자리가 있어도 잘랐다).
   내비·언어 선택은 줄어들지 않는다 — 줄어들면 내비 글자가 언어 알약 밑으로 겹쳐 들어갔다 */
.site .st-brand { font-size: 1rem; gap: .5rem; min-width: 0; }
.site .st-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.site .st-brand-mark { flex: none; width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg, #fff)); }
.site .st-nav { display: none; flex-shrink: 0; }
.site .st-nav a:hover { color: var(--accent-text, var(--brand)); }
.site .st-lang { margin-inline-start: auto; flex: none; position: relative; display: flex; align-items: center; color: var(--fg); }
/* 언어 선택 — 단축 속성 background 가 site.css 의 화살표 이미지를 지워 입력칸처럼 보였다.
   화살표는 글자색(currentColor)을 따르는 마스크로 다시 그린다 → 다크 스킨·브랜드색 헤더에서도 보인다 */
.site .st-lang-select {
  background: none; background-color: var(--ui, var(--surface));
  border: var(--border-w, 1px) solid var(--line); color: var(--fg);
  border-radius: var(--radius-btn, 999px); min-height: 36px; font-size: .8125rem;
  padding-block: 0; padding-inline: .8rem 1.9rem;
}
.site .st-lang::after {
  content: ""; position: absolute; inset-inline-end: .75rem; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: currentColor; opacity: .7; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 모바일 + 인라인 내비(브랜드·내비·언어가 한 줄): 언어 선택을 지구본 아이콘 알약으로 줄인다.
   선택된 언어명은 투명 처리(드롭다운 항목 글자는 되살림). 접근 가능한 이름은 sr-only <label> 이 준다 */
@media (max-width: 699px) {
  .site.mnav-inline .st-header-inner { gap: .6rem; }
  .site.mnav-inline .st-header .st-lang-select { width: 3.4rem; padding-inline: 0; color: transparent; }
  .site.mnav-inline .st-header .st-lang-select option { color: var(--fg); background-color: var(--surface); }
  .site.mnav-inline .st-header .st-lang::after { inset-inline-end: .6rem; }
  .site.mnav-inline .st-header .st-lang::before {
    content: ""; position: absolute; inset-inline-start: .6rem; top: 50%; width: 17px; height: 17px; margin-top: -8.5px;
    background: currentColor; pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

.hd-blur .st-header { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); }
/* 투명 헤더 — 헤더는 히어로 '위'에 겹치지 않고 그 앞의 일반 흐름에 있다. 정말 투명하게 두면
   흰 페이지 위에 흰 글자가 되어 브랜드명이 사라졌다(목록·상세 전부, <1024).
   그래서 기본은 단색이고, 페이지가 브랜드색 히어로(banner·cover·poster)로 시작할 때만 그 색을 이어받아
   히어로와 한 덩어리로 보이게 한다. sticky 로 따라 내려와도 글자가 늘 읽힌다. */
.hd-transparent:is(.hero-banner, .hero-cover, .hero-poster):has(main > .st-hero:first-child) {
  --hd-bg: var(--brand-safe, var(--brand)); --hd-fg: var(--brand-safe-fg, var(--accent-fg, #fff));
  --hd-line: color-mix(in srgb, var(--hd-fg) 14%, transparent);
  --hd-ctl-bg: color-mix(in srgb, var(--hd-fg) 16%, transparent);
  --hd-ctl-line: color-mix(in srgb, var(--hd-fg) 38%, transparent);
}
.hd-transparent .st-header { background: var(--hd-bg, var(--surface)); border-bottom-color: var(--hd-line, var(--line)); }
.hd-transparent .st-header .st-brand-name { color: var(--hd-fg, inherit); }
.hd-transparent .st-header .st-nav a { color: var(--hd-fg, var(--mut)); }
.hd-transparent .st-header .st-brand-mark { background: var(--hd-fg, var(--brand-safe, var(--brand))); color: var(--hd-bg, var(--brand-safe-fg, var(--accent-fg, #fff))); }
.hd-transparent .st-header .st-lang { color: var(--hd-fg, var(--fg)); }
.hd-transparent .st-header .st-lang-select {
  background-color: var(--hd-ctl-bg, var(--ui, var(--surface)));
  border-color: var(--hd-ctl-line, var(--line)); color: var(--hd-fg, var(--fg));
}

/* ---------------------------------------------------------- 버튼 */
.site .btn { border-radius: var(--radius-btn, 999px); min-height: 44px; font-weight: 700; }
.site .btn--sm { min-height: 36px; }
/* 글자가 올라가는 브랜드 채움은 대비 보정색(--brand-safe/-fg, 계약 §14). 코어가 아직 안 내보내면 예전 값 */
.site .btn--primary { background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg, #fff)); }
.site .btn--ghost { background: var(--surface); border: var(--border-w,1px) solid var(--line); color: var(--fg); }

/* ---------------------------------------------------------- 히어로 */
.site .st-hero { background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg, #fff)); padding: 2rem 0 1.75rem; text-align: center; }
.site .st-hero h1 { font-size: clamp(1.35rem, 6vw, 1.9rem); line-height: 1.25; }
.site .st-hero p  { margin-top: .5rem; font-size: .9375rem; opacity: .9; }
.site .st-hero .btn { margin-top: 1.1rem; background: var(--surface); color: var(--accent-text, var(--brand)); }

.hero-banner .st-hero {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-safe, var(--brand)) 88%, #000) 0%, var(--brand-safe, var(--brand)) 55%,
    color-mix(in srgb, var(--brand-safe, var(--brand)) 68%, #fff) 100%);
}
.hero-split .st-hero { background: var(--soft); color: var(--fg); text-align: start; }
.hero-split .st-hero p { color: var(--mut); opacity: 1; }
.hero-split .st-hero .btn { background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); }
.hero-split .st-hero-art { display: none; }

.hero-search .st-hero-search {
  margin: 1.1rem auto 0; display: flex; gap: .4rem; background: var(--surface);
  padding: .35rem; border-radius: var(--radius-btn, 999px); box-shadow: var(--shadow);
}
.hero-search .st-hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem .9rem;
  font: inherit; font-size: 1rem; color: var(--fg); outline: none;   /* 16px — iOS 자동 확대 방지 */
}
.hero-search .st-hero-search button {
  border: 0; border-radius: var(--radius-btn, 999px); padding: 0 1.1rem; min-height: 40px;
  background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); font: inherit; font-weight: 700; cursor: pointer;
}

.hero-poster .st-hero { padding: 3rem 0 2.6rem; position: relative; overflow: hidden; }
.hero-poster .st-hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.26), transparent 60%); }
.hero-poster .st-hero h1 { font-size: clamp(1.6rem, 8vw, 2.3rem); }
.hero-poster .st-hero .st-wrap { position: relative; z-index: 1; }

.hero-minimal .st-hero {
  background: var(--bg); color: var(--fg); text-align: start;
  padding: 1.9rem 0 1.2rem; border-bottom: var(--border-w,1px) solid var(--line);
}
.hero-minimal .st-hero p { color: var(--mut); opacity: 1; }
.hero-minimal .st-hero .btn { background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); }

.hero-stack .st-hero { background: var(--soft); color: var(--fg); }
.hero-stack .st-hero p { color: var(--mut); opacity: 1; }
.hero-stack .st-hero .btn { background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); }

.hero-cover .st-hero { min-height: 62vw; max-height: 420px; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding: 0; }
.hero-cover .st-hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.2), transparent 60%); }
.hero-cover .st-hero .st-wrap { position: relative; z-index: 1; padding-bottom: 1.6rem; text-align: start; }
.hero-cover .st-hero h1 { font-size: clamp(1.6rem, 7.5vw, 2.4rem); line-height: 1.12; }

.hero-ticker .st-hero { padding: .7rem 0; }
.hero-ticker .st-hero .st-wrap { display: flex; align-items: center; gap: .6rem; }
.hero-ticker .st-hero h1 { font-size: .9375rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-ticker .st-hero p { display: none; }
.hero-ticker .st-hero .btn { margin: 0; min-height: 34px; padding: 0 .8rem; font-size: .75rem; white-space: nowrap; }

.hero-aside .st-hero { background: var(--soft); color: var(--fg); text-align: start; }
.hero-aside .st-hero p { color: var(--mut); opacity: 1; }
.hero-aside .st-hero .btn { background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); }

.hero-none .st-hero { display: none; }
.hero-none main > .st-section:first-child { padding-top: 1.2rem; }

/* ---------------------------------------------------------- 섹션 */
.site .st-section { padding: var(--sec-pad, 1.5rem) 0; }
/* 기본 grid 레이아웃(band 없음)에 끼운 에이전시 구역도 섹션과 같은 위아래 여백(없으면 히어로·이웃 구역에 붙는다) */
.site .st-main > .rb-hsec:not(.rb-band) { padding: var(--sec-pad, 1.5rem) 0; }
.dv-on .st-section + .st-section { border-top: var(--border-w,1px) solid var(--line); }
.site .st-section-head { margin-bottom: 1rem; gap: .75rem; align-items: baseline; }
.site .st-section-title { font-size: 1.0625rem; line-height: 1.3; }
/* '더 보기' — 글자는 작아도 터치 영역은 44px (음수 마진으로 줄 높이는 그대로) */
.site .st-section-more {
  color: var(--brand); font-size: .8125rem; white-space: nowrap; font-weight: 700;
  display: inline-flex; align-items: center; gap: .2em; flex: none;
  min-height: 44px; margin-block: -12px; padding-inline: .3rem; margin-inline-end: -.3rem;
}
/* 화살표는 bidi 미러링(글꼴·엔진마다 다르다)에 맡기지 않는다 — LTR 로 고립시키고 RTL 에서 직접 뒤집는다 */
.site .st-section-more::after { content: "\203A"; content: "\203A" / ""; font-size: 1.2em; line-height: 1; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .site .st-section-more::after { transform: scaleX(-1); }
.ttl-upper .st-section-title { text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; }
.ttl-display .st-section-title { font-size: 1.35rem; letter-spacing: -.03em; }

/* ---------------------------------------------------------- 칩 */
.site .st-cats {
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--pad, 16px) * -1); padding-inline: var(--pad, 16px); padding-bottom: .4rem;
}
.site .st-cats::-webkit-scrollbar { display: none; }
.site .st-cat {
  background: var(--surface); border: var(--border-w,1px) solid var(--line); color: var(--fg);
  border-radius: var(--radius-btn, 999px); min-height: 36px; display: inline-flex; align-items: center;
}
.site .st-cat.is-on { background: var(--brand-safe, var(--brand)); border-color: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); }
.no-chips .st-cats { display: none; }

/* ---------------------------------------------------------- 그리드 */
.site .st-grid {
  display: grid; gap: var(--gap, 14px);
  grid-template-columns: repeat(var(--m-cols, 2), minmax(0, 1fr));
}
.m1 .st-grid { --m-cols: 1; }

/* ---------------------------------------------------------- 카드 */
.site .st-card {
  background: var(--surface); border: var(--border-w,1px) solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: block; min-width: 0;
  transition: box-shadow .16s, transform .16s;
}
.site .st-card-img {
  aspect-ratio: var(--card-ratio, 1/1); width: 100%; object-fit: cover;
  background: var(--soft); transition: transform .3s ease, opacity .2s, filter .3s;
}
.site .st-card-body { padding: .6rem .65rem .8rem; }
.site .st-card-cat { color: var(--brand); font-size: .625rem; font-weight: 700; }
.site .st-card-title { font-size: .8125rem; line-height: 1.35; margin: .2rem 0 .3rem; -webkit-line-clamp: 2; }
.site .st-card-meta { font-size: .6875rem; gap: .3rem; }
/* 가격 줄 — 할인율과 판매가를 같은 크기·굵기로 묶고(할인율 = accent-2, 대비 보정된 색), 정가는 작은 회색 취소선 */
.site .st-card-price { margin-top: .45rem; gap: .15rem .35rem; align-items: baseline; }
.site .st-card-rate { color: var(--accent-2, var(--brand)); font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.site .st-card-now  { font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site .st-card-was  { color: var(--mut); font-size: .6875rem; white-space: nowrap;
                      text-decoration-color: color-mix(in srgb, currentColor 75%, transparent); }

/* 이미지 호버 처리 (포인터 기기에서만) */
@media (hover: hover) {
  .site .st-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
  .img-zoom .st-card:hover .st-card-img { transform: scale(1.045); }
  .img-fade .st-card:hover .st-card-img { opacity: .82; }
  .img-gray .st-card .st-card-img { filter: saturate(.35); }
  .img-gray .st-card:hover .st-card-img { filter: saturate(1); }
}
.site .st-card:active { transform: scale(.985); }

/* 카드 변형 ─ overlay */
.card-overlay .st-card { position: relative; }
.card-overlay .st-card-body {
  position: absolute; inset: auto 0 0 0; padding: .9rem .7rem .7rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.85) 15%, rgba(0,0,0,.35) 60%, transparent);
}
.card-overlay .st-card-cat  { color: #fff; opacity: .85; }
.card-overlay .st-card-meta { color: rgba(255,255,255,.8); }
.card-overlay .st-card-now  { color: #fff; }
.card-overlay .st-card-was  { color: rgba(255,255,255,.6); }
.card-overlay .st-card-rate { color: #ff9bb4; }

/* 카드 변형 ─ horizontal */
.card-horizontal .st-grid { --m-cols: 1; }
.card-horizontal .st-card { display: grid; grid-template-columns: 104px 1fr; }
/* 세로로 꽉 채우면(height:100%) 정사각 배너의 좌우가 잘린다 — 썸네일은 1:1 그대로.
   예전엔 카드 왼쪽 위에 붙여(위 정렬) 본문이 긴 카드에서 썸네일 아래가 빈 띠로 남았다 →
   카드 안쪽 여백만큼 띄운 둥근 썸네일을 세로 가운데에 둔다(행 높이가 달라도 위·아래 여백이 같다) */
.card-horizontal .st-card { padding-inline-start: .7rem; }
.card-horizontal .st-card-img { aspect-ratio: 1/1; height: auto; align-self: center; margin-block: .7rem; border-radius: var(--radius-sm); }
.card-horizontal .st-card-body { padding: .7rem .8rem; display: flex; flex-direction: column; justify-content: center; }
.card-horizontal .st-card-title { font-size: .875rem; }

/* 카드 변형 ─ editorial */
/* 본문을 행 높이까지 늘려 아래 헤어라인이 한 행에서 같은 높이에 오게 한다 (본문 길이가 달라 들쭉날쭉했다) */
.card-editorial .st-card { border: 0; background: transparent; border-radius: 0; display: flex; flex-direction: column; }
.card-editorial .st-card-img { border-radius: var(--radius); flex: none; }
.card-editorial .st-card-body { padding: .6rem 0 1rem; border-bottom: var(--border-w,1px) solid var(--line); flex: 1 0 auto; }
.card-editorial .st-card-title { font-size: .9375rem; -webkit-line-clamp: 3; }
.card-editorial .st-card-cat { letter-spacing: .08em; text-transform: uppercase; }
@media (hover: hover) { .card-editorial .st-card:hover { box-shadow: none; transform: none; } }

/* 카드 변형 ─ compact / tile */
.card-compact .st-card-body, .card-tile .st-card-body { padding: .45rem .5rem .6rem; }
.card-compact .st-card-title, .card-tile .st-card-title { font-size: .75rem; }
.card-compact .st-card-cat { display: none; }
.card-compact .st-card-meta, .card-tile .st-card-meta { display: none; }

/* 카드 변형 ─ badge */
.card-badge .st-card { position: relative; }
.card-badge .st-card-price {
  position: absolute; top: .5rem; inset-inline-end: .5rem; margin: 0;
  background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); padding: .25rem .5rem;
  border-radius: var(--radius-btn, 999px); font-size: .75rem; box-shadow: var(--shadow-sm);
}
.card-badge .st-card-now { font-size: .8125rem; color: var(--brand-safe-fg, var(--accent-fg,#fff)); }
.card-badge .st-card-rate { color: var(--brand-safe-fg, var(--accent-fg,#fff)); opacity: .85; font-size: .6875rem; }
.card-badge .st-card-was { display: none; }

/* 카드 변형 ─ frame */
.card-frame .st-card { border-width: 2px; border-color: var(--fg); border-radius: 0; }
.card-frame .st-card-img { border-bottom: 2px solid var(--fg); }
@media (hover: hover) { .card-frame .st-card:hover { transform: none; box-shadow: 5px 5px 0 var(--brand); } }

/* 카드 변형 ─ flat */
.card-flat .st-card { border: 0; background: transparent; }
.card-flat .st-card-img { border-radius: var(--radius); }
.card-flat .st-card-body { padding: .55rem .1rem .8rem; }
@media (hover: hover) { .card-flat .st-card:hover { box-shadow: none; transform: none; }
                        .card-flat .st-card:hover .st-card-title { color: var(--accent-text, var(--brand)); } }

/* 카드 변형 ─ poster */
.card-poster .st-card { position: relative; border: 0; }
/* 배너 원본이 정사각이라 3/4 하드코딩을 제거했다 — --card-ratio(전 레이아웃 1/1)를 그대로 따른다 */
.card-poster .st-card-body {
  position: absolute; inset: auto 0 0 0; padding: 1rem .7rem .7rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.4) 55%, transparent);
}
.card-poster .st-card-cat { color: #fff; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }
.card-poster .st-card-meta { display: none; }
.card-poster .st-card-now { color: #fff; }
.card-poster .st-card-was { color: rgba(255,255,255,.6); }
.card-poster .st-card-rate { color: #ffd1dc; }

/* ---------------------------------------------------------- 필터 (classic 목록)
   모바일·앱 컬럼: [검색 전폭] [분류 | 지역] [정렬 · 검색 버튼 · 초기화]
   main 컨테이너 ≥700 (태블릿·와이드): 한 줄. 미디어쿼리가 아니라 컨테이너 기준이라 600px 앱 컬럼에서도 깔끔하다. */
.site .st-filters {
  background: var(--soft); border: 0;
  border-radius: var(--radius); padding: .625rem; gap: .5rem; margin-bottom: 1.1rem;
}
.site .st-filters input, .site .st-filters select {
  border: var(--border-w,1px) solid var(--line); color: var(--fg);
  border-radius: var(--radius-input, 10px); min-height: 44px; font-size: 1rem; /* iOS 확대 방지 */
  padding-block: 0; background-repeat: no-repeat;
}
.site .st-filters input[type=search] {
  flex: 1 1 100%; min-width: 0; padding-inline: 2.5rem .9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a8996' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E");
  background-position: left .85rem center; background-size: 18px;
}
.site .st-filters select {
  flex: 1 1 calc(50% - .25rem); min-width: 0; appearance: none; -webkit-appearance: none;
  padding-inline: .85rem 2.1rem; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8996' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right .8rem center; background-size: 12px;
}
.site.is-rtl .st-filters input[type=search] { background-position: right .85rem center; }
.site.is-rtl .st-filters select { background-position: left .8rem center; }
.site .st-filters select[name=sort] { flex: 1 1 7.5rem; }
.site .st-filters .btn { flex: 0 0 auto; min-height: 44px; padding-inline: 1.25rem; }
.site .st-count { font-size: .8125rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- 상세 */
.site .st-detail { display: grid; grid-template-columns: 1fr; gap: 1.2rem; padding: 1rem 0 0; }
.site .st-detail-media img { width: 100%; border-radius: var(--radius); background: var(--soft); }
.site .st-detail-title { font-size: 1.25rem; line-height: 1.3; }
.site .st-detail-cat { color: var(--brand); font-size: .75rem; font-weight: 700; }
.site .st-price-box {
  background: var(--soft); border: var(--border-w,1px) solid var(--line);
  border-radius: var(--radius); padding: .9rem;
}
.site .st-price-now { font-size: 1.5rem; }
/* 할인율 = accent-2 (bg·surface·soft 모두에 4.5:1 보장, 계약 §14) — raw --brand 는 다크 스킨에서 2.2:1 이었다 */
.site .st-price-rate { color: var(--accent-2, var(--accent-text, var(--brand))); }
.site .st-fact { grid-template-columns: 5.5rem 1fr; font-size: .8125rem; }
/* 좁은 라벨 칸(5.5rem)에서 긴 단어(ru "Расположение", "предосторожности")가 옆 칸 글자 위로 넘쳤다 */
.site .st-fact dt { overflow-wrap: anywhere; hyphens: auto; }
.site .st-form input:not([type=checkbox]):not([type=radio]), .site .st-form select, .site .st-form textarea {
  background: var(--surface); border: var(--border-w,1px) solid var(--line); color: var(--fg);
  border-radius: var(--radius-input, 10px); min-height: 44px; font-size: 1rem;
}
/* 동의 체크박스 — 텍스트 입력 규칙(폭 100%·높이 44)에서 빠진 뒤 제 모양으로. 터치 영역은 label 전체 */
.site .st-form .check { min-height: 44px; align-items: center; cursor: pointer; line-height: 1.5; }
.site .st-form input:is([type=checkbox], [type=radio]) {
  flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--brand); cursor: pointer;
}
/* 상세 정보표와 상담 제목이 붙어 있었다 */
.site .st-facts + .st-section-title { margin-top: 1.75rem; margin-bottom: .8rem; }
.site .st-form + .st-note { margin-top: .9rem; }
.site .st-form textarea { min-height: 6rem; }
.site .st-note { background: var(--soft); color: var(--mut); border-radius: var(--radius-input, 10px); }
.site .st-sections { margin-inline: calc(var(--pad,16px) * -1); }
.site .st-sections img { border-radius: 0; }

/* 모바일 고정 CTA */
.st-sticky-cta { display: none; }
.cta-on .st-sticky-cta {
  display: flex; position: fixed; inset: auto 0 0 0; z-index: 40; gap: .6rem; align-items: center;
  padding: .6rem var(--pad,16px) calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); border-top: var(--border-w,1px) solid var(--line);
}
.cta-on .st-sticky-cta .price { font-weight: 800; font-size: 1.0625rem; }
.cta-on .st-sticky-cta .btn { margin-inline-start: auto; padding-inline: 1.4rem; }
.cta-on .st-detail-wrap { padding-bottom: 84px; }

/* ---------------------------------------------------------- 모바일 하단 탭 */
.st-tabbar { display: none; }
.mnav-tabs .st-tabbar {
  display: flex; position: fixed; inset: auto 0 0 0; z-index: 35;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px); border-top: var(--border-w,1px) solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mnav-tabs .st-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .5rem 0 .45rem; font-size: .625rem; color: var(--mut); min-height: 52px; justify-content: center;
}
.mnav-tabs .st-tabbar a.is-on { color: var(--accent-text, var(--brand)); font-weight: 700; }
.mnav-tabs .st-tabbar svg { width: 20px; height: 20px; }
.mnav-tabs main { padding-bottom: 60px; }
.mnav-tabs.cta-on main { padding-bottom: 0; }
.mnav-tabs.cta-on .st-sticky-cta { bottom: 60px; }
.mnav-tabs.cta-on .st-detail-wrap { padding-bottom: 150px; }

/* 드로어형 내비 */
.mnav-drawer .st-nav {
  display: flex; gap: .9rem; order: 3; flex-basis: 100%; overflow-x: auto;
  padding-top: .5rem; font-size: .8125rem; scrollbar-width: none;
}
.mnav-drawer .st-nav::-webkit-scrollbar { display: none; }
.mnav-drawer .st-header-inner { flex-wrap: wrap; height: auto; padding-block: .6rem; }
.mnav-inline .st-nav { display: flex; gap: .8rem; font-size: .8125rem; }

/* ---------------------------------------------------------- 페이저·푸터 */
/* 페이저 — 숫자는 상자 없이, 현재 쪽만 채운 버튼, 이전/다음은 테두리 버튼. 터치 영역 44px.
   화살표가 글자(‹ ›)여도 양방향 미러링 문자라 RTL 에서 브라우저가 뒤집는다 — 여기서 transform 하지 않는다 */
.site .st-pager { gap: .25rem; padding: 1.75rem 0 .75rem; align-items: center; }
.site .st-pager a, .site .st-pager span {
  background: transparent; border: var(--border-w,1px) solid transparent; color: var(--fg);
  border-radius: var(--radius-btn, 999px); min-width: 44px; min-height: 44px; height: auto; padding: 0 .55rem;
  font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.site .st-pager a:is([rel=prev], [rel=next]) {
  background: var(--surface); border-color: var(--line); font-size: 1.25rem; line-height: 1;
}
.site .st-pager a:is([rel=prev]) { margin-inline-end: .35rem; }
.site .st-pager a:is([rel=next]) { margin-inline-start: .35rem; }
.site .st-pager .is-current { background: var(--brand-safe, var(--brand)); border-color: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); font-weight: 800; }
/* 기본 푸터 — 브랜드 · 회사 · 연락처 / 헤어라인 / 고지 */
.site .st-footer {
  background: var(--soft); border-top: var(--border-w,1px) solid var(--line);
  margin-top: 2rem; padding: 1.75rem 0 calc(2rem + env(safe-area-inset-bottom));
}
.site .st-footer-brand {
  font-family: var(--font-head, var(--font)); font-weight: var(--head-weight, 800);
  letter-spacing: var(--head-track, -0.02em); font-size: 1.0625rem; line-height: 1.35;
}
.site .st-footer-line { margin-top: .3rem; line-height: 1.55; overflow-wrap: anywhere; }
.site .st-footer-note { max-width: 46rem; line-height: 1.6; }
.site :is(.st-footer-brand, .st-footer-line) + .st-footer-note {
  margin-top: 1.1rem; padding-top: 1rem; border-top: var(--border-w,1px) solid var(--line);
}
.site .st-footer-note + .st-footer-note { margin-top: .45rem; }
.site .st-footer-line, .site .st-footer-note { color: var(--mut); }
/* 탭바 레이아웃은 main 이 이미 60px 바닥 여백을 갖는다 — 푸터 위 빈 띠를 겹치지 않는다 */
.mnav-tabs .st-footer { margin-top: 0; padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
/* 상세(고정 상담 바)에서는 바(≈64px) — 탭바와 겹치면 둘(≈124px) — 가 푸터 마지막 줄을 덮었다 */
.cta-on .st-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.mnav-tabs.cta-on .st-footer { padding-bottom: calc(8.75rem + env(safe-area-inset-bottom)); }
/* 기본 푸터(ft-basic)가 이제 바 높이만큼 비켜 주므로 상세 본문 아래 150px 빈 띠는 줄인다 (다른 푸터는 그대로) */
.ft-basic.cta-on .st-detail-wrap, .ft-basic.mnav-tabs.cta-on .st-detail-wrap { padding-bottom: 1.5rem; }

/* ---------------------------------------------------------- 다크 스킨 */
.skin-dark .st-hero .btn { background: var(--fg); color: var(--bg); }
/* skin-dark 와 hero-* 는 둘 다 <body> 클래스다 — 자손 결합자(.skin-dark .hero-split)로는 절대 맞지 않았다 */
.skin-dark:is(.hero-split, .hero-minimal, .hero-stack, .hero-aside) .st-hero .btn { background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#0b0b0b)); }
.skin-dark .st-card-img { background: var(--soft); }

/* ============================================================
   태블릿 이상 (min-width: 700px)
   ============================================================ */
@media (min-width: 700px) {
  .site .st-wrap { padding-inline: 24px; }
  .site .st-header-inner { height: 62px; }
  .site .st-brand { font-size: 1.05rem; }
  .site .st-brand-name { max-width: none; }
  .site .st-nav { display: flex; gap: 1.1rem; font-size: .9375rem; font-weight: 600; }
  .site .st-nav a { color: var(--mut); }
  .st-tabbar, .mnav-tabs .st-tabbar { display: none; }
  .mnav-tabs main, .mnav-tabs.cta-on .st-detail-wrap, .cta-on .st-detail-wrap { padding-bottom: 0; }
  .mnav-tabs .st-footer { padding-bottom: 2rem; margin-top: 2rem; }
  .cta-on .st-footer, .mnav-tabs.cta-on .st-footer { padding-bottom: 2rem; }
  .ft-basic.cta-on .st-detail-wrap, .ft-basic.mnav-tabs.cta-on .st-detail-wrap { padding-bottom: 0; }
  .cta-on .st-sticky-cta, .mnav-tabs.cta-on .st-sticky-cta { display: none; }

  .site .st-grid { grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 230px), 1fr)); gap: var(--gap, 18px); }
  .card-horizontal .st-grid { grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 560px), 1fr)); }
  .card-horizontal .st-card { grid-template-columns: 132px 1fr; }

  .site .st-section { padding: var(--sec-pad-d, 2.4rem) 0; }
  .site .st-main > .rb-hsec:not(.rb-band) { padding: var(--sec-pad-d, 2.4rem) 0; }
  .site .st-section-title { font-size: 1.2rem; }
  .ttl-display .st-section-title { font-size: 1.6rem; }
  .site .st-card-body { padding: .8rem .9rem 1rem; }
  .site .st-card-title { font-size: .9375rem; }
  .site .st-card-cat { font-size: .6875rem; }
  .site .st-card-meta { font-size: .75rem; }
  .site .st-card-now { font-size: 1.05rem; }
  .site:not(.card-badge) .st-card-rate { font-size: 1.05rem; }   /* badge 는 알약 안의 작은 할인율 유지 */

  .site .st-hero { padding: 3rem 0 2.6rem; }
  .site .st-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
  .site .st-hero p { font-size: 1rem; }
  .hero-poster .st-hero { padding: 4.5rem 0 4rem; }
  .hero-poster .st-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
  .hero-cover .st-hero { min-height: 400px; max-height: 520px; }
  .hero-cover .st-hero .st-wrap { padding-bottom: 3rem; }
  .hero-cover .st-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
  .hero-ticker .st-hero h1 { font-size: 1.0625rem; }
  .hero-ticker .st-hero .btn { margin-inline-start: auto; }
  .hero-minimal .st-hero { padding: 3rem 0 1.6rem; }
  .hero-search .st-hero-search { max-width: 620px; }

  .hero-split .st-hero { padding: 0; }
  .hero-split .st-hero .st-wrap {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem;
    align-items: center; min-height: 340px; padding-block: 2.5rem;
  }
  .hero-split .st-hero-art {
    display: block; aspect-ratio: 4/3; border-radius: var(--radius);
    border: var(--border-w,1px) solid var(--line);
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 60%),
                radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
                var(--surface);
  }
  .hero-aside .st-hero .st-wrap { max-width: 44rem; margin-inline: 0 auto; }
  .is-rtl.hero-aside .st-hero .st-wrap { margin-inline: auto 0; }

  .site .st-detail { grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: 2rem; padding: 2rem 0 0; }
  .site .st-detail-title { font-size: 1.45rem; }
  .site .st-price-now { font-size: 1.7rem; }
  .site .st-fact { grid-template-columns: 7.5rem 1fr; font-size: .875rem; }
  .site .st-sections { margin-inline: 0; }
  .site .st-sections img:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .site .st-sections img:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

  .nav-center .st-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-center .st-brand { justify-self: start; }
  .nav-center .st-nav { justify-self: center; }
  .nav-center .st-lang { justify-self: end; margin-inline-start: 0; }
  .nav-stacked .st-header-inner { flex-wrap: wrap; height: auto; padding-block: .8rem; }
  .nav-stacked .st-nav { order: 3; flex-basis: 100%; }
}

/* ============================================================
   데스크톱 (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .site .st-wrap { padding-inline: 28px; }
  .site .st-section { padding: var(--sec-pad-d, 2.8rem) 0; }
  .site .st-main > .rb-hsec:not(.rb-band) { padding: var(--sec-pad-d, 2.8rem) 0; }
  .card-editorial .st-card-title { font-size: 1.18rem; }
  .card-overlay .st-card-title { font-size: 1.05rem; }
  .card-poster .st-card-title { font-size: 1rem; }
}

/* 모션 최소화 선호 */
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------- 모바일 카드 오버라이드
   레이아웃이 mobile_card 를 지정하면 좁은 화면(<700)에서만 다른 카드 형태를 쓴다.
   예전에는 horizontal·compact·overlay 만 규칙이 있었고, 그마저 card-* 위에 '덧칠'만 해서
   poster→below 같은 조합은 그대로 poster 로 보였다. 이제 ① 데스크톱 card-* 가 바꾼 속성을 기본 카드로 되돌리고
   ② mcard 값의 규칙을 다시 입힌다. 아래 값들은 위 '카드' 블록의 기본값·변형과 같아야 한다. */
@media (max-width: 699px) {
  /* ① 리셋 (특이도 0,3,0 — card-* 의 0,2,0 을 이긴다) */
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-grid { --m-cols: inherit; grid-template-columns: repeat(var(--m-cols, 2), minmax(0, 1fr)); }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card {
    position: static; display: block; grid-template-columns: none; background: var(--surface); padding: 0;
    border: var(--border-w,1px) solid var(--line); border-radius: var(--radius);
  }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-img { aspect-ratio: var(--card-ratio, 1/1); align-self: auto; border-radius: 0; border-bottom: 0; margin: 0; }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-body {
    position: static; inset: auto; display: block; padding: .6rem .65rem .8rem;
    color: inherit; background: none; border-bottom: 0;
  }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-cat { display: block; color: var(--accent-text, var(--brand)); opacity: 1; letter-spacing: .02em; text-transform: none; }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-title { font-size: .8125rem; -webkit-line-clamp: 2; }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-meta { display: flex; color: var(--mut); }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-price {
    position: static; inset: auto; margin: .45rem 0 0; padding: 0; background: none; color: inherit;
    border-radius: 0; font-size: inherit; box-shadow: none;
  }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-rate { color: var(--accent-2, var(--brand)); opacity: 1; font-size: .9375rem; }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-now  { color: inherit; font-size: .9375rem; }
  .site:is(.mcard-below, .mcard-overlay, .mcard-horizontal, .mcard-editorial, .mcard-compact, .mcard-tile, .mcard-badge, .mcard-frame, .mcard-flat, .mcard-poster) .st-card-was  { display: inline; color: var(--mut); }

  /* ② mcard 값 (below 는 리셋 그대로) */
  .site.mcard-overlay .st-card, .site.mcard-poster .st-card, .site.mcard-badge .st-card { position: relative; }
  .site.mcard-overlay .st-card-body {
    position: absolute; inset: auto 0 0 0; padding: .9rem .7rem .7rem; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.85) 15%, rgba(0,0,0,.35) 60%, transparent);
  }
  .site.mcard-overlay .st-card-cat  { color: #fff; opacity: .85; }
  .site.mcard-overlay .st-card-meta { color: rgba(255,255,255,.8); }
  .site.mcard-overlay .st-card-now  { color: #fff; }
  .site.mcard-overlay .st-card-was  { color: rgba(255,255,255,.6); }
  .site.mcard-overlay .st-card-rate { color: #ff9bb4; }

  .site.mcard-horizontal .st-grid { --m-cols: 1; grid-template-columns: 1fr; }
  .site.mcard-horizontal .st-card { display: grid; grid-template-columns: 104px 1fr; padding-inline-start: .7rem; }
  /* 정사각 배너를 자르지 않도록 1:1 썸네일 — 위 card-horizontal 과 같이 안쪽으로 띄워 세로 가운데 */
  .site.mcard-horizontal .st-card-img { aspect-ratio: 1/1; height: auto; align-self: center; margin-block: .7rem; border-radius: var(--radius-sm); }
  .site.mcard-horizontal .st-card-body { padding: .7rem .8rem; display: flex; flex-direction: column; justify-content: center; }
  .site.mcard-horizontal .st-card-title { font-size: .875rem; }

  .site.mcard-editorial .st-card { border: 0; background: transparent; border-radius: 0; display: flex; flex-direction: column; }
  .site.mcard-editorial .st-card-img { border-radius: var(--radius); flex: none; }
  .site.mcard-editorial .st-card-body { padding: .6rem 0 1rem; border-bottom: var(--border-w,1px) solid var(--line); flex: 1 0 auto; }
  .site.mcard-editorial .st-card-title { font-size: .9375rem; -webkit-line-clamp: 3; }
  .site.mcard-editorial .st-card-cat { letter-spacing: .08em; text-transform: uppercase; }

  .site.mcard-compact .st-card-body, .site.mcard-tile .st-card-body { padding: .45rem .5rem .6rem; }
  .site.mcard-compact .st-card-title, .site.mcard-tile .st-card-title { font-size: .75rem; }
  .site.mcard-compact .st-card-cat,
  .site.mcard-compact .st-card-meta, .site.mcard-tile .st-card-meta { display: none; }

  .site.mcard-badge .st-card-price {
    position: absolute; top: .5rem; inset-inline-end: .5rem; margin: 0;
    background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg,#fff)); padding: .25rem .5rem;
    border-radius: var(--radius-btn, 999px); font-size: .75rem; box-shadow: var(--shadow-sm);
  }
  .site.mcard-badge .st-card-now  { font-size: .8125rem; color: var(--brand-safe-fg, var(--accent-fg,#fff)); }
  .site.mcard-badge .st-card-rate { color: var(--brand-safe-fg, var(--accent-fg,#fff)); opacity: .85; font-size: .6875rem; }
  .site.mcard-badge .st-card-was  { display: none; }

  .site.mcard-frame .st-card { border-width: 2px; border-color: var(--fg); border-radius: 0; }
  .site.mcard-frame .st-card-img { border-bottom: 2px solid var(--fg); }

  .site.mcard-flat .st-card { border: 0; background: transparent; }
  .site.mcard-flat .st-card-img { border-radius: var(--radius); }
  .site.mcard-flat .st-card-body { padding: .55rem .1rem .8rem; }

  .site.mcard-poster .st-card { border: 0; }
  .site.mcard-poster .st-card-body {
    position: absolute; inset: auto 0 0 0; padding: 1rem .7rem .7rem; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.4) 55%, transparent);
  }
  .site.mcard-poster .st-card-cat  { color: #fff; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }
  .site.mcard-poster .st-card-meta { display: none; }
  .site.mcard-poster .st-card-now  { color: #fff; }
  .site.mcard-poster .st-card-was  { color: rgba(255,255,255,.6); }
  .site.mcard-poster .st-card-rate { color: #ffd1dc; }
}

/* ============================================================
   가로 오버플로 방지 — 모바일에서 잘림 없이
   ============================================================ */
html { overflow-x: clip; max-width: 100%; }   /* hidden 금지 — sticky 를 깬다 */
.site, .site main, .site .st-section { max-width: 100%; min-width: 0; }
/* .st-wrap 은 위 목록에서 뺀다 — 같은 특이도로 뒤에 와서 맨 위의 max-width:var(--wrap) 을 덮어
   container 축(narrow/normal/wide)이 죽어 있었다. 블록 상자는 원래 부모 폭을 넘지 않으므로 100% 는 필요 없다.
   앱 컬럼(≥1024 dt-app)은 아래 `.dt-app .st-app .st-wrap{max-width:none}` 이 그대로 이긴다. */
.site .st-wrap { min-width: 0; }
.site img, .site svg, .site video { max-width: 100%; height: auto; }

/* 그리드/플렉스 자식은 기본 min-width:auto 때문에 내용이 컨테이너를 밀어낸다 */
.site .st-grid > *, .site .st-card, .site .st-card-body,
.site .st-detail > *, .site .st-header-inner > *, .site .st-section-head > * { min-width: 0; }
.site .st-card-title, .site .st-card-meta, .site .st-card-now,
.site .st-detail-title, .site .st-detail-hospital { overflow-wrap: anywhere; }

/* 고정 바 — 긴 라벨이 뷰포트를 넘기지 않도록 */
.cta-on .st-sticky-cta { max-width: 100vw; box-sizing: border-box; }
/* 가격(할인율+판매가)은 한 줄로 고정하고, 남는 폭은 버튼이 쓴다. 라벨이 길면(ru "Записаться на консультацию")
   잘리지 않고 두 줄로 감긴다 — 예전엔 nowrap+ellipsis 가 inline-flex 안 글자에 듣지 않아 양끝이 잘렸고 가격이 두 줄로 갈라졌다 */
.cta-on .st-sticky-cta > div { flex: none; display: flex; align-items: baseline; gap: .35rem; white-space: nowrap; }
.cta-on .st-sticky-cta .btn {
  flex: 0 1 auto; min-width: 0; max-width: none; padding: .55rem 1rem;
  white-space: normal; text-align: center; line-height: 1.2; overflow-wrap: break-word;
}
.st-tabbar { max-width: 100vw; box-sizing: border-box; }
.mnav-tabs .st-tabbar a { min-width: 0; }
.mnav-tabs .st-tabbar span {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 4px;
}

/* 상세 2열 그리드가 모바일에서 최소폭 때문에 넘치지 않도록 */
.site .st-detail { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .site .st-detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* 필터·칩 줄바꿈 보장 */
.site .st-filters { flex-wrap: wrap; }
.site .st-filters > * { max-width: 100%; }
@container main (min-width: 700px) {
  .site .st-filters { padding: .75rem; }
  .site .st-filters input[type=search] { flex: 1 1 200px; }
  .site .st-filters select, .site .st-filters select[name=sort] { flex: 0 1 auto; max-width: 15rem; }
}

/* ============================================================
   DESIGN.md 12단계 토큰 활용 — 상호작용 상태
   (--ui/--ui-hover/--ui-active/--border-hover/--solid-hover/--accent-text)
   ============================================================ */
/* background-color — 단축 속성(background)은 필터 입력의 아이콘(background-image)까지 지웠다 */
.site .st-cat, .site .st-filters input, .site .st-filters select,
.site .st-form input:not([type=checkbox]):not([type=radio]), .site .st-form select, .site .st-form textarea,
.site .st-lang-select { background-color: var(--ui, var(--surface)); }

@media (hover: hover) {
  /* 선택된 칩(is-on)은 호버로 배경이 연해지면 흰 글자가 사라졌다 — 선택 안 된 칩만 */
  .site .st-cat:not(.is-on):hover { background: var(--ui-hover, var(--soft)); border-color: var(--border-hover, var(--line)); color: var(--accent-text, var(--brand)); }
  .site .btn--primary:hover { background: var(--brand-safe-hover, var(--brand-safe, var(--solid-hover, var(--brand)))); }
  .site .st-pager a:hover { background: var(--ui-hover, var(--soft)); }
  .site .st-card:hover { border-color: var(--border-hover, var(--line)); }
}
.site .st-cat:not(.is-on):active { background: var(--ui-active, var(--soft)); }
.site .st-card-cat, .site .st-detail-cat, .site .st-section-more { color: var(--accent-text, var(--brand)); }
.site .st-filters input:focus, .site .st-filters select:focus,
.site .st-form input:focus, .site .st-form select:focus, .site .st-form textarea:focus {
  outline: 2px solid var(--border, var(--brand)); outline-offset: 1px;
}

/* ============================================================
   데스크톱 앱 컬럼 (desktop = app)
   [좌측 레일][gap][고정폭 앱 컬럼] 을 하나로 묶어 화면 가운데 정렬한다.
   → 앱 컬럼 자체는 화면 중앙이 아니라 오른쪽으로 치우쳐 보인다(레퍼런스 3사 공통).
   진입점은 1024px. 그 아래는 위의 모바일 CSS 를 그대로 쓴다.
   이 블록은 파일 맨 끝에 둔다 — 앞의 700/1024 규칙보다 뒤에 와야 이긴다.
   ============================================================ */

/* 앱 컬럼 전용 마크업은 모바일에 존재하지 않는다 */
.st-rail, .st-appbar, .st-apphero { display: none; }

@media (min-width: 1024px) {
  .dt-app {
    --app-w: 600px;      /* 앱 컬럼 폭 (레퍼런스 600~620) */
    --rail-w: 340px;     /* 좌측 레일 */
    --shell-gap: 48px;
    /* 페이지 배경은 중립 회색 — 흰 앱 컬럼(--surface)과 대비를 만든다 */
    background: var(--gray-4, var(--soft));
  }
  .dt-app.skin-dark { background: var(--gray-1, var(--bg)); }

  .dt-app .st-shell {
    display: flex; align-items: flex-start; justify-content: center;
    gap: var(--shell-gap); min-height: 100vh;
  }
  /* 레일 — 스크롤을 따라온다.
     블록이 쌓이면 뷰포트보다 길어지므로 화면 높이로 묶고 안에서만 스크롤한다.
     그러지 않으면 아래쪽 블록에 영영 닿을 수 없다. */
  .dt-app .st-rail {
    display: block; flex: 0 0 var(--rail-w); width: var(--rail-w);
    position: sticky; top: 0; align-self: flex-start;
    box-sizing: border-box; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 48px 0 32px;
    scrollbar-width: none;               /* 보조 영역이라 스크롤바는 숨긴다 */
  }
  .dt-app .st-rail::-webkit-scrollbar { width: 0; height: 0; }
  .dt-app .st-app {
    flex: 0 0 var(--app-w); width: var(--app-w); min-width: 0;
    display: flex; flex-direction: column;
    background: var(--surface); min-height: 100vh;
    border-inline: 1px solid var(--line);
  }
  .dt-app .st-app > main { flex: 1 0 auto; }
  /* 컬럼 안에서는 래퍼 폭 제한이 의미 없다 — 컬럼이 곧 폭이다 */
  .dt-app .st-app .st-wrap { max-width: none; padding-inline: 16px; }

  /* 헤더 — 화면 전체가 아니라 컬럼 폭에 갇힌 sticky */
  .dt-app .st-header { position: sticky; top: 0; }
  .dt-app .st-header-inner { height: 56px; gap: .75rem; }
  /* 내비가 둘째 줄로 감기는 모드는 높이를 고정하면 안 된다 — 내비가 헤더 밖으로 새어 나간다.
     (nav-stacked·mnav-drawer 는 flex-basis:100% 로 줄을 바꾼다) */
  .dt-app.mnav-drawer .st-header-inner,
  .dt-app.nav-stacked .st-header-inner { height: auto; padding-block: .6rem; }
  .dt-app .st-nav { gap: .85rem; font-size: .875rem; }
  .dt-app .st-brand-name { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 투명 헤더는 흰 컬럼 위에서 글자가 사라진다 — 앱 컬럼에서는 단색으로 되돌린다 */
  .dt-app.hd-transparent .st-header { background: var(--surface); border-bottom-color: var(--line); }
  .dt-app.hd-transparent .st-header .st-brand-name,
  .dt-app.hd-transparent .st-header .st-nav a { color: inherit; }
  .dt-app.hd-transparent .st-lang-select { background: var(--ui, var(--surface)); border-color: var(--line); color: var(--fg); }
  /* 위의 '히어로 색 이어받기'도 앱 컬럼에서는 끈다 (히어로 대신 배너 캐러셀이 온다) */
  .dt-app.hd-transparent:is(.hero-banner, .hero-cover, .hero-poster):has(main > .st-hero:first-child) {
    --hd-bg: initial; --hd-fg: initial; --hd-line: initial; --hd-ctl-bg: initial; --hd-ctl-line: initial;
  }

  /* 알약 검색바 — fill 을 페이지 배경 계열로 두어 컬럼 안에서 움푹 들어간 느낌 */
  .dt-app .st-appbar { display: block; padding: 12px 16px 10px; }
  .site .st-search-pill {
    display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
    background: var(--ui, var(--soft)); border: 0; border-radius: 999px; margin: 0;
  }
  .site .st-search-pill svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--mut); }
  .site .st-search-pill input {
    flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg);
    font: inherit; font-size: .9375rem; outline: none; padding: 0;
  }

  /* 카테고리 칩 — 우측은 컬럼 경계에서 하드 클립(페이드·화살표 없음) */
  .dt-app .st-appbar .st-cats {
    margin-block: 10px 0; margin-inline: 0 -16px;
    padding-block: 0 2px; padding-inline: 0 16px; gap: 8px;
  }

  /* 히어로 캐러셀 — 이웃 슬라이드가 peek 만큼 보인다. 배너는 정사각 그대로, 자르지 않는다 */
  .dt-app .st-apphero { display: block; position: relative; --peek: 20px; }
  .dt-app.apphero-on .st-hero { display: none; }
  .dt-app .st-apphero-track {
    display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
    scroll-snap-type: x mandatory; padding-inline: var(--peek); scroll-padding-inline: var(--peek);
  }
  .dt-app .st-apphero-track::-webkit-scrollbar { display: none; }
  .dt-app .st-apphero-slide {
    flex: 0 0 calc(100% - var(--peek) * 2); scroll-snap-align: center;
    display: block; border-radius: var(--radius); overflow: hidden;
  }
  .dt-app .st-apphero-slide img {
    display: block; width: 100%; aspect-ratio: 1/1;
    object-fit: contain;          /* 어떤 원본이 와도 잘리지 않게 */
    background: var(--soft);
  }
  /* peek 량·radius 로 히어로 인상을 가른다 — 카드 비율이 아니라 여기가 다양성 축 */
  .dt-app.hero-ticker .st-apphero, .dt-app.hero-minimal .st-apphero { --peek: 6px; }
  .dt-app.hero-poster .st-apphero, .dt-app.hero-cover .st-apphero { --peek: 0px; }
  .dt-app.hero-poster .st-apphero-slide, .dt-app.hero-cover .st-apphero-slide { border-radius: 0; }
  /* 인디케이터는 도트가 아니라 우하단 숫자 카운터 */
  /* 슬라이드 폭(flex-basis 100% - 2peek)은 트랙의 '패딩 안쪽' 기준이라 실제 이웃 노출은 3×peek 이다.
     peek+14 에 두면 첫 슬라이드 가장자리에 걸쳐 있었다 → 3×peek 안쪽으로 */
  .dt-app .st-apphero-count {
    position: absolute; inset-block-end: 14px; inset-inline-end: calc(var(--peek) * 3 + 12px);
    font-variant-numeric: tabular-nums;
    background: rgba(0,0,0,.55); color: #fff; border-radius: 999px;
    padding: 3px 10px; font-size: .75rem; font-weight: 600; pointer-events: none;
  }

  /* 그리드 — 600px 컬럼에서는 card-min 을 그대로 쓰면 1열이 되어 카드가 과하게 커진다.
     트랙 최소폭을 "절반 - gap" 으로 클램프해 최소 2열을 보장한다(넘침도 함께 막힌다). */
  .dt-app .st-grid {
    grid-template-columns: repeat(auto-fill,
      minmax(min(var(--card-min, 230px), calc((100% - var(--gap, 18px)) / 2)), 1fr));
  }
  /* 가로형 카드는 리스트 행이 본질이라 1열이 맞다 */
  .dt-app.card-horizontal .st-grid { grid-template-columns: minmax(0, 1fr); }
  /* 상세는 컬럼 안에서 항상 1열 */
  .dt-app .st-detail { grid-template-columns: minmax(0, 1fr); }

  /* 섹션 구분 — divider=yes 는 헤어라인 대신 컬럼 전폭 8px 회색 거터 밴드 */
  .dt-app.dv-on .st-section + .st-section { border-top: 8px solid var(--gray-4, var(--soft)); }
  .dt-app.dv-on.skin-dark .st-section + .st-section { border-top-color: var(--gray-1, var(--bg)); }

  /* 하단 탭바 — 화면 전폭이 아니라 컬럼 안에 sticky 로 붙인다 (불변 규칙) */
  .dt-app.mnav-tabs .st-tabbar {
    display: flex; position: sticky; inset: auto auto 0 auto; z-index: 35;
    background: var(--surface); border-top: var(--border-w, 1px) solid var(--line);
    padding-bottom: 0;
  }

  /* ---------------- 좌측 레일 내부 ---------------- */
  .dt-app .st-rail-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; }
  .dt-app .st-rail-logo { max-height: 34px; width: auto; }
  .dt-app .st-rail-name { color: var(--accent-text, var(--brand)); }
  .dt-app .st-rail-tag { margin-top: .6rem; color: var(--mut); font-size: .8125rem; line-height: 1.55; }
  .dt-app .st-rail-card {
    margin-top: .9rem; padding: .9rem 1rem; background: var(--surface); border-radius: 12px;
  }
  .dt-app .st-rail .st-search-pill { margin-top: .9rem; height: 48px; background: var(--surface); }
  .dt-app .st-rail-head {
    font-size: .875rem; margin: 0 0 .7rem;
    display: flex; align-items: center; gap: .4rem;
  }
  .dt-app .st-rail-ico {
    width: 16px; height: 16px; flex: none; color: var(--accent-text, var(--brand));
  }

  /* 순위 배지 — 1~3위만 강조. 그래야 눈이 먼저 간다. */
  .dt-app .st-rail-medal {
    display: grid; place-items: center; flex: none;
    width: 18px; height: 18px; border-radius: 6px;
    font-size: .6875rem; font-weight: 800; line-height: 1;
    color: var(--mut); background: var(--ui, var(--soft));
  }
  .dt-app .st-rail-medal.is-top {
    color: var(--brand-safe-fg, var(--accent-fg, #fff)); background: var(--brand-safe, var(--brand));
  }
  /* 병원 머리글자 아바타 — 이름마다 색이 고정된다(랜덤 아님) */
  .dt-app .st-rail-avatar {
    display: grid; place-items: center; flex: none;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: .6875rem; font-weight: 700; line-height: 1;
    color: hsl(var(--h) 62% 32%); background: hsl(var(--h) 72% 92%);
  }

  /* 인기 시술 — 목록보다 칩이 눈에 잘 들어온다 */
  .dt-app .st-rail-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
  .dt-app .st-rail-chips li { min-width: 0; max-width: 100%; }
  .dt-app .st-rail-chips a {
    display: inline-flex; align-items: center; gap: .3rem; max-width: 100%;
    padding: .3rem .6rem; border-radius: 999px;
    background: var(--ui, var(--soft)); border: 1px solid var(--line);
    font-size: .78125rem; line-height: 1.3;
  }
  .dt-app .st-rail-chips a:hover { background: var(--ui-hover, var(--soft)); border-color: var(--border-hover, var(--line)); }
  .dt-app .st-rail-chips b { color: var(--accent-text, var(--brand)); font-weight: 800; flex: none; font-size: .6875rem; }
  .dt-app .st-rail-chips span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 가격 랭킹 썸네일 + 순위 배지 겹치기 */
  .dt-app .st-rail-thumb { position: relative; flex: none; display: block; }
  .dt-app .st-rail-badge {
    position: absolute; inset-block-start: -5px; inset-inline-start: -5px;
    display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
    font-size: .625rem; font-weight: 800; line-height: 1;
    color: var(--brand-safe-fg, var(--accent-fg, #fff)); background: var(--brand-safe, var(--brand));
    box-shadow: 0 0 0 2px var(--surface);
  }
  /* 랭킹 목록 — 기본 1열(병원명이 길다), --2col 은 짧은 시술명·검색어용 */
  .dt-app .st-rail-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem .8rem; }
  /* 2열은 짧은 이름 전제다. 러시아어·태국어처럼 긴 언어에서도 칸을 넘지 않도록 최소 폭을 준다. */
  .dt-app .st-rail-rank--2col { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
  /* 그리드·플렉스 아이템의 기본 min-width:auto 가 내용 폭을 강제해 카드 밖으로 밀어낸다.
     0 으로 풀어야 아래 ellipsis 가 실제로 동작한다. */
  .dt-app .st-rail-rank li { min-width: 0; }
  .dt-app .st-rail-rank a { display: flex; gap: .45rem; align-items: baseline; font-size: .8125rem; min-width: 0; }
  .dt-app .st-rail-rank b { color: var(--accent-text, var(--brand)); font-weight: 800; flex: none; }
  .dt-app .st-rail-rank span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 리뷰 수 — 보조 정보라 남는 자리에만. 숫자만 있으면 이벤트 수로 읽혔다 → 카드 머리 끝에 열 이름("후기")을 단다 */
  .dt-app .st-rail-rank em {
    margin-inline-start: auto; flex: none; font-style: normal;
    color: var(--mut); font-size: .6875rem; font-variant-numeric: tabular-nums;
  }
  .dt-app .st-rail-col {
    margin-inline-start: auto; flex: none; color: var(--mut);
    font-family: var(--font); font-size: .6875rem; font-weight: 600; letter-spacing: 0;
  }

  /* 가격 랭킹 — 썸네일 + 이름 + 가격 */
  .dt-app .st-rail-events { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
  .dt-app .st-rail-events li { min-width: 0; }
  .dt-app .st-rail-events a { display: flex; gap: .6rem; align-items: center; min-width: 0; }
  .dt-app .st-rail-events img {
    width: 46px; height: 46px; flex: none; object-fit: cover;
    border-radius: calc(var(--radius) * .6); background: var(--soft);
  }
  .dt-app .st-rail-ev { display: grid; gap: .15rem; min-width: 0; }
  .dt-app .st-rail-ev-name {
    font-size: .8125rem; line-height: 1.35; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .dt-app .st-rail-ev-price {
    font-size: .8125rem; font-weight: 700; display: flex; gap: .3rem; align-items: baseline;
  }
  .dt-app .st-rail-ev-rate { color: var(--accent-2, var(--accent-text, var(--brand))); font-weight: 800; }
  .dt-app .st-rail-promo {
    aspect-ratio: 1 / 1.15; border-radius: 24px; display: grid; place-items: center;
    background: linear-gradient(150deg,
      color-mix(in srgb, var(--brand-safe, var(--brand)) 86%, #000) 0%, var(--brand-safe, var(--brand)) 55%,
      color-mix(in srgb, var(--brand-safe, var(--brand)) 62%, #fff) 100%);
  }
  .dt-app .st-rail-promo-mark { font-size: 3.2rem; font-weight: 800; color: var(--brand-safe-fg, var(--accent-fg, #fff)); }
  .dt-app .st-rail-promo-mark img { max-width: 140px; height: auto; }
  .dt-app .st-rail-copy { margin-top: 1.1rem; font-size: 1.0625rem; font-weight: 800; line-height: 1.4; }
  .dt-app .st-rail-sub  { margin-top: .4rem; color: var(--mut); font-size: .8125rem; line-height: 1.55; }
  .dt-app .st-rail .btn { margin-top: .9rem; }
  .dt-app .st-rail-foot { margin-top: 1.4rem; color: var(--mut); font-size: .75rem; }
}

/* ============================================================
   CJK 조판 — <html lang> 이 ja / zh-CN / zh-TW 일 때만 적용된다.
   기존 스킨 전부(라틴 기준으로 만든 32개 포함)에 걸린다. CJK 스킨만의 문제가 아니다.
   ============================================================ */

/* 음수 자간 클램프.
   라틴 활자는 좌우 여백이 넉넉해 조이는 게 맞지만, CJK 글자는 전각 틀을 꽉 채워 그려서
   음수 자간이 여백이 아니라 글자 자체를 깎는다. 획이 많은 글자(輪郭形成·鼻中隔·醫療美容)가 붙어 뭉개진다.
   max() 라서 CJK 스킨이 의도적으로 준 양수값(0.02~0.10em)은 그대로 살고 음수만 0 으로 눌린다. */
html[lang="ja"] .site h1, html[lang^="zh"] .site h1,
html[lang="ja"] .site h2, html[lang^="zh"] .site h2,
html[lang="ja"] .site h3, html[lang^="zh"] .site h3,
html[lang="ja"] .site .st-card-title, html[lang^="zh"] .site .st-card-title,
html[lang="ja"] .site .st-detail-title, html[lang^="zh"] .site .st-detail-title,
html[lang="ja"] .site .st-section-title, html[lang^="zh"] .site .st-section-title {
  letter-spacing: max(0em, var(--head-track, 0em));
}

html[lang="ja"] .site .st-hero h1, html[lang^="zh"] .site .st-hero h1,
html[lang="ja"] .site .st-price-now, html[lang^="zh"] .site .st-price-now,
html[lang="ja"] .site .st-card-now, html[lang^="zh"] .site .st-card-now { letter-spacing: 0; }

/* 금칙처리. break-all 과 keep-all 은 쓰지 않는다 — keep-all 은 한국어용 값이다. */
html[lang="ja"] .site,
html[lang^="zh"] .site { line-break: strict; word-break: normal; overflow-wrap: anywhere; }

/* CJK 본문 행간. UI(버튼·칩·표 셀)에는 올리지 않는다 — 터치 타깃과 줄맞춤이 깨진다. */
html[lang="ja"] .site .st-detail-desc, html[lang^="zh"] .site .st-detail-desc,
html[lang="ja"] .site .st-note, html[lang^="zh"] .site .st-note,
html[lang="ja"] .site .st-fact, html[lang^="zh"] .site .st-fact,
html[lang="ja"] .site .st-footer-note, html[lang^="zh"] .site .st-footer-note { line-height: 1.8; }

/* CJK 폰트에는 이탤릭체가 없다. 브라우저가 약 12도 기울여 합성하는데 렌더 버그처럼 보인다. */
html[lang="ja"] .site em, html[lang^="zh"] .site em,
html[lang="ja"] .site i, html[lang^="zh"] .site i,
html[lang="ja"] .site cite, html[lang^="zh"] .site cite,
html[lang="ja"] .site address, html[lang^="zh"] .site address { font-style: normal; }

/* 가격·건수·기간은 자릿수를 고정폭으로. 세로로 쌓일 때 자리가 흔들리지 않는다. */
html[lang="ja"] .site .st-price-now, html[lang^="zh"] .site .st-price-now,
html[lang="ja"] .site .st-price-was, html[lang^="zh"] .site .st-price-was,
html[lang="ja"] .site .st-card-now, html[lang^="zh"] .site .st-card-now,
html[lang="ja"] .site .st-card-was, html[lang^="zh"] .site .st-card-was,
html[lang="ja"] .site .st-count, html[lang^="zh"] .site .st-count { font-variant-numeric: tabular-nums; }

/* ============================================================
   한국어·아랍어·태국어 조판 — 기존 스킨 전부에 걸린다 (rb/* 아톰은 atoms.css 가 따로 처리)
   ============================================================ */

/* 한국어 — 어절 단위로 줄을 바꾼다 (제목이 단어 중간에서 끊기던 문제). 띄어쓰기 없는 긴 토큰은 그래도 끊는다. */
html[lang="ko"] .site { word-break: keep-all; overflow-wrap: break-word; }

/* 아랍어·태국어 — 자간은 아랍어 글자 연결과 태국어 성조 부호를 깨뜨린다. 스킨 --head-track(음수),
   ttl-upper(.1em), 카드 분류 라벨(.06–.08em) 모두 0 으로 (계약 §0.6 — 어떤 층도 예외 없음: !important).
   대문자 변환은 두 문자에 의미가 없다 — 기존 규칙(ttl-upper·editorial/poster 라벨)만 끈다(특이도 0,2,1). */
html[lang="ar"] .site, html[lang="ar"] .site *,
html[lang="th"] .site, html[lang="th"] .site * { letter-spacing: 0 !important; }
html[lang="ar"] .site *, html[lang="th"] .site * { text-transform: none; }

/* 태국어 — 위·아래 부호가 잘리지 않도록 행간 1.5 이상 (카드 제목 1.35 + line-clamp 가 부호를 잘랐다).
   행간을 1.5 미만으로 줄인 기존(st-*) 요소만 고른다 — 본문은 body 1.6 을 그대로 물려받는다 */
html[lang="th"] .site :is(.st-hero h1, .st-card-title, .st-card-meta, .st-detail-title, .st-section-title,
  .st-footer-brand, .st-rail-ev-name, .st-rail-chips a, .st-rail-tag, .st-rail-sub, .st-rail-copy) { line-height: 1.5; }
html[lang="th"] .site :is(.st-note, .st-fact, .st-footer-note, .st-detail-desc) { line-height: 1.75; }

/* RTL — 방향이 있는 레일 아이콘(상승 추세 화살표)은 뒤집는다 */
[dir="rtl"] .st-rail-ico--trend { transform: scaleX(-1); }

/* ============================================================
   가격 표시 = plain (body .pr-plain, 계약 §14) — 할인율·취소선 정가를 숨기고 현재가만.
   (0,3,0) — 모바일 카드 리셋(.site:is(.mcard-*) .st-card-was{display:inline})보다 뒤·같은 특이도라 이긴다
   ============================================================ */
.site.pr-plain .st-card-rate, .site.pr-plain .st-card-was,
.site.pr-plain .st-price-rate, .site.pr-plain .st-price-was,
.site.pr-plain .st-rail-ev-rate { display: none; }
