/* THE MO SCALP | consumer-facing mobile layout. /case does not load this file. */
@media(max-width:759.98px){
  :root{--tms-accent:#f05a24;--tms-border:#2b2b2b;--tms-card:#151515}
  html{scroll-padding-top:82px}
  section[data-screen-label] *,footer *{min-width:0}
  section[data-screen-label] :is(h1,h2,h3,p,figcaption){overflow-wrap:anywhere;word-break:keep-all}
  section[data-screen-label$=" Hero"]{padding-top:91px!important;padding-bottom:36px!important}
  section[data-screen-label="01 Hero"]{padding:0 20px 20px!important}
  section[data-screen-label="01 Hero"] h2{font-size:clamp(40px,11vw,52px)!important;line-height:1.1!important}
  section[data-screen-label]:not([data-screen-label$="Hero"]) > div > div:nth-child(2){row-gap:12px}
  [data-tms-left],section[data-screen-label] [style*="align-items: flex-end"][style*="text-align: right"]{justify-self:stretch!important;align-self:start!important;align-items:flex-start!important;text-align:left!important}
  section[data-screen-label] [style*="justify-self: end"][style*="text-align: right"]{text-align:left!important}
  section[data-screen-label] [style*="justify-self: end"] > p{text-align:left!important}
  section[data-screen-label] [data-reveal]{scroll-margin-top:84px}
  section[data-screen-label] image-slot::part(frame){background:#111!important}
  section[data-screen-label] image-slot::part(image){object-fit:cover!important}
  image-slot::part(frame),image-slot::part(image){touch-action:pan-y pinch-zoom}
  :is([data-tms-rail],[data-mx~=swipe]){scroll-margin-top:90px}
  [data-tms-rail][data-tms-rail]{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scroll-padding-inline:0!important;overscroll-behavior-inline:contain;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box;scrollbar-width:none}
  [data-tms-rail]::-webkit-scrollbar{display:none}
  [data-tms-rail][data-tms-rail] > *{flex:0 0 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
  [data-tms-rail] [data-reveal],[data-tms-rail] > [data-reveal],section[data-screen-label="02 Where"] [data-reveal]{opacity:1!important;transform:none!important;clip-path:none!important}
  [data-tms-review-track]{display:block!important;transform:none!important;width:auto!important;will-change:auto!important;padding:0 20px!important}
  [data-tms-review-track] > [data-tms-duplicate]{display:none!important}
  [data-tms-review-track] figure{max-width:100%!important}
  section[data-screen-label="02 Where"] [data-mx=wlist]{order:-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:0!important;padding:0!important;overflow:visible!important;scroll-snap-type:none}
  section[data-screen-label="02 Where"] [data-mx=wlist] > button{display:grid!important;min-height:44px;padding:7px 4px!important;max-width:100%;margin:0!important;background:#171717!important;border:1px solid #373431!important;border-radius:5px;color:#eeebe6!important}
  section[data-screen-label="02 Where"] [data-mx=wlist] > button:last-child{grid-column:1 / -1}
  section[data-screen-label="02 Where"] [data-mx=wlist] > button[data-tms-on="1"]{border-color:var(--tms-accent)!important;background:#2b1c17!important}
  section[data-screen-label="02 Where"] [data-mx=wlist] > button > span:first-child{display:grid!important;grid-template-columns:none!important;text-align:center;justify-content:center;gap:0!important}
  section[data-screen-label="02 Where"] [data-mx=wlist] > button > span:first-child > :not(:last-child),section[data-screen-label="02 Where"] [data-mx=wlist] > button > span:not(:first-child){display:none!important}
  section[data-screen-label="02 Where"] [data-mx=wlist] > button > span:first-child > :last-child{font-size:13px!important;font-weight:650;line-height:1.25;white-space:normal}
  section[data-screen-label="02 Where"] [data-mx=wframe]{display:block!important;width:100%!important;aspect-ratio:4 / 5!important;max-height:none!important;border-radius:6px}
  section[data-screen-label="02 Where"] [data-mx=wframe] > div[data-tms-on]{transform:none!important;transition:none!important}
  section[data-screen-label="02 Where"] [data-mx=wframe] > div[data-tms-on="0"]{visibility:hidden}
  section[data-screen-label="02 Where"] [data-mx=wframe] > div[data-tms-on="1"]{opacity:1!important}
  section[data-screen-label="02 Where"] [data-mx=wframe] image-slot::part(image){object-fit:cover!important}
  section[data-screen-label="02 Where"] [data-mx=wframe] > span{display:none!important}
  section[data-screen-label="02 Where"] [data-mx=wframe] > div:last-child{gap:6px!important;padding:13px!important;bottom:0!important;left:0!important;right:0!important}
  section[data-screen-label="02 Where"] [data-mx=wframe] > div:last-child span[style*="font-size: clamp"]{font-size:24px!important}
  section[data-screen-label="03 Directors"] [data-mx~=swipe],section[data-screen-label="04 Track"] [data-mx~=swipe],section[data-screen-label="Color Design"] [data-mx~=swipe]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;overflow:visible!important;scroll-snap-type:none;margin-inline:0!important;padding-inline:0!important}
  section:is([data-screen-label="03 Directors"],[data-screen-label="04 Track"],[data-screen-label="Color Design"]) [data-mx~=swipe] > *{width:100%!important;max-width:none!important}
  [data-tms-director-tabs]{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;border:0!important;overflow:visible!important;margin:0 0 12px!important}
  [data-tms-director-tabs] button{display:grid!important;grid-template-columns:1fr;justify-items:center;gap:4px!important;padding:8px 3px!important;min-height:59px;height:auto!important;border:1px solid #363331!important;border-radius:5px;background:#171717!important;white-space:normal!important;line-height:1.15;word-break:keep-all}
  [data-tms-director-tabs] button[data-tms-tab-line="#F05A24" i]{background:#2b1c17!important;border-color:var(--tms-accent)!important;color:#fff!important}
  [data-tms-director-tabs] button > span:first-child{display:none}
  [data-tms-director-tabs] button > span:nth-child(2){font-size:14px!important;color:inherit!important}
  [data-tms-director-tabs] button > span:nth-child(3){font-size:11px!important;line-height:1.3}
  section[data-screen-label="Director"] article{gap:20px!important;padding-top:0!important}
  section[data-screen-label="Director"] article [data-m=unstick]{position:relative!important;top:auto!important;gap:10px!important}
  section[data-screen-label="Director"] article img{object-position:50% 20%}
  section:is([data-screen-label="09 Process"],[data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"]) [data-m=row] > div{
    grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:auto auto auto;column-gap:13px!important;row-gap:3px!important;min-height:0!important;height:auto!important;padding:12px 0!important;opacity:1!important;transform:none!important;clip-path:none!important}
  section:is([data-screen-label="09 Process"],[data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"]) [data-m=row] > div > :first-child{width:48px!important;height:48px!important;grid-column:1;grid-row:1/span 3!important;align-self:start!important}
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"]) [data-m=row] > div > span[style*="border-radius"]{font-size:10px!important;height:20px!important;padding:0 7px!important}
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"]) [data-m=row] > div > span[style*="font-weight: 800"]{font-size:17px!important;line-height:1.35!important}
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"]) [data-m=row] > div > :last-child:not(:first-child){font-size:14px!important;line-height:1.6!important}
  section[data-screen-label="09 Process"] [data-m=row] > div{display:grid!important;grid-template-rows:auto;align-items:center!important;padding:10px 0!important}
  section[data-screen-label="09 Process"] [data-m=row] > div > :first-child{grid-row:1!important;width:45px!important;height:45px!important;gap:1px!important;background:#191613!important;border-radius:6px!important}
  section[data-screen-label="09 Process"] [data-m=row] > div > :first-child span:first-child{font-size:19px!important}
  section[data-screen-label="09 Process"] [data-m=row] > div > :first-child span:last-child{font-size:7px!important;letter-spacing:.03em!important}
  section[data-screen-label="09 Process"] [data-m=row] > div > :last-child{font-weight:650!important;align-self:center!important}
  section[data-screen-label="08 Case"] [data-tms-rail] > article{padding:12px!important;gap:11px!important;border-radius:6px}
  section[data-screen-label="08 Case"] [data-tms-rail] > article > div:nth-child(2){padding-bottom:8px!important}
  section[data-screen-label="08 Case"] [data-tms-rail] > article > p{font-size:15px!important;line-height:1.55!important}
  section[data-screen-label="Recognition"] [data-tms-rail] > article{border:1px solid var(--tms-border);border-radius:6px;background:var(--tms-card);padding:10px!important;gap:9px!important}
  section[data-screen-label="Recognition"] [data-tms-rail] > article > div:nth-child(2){padding-bottom:5px!important}
  section[data-screen-label="Space"] [data-tms-rail] > div{border:1px solid var(--tms-border);border-radius:6px;background:var(--tms-card);padding:10px!important;gap:9px!important}
  section[data-screen-label="Space"] [data-tms-rail] > div > span{padding:0 2px 3px}
  section[data-screen-label="Steps"] article{padding:25px 0!important;gap:15px!important;grid-template-columns:minmax(0,1fr)!important}
  section[data-screen-label="Steps"] article [data-m=unstick]{position:static!important;gap:10px!important}
  section[data-screen-label="Steps"] article h2{font-size:23px!important;margin:0!important}
  section[data-screen-label="Steps"] article [style*="grid-template-columns: 48px 1fr"]{grid-template-columns:32px minmax(0,1fr)!important;gap:8px!important;padding:8px 0!important}
  section[data-screen-label="Steps"] [data-m=line]{display:none!important}
  section[data-screen-label="SMP Hero"] [href^="#"]{justify-content:center;min-height:43px;max-width:100%;padding:0 8px!important;letter-spacing:0!important}
  section[data-screen-label="SMP Hero"] [role=navigation]{width:100%}
  section:is([data-screen-label="CROWN"],[data-screen-label="PART"],[data-screen-label="HAIRLINE"],[data-screen-label="SHAVED"],[data-screen-label="DENSITY"],[data-screen-label="EXISTING"]) > div{gap:17px!important}
  section[data-screen-label="Channels"] > div > div:has(>a){grid-template-columns:minmax(0,1fr)!important;gap:9px!important;margin-top:20px!important}
  section[data-screen-label="Channels"] a{padding:13px!important;gap:9px!important;border-radius:6px}
  section[data-screen-label="Contact Guide"] [style*="min(100%, max(150px"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  section[data-screen-label="Contact Guide"] figcaption{grid-template-columns:19px minmax(0,1fr)!important;font-size:13px!important}
  section[data-screen-label="Map"] iframe{max-height:275px}
  section[data-screen-label="01 For Who"] [style*="minmax(min(100%, 240px)"]{grid-template-columns:minmax(0,1fr)!important}
  html body section[data-screen-label="09 Gallery"] [data-m=gal] > :nth-child(2){grid-column:1/-1!important;aspect-ratio:4/3!important}
}

@media(max-width:759.98px){
  [data-tms-review-track][data-tms-review-track] > [data-tms-rail]{display:flex!important}
  section[data-screen-label="SMP Hero"] [data-tms-smp-nav]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
  section[data-screen-label="SMP Hero"] [data-tms-smp-nav] a{justify-content:flex-start;color:#f3f1ec;font-family:inherit;font-size:13px!important;letter-spacing:0!important;padding:0 11px!important;border-radius:4px}
  section[data-screen-label="SMP Hero"] [data-tms-smp-nav] a::after{content:attr(data-tms-label);overflow:hidden;text-overflow:ellipsis}
  section[data-screen-label="SMP Hero"] [data-tms-smp-nav] a[aria-label] > span:nth-child(2){display:none}
  section[data-screen-label="05 Curriculum"] [data-m=row] > div > div:last-child{justify-content:flex-start!important}
  section[data-screen-label="05 Curriculum"] [data-m=row] > div > div:last-child > span{font-size:10px!important;padding-inline:5px!important;line-height:1.25}
}

@media(max-width:759.98px){
  [data-tms-review-track] figure > :has(>image-slot){aspect-ratio:1 / 1!important}
  [data-tms-review-track] figure > :has(>image-slot[id="process-review-4"]){aspect-ratio:110 / 76!important}
  section[data-screen-label="08 Case"] [data-tms-rail] > article > div:first-child{touch-action:pan-y}
  section[data-screen-label="08b Academy Record"] :has(>image-slot:is([id="edu-rec-2"],[id="edu-rec-4"])){aspect-ratio:4 / 5!important}
}

@media(max-width:759.98px){
  body{padding-bottom:84px}
  .tms-top-btn{position:fixed;right:14px;bottom:92px;z-index:57;width:46px;height:46px;border-radius:50%;border:1px solid #3a3734;background:rgba(17,17,17,.92);color:#f3f1ec;font:600 11px/1.1 system-ui;display:none;align-items:center;justify-content:center;cursor:pointer}
  .tms-top-btn[data-on]{display:flex}
}

@media(max-width:759.98px){
  /* 손가락으로 누르기 쉬운 크기 확보 */
  footer a{display:inline-flex;align-items:center;min-height:44px}
  footer [style*="display:grid"] a,footer nav a{min-height:44px}
  section[data-screen-label="Channels"] a,section[data-screen-label="Contact Guide"] a{min-height:48px}
  section[data-screen-label="Steps"] ~ * a[href^="#"],[data-progress-root] a[href^="#"]{min-height:44px}
  a[href^="tel:"],a[href^="mailto:"]{min-height:44px;display:inline-flex;align-items:center}
  section[data-screen-label="PROCESS Hero"] a[href^="#"]{min-height:44px;padding:0 12px!important}
}

@media(max-width:759.98px){
  /* 넘기기 버튼: 어느 묶음의 것인지 보이게 하고, 위아래 섹션과 분리 */
  section[data-screen-label] + section[data-screen-label]{border-top:1px solid #1d1d1d}
  /* 번호·로마자 아이콘: 크기와 시작 위치를 첫 줄에 맞춤 */
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"],[data-screen-label="04 Track"]) [data-m=row] > div > :first-child{
    align-self:start!important;margin:1px 0 0!important;width:46px!important;height:46px!important;min-width:46px;flex:0 0 46px!important;aspect-ratio:1/1!important;display:flex!important;align-items:center;justify-content:center}
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"],[data-screen-label="04 Track"]) [data-m=row] > div{
    column-gap:14px!important;padding:14px 0!important;align-items:start!important}
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"]) [data-m=row] > div + div{border-top:1px solid #1d1d1d}
  section[data-screen-label="09 Process"] [data-m=row] > div{align-items:center!important}
}

@media(max-width:759.98px){
  /* 사진 묶음 넘기기: 사진 위 화살표 하나로 통일 (별도 설명·하단 바 없음) */
  /* 번호·로마자·마름모 아이콘: 틀 안에 정중앙으로 */
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"],[data-screen-label="04 Track"]) [data-m=row] > div > :first-child > *{
    position:absolute!important;inset:0!important;width:auto!important;height:auto!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;line-height:1!important}
  section:is([data-screen-label="Philosophy"],[data-screen-label="Design Standard"],[data-screen-label="After Guide"],[data-screen-label="05 Curriculum"],[data-screen-label="06 Format"],[data-screen-label="04 Track"]) [data-m=row] > div > :first-child{overflow:visible!important}
  section[data-screen-label="06 Format"] [data-m=row] > div{grid-template-columns:62px minmax(0,1fr)!important;column-gap:16px!important}
  /* 부위 선택 버튼: 글자 가운데, 마지막 버튼도 같은 폭으로 가운데 */
  section[data-screen-label="02 Where"] [data-mx=wlist] > button{place-items:center!important;align-content:center!important;min-height:48px}
  section[data-screen-label="02 Where"] [data-mx=wlist] > button:last-child{grid-column:1 / -1;width:calc(50% - 4px);justify-self:center}
}

@media(max-width:759.98px){
  /* 1:1 진행 마름모: 가로세로 같은 정사각형을 45도 회전 (찌그러짐 방지) */
  html body section[data-screen-label="06 Format"] [data-m=row] > div{grid-template-columns:64px minmax(0,1fr)!important;column-gap:14px!important}
  html body section[data-screen-label="06 Format"] [data-m=row] > div > :first-child{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;flex:0 0 40px!important;aspect-ratio:auto!important;margin:11px 0 0 12px!important;padding:0!important;box-sizing:border-box!important;transform:rotate(45deg)!important;transform-origin:50% 50%!important}
  html body section[data-screen-label="06 Format"] [data-m=row] > div > :first-child > *{position:static!important;inset:auto!important;transform:rotate(-45deg)!important;font-size:14px!important;font-weight:800!important;letter-spacing:0!important;line-height:1!important}

  /* 사진 넘기기 화살표: 사진 좌우 같은 거리, 정원 안 정중앙 */
  .tms-rail-nav{position:absolute;top:0;height:0;pointer-events:none;z-index:4;left:var(--tms-nav-l,0px);width:var(--tms-nav-w,100%)}
  .tms-rail-arrow{position:absolute;top:var(--tms-nav-y,180px);width:40px;height:40px;margin-top:-20px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(9,9,9,.6);color:#fff;display:grid;place-items:center;cursor:pointer;pointer-events:auto;line-height:0}
  .tms-rail-arrow svg{width:16px;height:16px;display:block}
  .tms-rail-arrow[data-dir=prev]{left:10px}
  .tms-rail-arrow[data-dir=next]{right:10px}
  .tms-rail-arrow:disabled{opacity:.28;pointer-events:none}
  .tms-rail-count{position:absolute;top:calc(var(--tms-nav-y,180px) + 28px);right:10px;min-width:40px;text-align:center;box-sizing:border-box;padding:3px 9px;border-radius:11px;background:rgba(9,9,9,.66);color:#f3f1ec;font:600 11px/1.4 system-ui;letter-spacing:.04em;pointer-events:none}

  /* 후기 목록: 스크립트 재실행 전에도 카드가 좁아지지 않도록 */
  [data-tms-review-track] > div:not([data-tms-duplicate]):not(.tms-rail-nav){display:flex!important;flex-wrap:nowrap!important;gap:12px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0!important}
  [data-tms-review-track] > div:not([data-tms-duplicate]):not(.tms-rail-nav) > figure{flex:0 0 100%!important;width:100%!important;max-width:100%!important;scroll-snap-align:start}
}

@media(max-width:759.98px){
  /* 수강생 후기: 사진을 위에 크게, 글은 아래로 (화살표가 글과 겹치지 않게) */
  section[data-screen-label="10 Student Voice"] [data-tms-rail] > figure{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;padding:12px 12px 18px!important;border-radius:6px}
  section[data-screen-label="10 Student Voice"] [data-tms-rail] > figure > div:first-child{width:100%!important;aspect-ratio:4 / 5!important}
  section[data-screen-label="10 Student Voice"] [data-tms-rail] > figure > div:last-child{padding:0 4px;gap:10px!important}
}
