/* 산후풍 칼럼 — 한 이름 안의 세 갈래, 출산 뒤 일 년의 시점 띠. */
.pw-page {
  --pw-deep: #173f37;
  --pw-green: #247860;
  --pw-teal: #3c605a;
  --pw-soft-teal: #5a96a2;
  --pw-soft: #eef3f0;
  --pw-paper: #f8f8f6;
  --pw-warm: #e8e4e2;
  --pw-ink: #242824;
  --pw-muted: #555550;
  --pw-line: #d7dfdb;
  overflow: clip;
  background: #fff;
  color: var(--pw-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

.pw-page * { box-sizing: border-box; }

/* 머리말 */
.pw-header { max-width: 1080px; margin: auto; padding: 92px 28px 40px; text-align: center; }
.pw-header .column-breadcrumb { justify-content: center; margin-bottom: 26px; }
.pw-eyebrow { margin: 0 0 18px; color: var(--pw-green); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.pw-header h1 { max-width: 900px; margin: 0 auto; color: var(--pw-deep); font-size: clamp(1.9rem, 4.1vw, 3.4rem); font-weight: 650; line-height: 1.25; letter-spacing: -.055em; word-break: keep-all; }
.pw-sub { display: block; margin-top: .6rem; color: var(--pw-green); font-size: .56em; font-weight: 650; letter-spacing: -.04em; }
.pw-lead { max-width: 760px; margin: 26px auto 22px; color: var(--pw-muted); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.9; word-break: keep-all; }
.pw-byline { display: flex; justify-content: center; gap: 18px; color: #718078; font-size: .78rem; }
.pw-byline a { color: var(--pw-green); }

/* 첫 화면 — 한눈에 보는 답 */
.pw-answer { width: min(1000px, calc(100% - 56px)); margin: 0 auto 72px; padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: 28px; background: linear-gradient(135deg, var(--pw-deep) 0%, #1f5a4c 60%, var(--pw-green) 100%); color: #fff; }
.pw-answer__head small { color: #c9e7da; font-size: .66rem; font-weight: 800; letter-spacing: .18em; }
.pw-answer__head h2 { margin: .6rem 0 1.3rem; color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 680; letter-spacing: -.04em; }
.pw-answer__list { display: grid; gap: .6rem; margin: 0; }
.pw-answer__list div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 1.15rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: rgba(255, 255, 255, .08); }
.pw-answer__list dt { color: #c9e7da; font-size: .95rem; font-weight: 800; word-break: keep-all; }
.pw-answer__list dd { margin: 0; color: rgba(255, 255, 255, .92); font-size: 1.02rem; line-height: 1.75; word-break: keep-all; }
.pw-answer__list dd strong { color: #fff; }

/* 본문 배치 */
.pw-layout { display: grid; grid-template-columns: 190px minmax(0, 720px); gap: clamp(2rem, 5vw, 5rem); justify-content: center; max-width: 1120px; margin: 0 auto; padding: 0 28px 96px; }
.pw-toc { position: sticky; top: 108px; align-self: start; }
.pw-toc small { display: block; margin-bottom: 1rem; color: var(--pw-green); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.pw-toc ol { margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--pw-line); list-style: none; }
.pw-toc li + li { margin-top: .85rem; }
.pw-toc a { color: #6b746f; font-size: .8rem; line-height: 1.5; text-decoration: none; word-break: keep-all; }
.pw-toc a:hover { color: var(--pw-green); }

.pw-article { min-width: 0; }
/* style.css가 모든 section에 위아래 여백을 준다. 본문 절 사이 간격은 소제목 여백만으로 잡는다. */
.pw-article > section { padding: 0; }
.pw-article section[id] { scroll-margin-top: 110px; }
.pw-article h2 { margin: 3.6rem 0 1.3rem; color: var(--pw-deep); font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 680; line-height: 1.4; letter-spacing: -.045em; word-break: keep-all; }
.pw-article p { margin: 0 0 1.35rem; color: #3a403c; font-size: 1.06rem; line-height: 2; word-break: keep-all; }
.pw-article strong { color: var(--pw-deep); }
.pw-article a { color: var(--pw-green); text-underline-offset: 3px; }
.pw-article sup { margin-left: 1px; font-size: .68em; line-height: 0; }
.pw-article sup a { text-decoration: none; font-weight: 700; }

.pw-quote { margin: 2rem 0 !important; padding: 1.5rem 1.8rem; border-left: 3px solid var(--pw-green); background: var(--pw-soft); color: var(--pw-deep) !important; font-size: clamp(1.2rem, 2.3vw, 1.5rem) !important; font-weight: 650; line-height: 1.6 !important; letter-spacing: -.03em; }
.pw-cite { margin: 1.8rem 0 !important; padding: 1.2rem 1.4rem; border-radius: 14px; background: var(--pw-paper); box-shadow: inset 0 0 0 1px var(--pw-line); color: var(--pw-teal) !important; font-size: .98rem !important; line-height: 1.85 !important; }
.pw-cite small { display: block; margin-top: .5rem; color: #6b746f; font-size: .76rem; }

/* 도판 공통 */
.pw-figure { margin: 2.6rem 0; padding: clamp(1.4rem, 3.5vw, 2.2rem); border: 1px solid var(--pw-line); border-radius: 20px; background: var(--pw-paper); }
.pw-figure figcaption { margin-bottom: 1.5rem; }
.pw-figure figcaption span { display: block; margin-bottom: .45rem; color: var(--pw-green); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.pw-figure figcaption strong { display: block; color: var(--pw-deep); font-size: 1.15rem; line-height: 1.45; letter-spacing: -.03em; word-break: keep-all; }
.pw-figure > small { display: block; margin-top: 1.2rem; color: #6b746f; font-size: .76rem; line-height: 1.7; word-break: keep-all; }

/* 도판 1 — 한 이름 안의 세 갈래 */
.pw-branches { position: relative; margin: 0; padding: 0; list-style: none; }
.pw-branches__root { display: block; width: fit-content; margin: 0 auto 1.6rem; padding: .7rem 1.4rem; border-radius: 999px; background: var(--pw-deep); color: #fff; font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.pw-branches ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.pw-branches li { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.1rem; border: 1px solid var(--pw-line); border-radius: 16px; background: #fff; }
.pw-branches li::before { content: ""; position: absolute; top: -1.6rem; left: 50%; width: 1px; height: 1.6rem; background: var(--pw-line); }
.pw-branches li b { color: var(--pw-green); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.pw-branches li strong { color: var(--pw-deep); font-size: 1.05rem; line-height: 1.45; word-break: keep-all; }
.pw-branches li span { color: #4d5550; font-size: .9rem; line-height: 1.7; word-break: keep-all; }
.pw-branches li em { margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--pw-line); color: var(--pw-teal); font-size: .84rem; font-style: normal; font-weight: 650; line-height: 1.6; word-break: keep-all; }

/* 도판 2 — 출산 뒤 일 년의 시점 띠 */
.pw-timeline { position: relative; margin: 0; padding: .4rem 0 0; list-style: none; }
.pw-timeline__axis { position: relative; height: 10px; margin: 0 .6rem 1.4rem; border-radius: 999px; background: linear-gradient(90deg, #cfe3da 0%, #cfe3da 50%, var(--pw-warm) 50%, var(--pw-warm) 100%); }
.pw-timeline__axis i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid #fff; border-radius: 50%; background: var(--pw-green); box-shadow: 0 0 0 1px var(--pw-green); }
.pw-timeline__axis i.is-line { width: 2px; height: 26px; margin: -13px 0 0 -1px; border: 0; border-radius: 0; background: var(--pw-deep); box-shadow: none; }
.pw-timeline__scale { display: flex; justify-content: space-between; margin: -0.9rem .2rem 1.4rem; color: #6b746f; font-size: .72rem; font-weight: 700; }
.pw-timeline ol { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.pw-timeline li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .9rem; align-items: baseline; padding: .95rem 1.05rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--pw-line); }
.pw-timeline li b { color: var(--pw-green); font-size: .86rem; font-weight: 800; }
.pw-timeline li span { color: #3a403c; font-size: .92rem; line-height: 1.7; word-break: keep-all; }
.pw-timeline li.is-line { box-shadow: inset 0 0 0 1px var(--pw-deep); }
.pw-timeline li.is-line b { color: var(--pw-deep); }

/* FAQ */
.pw-faq { margin-top: 3.6rem; }
.pw-faq details { border-top: 1px solid var(--pw-line); }
.pw-faq details:last-child { border-bottom: 1px solid var(--pw-line); }
.pw-faq summary { position: relative; padding: 1.2rem 2.2rem 1.2rem 0; color: var(--pw-deep); font-size: 1rem; font-weight: 680; line-height: 1.55; cursor: pointer; list-style: none; word-break: keep-all; }
.pw-faq summary::-webkit-details-marker { display: none; }
.pw-faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1.05rem; color: var(--pw-green); font-size: 1.3rem; font-weight: 400; }
.pw-faq details[open] summary::after { content: "−"; }
.pw-faq details p { margin: 0 0 1.3rem; font-size: .96rem; }

/* 참고 자료 */
.pw-refs { margin-top: 3.4rem; }
.pw-refs h2 { font-size: 1.2rem !important; }
.pw-refs ol { margin: 0; padding-left: 1.2rem; }
.pw-refs li { margin-bottom: .7rem; color: #555550; font-size: .84rem; line-height: 1.7; word-break: break-word; }

@media (max-width: 900px) {
  .pw-layout { grid-template-columns: 1fr; padding-inline: 20px; }
  .pw-toc { position: static; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--pw-paper); }
  .pw-toc ol { border-left: 0; padding-left: 0; }
}

/* 휴대폰 — 기본 규칙보다 뒤에 두어야 덮이지 않는다 */
@media (max-width: 600px) {
  .pw-header { padding: 64px 20px 28px; }
  .pw-answer { width: calc(100% - 24px); margin-bottom: 48px; padding: 1.5rem 1.2rem; border-radius: 22px; }
  .pw-answer__list div { grid-template-columns: 1fr; gap: .3rem; }
  .pw-branches ol { grid-template-columns: 1fr; }
  .pw-branches li::before { display: none; }
  .pw-timeline li { grid-template-columns: 1fr; gap: .2rem; }
}

/* 도판 — 지침 진단 흐름 */
.pw-flow { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.pw-flow__q { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--pw-line); }
.pw-flow__q i { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--pw-soft); color: var(--pw-green); font-size: .78rem; font-style: normal; font-weight: 800; }
.pw-flow__q span { color: #3a403c; font-size: .94rem; line-height: 1.6; word-break: keep-all; }
.pw-flow__q span b { color: var(--pw-deep); }
.pw-flow__arrow { justify-self: center; color: var(--pw-soft-teal); font-size: 1.1rem; line-height: 1; }
.pw-flow__dx { justify-self: center; padding: .7rem 1.4rem; border-radius: 999px; background: var(--pw-deep); color: #fff; font-size: .95rem; font-weight: 750; }
.pw-flow__lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.pw-flow__lists div { padding: .95rem 1rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--pw-line); }
.pw-flow__lists b { display: block; margin-bottom: .45rem; color: var(--pw-green); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.pw-flow__lists p { margin: 0 !important; color: #3a403c !important; font-size: .88rem !important; line-height: 1.75 !important; word-break: keep-all; }

/* 도판 — 숫자 카드 */
.pw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pw-stats li { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.1rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--pw-line); }
.pw-stats strong { color: var(--pw-green); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 750; line-height: 1.1; letter-spacing: -.04em; }
.pw-stats strong small { margin-left: .15rem; font-size: .5em; font-weight: 700; }
.pw-stats span { color: #3a403c; font-size: .88rem; line-height: 1.65; word-break: keep-all; }
.pw-stats em { margin-top: auto; padding-top: .5rem; color: #6b746f; font-size: .74rem; font-style: normal; }

/* 도판 — 지침 환자 교육 */
.pw-edu { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: pwedu; }
.pw-edu li { position: relative; padding: .85rem 1rem .85rem 3rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--pw-line); color: #3a403c; font-size: .94rem; line-height: 1.65; word-break: keep-all; counter-increment: pwedu; }
.pw-edu li::before { content: counter(pwedu); position: absolute; left: 1rem; top: .85rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--pw-soft); color: var(--pw-green); font-size: .74rem; font-weight: 800; }
.pw-edu li.is-key { box-shadow: inset 0 0 0 1.5px var(--pw-green); color: var(--pw-deep); font-weight: 650; }

/* 도판 — 세 갈래 비교표 */
.pw-table-wrap { overflow-x: auto; }
.pw-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.pw-table th, .pw-table td { padding: .85rem .8rem; border-bottom: 1px solid var(--pw-line); line-height: 1.6; text-align: left; vertical-align: top; word-break: keep-all; }
.pw-table thead th { color: var(--pw-green); font-size: .74rem; font-weight: 800; letter-spacing: .06em; background: #fff; }
.pw-table thead th:first-child { border-top-left-radius: 12px; }
.pw-table thead th:last-child { border-top-right-radius: 12px; }
.pw-table tbody th { color: var(--pw-deep); font-weight: 750; white-space: nowrap; }
.pw-table td { color: #3a403c; background: rgba(255, 255, 255, .6); }

/* 본문 사이 사진 */
.pw-photo { margin: 2.2rem 0 2.4rem; }
.pw-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
.pw-photo figcaption { margin-top: .8rem; color: #6b746f; font-size: .84rem; line-height: 1.6; text-align: center; word-break: keep-all; }

@media (max-width: 600px) {
  .pw-flow__lists, .pw-stats { grid-template-columns: 1fr; }
}

/* 첫 장면의 커버 그림 — 정사각형 그대로, 가운데 */
.pw-photo--cover img { max-width: 520px; margin: 0 auto; aspect-ratio: 1 / 1; border-radius: 22px; }
.pw-photo--cover figcaption { max-width: 520px; margin-inline: auto; }
