/* ============================================================
   Dandoc.zip 04호 — 환기 특집
   1~3호 지면 문법을 그대로 쓰고, 호 전용 액센트(바람 인디고)와
   공기 흐름 구분선(air-rule.svg)만 얹습니다. styles.css 뒤에 실립니다.
   ============================================================ */
body.issue04 { --air: #4050c8; --air-hi: #b9c1f5; --accent: var(--air); --accent-hi: var(--air-hi); overflow-x: clip; }
figure { margin-left: 0; margin-right: 0; }

/* 공기 흐름 구분선 */
.air-rule { margin: 3rem calc(50% - 50vw); width: 100vw; height: 48px; background: url("/assets/issue04/air-rule.svg") left center / auto 100% repeat-x; }
@media (max-width: 520px) { .air-rule { height: 36px; margin: 2.25rem calc(50% - 50vw); } }

/* 표제 */
.i4-hero { padding-top: 2rem; }
.i4-hero h1 { font-size: 2.1rem; line-height: 1.3; margin-top: 1rem; }
@media (max-width: 520px) { .i4-hero h1 { font-size: 1.55rem; } }
.i4-hero .hero-sub { font-weight: 700; margin-top: .7rem; }
.i4-key { margin: 1.4rem 0 0; }
.i4-key img { width: 100%; display: block; }
.i4-hero .lede { margin-top: 1.2rem; }

/* 글자 차례 */
.toc-txt { margin-top: 2rem; border-top: 3px solid var(--ink); padding-top: .9rem; }
.toc-txt .toc-lead { font-family: var(--fd); font-weight: 700; font-size: .8rem; letter-spacing: .14em; display: inline-block; transform: scaleX(.75); transform-origin: 0 50%; }
.toc-txt ol { list-style: none; margin: .4rem 0 0; padding: 0; }
.toc-txt a { display: flex; gap: .9rem; align-items: baseline; padding: .6rem .2rem; border-bottom: 1.5px solid var(--ink); text-decoration: none; color: var(--ink); }
.toc-txt a:hover { background: var(--ink); color: var(--paper); }
.toc-txt .n { font-family: var(--fd); font-weight: 700; font-size: 1.2rem; min-width: 2rem; transform: scaleX(.75); transform-origin: 0 50%; }
.toc-txt .t { font-weight: 700; font-size: .92rem; line-height: 1.45; }
.toc-txt li.sub a { padding-left: 1.2rem; border-bottom-style: dotted; }
.toc-txt li.sub .n { font-size: .7rem; letter-spacing: .08em; color: var(--accent); min-width: 4.6rem; }
.toc-txt li.sub a:hover .n { color: var(--air-hi); }
.toc-txt li.sub .t { font-weight: 600; font-size: .86rem; }

/* 그림·사진 */
.i4-ill { margin: 1.25rem auto 0; max-width: 20rem; }
.i4-ill img { width: 100%; display: block; }
.i4-ill.wide { max-width: none; }
.i4-ill.mid { max-width: 26rem; }
.i4-ill.small { max-width: 16rem; }
.i4-photo { margin: 1.25rem 0 0; }
.i4-photo .ph { display: block; border: 2px solid var(--ink); overflow: hidden; }
.i4-photo img { display: block; width: 100%; }
figcaption { font-size: .74rem; color: var(--ink-soft); line-height: 1.6; margin-top: .55rem; border-left: 3px solid var(--accent); padding-left: .7rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.25rem; }
.pair figure { margin: 0; }
.pair .ph { aspect-ratio: 9/14; }
.pair .ph img { height: 100%; object-fit: cover; }

/* 02 환기장치 4가지 */
.dev-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dev { border: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; }
.dev .pic { background: #fff; border-bottom: 2px solid var(--ink); padding: .6rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.dev .pic img { max-height: 100%; max-width: 80%; display: block; }
.dev .body { padding: .65rem .75rem .8rem; }
.dev .no { font-family: var(--fd); font-weight: 700; font-size: .78rem; color: var(--accent); }
.dev .nm { display: block; font-weight: 800; font-size: .98rem; margin-top: .1rem; }
.dev .role { display: inline-block; margin-top: .3rem; font-size: .7rem; font-weight: 700; border: 1.5px solid var(--ink); padding: .05rem .4rem; }
.dev p { font-size: .82rem; line-height: 1.6; margin: .4rem 0 0; }
.dev.hl { box-shadow: 4px 4px 0 0 var(--accent); }
.dev.hl .pic { background: #eef0ff; }
@media (max-width: 460px) { .dev-list { grid-template-columns: 1fr; } .dev { flex-direction: row; } .dev .pic { width: 7rem; flex-shrink: 0; aspect-ratio: auto; border-bottom: none; border-right: 2px solid var(--ink); } }

/* 사이드 노트 · 사례 박스 */
.sidenote, .case { position: relative; margin-top: 3rem; border: 2px solid var(--ink); box-shadow: 5px 5px 0 0 var(--accent); padding: 1.15rem 1.1rem 1.35rem; background: var(--paper); }
.case { box-shadow: 5px 5px 0 0 var(--ink); }
.kicker { font-family: var(--fd); font-size: .7rem; letter-spacing: .16em; background: var(--accent); color: var(--paper); display: inline-block; padding: .28rem .55rem .22rem; font-weight: 700; transform: scaleX(.75); transform-origin: 0 50%; }
.case .kicker { background: var(--ink); }
.sn-h { font-family: var(--fd); font-size: 1.25rem; line-height: 1.4; margin-top: .7rem; font-weight: 700; }
.sn-row { display: grid; grid-template-columns: 1fr 6.5rem; gap: 1rem; align-items: end; }
.sn-row img { width: 100%; }
@media (max-width: 420px) { .sn-row { grid-template-columns: 1fr 4.8rem; } }

/* 03 전열교환소자 흐름 */
.flow3 { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; counter-reset: f; }
.flow3 li { border: 2px solid var(--ink); padding: .6rem .6rem .7rem; counter-increment: f; background: var(--paper); }
.flow3 li::before { content: "0" counter(f); font-family: var(--fd); font-weight: 700; font-size: 1.3rem; display: block; line-height: 1; transform: scaleX(.75); transform-origin: 0 50%; }
.flow3 li:last-child { background: var(--ink); color: var(--paper); }
.flow3 b { display: block; font-size: .84rem; margin-top: .35rem; line-height: 1.4; }
.flow3 span { display: block; font-size: .72rem; line-height: 1.5; margin-top: .2rem; opacity: .85; }
@media (max-width: 520px) { .flow3 { grid-template-columns: 1fr; } }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .76rem; font-weight: 700; margin-top: .6rem; }
.legend i { display: inline-block; width: .9rem; height: .3rem; margin-right: .3rem; vertical-align: middle; }

/* 04 운전 모드 */
.mode-list { margin: 1rem 0 0; border-top: 2px solid var(--ink); }
.mode-list > div { display: grid; grid-template-columns: 2.4rem 1fr; gap: .7rem; padding: .8rem 0; border-bottom: 1.5px dotted var(--ink); }
.mode-list .n { font-family: var(--fd); font-weight: 700; font-size: 1.4rem; line-height: 1.1; color: var(--accent); }
.mode-list dt { font-weight: 800; font-size: .95rem; }
.mode-list dd { margin: .25rem 0 0; font-size: .86rem; line-height: 1.65; }
.season { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.season div { border: 2px solid var(--ink); padding: .6rem .7rem .7rem; font-size: .8rem; line-height: 1.55; }
.season b { display: block; font-family: var(--fd); font-size: .95rem; margin-bottom: .2rem; }
@media (max-width: 520px) { .season { grid-template-columns: 1fr; } }

/* 05 관리주기 표 */
.cycle { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .84rem; }
.cycle th { background: var(--ink); color: var(--paper); text-align: left; padding: .5rem .6rem; font-size: .76rem; letter-spacing: .02em; }
.cycle td { border-bottom: 1.5px dotted var(--ink); padding: .6rem; vertical-align: top; line-height: 1.55; }
.cycle td:nth-child(2) { font-weight: 800; color: var(--accent); white-space: nowrap; }
.cycle tr:last-child td { border-bottom: 2px solid var(--ink); }
@media (max-width: 460px) { .cycle th:nth-child(3), .cycle td:nth-child(3) { display: none; } .cycle td:first-child::after { content: attr(data-check); display: block; font-weight: 400; font-size: .76rem; color: var(--ink-soft); margin-top: .2rem; } }
.callout { border-left: 4px solid var(--accent); padding: .2rem 0 .2rem .85rem; margin-top: 1.4rem; font-weight: 800; }

/* 06 점검 */
.pro { list-style: none; margin: .7rem 0 0; padding: 0; }
.pro li { border: 2px solid var(--ink); padding: .6rem .8rem; margin-top: .45rem; font-size: .88rem; font-weight: 600; display: flex; gap: .6rem; }
.pro li::before { content: "!"; font-family: var(--fd); font-weight: 700; color: var(--paper); background: var(--accent); width: 1.3rem; height: 1.3rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.h3 { margin-top: 2rem; }
.lbl-h { font-family: var(--fd); font-weight: 700; font-size: .85rem; letter-spacing: .1em; margin-top: 1.75rem; display: block; }

/* 본문 인라인 출처 링크 */
.src { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.top-link { display: inline-block; font-size: .72rem; color: var(--ink-soft); text-decoration: none; margin-top: .35rem; }

/* ---------- 포스터 표지 (지류 포스터를 모바일에 맞게) ---------- */
.poster { position: relative; background: #fff url("/assets/issue04/poster-bg.webp") center top / cover no-repeat; border-bottom: 2px solid var(--ink); }
.poster-in { max-width: 38rem; margin: 0 auto; padding: 1.1rem 1.25rem 1.5rem; min-height: calc(100svh - 3.3rem); display: flex; flex-direction: column; }
.pt-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .68rem; color: #5a67d0; font-weight: 500; letter-spacing: -.01em; }
.pt-h { font-family: "Nanum Myeongjo", serif; font-weight: 800; font-size: 2.15rem; line-height: 1.4; letter-spacing: -.03em; margin: 3.2rem 0 0; color: #111; word-break: keep-all; }
.pt-h em { font-style: normal; color: #8a95dc; }
.pt-body { margin-top: 1.6rem; max-width: 22rem; }
.pt-body p { font-size: .84rem; line-height: 1.75; margin: 0 0 .9rem; color: #1b1b1b; }
.pt-go { margin-top: auto; align-self: flex-end; display: flex; align-items: flex-end; gap: 1rem; background: #fff; padding: .8rem .95rem; text-decoration: none; color: #5a67d0; font-size: .78rem; line-height: 1.45; font-weight: 700; box-shadow: 0 2px 12px rgba(40,50,140,.12); }
.pt-go b { color: #111; white-space: nowrap; font-size: .8rem; }
@media (min-width: 700px) {
  .poster { background: var(--paper); border-bottom: none; padding: 2.5rem 1.25rem 0; }
  .poster-in { max-width: 36rem; min-height: 0; aspect-ratio: 3 / 4; padding: 1.6rem 2rem 1.8rem; background: #fff url("/assets/issue04/poster-bg.webp") center / cover no-repeat; border: 2px solid var(--ink); box-shadow: 6px 6px 0 0 var(--accent); }
  .pt-h { font-size: 2.6rem; margin-top: 3.4rem; }
  .pt-body p { font-size: .9rem; }
}
.toc-txt { scroll-margin-top: 4rem; }
.i4-hero .hero-sub { font-family: var(--fd); font-size: 1.15rem; line-height: 1.5; margin-top: .8rem; }

/* 03 흐름 그림의 실내/실외 표시 */
.flow-fig { position: relative; }
.flow-fig .side { position: absolute; top: .2rem; font-family: var(--fd); font-weight: 700; font-size: .8rem; letter-spacing: .1em; background: var(--ink); color: var(--paper); padding: .15rem .5rem; }
.flow-fig .side.l { left: 0; } .flow-fig .side.r { right: 0; }

.flow-fig .ff-pic { position: relative; }
.flow-fig .side { top: -.2rem; z-index: 2; }
.pin { position: absolute; transform: translate(-50%,-50%); width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-style: normal; font-family: var(--fd); font-weight: 700; font-size: .78rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pin.core { background: var(--accent); }
.pin-list { list-style: none; counter-reset: p; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; }
.pin-list li { counter-increment: p; display: flex; gap: .5rem; font-size: .8rem; line-height: 1.5; align-items: flex-start; }
.pin-list li::before { content: counter(p); flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--fd); font-weight: 700; font-size: .7rem; display: flex; align-items: center; justify-content: center; margin-top: .05rem; }
.pin-list li.core { grid-column: 1 / -1; }
.pin-list li.core::before { background: var(--accent); }
@media (max-width: 460px) { .pin-list { grid-template-columns: 1fr; } .pin { width: 1.3rem; height: 1.3rem; font-size: .7rem; } }
