/* 4곳이 같이 쓰는 것은 「모양이 없는」 바탕뿐: 여백 초기화 · 사진 원본 비율 · 벽돌 쌓기 동작 · 광고 자리 크기.
   색·글꼴·선·둥글기·칸 배치는 전부 사이트별 CSS 에 있다. */
/* ㉰-1: ins 는 뺀다 — 구글이 body 에 붙이는 앵커 · 모바일 전면 ins 에 우리 규칙이 하나도 걸리지 않게(우리 칸 안 ins 는 테두리 · 안쪽 여백이 없어 차이 없음) */
*:not(ins),*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;word-break:keep-all;overflow-wrap:anywhere;-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,p,ul,ol,figure,dl,dd{margin:0;padding:0}
ul,ol{list-style:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
img{display:block;max-width:100%;height:auto}
/* 사진은 어디서나 원본 비율 그대로(자르지 않음) */
.ph{display:block;overflow:hidden}
.ph img{width:100%;height:auto}
/* 벽돌 쌓기(높이가 다른 카드를 위로 붙임) — js/app.js 가 .on 과 자리(span)를 넣음 */
.mz{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:var(--mg,30px) var(--g,24px);align-items:start}
.mz.on{grid-auto-rows:4px;row-gap:0!important;grid-auto-flow:row dense}
/* 광고 자리(시안: 크기만 표시) */
.ad{width:min(100%,var(--w));height:var(--h);margin-left:auto;margin-right:auto;display:flex;align-items:center;justify-content:center;font-size:12px;letter-spacing:.04em}
.ad::after{content:"AD " attr(data-pc)}
.ad.only-mo{display:none}
@media(max-width:767px){
  .ad{width:min(100%,var(--mw,var(--w)));height:var(--mh,var(--h))}
  .ad[data-mo]::after{content:"AD " attr(data-mo)}
  .ad.only-pc{display:none}.ad.only-mo{display:flex}
}
/* 진짜 광고가 들어간 칸(0046-01, js/app.js 「3. 광고 넣기」): 칸 크기 = 광고 크기 그대로 — 자리 표시 테두리 · 바탕 · 글씨를 뺀다(사이트 css 보다 먼저 이기게 html body) */
html body .ad.ad-on{border:0;background:none}
html body .ad.ad-on::after{content:none}
/* ㉰-1 「광고」 글자(언제나 남김): 감싸개(.adw>.adl · .n9-ad>.n9-adl · .adx-w>.adx-l)가 없는 맨 칸이 채워지면(.ad-on · 기자 칸 .ad-live) 칸 바로 위에 작은 「광고」.
   칸 밖(위)에 띄워 광고 그림을 덮지 않고, 칸 자리 · 높이는 그대로(덜컹거림 없음). 모양(색 · 크기 · 여백)은 사이트 css 가 더 세게 덮어도 됨 — 글자를 지우지만 않으면 */
:is(.ad.ad-on,.ad.ad-live):not(:is(.adw,.n9-ad,.adx-w,.dna-w) .ad){position:relative;overflow:visible}
:is(.ad.ad-on,.ad.ad-live):not(:is(.adw,.n9-ad,.adx-w,.dna-w) .ad)::before{content:"광고";position:absolute;left:0;bottom:100%;padding:0 0 4px;font:400 11px/1 system-ui,sans-serif;letter-spacing:.06em;color:#888;white-space:nowrap;pointer-events:none}
:lang(en):is(.ad.ad-on,.ad.ad-live):not(:is(.adw,.n9-ad,.adx-w,.dna-w) .ad)::before{content:"Advertisement"}
/* ㉰-1 옆 단 따라오는 칸(약속 4절 .ad-sticky — 모양은 사이트 css). 휴대폰은 한 단이라 따라오면 아래 글을 덮으므로 PC 만 */
@media(min-width:768px){.ad-sticky{position:sticky;top:16px}}
.clamp1,.clamp2,.clamp3,.clamp4{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.clamp1{-webkit-line-clamp:1}.clamp2{-webkit-line-clamp:2}.clamp3{-webkit-line-clamp:3}.clamp4{-webkit-line-clamp:4}
/* 옆 단 채우기(js/app.js 2-1, 0051-02): 숨긴 칸 · 줄(hidden)은 사이트 css 의 display 보다 먼저 */
[data-rail] [hidden]{display:none!important}
/* 0058-01 본문 유튜브 영상(lib.php yt_embed): 본단 폭에 맞는 16:9 칸 — 칸 폭을 넘지 않고 휴대폰에서 가로로 밀리지 않음 */
.yt{position:relative;display:block;width:100%;max-width:100%;height:0;padding-bottom:56.25%;overflow:hidden}
.yt>iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
figure.vid figcaption{text-align:left}

/* 커츄 2026-11-24 20:59: 뉴스 4곳 로그인 · 회원가입 고리 숨김(아직 개발 중) — 이 두 줄을 지우면 다시 보임 */
.ssn-in,.ssn-jo,.ssn-n,.ssn-out,a[data-ssn]{display:none!important}
/* 커츄 2026-11-25 21:22: 광고가 들어간 칸에는 「광고 320×100」 같은 자리 글씨를 어떤 사이트 css 에서도 안 보이게(사이트 css 가 더 세서 남던 것) */
html body .ad.ad-on::after{content:none!important}
/* 2-9 기사 화면 광고(js/app.js): 본문 사이 · 기사 끝 · PC 옆 단 — 위에 작은 「광고」, 가운데 정렬, 못 채운 칸은 접음 */
.adx-w{display:block;margin:34px auto;text-align:center;clear:both}
.adx-w .adx-l{display:block;font-size:11px;line-height:1;color:#999;letter-spacing:.06em;margin:0 0 8px}
.adx-w .adx-r{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.adx-w .ad{margin:0}
html body .adx-w .ad::before,html body .adx-w .ad::after{content:none!important}
.adx-w.adx-side{margin:30px 0 0}
.adx-w.adx-end{margin:40px auto 0}
html body .adx-w:has(ins.adsbygoogle[data-ad-status="unfilled"]) .ad:has(> ins[data-ad-status="unfilled"]){display:none}
html body .adx-w:not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"]))):has(ins.adsbygoogle){display:none}
@media(max-width:767px){.adx-w{margin:28px auto}.adx-w .adx-r{gap:12px}}
html body .adx-w:not(:has(.ad[data-slot],.ad.ad-on)){display:none}

/* Mobile article photos and display ads. */
@media (max-width: 767px) {
  body.t-article :is(.art-b, .ar-b) figure[style*="--nw"]:not(.port, .sm, .dc-small, .dc-orig, .vid):has(> img, > a > img, > picture > img) {
    max-width: none;
  }

  body.ne.t-article .n9 .n9-ab figure[style*="--nw"]:not(.port, .sm, .dc-small, .dc-orig, .vid):has(> img, > a > img, > picture > img) {
    width: min(calc(100% + 40px), var(--nw));
    margin-left: max(-20px, calc((100% - var(--nw)) / 2));
    margin-right: 0;
  }

  html body main .dc-ad-fluid {
    position: relative;
    left: var(--dc-ad-offset, 0px);
    width: var(--dc-ad-width);
    max-width: none;
    flex-shrink: 0;
    /* ㉰-1: 높이 고정을 풀고 자리 높이(--mh)만 잡아 둠 — 광고가 들어오기 전 · 뒤 칸 자리가 같고, 더 큰 반응형 광고는 잘리지 않음 */
    height: auto !important;
    min-height: var(--mh, var(--h));
    border-width: 0 !important; /* 화면 폭 꽉 찬 칸 — 사이트 테두리(뉴스나인 .n9 .ad 1px)가 남으면 광고가 들어올 때 2px 늘어남 */
  }
}

/* Green P&S campaign and responsive media placements. */
.dc-greenpns {
  grid-column: 1 / -1;
  width: min(calc(100% - 32px), 1180px);
  margin-inline: auto;
}
.dc-greenpns {
  position: relative;
  margin-block: 22px 36px;
  isolation: isolate;
  color: #fff;
  background: #12372c;
  overflow: hidden;
  border-radius: 10px;
}
.dc-greenpns-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(156px, 22vw, 258px);
  color: inherit;
}
.dc-greenpns-link::before,
.dc-greenpns-scenes,
.dc-greenpns-scenes img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dc-greenpns-link::before {
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(7,35,26,.96), rgba(7,35,26,.78) 37%, rgba(7,35,26,.16) 83%);
}
.dc-greenpns-scenes img {
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
}
.dc-greenpns-scenes .is-current { opacity: 1; }
.dc-greenpns-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 21px clamp(16px, 4vw, 52px) 44px;
  line-height: 1.15;
  font-family: system-ui, sans-serif;
}
.dc-greenpns-label { font-size: 11px; color: #d3e8d7; }
.dc-greenpns-copy strong { font-size: clamp(25px, 4vw, 47px); letter-spacing: -.055em; }
.dc-greenpns-title { font-size: clamp(13px, 1.8vw, 20px); font-weight: 650; }
.dc-greenpns-action { margin-top: 5px; color: #daf3cc; font-size: 12px; font-weight: 650; }
.dc-greenpns-controls {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 5px;
}
.dc-greenpns-controls button {
  min-width: 34px;
  min-height: 28px;
  padding-inline: 7px;
  border: 1px solid #dbe8dd;
  border-radius: 5px;
  background: #17362e;
  color: #fff;
  font: 600 11px/1 system-ui, sans-serif;
}
.dc-greenpns :is(a,button):focus-visible {
  outline: 2px solid #deffae;
  outline-offset: -3px;
}
body :is(.ad,.adw,.n9-ad,.n9-adb,.adx-w,.dna-w).dc-ad-skipped { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .dc-greenpns-scenes img { transition: none; }
}
/* 가로 띠 풀사이즈(퀘스트 0253-01 · 스위치 dc.ad_wide — 켰을 때만 .ad-wide · .ad-wide-mo 가 붙음): 칸 가로를 꽉 채우고 높이는 비율로 미리 잡음(밀림 없음) */
@media(min-width:768px){.ad.ad-wide{width:100%;height:auto;aspect-ratio:970/90}}
@media(max-width:767px){.ad.ad-wide-mo{width:100%;height:auto;aspect-ratio:320/100}}
