@charset "UTF-8";
/*
 * 세계 명사 / 추천 독자 카드 (메인, 목록 페이지 공통)
 * - 크기: 디자인 단위 --u 의 배수, 수치는 스토리보드 값 × 1.4 (시안 기준 비율)
 * - --u 는 그리드 폭 / --ms-base (페이지별 기준 폭) 까지 원래 크기, 그보다 좁으면 비율 축소
 * - 화면 폭 900px 이하 세로 쌓임
 */
.ms_shelf { --ms-base: 904; --u: min(1px, calc((100vw - 40px) / var(--ms-base))); }
@supports (width: 1cqw) {
	.ms_shelf { --u: min(1px, calc(100cqw / var(--ms-base))); }
	.ms_shelf .inner { container-type: inline-size; }
}
.ms_shelf .blind { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }

.ms_shelf .ms_slide { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(38 * var(--u)); height: calc(450 * var(--u)); }

/* 표지 칸 - 표지 크기는 스크립트에서 맞춤 */
.ms_shelf .ms_cover_box { display: flex; align-items: center; justify-content: center; min-width: 0; padding: calc(30 * var(--u)); border-radius: calc(16 * var(--u)); }
.ms_shelf .ms_cover_box a { display: block; }
.ms_shelf .ms_cover { display: block; max-width: calc(252 * var(--u)); max-height: calc(364 * var(--u)); border-radius: calc(4 * var(--u)); box-shadow: calc(3 * var(--u)) calc(3 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.25); }

/* 글 영역 - 오른쪽 여백(--ms-pr), 명언·도서 정보 들여쓰기(--ms-in) */
/* 들여쓰기 - 따옴표 안쪽 점 가운데 */
.ms_shelf .ms_txt { --ms-pr: calc(30 * var(--u)); --ms-in: calc(20.5 * var(--u)); display: flex; flex-direction: column; min-width: 0; }
.ms_shelf .ms_quote { position: relative; flex: 1 1 0; display: flex; align-items: center; min-height: 0; padding: calc(30 * var(--u)) calc(var(--ms-pr) + var(--ms-in)) calc(30 * var(--u)) var(--ms-in); border-bottom: max(1px, calc(2.1 * var(--u))) solid #ebebeb; }
/* 따옴표 SVG (여는 따옴표는 180도 회전) */
.ms_shelf .ms_quote::before,
.ms_shelf .ms_quote::after { content: ""; position: absolute; width: calc(26 * var(--u)); height: calc(16.8 * var(--u)); background: url("/resources/img/ic_shelf_quote.svg") no-repeat center / contain; }
.ms_shelf .ms_quote::before { top: calc(22 * var(--u)); left: 0; transform: rotate(180deg); }
.ms_shelf .ms_quote::after { right: var(--ms-pr); bottom: calc(24 * var(--u)); }
/* 글자 단위 줄바꿈, 3줄 초과 말줄임 */
.ms_shelf .ms_quote p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: normal; font-size: calc(18.2 * var(--u)); line-height: 1.385; color: #8a689f; }
.ms_shelf .ms_book { padding: calc(18 * var(--u)) calc(var(--ms-pr) + var(--ms-in)) 0 var(--ms-in); }
.ms_shelf .ms_book a { display: block; }
.ms_shelf .ms_book_name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: calc(18.2 * var(--u)); font-weight: 500; line-height: 1.4; color: #000; }
/* 저자 | 출판사 - 구분선은 가운데 고정, 양쪽은 각자 말줄임 */
.ms_shelf .ms_book_info { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-width: 0; margin-top: calc(7 * var(--u)); font-size: calc(16.8 * var(--u)); font-weight: 500; color: #6f6f6f; }
.ms_shelf .mb_author,
.ms_shelf .mb_publisher { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms_shelf .ms_book_info > :only-child { grid-column: 1 / -1; }
.ms_shelf .mb_sep { margin: 0 .5em; font-style: normal; color: #d5d5d5; }
.ms_shelf .ms_book_date { margin-top: calc(12.6 * var(--u)); font-size: calc(12.6 * var(--u)); color: #878787; }
/* 보러가기 - 글자는 명언 끝선, 화살표는 오른쪽 여백 */
.ms_shelf .ms_go { position: relative; display: flex; align-items: center; gap: .25em; width: fit-content; margin: calc(22.4 * var(--u)) var(--ms-pr) 0 auto; padding-right: var(--ms-in); font-size: calc(18.2 * var(--u)); font-weight: 600; color: #a082b2; }
.ms_shelf .ms_go svg { position: absolute; top: 50%; right: 0; width: .92em; height: .77em; fill: none; stroke: currentColor; stroke-width: 1.5; transform: translateY(-50%); }

/* 세계 명사 카드 */
/* 추천 독자 카드와 표지 칸·따옴표 위치 맞춤 (독자 카드 안쪽 896, 표지 칸 416.2) */
.ms_shelf .ms_famous .ms_slide { grid-template-columns: minmax(0, 416.2fr) minmax(0, 442.8fr); gap: calc(37 * var(--u)); max-width: calc(896 * var(--u)); margin: 0 auto; }
.ms_shelf .ms_famous .ms_cover_box { background: #fcfaff; }
.ms_shelf .ms_famous .ms_txt { --ms-pr: calc(15 * var(--u)); padding: calc(13 * var(--u)) 0 calc(8 * var(--u)); }
.ms_shelf .ms_famous_name { overflow: hidden; padding-right: var(--ms-pr); white-space: nowrap; text-overflow: ellipsis; font-size: calc(33.6 * var(--u)); font-weight: 800; line-height: 1.3; color: #000; }
.ms_shelf .ms_famous_sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: calc(10 * var(--u)); padding: 0 var(--ms-pr) calc(10 * var(--u)) 0; border-bottom: max(1px, calc(2.1 * var(--u))) solid #ebebeb; font-size: calc(16.8 * var(--u)); color: #878787; }
.ms_shelf .ms_famous_en { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms_shelf .ms_badge { flex-shrink: 0; display: block; padding: .3em .8em; border-radius: 1em; background: #f6efff; font-size: calc(14 * var(--u)); font-weight: 600; color: #8a689f; }
.ms_shelf .ms_famous .ms_quote p { font-weight: 700; }

/* 추천 독자 카드 - 카드·표지 칸 배경색은 스크립트에서 적용 */
.ms_shelf .ms_reader_card { display: block; max-width: calc(990 * var(--u)); margin: 0 auto; padding: calc(50 * var(--u)) calc(47 * var(--u)); border-radius: calc(16 * var(--u)); background: #f6f6f6; transition: background-color .3s; }
.ms_shelf .ms_reader .ms_slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: calc(22 * var(--u)); }
.ms_shelf .ms_reader .ms_cover_box { background: #e3e3e3; transition: background-color .3s; }
.ms_shelf .ms_reader .ms_txt { --ms-pr: 0px; padding: calc(26 * var(--u)) calc(15 * var(--u)) calc(18 * var(--u)); border-radius: calc(16 * var(--u)); background: #fff; }
.ms_shelf .ms_reader_prof { display: flex; align-items: flex-start; gap: calc(15 * var(--u)); }
.ms_shelf .ms_prof { flex: 0 0 auto; width: calc(70 * var(--u)); height: calc(70 * var(--u)); border-radius: 50%; object-fit: cover; background: #e9e9e9; }
/* 아티클 제목 2줄 높이 고정 (추천 이유 영역 유지) */
.ms_shelf .ms_reader_who { min-width: 0; min-height: calc(85 * var(--u)); padding-top: calc(3 * var(--u)); }
.ms_shelf .ms_article_title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; font-size: calc(19.6 * var(--u)); font-weight: 600; line-height: 1.4; color: #000; }
.ms_shelf .ms_reader_name { overflow: hidden; margin-top: calc(7 * var(--u)); white-space: nowrap; text-overflow: ellipsis; font-size: calc(16.8 * var(--u)); color: #878787; }
/* 아티클 제목 오른쪽 끝 - 추천 이유 끝선 */
.ms_shelf .ms_reader .ms_reader_who { padding-right: var(--ms-in); }
/* 추천 이유 - 명언과 달리 회색 */
.ms_shelf .ms_reader .ms_quote p { font-weight: 500; color: #6f6f6f; }

/* 슬라이드 영역 - 좌우 버튼 그리드 양 끝 */
.ms_shelf .ms_stage { position: relative; padding: 0 calc(80 * var(--u)); }
.ms_shelf .ms_nav { position: absolute; top: 50%; z-index: 2; width: calc(68 * var(--u)); height: calc(68 * var(--u)); transform: translateY(-50%); border: 1px solid #e5e5e5; border-radius: 50%; background: #fff; cursor: pointer; }
.ms_shelf .ms_nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 24%; height: 24%; border-top: 1.5px solid #555; border-left: 1.5px solid #555; }
.ms_shelf .ms_nav.prev { left: 0; }
.ms_shelf .ms_nav.prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.ms_shelf .ms_nav.next { right: 0; }
.ms_shelf .ms_nav.next::before { transform: translate(-70%, -50%) rotate(135deg); }
.ms_shelf .ms_nav:disabled { opacity: .35; cursor: default; }
/* 전환 시 이전 내용 페이드아웃 */
.ms_shelf .ms_slide.ms_fade { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; animation: msFadeOut .3s ease-out forwards; }
@keyframes msFadeOut { to { opacity: 0; } }

/* 독자 사진 버튼 - 선택 시 보라 테두리 */
.ms_shelf .ms_pick_ls button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; }
.ms_shelf .ms_pick_ls img { display: block; width: max(56px, calc(90 * var(--u))); max-width: 100%; height: auto; aspect-ratio: 1; margin: 0 auto; border: max(3px, calc(4.2 * var(--u))) solid transparent; border-radius: 50%; object-fit: cover; background: #e9e9e9; }
.ms_shelf .ms_pick_ls .pick_name { display: block; overflow: hidden; margin-top: calc(8 * var(--u)); white-space: nowrap; text-overflow: ellipsis; font-size: max(13px, calc(18.2 * var(--u))); font-weight: 500; color: #000; }
.ms_shelf .ms_pick_ls .on img { border-color: #8a689f; }
.ms_shelf .ms_pick_ls .on .pick_name { font-weight: 700; color: #8a689f; }

/* 세로 쌓임 - 표지 칸 높이는 폭 비례(--ms-cover-h) */
@media (max-width: 900px) {
	.ms_shelf { --u: .82px; --ms-cover-h: clamp(240px, calc((100vw - 40px) * .5), 400px); }
	.ms_shelf .ms_slide, .ms_shelf .ms_famous .ms_slide, .ms_shelf .ms_reader .ms_slide { grid-template-columns: minmax(0, 1fr); gap: 20px; height: auto; }
	.ms_shelf .ms_famous .ms_slide, .ms_shelf .ms_reader_card { max-width: none; }
	.ms_shelf .ms_reader_card { padding: 16px; }
	.ms_shelf .ms_cover_box { height: var(--ms-cover-h); padding: 24px 64px; }
	.ms_shelf .ms_cover { max-width: 100%; max-height: 100%; }
	.ms_shelf .ms_txt, .ms_shelf .ms_famous .ms_txt { --ms-pr: 0px; }
	.ms_shelf .ms_quote { flex: none; min-height: 140px; }
	/* 좌우 버튼은 표지 칸 안 */
	.ms_shelf .ms_stage { padding: 0; }
	.ms_shelf .ms_nav { top: calc(var(--ms-cover-h) / 2); width: 40px; height: 40px; background: rgba(255,255,255,.9); }
	.ms_shelf .ms_nav.prev { left: 12px; }
	.ms_shelf .ms_nav.next { right: 12px; }
	.ms_shelf .ms_reader .ms_nav { top: calc(16px + var(--ms-cover-h) / 2); }
	.ms_shelf .ms_reader .ms_nav.prev { left: 28px; }
	.ms_shelf .ms_reader .ms_nav.next { right: 28px; }
}
@supports (width: 1cqw) {
	@media (max-width: 900px) {
		.ms_shelf { --ms-cover-h: clamp(240px, 50cqw, 400px); }
	}
}
