/* 영문판의 휴대폰 레이아웃 */
@media screen and (max-width: 767px) {
    /* 숨긴 홍보 그림과 안내 문구만 있는 자리에는 지면을 쓰지 않는다.
       관찰 대상의 폭과 2px 교차 지점은 광고 로더가 읽을 수 있게 유지한다. */
    body.l-en :is(
        .adw:has(> .ad.house):not(:has(> :not(.adl, .ad.house))),
        .dxe-article-slot[data-ad-placement]:not(:has(> :not(span))):not([style*="dashed"])
    ) {
        height: 2px !important;
        min-height: 0 !important;
        padding-block: 0 !important;
        margin-block: 0 -2px !important;
        border-block: 0 !important;
    }
    body.l-en .adw:has(> .ad.house):not(:has(> :not(.adl, .ad.house))) > :is(.adl, .ad.house),
    body.l-en .dxe-article-slot[data-ad-placement]:not(:has(> :not(span))):not([style*="dashed"]) > span {
        display: none;
    }

    /* 재고 없음이 확정된 경우에만 접는다. 다른 광고나 대체 콘텐츠가 있으면 보존한다. */
    body.l-en :is(.adw, .dxe-article-slot, .n9-ad, .n9-adb):has(ins:is([data-ad-status="unfilled"], [data-ad-status="unfill-optimized"])):not(:has(
        ins.adsbygoogle:not([data-ad-status="unfilled"]):not([data-ad-status="unfill-optimized"]),
        ins[data-ad-status="unfill-optimized"] :is(a[href], iframe[src]:not([src=""]):not([src="about:blank"])),
        .dni-sold, a.adk
    )) {
        display: none !important;
    }
    body.l-en :is(.adw:is(.dna-back, .dxe-ad0), .dxe-article-slot:is(.dna-back, .dxe-ad0, [hidden]), .n9-ad, .n9-adb):not(.dxe-adj, .only-pc):has(
        ins[data-ad-status="filled"],
        ins[data-ad-status="unfill-optimized"] :is(a[href], iframe[src]:not([src=""]):not([src="about:blank"])),
        .dni-sold, a.adk
    ) {
        display: block !important;
    }
    body.ne.l-en .n9-adb.dna-hx:has(> ins.adsbygoogle) {
        text-align: center;
    }
    body.ne.l-en .n9-adb.dna-hx:has(> ins.adsbygoogle) > .ad.house:not(:has(.dni-sold, a.adk)) {
        display: none;
    }

    /* 휴대폰에서 한 열로 이어지는 섹션의 양쪽 여백이 겹치지 않게 한다. */
    body.pd.l-en :is(.gr, .rt, .pgn, .rel, .sc-lt, .pd-fl, .pd-photo, .pd-ft),
    body.pd.l-en .rt .sb.m + .sb.m,
    body.pd.l-en .gr .gc {
        margin-top: 20px;
    }
    body.pd.l-en .gr > .gc:first-child {
        margin-top: 0;
    }
    body.pd.l-en .gr,
    body.pd.l-en .sc-body {
        margin-top: 14px;
    }
    body.pd.l-en .cv {
        padding-bottom: 10px;
    }
    body.pd.l-en .cv-r li:last-child {
        padding-bottom: 4px;
    }
    body.pd.l-en :is(.ar-h, .sc-h) {
        margin-top: 12px;
        padding-top: 12px;
    }
    body.pd.l-en .ar-b > h3 {
        margin-top: 1.15em;
    }
    body.pd.l-en .ar-rep {
        margin-top: 20px;
        padding-block: 12px;
    }
    body.pd.l-en .pd-fl > .w {
        padding-block: 14px;
    }
    body.pd.l-en .pd-ft {
        margin-top: 14px;
    }
    body.pd.l-en .pd-ft > .w {
        padding-block: 12px 24px;
    }

    body.ne.l-en .n9-front > :is(.n9-rc, .n9-lc),
    body.ne.l-en .n9-cols .n9-col + .n9-col,
    body.ne.l-en :is(.n9-latest, .n9-cols, .n9-rows, .n9-rail, .n9-rel, .n9-ft),
    body.ne.l-en .n9-rail > .n9-nine ~ .n9-nine,
    body.ne.l-en .n9-rail .n9-rlt,
    body.ne.l-en .n9 .pgn {
        margin-top: 20px;
    }
    body.ne.l-en .n9-front > .n9-lc,
    body.ne.l-en .n9-ft {
        margin-top: 14px;
    }
    body.ne.l-en .n9-rep {
        margin-top: 16px;
        padding-block: 12px;
    }
    body.ne.l-en .n9-ft .ft-in {
        padding-block: 16px 24px;
    }
}
