/* 쓸모 분류 메인 — 라이브 메인 D(d.css) 위에 얹는 얇은 층. 색은 분류색표, 글자는 메인과 같은 가족.
   한 화면 한 움직임: 첫 화면 대표 장면만 반복, 카드는 d.js 규칙(화면에 들어올 때 한 번, 동시 2개, 0.4초 차례). */
.ch-root{--ink2:#1D1D1F;--g2:#6E6E73;--line:#D2D2D7;padding-bottom:24px}
.ch-root .ch-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ch-root h1,.ch-root h2{word-break:keep-all;overflow-wrap:break-word}

/* 분류 칩 줄: 지금 분류만 진하게 */
.ch-cats a[aria-current="page"]{background:var(--ink2);color:#fff;border-color:var(--ink2)}

/* 첫 화면 */
.ch-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:center;padding-block:40px 24px}
.ch-root .ch-hero h1{color:var(--ink2);margin:0}
.ch-tool{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line);max-width:30em;font-size:1rem;line-height:1.6;color:#424245;text-wrap:pretty}
.ch-tool b{display:block;font-size:1.125rem;line-height:1.4;font-weight:700;color:var(--ink2);letter-spacing:-.015em;margin-bottom:6px}
.ch-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;margin-top:28px;border-radius:999px;background:var(--ink2);color:#fff;font-size:1rem;font-weight:700;text-decoration:none;transition:transform .12s cubic-bezier(.23,1,.32,1),background-color .16s}
.ch-btn:hover{background:#000}
.ch-btn:active{transform:scale(.97)}
.ch-btn:focus-visible,.ch-cityc:focus-visible,.ch-chips button:focus-visible{outline:3px solid #0A78B8;outline-offset:3px}
.ch-media{display:grid;place-items:center;aspect-ratio:5/4;max-height:500px;width:100%;border-radius:28px;background:var(--tone);overflow:hidden}
.ch-media video,.ch-media img{width:94%;height:94%;object-fit:contain;display:block;border-radius:16px}

/* 분류 안에서는 카드 위 분류 이름이 매번 같아서 감춤 */
.ch-root .card .lb{display:none}
.ch-meta{margin:10px 0 0;font-size:.9375rem;font-weight:600;color:var(--g2);font-variant-numeric:tabular-nums}

/* 찾기: 첫 화면 바로 아래, 화면 너비만큼 */
.ch-find{padding-top:24px}
.ch-find .ch-search{width:100%;max-width:none}
.ch-find .ch-search input{min-height:56px;font-size:1.0625rem;padding-left:50px;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.ch-find .ch-search svg{left:18px;width:20px;height:20px;margin-top:-10px}
.ch-find .ch-found{margin:10px 2px 0;min-height:0}
.ch-find .ch-found:empty{display:none}

/* 여행 첫 화면: 큰 사진 + 아래쪽 어둡게, 글은 흰색 */
.ch-hero--photo{position:relative;display:block;min-height:460px;width:calc(100% - 64px);max-width:1176px;margin:24px auto 0;padding:0;border-radius:28px;overflow:hidden;background:#2B3A44;isolation:isolate}
.ch-hero--photo .ch-hbg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.ch-hero--photo::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.38) 45%,rgba(0,0,0,.05) 80%)}
.ch-hero--photo .ch-txt{position:relative;max-width:560px;padding:56px 48px}
.ch-root .ch-hero--photo h1,.ch-hero--photo .ch-tool b{color:#fff}
.ch-hero--photo .ch-meta,.ch-hero--photo .ch-tool{color:rgba(255,255,255,.9)}
.ch-hero--photo .ch-tool{border-top-color:rgba(255,255,255,.35)}
.ch-hero--photo .ch-btn{background:#fff;color:var(--ink2)}
.ch-hero--photo .ch-btn:hover{background:#F5F5F7}

/* 여행 준비 사진 카드 묶음(이전 메인 '해외여행 준비' 칸) */
.ch-bento{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(0,auto);gap:16px}
.ch-bt{position:relative;display:flex;flex-direction:column;background:#fff;border-radius:20px;padding:10px 10px 18px;color:var(--ink2);text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 14px rgba(0,0,0,.04);transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .2s}
.ch-bt:hover{transform:translateY(-2px);box-shadow:0 2px 4px rgba(0,0,0,.05),0 12px 28px rgba(0,0,0,.08)}
.ch-bt:active{transform:scale(.98)}
.ch-bt:focus-visible{outline:3px solid #0A78B8;outline-offset:3px}
.ch-bimg{display:block;aspect-ratio:3/2;border-radius:14px;overflow:hidden;background:var(--tone)}
.ch-bimg img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.23,1,.32,1)}
.ch-bt:hover .ch-bimg img{transform:scale(1.03)}
.ch-tag{position:absolute;left:20px;top:20px;padding:5px 11px;border-radius:999px;background:#fff;color:var(--ink2);font-style:normal;font-size:.8125rem;font-weight:700}
.ch-btx{display:block;padding:14px 8px 0}
.ch-btx b{display:block;font-size:1.125rem;line-height:1.35;font-weight:700;letter-spacing:-.01em}
.ch-btx small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;font-size:.9375rem;line-height:1.5;color:#424245}
.ch-bt--big{grid-column:span 2;grid-row:span 2}
.ch-bt--big .ch-bimg{aspect-ratio:auto;flex:1;min-height:300px}
.ch-bt--big .ch-btx b{font-size:1.5rem}
.ch-bt[hidden]{display:none}

/* 섹션 제목 28/22 */
.ch-h2{font-size:1.75rem;line-height:1.3;font-weight:700;letter-spacing:-.02em;color:var(--ink2);margin:0 0 20px}
.ch-h2 small{font-size:1rem;font-weight:600;color:var(--g2);margin-left:6px;font-variant-numeric:tabular-nums}
.ch-pop,.ch-prep,.ch-city,.ch-all{padding-top:48px}

/* 많이 쓰는 도구: 넓은 화면에선 4장이 한 줄에 꽉 차게 */
@media (min-width:1024px){
  .ch-pop .ch-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;margin-inline:0;padding-inline:0;cursor:auto}
  .ch-pop .ch-track .card,.ch-pop .ch-track>.card.cpoint{width:auto!important;height:460px}
  .ch-pop .ch-track .card.ctool .ico{height:240px}
}

/* 도시 사진 카드 */
.ch-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.ch-chips button{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink2);font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer}
.ch-chips button[aria-pressed="true"]{background:var(--ink2);border-color:var(--ink2);color:#fff}
.ch-cities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ch-cityc{position:relative;display:block;aspect-ratio:3/2;border-radius:20px;overflow:hidden;background:#C9D3DA;color:#fff;text-decoration:none;transition:transform .12s cubic-bezier(.23,1,.32,1)}
.ch-cityc:active{transform:scale(.98)}
.ch-cimg,.ch-cimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ch-cityc::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.62) 0%,rgba(0,0,0,.22) 42%,rgba(0,0,0,0) 70%)}
.ch-cn,.ch-cc{position:absolute;left:18px;z-index:1;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.ch-cn{bottom:36px;font-size:1.25rem;font-weight:800;letter-spacing:-.01em;line-height:1.2}
.ch-cc{bottom:14px;font-size:.875rem;font-weight:600;opacity:.92}
.ch-cityc.nopic{background:var(--tone);color:var(--ink2)}
.ch-cityc.nopic::after{display:none}
.ch-cityc.nopic .ch-cn,.ch-cityc.nopic .ch-cc{text-shadow:none}
.ch-plane{position:absolute;right:18px;top:16px;width:44px;height:44px;color:var(--ink2);opacity:.55}
.ch-plane svg{width:100%;height:100%}
.ch-cityc[hidden]{display:none}

/* 모든 도구: 머리 + 검색 */
.ch-allhd{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.ch-allhd .ch-h2{margin:0}
.ch-search{position:relative;display:block;width:min(360px,100%)}
.ch-search svg{position:absolute;left:16px;top:50%;width:18px;height:18px;margin-top:-9px;color:var(--g2);pointer-events:none}
.ch-search input{width:100%;min-height:48px;padding:0 16px 0 44px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink2);font:inherit;font-size:1rem}
.ch-search input:focus-visible{outline:3px solid #0A78B8;outline-offset:2px;border-color:transparent}
.ch-found{margin:0 0 12px;min-height:1.4em;font-size:.875rem;color:var(--g2);font-variant-numeric:tabular-nums}
.ch-none{margin:8px 0 0;padding:28px 0;font-size:1rem;color:#424245}
.ch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ch-grid .card{width:auto!important;height:400px}
.ch-grid .card[hidden],.ch-track .card[hidden]{display:none}
.ch-grid .card.cpoint{grid-column:span 1}
#t-easy.ch-grid .card{height:auto;min-height:220px}

@media (max-width:1023px){
  .ch-bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ch-bt--big{grid-row:auto}
  .ch-bt--big .ch-bimg{aspect-ratio:16/9;min-height:0;flex:none}
  .ch-hero--photo{min-height:400px}
  .ch-hero{grid-template-columns:1fr;gap:28px;padding-block:32px 8px}
  .ch-media{max-height:none;aspect-ratio:4/3}
  .ch-cities{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .ch-hero--photo{display:flex;align-items:flex-end;min-height:440px;width:calc(100% - 32px);margin-top:16px;border-radius:22px}
  .ch-hero--photo::after{background:linear-gradient(0deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.4) 55%,rgba(0,0,0,.08) 100%)}
  .ch-hero--photo .ch-txt{padding:28px 20px 22px}
  .ch-media{aspect-ratio:16/10}
  .ch-bento{gap:10px}
  .ch-bt{padding:8px 8px 14px;border-radius:16px}
  .ch-bimg{border-radius:11px}
  .ch-tag{left:14px;top:14px;font-size:.75rem;padding:4px 9px}
  .ch-btx{padding:10px 4px 0}
  .ch-btx b{font-size:1rem}
  .ch-btx small{font-size:.8125rem}
  .ch-bt--big .ch-btx b{font-size:1.1875rem}
  /* 많이 쓰는 도구: 휴대폰은 옆으로 미는 큰 카드 대신 2칸 바둑판(그림 + 이름) */
  .ch-pop .ch-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;margin-inline:0;padding:0;cursor:auto}
  .ch-pop .ch-track .card,.ch-pop .ch-track .card.ctool,.ch-pop .ch-track .card.cpoint{width:auto;height:auto;min-height:0;padding:8px 8px 14px;border-radius:16px;background:#fff}
  .ch-pop .ch-track .card{min-width:0;overflow:hidden}
  .ch-pop .ch-track>.card.cpoint{width:auto!important}
  .ch-pop .ch-track .card .ico{height:auto;aspect-ratio:1/1;margin-bottom:10px;border-radius:12px}
  .ch-pop .ch-track .card p{display:none}
  .ch-pop .ch-track .card h3{font-size:.9375rem;line-height:1.35;margin:0 4px;padding-right:0}
  .ch-pop .ch-track .card .go{display:none}
  .ch-pop .ch-track .card.cpoint{flex-direction:column-reverse;justify-content:flex-end;background:#fff}
  .ch-pop .ch-track .card.cpoint .txt{padding:10px 4px 0}
  .ch-pop .ch-track .card.cpoint .cp-img{flex:none;width:100%;height:auto!important;max-width:100%;aspect-ratio:1/1;border-radius:12px;background:var(--tone);object-fit:cover!important;object-position:center top!important}
  .ch-btn{width:100%}
  .ch-h2{font-size:1.375rem;margin-bottom:16px}
  .ch-pop,.ch-prep,.ch-city,.ch-all{padding-top:36px}
  .ch-find{padding-top:16px}
  .ch-cities{gap:10px}
  .ch-cn{font-size:1.0625rem;bottom:32px;left:14px}
  .ch-cc{left:14px;bottom:12px;font-size:.8125rem}
  .ch-plane{width:34px;height:34px;right:12px;top:12px}
  /* 휴대폰 '모든 도구'는 한 줄 목록(그림 + 이름 + 두 줄 설명)으로, 덜 내려도 다 보이게 */
  .ch-grid{grid-template-columns:1fr;gap:10px}
  .ch-grid .card,.ch-grid .card.ctool,.ch-grid .card.cpoint,.ch-grid .card.ctext{display:grid;grid-template-columns:84px minmax(0,1fr);grid-auto-rows:auto;column-gap:14px;align-content:center;height:auto!important;min-height:0;padding:12px 52px 12px 12px;border-radius:18px;background:#fff}
  .ch-grid .card.cpoint,.ch-grid .card.ctext{grid-template-columns:minmax(0,1fr);padding:16px 52px 16px 16px}
  .ch-grid .card .ico{grid-row:1/span 2;align-self:center;width:84px;height:84px!important;margin:0!important;border-radius:14px}
  .ch-grid .card.ctool h3{align-self:end}
  .ch-grid .card.ctool p{align-self:start}
  .ch-grid .card .ico video,.ch-grid .card .ico img{height:88%!important;max-height:88%}
  .ch-grid .card .ico.ico-h{padding:0;align-items:center;justify-content:center}
  .ch-grid .card .ico-h .ih-bg{display:none}
  .ch-grid .card .ico-h .ih-i{width:44px;height:44px}
  .ch-grid .card .lb{display:none}
  .ch-grid .card h3{font-size:1.0625rem;margin:0}
  .ch-grid .card p{-webkit-line-clamp:2!important;font-size:.875rem;padding-right:0!important;margin-top:4px}
  .ch-grid .card .txt{padding:0!important;flex:1}
  .ch-grid .card.cpoint .cp-img{display:none}
  .ch-grid .card .go{top:50%!important;bottom:auto!important;right:12px!important;margin-top:-17px}
}
@media (prefers-reduced-motion:reduce){.ch-btn,.ch-cityc{transition:none}}
