/* ============================================================
   유페이퍼 디자인 시안 v3 — "에디토리얼"
   종이의 질감 위에 세리프 디스플레이. 서점이 아니라 서재를 짓는다.
   ============================================================ */

:root {
    --paper: #f7f5f0;        /* 따뜻한 종이 톤 */
    --paper-2: #efece4;
    --ink: #1c1b18;          /* 잉크 블랙 */
    --ink-2: #55524a;
    --ink-3: #8d897e;
    --hair: #dcd8cd;         /* 헤어라인 */
    --accent: #1b7fc9;       /* 브랜드 블루 — 절제된 포인트 */
    --sand: #ece5d6;         /* 밝은 샌드 — 무료 밴드/푸터 배경 */
    --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
    --sans: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.v3-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 스크롤 리빌 */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- 헤더 ---------- */
.v3-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 240, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hair);
}

.v3-topbar {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
}

.v3-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.v3-logo img { width: 32px; height: auto; }

.v3-logo span {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.v3-logo.dark span { color: var(--ink); }

/* 검색바 */
.v3-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 460px;
    height: 44px;
    padding: 0 16px;
    background: var(--paper-2);
    border-radius: 22px;
    color: var(--ink-3);
    transition: box-shadow .15s ease, background .15s ease;
}

.v3-search:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--ink);
}

.v3-search svg { width: 18px; height: 18px; flex-shrink: 0; }

.v3-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
}

.v3-search input::placeholder { color: var(--ink-3); }

.v3-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.v3-top-ico {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 48px;
    padding: 4px 0;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 11px;
    transition: background .15s ease;
}

.v3-top-ico svg { width: 22px; height: 22px; }
.v3-top-ico:hover { background: var(--paper-2); color: var(--ink); }

.v3-login {
    margin-left: 4px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.v3-login:hover { background: #33312b; }

.v3-login.ghost {
    background: #fff;
    color: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.v3-login.ghost:hover { color: var(--ink); background: var(--paper-2); }

/* GNB — 운영 사이트와 동일한 메뉴 구성 */
.v3-gnb { border-top: 1px solid var(--hair); }

.v3-gnb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 52px;
    overflow-x: auto;
    scrollbar-width: none;
}

.v3-gnb ul::-webkit-scrollbar { display: none; }

.v3-gnb a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 52px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color .15s ease;
}

.v3-gnb a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.v3-gnb a:hover { color: var(--ink); }
.v3-gnb a:hover::after, .v3-gnb a.is-active::after { transform: scaleX(1); }
.v3-gnb a.is-active { color: var(--ink); }

.v3-gnb-cate {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 52px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    transition: color .15s ease;
}

.v3-gnb-cate:hover { color: var(--accent); }
.v3-gnb-cate svg { width: 18px; height: 18px; }
.v3-gnb-cate .v3-cate-chev { width: 14px; height: 14px; transition: transform .2s ease; }
.v3-gnb-cate.open .v3-cate-chev { transform: rotate(180deg); }
.v3-gnb-cate.open { color: var(--accent); }

/* 분류 드롭다운: 좌측 1단계 + 우측 2단계 캐스케이드 (컴팩트) */
.v3-cate-panel {
    position: absolute;
    top: 100%;
    left: max(24px, calc((100% - 1200px) / 2 + 24px));
    background: #fff;
    border: 1px solid var(--hair);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 28px 48px -18px rgba(28, 27, 24, .3);
    overflow: hidden;
}

.v3-cate-in { display: flex; }

.v3-cate-t1 {
    list-style: none;
    width: 218px;
    padding: 10px 0;
    background: var(--paper);
    border-right: 1px solid var(--hair);
    max-height: min(64vh, 560px);
    overflow-y: auto;
}

.v3-cate-t1 button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px 10px 22px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    text-align: left;
    transition: color .12s ease, background .12s ease;
}

.v3-cate-t1 button svg { width: 14px; height: 14px; opacity: 0; transition: opacity .12s ease; }

.v3-cate-t1 button:hover,
.v3-cate-t1 button.is-active {
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.v3-cate-t1 button.is-active svg { opacity: 1; color: var(--accent); }

.v3-cate-t2 {
    width: 208px;
    max-height: min(64vh, 560px);
    overflow-y: auto;
}

.v3-cate-pane { display: none; padding: 10px 0; }
.v3-cate-pane.is-active { display: block; }

.v3-cate-pane a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .12s ease, color .12s ease;
}

.v3-cate-pane a:hover { background: var(--paper); color: var(--accent); }

.v3-cate-pane a.v3-cate-all {
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--hair);
    margin-bottom: 4px;
}

/* ---------- 히어로 (v2 "화이트 페이퍼" 히어로 이식) ---------- */
.v2-btn-primary, .v2-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.v2-btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.v2-btn-primary:hover { background: #33312b; }

.v2-btn-ghost {
    background: #fff;
    color: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.v2-btn-ghost:hover { color: var(--ink); }

.v2-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 28px;
    padding: 30px 56px;
    background: linear-gradient(115deg, #f2eee4 0%, #ece6d6 55%, #e3dbc6 100%);
    border: 1px solid var(--hair);
    border-radius: 24px;
    overflow: hidden;
}

.v2-hero-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 11px;
    background: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink-2);
    text-transform: uppercase;
}

.v2-hero h1 {
    font-family: var(--sans);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.v2-hero p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
}

.v2-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* 표지 팬(부채꼴) 스택 */
.v2-hero-covers {
    position: relative;
    width: 340px;
    height: 280px;
    flex-shrink: 0;
}

.v2-hero-covers img {
    position: absolute;
    width: 168px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(28, 27, 24, .3);
}

.v2-hero-covers .c1 { left: 0;    top: 34px; transform: rotate(-9deg); }
.v2-hero-covers .c2 { left: 86px; top: 16px; transform: rotate(-1deg); }
.v2-hero-covers .c3 { left: 172px; top: 0;   transform: rotate(7deg); }

/* 이벤트 도서 카드 팬 — 호버 시 정보 노출 (비율 기반, 좁은 화면에서도 유지) */
.v3-evt {
    position: relative;
    width: min(380px, 100%);
    aspect-ratio: 484 / 300;
    flex-shrink: 0;
}

.v3-evt-card {
    position: absolute;
    display: block;
    width: 31.4%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: 0 14px 30px rgba(28, 27, 24, .28);
    transition: transform .25s ease, box-shadow .25s ease;
}

.v3-evt-card:nth-child(1) { left: 0;     top: 14.7%; transform: rotate(-10deg); z-index: 1; }
.v3-evt-card:nth-child(2) { left: 17.1%; top: 7.3%;  transform: rotate(-5deg);  z-index: 2; }
.v3-evt-card:nth-child(3) { left: 34.3%; top: 4%;    transform: rotate(0deg);   z-index: 3; }
.v3-evt-card:nth-child(4) { left: 51.4%; top: 7.3%;  transform: rotate(5deg);   z-index: 4; }
.v3-evt-card:nth-child(5) { left: 68.6%; top: 14.7%; transform: rotate(10deg);  z-index: 5; }

.v3-evt-card:hover {
    transform: rotate(0deg) translateY(-16px) scale(1.06);
    z-index: 10;
    box-shadow: 0 26px 48px rgba(28, 27, 24, .4);
}

.v3-evt-card img { width: 100%; height: 100%; object-fit: cover; }

.v3-evt-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 34px 12px 12px;
    background: linear-gradient(to top, rgba(20, 18, 15, .92) 55%, rgba(20, 18, 15, 0));
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.v3-evt-card:hover .v3-evt-info { opacity: 1; transform: none; }

.v3-evt-info em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #ffcf8f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-evt-info strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-evt-info > span {
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 섹션 공통 ---------- */
.v3-section { padding: 72px 0 0; }

.v3-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}

.v3-section-head h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.v3-section-head h2 em {
    font-family: var(--sans);
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent);
}

.v3-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-3);
    transition: color .15s ease;
}

.v3-more:hover { color: var(--ink); }

/* ---------- 베스트 ---------- */
.v3-best {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

/* No.1 — 표지만 */
.v3-best-no1 {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(28, 27, 24, .1), 0 18px 36px -10px rgba(28, 27, 24, .32);
    transition: box-shadow .25s ease, transform .25s ease;
}

.v3-best-no1:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(28, 27, 24, .1), 0 28px 52px -12px rgba(28, 27, 24, .42);
}

.v3-best-no1 img { width: 100%; height: 100%; object-fit: cover; }

.v3-best-no1-badge {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    padding: 8px 14px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    border-radius: 8px 0 8px 0;
}

/* 2~10위 리스트 */
.v3-best-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 0 36px;
}

.v3-best-list li { min-width: 0; }

.v3-best-list a {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 2px;
    border-bottom: 1px solid var(--hair);
}

.v3-best-list li:nth-child(3n) a { border-bottom: 0; }

.v3-best-rank {
    width: 34px;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink-3);
    text-align: center;
    flex-shrink: 0;
    transition: color .15s ease;
}

.v3-best-list a:hover .v3-best-rank { color: var(--accent); }

.v3-best-list img {
    width: 66px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(28, 27, 24, .2);
}

.v3-best-item-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.v3-best-item-meta strong {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-best-item-sub {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    font-size: 13px;
    color: var(--ink-3);
}

.v3-best-item-sub > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-best-item-sub b {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.v3-best-item-sub b.free { color: var(--accent); }

/* ---------- 신간 그리드 (5개 × 2단) ---------- */
.v3-shelf {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 34px 20px;
    padding: 6px 2px;
}

.v3-shelf-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: 0 1px 2px rgba(28, 27, 24, .1), 0 8px 20px -6px rgba(28, 27, 24, .22);
    transition: transform .22s ease, box-shadow .22s ease;
}

.v3-shelf-card:hover .v3-shelf-cover {
    transform: translateY(-8px);
    box-shadow: 0 1px 2px rgba(28, 27, 24, .1), 0 22px 36px -10px rgba(28, 27, 24, .34);
}

.v3-shelf-cover img { width: 100%; height: 100%; object-fit: cover; }

.v3-filetype {
    position: absolute;
    right: 7px;
    top: 7px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, .92);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--ink-2);
}

.v3-shelf-card strong {
    display: -webkit-box;
    margin-top: 13px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-shelf-card:hover strong { color: var(--accent); }

.v3-shelf-author {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-shelf-price { display: block; margin-top: 5px; font-size: 13px; font-weight: 700; }
.v3-shelf-price.free { color: var(--accent); }

/* ---------- 연재중 콘텐츠 (챕터스) ---------- */
.v3-serial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.v3-serial-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.v3-serial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 32px -12px rgba(28, 27, 24, .22);
}

.v3-serial-cover {
    width: 82px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--paper-2);
    box-shadow: 0 5px 12px rgba(28, 27, 24, .18);
}

.v3-serial-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-width: 0;
}

.v3-serial-badge {
    align-self: flex-start;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--brand-soft, #eaf4fc);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--accent);
}

.v3-serial-meta strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-serial-card:hover .v3-serial-meta strong { color: var(--accent); }

.v3-serial-author {
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-serial-stat {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.v3-serial-stat i { font-style: normal; margin: 0 4px; color: var(--ink-3); }

.v3-serial-last {
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 이번달 화제의 페이퍼 ---------- */
.v3-paper-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.v3-paper-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.v3-paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 32px -12px rgba(28, 27, 24, .22);
}

.v3-paper-img {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper-2);
}

.v3-paper-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.v3-paper-card:hover .v3-paper-img img { transform: scale(1.05); }

/* 대표 이미지가 없는 페이퍼: 유페이퍼 마크를 은은하게 */
.v3-paper-img img.noimg {
    object-fit: contain;
    padding: 26%;
    opacity: .3;
}

.v3-paper-card strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-paper-card:hover strong { color: var(--accent); }

.v3-paper-domain {
    font-size: 11px;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 무료 샌드 밴드 ---------- */
.v3-band {
    margin-top: 88px;
    padding: 72px 0 84px;
    background: var(--sand);
    color: var(--ink);
}

.v3-free-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.v3-free-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 8px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.v3-free-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px -12px rgba(28, 27, 24, .22);
}

.v3-free-card img {
    width: 78px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(28, 27, 24, .2);
}

.v3-free-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-width: 0;
}

.v3-free-chip {
    align-self: flex-start;
    padding: 2px 9px;
    border: 1px solid #c9e0f2;
    border-radius: 999px;
    background: #eaf4fc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--accent);
}

.v3-free-meta strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-free-meta > span:last-child { font-size: 12px; color: var(--ink-3); }

/* ---------- 진행 중인 기획전 (이벤트 매대) ---------- */
#events { padding-bottom: 88px; }

.v3-event-panel {
    margin-top: 22px;
    padding: 24px 28px 16px;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 20px;
}

.v3-event-panel:first-child { margin-top: 0; }

/* 홀수/짝수 기획전 판을 서로 다른 톤으로 — 매대가 번갈아 보이도록 */
.v3-event-panel:nth-child(even) {
    background: #edf5fb;
    border-color: #d9e7f2;
}

.v3-event-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.v3-event-head h3 {
    flex: 1;
    min-width: 0;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 매대 스트립: 표지만 세워 두고, 호버 시 정보가 떠오른다 */
.v3-event-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 2px 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--hair) transparent;
}

.v3-event-book {
    position: relative;
    flex: 0 0 118px;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: 0 10px 18px -8px rgba(28, 27, 24, .35);
    scroll-snap-align: start;
    transition: transform .2s ease, box-shadow .2s ease;
}

.v3-event-book:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(28, 27, 24, .42);
}

.v3-event-book img { width: 100%; height: 100%; object-fit: cover; }

.v3-event-binfo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 26px 10px 10px;
    background: linear-gradient(to top, rgba(20, 18, 15, .92) 55%, rgba(20, 18, 15, 0));
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.v3-event-book:hover .v3-event-binfo { opacity: 1; transform: none; }

.v3-event-binfo strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-event-binfo > span { font-size: 11px; color: rgba(255, 255, 255, .78); }

/* ============================================================
   내페이퍼 ({loginId}.upaper.kr) — 프로필 홈 + 도서 상세
   ============================================================ */
.v3p-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 66px;
}

.v3p-brand-tag {
    margin-left: 2px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--brand-soft, #eaf4fc);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* 프로필 히어로 */
.v3p-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 28px;
    padding: 34px 40px;
    background: linear-gradient(115deg, #f2eee4 0%, #ece6d6 55%, #e3dbc6 100%);
    border: 1px solid var(--hair);
    border-radius: 24px;
}

.v3p-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(28, 27, 24, .18);
    flex-shrink: 0;
}

.v3p-avatar.noimg { object-fit: contain; padding: 26px; opacity: .4; }

.v3p-hero-meta { min-width: 0; flex: 1; }

.v3p-domain {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink-3);
}

.v3p-hero-meta h1 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.v3p-hero-meta p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3p-stats { display: flex; gap: 32px; margin-top: 14px; }
.v3p-stats dt { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.v3p-stats dd { margin-top: 1px; font-size: 12px; color: var(--ink-3); }

.v3p-hero-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.v3p-hero-actions .v3-login { text-align: center; }

/* 탭 */
.v3p-tabs {
    display: flex;
    gap: 4px;
    margin-top: 40px;
    border-bottom: 1px solid var(--hair);
}

.v3p-tabs button {
    padding: 12px 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-3);
    transition: color .15s ease;
}

.v3p-tabs button em { font-style: normal; font-size: 13px; color: var(--accent); margin-left: 3px; }
.v3p-tabs button:hover { color: var(--ink); }
.v3p-tabs button.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }

.v3p-pane { display: none; padding: 32px 0 72px; }
.v3p-pane.is-active { display: block; }

.v3p-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 72px 24px;
    background: #fff;
    border: 1px dashed var(--hair);
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-3);
}

.v3p-empty strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.v3p-empty-cta { margin-top: 8px; }

/* 브레드크럼 */
.v3p-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--ink-3);
}

.v3p-crumb a { font-weight: 600; color: var(--ink-2); }
.v3p-crumb a:hover { color: var(--accent); }
.v3p-crumb i { font-style: normal; }
.v3p-crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 도서 상세 */
.v3p-detail {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 52px;
    margin-top: 24px;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 24px;
}

.v3p-detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(28, 27, 24, .1), 0 24px 48px -14px rgba(28, 27, 24, .35);
}

.v3p-detail-meta { display: flex; flex-direction: column; min-width: 0; }

.v3p-event {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand-soft, #eaf4fc);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.v3p-detail-meta h1 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.v3p-subtitle { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

.v3p-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--hair);
}

.v3p-specs div { display: flex; gap: 12px; font-size: 14px; min-width: 0; }
.v3p-specs dt { width: 52px; flex-shrink: 0; color: var(--ink-3); }
.v3p-specs dd { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.v3p-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: auto;
    padding-top: 28px;
}

.v3p-price-row strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.v3p-price-row strong.free { color: var(--accent); }
.v3p-price-row span { font-size: 13px; color: var(--ink-3); }

.v3p-buy-actions { display: flex; gap: 10px; margin-top: 16px; }

.v3p-btn-buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 13px;
    background: var(--ink);
    color: var(--paper);
    font-size: 16px;
    font-weight: 700;
    transition: background .15s ease;
}

.v3p-btn-buy:hover { background: #33312b; }

.v3p-btn-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 22px;
    border-radius: 13px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--hair);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .15s ease, background .15s ease;
}

.v3p-btn-sub:hover { color: var(--ink); background: var(--paper-2); }

/* 상세 하단 섹션 */
.v3p-section { margin-top: 56px; }
.v3p-section:last-child { padding-bottom: 80px; }

.v3p-section h2 {
    margin-bottom: 20px;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.v3p-prose {
    max-width: 860px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink-2);
    white-space: pre-line;
}

.v3p-others { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .v3p-detail { grid-template-columns: 260px 1fr; gap: 32px; padding: 26px; }
    .v3p-others { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .v3p-hero { flex-direction: column; text-align: center; padding: 28px 20px; }
    .v3p-hero-actions { flex-direction: row; }
    .v3p-stats { justify-content: center; }
    .v3p-detail { grid-template-columns: 1fr; }
    .v3p-detail-cover { max-width: 240px; margin: 0 auto; }
    .v3p-specs { grid-template-columns: 1fr; }
    .v3p-others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   목록 페이지 (카테고리 / 검색)
   ============================================================ */
.v3l-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 30px;
}

.v3l-head h1 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.v3l-head h1 em { font-style: normal; color: var(--accent); }

.v3l-count { font-size: 14px; font-weight: 600; color: var(--ink-3); }

.v3l-period { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* 하위 분류 칩 */
.v3l-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.v3l-chips a {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--hair);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .12s ease, background .12s ease, box-shadow .12s ease;
}

.v3l-chips a:hover { color: var(--ink); }

.v3l-chips a.is-active {
    background: var(--ink);
    box-shadow: none;
    color: var(--paper);
}

/* 정렬 툴바 */
.v3l-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hair);
}

.v3l-sort { display: flex; gap: 4px; }

.v3l-sort a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
    transition: color .12s ease, background .12s ease;
}

.v3l-sort a:hover { color: var(--ink); }
.v3l-sort a.is-active { color: var(--ink); background: var(--paper-2); }

.v3l-grid { margin-top: 28px; }

.v3l-searchempty { margin-top: 40px; }

/* 페이저 */
.v3l-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 48px 0 80px;
}

.v3l-pager a,
.v3l-pager span.is-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    transition: background .12s ease, color .12s ease;
}

.v3l-pager a:hover { background: var(--paper-2); color: var(--ink); }

.v3l-pager span.is-current {
    background: var(--ink);
    color: var(--paper);
}

.v3l-pager-gap { color: var(--ink-3); }

/* ============================================================
   인증 페이지 (로그인 / 회원가입 / 소셜 아이디 선택)
   ============================================================ */
.v3a-body { background: var(--paper); }

.v3a-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 64px 20px 80px;
    min-height: 100vh;
}

.v3a-logo img { width: 36px; }

.v3a-card {
    width: min(440px, 100%);
    padding: 34px 36px 30px;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 20px;
    box-shadow: 0 24px 48px -24px rgba(28, 27, 24, .18);
}

.v3a-card h1 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.v3a-sub { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

.v3a-error {
    margin-top: 16px;
    padding: 11px 14px;
    background: #fdf1f1;
    border: 1px solid #f0c9c9;
    border-radius: 10px;
    font-size: 13px;
    color: #b23b3b;
}

.v3a-card form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }

.v3a-field { display: flex; flex-direction: column; gap: 6px; }
.v3a-field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }

.v3a-field input {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--hair);
    border-radius: 11px;
    font: inherit;
    font-size: 15px;
    background: var(--paper);
    outline: none;
    transition: border-color .12s ease, background .12s ease;
}

.v3a-field input:focus { border-color: var(--ink); background: #fff; }

.v3a-id-row { display: flex; align-items: center; gap: 8px; }
.v3a-id-row input { flex: 1; min-width: 0; }
.v3a-id-row em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

.v3a-id-status { min-height: 16px; font-size: 12px; color: var(--ink-3); }
.v3a-id-status.ok { color: #1f7a38; }
.v3a-id-status.bad { color: #b23b3b; }

.v3a-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }

.v3a-submit {
    height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.v3a-submit:hover { background: #33312b; }

.v3a-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--ink-3);
    font-size: 12px;
}

.v3a-divider::before, .v3a-divider::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

.v3a-social { display: flex; flex-direction: column; gap: 8px; }

.v3a-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    transition: filter .12s ease;
}

.v3a-social-btn:hover { filter: brightness(.96); }
.v3a-social-btn.kakao { background: #fee500; color: #191919; }
.v3a-social-btn.naver { background: #03c75a; color: #fff; }
.v3a-social-btn.google { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.v3a-social-btn.dev { background: var(--paper-2); color: var(--ink-2); border: 1px dashed var(--hair); }

.v3a-foot { margin-top: 20px; text-align: center; font-size: 13px; color: var(--ink-3); }
.v3a-foot a { font-weight: 700; color: var(--accent); }

.v3a-forgot { margin-top: 12px; text-align: center; font-size: 13px; }
.v3a-forgot a { color: var(--ink-3); }
.v3a-forgot a:hover { color: var(--accent); }

.v3a-ok {
    margin-top: 16px;
    padding: 11px 14px;
    background: #ecf6ef;
    border: 1px solid #c9e6d3;
    border-radius: 10px;
    font-size: 13px;
    color: #1f7a38;
}

.v3a-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--hair);
    border-radius: 11px;
    font: inherit;
    font-size: 15px;
    background: var(--paper);
    outline: none;
    resize: vertical;
    transition: border-color .12s ease, background .12s ease;
}

.v3a-field textarea:focus { border-color: var(--ink); background: #fff; }

.v3a-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.v3a-links a { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.v3a-links a:hover { color: var(--accent); }

.v3a-danger { margin-top: 18px; }
.v3a-danger summary { cursor: pointer; font-size: 13px; color: var(--ink-3); }
.v3a-danger p { margin: 10px 0; font-size: 13px; color: var(--ink-2); }
.v3a-danger-btn {
    height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
    background: #c0392b; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.v3a-danger-btn:hover { background: #a5311f; }

/* 쪽지함 */
.v3n-wrap { padding-bottom: 80px; }
.v3n-grid { display: grid; grid-template-columns: 180px 1fr; gap: 28px; margin-top: 26px; }

.v3n-side { display: flex; flex-direction: column; gap: 4px; }
.v3n-side a {
    padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2);
    transition: background .12s ease, color .12s ease;
}
.v3n-side a:hover { background: var(--paper-2); }
.v3n-side a.is-active { background: var(--ink); color: var(--paper); }

.v3n-compose {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px; margin-bottom: 22px; background: #fff; border: 1px solid var(--hair); border-radius: 16px;
}
.v3n-compose-head { display: flex; gap: 10px; }
.v3n-compose-head input, .v3n-compose textarea {
    flex: 1; min-width: 0; padding: 10px 13px; border: 1px solid var(--hair); border-radius: 10px;
    font: inherit; font-size: 14px; background: var(--paper); outline: none; resize: vertical;
}
.v3n-compose-head input:focus, .v3n-compose textarea:focus { border-color: var(--ink); background: #fff; }
.v3n-compose-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.v3n-notice { font-size: 13px; color: #b23b3b; margin-right: auto; }
.v3n-send { height: 40px; padding: 0 20px; font-size: 14px; }

.v3n-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.v3n-list li { padding: 16px 18px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; }
.v3n-list li.unread { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.v3n-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v3n-who { font-size: 13px; font-weight: 600; color: var(--ink); }
.v3n-who em { font-style: normal; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.v3n-date { font-size: 12px; color: var(--ink-3); }
.v3n-title { display: block; margin-top: 8px; font-size: 15px; }
.v3n-content { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.v3n-read { margin-top: 10px; }
.v3n-read button { border: 0; background: var(--paper-2); border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.v3n-read button:hover { background: var(--hair); }

/* 헤더 쪽지 배지 */
.v3-top-ico { position: relative; }
.v3-noti-badge {
    position: absolute; top: 0; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px;
}

/* 내페이퍼 문의 (QA) */
.v3q-form {
    display: flex; flex-direction: column; gap: 10px; padding: 18px; margin-bottom: 22px;
    background: #fff; border: 1px solid var(--hair); border-radius: 16px;
}
.v3q-form input, .v3q-form textarea {
    padding: 11px 13px; border: 1px solid var(--hair); border-radius: 10px;
    font: inherit; font-size: 14px; background: var(--paper); outline: none; resize: vertical;
}
.v3q-form input:focus, .v3q-form textarea:focus { border-color: var(--ink); background: #fff; }
.v3q-send { height: 42px; align-self: flex-end; padding: 0 22px; font-size: 14px; }

.v3q-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.v3q-list li { padding: 16px 18px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; }
.v3q-list li.answer { margin-left: 28px; background: var(--paper); border-style: dashed; }
.v3q-item-top { display: flex; align-items: baseline; justify-content: space-between; }
.v3q-writer { font-size: 13px; font-weight: 700; color: var(--ink); }
.v3q-date { font-size: 12px; color: var(--ink-3); }
.v3q-title { display: block; margin-top: 8px; font-size: 15px; }
.v3q-content { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }

@media (max-width: 640px) {
    .v3n-grid { grid-template-columns: 1fr; }
    .v3n-side { flex-direction: row; }
    .v3n-compose-head { flex-direction: column; }
}

/* ---------- 알림 ---------- */
.v3-alert {
    margin-top: 24px;
    padding: 14px 18px;
    background: #fbeeee;
    border: 1px solid #ecc7c7;
    border-radius: 8px;
    color: #a83d3d;
    font-size: 14px;
}

/* ---------- 푸터 ---------- */
.v3-footer {
    padding: 52px 0 44px;
    background: var(--sand);
    border-top: 1px solid var(--hair);
    color: var(--ink-2);
}

.v3-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.v3-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.v3-footer-links a {
    font-size: 13px;
    color: var(--ink-2);
    transition: color .15s ease;
}

.v3-footer-links a:hover { color: var(--ink); }

.v3-footer-desc { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

.v3-footer-bottom {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--hair);
    font-size: 12px;
    color: var(--ink-3);
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
    /* 태블릿 이하: 히어로 문구는 숨기고 이벤트 카드 팬만 중앙에 노출 */
    .v2-hero { padding: 44px 40px; justify-content: center; }
    .v2-hero-copy { display: none; }
    .v2-hero-covers { display: none; }
    .v3-best { grid-template-columns: 1fr; gap: 28px; }
    .v3-best-no1 { width: 200px; }
    .v3-best-list { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
    .v3-best-list li:nth-child(3n) a { border-bottom: 1px solid var(--hair); }
    .v3-free-grid { grid-template-columns: 1fr 1fr; }
    .v3-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .v3-paper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .v3-serial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v3-top-ico { display: none; }
}

@media (max-width: 640px) {
    .v3-topbar { height: 60px; gap: 14px; }
    .v3-search { display: none; }
    .v2-hero { padding: 32px 24px; margin-top: 16px; }
    .v2-hero h1 { font-size: 26px; }
    .v2-hero p { font-size: 15px; }
    .v3-section { padding-top: 52px; }
    .v3-section-head h2 { font-size: 24px; }
    .v3-best-no1 { flex-direction: column; }
    .v3-best-no1-cover { width: 140px; }
    .v3-free-grid { grid-template-columns: 1fr; }
    .v3-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
    .v3-paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .v3-serial-grid { grid-template-columns: 1fr; gap: 12px; }
    .v3-cate-panel { left: 12px; right: 12px; }
    .v3-cate-t1 { width: 44%; }
    .v3-cate-t2 { width: 56%; }
    .v3-cate-t1 button { padding: 9px 12px 9px 16px; font-size: 13px; }
    .v3-cate-pane a { padding: 9px 16px; font-size: 13px; }
    .v3-event-panel { padding: 18px 18px 10px; border-radius: 16px; }
    .v3-event-head h3 { font-size: 17px; }
    .v3-event-book { flex-basis: 96px; }
}
