/* ================================================
   MAIN/SET/sort_sw — 스와이퍼 + 소팅탭 (2026-11-22 · nanoseed2 시안 특허·시험결과 섹션)
   왼쪽 제목 · 오른쪽 분류 탭 + 진행 막대 + ‹ › / 카드 줄(끝없이 반복) / 크게 보기 창 · 확대보기 커서(body)
   - 칸 수 = --sos-per · 1024↓ --sos-pertb · 767↓ --sos-permo (container query 루트 기준)
   - 첫 카드·제목 시작 = --sos-inner 폭 안 (섹션 100% 여도)
   ================================================ */
.sos_root { container: sosc / inline-size; width: 100%; color: var(--sos-ink, #16191d); overflow: hidden; }
.sos_root *, .sos_root *::before, .sos_root *::after { box-sizing: border-box; }

/* ── 위: 제목 | 탭 + 막대 ── */
.sos_head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: var(--sos-inner, 1600px); margin: 0 auto; }
.sos_h2 { margin: 0; font-weight: 800; line-height: 1.22; letter-spacing: -.06em; color: var(--sos-ink, #16191d);
  font-size: max(calc(var(--sos-titfs, 50px) * .62), min(var(--sos-titfs, 50px), 3.2cqi)); }
.sos_ln { display: block; }
.sos_m { display: inline-block; vertical-align: bottom; }
.sos_edit .sos_m { display: inline; }
.sos_h2 i { --dot-fs: .92em; display: inline-block; position: relative; top: calc(var(--dot-fs) * .14); width: calc(var(--dot-fs) * .32); height: calc(var(--dot-fs) * .32);
  margin-left: calc(var(--dot-fs) * .2); border-radius: 50%; background: var(--sos-pt, #7fc6c6); vertical-align: baseline; }
.sos_sub { margin: 22px 0 0; font-weight: 300; letter-spacing: -.02em; color: var(--sos-muted, #6b737c);
  font-size: max(15px, min(var(--sos-subfs, 26px), 1.7cqi)); }
.sos_nav { flex: 0 1 640px; min-width: 0; margin: 0 0 -6px; }
.sos_tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sos_tabs li { list-style: none; }
.sos_tabs button { position: relative; height: 56px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--sos-tabbg, #eef0f2); cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 19px; letter-spacing: -.04em; color: #5d646c; transition: background .25s, color .25s; }
.sos_tabs button:hover { background: #e2e5e8; color: var(--sos-ink, #16191d); }
.sos_tabs button.on { background: var(--sos-on, #4a5466); color: #fff; font-weight: 700; }
.sos_tabdot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sos-pt, #7fc6c6); pointer-events: none;
  offset-rotate: 0deg; offset-distance: 100%; }
.sos_tabdot.go { animation: sos_dot 1.6s cubic-bezier(.12, .75, .2, 1) both; }
@keyframes sos_dot { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.sos_bar { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.sos_line { position: relative; flex: 1; height: 2px; background: #d7dbe0; }
.sos_prog { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--sos-ink, #16191d); transition: left .6s cubic-bezier(.2, .7, .2, 1), width .6s cubic-bezier(.2, .7, .2, 1); }
.sos_arr { display: flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border: 0; background: none; padding: 0; color: var(--sos-ink, #16191d); cursor: pointer; transition: transform .2s, color .2s; }
.sos_arr svg { display: block; width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sos_prev:hover { transform: translateX(-4px); color: var(--sos-pt, #7fc6c6); }
.sos_next:hover { transform: translateX(4px); color: var(--sos-pt, #7fc6c6); }

/* 제목 등장 모션 (.sos_in) */
.sos_h2 .sos_m { clip-path: inset(-.2em -.2em -.12em 0); }   /* 줄마다 아래에서 올라옴 (넘친 부분만 가림) */
.sos_h2 .sos_m > .sos_tt { display: inline-block; transform: translateY(110%); transition: transform 1.05s cubic-bezier(.7, 0, .2, 1); }
.sos_h2 .sos_ln + .sos_ln .sos_tt { transition-delay: .16s; }
.sos_h2 i { opacity: 0; transform: translateY(-1.6em); transition: opacity .2s ease 1.05s, transform .55s cubic-bezier(.5, 0, .4, 1.6) 1.05s; }
.sos_sub > .sos_tt { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.6, 0, .2, 1) 1.3s; }
.sos_in .sos_h2 .sos_m > .sos_tt, .sos_in .sos_h2 i { opacity: 1; transform: none; }
.sos_in .sos_sub > .sos_tt { clip-path: inset(0 0 0 0); }

/* ── 카드 줄 ── */
.sos_view { --sos-n: var(--sos-per, 5); position: relative; margin-top: clamp(30px, 4cqi, 64px); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sos_view.drag { cursor: grabbing; }
.sos_view.has-cur { cursor: none; }
.sos_row { display: flex; gap: var(--sos-gap, 30px); margin: 0; list-style: none; padding: 0 max(0px, calc((100% - var(--sos-inner, 1600px)) / 2));
  transition: transform .7s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.sos_view.drag .sos_row { transition: none; }
.sos_item { flex: 0 0 calc((min(100cqi, var(--sos-inner, 1600px)) - var(--sos-gap, 30px) * (var(--sos-n) - 1)) / var(--sos-n)); min-width: 0; list-style: none; cursor: pointer; }
.sos_mask { position: relative; overflow: hidden; border-radius: var(--sos-rad, 10px); aspect-ratio: 1 / 1.414; background: #f3f4f6; border: 1px solid #d7dbe0; transform: translateZ(0); transition: filter .45s ease; }
.sos_root[data-ratio="sq"] .sos_mask { aspect-ratio: 1 / 1; }
.sos_root[data-ratio="wide"] .sos_mask { aspect-ratio: 4 / 3; }
.sos_mask > div, .sos_mask .wg_img1 { position: absolute; inset: 0; }
.sos_mask img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.sos_item:hover .sos_mask img { transform: scale(1.05); }
.sos_empty_img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: #6b7280; border: 1px dashed #c3c8d2; }
.sos_lab { display: inline-block; margin-top: 22px; padding: 5px 10px; border-radius: 6px; background: var(--sos-on, #4a5466); font-style: normal; font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.sos_st { display: block; margin-top: 10px; font-weight: 800; font-size: max(17px, min(19px, 1.25cqi)); letter-spacing: -.05em; line-height: 1.35; color: var(--sos-ink, #16191d); }
.sos_ds { margin: 6px 0 0; font-size: max(13px, min(15px, .95cqi)); line-height: 1.55; letter-spacing: -.04em; color: var(--sos-muted, #6b737c); }
.sos_item .sos_lab, .sos_item .sos_st, .sos_item .sos_ds { transition: opacity .45s ease; }
/* ★ 라벨 = 글자 길이만큼 (사이트 공통 .wg_edit_txt 등이 block 으로 늘리던 것) */
.sos_root .sos_item .sos_lab { display: inline-block !important; width: auto !important; max-width: 100%; float: none !important; vertical-align: top; }
/* ★ 편집 권한자 제목 = 한 칸 그대로 (등장 모션·줄 가림 없음 → 첫 줄이 가려지거나 점이 떨어지던 것) */
.sos_edit .sos_h2 .sos_m { clip-path: none; }
.sos_edit .sos_h2 .sos_m > .sos_tt { display: inline; transform: none; }
/* 탭 고름 = 그 분류만 밝게 */
.sos_view.focus .sos_item:not(.hit) .sos_mask { filter: brightness(.45) saturate(.7); }
.sos_view.focus .sos_item:not(.hit) .sos_lab, .sos_view.focus .sos_item:not(.hit) .sos_st, .sos_view.focus .sos_item:not(.hit) .sos_ds { opacity: .35; }
.sos_view.focus .sos_item.hit .sos_mask { filter: brightness(1.06); }
.sos_root [data-ph]:empty::before { content: attr(data-ph); opacity: .45; font-weight: 400; }
.sos_empty { padding: 50px 20px; text-align: center; color: #9ca3af; font-size: 14px; border: 1px dashed #d1d5db; border-radius: 8px; }

/* ── 태블릿 · 모바일 (칸 폭 기준) ── */
@container sosc (max-width: 1024px) {
  .sos_view { --sos-n: var(--sos-pertb, 3); }
  .sos_head { gap: 24px; }
  .sos_tabs button { height: 46px; padding: 0 22px; font-size: 16px; }
}
@container sosc (max-width: 767px) {
  .sos_head { flex-direction: column; align-items: stretch; padding: 0 var(--sos-padmo, 20px); }
  .sos_h2 { font-size: max(24px, calc(var(--sos-titfs, 50px) * .54)); }
  .sos_sub { font-size: 15px; margin-top: 10px; }
  .sos_nav { flex: none; width: 100%; margin-top: 18px; }
  .sos_tabs { gap: 6px; }
  .sos_tabs button { height: 40px; padding: 0 17px; font-size: 14px; }
  .sos_bar { margin-top: 16px; }
  .sos_arr { width: 42px; height: 42px; }
  .sos_arr svg { width: 28px; height: 28px; }
  .sos_view { --sos-n: var(--sos-permo, 1.6); margin-top: 26px; }
  .sos_row { gap: min(14px, var(--sos-gap, 30px)); padding: 0 var(--sos-padmo, 20px); }
  .sos_item { flex-basis: calc((100cqi - var(--sos-padmo, 20px) * 2 - min(14px, var(--sos-gap, 30px)) * (var(--sos-n) - 1)) / var(--sos-n)); }
  .sos_lab { margin-top: 14px; padding: 4px 8px; font-size: 11px; }
  .sos_st { font-size: 17px; }
  .sos_ds { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sos_root *, .sos_root *::before { transition: none !important; animation: none !important; transform: none !important; clip-path: none !important; }
  .sos_h2 i { opacity: 1 !important; }
}

/* ── 확대보기 커서 (body 에 붙음) ── */
.sos_cursor { position: fixed; left: 0; top: 0; z-index: 2147482000; width: 0; height: 0; pointer-events: none; }
.sos_cursor .b { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, .86); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-weight: 800; font-size: 13px; letter-spacing: -.04em; color: #16191d; transform: scale(.4); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.sos_cursor .b i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--sos-pt, #7fc6c6); }
.sos_cursor.on .b { transform: scale(1); opacity: 1; }

/* ── 크게 보기 창 (body 에 붙음) ── */
.sos_lb_top, .sos_lb_stage, .sos_lb_thumbs { box-sizing: border-box; }
div.sos_lb { position: fixed; inset: 0; z-index: 2147483000 !important; display: flex; flex-direction: column; margin: 0; padding: 0; border-radius: 0; background: rgba(14, 16, 20, .92); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; font-size: 14px; }
div.sos_lb.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.sos_lb_top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 32px; }
.sos_lb_cnt { font-size: 15px; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.sos_lb_cnt b { font-weight: 500; color: #fff; }
.sos_lb_x { position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s; }
.sos_lb_x:hover { background: rgba(255, 255, 255, .26); }
.sos_lb_x::before, .sos_lb_x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: #fff; transform: rotate(45deg); }
.sos_lb_x::after { transform: rotate(-45deg); }
.sos_lb_stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 40px; padding: 0 32px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sos_lb_fig { margin: 0; display: flex; flex-direction: column; align-items: center; min-height: 0; max-height: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sos_lb_fig img { display: block; max-width: min(640px, calc(100vw - 260px)); max-height: calc(100vh - 76px - 130px - 110px); width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); pointer-events: none; }
.sos_lb_fig.in-r { animation: sos_lb_r .45s cubic-bezier(.2, .8, .2, 1); }
.sos_lb_fig.in-l { animation: sos_lb_l .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sos_lb_r { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes sos_lb_l { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.sos_lb_cap { margin-top: 18px; text-align: center; }
.sos_lb_cap em { display: inline-block; padding: 4px 9px; border-radius: 6px; background: var(--sos-on, #4a5466); font-style: normal; font-weight: 700; font-size: 12px; color: #fff; }
.sos_lb_cap strong { display: block; margin-top: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.04em; color: #fff; }
.sos_lb_go { display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 999px; background: var(--sos-pt, #7fc6c6); color: #10151c; font-weight: 700; font-size: 13px; text-decoration: none; }
.sos_lb_arr { flex: none; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.sos_lb_arr:hover { background: rgba(255, 255, 255, .22); }
.sos_lb_arr svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sos_lb_thumbs { flex: none; display: flex; justify-content: center; gap: 10px; height: 130px; padding: 20px 32px 30px; overflow-x: auto; scrollbar-width: none; }
.sos_lb_thumbs::-webkit-scrollbar { display: none; }
.sos_lb_th { flex: none; width: 58px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; overflow: hidden; cursor: pointer; opacity: .45; transition: opacity .25s, border-color .25s, transform .25s; }
.sos_lb_th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sos_lb_th:hover { opacity: .8; }
.sos_lb_th.on { opacity: 1; border-color: var(--sos-pt, #7fc6c6); transform: translateY(-3px); }
html.sos_lb_lock { overflow: hidden; }
@media (max-width: 767px) {
  .sos_lb_top { height: 60px; padding: 0 16px; }
  .sos_lb_stage { gap: 0; padding: 0 8px; }
  .sos_lb_arr { position: absolute; width: 40px; height: 40px; background: rgba(255, 255, 255, .08); }
  .sos_lb_arr.prev { left: 6px; }
  .sos_lb_arr.next { right: 6px; }
  .sos_lb_fig img { max-width: calc(100vw - 32px); max-height: calc(100vh - 60px - 96px - 110px); }
  .sos_lb_cap strong { font-size: 16px; }
  .sos_lb_thumbs { justify-content: flex-start; height: 96px; padding: 12px 16px 20px; gap: 8px; }
  .sos_lb_th { width: 46px; height: 64px; }
}
