@charset "UTF-8";

/* ============================================================
   달다방 콘텐츠 SEO — 페이지 스타일시트
   맘큐 PSEO 디자인 시스템 포팅 + 달다방 스킨

   모든 셀렉터는 .ddb-article 아래로 스코프돼 있다.
   달다방 CMS(community_editor_view)에 본문 조각으로 주입해도
   호스트 페이지의 스타일을 오염시키지 않기 위함이다.
   색상/타이포 토큰도 :root가 아니라 .ddb-article에 얹는다.
   ============================================================ */

.ddb-article {
    /* 브랜드 (달다방 www.ykdaldabang.com 기준) */
    --color-main: #08B9BE;
    --color-main-deep: #05989C;
    --color-main-bright: #2DD4D9;
    --color-main-tint: #EAFAFB;
    --color-main-tint-strong: #D3F4F5;

    /* 주의·전문가 상담 안내. 여성 건강 콘텐츠라 경고 빨강 대신 차분한 앰버를 쓴다. */
    --color-caution: #A9700B;
    --color-caution-tint: #FCF6EA;

    /* 텍스트 */
    --color-text-dark: #121212;
    --color-text-default: #3A3A3A;
    --color-text-muted: #8A8A8A;

    /* 면·선 */
    --color-border: #E8E8E8;
    --color-border-strong: #D5D5D5;
    --color-bg-white: #FFFFFF;
    --color-bg-label: #F4F4F4;
    --color-bg-soft: #F7F7F7;

    /* 타이포 */
    /* 호스트 사이트 실측값과 동일 순서 (body = Pretendard, "SUIT Variable", sans-serif) */
    --font-base: "Pretendard", "SUIT Variable", -apple-system,
                 BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;

    /* 리듬 */
    --gap-block: 30px;
    --radius-card: 12px;
    --radius-image: 16px;
}

.ddb-article,
.ddb-article *,
.ddb-article *::before,
.ddb-article *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ddb-article {
    font-family: var(--font-base);
    background-color: var(--color-bg-white);
    color: var(--color-text-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 주입 시 호스트 CMS의 인라인 스타일 상속을 끊는다 */
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.ddb-article img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.ddb-article a {
    text-decoration: none;
    color: inherit;
}

.ddb-article button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 본문에는 에디터 볼드를 반영하지 않는다 (renderer의 RENDER_EDITOR_BOLD).
   굵기는 제목·콜아웃 제목·라벨 태그·표 머리 등 구조 요소에만 쓴다.
   정책을 되돌릴 경우에 대비해 규칙만 남겨둔다. */
.ddb-article strong {
    font-weight: 700;
    color: var(--color-text-dark);
}

/* ---------- 레이아웃 ---------- */
/* 맘큐는 360px 고정. 좁은 기기 가로 스크롤을 막기 위해 유동 + max-width로 완화 */
.ddb-article {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* 임베드 모드: 호스트 CMS 컨테이너가 이미 폭을 잡고 있을 때 */
.ddb-article--embed {
    max-width: none;
}

.ddb-article .main-content {
    display: flex;
    flex-direction: column;
}

/* ---------- 제목 ---------- */
.ddb-article .title-section {
    padding: 12px 16px 0;
}

.ddb-article .title-box {
    border-bottom: 1px solid var(--color-border);
    padding: 0 4px 12px;
}

.ddb-article .title-box .visual-h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-dark);
    letter-spacing: -0.4px;
}

/* ---------- 히어로 이미지 ---------- */
.ddb-article .hero-image-section {
    padding: 16px 16px 0;
}

.ddb-article .hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-image);
}

/* ---------- 본문 영역 ---------- */
.ddb-article .content-area {
    display: flex;
    flex-direction: column;
    gap: var(--gap-block);
    padding: 20px 20px 0;
}

/* ---------- 도입부 ---------- */
/* content-area의 30px gap은 섹션 사이 간격이다.
   도입 문단끼리는 본문과 같은 15px로 묶는다. */
.ddb-article .lede {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ---------- 세 줄 요약 ---------- */
.ddb-article .summary-card {
    background-color: var(--color-main-tint);
    border-radius: var(--radius-card);
    padding: 16px;
}

.ddb-article .summary-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-main-deep);
    letter-spacing: -0.28px;
    margin-bottom: 10px;
}

.ddb-article .summary-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.ddb-article .summary-card__list li {
    position: relative;
    padding-left: 14px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.28px;
    color: var(--color-text-default);
}

.ddb-article .summary-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-main);
}

/* ---------- 섹션 위계 ---------- */
.ddb-article .section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 위 여백 3단계 — 대제목 44 > 중제목·CTA 28 > 일반 블록 15.
   content-area gap(30) / section gap(15)에 margin이 더해진 값이다.
   모바일이라 절대값을 키우기보다 단계 차이를 벌리는 쪽으로 잡았다. */
.ddb-article .section {
    margin-top: 14px;
}

.ddb-article .content-area > .section:first-child {
    margin-top: 0;
}

/* 마커(◆, ▍)는 여백으로 내보내고 제목 텍스트는 본문과 같은 좌단에 맞춘다.
   플렉스로 흘려보내면 마커 폭만큼 제목이 안으로 밀려 본문보다 들여쓰기가 깊어진다. */
.ddb-article .section-heading {
    position: relative;
}

.ddb-article .heading-diamond {
    position: absolute;
    left: -15px;
    top: 0.45em;
    font-size: 10px;
    line-height: 1;
}

.ddb-article .heading-diamond {
    color: var(--color-main);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* 제목 줄바꿈
   keep-all  — 한글을 어절 단위로만 끊는다 ('오버나이/트·라이너' 방지)
   pretty    — 첫 줄을 꽉 채우되 마지막 줄 고아만 막는다.
                balance는 줄 길이를 '고르게' 맞추느라 첫 줄을 일부러 짧게 끊는다.
   break-word— keep-all이 감당 못 하는 초장문 어절용 안전망 */
.ddb-article .title-box .visual-h1,
.ddb-article .section-heading h2,
.ddb-article .subsection-heading h3 {
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.ddb-article .section-heading h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: -0.36px;
    line-height: 1.4;
}

.ddb-article .subsection-heading {
    position: relative;
    margin-top: 13px;
}

/* 대제목 바로 다음 중제목은 한 덩어리로 붙인다 */
.ddb-article .section-heading + .subsection-heading {
    margin-top: 0;
}

/* 2줄 이상으로 넘어가도 바가 제목 높이만큼 늘어난다 */
.ddb-article .subsection-heading::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 3px;
    bottom: 3px;
    width: 3px;
    border-radius: 2px;
    background-color: var(--color-main);
}

.ddb-article .subsection-heading h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: -0.32px;
    line-height: 1.4;
}

/* ---------- 문단 ---------- */
.ddb-article .text-content {
    overflow-wrap: break-word;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.6;
    letter-spacing: -0.28px;
}

/* ---------- 불릿 ---------- */
.ddb-article .plain-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
}

.ddb-article .plain-list li {
    position: relative;
    padding-left: 12px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.28px;
}

.ddb-article .plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-border-strong);
}

/* ---------- 비교표 ---------- */
/* 328px 안에 3열까지 읽을 만하게 들어간다. 스크롤은 예외 상황 안전망으로만 둔다. */
.ddb-article .data-table-wrap {
    width: calc(100% + 8px);
    margin: 0 -4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1.5px solid var(--color-text-dark);
}

.ddb-article .data-table {
    width: 100%;
    border-collapse: collapse;
    /* auto 레이아웃: 라벨 길이에 맞춰 첫 열이 스스로 넓어진다 */
    table-layout: auto;
}

.ddb-article .data-table th,
.ddb-article .data-table td {
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: -0.26px;
    padding: 10px 7px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    vertical-align: middle;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 열 머리 */
.ddb-article .data-table thead th {
    background-color: var(--color-main-tint);
    font-weight: 700;
    color: var(--color-main-deep);
}

/* 행 머리 (첫 열 = 항목명) */
.ddb-article .data-table tbody th {
    background-color: var(--color-bg-soft);
    font-weight: 700;
    color: var(--color-text-dark);
}

.ddb-article .data-table td {
    color: var(--color-text-default);
}

/* 첫 열은 항목명이므로 과하게 넓어지지 않게만 제한 */
.ddb-article .data-table th:first-child,
.ddb-article .data-table td:first-child {
    max-width: 108px;
}

/* ---------- 콜아웃 (라벨형 리스트) ---------- */
/* variant는 아이콘/악센트만 바꾸고 카드 구조는 하나로 통일 */
.ddb-article .callout {
    background-color: var(--color-bg-soft);
    border-radius: var(--radius-card);
    padding: 16px;
}

.ddb-article .callout--plain {
    background-color: transparent;
    padding: 0;
}

/* 박스 안 3단 위계
     1) 제목      — 브랜드 컬러 + 15px. 박스에서 유일하게 색을 쓰는 요소
     2) 라벨 태그 — 12.5px 칩. 크기와 형태로 구분
     3) 본문      — 14px 기본. 강조는 굵기로만
   variant는 이모지 없이 배경색으로만 구분한다. */
.ddb-article .callout__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-main-deep);
    letter-spacing: -0.3px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.ddb-article .callout--checklist {
    background-color: var(--color-main-tint);
}

.ddb-article .callout--recommend {
    background-color: var(--color-bg-soft);
}

.ddb-article .callout--wrapup {
    background-color: var(--color-main-tint-strong);
}

.ddb-article .callout--caution {
    background-color: var(--color-caution-tint);
}

.ddb-article .callout--caution .callout__title {
    color: var(--color-caution);
}

.ddb-article .callout__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ddb-article .callout__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ddb-article .label-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-default);
    letter-spacing: -0.25px;
    line-height: 1.4;
}

.ddb-article .callout--plain .label-tag {
    background-color: var(--color-bg-label);
    border-color: transparent;
}

.ddb-article .callout__text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.55;
    letter-spacing: -0.28px;
}

/* ---------- 주석 (※ 측정 기준·면책) ---------- */
.ddb-article .note-text {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--color-text-muted);
    letter-spacing: -0.23px;
}

/* ---------- 본문 이미지 ---------- */
.ddb-article .figure {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ddb-article .figure img {
    width: 100%;
    border-radius: var(--radius-image);
}

/* 출처 캡션은 현재 렌더하지 않는다 (renderer의 RENDER_IMAGE_CREDIT).
   정책을 되돌릴 경우에 대비해 규칙만 남겨둔다. */
.ddb-article .figure figcaption {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: -0.22px;
    text-align: right;
}

/* ---------- CTA ---------- */
.ddb-article .cta-section {
    margin-top: 13px;
}

.ddb-article .cta-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    background-color: var(--color-main);
    border-radius: 10px;
    padding: 14px 16px;
}

.ddb-article .cta-button span {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.28px;
    line-height: 1.4;
}

.ddb-article .cta-arrow {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

/* ---------- FAQ ---------- */
.ddb-article .faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
}

.ddb-article .faq-item {
    border-bottom: 1px solid var(--color-border);
}

.ddb-article .faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 2px;
    text-align: left;
}

.ddb-article .faq-question-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: -0.28px;
    line-height: 1.45;
    padding-left: 1.3em;
    text-indent: -1.3em;
}

.ddb-article .faq-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    position: relative;
    transition: transform 0.2s ease;
}

.ddb-article .faq-arrow::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-right: 1.6px solid var(--color-main);
    border-bottom: 1.6px solid var(--color-main);
    transform: rotate(45deg);
}

.ddb-article .faq-item--open .faq-arrow {
    transform: rotate(180deg);
}

.ddb-article .faq-answer {
    display: none;
    background-color: var(--color-bg-soft);
    border-radius: 8px;
    padding: 12px;
    margin: 0 0 14px;
}

.ddb-article .faq-item--open .faq-answer {
    display: block;
}

.ddb-article .faq-answer p {
    font-size: 14px;
    color: var(--color-text-default);
    line-height: 1.55;
    letter-spacing: -0.28px;
}

/* ---------- 글 말미 브랜드 소개 ---------- */
/* 고객사 요청으로 청록 박스 안에 넣는다. 콜아웃과 같은 톤을 쓰되
   본문 콜아웃이 아니라 글 바깥의 안내이므로 글자를 한 단계 낮춘다. */
.ddb-article .brand-note {
    margin-top: 32px;
    background-color: var(--color-main-tint);
    border-radius: var(--radius-card);
    padding: 18px;
}

.ddb-article .brand-note__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-main-deep);
    letter-spacing: -0.28px;
    line-height: 1.45;
    margin-bottom: 11px;
}

.ddb-article .brand-note__text {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.6;
    letter-spacing: -0.26px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.ddb-article .brand-note__text + .brand-note__text {
    margin-top: 9px;
}

.ddb-article .brand-note__text a {
    color: var(--color-main-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- 푸터 ---------- */
.ddb-article .page-footer {
    padding: 28px 20px 32px;
}

.ddb-article .page-footer p {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.5;
    letter-spacing: -0.22px;
}