/* 새 메인(시안 A) 미리보기 — 2026-11-23 · Claude 작성 · 판 1 · 판 2(11/24): 분야 칸 = 카탈로그 대분류 9 · Lucide 아이콘 · 흰 바탕 테두리 칸
   판 3(11/24): 분야 칸이 링크(분야 보기) · 분야 보기 화면(위치 줄 · 칩 · 책 격자 · 쪽 넘김 · 전체 분야) · 추천 탭 아래 '모두 보기'
   판 4(11/24 저녁): 전자책 앱 카드 = 그림 링크(지금 메인 배너에서 오린 그림 둘) · 분야별 추천 칸 높이 고정(스크립트가 패널 높이를 맞춤) · '모두 보기' 테두리 단추
   · 교수님 안내 짧은 설명 줄 · 강의용 신청 안내 화면(?ls_guide=lecture — 차례 · 찾기 · 책 목록)
   판 5(11/24 밤): 교수님 안내 짧은 설명 줄(.ls-ma-gnote) 뺌
   page-ls-main-preview.php 에서만 불러옴. 모든 규칙은 .ls-ma(본문) 또는 body.ls-ma-page(이 페이지) 아래에만 걸린다. */

/* 이 페이지에서만: PC 폭에서 본문 상자(#container 1300px 고정)가 화면보다 넓어 오른쪽이 잘리지 않게 */
@media (min-width: 1025px) {
	body.ls-ma-page #container { width: auto; max-width: 1300px; }
}

.ls-ma {
	--ls-acc: #1F4E79;
	--ls-acc-h: #153A5C;
	--ls-tx: #1E2329;
	--ls-sub: #545E69;
	--ls-sub2: #3D4650;
	--ls-ln: #E3E6EA;
	--ls-ln2: #DDE2E8;
	--ls-chip: #C3CAD2;
	--ls-soft: #F4F6F8;
	--ls-app: #EAF1F8;
	--ls-focus: #B45309;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 52px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px 72px;
	color: var(--ls-tx);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.ls-ma *, .ls-ma *::before, .ls-ma *::after { box-sizing: border-box; }
.ls-ma p { margin: 0; }
.ls-ma ul, .ls-ma ol { list-style: none; margin: 0; padding: 0; }
.ls-ma li { list-style: none; margin: 0; padding: 0; float: none; width: auto; }
.ls-ma h2 { margin: 0; padding: 0; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--ls-tx); letter-spacing: normal; }
.ls-ma img { border: 0; }

/* 링크 · 단추 기본(테마의 회색 링크 · 단추 규칙을 이 안에서만 덮음) */
.ls-ma a, .ls-ma a:link, .ls-ma a:visited, .ls-ma a:hover, .ls-ma a:focus, .ls-ma a:active { color: var(--ls-acc); text-decoration: none; }
.ls-ma a:hover { color: var(--ls-acc-h); text-decoration: underline; }
.ls-ma button { font: inherit; letter-spacing: normal; }
.ls-ma a:focus-visible, .ls-ma button:focus-visible { outline: 3px solid var(--ls-focus); outline-offset: 2px; }

.ls-ma-sr {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* 미리보기 알림 띠 · 표시 */
.ls-ma-pv { margin-bottom: -28px; padding: 10px 14px; border: 2px dashed #B45309; border-radius: 10px; background: #FFF7ED; color: #7C2D12; font-size: 14px; }
.ls-ma-pv strong { color: #7C2D12; }
.ls-ma-pv-links { white-space: nowrap; }
.ls-ma .ls-ma-pv a, .ls-ma .ls-ma-pv a:link, .ls-ma .ls-ma-pv a:visited { color: #9A3412; text-decoration: underline; }
.ls-ma-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid #FDBA74; border-radius: 999px; background: #FFF7ED; color: #9A3412; font-size: 12px; font-weight: 500; line-height: 1.6; vertical-align: middle; }
.ls-ma-empty { padding: 18px; border: 1px dashed var(--ls-chip); border-radius: 10px; color: var(--ls-sub); }

/* 칸 머리 */
.ls-ma-sec { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ls-ma-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ls-ma .ls-ma-more { flex: 0 0 auto; font-weight: 500; white-space: nowrap; }
.ls-ma .ls-ma-btnlink { padding: 0; border: 0; background: none; color: var(--ls-acc); cursor: pointer; }
.ls-ma .ls-ma-btnlink:hover { color: var(--ls-acc-h); text-decoration: underline; }

/* 카드 링크(책 카드 · 순위 줄): 글자색만 — 테마의 a:link 회색을 덮되 배치 값은 넣지 않음(아래 너비별 규칙이 배치를 바꿀 수 있게) */
.ls-ma a.ls-ma-lead:link, .ls-ma a.ls-ma-lead:visited, .ls-ma a.ls-ma-lead:hover, .ls-ma a.ls-ma-lead:focus, .ls-ma a.ls-ma-lead:active,
.ls-ma a.ls-ma-sm:link, .ls-ma a.ls-ma-sm:visited, .ls-ma a.ls-ma-sm:hover, .ls-ma a.ls-ma-sm:focus, .ls-ma a.ls-ma-sm:active,
.ls-ma a.ls-ma-rc:link, .ls-ma a.ls-ma-rc:visited, .ls-ma a.ls-ma-rc:hover, .ls-ma a.ls-ma-rc:focus, .ls-ma a.ls-ma-rc:active,
.ls-ma a.ls-ma-bk:link, .ls-ma a.ls-ma-bk:visited, .ls-ma a.ls-ma-bk:hover, .ls-ma a.ls-ma-bk:focus, .ls-ma a.ls-ma-bk:active { color: var(--ls-tx); text-decoration: none; }

/* 1 · 전자책 앱 안내 */
.ls-ma-app { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 26px 32px; border-radius: 14px; background: var(--ls-app); }
.ls-ma-app-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ls-ma .ls-ma-app-t { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--ls-tx); }
.ls-ma .ls-ma-app-s { color: var(--ls-sub2); }
.ls-ma a.ls-ma-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--ls-acc); font-weight: 700; }
.ls-ma a.ls-ma-btn:link, .ls-ma a.ls-ma-btn:visited, .ls-ma a.ls-ma-btn:hover, .ls-ma a.ls-ma-btn:focus, .ls-ma a.ls-ma-btn:active { color: #FFFFFF; text-decoration: none; }
.ls-ma a.ls-ma-btn:hover { background: var(--ls-acc-h); }

/* 2 · 분야별로 찾기(카탈로그 대분류 9 · 누르면 '준비 중') — 흰 바탕 · 진한 테두리 · 위 아이콘(Lucide 선 그림) · 아래 이름 */
.ls-ma-subj { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.ls-ma .ls-ma-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 116px; margin: 0;
	padding: 16px 6px 14px; border: 2px solid var(--ls-tx); border-radius: 4px; background: #FFFFFF; color: var(--ls-tx); cursor: pointer; text-align: center;
	transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
@media (hover: hover) { .ls-ma .ls-ma-tile:hover { border-color: var(--ls-acc); background: var(--ls-soft); color: var(--ls-acc); } }
.ls-ma .ls-ma-tile:active { background: var(--ls-app); }
.ls-ma-ic { display: block; flex: 0 0 auto; width: 40px; height: 40px; }
.ls-ma-tl { font-size: 15px; font-weight: 600; line-height: 1.3; word-break: keep-all; }

/* 표지(그림은 틀 안에 비율 그대로 · 가운데 아래 맞춤 · 없으면 색 자리 표시) — 틀 크기는 칸마다 고정, 그림 · 자리 표시는 틀 안에 띄워 틀을 늘리지 않음 */
.ls-ma-cv { position: relative; display: block; flex: 0 0 auto; }
.ls-ma-cv img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto auto 0; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); background: #FFFFFF; }
.ls-ma-ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; padding: 12px; overflow: hidden; border-radius: 5px; background: var(--ls-c, #4A5560); box-shadow: 0 1px 4px rgba(0, 0, 0, .22); color: #FFFFFF; font-weight: 700; line-height: 1.3; }
.ls-ma-ph::before { content: ""; position: absolute; top: 12px; left: 12px; width: 26px; height: 4px; background: #FFFFFF; }
.ls-ma-ph-t { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }

/* 값 줄 */
.ls-ma-prs { display: flex; flex-direction: column; margin-top: 2px; }
.ls-ma-pr { font-size: 13px; color: var(--ls-sub); }
.ls-ma-pr-v { font-size: 14px; font-weight: 700; color: var(--ls-tx); }
.ls-ma-so { color: #9A3412; font-weight: 500; }
.ls-ma-meta { font-size: 13px; color: var(--ls-sub); }

/* 3 · 새로 나온 책 */
.ls-ma-new { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.ls-ma a.ls-ma-lead { display: flex; gap: 28px; min-width: 0; padding: 28px; border: 1px solid var(--ls-ln); border-radius: 14px; background: var(--ls-soft); color: var(--ls-tx); text-decoration: none; }
.ls-ma a.ls-ma-lead:hover { border-color: var(--ls-acc); text-decoration: none; }
.ls-ma-cv--lead { width: 210px; height: 280px; }
.ls-ma-cv--lead .ls-ma-ph-t { font-size: 20px; -webkit-line-clamp: 6; }
.ls-ma-lb { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ls-ma-chip { align-self: flex-start; padding: 2px 10px; border: 1px solid var(--ls-chip); border-radius: 999px; background: #FFFFFF; color: var(--ls-sub2); font-size: 13px; font-weight: 500; }
.ls-ma-lt { font-size: 26px; font-weight: 700; line-height: 1.3; }
.ls-ma-lead .ls-ma-meta { font-size: 15px; }
.ls-ma-prs--lead { gap: 4px; margin-top: 6px; }
.ls-ma-prs--lead .ls-ma-pr { display: flex; align-items: baseline; gap: 10px; }
.ls-ma-prs--lead .ls-ma-pr-l { font-size: 14px; }
.ls-ma-prs--lead .ls-ma-pr-v { font-size: 20px; }
.ls-ma-go { margin-top: auto; padding-top: 6px; color: var(--ls-acc); font-weight: 500; }

.ls-ma-new-s { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ls-ma a.ls-ma-sm { display: flex; gap: 12px; height: 100%; min-width: 0; padding: 14px; border: 1px solid var(--ls-ln2); border-radius: 12px; background: #FFFFFF; color: var(--ls-tx); text-decoration: none; }
.ls-ma a.ls-ma-sm:hover { border-color: var(--ls-acc); text-decoration: none; }
.ls-ma-cv--sm { width: 80px; height: 107px; }
.ls-ma-cv--sm .ls-ma-ph { padding: 8px; }
.ls-ma-cv--sm .ls-ma-ph::before { top: 8px; left: 8px; width: 18px; height: 3px; }
.ls-ma-cv--sm .ls-ma-ph-t { font-size: 11px; }
.ls-ma-sb { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ls-ma-st { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 1.4; }

/* 4 · 분야별 추천(탭) */
.ls-ma-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-ma .ls-ma-tab { min-height: 44px; margin: 0; padding: 0 18px; border: 1px solid var(--ls-chip); border-radius: 999px; background: #FFFFFF; color: var(--ls-tx); font-weight: 500; cursor: pointer; white-space: nowrap; }
.ls-ma .ls-ma-tab:hover { border-color: var(--ls-acc); }
.ls-ma .ls-ma-tab[aria-selected="true"] { border-color: var(--ls-acc); background: var(--ls-acc); color: #FFFFFF; }
.ls-ma-pan[hidden] { display: none; }
.ls-ma-rec { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.ls-ma a.ls-ma-rc { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ls-tx); text-decoration: none; }
.ls-ma a.ls-ma-rc:hover .ls-ma-st { text-decoration: underline; }
.ls-ma-cv--rc { width: 100%; aspect-ratio: 3 / 4; margin-bottom: 4px; }
.ls-ma-cv--rc .ls-ma-ph-t { font-size: 15px; }
.ls-ma-rc .ls-ma-pr-v { font-size: 15px; }

/* 5 · 많이 찾는 책(순위 · 두 단: 1~6 왼쪽 · 7~12 오른쪽) */
.ls-ma-best { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--ls-rows, 6), auto); grid-auto-flow: column; column-gap: 48px; border-top: 2px solid var(--ls-tx); }
.ls-ma-best > li { border-bottom: 1px solid var(--ls-ln); min-width: 0; }
.ls-ma a.ls-ma-bk { display: flex; align-items: center; gap: 16px; padding: 14px 4px; color: var(--ls-tx); text-decoration: none; }
.ls-ma a.ls-ma-bk:hover .ls-ma-bt { text-decoration: underline; }
.ls-ma-rk { flex: 0 0 32px; color: var(--ls-sub); font-size: 22px; font-weight: 700; text-align: center; }
.ls-ma-rk.is-top { color: var(--ls-acc); }
.ls-ma-cv--bk { width: 60px; height: 80px; }
.ls-ma-cv--bk .ls-ma-ph::before { top: 8px; left: 8px; width: 16px; height: 3px; }
.ls-ma-cv--bk .ls-ma-ph-t { display: none; }
.ls-ma-bb { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ls-ma-bt { font-size: 16px; font-weight: 500; line-height: 1.4; }
.ls-ma-prs--row { flex-direction: row; flex-wrap: wrap; gap: 0 14px; }

/* 6 · 안내 세 칸 */
.ls-ma-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ls-ma-gbox { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--ls-ln2); border-radius: 12px; }
.ls-ma .ls-ma-gbox h2 { font-size: 18px; }
.ls-ma-gbox ul { display: flex; flex-direction: column; gap: 10px; }
.ls-ma .ls-ma-glink { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--ls-acc); text-align: left; cursor: pointer; }
.ls-ma .ls-ma-glink:hover { color: var(--ls-acc-h); text-decoration: underline; }
.ls-ma .ls-ma-nt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-ma-cs { color: var(--ls-sub2); }
.ls-ma-cs b { color: var(--ls-tx); }
.ls-ma-cs-t { display: block; margin-top: 2px; font-size: 14px; }

/* 판 3 · 분야 칸이 링크일 때(글자색 · 밑줄은 칸 규칙대로) */
.ls-ma a.ls-ma-tile:link, .ls-ma a.ls-ma-tile:visited, .ls-ma a.ls-ma-tile:focus, .ls-ma a.ls-ma-tile:active { color: var(--ls-tx); text-decoration: none; }
.ls-ma a.ls-ma-tile:hover { text-decoration: none; }
@media (hover: hover) { .ls-ma a.ls-ma-tile:hover { color: var(--ls-acc); } }

/* 판 3 · 추천 탭 아래 '이 분야 모두 보기' — 판 4: 패널을 세로 줄 상자로 · 스크립트가 모든 패널 높이를 가장 큰 값에 맞추고 '모두 보기'는 늘 맨 아래(탭을 바꿔도 자리 그대로) */
.ls-ma-pan { display: flex; flex-direction: column; }
.ls-ma .ls-ma-pan-more { margin-top: auto; padding-top: 18px; text-align: right; }   /* 아이디 없이 '.ls-ma p { margin: 0 }' 를 이기게 두 단계 */
.ls-ma .ls-ma-pan-more a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 18px; border: 2px solid var(--ls-acc); border-radius: 10px; background: #FFFFFF; font-weight: 700; }
.ls-ma .ls-ma-pan-more a:link, .ls-ma .ls-ma-pan-more a:visited, .ls-ma .ls-ma-pan-more a:focus, .ls-ma .ls-ma-pan-more a:active { color: var(--ls-acc); text-decoration: none; }
.ls-ma .ls-ma-pan-more a:hover { background: var(--ls-acc); color: #FFFFFF; text-decoration: none; }
.ls-ma-pan-more .ls-ma-n { color: var(--ls-sub); font-weight: 400; }
.ls-ma .ls-ma-pan-more a:hover .ls-ma-n { color: #FFFFFF; }

/* 판 4 · 전자책 앱 카드 = 그림 링크(지금 메인 배너에서 오린 그림 둘 — 버튼 없음 · 카드 전체가 앱 내려받기 링크) */
.ls-ma-app.ls-ma-app--img { display: block; padding: 0; }
.ls-ma .ls-ma-app-a { display: flex; align-items: center; justify-content: center; gap: 56px; padding: 18px 32px; border-radius: 14px; text-decoration: none; }
.ls-ma .ls-ma-app-a:hover { text-decoration: none; }
.ls-ma-app-a img { display: block; max-width: 100%; height: auto; }
.ls-ma-app-a .ls-ma-app-copy { flex: 0 1 377px; min-width: 0; width: 377px; }
.ls-ma-app-a .ls-ma-app-go { flex: 0 0 auto; width: 124px; }
@media (hover: hover) { .ls-ma .ls-ma-app-a:hover { box-shadow: inset 0 0 0 2px var(--ls-acc); } }

/* 판 4 · 안내 칸 링크는 밑줄(판 5 에서 짧은 설명 줄은 뺐고 밑줄은 그대로) */
.ls-ma .ls-ma-gbox a.ls-ma-glink:link, .ls-ma .ls-ma-gbox a.ls-ma-glink:visited { text-decoration: underline; text-underline-offset: 3px; }

/* 판 4 · 강의용 전자책 신청 안내(?ls_guide=lecture) */
.ls-ma-lec-lead { margin-top: 10px; color: var(--ls-sub2); font-size: 16px; }
.ls-ma-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ls-ma-steps > li { position: relative; min-width: 0; padding: 18px 18px 18px 60px; border: 1px solid var(--ls-ln2); border-radius: 12px; background: #FFFFFF; }
.ls-ma-stepn { position: absolute; left: 18px; top: 17px; width: 28px; height: 28px; border-radius: 50%; background: var(--ls-acc); color: #FFFFFF; font-weight: 700; line-height: 28px; text-align: center; }
.ls-ma-steps b { display: block; margin-bottom: 4px; font-size: 16px; }
.ls-ma-lec-note { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--ls-soft); color: var(--ls-sub2); }
.ls-ma .ls-ma-steps a:link, .ls-ma .ls-ma-steps a:visited, .ls-ma .ls-ma-lec-note a:link, .ls-ma .ls-ma-lec-note a:visited, .ls-ma .ls-ma-find-none a:link, .ls-ma .ls-ma-find-none a:visited { text-decoration: underline; text-underline-offset: 3px; }
.ls-ma-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.ls-ma-find[hidden] { display: none; }
.ls-ma-find label { font-weight: 700; }
.ls-ma .ls-ma-find-q { flex: 1 1 260px; max-width: 460px; min-height: 44px; margin: 0; padding: 0 14px; border: 2px solid var(--ls-tx); border-radius: 8px; background: #FFFFFF; color: var(--ls-tx); font-size: 16px; }
.ls-ma-find-n { color: var(--ls-sub); }
.ls-ma-lec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--ls-tx); }
.ls-ma-lec-list > li { min-width: 0; border-bottom: 1px solid var(--ls-ln); }
.ls-ma-lec-list > li[hidden] { display: none; }
.ls-ma .ls-ma-lec-list a { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 9px 4px; }
.ls-ma .ls-ma-lec-list a:link, .ls-ma .ls-ma-lec-list a:visited, .ls-ma .ls-ma-lec-list a:focus, .ls-ma .ls-ma-lec-list a:active { color: var(--ls-tx); text-decoration: none; }
.ls-ma .ls-ma-lec-list a:hover { color: var(--ls-acc); text-decoration: none; }
.ls-ma .ls-ma-lec-list a:hover .ls-ma-lt2 { text-decoration: underline; }
.ls-ma-lt2 { font-weight: 500; }
.ls-ma-find-none { margin-top: 14px; color: var(--ls-sub2); }
.ls-ma-find-none[hidden] { display: none; }

/* 판 3 · 분야 보기(?ls_cat=) */
.ls-ma-cat { gap: 28px; }
.ls-ma-crumb ol { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ls-sub); }
.ls-ma-crumb li + li::before { content: "›"; margin: 0 8px; color: var(--ls-sub); }
.ls-ma-crumb [aria-current="page"] { color: var(--ls-tx); font-weight: 500; }
.ls-ma .ls-ma-ch1 { margin: 0; padding: 0; font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--ls-tx); letter-spacing: normal; }
/* 테마의 '#wrap h1'(로고 자리 — absolute · 왼쪽 -600px)이 이 화면 제목에 걸리지 않게(아이디로 한 단계 위) */
#ls-main-a h1.ls-ma-ch1 { position: static; top: auto; left: auto; z-index: auto; margin: 0; }
.ls-ma-cnt { margin-left: 4px; color: var(--ls-sub); font-size: .65em; font-weight: 500; white-space: nowrap; }
.ls-ma-sort { color: var(--ls-sub); font-size: 14px; white-space: nowrap; }
.ls-ma-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-ma .ls-ma-chipl { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ls-chip); border-radius: 999px; background: #FFFFFF; font-weight: 500; white-space: nowrap; }
.ls-ma a.ls-ma-chipl:link, .ls-ma a.ls-ma-chipl:visited, .ls-ma a.ls-ma-chipl:hover, .ls-ma a.ls-ma-chipl:focus, .ls-ma a.ls-ma-chipl:active { color: var(--ls-tx); text-decoration: none; }
.ls-ma a.ls-ma-chipl:hover { border-color: var(--ls-acc); }
.ls-ma a.ls-ma-chipl[aria-current="page"] { border-color: var(--ls-acc); background: var(--ls-acc); }
.ls-ma a.ls-ma-chipl[aria-current="page"]:link, .ls-ma a.ls-ma-chipl[aria-current="page"]:visited, .ls-ma a.ls-ma-chipl[aria-current="page"]:hover, .ls-ma a.ls-ma-chipl[aria-current="page"]:focus, .ls-ma a.ls-ma-chipl[aria-current="page"]:active { color: #FFFFFF; }
.ls-ma-chipl .ls-ma-n { color: var(--ls-sub); font-size: 13px; font-weight: 400; }
.ls-ma a.ls-ma-chipl[aria-current="page"] .ls-ma-n { color: #FFFFFF; }
.ls-ma .ls-ma-chipl.is-empty { border-style: dashed; color: var(--ls-sub); }
.ls-ma-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
.ls-ma-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ls-ma .ls-ma-pg { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ls-ln2); border-radius: 8px; background: #FFFFFF; }
.ls-ma a.ls-ma-pg:hover { border-color: var(--ls-acc); text-decoration: none; }
.ls-ma .ls-ma-pg[aria-current="page"] { border-color: var(--ls-acc); background: var(--ls-acc); color: #FFFFFF; font-weight: 700; }
.ls-ma .ls-ma-pg.is-off { color: var(--ls-sub); border-color: var(--ls-ln); }
.ls-ma .ls-ma-pg.is-gap { border-color: transparent; background: transparent; color: var(--ls-sub); }
.ls-ma-idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.ls-ma-ix { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 14px; border-top: 2px solid var(--ls-tx); }
.ls-ma .ls-ma-ix h2 { font-size: 20px; }
.ls-ma .ls-ma-ix h2 a:link, .ls-ma .ls-ma-ix h2 a:visited { color: var(--ls-tx); }
.ls-ma .ls-ma-ix h2 a:hover { color: var(--ls-acc); }

/* '준비 중' 알림(아래 가운데 · 3.5초) */
.ls-ma-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100000; max-width: calc(100% - 32px); padding: 12px 18px;
	border-radius: 10px; background: #1E2329; color: #FFFFFF; font-size: 15px; line-height: 1.45; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
	opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s;
}
.ls-ma-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .ls-ma-toast, .ls-ma .ls-ma-tile { transition: none; } }

/* 손가락(태블릿 · 휴대폰): 작은 링크도 누름 칸 44px */
@media (pointer: coarse) {
	.ls-ma .ls-ma-more, .ls-ma .ls-ma-glink { display: inline-flex; align-items: center; min-height: 44px; }
	.ls-ma .ls-ma-nt { display: -webkit-box; min-height: 0; padding: 11px 0; }
	.ls-ma-gbox ul { gap: 0; }
	.ls-ma-pv-links a { display: inline-flex; align-items: center; min-height: 44px; }
	.ls-ma .ls-ma-chipl { min-height: 44px; }
	.ls-ma .ls-ma-pan-more a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* 태블릿 세로(768 ~ 1023) */
@media (max-width: 1023px) {
	.ls-ma { gap: 44px; padding: 24px 24px 56px; }
	.ls-ma h2 { font-size: 22px; }
	.ls-ma-pv { margin-bottom: -20px; }
	.ls-ma-app { gap: 20px; padding: 22px 26px; }
	.ls-ma-subj { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.ls-ma .ls-ma-tile { min-height: 108px; }
	.ls-ma-new { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.ls-ma a.ls-ma-lead { gap: 24px; padding: 24px; }
	.ls-ma-cv--lead { width: 168px; height: 224px; }
	.ls-ma-lt { font-size: 24px; }
	.ls-ma-cv--sm { width: 84px; height: 112px; }
	.ls-ma-rec { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.ls-ma-rec > li:nth-child(n+5) { display: none; }
	.ls-ma-best { column-gap: 32px; }
	.ls-ma-rk { flex-basis: 26px; font-size: 20px; }
	.ls-ma-cv--bk { width: 52px; height: 69px; }
	.ls-ma-guide { gap: 16px; }
	.ls-ma .ls-ma-app-a { gap: 40px; padding: 16px 26px; }
	.ls-ma-lec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ls-ma-steps > li { padding: 16px 14px 16px 54px; }
	.ls-ma-stepn { left: 14px; }
	.ls-ma-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
	.ls-ma .ls-ma-ch1 { font-size: 24px; }
	.ls-ma-idx { gap: 28px 28px; }
}

/* 휴대폰(767 이하) */
@media (max-width: 767px) {
	.ls-ma { gap: 36px; padding: 20px 16px 40px; }
	.ls-ma h2 { font-size: 20px; }
	.ls-ma-pv { margin-bottom: -16px; font-size: 13px; }
	.ls-ma-pv-links { white-space: normal; }
	.ls-ma-hd { align-items: center; }
	.ls-ma .ls-ma-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
	.ls-ma-more-x { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

	.ls-ma-app { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 12px; }
	.ls-ma .ls-ma-app-t { font-size: 17px; }
	.ls-ma .ls-ma-app-s { display: none; }
	.ls-ma a.ls-ma-btn { min-height: 44px; padding: 0 18px; }

	.ls-ma-subj { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.ls-ma .ls-ma-tile { gap: 8px; min-height: 96px; padding: 12px 4px 10px; }
	.ls-ma-ic { width: 32px; height: 32px; }
	.ls-ma-tl { font-size: 13px; }

	.ls-ma-sec { gap: 12px; }
	.ls-ma a.ls-ma-lead { gap: 14px; padding: 16px; border-radius: 12px; }
	.ls-ma-cv--lead { width: 112px; height: 150px; }
	.ls-ma-cv--lead .ls-ma-ph-t { font-size: 14px; }
	.ls-ma-lb { gap: 6px; }
	.ls-ma-chip { padding: 2px 8px; font-size: 12px; }
	.ls-ma-lt { font-size: 18px; line-height: 1.35; }
	.ls-ma-lead .ls-ma-meta { font-size: 13px; }
	.ls-ma-prs--lead { gap: 0; margin-top: 4px; }
	.ls-ma-prs--lead .ls-ma-pr { display: block; font-size: 12px; }
	.ls-ma-prs--lead .ls-ma-pr-l { font-size: 12px; }
	.ls-ma-prs--lead .ls-ma-pr-v { font-size: 16px; }
	.ls-ma-go { display: none; }

	.ls-ma-new-s { display: flex; flex-direction: column; gap: 0; }
	.ls-ma a.ls-ma-sm { padding: 12px 0; border: 0; border-bottom: 1px solid var(--ls-ln); border-radius: 0; background: transparent; }
	.ls-ma-cv--sm { width: 60px; height: 80px; }
	.ls-ma-cv--sm .ls-ma-ph-t { display: none; }
	.ls-ma-sm .ls-ma-sb { gap: 2px; }
	.ls-ma-sm .ls-ma-st { -webkit-line-clamp: 3; }
	.ls-ma-sm .ls-ma-prs { flex-direction: row; flex-wrap: wrap; gap: 0 12px; }

	.ls-ma-tabs { flex-wrap: nowrap; gap: 6px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
	.ls-ma-tabs::-webkit-scrollbar { display: none; }
	.ls-ma .ls-ma-tab { flex: 0 0 auto; padding: 0 14px; font-size: 14px; }
	.ls-ma-rec { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
	.ls-ma-rec::-webkit-scrollbar { display: none; }
	.ls-ma-rec > li { flex: 0 0 140px; scroll-snap-align: start; }
	.ls-ma-rec > li:nth-child(n+5) { display: block; }
	.ls-ma a.ls-ma-rc { gap: 4px; }
	.ls-ma-cv--rc { margin-bottom: 2px; }
	.ls-ma-cv--rc .ls-ma-ph-t { font-size: 13px; }
	.ls-ma-rc .ls-ma-st { font-size: 14px; }
	.ls-ma-rc .ls-ma-meta, .ls-ma-rc .ls-ma-pr { font-size: 12px; }
	.ls-ma-rc .ls-ma-pr-v { font-size: 14px; }

	.ls-ma-best { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
	.ls-ma-best > li.ls-ma-b7 { display: none; }
	.ls-ma a.ls-ma-bk { gap: 12px; padding: 12px 0; }
	.ls-ma-rk { flex-basis: 24px; font-size: 18px; }
	.ls-ma-cv--bk { width: 48px; height: 64px; }
	.ls-ma-bt { font-size: 15px; }
	.ls-ma-bk .ls-ma-pr { font-size: 12px; }
	.ls-ma-bk .ls-ma-pr-v { font-size: 13px; }
	.ls-ma-prs--row { gap: 0 10px; }

	.ls-ma-guide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.ls-ma-gbox { gap: 6px; padding: 16px; border-radius: 10px; }
	.ls-ma .ls-ma-gbox h2 { font-size: 17px; }

	.ls-ma-cat { gap: 20px; }
	.ls-ma .ls-ma-ch1 { font-size: 21px; }
	.ls-ma-cat .ls-ma-hd { flex-direction: column; align-items: flex-start; gap: 2px; }
	.ls-ma-sort { font-size: 13px; white-space: normal; }
	.ls-ma-chips { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
	.ls-ma-chips::-webkit-scrollbar { display: none; }
	.ls-ma-ix .ls-ma-chips { flex-wrap: wrap; overflow: visible; }
	.ls-ma .ls-ma-chipl { flex: 0 0 auto; min-height: 44px; padding: 0 12px; font-size: 14px; }
	.ls-ma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.ls-ma-grid .ls-ma-st { font-size: 14px; }
	.ls-ma-grid .ls-ma-meta, .ls-ma-grid .ls-ma-pr { font-size: 12px; }
	.ls-ma-grid .ls-ma-pr-v { font-size: 14px; }
	.ls-ma-idx { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ls-ma .ls-ma-ix h2 { font-size: 18px; }
	.ls-ma .ls-ma-pan-more { padding-top: 10px; font-size: 14px; }
	.ls-ma .ls-ma-pan-more a { padding: 0 14px; }
	.ls-ma .ls-ma-app-a { gap: 12px; padding: 14px 16px; border-radius: 12px; }
	.ls-ma-app-a .ls-ma-app-go { width: 86px; }
	.ls-ma-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
	.ls-ma-steps > li { padding: 12px 12px 12px 50px; font-size: 14px; }
	.ls-ma-stepn { left: 12px; top: 12px; width: 26px; height: 26px; line-height: 26px; }
	.ls-ma-steps b { font-size: 15px; }
	.ls-ma-lec-lead { font-size: 15px; }
	.ls-ma-lec-list { grid-template-columns: minmax(0, 1fr); }
	.ls-ma .ls-ma-find-q { flex-basis: 100%; max-width: none; }
	.ls-ma .ls-ma-pg { min-width: 44px; padding: 0 10px; }
}

/* 판 8 · 분야 보기 머리: 대분류 줄(전체 + 대분류 9 · 소분류 칩 위) · '모든 책 | 전자책만' 거르기 */
.ls-ma-secnav ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-ma .ls-ma-sn { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 11px; border: 2px solid var(--ls-tx); border-radius: 4px; background: #FFFFFF; font-weight: 700; white-space: nowrap; }
.ls-ma a.ls-ma-sn:link, .ls-ma a.ls-ma-sn:visited, .ls-ma a.ls-ma-sn:hover, .ls-ma a.ls-ma-sn:focus, .ls-ma a.ls-ma-sn:active { color: var(--ls-tx); text-decoration: none; }
@media (hover: hover) { .ls-ma a.ls-ma-sn:hover { border-color: var(--ls-acc); background: var(--ls-soft); color: var(--ls-acc); } }
.ls-ma a.ls-ma-sn[aria-current] { border-color: var(--ls-acc); background: var(--ls-acc); }
.ls-ma a.ls-ma-sn[aria-current]:link, .ls-ma a.ls-ma-sn[aria-current]:visited, .ls-ma a.ls-ma-sn[aria-current]:hover, .ls-ma a.ls-ma-sn[aria-current]:focus, .ls-ma a.ls-ma-sn[aria-current]:active { color: #FFFFFF; }
.ls-ma .ls-ma-sn .ls-ma-ic { width: 20px; height: 20px; }
.ls-ma .ls-ma-sn.is-empty { border-style: dashed; border-color: var(--ls-chip); color: var(--ls-sub); font-weight: 500; }
.ls-ma-ebf { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--ls-chip); border-radius: 999px; overflow: hidden; }
.ls-ma .ls-ma-ebt { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: #FFFFFF; font-weight: 500; white-space: nowrap; }
.ls-ma a.ls-ma-ebt:link, .ls-ma a.ls-ma-ebt:visited, .ls-ma a.ls-ma-ebt:hover, .ls-ma a.ls-ma-ebt:focus, .ls-ma a.ls-ma-ebt:active { color: var(--ls-tx); text-decoration: none; }
.ls-ma a.ls-ma-ebt + a.ls-ma-ebt { border-left: 1px solid var(--ls-chip); }
@media (hover: hover) { .ls-ma a.ls-ma-ebt:hover { background: var(--ls-soft); } }
.ls-ma a.ls-ma-ebt[aria-current] { background: var(--ls-acc); }
.ls-ma a.ls-ma-ebt[aria-current]:link, .ls-ma a.ls-ma-ebt[aria-current]:visited, .ls-ma a.ls-ma-ebt[aria-current]:hover, .ls-ma a.ls-ma-ebt[aria-current]:focus, .ls-ma a.ls-ma-ebt[aria-current]:active { color: #FFFFFF; }
.ls-ma a.ls-ma-ebt:focus-visible { outline-offset: -3px; }
@media (max-width: 767px) {
	.ls-ma-secnav ul { gap: 6px; }
	.ls-ma .ls-ma-sn { padding: 0 10px; font-size: 14px; }
	.ls-ma .ls-ma-sn .ls-ma-ic { display: none; }
	.ls-ma .ls-ma-ebt { min-height: 44px; padding: 0 14px; font-size: 14px; }
}
