/* nyw-tools.css — 사이트 내 검색 · 언어 전환.
 *
 * 치수는 px 로 고정한다(이 지면의 html font-size 는 clamp(9px,.52vw,10px)라 1rem 이 9px 다).
 * 색·각짐은 nyw-touchpoints.css 와 같은 계보다 — 잉크 #0a0a0a, border-radius 2·4·6px.
 */

/* ── 헤더 도구 (검색 · 언어) ─────────────────────────────── */

.nyw-hd__logo,.nyw-hd__cta,.nyw-tools{ flex:0 0 auto; white-space:nowrap; }
.nyw-tools{ display:flex; align-items:center; gap:6px; margin-left:10px;
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Segoe UI',sans-serif; }
.nyw-tools__btn{
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  height:32px; padding:0 9px; background:transparent; border:1px solid rgba(10,10,10,.16);
  border-radius:2px; color:#0a0a0a; font-size:12px; font-weight:500; letter-spacing:-.03em;
  cursor:pointer; text-decoration:none; transition:background .18s ease,border-color .18s ease;
}
.nyw-tools__btn:hover{ background:#0a0a0a; border-color:#0a0a0a; color:#fff; }
.nyw-tools__btn svg{ width:15px; height:15px; display:block; }
.nyw-tools__lang{ position:relative; }
.nyw-tools__menu{
  position:absolute; right:0; top:calc(100% + 6px); min-width:118px; z-index:80;
  background:#fff; border:1px solid rgba(10,10,10,.14); border-radius:2px;
  box-shadow:0 10px 28px rgba(0,0,0,.14); padding:4px 0;
  visibility:hidden; opacity:0; pointer-events:none; transition:opacity .16s ease;
}
.nyw-tools__lang:hover .nyw-tools__menu,
.nyw-tools__lang:focus-within .nyw-tools__menu{ visibility:visible; opacity:1; pointer-events:auto; }
.nyw-tools__menu a{
  display:block; padding:7px 12px; font-size:12.5px; color:#0a0a0a;
  text-decoration:none; letter-spacing:-.02em;
}
.nyw-tools__menu a:hover{ background:#f2f2f2; }
.nyw-tools__menu a[aria-current="true"]{ font-weight:700; }


@media (max-width:1024px){ .nyw-tools{ display:none; } }
@media (max-width:1600px){
  .nyw-tools__lang{ display:none; }
  .nyw-tools__btn span{ display:none; }
  .nyw-tools__btn{ padding:0 8px; }
  .nyw-tools{ margin-left:4px; }
}

/* ── 우측 세로바의 언어 3칸 ──────────────────────────────────
 * ★2026-09-04 — 세로바가 «검은 한 덩어리»에서 «흰 원형 버튼 여럿»으로 바뀌었다
 *   (nyw-touchpoints.css §① · 병원 요청 「에디션처럼」). 이 3칸도 함께 옮긴다.
 *   ⛔안 옮기면 흰 글씨가 배경 없이 영상 위에 그대로 떠서 읽히지 않는다. */
/* ⛔종전 판은 3칸을 «가로»로 늘어놓아 알약 폭이 96px 이었다. 그 아래 채널 버튼은 54px 원형이라
 *   세로줄 하나에 폭이 두 벌 섞여 우측 가장자리가 들쭉날쭉했다(2026-09-09 실측 — 세로바 폭 98px).
 *   에디션 정본은 «폭 하나»로 선다(54px 원형이 세로로 쌓인다). 그래서 언어도 세로로 쌓아
 *   폭을 54px 로 맞춘다 — 글자를 줄이지 않고도 축이 정리된다. */
.nyw-side__lang{
  display:flex; flex-direction:column; width:54px; margin-bottom:1px;
  background:rgba(255,255,255,.95);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  border:1px solid #e2e8f0; border-radius:27px; overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.12);
}
.nyw-side__lang a{
  flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  width:54px; height:28px; color:#4a4a4a; text-decoration:none;
  font-size:11px; font-weight:700; letter-spacing:.02em;
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Segoe UI',sans-serif;
  transition:background .18s ease, color .18s ease;
}
.nyw-side__lang a + a{ box-shadow:inset 0 1px 0 #e9edf2; }
.nyw-side__lang a:hover{ background:#0a0a0a; color:#fff; }
.nyw-side__lang a[aria-current="true"]{ background:#0a0a0a; color:#fff; }
.nyw-side__lang a:focus-visible{ outline:2px solid #0a0a0a; outline-offset:-2px; }

/* ── 검색 모달 ───────────────────────────────────────────── */
.nyw-sm{ position:fixed; inset:0; z-index:200;
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Segoe UI',sans-serif; }
.nyw-sm[hidden]{ display:none !important; }
.nyw-sm__bd{ position:absolute; inset:0; background:rgba(10,10,10,.52); }
.nyw-sm__pn{
  position:relative; margin:9vh auto 0; width:min(640px,calc(100vw - 32px));
  max-height:78vh; display:flex; flex-direction:column;
  background:#fff; border-radius:4px; box-shadow:0 24px 64px rgba(0,0,0,.32); overflow:hidden;
}
.nyw-sm__hd{ display:flex; align-items:center; gap:10px; padding:14px 16px;
  border-bottom:1px solid rgba(10,10,10,.10); color:#0a0a0a; }
.nyw-sm__hd svg{ width:19px; height:19px; flex:none; opacity:.6; }
.nyw-sm__in{
  flex:1 1 auto; min-width:0; border:0; outline:0; background:transparent;
  font-size:16px; line-height:1.4; color:#0a0a0a; letter-spacing:-.02em;
  font-family:inherit;
}
.nyw-sm__in::placeholder{ color:rgba(10,10,10,.38); }
.nyw-sm__x{ flex:none; width:28px; height:28px; border:0; background:transparent;
  color:rgba(10,10,10,.55); font-size:15px; cursor:pointer; border-radius:2px; }
.nyw-sm__x:hover{ background:#f2f2f2; color:#0a0a0a; }
.nyw-sm__em{ margin:0; padding:22px 18px; font-size:13px; color:rgba(10,10,10,.52); letter-spacing:-.02em; }
.nyw-sr{ overflow-y:auto; padding:4px 0 8px; }
.nyw-sr__i{ display:block; padding:11px 18px; text-decoration:none; color:#0a0a0a; }
.nyw-sr__i:hover{ background:#f5f5f5; }
.nyw-sr__cat{ display:block; font-size:11px; letter-spacing:.02em; color:rgba(10,10,10,.48); margin-bottom:3px; }
.nyw-sr__nm{ display:block; font-size:14.5px; font-weight:600; letter-spacing:-.03em; }
.nyw-sr__ds{ display:block; margin-top:3px; font-size:12px; line-height:1.5;
  color:rgba(10,10,10,.58); letter-spacing:-.02em;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
@media (max-width:640px){ .nyw-sm__pn{ margin-top:0; width:100vw; max-height:100vh; height:100vh; border-radius:0; } }
@media print{ .nyw-sm, .nyw-tools{ display:none !important; } }

/* ── 버거 패널 안의 검색·언어 (≤1024px) ─────────────────── */
.nyw-burger__tools{ display:flex; gap:6px; padding:10px 14px 4px; }
.nyw-burger__tools button,.nyw-burger__tools a{
  flex:1 1 0; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:38px; background:#0a0a0a; color:#fff; border:0; border-radius:2px;
  font-size:13px; font-weight:600; letter-spacing:-.02em; text-decoration:none; cursor:pointer;
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Segoe UI',sans-serif;
}
.nyw-burger__tools svg{ width:15px; height:15px; }
.nyw-burger__langs{ display:flex; gap:6px; padding:6px 14px 10px; }
.nyw-burger__langs a{
  flex:1 1 0; display:inline-flex; align-items:center; justify-content:center; height:34px;
  background:#f2f2f2; color:#0a0a0a; border-radius:2px; text-decoration:none;
  font-size:12.5px; font-weight:600; letter-spacing:.02em;
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Segoe UI',sans-serif;
}
.nyw-burger__langs a[aria-current="true"]{ background:#0a0a0a; color:#fff; }
