/* PC 배치 보정 — 한쪽 쏠림·빈 공간·시작선 (1024px 이상). 글자 크기·색·그림 파일은 건드리지 않는다 */
@media (min-width:1024px){

/* 부위 그림 — 제목 | 그림 | 설명 글 세 칸으로 나눠 오른쪽 빈 칸을 없앤다 */
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg) > .cont:has(> h2.dn-heading:first-child + figure[style*="max-width:360px"] + p:last-child){
	grid-template-columns:minmax(0,300px) minmax(0,360px) minmax(0,1fr);
	column-gap:56px;
}
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg) > .cont:has(> h2.dn-heading:first-child + figure[style*="max-width:360px"] + p:last-child) > figure{
	grid-column:2;grid-row:1 / span 2;margin-bottom:0 !important;
}
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg) > .cont:has(> h2.dn-heading:first-child + figure[style*="max-width:360px"] + p:last-child) > p{
	grid-column:3;grid-row:1 / span 2;align-self:center;
}

/* 글 + 장비 사진 두 칸 — 글을 사진 높이의 가운데에 놓는다 */
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]{
	align-items:center !important;
}
/* 글이 한두 줄뿐이면 옅은 바탕 한 장 안에 글과 사진을 함께 둔다 */
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]:has(> p:first-child + figure){
	flex-wrap:nowrap !important;
	gap:32px 72px !important;
	padding:40px 56px;
	background:#F9EEF2;
	border-radius:10px;
	box-sizing:border-box;
}
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]:has(> p:first-child + figure) > figure{
	flex:0 0 220px !important;
}
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]:has(> p:first-child + figure) > p{
	flex:1 1 auto !important;
}

/* 장비·제품 카드 — 시작선을 다른 구역과 맞추고, 마지막 줄이 한 장만 남지 않게 한다 */
html body .iu-equip .iu-equip__inner{max-width:1380px;padding-left:40px;padding-right:40px}
.iu-equip .iu-equip__grid:has(> .iu-equip__item:nth-child(9):last-child){
	grid-template-columns:repeat(3,minmax(0,1fr));
}
.iu-equip .iu-equip__grid > .iu-equip__item--text{
	grid-column:1 / -1;
	padding:20px 2px 0 !important;
	border-top:1px solid #e6e1da;
}

/* 블로그 — 소개 박스·탭·카드 목록의 시작선을 제목선에 맞춘다 */
html body .blog-intro{max-width:1300px !important;margin-left:auto !important;margin-right:auto !important}
html body .blog-pillar-list{justify-content:flex-start !important}
html body .blog-list-wrap{max-width:none !important;margin-left:0 !important;margin-right:0 !important}

/* 의료진 — 본문 폭을 다른 지면과 같게 */
html body.wds .content_wrap .doctor_wrap .cont.cont2.cont2.cont2.cont2{width:1300px !important;max-width:100% !important}
html body .content_wrap .doctor_wrap .dn-doctor-intro{max-width:1300px !important}
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg) .dn-insight-track:not(:has(img,picture,svg,.dn-surg,.dn-insight-card__fig)):has(> .dn-insight-card:nth-child(3):last-child){
	grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg) .dn-insight-track:not(:has(img,picture,svg,.dn-surg,.dn-insight-card__fig)) > .dn-insight-card:nth-child(3):last-child:nth-child(odd){grid-column:auto !important}
/* 표 — 사진이 함께 있는 구역에서도 표 폭을 다른 지면과 같은 본문 폭으로 맞춘다 */
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg):has(img,picture,svg,.dn-surg,.dn-insight-card__fig) > .cont:has(> table.wds-table){max-width:1300px !important}
html body.wds main:not(#iu):not(#iu2) .content_wrap .dn-insight-section table.wds-table.iu-r4-narrow{max-width:none !important}
html body.wds main:not(#iu):not(#iu2) .content_wrap .dn-insight-section table.wds-table.iu-r4-two tr > :is(th,td):first-child{width:24% !important;max-width:24% !important}
}

/* 7차 배치 보정 — 시작선·폭·끝줄·빈 공간 (1024px 이상) */
@media (min-width:1024px){

/* 사진이 있는 구역도 본문 폭(1300)을 그대로 쓴다 — 오른쪽 180px 빈 칸 제거 */
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg):has(img,picture,svg,.dn-surg,.dn-insight-card__fig) > .cont{max-width:1300px !important}
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg):has(img,picture,svg,.dn-surg,.dn-insight-card__fig) > .dn-insight-slider{max-width:none !important}

/* 표·정의 목록이 있는 구역 — 문단도 같은 폭으로 */
html body.wds main:not(#iu) .dn-insight-section:not(.iu-leg) > .cont:has(> :is(table.wds-table,dl.iu-deflist)) > p{max-width:none !important}


/* 후기·이벤트·전후사진 안내 — 소개 카드·칩 시작선을 본문 시작선에 */
html body .cont_wrap > :is(.rr-guide,.rr-topics){max-width:1300px;padding-left:0 !important;padding-right:0 !important;box-sizing:border-box}
html body .cont_wrap > .rr-topics{padding-bottom:0 !important}
html body .cont_wrap:has(> .rr-topics){padding-bottom:80px}
html body .cont_wrap:has(> .rr-topics):has(+ .wune-related){padding-bottom:0}

/* 푸터 — 로고·내용 시작선을 본문(70)에 맞추고 오른쪽 끝까지 쓴다 */
html body .dn-footer__pc-main{max-width:1300px;width:calc(100% - 80px);margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;box-sizing:border-box}
html body .dn-footer__pc-info{flex:1 1 auto;min-width:0}

/* 글 + 세로로 긴 장비 사진 — 사진 높이를 줄여 상자를 낮추고 글·사진을 가운데로 모은다 */
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]:has(> p:first-child + figure){justify-content:center}
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]:has(> p:first-child + figure) > p{flex:0 1 560px !important}
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]:has(> p:first-child + figure) > figure{flex:0 0 auto !important;width:auto !important}
.dn-insight-section .cont > div[style*="flex-wrap:wrap"][style*="gap:32px 56px"]:has(> p:first-child + figure) > figure img{width:auto !important;max-height:280px;max-width:100%}
}

/* 그림 + 설명 두 칸(사각턱·광대·턱끝) — 그림 칸을 360 으로 두고 글을 위에서부터 이어 놓는다 */
@media (min-width:1024px){
html body.wds main:not(#iu):not(#iu2) .iu-sub-method .iu-leg__duo:not(.iu-leg__duo--even){grid-template-columns:minmax(0,360px) minmax(0,1fr);column-gap:80px;align-items:start}
html body.wds main:not(#iu):not(#iu2) .iu-sub-method .iu-leg__duo:not(.iu-leg__duo--even)>.iu-fig{max-width:360px}
}

/* 리프팅 가이드 — 판단 기준 4가지를 본문 폭에 네 칸으로(두 칸이 왼쪽에만 쏠리던 것) */
@media (min-width:1024px){
html body.wds .lg-sec dl.lg-criteria{max-width:none !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}
/* 리프팅 가이드 — 마지막 구역과 FAQ 사이 여백을 구역 사이 100px 로 */
html body.wds .lg-sec:has(+ .dn-geo-content){padding-bottom:0}
html body.wds .lg-sec:has(+ .dn-geo-content) .wds-container > :last-child{margin-bottom:0}

/* 공통 — 옛 지면 구역 안쪽 여백이 겹쳐 40px 들여쓰던 것을 없앤다 */
html body.wds main:not(#iu) .dn-insight-section.iu-leg > .cont{padding-left:0 !important;padding-right:0 !important}
/* FAQ 앞 간격 — 구역 사이 100px 로 통일(위 여백이 겹쳐 200px 로 벌어지던 것) */
html body.wds main:not(#iu):not(#iu2) .dn-geo-content{margin-top:0 !important}

/* 관련 지면 카드 시작 */
/* 함께 보면 좋은 페이지는 모든 지면에서 같은 카드 모양: 테두리 네 변, 같은 안쪽 여백, 같은 간격 */
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick){display:grid !important;column-count:auto !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:16px !important;align-items:stretch !important;margin:0 !important;padding:0 !important;list-style:none !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) > *{grid-column:auto !important;margin:0 !important;padding:0 !important;min-width:0}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) > li{display:flex !important;border:0 !important;background:none !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) :is(.wune-related__link,.breast-bottom-card){display:flex !important;flex-direction:column !important;justify-content:flex-start !important;flex:1 1 auto;width:100% !important;height:auto !important;min-height:0 !important;box-sizing:border-box !important;margin:0 !important;padding:20px 22px !important;border:1px solid var(--iu-line) !important;border-radius:10px !important;background:#fff !important;box-shadow:none !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) :is(.wune-related__link,.breast-bottom-card){align-items:stretch !important;text-align:left !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) :is(.wune-related__name,.breast-bottom-card__title){display:block !important;margin:0 !important;padding:0 !important;max-width:none !important;text-align:left !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) :is(.wune-related__desc,.breast-bottom-card__desc){display:block !important;margin:6px 0 0 !important;padding:0 !important;max-width:none !important;text-align:left !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) :is(.breast-bottom-card__label,.breast-bottom-card__button){display:none !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.dn-geo-content,.cont_wrap,.wds-notice,.dn-insight-section):is(:has(+ :is(.wune-related,.breast-bottom-links)),:has(+ script + :is(.wune-related,.breast-bottom-links))){padding-bottom:0 !important;margin-bottom:0 !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) .cont_wrap > .wds-notice:last-child{margin-bottom:0 !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) .wune-related:has(+ footer){padding-bottom:100px !important}
@media (min-width:768px){
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick):has(> :nth-child(odd):last-child) > :last-child{grid-column:1 / -1 !important}
}
@media (min-width:1024px){
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick):has(> :nth-child(3n):last-child){grid-template-columns:repeat(3,minmax(0,1fr)) !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick):has(> :nth-child(3n):last-child) > :last-child{grid-column:auto !important}
}
@media (max-width:767px){
html body.wds main:not(#iu):not(#iu2):not(#iu3) .wune-related:has(+ footer){padding-bottom:56px !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick){grid-template-columns:minmax(0,1fr) !important;gap:12px !important}
html body.wds main:not(#iu):not(#iu2):not(#iu3) :is(.wune-related__grid,.breast-bottom-links__grid,.iu-related__list):not(.iu-pick) > *{grid-column:auto !important}
}
/* 하단 닫는 상담 띠 제목: 본문 문단 규칙에 눌리지 않게 */
html body.wds main:not(#iu):not(#iu2):not(#iu3) .iu-closing p.iu-closing__title{font-size:28px !important;line-height:1.33 !important;font-weight:700 !important;letter-spacing:-0.017em !important}
@media (max-width:767px){
html body.wds main:not(#iu):not(#iu2):not(#iu3) .iu-closing p.iu-closing__title{font-size:24px !important}
}
/* 수술 그림 목록: 블록형 그림 목록의 왼쪽 안쪽 여백 제거 */
html body.wds main:not(#iu):not(#iu2):not(#iu3) .dn-surg--block .dn-surg__grid{padding-left:0 !important;margin-left:0 !important}
/* 모바일 가로 넘김 카드: 그림 카드는 내용 높이만큼만 쓰고 아래에 빈 칸을 늘리지 않는다 */
@media (max-width:767px){
html body.wds main:not(#iu):not(#iu2):not(#iu3) .dn-insight-track:has(.dn-surg) > .dn-insight-card{display:flex !important;flex-direction:column !important;grid-template-rows:none !important;align-self:start !important}
}
/* 관련 지면 카드 끝 */
