/* 보이드로그 도서 시스템 — 한글 장문 가독성 우선 (기획서 §13)
 * 원칙
 *   1. 본문 폭은 한 줄 35~40자. 한글 장문에서 눈이 줄을 놓치지 않는 범위다.
 *   2. 광고 영역과 본문 영역을 시각적으로 분리한다.
 *   3. 표는 모바일에서 가로 스크롤한다. 4,125개 표가 있고 열이 많은 것이 섞여 있다.
 *   4. 색상 대비는 WCAG AA 이상.
 */

:root {
  --vlb-ink: #1c1c1a;
  --vlb-muted: #6b6b66;
  --vlb-faint: #70706a;
  --vlb-line: #e7e6e2;
  --vlb-line-soft: #f0efeb;
  --vlb-accent: #1b4d3e;
  --vlb-accent-ink: #ffffff;
  --vlb-bg-soft: #f8f8f6;
  --vlb-max: 40rem;
}

.vlb { color: var(--vlb-ink); }

.vlb-wrap {
  max-width: var(--vlb-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.vlb-wide { max-width: 60rem; }

/* ---------------------------------------------------------------- 본문 */

.vlb-body {
  font-size: 0.9875rem;
  line-height: 1.92;
  letter-spacing: -0.004em;
  word-break: keep-all;      /* 한글 단어 중간에서 줄바꿈하지 않는다 */
  overflow-wrap: break-word;
}
.vlb-body > * + * { margin-top: 1.45em; }
.vlb-body h2 {
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.012em;
  margin-top: 3em;
  margin-bottom: 1em;
  padding-top: 1.4em;
  border-top: 1px solid var(--vlb-line-soft);
  word-break: keep-all;
}
.vlb-body h3 {
  font-size: 1.03rem; font-weight: 700; line-height: 1.6;
  letter-spacing: -0.01em; margin-top: 2.4em; word-break: keep-all;
}
.vlb-body h4 { font-size: 0.95rem; font-weight: 700; margin-top: 2em; color: var(--vlb-muted); }
.vlb-body strong { font-weight: 700; }
.vlb-body blockquote {
  margin-left: 0;
  padding: 0.15em 0 0.15em 1.2em;
  border-left: 2px solid var(--vlb-line);
  color: var(--vlb-muted);
  font-size: 0.96em;
}
.vlb-body ul, .vlb-body ol { padding-left: 1.4em; }
.vlb-body li + li { margin-top: 0.5em; }
.vlb-body img { max-width: 100%; height: auto; display: block; margin: 2em auto; }
.vlb-body figcaption { font-size: 0.875rem; color: var(--vlb-muted); text-align: center; }
.vlb-body hr { border: 0; border-top: 1px solid var(--vlb-line); margin: 2.5em 0; }
.vlb-body a { color: var(--vlb-accent); text-underline-offset: 3px; }

/* 표 — 모바일 가로 스크롤 */
.vlb-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}
.vlb-body th, .vlb-body td {
  border: 1px solid var(--vlb-line);
  padding: 0.55em 0.7em;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}
.vlb-body thead th { background: var(--vlb-bg-soft); font-weight: 700; }

/* 코드 — code 8,689 / pre 3,986개가 있다 */
.vlb-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--vlb-bg-soft);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}
.vlb-body pre {
  background: var(--vlb-bg-soft);
  border: 1px solid var(--vlb-line);
  border-radius: 6px;
  padding: 1em 1.1em;
  overflow-x: auto;
  line-height: 1.65;
}
.vlb-body pre code { background: none; padding: 0; font-size: 0.875rem; }

/* ---------------------------------------------------------------- 공통 조각 */

.vlb-breadcrumb {
  font-size: 0.8125rem;
  color: var(--vlb-faint);
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
  word-break: keep-all;
}
.vlb-breadcrumb a { color: var(--vlb-muted); }
.vlb-breadcrumb span[aria-hidden] { margin: 0 0.4em; }

.vlb-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.022em;
  margin: 0 0 0.45em;
  word-break: keep-all;
}
.vlb-subtitle {
  font-size: 0.9375rem; line-height: 1.65; color: var(--vlb-muted);
  margin: 0 0 1.15em; word-break: keep-all;
}
.vlb-byline { font-size: 0.875rem; color: var(--vlb-muted); }

.vlb-card {
  border: 1px solid var(--vlb-line-soft);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin: 2.4rem 0;
  background: #fff;
}
.vlb-card h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vlb-faint);
  margin: 0 0 1rem;
  border: 0;
  padding: 0;
}

.vlb-takeaways {
  margin: 0; padding-left: 1.15em;
  font-size: 0.9125rem; line-height: 1.82; color: var(--vlb-ink);
  word-break: keep-all;
}
.vlb-takeaways li { padding-left: 0.15em; }
.vlb-takeaways li + li { margin-top: 0.7em; }
.vlb-takeaways li::marker { color: var(--vlb-faint); }

/* 서지정보 */
.vlb-meta { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.vlb-meta th {
  width: 7em; text-align: left; font-weight: 500;
  color: var(--vlb-faint); padding: 0.4em 0; vertical-align: top;
}
.vlb-meta td { padding: 0.4em 0; color: var(--vlb-ink); }

/* 목차 */
.vlb-toc { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; line-height: 1.7; }
.vlb-toc li { padding: 0.45em 0; border-bottom: 1px solid var(--vlb-line-soft); word-break: keep-all; }
.vlb-toc li:last-child { border-bottom: 0; }
.vlb-toc li.vlb-toc-part {
  font-weight: 700; margin-top: 1.4em; color: var(--vlb-ink);
  border-bottom: 1px solid var(--vlb-line);
  font-size: 0.8125rem; letter-spacing: 0.03em;
}
.vlb-toc .vlb-open { color: var(--vlb-accent); font-weight: 600; }
.vlb-toc .vlb-locked { color: var(--vlb-muted); }

/* 구매 */
.vlb-buy { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.vlb-buy a {
  display: inline-block;
  padding: 0.68em 1.2em;
  border-radius: 8px;
  background: var(--vlb-accent);
  color: var(--vlb-accent-ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.vlb-buy a:hover { opacity: 0.88; }
.vlb-buy-note {
  font-size: 0.9125rem; line-height: 1.8; margin: 0;
  color: var(--vlb-ink); word-break: keep-all;
}

/* 이전·다음 장 */
.vlb-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.vlb-nav a {
  display: block; padding: 1rem 1.1rem; border: 1px solid var(--vlb-line);
  border-radius: 10px; text-decoration: none; color: var(--vlb-ink);
}
.vlb-nav .vlb-nav-label {
  display: block; font-size: 0.75rem; color: var(--vlb-faint);
  letter-spacing: 0.04em; margin-bottom: 0.4em;
}
.vlb-nav .vlb-nav-title { font-size: 0.875rem; line-height: 1.55; word-break: keep-all; }
.vlb-nav .vlb-next { text-align: right; }
@media (max-width: 600px) { .vlb-nav { grid-template-columns: 1fr; } }

/* 표지 */
.vlb-cover { margin: 0 0 1.6rem; }
.vlb-cover img { max-width: 220px; height: auto; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.14); }

.vlb-hero { display: flex; gap: 1.8rem; align-items: flex-start; }
@media (max-width: 640px) { .vlb-hero { display: block; } .vlb-cover img { max-width: 160px; } }

/* 독자 자료 배지 — 제대로 찾아왔다는 신호 */
.vlb-reader-badge {
  display: inline-block;
  font-size: 0.8125rem; line-height: 1.6;
  color: var(--vlb-accent);
  background: #eef4f1;
  padding: 0.5em 0.9em;
  border-radius: 8px;
  margin-bottom: 1.3rem;
  word-break: keep-all;
}
.vlb-reader-badge strong { font-weight: 700; }

/* 고지·기준일 */
.vlb-notice {
  font-size: 0.8125rem; line-height: 1.8; color: var(--vlb-faint);
  border-top: 1px solid var(--vlb-line-soft); padding-top: 1.4rem; margin-top: 3rem;
  word-break: keep-all;
}
.vlb-notice p { margin: 0 0 0.35em; }

/* 광고 자리 — 본문과 시각적으로 분리한다 (기획서 §11) */
.vlb-ad {
  margin: 2.5rem 0; padding: 0.6rem 0;
  border-top: 1px solid var(--vlb-line); border-bottom: 1px solid var(--vlb-line);
  background: var(--vlb-bg-soft);
}
.vlb-ad::before {
  content: "광고"; display: block; font-size: 0.75rem; color: var(--vlb-muted);
  letter-spacing: 0.05em; margin-bottom: 0.4rem; text-align: center;
}

/* 도서 목록 */
.vlb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.6rem; }
.vlb-grid a { text-decoration: none; color: var(--vlb-ink); }
.vlb-grid img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.vlb-grid .vlb-grid-title { display: block; margin-top: 0.65em; font-size: 0.875rem; line-height: 1.55; word-break: keep-all; }
.vlb-grid .vlb-grid-author { display: block; font-size: 0.75rem; color: var(--vlb-faint); margin-top: 0.25em; }

/* ---------------------------------------------------------------- 홈 */

.vlb-lede {
  max-width: 40rem;
  padding: 3rem 0 3.2rem;
  border-bottom: 1px solid var(--vlb-line-soft);
  margin-bottom: 0.5rem;
}
.vlb-lede-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--vlb-accent); margin: 0 0 1.1rem;
  padding: 0.35em 0.7em; border-radius: 999px;
  background: #eef4f1;
}
.vlb-lede-title {
  font-size: 2.05rem; font-weight: 800; line-height: 1.36;
  letter-spacing: -0.032em; margin: 0 0 0.7em; word-break: keep-all;
}
.vlb-lede-title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, #cfe3da 62%);
  padding: 0 0.06em;
}
.vlb-lede-text {
  font-size: 0.9875rem; line-height: 1.88; color: var(--vlb-muted);
  margin: 0 0 1.8em; word-break: keep-all;
}
@media (max-width: 640px) {
  .vlb-lede-title { font-size: 1.62rem; }
  .vlb-lede { padding: 2.2rem 0 2.4rem; }
}
.vlb-cta {
  display: inline-block; padding: 0.72em 1.3em; border-radius: 8px;
  background: var(--vlb-accent); color: var(--vlb-accent-ink);
  text-decoration: none; font-size: 0.875rem; font-weight: 600;
}
.vlb-cta:hover { opacity: 0.88; }

.vlb-section-h {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--vlb-faint); margin: 0 0 1.2rem;
}
.vlb-section-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.2rem;
}
.vlb-section-row .vlb-section-h { margin: 0; }
.vlb-more { font-size: 0.8125rem; color: var(--vlb-accent); text-decoration: none; }

/* 도서 그리드 — 표지에 입체감을 준다 */
.vlb-grid a img {
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.10), 0 10px 28px rgba(0,0,0,.07);
}
.vlb-grid a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,.13), 0 16px 36px rgba(0,0,0,.10);
}
.vlb-grid a:hover .vlb-grid-title { color: var(--vlb-accent); }

/* 분야 칩 */
.vlb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vlb-chips a {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.5em 0.85em; border: 1px solid var(--vlb-line);
  border-radius: 999px; font-size: 0.8125rem;
  color: var(--vlb-ink); text-decoration: none;
}
.vlb-chips a:hover { border-color: var(--vlb-accent); color: var(--vlb-accent); }
.vlb-chips a span { color: var(--vlb-faint); font-size: 0.75rem; }

/* 읽을 거리 목록 */
.vlb-readlist { list-style: none; margin: 0; padding: 0; }
.vlb-readlist li { border-top: 1px solid var(--vlb-line-soft); }
.vlb-readlist li:last-child { border-bottom: 1px solid var(--vlb-line-soft); }
.vlb-readlist a {
  display: block; padding: 1.15rem 0; text-decoration: none; color: var(--vlb-ink);
}
.vlb-readlist a:hover .vlb-readlist-title { color: var(--vlb-accent); }
.vlb-readlist-title {
  display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.5;
  letter-spacing: -0.012em; word-break: keep-all;
}
.vlb-readlist-book {
  display: block; font-size: 0.75rem; color: var(--vlb-faint); margin-top: 0.3em;
}
.vlb-readlist-sum {
  display: block; font-size: 0.8125rem; line-height: 1.75;
  color: var(--vlb-muted); margin-top: 0.55em; word-break: keep-all;
}
.vlb-readlist-meta {
  display: inline-block; font-size: 0.6875rem; color: var(--vlb-faint); margin-top: 0.5em;
}

/* 페이지네이션 */
.vlb-pagination { margin-top: 3rem; text-align: center; font-size: 0.875rem; }
.vlb-pagination .page-numbers {
  display: inline-block; min-width: 2.2em; padding: 0.5em 0.7em;
  margin: 0 0.15em; border: 1px solid var(--vlb-line-soft); border-radius: 7px;
  text-decoration: none; color: var(--vlb-muted);
}
.vlb-pagination .page-numbers.current {
  background: var(--vlb-accent); border-color: var(--vlb-accent); color: var(--vlb-accent-ink); font-weight: 600;
}
.vlb-pagination .page-numbers.dots { border: 0; }

@media print { .vlb-ad, .vlb-buy, .vlb-nav, .vlb-pagination { display: none; } }


/* 저자 페이지 소개 */
.vlb-authorbio { max-width: 42rem; margin: 1.35rem 0 0; padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--vlb-accent, #1f6f4a);
  background: var(--vlb-soft, #f7f8f7); border-radius: 0 10px 10px 0; }
.vlb-authorbio p { margin: 0 0 .7em; font-size: .95rem; line-height: 1.75; }
.vlb-authorbio p:last-child { margin-bottom: 0; }

/* 출간 후 갱신 안내 */
.vlb-updatenote { margin: 1.75rem 0 0; padding: 1rem 1.2rem;
  border: 1px solid var(--vlb-line, #e6e6e6); border-left: 3px solid #b8860b;
  border-radius: 0 10px 10px 0; background: #fdfaf3; }
.vlb-updatenote-head { margin: 0 0 .5em; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: #8a6508; text-transform: none; }
.vlb-updatenote p { margin: 0 0 .6em; font-size: .89rem; line-height: 1.7; }
.vlb-updatenote p:last-child { margin-bottom: 0; }

/* 도서 페이지 저자 소개 블록 */
.vlb-bioblock + .vlb-bioblock { margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--vlb-line, #e6e6e6); }
.vlb-bioblock-name { margin: 0 0 .45em; font-weight: 700; font-size: .95rem; }
.vlb-bioblock-name a { text-decoration: none; }
.vlb-bioblock-name a:hover { text-decoration: underline; }

/* 직접 답변 */
.vlb-answer { margin: 2rem 0 0; padding: 1.25rem 1.4rem;
  border: 1px solid var(--vlb-line, #e6e6e6); border-left: 3px solid var(--vlb-accent, #1f6f4a);
  border-radius: 0 12px 12px 0; background: var(--vlb-soft, #f7f8f7); }
.vlb-answer-q { margin: 0 0 .6em !important; font-size: 1.02rem !important; font-weight: 700; line-height: 1.5; }
.vlb-answer p { margin: 0 0 .6em; font-size: .97rem; line-height: 1.75; }
.vlb-answer p:last-child { margin-bottom: 0; }

/* 이 장에서 함께 다루는 질문 — FAQPage 로 내보내는 값과 같은 것을 화면에도 둔다.
   구조화 데이터는 페이지에 보이는 내용이어야 하고, 접힌 상태도 허용된다. */
.vlb-faq { margin: 2.5rem 0 0; }
.vlb-faq > h2 { margin: 0 0 .9em !important; font-size: 1.02rem !important; font-weight: 700;
  letter-spacing: -.01em; padding-bottom: .55em; border-bottom: 1px solid var(--vlb-line, #e6e6e6); }
.vlb-faq-item { border-bottom: 1px solid var(--vlb-line, #e6e6e6); }
.vlb-faq-item > summary { list-style: none; cursor: pointer; position: relative;
  padding: .85em 2.2em .85em 0; font-size: .95rem; font-weight: 600; line-height: 1.6;
  word-break: keep-all; }
.vlb-faq-item > summary::-webkit-details-marker { display: none; }
.vlb-faq-item > summary::after { content: "+"; position: absolute; right: .35em; top: .72em;
  font-size: 1.15rem; font-weight: 400; opacity: .45; transition: transform .15s ease; }
.vlb-faq-item[open] > summary::after { content: "\2212"; }
.vlb-faq-item > summary:hover { color: var(--vlb-accent, #1f6f4a); }
.vlb-faq-a { padding: 0 2.2em .95em 0; }
.vlb-faq-a p { margin: 0; font-size: .93rem; line-height: 1.8; opacity: .85; word-break: keep-all; }

/* 출처 */
.vlb-sources { margin: 2.25rem 0 0; padding: 1rem 1.2rem;
  border-top: 1px solid var(--vlb-line, #e6e6e6); }
.vlb-sources-head { margin: 0 0 .5em; font-size: .78rem; font-weight: 700; letter-spacing: .04em; opacity: .65; }
.vlb-sources-body p { margin: 0 0 .4em; font-size: .87rem; line-height: 1.7; }
.vlb-sources-date { margin: .7em 0 0; font-size: .8rem; opacity: .6; }

/* 복사 가능한 블록 */
.vlb-copywrap { position: relative; margin: 1.1rem 0; }
.vlb-copywrap pre {
  margin: 0; padding: 1rem 1.15rem; padding-right: 4.6rem;
  background: #f6f7f6; border: 1px solid var(--vlb-line, #e6e6e6);
  border-radius: 10px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, "Noto Sans KR", monospace;
  font-size: .845rem; line-height: 1.7; white-space: pre; tab-size: 4;
}
.vlb-copybtn {
  position: absolute; top: .55rem; right: .55rem;
  padding: .3rem .68rem; font-size: .76rem; font-weight: 650;
  color: #fff; background: var(--vlb-accent, #1f6f4a);
  border: 0; border-radius: 7px; cursor: pointer; opacity: .82;
  transition: opacity .15s ease, background .15s ease;
}
.vlb-copybtn:hover { opacity: 1; }
.vlb-copybtn.is-done { background: #6b7280; }
@media (max-width: 640px) {
  .vlb-copywrap pre { font-size: .8rem; padding-right: 1.15rem; }
  .vlb-copybtn { position: static; display: block; width: 100%; margin-top: .5rem; padding: .5rem; }
}


/* 표지 겹쳐 쌓기 — 좁은 자리에 여러 권을 보여준다 */
.vlb-termcard-covers { position: relative; flex: 0 0 auto; display: flex; align-items: flex-start; }
.vlb-termcard-covers img {
  width: 52px; height: 77px; object-fit: cover; border-radius: 4px;
  border: 1px solid rgba(0,0,0,.08); background: #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.vlb-termcard-covers img + img { margin-left: -34px; }
.vlb-termcard-covers img:nth-child(2) { z-index: 3; }
.vlb-termcard-covers img:nth-child(3) { z-index: 2; }
.vlb-termcard-covers img:nth-child(4) { z-index: 1; opacity: .9; }
.vlb-termcard-noimg {
  display: block; width: 52px; height: 77px; border-radius: 4px;
  background: repeating-linear-gradient(45deg, #f0f1f0, #f0f1f0 6px, #e8eae8 6px, #e8eae8 12px);
}

.vlb-termcard-body { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.vlb-termcard-name { font-weight: 680; font-size: 1.04rem; line-height: 1.35; }
.vlb-termcard-count { font-size: .78rem; opacity: .55; }
.vlb-termcard-desc { margin-top: .18rem; font-size: .855rem; line-height: 1.65; opacity: .72; }

@media (max-width: 600px) {
  .vlb-termgrid, .vlb-termgrid.is-author { grid-template-columns: 1fr; }
  .vlb-termcard-link { padding: 1rem; gap: .9rem; }
  .vlb-termcard-covers img { width: 46px; height: 68px; }
  .vlb-termcard-covers img + img { margin-left: -30px; }
}

/* 분야·저자 목록 페이지
   글자 크기는 도서 목록·상세와 같은 눈금을 쓴다.
   .vlb-title 1.6rem / .vlb-subtitle 0.9375rem / .vlb-byline 0.875rem 기준. */
.vlb-termhead { margin-bottom: 2rem; }
.vlb-termhead .vlb-title { margin-bottom: .3em; }

.vlb-termgrid { list-style: none; margin: 0; padding: 0;
  display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.vlb-termgrid.is-author { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.vlb-termcard { margin: 0; }

.vlb-termcard-link {
  position: relative; display: grid; grid-template-columns: auto 1fr;
  gap: 1.1rem; align-items: start;
  padding: 1.25rem 1.35rem; height: 100%;
  border: 1px solid var(--vlb-line-soft, #ececec); border-radius: 12px;
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.vlb-termcard-link:hover {
  border-color: var(--vlb-accent, #1f6f4a);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.055);
}
/* 오른쪽 위 화살표 — 누를 수 있는 카드라는 신호 */
.vlb-termcard-link::after {
  content: "→"; position: absolute; top: 1.05rem; right: 1.2rem;
  font-size: .9rem; color: var(--vlb-muted, #8a8f8b);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.vlb-termcard-link:hover::after { opacity: 1; transform: translateX(0); }

/* 표지 겹쳐 쌓기 */
.vlb-termcard-covers { position: relative; display: flex; align-items: flex-start; flex: 0 0 auto; }
.vlb-termcard-covers img {
  width: 50px; height: 74px; object-fit: cover; border-radius: 3px;
  border: 1px solid rgba(0,0,0,.07); background: #f0f0f0;
  box-shadow: 0 2px 7px rgba(0,0,0,.13);
  transition: transform .18s ease;
}
.vlb-termcard-covers img + img { margin-left: -33px; }
.vlb-termcard-covers img:nth-child(1) { z-index: 4; }
.vlb-termcard-covers img:nth-child(2) { z-index: 3; }
.vlb-termcard-covers img:nth-child(3) { z-index: 2; }
.vlb-termcard-covers img:nth-child(4) { z-index: 1; opacity: .92; }
.vlb-termcard-link:hover .vlb-termcard-covers img + img { margin-left: -27px; }
.vlb-termcard-noimg {
  display: block; width: 50px; height: 74px; border-radius: 3px;
  background: repeating-linear-gradient(45deg,#f2f3f2,#f2f3f2 6px,#eaece9 6px,#eaece9 12px);
}

.vlb-termcard-body { min-width: 0; }
.vlb-termcard-name {
  display: block; font-size: 1.02rem; font-weight: 650; line-height: 1.4;
  letter-spacing: -0.018em; word-break: keep-all; padding-right: 1.4rem;
}
.vlb-termcard-count {
  display: inline-block; margin-top: .3rem; padding: .1rem .48rem;
  font-size: 0.78rem; font-weight: 600; line-height: 1.6;
  color: var(--vlb-accent, #1f6f4a);
  background: rgba(31,111,74,.075); border-radius: 999px;
}
.vlb-termcard-desc {
  display: block; margin-top: .55rem;
  font-size: 0.875rem; line-height: 1.68;
  color: var(--vlb-muted, #6b706d); word-break: keep-all;
}

@media (max-width: 600px) {
  .vlb-termgrid, .vlb-termgrid.is-author { grid-template-columns: 1fr; gap: .75rem; }
  .vlb-termcard-link { padding: 1.05rem 1.1rem; gap: .9rem; }
  .vlb-termcard-covers img { width: 44px; height: 65px; }
  .vlb-termcard-covers img + img { margin-left: -29px; }
  .vlb-termcard-name { font-size: .98rem; }
  .vlb-termcard-desc { font-size: .85rem; }
}

/* 본문에서 복원한 목록 */
.vlb-body ul.vlb-bullets { margin: 1.1em 0; padding-left: 1.35em; }
.vlb-body ul.vlb-bullets li { margin: .35em 0; line-height: 1.8; }

/* 홈 히어로 — 좌측 글 / 우측 표지 */
.vlb-lede-split { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 3rem; align-items: center; }
.vlb-lede-covers { position: relative; display: flex; justify-content: center;
  align-items: flex-end; min-height: 300px; }
.vlb-lede-covers img {
  width: 168px; height: 252px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.16); border: 1px solid rgba(0,0,0,.07);
  background: #f0f0f0; transition: transform .25s ease;
}
.vlb-lede-covers img:nth-child(1) { z-index: 3; transform: rotate(-4deg) translateX(24px); }
.vlb-lede-covers img:nth-child(2) { z-index: 2; transform: rotate(2deg) translateX(-14px) scale(.94); }
.vlb-lede-covers img:nth-child(3) { z-index: 1; transform: rotate(8deg) translateX(-52px) scale(.88); opacity: .95; }
.vlb-lede-split:hover .vlb-lede-covers img:nth-child(1) { transform: rotate(-5deg) translateX(30px) translateY(-5px); }

@media (max-width: 900px) {
  .vlb-lede-split { grid-template-columns: 1fr; gap: 2.2rem; }
  .vlb-lede-covers { min-height: 0; margin-top: .5rem; }
  .vlb-lede-covers img { width: 124px; height: 186px; }
}

/* 표지 비율 고정 — 『초고』처럼 비율이 다른 표지가 그리드를 어긋나게 했다
   (2026-09-03 수정) 셀렉터에 맨몸 `.vlb-cover` 가 같이 들어 있어서 카드가 아닌
   상세·장 페이지 히어로 표지까지 2/3 틀에 갇혔다. 640px 이하에서 `.vlb-hero` 가
   block 으로 바뀌면 틀만 본문 폭까지 늘어나고 이미지는 max-width(160/120px)에
   묶인 채 height:100% + object-fit:cover 로 좌우가 잘렸다. 카드용으로만 한정한다. */
.vlb-grid .vlb-cover, .vlb-griditem .vlb-cover {
  aspect-ratio: 2 / 3; overflow: hidden; background: #f3f4f3; border-radius: 6px;
}
.vlb-grid .vlb-cover img, .vlb-griditem .vlb-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* 히어로(도서 상세·장·자료 페이지) 표지는 카드가 아니므로 원비율 그대로 둔다 */
.vlb-hero .vlb-cover { aspect-ratio: auto; overflow: visible; background: transparent; }
.vlb-hero .vlb-cover img { width: auto; height: auto; object-fit: fill; }

/* 보조 텍스트 대비 — 기존 회색이 흰 배경 대비 3.4:1 로 WCAG AA 미달이었다 */
:root { --vlb-muted: #5f6461; }
.vlb-byline, .vlb-readlist-meta, .vlb-termcard-desc { color: #5f6461; }

/* 장 상단 컴팩트 구매 안내 */
.vlb-minibuy {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  justify-content: space-between; margin: 1.6rem 0 0;
  padding: .7rem 1rem; border: 1px solid var(--vlb-line-soft, #ececec);
  border-radius: 10px; background: #fafbfa; font-size: .86rem;
}
.vlb-minibuy-label { color: #5f6461; }
.vlb-minibuy-label b { color: #1f3d33; font-weight: 700; margin-left: .35em; }
.vlb-minibuy-links { display: flex; gap: .45rem; }
.vlb-minibuy-links a {
  padding: .26rem .7rem; font-size: .8rem; font-weight: 600; text-decoration: none;
  color: #1f3d33; border: 1px solid rgba(31,61,51,.22); border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.vlb-minibuy-links a:hover { background: #1f3d33; color: #fff; }
@media (max-width: 560px) { .vlb-minibuy { flex-direction: column; align-items: flex-start; } }

/* 검색창 */
.vlb-search { display: flex; gap: .5rem; margin: 0 0 1.4rem; max-width: 30rem; }
.vlb-search input[type="search"] {
  flex: 1; min-width: 0; padding: .62rem .9rem; font-size: .9rem;
  border: 1px solid var(--vlb-line-soft, #ececec); border-radius: 10px;
  background: #fff; color: inherit; font-family: inherit;
}
.vlb-search input[type="search"]:focus {
  outline: none; border-color: var(--vlb-accent, #1f6f4a);
  box-shadow: 0 0 0 3px rgba(31,111,74,.09);
}
.vlb-search button {
  padding: .62rem 1.05rem; font-size: .88rem; font-weight: 650; white-space: nowrap;
  color: #fff; background: var(--vlb-accent, #1f6f4a);
  border: 0; border-radius: 10px; cursor: pointer;
}
.vlb-search button:hover { opacity: .9; }

/* 분야·저자 필터 칩 */
.vlb-filters { margin: 0 0 2rem; display: flex; flex-direction: column; gap: .55rem; }
.vlb-filters-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.vlb-filters-label {
  flex: 0 0 2.6rem; font-size: .78rem; font-weight: 650;
  color: var(--vlb-muted, #5f6461);
}
.vlb-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .26rem .68rem; font-size: .82rem; text-decoration: none;
  color: #3a3f3c; background: #f4f5f4;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.vlb-chip span { font-size: .72rem; opacity: .55; }
.vlb-chip:hover { background: #e9ebe9; }
.vlb-chip.is-on {
  color: #fff; background: var(--vlb-accent, #1f6f4a);
  border-color: var(--vlb-accent, #1f6f4a);
}
.vlb-chip.is-on span { opacity: .75; }

/* 검색 결과 목록 */
.vlb-searchlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.vlb-searchlist a {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .9rem 1rem; text-decoration: none; color: inherit;
  border: 1px solid var(--vlb-line-soft, #ececec); border-radius: 11px; background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.vlb-searchlist a:hover { border-color: var(--vlb-accent, #1f6f4a); transform: translateY(-1px); }
.vlb-searchlist-cover { flex: 0 0 auto; }
.vlb-searchlist-cover img {
  width: 44px; height: 66px; object-fit: cover; border-radius: 3px;
  border: 1px solid rgba(0,0,0,.07); display: block;
}
.vlb-searchlist-body { min-width: 0; }
.vlb-searchlist-title { display: block; font-weight: 650; font-size: .97rem; line-height: 1.42; }
.vlb-searchlist-book { display: block; margin-top: .2rem; font-size: .78rem; color: var(--vlb-muted, #5f6461); }
.vlb-searchlist-sum { display: block; margin-top: .35rem; font-size: .85rem; line-height: 1.6; color: var(--vlb-muted, #5f6461); }

@media (max-width: 560px) {
  .vlb-search { max-width: none; }
  .vlb-filters-label { flex-basis: 100%; }
}

/* 각주 */
.vlb-fnref a { text-decoration: none; color: var(--vlb-accent, #1f6f4a); font-weight: 600; }
.vlb-fnref a:hover { text-decoration: underline; }

/* 모바일 메뉴 오버레이 (자체 구현) */
.vlb-navpanel {
  position: fixed; inset: 0; z-index: 99999;
  display: none; flex-direction: column;
  padding: 4.5rem 1.5rem 2rem;
  background: #fff;
}
.vlb-navpanel.is-open { display: flex; }
.vlb-navpanel-close {
  position: absolute; top: 1.1rem; right: 1.2rem;
  width: 2.4rem; height: 2.4rem; font-size: 1.1rem; line-height: 1;
  color: #1f3d33; background: transparent; border: 0; cursor: pointer;
}
.vlb-navpanel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.vlb-navpanel li a {
  display: block; padding: .85rem .2rem; font-size: 1.35rem; font-weight: 650;
  color: #1a1c1b; text-decoration: none; letter-spacing: -0.02em;
  border-bottom: 1px solid #f0f1f0;
}
.vlb-navpanel li a:hover, .vlb-navpanel li a:focus { color: #1f6f4a; }
/* 넓은 화면에서는 열릴 일이 없지만 안전하게 막는다 */
@media (min-width: 900px) { .vlb-navpanel.is-open { display: none; } }

/* 홈 히어로 겹침 수정 — 컨테이너가 640px 라 표지가 본문 위로 올라왔다 (2026-08-31 재점검) */
.vlb-lede-split {
  max-width: 1040px; width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}
.vlb-lede-split .vlb-lede-text-col { min-width: 0; }
.vlb-lede-split .vlb-lede-covers { min-width: 0; }
@media (max-width: 900px) {
  .vlb-lede-split { max-width: none; grid-template-columns: 1fr; }
}

/* 홈·목록 카드 표지 비율 통일 — 『초고』만 길어 그리드가 어긋났다 */
.vlb-grid img,
.vlb-griditem img {
  aspect-ratio: 2 / 3; width: 100%; height: auto;
  object-fit: cover; display: block; border-radius: 6px; background: #f3f4f3;
}

/* 보조 텍스트 대비 — 12px 회색이 흰 배경 대비 3.4:1 이었다 */
.vlb-byline, .vlb-readlist-meta, .vlb-readlist-book,
.vlb-termcard-desc, .vlb-searchlist-book, .vlb-searchlist-sum,
.vlb-minibuy-label { color: #565b58 !important; }

/* 도서 상세 상단 구매 블록 */
.vlb-topbuy {
  margin: 1.15rem 0 0; padding: .85rem 1rem;
  border: 1px solid var(--vlb-line-soft, #ececec); border-radius: 11px;
  background: #fafbfa;
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: center; justify-content: space-between;
}
.vlb-topbuy-price { margin: 0; font-size: .9rem; color: #565b58; }
.vlb-topbuy-price strong { font-size: 1.12rem; color: #1f3d33; margin-right: .4em; }
.vlb-topbuy-price span { font-size: .78rem; opacity: .7; }
.vlb-topbuy-links { margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.vlb-topbuy-links a {
  padding: .38rem .95rem; font-size: .85rem; font-weight: 650; text-decoration: none;
  color: #fff; background: var(--vlb-accent, #1f6f4a); border-radius: 999px;
  transition: opacity .15s ease;
}
.vlb-topbuy-links a:hover { opacity: .88; }

/* 모바일 하단 고정 구매 바 */
.vlb-stickybuy { display: none; }
@media (max-width: 780px) {
  .vlb-stickybuy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    align-items: center; justify-content: space-between; gap: .6rem;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid #e6e6e6; box-shadow: 0 -3px 14px rgba(0,0,0,.06);
  }
  .vlb-stickybuy-title { font-size: .82rem; font-weight: 650; color: #1a1c1b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vlb-stickybuy-links { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
  .vlb-stickybuy-links b { font-size: .82rem; color: #1f3d33; margin-right: .2rem; }
  .vlb-stickybuy-links a {
    padding: .34rem .72rem; font-size: .78rem; font-weight: 650; text-decoration: none;
    color: #fff; background: var(--vlb-accent, #1f6f4a); border-radius: 999px;
  }
  /* 고정 바에 본문이 가리지 않게 */
  body.single-book { padding-bottom: 4rem; }
}

/* 홈 히어로 지표 줄 */
.vlb-lede-facts {
  margin: 1.1rem 0 0; font-size: .82rem; line-height: 1.7; color: #565b58;
  word-break: keep-all;
}
.vlb-lede-facts strong { color: #1f3d33; font-weight: 700; }
.vlb-lede-isbn {
  display: inline-block; margin-left: .4em; padding: .05em .5em;
  font-size: .74rem; font-variant-numeric: tabular-nums;
  color: #1f6f4a; background: rgba(31,111,74,.08); border-radius: 999px;
}

/* 카탈로그 카드 프레임 통일 — 표지 스타일이 권마다 달라 목록이 산만했다 */
.vlb-grid .vlb-cover,
.vlb-griditem .vlb-cover {
  display: block; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 6px; background: #f2f3f2;
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .18s ease, transform .18s ease;
}
.vlb-grid a:hover .vlb-cover,
.vlb-griditem a:hover .vlb-cover {
  box-shadow: 0 8px 22px rgba(0,0,0,.15); transform: translateY(-3px);
}

/* ----------------------------------------- 도서 목록 카드 (2026-09-02)
   표지와 제목만 있어 값과 판매처를 보려면 상세를 한 번 더 눌러야 했다.
   목록에서 바로 판단하고 바로 살 수 있게 발행일·가격·서점 버튼을 얹는다.
   서점 링크는 카드 <a> 안에 넣을 수 없어 형제 요소로 두고, 둘을 감싸는
   .vlb-griditem 을 그리드 셀로 삼는다. */
.vlb-grid .vlb-griditem { display: flex; flex-direction: column; }
.vlb-grid .vlb-griditem > a { display: block; }
.vlb-grid .vlb-grid-meta {
  display: block;
  margin-top: 0.3em;
  font-size: 0.72rem;
  color: var(--vlb-faint);
  font-variant-numeric: tabular-nums;
}
.vlb-grid-buy { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.55em; }
.vlb-grid-buy-link {
  display: inline-block;
  padding: 0.2em 0.55em;
  border: 1px solid var(--vlb-line);
  border-radius: 3px;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--vlb-faint);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.vlb-grid-buy-link:hover { border-color: var(--vlb-accent); color: var(--vlb-accent); }

/* 장 제목 위의 장 번호 라벨 (2026-09-02) */
.vlb-chapter-label {
  margin: 0 0 0.35em;
  font-size: 0.78rem;
  letter-spacing: .02em;
  color: var(--vlb-faint);
}

/* ----------------------------------------- 공유 (2026-09-02)
   외부 SNS 위젯 스크립트를 쓰지 않는다. 평범한 링크와 버튼으로 만든다. */
.vlb-share { margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.vlb-share-h { font-size: 0.8rem; color: var(--vlb-faint); margin: 0 0.5rem 0 0; font-weight: 400; }
.vlb-share-link {
  display: inline-block;
  padding: 0.3em 0.7em;
  border: 1px solid var(--vlb-line);
  border-radius: 3px;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--vlb-faint);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.vlb-share-link:hover { border-color: var(--vlb-accent); color: var(--vlb-accent); }

/* ================================================================ 홈 재설계 (2026-09-04)
 * 과감한 요소는 서가 하나. 나머지는 조용하게.
 * 걷어낸 것: 제목 위 라벨, 제목 부분 강조, CTA 화살표, 가운뎃점 메타, 분야 칩.
 */

.vlb-home { padding-top: 3.25rem; padding-bottom: 4.5rem; }

/* 히어로 텍스트: 한 단, 왼쪽 정렬, 본문 폭 제한 */
.vlb-home .vlb-lede {
  max-width: none; padding: 1.5rem 0 0; border-bottom: 0; margin-bottom: 0;
}
.vlb-home .vlb-lede-title {
  max-width: 14em;
  font-size: clamp(2.1rem, 1.2rem + 3.1vw, 3.4rem);
  font-weight: 800; line-height: 1.16; letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
}
.vlb-home .vlb-lede-text {
  max-width: 38rem; font-size: 1.0625rem; line-height: 1.8;
  color: var(--vlb-muted); margin: 0 0 1.6rem;
}
.vlb-home .vlb-lede-actions { margin: 0; }
.vlb-home .vlb-cta { font-size: 0.9375rem; padding: 0.8em 1.4em; border-radius: 6px; }
.vlb-home .vlb-lede-facts {
  max-width: 38rem; margin: 1.35rem 0 0; font-size: 0.875rem; line-height: 1.75; color: #565b58;
}
.vlb-home .vlb-lede-isbn {
  display: inline; margin: 0; padding: 0; background: none; border-radius: 0;
  font-size: inherit; color: #1f3d33; font-variant-numeric: tabular-nums; font-weight: 600;
}

/* 서가 --------------------------------------------------------------- */
.vlb-shelf {
  --vlb-shelf-w: 112px;
  --vlb-shelf-h: 168px;
  --vlb-shelf-gap: 12px;
  --vlb-shelf-pad: max(1.25rem, calc(50vw - 30rem + 1.25rem));
  position: relative;
  width: 100vw; margin: 2.75rem 0 0 calc(50% - 50vw);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  scroll-padding-left: var(--vlb-shelf-pad);
  scroll-snap-type: x proximity;
}
.vlb-shelf::-webkit-scrollbar { display: none; }
.vlb-shelf-track {
  display: flex; align-items: flex-end;
  width: max-content;
  padding: 1.25rem var(--vlb-shelf-pad) 0;
}
.vlb-shelf-group { display: flex; flex-direction: column; flex: 0 0 auto; }
.vlb-shelf-books {
  display: flex; align-items: flex-end; gap: var(--vlb-shelf-gap);
  padding: 0 2.75rem 0 0;
  border-bottom: 2px solid var(--vlb-ink);
}
.vlb-shelf-group.is-last .vlb-shelf-books { padding-right: 0; }
.vlb-shelf-book {
  display: block; flex: 0 0 auto;
  width: var(--vlb-shelf-w); height: var(--vlb-shelf-h);
  scroll-snap-align: start;
  transition: transform .18s ease;
}
.vlb-shelf-book img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 2px 4px 4px 2px;
  background: #f0f0ee;
  box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 10px 18px -10px rgba(0,0,0,.35);
  border: 0;
}
.vlb-shelf-book:hover { transform: translateY(-6px); }
.vlb-shelf-book:focus-visible { outline: 2px solid var(--vlb-accent); outline-offset: 3px; border-radius: 3px; }
.vlb-shelf-label {
  align-self: flex-start;
  margin-top: 0.55rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--vlb-ink);
  text-decoration: none; word-break: keep-all; white-space: nowrap;
}
.vlb-shelf-label span { font-weight: 400; color: var(--vlb-faint); margin-left: .15em; }
a.vlb-shelf-label:hover { color: var(--vlb-accent); }

/* 서가가 화면 폭을 꽉 쓰므로 가로 스크롤이 새지 않게 한다 */
body:has(.vlb-home) { overflow-x: clip; }

/* 로드 시 한 번: 표지가 선반 위로 올라선다. 앞쪽 12권만 */
@media (prefers-reduced-motion: no-preference) {
  .vlb-shelf-book[style="--i:0"], .vlb-shelf-book[style="--i:1"], .vlb-shelf-book[style="--i:2"], .vlb-shelf-book[style="--i:3"], .vlb-shelf-book[style="--i:4"], .vlb-shelf-book[style="--i:5"], .vlb-shelf-book[style="--i:6"], .vlb-shelf-book[style="--i:7"], .vlb-shelf-book[style="--i:8"], .vlb-shelf-book[style="--i:9"], .vlb-shelf-book[style="--i:10"], .vlb-shelf-book[style="--i:11"] {
    animation: vlb-shelf-rise .55s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i) * 45ms + 120ms);
  }
  @keyframes vlb-shelf-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 640px) {
  .vlb-shelf { --vlb-shelf-w: 92px; --vlb-shelf-h: 138px; --vlb-shelf-gap: 9px; margin-top: 2.1rem; }
  .vlb-shelf-books { padding-right: 2rem; }
  .vlb-home .vlb-lede-text { font-size: 1rem; }
}

/* 섹션 제목: 라벨이 아니라 제목 --------------------------------------- */
.vlb-home .vlb-home-section { margin-top: 4.25rem; }
.vlb-home .vlb-section-h {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.022em; line-height: 1.3;
  color: var(--vlb-ink); margin: 0 0 1.35rem;
}
.vlb-home .vlb-section-row { margin-bottom: 1.35rem; }
.vlb-home .vlb-more { font-size: 0.875rem; }
@media (max-width: 640px) {
  .vlb-home .vlb-home-section { margin-top: 3.25rem; }
  .vlb-home .vlb-section-h { font-size: 1.25rem; }
}

/* 새로 나온 책 ----------------------------------------------------- */
.vlb-newlist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2rem;
}
.vlb-newlist a {
  display: flex; gap: 1rem; align-items: flex-start;
  text-decoration: none; color: var(--vlb-ink);
}
.vlb-newlist .vlb-newlist-cover {
  flex: 0 0 76px; width: 76px; height: 114px; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 2px 4px 4px 2px; background: #f0f0ee;
  box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 8px 14px -8px rgba(0,0,0,.3);
}
.vlb-newlist-body { display: block; min-width: 0; padding-top: .15rem; }
.vlb-newlist-title {
  display: block; font-size: 0.9875rem; font-weight: 700; line-height: 1.45;
  letter-spacing: -0.012em; word-break: keep-all;
}
.vlb-newlist a:hover .vlb-newlist-title { color: var(--vlb-accent); }
.vlb-newlist-sub {
  display: block; margin-top: .3em; font-size: 0.8375rem; line-height: 1.6;
  color: var(--vlb-muted); word-break: keep-all;
}
.vlb-newlist-meta {
  display: flex; gap: .7em; margin-top: .5em; font-size: 0.78rem; color: #565b58;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) { .vlb-newlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vlb-newlist { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---- 2026-09-04 보강: 서가 스크롤 힌트, 표지 제목, 읽을거리 장 번호 ---- */

/* 오른쪽 가장자리를 옅게 지워 "더 있다"를 보이게 한다 */
.vlb-shelf {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 72px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 72px), transparent 100%);
}
/* 마우스를 올리거나 키보드로 고르면 제목이 표지 아래쪽에 뜬다 */
.vlb-shelf-book { position: relative; }
.vlb-shelf-book::after {
  content: attr(title);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6em .5em .5em;
  font-size: .72rem; font-weight: 600; line-height: 1.35; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
  border-radius: 0 0 4px 2px;
  word-break: keep-all; opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.vlb-shelf-book:hover::after, .vlb-shelf-book:focus-visible::after { opacity: 1; }

/* 서가 아래 한 줄: 넘길 수 있다는 것과 분야 목록으로 가는 길 */
.vlb-shelf-hint {
  margin: .9rem 0 0; font-size: .8125rem; line-height: 1.6; color: var(--vlb-faint);
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; word-break: keep-all;
}
.vlb-shelf-hint a { color: var(--vlb-accent); text-decoration: none; font-weight: 600; }
.vlb-shelf-hint a:hover { text-decoration: underline; }

/* 읽을거리: 장 번호는 메타로, 제목은 키워드부터 */
.vlb-readlist-chapter { color: var(--vlb-faint); font-weight: 500; }
.vlb-readlist-chapter::after { content: ""; display: inline-block; width: .55em; }

/* ================================================================ 상세·목록 톤 맞춤 (2026-09-04, v0.32.0)
 * 홈과 같은 규칙: 카드 박스 대신 가로선으로 나눈 편집 섹션, 라벨이 아니라 제목.
 * 구매 블록만 행동 블록으로 남긴다.
 */

.vlb-title { font-size: 2rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; }
body.single-chapter .vlb-title, body.single-resource .vlb-title { font-size: 1.75rem; line-height: 1.3; }
@media (max-width: 640px) {
  .vlb-title, body.single-chapter .vlb-title, body.single-resource .vlb-title { font-size: 1.5rem; }
}

.vlb-card {
  border: 0; border-top: 1px solid var(--vlb-line); border-radius: 0;
  padding: 2rem 0 0; margin: 2.75rem 0 0; background: transparent;
}
.vlb-card h2, .vlb-faq > h2 {
  font-size: 1.25rem !important; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--vlb-ink); margin: 0 0 1rem !important; border: 0; padding: 0;
}
.vlb-card[aria-labelledby="vlb-buy-h"] {
  border-top: 0; background: var(--vlb-bg-soft); border-radius: 10px;
  padding: 1.5rem 1.6rem; margin-top: 2.75rem;
}
@media (max-width: 640px) {
  .vlb-card { padding-top: 1.6rem; margin-top: 2.25rem; }
  .vlb-card[aria-labelledby="vlb-buy-h"] { padding: 1.25rem 1.2rem; }
  .vlb-card h2, .vlb-faq > h2 { font-size: 1.15rem !important; }
}

/* 가운뎃점 대신 간격 */
.vlb-sep { display: inline-block; width: 1.1em; }
.vlb-byline-meta { margin-left: 1.1em; }
.vlb-grid-meta span + span { margin-left: .8em; }
.vlb-linkrow a + a { margin-left: 1.25rem; }

/* ---- 본문 개념도 (2026-09-04) ---- */
.vlb-figure { margin: 2.2rem 0; }
.vlb-figure img {
  display: block; width: 100%; max-width: 720px; height: auto;
  border: 1px solid var(--vlb-line-soft); border-radius: 6px; background: #fff;
}
.vlb-figure figcaption {
  max-width: 720px; margin-top: .65em; font-size: .8375rem; line-height: 1.65;
  color: var(--vlb-muted); word-break: keep-all;
}
@media (max-width: 640px) { .vlb-figure { margin: 1.7rem 0; } }


/* 인용 서지 (2026-09-04). 본문 뒤, 고지문 앞에 조용히 놓인다. */
.vlb-cite{margin:2.4rem 0 0;padding:1rem 1.1rem;border-left:2px solid var(--vlb-rule,#ddd);
  font-size:.9rem;line-height:1.7}
.vlb-cite-head{margin:0 0 .3em;font-size:.78rem;letter-spacing:.04em;color:var(--vlb-faint,#70706a)}
.vlb-cite-body{margin:0;color:var(--vlb-faint,#70706a)}
.vlb-cite-body a{color:inherit}


/* 출판사 자주 묻는 질문 (/faq/, 2026-09-04) */
.vlb-sitefaq{margin:2.4rem 0 0}
.vlb-sitefaq-item{padding:1.4rem 0;border-top:1px solid var(--vlb-rule,#e5e5e0)}
.vlb-sitefaq-item:first-child{border-top:0;padding-top:.4rem}
.vlb-sitefaq-item h3{margin:0 0 .55em;font-size:1.06rem;line-height:1.5}
.vlb-sitefaq-item p{margin:0 0 .7em;line-height:1.85}
.vlb-sitefaq-item p:last-child{margin-bottom:0}

/* 분야·저자 목록의 장 링크 (v0.37.0)
   허브에서 장으로 가는 경로가 하나도 없던 것을 메운다. 카드 아래 작은 줄로만 둔다. */
.vlb-grid-chapters {
  list-style: none;
  margin: 0.5em 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.vlb-grid-chapters li { margin: 0; }
.vlb-grid-chapters a {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--vlb-text-soft, #5b5b5b);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.vlb-grid-chapters a:hover {
  color: var(--vlb-accent);
  border-bottom-color: var(--vlb-accent);
}


/* v0.38.0 — FAQ 질문을 h3 헤딩으로 승격 (GEO: 질문형 헤딩) */
.vlb-faq-item > summary { list-style: none; cursor: pointer; }
.vlb-faq-item > summary::-webkit-details-marker { display: none; }
.vlb-faq-item > summary > .vlb-faq-q {
  display: inline;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: inherit;
  color: inherit;
}
