/* 상세 페이지(셀럽·책·그룹·작가) 공용 스타일.
   상세 페이지는 본문 스타일을 페이지 안 <style>에 두고, generate.py의 _v2_detail이 그 색을
   theme.css 변수로 바꿔 준다. 여기에는 그걸로 안 되는 것만 둔다: 글꼴, 상단 바, 알약 단추 등.
   상단 바 모양은 site.css·home.css와 같다. */
:root { --serif: "KoPubWorld Batang", serif; --sans: "Space Grotesk", "KoPubWorld Dotum", sans-serif; }
html { overflow-x: hidden; }
body { font-family: var(--sans) !important; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; word-break: keep-all; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
a { text-underline-offset: 3px; }
p a, li a, td a, dd a, small a { text-decoration: underline; text-decoration-color: var(--border); }
p a:hover, li a:hover, td a:hover, dd a:hover { text-decoration-color: var(--ink); }

/* 상단 바: 본문 칸(860px) 밖으로 화면 끝까지 */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: -20px calc(50% - 50vw) 28px; padding: 18px clamp(16px, 4vw, 48px); font-family: var(--sans); font-size: 13px; }
.bar nav { display: flex; gap: clamp(12px, 2vw, 28px); white-space: nowrap; margin: 0; font-size: 13px; }
.bar nav a { color: var(--soft); text-decoration: none; }
.bar nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.bar .logo { font-family: var(--serif); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.bar .logo::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink) inset; }
.bar .right { justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar .lang { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .bar { grid-template-columns: auto 1fr; row-gap: 12px; }
  .bar nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar .right { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; }
}

/* 단추는 알약 모양, 올렸을 때 튀어 오르지 않게 */
button, .copy-btn, .lang-btn { border-radius: 99px; }
button:hover, .copy-btn:hover { transform: none !important; }

/* 표지 / 책등 전환: 둥근 단추 둘을 둥근 테두리 하나로 감싼다 */
.view-tabs { border-radius: 99px; overflow: hidden; padding: 2px; gap: 2px; }
.view-tabs .vt, .view-tabs .vt + .vt { border: 0; }

/* 본문 맨 위에 남겨 둔 경로 줄(그룹·작가 페이지) */
body > nav { margin: 0 0 16px; font-size: 13px; }

/* 사진이 든 선택 단추(그룹 멤버)는 알약이 아니라 둥근 사각형 */
button.gm { border-radius: 14px; overflow: hidden; }
