/* 명작 정보 (/info) — 레이아웃은 유앤아이 시술정보, 색·톤은 명작 */
:root {
    --info-ink: #312a28;
    --info-sub: #7a6f6a;
    --info-mute: #a39893;
    --info-line: #ebe5e1;
    --info-point: #957064;
    --info-dark: #4a3c37;
    --info-soft: #FBF8F6;
    --info-chip: #F4EEEA;
}

/* ───────── 목록 ───────── */
.info_list_wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    color: var(--info-ink);
}
.info_toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.info_search input {
    width: 280px;
    height: 44px;
    padding: 0 18px 0 44px;
    border: 1px solid #e3d9d4;
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23a39893' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px center no-repeat;
    font-size: 15px;
}
.info_search input:focus { outline: none; border-color: var(--info-point); }
.info_count { color: var(--info-sub); font-size: 14px; }
.info_count b { color: var(--info-point); }

.info_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.info_card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--info-line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    color: inherit;
    transition: transform .25s, box-shadow .25s;
}
.info_card[hidden] { display: none; }
.info_card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(74, 60, 55, .1); }
.info_thumb {
    position: relative;
    aspect-ratio: 4 / 3; /* 목록 카드: 유앤아이와 동일 */
    background: #F4F1EE;
    overflow: hidden;
}
.info_thumb img { width: 100%; height: 100%; object-fit: cover; }
.info_noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #c9bbb4;
}
.info_card_body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 20px; }
.info_card_tit {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.info_card:hover .info_card_tit { color: var(--info-point); }
.info_card_sum {
    margin-top: 10px;
    color: var(--info-sub);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.info_card_meta { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; font-size: 13px; color: var(--info-mute); }
.info_empty { padding: 80px 0; text-align: center; color: var(--info-mute); line-height: 1.8; }

.info_paging { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.info_paging a,
.info_paging span {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--info-sub);
    font-size: 15px;
}
.info_paging a:hover { background: var(--info-chip); }
.info_paging a.on { background: var(--info-dark); color: #fff; }
.info_paging span[aria-disabled] { color: #ddd3ce; }

/* ───────── 상세 ─────────
   수치(간격·크기·줄간격)는 유앤아이 시술정보 상세(uni-guide-web app/[slug]/detail.module.css, Faq.module.css)와 동일.
   색만 명작 톤으로 치환: brand #0ebfc8 → --info-point, mint → --info-chip, line → --info-line */
.info_preview_bar {
    padding: 12px 20px;
    background: #fff4e5;
    color: #a0622d;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* 브레드크럼 */
.info_crumb_wrap { border-bottom: 1px solid var(--info-line); }
.info_crumb {
    max-width: 820px;
    margin: 0 auto;
    padding: 14px 24px;
    font-size: 13px;
    color: var(--info-mute);
}
.info_crumb a:hover { color: var(--info-point); }
.info_crumb .sep { margin: 0 8px; color: #d9cfca; }
.info_crumb .cur { color: var(--info-point); font-weight: 600; }

/* 아티클 */
.info_article {
    max-width: 820px;
    margin: 0 auto;
    padding: 44px 24px 20px;
    color: var(--info-ink);
    line-height: 1.75;
    letter-spacing: -0.01em;
}
.info_topline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--info-mute);
}
.info_h1 {
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--info-line);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
/* 작성·감수자 (자주 묻는 질문 아래·해시태그 위, 오른쪽 정렬) — 유앤아이 시술정보와 같은 위치 */
.info_author {
    margin: 0;
    text-align: right;
    font-size: 14.5px;
    font-weight: 500;
    color: #6b5d58;
}
.info_author::before { content: "· "; }
.info_author a { color: inherit; text-decoration: none; }
.info_author a::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform .2s; } /* 의료진 소개로 이동 표시 */
.info_author a:hover { text-decoration: underline; text-underline-offset: 3px; }
.info_author a:hover::after { transform: translateX(3px); }

/* 대표 이미지 */
.info_hero { margin: 28px 0 44px; }
.info_hero_img { display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.info_hero_img img { width: 100%; height: 100%; object-fit: contain; }
.info_hero figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--info-mute); text-align: center; word-break: keep-all; }

/* 목차 */
.info_toc {
    margin: 30px 0;
    padding: 22px 24px;
    border: 1px solid var(--info-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .06);
}
.info_toc_tit { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.info_toc_tit span { width: 4px; height: 16px; border-radius: 2px; background: var(--info-point); }
.info_toc ol { list-style: none; counter-reset: toc; }
.info_toc li {
    counter-increment: toc;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #f1ebe8;
    font-size: 15px;
    color: #5b4f4a;
}
.info_toc li:last-child { border-bottom: none; }
.info_toc li::before {
    content: counter(toc);
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--info-chip);
    color: var(--info-point);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.info_toc a:hover { color: var(--info-point); font-weight: 600; }

/* 본문 */
.info_content {
    font-size: 16.5px;
    color: #3d3431;
    overflow-wrap: break-word;
    word-break: break-word;
}
.info_content p { margin: 0 0 18px; }
.info_content ul, .info_content ol { margin: 0 0 18px; padding-left: 1.5em; }
.info_content ul { list-style: disc; }
.info_content ol { list-style: decimal; }
.info_content li { margin: 6px 0; }
.info_content strong, .info_content b { font-weight: 700; }
.info_content a { color: var(--info-point); text-decoration: underline; }
.info_content blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border: 1px solid #ecdfd9;
    border-radius: 12px;
    background: var(--info-chip);
    font-size: 15px;
}
.info_content img, .info_content iframe, .info_content video { max-width: 100%; }
.info_content img { margin: 22px 0; border-radius: 12px; height: auto !important; }
.info_content figure { margin: 28px auto 44px; max-width: 100%; text-align: center; }
.info_content figure img { max-width: 100%; height: auto; }
.info_content figure figcaption { margin-top: 24px; font-size: 13px; line-height: 1.5; color: var(--info-mute); text-align: center; }
.info_content::after { content: ""; display: block; clear: both; }
/* 본문 소제목(에디터 '소제목' = h4) */
.info_content h4 { margin: 32px 0 14px; font-size: 17px; font-weight: 700; color: var(--info-ink); line-height: 1.5; }
/* 유튜브 등 동영상: 에디터 반응형 래퍼(padding-bottom) 유지, 정리 과정에서 빠진 iframe 위치 복원 */
.info_content div[style*="padding-bottom"] { position: relative; margin: 22px 0; border-radius: 12px; overflow: hidden; }
.info_content div[style*="padding-bottom"] > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info_content iframe { max-width: 100%; }
.info_content hr { margin: 32px 0; border: 0; border-top: 1px solid var(--info-line); }

/* 표: 래퍼(가로 스크롤) 22px, 셀 가운데 정렬, 제목 행 배경 */
.info_table_scroll { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.info_content table { width: 100% !important; margin: 22px 0; border-collapse: collapse; table-layout: auto; font-size: 15px; }
.info_table_scroll > table { margin: 0; }
.info_content th,
.info_content td {
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #e6dcd6;
    text-align: center !important;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: break-word;
}
.info_content td:empty, .info_content th:empty { padding: 0; border: 0; width: 0 !important; min-width: 0 !important; }
.info_content th { font-weight: 700; color: var(--info-ink); }
.info_content thead th,
.info_content thead td,
.info_content table > tbody:first-child > tr:first-child > th,
.info_content table > tbody:first-child > tr:first-child > td { background: #f6f1ee; font-weight: 700; color: var(--info-ink); }

.info_h2 {
    margin: 76px 0 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--info-line);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--info-ink);
    scroll-margin-top: 100px;
}
.info_h3 {
    margin: 62px 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--info-point);
    scroll-margin-top: 100px;
}
.info_h3::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23957064'/%3E%3Cpath d='M6.8 12.3l3.1 3.1 7.3-7.2' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 섹션 하단 더보기 링크 */
.info_more {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 32px 0 8px;
    padding: 16px 20px;
    border: 1px solid var(--info-line);
    border-radius: 12px;
    background: #fbfbfb;
}
.info_more_tag {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 16px 7px 14px;
    background: var(--info-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}
/* 본문 문단 여백(.info_content p 18px)이 더보기 안 태그·링크에 적용되지 않게 */
.info_content .info_more p { margin: 0; }
.info_more_list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.info_more_list a { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; }
.info_more .arw { flex: 0 0 auto; color: var(--info-mute); font-size: 17px; font-weight: 700; }
.info_more_list a p {
    display: inline-block;
    margin: 0;
    padding: 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #3d3431;
    background: linear-gradient(transparent 60%, rgba(149, 112, 100, .25) 0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info_more_list a:hover p { color: var(--info-point); }
.info_more .ext { flex: 0 0 auto; color: var(--info-mute); font-size: 13px; }

/* FAQ */
.info_faq { margin: 48px 0; }
.info_sec_tit { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 20px; font-weight: 800; }
.info_faq_box { padding: 0 16px; border: 1px solid var(--info-line); border-radius: 14px; background: #fff; overflow: hidden; }
.info_faq_item { padding: 16px 0; }
.info_faq_item h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--info-ink); }
.info_faq_item h3 span,
.info_faq_a > span { margin-right: 8px; color: var(--info-point); font-weight: 800; }
.info_faq_a { display: flex; color: #5b4f4a; font-size: 14px; }
.info_faq_a > div > :first-child { margin-top: 0; }
.info_faq_a > div > :last-child { margin-bottom: 0; }
.info_faq_a p { margin: 0; }

/* ───────── 하단 (태그·상담 안내·관련 글·이전/다음·목록) ─────────
   유앤아이와 차별화: 명작 크림·갈색 톤과 얇은 선, 한글 라벨 */
/* 태그: 테두리 없는 텍스트형 */
.info_tags { margin: 44px 0 36px; padding-top: 22px; border-top: 1px solid var(--info-line); }
.info_tags ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.info_tags li { font-size: 14px; color: #6b5d58; line-height: 1.6; }

/* 상담 안내: 크림 바탕 + 왼쪽 세로선 */
.info_cta {
    position: relative;
    margin: 0 0 56px;
    padding: 30px 36px 32px 40px;
    border-radius: 4px;
    background: #F6F1EC;
}
.info_cta::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 32px; width: 3px; background: var(--info-point); }
.info_cta_in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.info_cta h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.45; color: var(--info-ink); letter-spacing: -0.02em; }
.info_cta p { margin: 0; font-size: 15px; color: var(--info-sub); }
.info_cta_btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 15px 26px 15px 28px;
    background: var(--info-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    transition: background .2s;
}
.info_cta_btn span { font-size: 18px; transition: transform .2s; }
.info_cta_btn:hover { background: var(--info-point); color: #fff; }
.info_cta_btn:hover span { transform: translateX(4px); }

/* 관련 글: 테두리 없는 카드 (사진 위, 날짜·제목 아래) */
.info_related { margin: 0 0 52px; }
.info_related_tit { margin: 0 0 20px; font-size: 20px; font-weight: 700; color: var(--info-ink); letter-spacing: -0.02em; }
.info_related_cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
.info_related_cards a { display: flex; flex-direction: column; color: inherit; }
.info_related_cards .thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #F4F1EE; }
.info_related_cards .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.info_related_cards .thumb .info_noimg { font-size: 15px; }
.info_related_cards time { margin-top: 14px; font-size: 13px; color: var(--info-mute); line-height: 1.4; }
.info_related_cards .tit {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--info-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.info_related_cards .more { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--info-point); }
.info_related_cards .more::after { content: " →"; transition: margin .2s; }
.info_related_cards a:hover .thumb img { transform: scale(1.06); }
.info_related_cards a:hover .tit { color: var(--info-point); }
.info_related_cards a:hover .more::after { margin-left: 4px; }

/* 이전/다음: 선으로 나눈 좌우 배치 */
.info_postnav { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 40px; border-top: 1px solid var(--info-line); border-bottom: 1px solid var(--info-line); }
.info_postnav > * { min-width: 0; padding: 20px 4px; color: inherit; }
.info_postnav > * + * { border-left: 1px solid var(--info-line); padding-left: 24px; }
.info_postnav .next { text-align: right; padding-right: 4px; }
.info_postnav .dir { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--info-point); }
.info_postnav .prev .dir::before { content: "← "; }
.info_postnav .next .dir::after { content: " →"; }
.info_postnav p { margin: 0; font-size: 15px; font-weight: 600; color: var(--info-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info_postnav a:hover p { color: var(--info-point); }
.info_postnav .empty p { color: #c0b4ae; font-weight: 400; }
.info_postnav .empty .dir { color: #d5cac5; }

/* 목록 버튼: 얇은 테두리 + 목록 아이콘 */
.info_tolist {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 60px;
    padding: 13px 34px;
    border: 1px solid var(--info-ink);
    color: var(--info-ink);
    font-size: 15px;
    font-weight: 600;
    transition: background .2s, color .2s;
}
.info_tolist .ico { width: 14px; height: 12px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.info_tolist:hover { background: var(--info-ink); color: #fff; }

/* ───────── 반응형 ───────── */
@media (max-width: 1024px) {
    .info_grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .info_article { padding: 36px 24px 20px; }
    .info_cta { padding: 26px 26px 28px 32px; }
}
@media (max-width: 768px) {
    .info_list_wrap { padding: 28px 20px 48px; }
    .info_toolbar { flex-direction: column-reverse; align-items: stretch; }
    .info_search input { width: 100%; }
    .info_grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .info_crumb { padding: 14px 20px; }
    .info_article { padding: 28px 20px 16px; }
    .info_h1 { font-size: 24px; }
    .info_content img { float: none !important; max-width: 100% !important; margin: 16px 0 !important; display: block; }
    .info_content figure { margin-bottom: 52px; }
    .info_content figure figcaption { margin-top: 28px; }
    .info_cta { padding: 24px 20px 24px 26px; }
    .info_cta::before { top: 24px; bottom: 24px; }
    .info_cta h2 { font-size: 19px; }
    .info_cta_btn { width: 100%; justify-content: center; }
    /* 모바일: 한 줄에 하나, 사진 왼쪽 + 날짜·제목·자세히 보기 오른쪽 */
    .info_related_cards { grid-template-columns: 1fr; gap: 0; }
    .info_related_cards li + li { border-top: 1px solid var(--info-line); }
    .info_related_cards a { display: grid; grid-template-columns: 116px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; padding: 14px 0; }
    .info_related_cards .thumb { grid-row: 1 / 4; align-self: start; }
    .info_related_cards .thumb .info_noimg { font-size: 12px; }
    .info_related_cards time { margin-top: 0; }
    .info_related_cards .tit { margin-top: 4px; font-size: 15px; }
    .info_related_cards .more { margin-top: 6px; align-self: end; }
    .info_postnav { grid-template-columns: 1fr; }
    .info_postnav > * + * { border-left: 0; border-top: 1px solid var(--info-line); padding-left: 4px; }
    .info_postnav .next { text-align: left; }
}

/* 에디터 '스타일' (subadm/mp_editor.js) */
.info_content .mp-box { margin: 18px 0; padding: 16px 20px; background: #f6f1ee; border-left: 4px solid #9b7a6c; border-radius: 4px; }
.info_content .mp-note { font-size: .9em; color: #777; }
.info_content .mp-em { color: #c0522f; font-weight: 700; }
/* 에디터 '페이지 나누기' — 서버 보안 필터가 style 을 지우므로 CSS 로 (인쇄 시 다음 쪽) */
.info_content .page-break { page-break-after: always; break-after: page; height: 0; overflow: hidden; }
