/* 베스트셀러 아카이브 — 정적 프론트엔드 공통 스타일
   (기존 Next.js + Tailwind 디자인을 순수 CSS로 재현) */

:root {
  --navy: #101A2E;
  --navy-card: #172238;
  --navy-soft: #1C2942;
  --cream: #FFF7E8;
  --paper: #F8E9C9;
  --paper-deep: #EED7A9;
  --yellow: #FFD33D;
  --gold: #E7B928;
  --leaf: #7F9A5B;
  --brown: #8A623D;
  --muted: #8792A8;
  --line: rgba(255, 211, 61, 0.28);
  /* TODO: 문장숲 책길 히어로 배경 이미지로 교체 */
  --book-road-hero-image: url("/archive/images/book-road-hero.jpg");

  --bg: #0f172a;
  --fg: #f1f5f9;
  --accent: var(--yellow);

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  --w5xl: 64rem;
  --w3xl: 48rem;
  --w2xl: 42rem;
}

* { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans KR", system-ui, -apple-system, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body[data-page="home"] {
  background: #fff9ee;
}

body[data-page="book"],
body[data-page="author"],
body[data-page="authors"],
body[data-page="search"] {
  background: #fff9ee;
}

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

/* ---------- 레이아웃 ---------- */
main { flex: 1 1 auto; }
.wrap { width: 100%; margin: 0 auto; padding: 0 1.5rem; }
.wrap-5xl { max-width: var(--w5xl); }
.wrap-3xl { max-width: var(--w3xl); }
.wrap-2xl { max-width: var(--w2xl); margin: 0 auto; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

/* ---------- 내비게이션 ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(8px);
}
.nav-inner {
  margin: 0 auto; max-width: var(--w5xl);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem;
}
@media (min-width: 640px) { .nav-inner { padding: 1rem 2rem; } }
.nav-links { display: flex; align-items: baseline; gap: 1.25rem; min-width: 0; }
.nav-link { font-size: 0.875rem; letter-spacing: -0.01em; color: var(--slate-500); white-space: nowrap; transition: color .2s; }
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--accent); font-weight: 700; }

/* 저자·출판사 인라인 링크: 평소엔 은은한 골드 밑줄로 링크임을 알리고, 호버 시 진해짐 */
a.alink {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(155, 118, 25, 0.4);
  transition: color .2s, text-decoration-color .2s;
}
a.alink:hover { color: #9b7619; text-decoration-color: #9b7619; }

/* 은근한 한 줄 CTA (첫 화면 외 페이지) */
.slim-cta {
  margin: 3rem 0 0;
  padding: 2.75rem 0 3.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.slim-cta-link {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color .2s;
  word-break: keep-all;
}
.slim-cta-link strong { color: var(--accent); font-weight: 700; transition: color .2s; }
/* 호버: 주변 문구는 배경색과 같아져 사라지고 '밑줄긋기'(메인 노랑)만 남음 */
.slim-cta-link:hover { color: var(--bg); }
.slim-cta-link:hover strong { color: var(--accent); }

/* ---------- 검색바 ---------- */
.search-form { display: flex; align-items: center; }
.search-form.large { width: 100%; gap: 0.75rem; }
.search-input {
  min-width: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--slate-100);
  outline: none;
}
.search-input::placeholder { color: var(--slate-600); }
.search-input:focus { border-color: var(--accent); }
.search-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent); color: var(--slate-900); border: none;
  cursor: pointer; transition: opacity .2s; font-family: inherit;
}
.search-btn:hover { opacity: 0.9; }
.search-icon {
  display: none;
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* small variant (nav) */
.search-form.small .search-input {
  width: 8rem; border-radius: 9999px 0 0 9999px; padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .search-form.small .search-input { width: 11rem; } }
.search-form.small .search-btn {
  border-radius: 0 9999px 9999px 0; border-left: none;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
}
/* large variant */
.search-form.large .search-input {
  flex: 1 1 auto;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: rgba(255, 247, 232, 0.12);
  border-color: rgba(255, 211, 61, 0.34);
  color: var(--slate-50);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 232, 0.05);
}
.search-form.large .search-input::placeholder {
  color: rgba(241, 245, 249, 0.68);
}
.search-form.large .search-btn {
  flex: 0 0 auto; border-radius: 9999px; padding: 1rem 1.75rem;
  font-size: 1rem; font-weight: 700;
}

/* ---------- 헤더/타이포 ---------- */
.page-title {
  font-weight: 300; letter-spacing: -0.025em; color: var(--slate-50);
  font-size: 2.25rem; line-height: 1.1; margin: 0;
}
@media (min-width: 640px) { .page-title { font-size: 3.75rem; } }
.accent-divider { margin: 2rem 0 0; height: 1px; width: 60px; background: var(--accent); }
.subtitle { margin-top: 2rem; font-size: 0.875rem; letter-spacing: 0.025em; color: var(--slate-500); }

.section-heading {
  margin: 0 0 0.75rem;
  font-size: 1.125rem; font-weight: 500; letter-spacing: 0.025em; color: var(--slate-200);
  display: flex; align-items: center;
}
.section-note { margin: 0 0 3rem; font-size: 0.75rem; line-height: 1.6; color: var(--slate-500); }

.back-link { font-size: 0.875rem; letter-spacing: 0.025em; color: var(--slate-500); transition: color .2s; }
.back-link:hover { color: var(--accent); }

/* ---------- 홈 ---------- */
.book-road-home { background: #fff9ee; }
.home-header {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-h, 65px));
  min-height: calc(100svh - var(--nav-h, 65px));
  padding: clamp(5rem, 10svh, 8rem) 0;
}
.home-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(16, 26, 46, 0.94) 0%, rgba(16, 26, 46, 0.84) 42%, rgba(16, 26, 46, 0.34) 70%, rgba(16, 26, 46, 0.08) 100%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 211, 61, 0.14), transparent 30rem),
    var(--book-road-hero-image),
    linear-gradient(180deg, var(--navy), #111d33);
  background-size: auto, auto, cover, auto;
  background-position: center, center, center right, center;
  background-repeat: no-repeat;
}
@media (min-width: 900px) {
  .home-header {
    grid-template-columns: minmax(460px, 0.9fr) minmax(380px, 1.1fr);
  }
}
.home-copy { position: relative; z-index: 1; max-width: 42rem; }
.home-header .page-title {
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 247, 232, 0.07);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 211, 61, 0.65);
}
.hero-lead {
  margin: 1.75rem 0 0;
  color: var(--cream);
  font-size: clamp(1.25rem, 2.5vw, 1.62rem);
  line-height: 1.55;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.book-road-home .subtitle {
  margin-top: 1.3rem;
  color: rgba(241, 245, 249, 0.62);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.hero-source {
  margin: 0.9rem 0 0;
  color: rgba(241, 245, 249, 0.42);
  font-size: 0.82rem;
  line-height: 1.6;
}
.search-block { max-width: var(--w2xl); margin: 2.3rem 0 0; }

/* hero 하단 스크롤 유도 신호 */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 247, 232, 0.78);
  text-decoration: none;
  transition: color .2s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.hero-scroll:hover { color: var(--accent); }
.hero-scroll-chev { width: 1.6rem; height: 1.6rem; animation: heroBob 1.9s ease-in-out infinite; }
@keyframes heroBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-chev { animation: none; } }
.stats-grid { scroll-margin-top: 1.5rem; }
html { scroll-behavior: smooth; }
.image-placeholder {
  display: grid;
  gap: 0.45rem;
  place-items: center;
  width: min(78%, 30rem);
  padding: 2rem;
  color: rgba(255, 247, 232, 0.86);
  text-align: center;
}
.image-placeholder strong {
  color: var(--yellow);
  font-size: 0.95rem;
}
.image-placeholder span {
  color: rgba(255, 247, 232, 0.58);
  font-size: 0.82rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  min-height: 13.5rem;
  border: 1px solid rgba(255, 211, 61, 0.16);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 84% 14%, rgba(255, 255, 255, 0.18), transparent 6.8rem),
    radial-gradient(ellipse at 18% 100%, rgba(255, 247, 232, 0.08), transparent 8rem),
    linear-gradient(145deg, var(--navy-card), var(--navy-soft));
  box-shadow: 0 18px 44px rgba(16, 26, 46, 0.18);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.stat-icon {
  position: absolute;
  top: 1.15rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent);
  opacity: 0.9;
}
.stat-icon svg {
  width: 2.2rem;
  height: 2.2rem;
}
.stat-card:hover .stat-icon { opacity: 1; }
.stat-card::after {
  content: "";
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.35rem;
  height: 0.2rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.5rem;
  width: 1.45rem;
  height: 0.13rem;
  border-radius: 9999px;
  background: var(--accent);
  opacity: 0.9;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 211, 61, 0.42);
  box-shadow: 0 24px 56px rgba(16, 26, 46, 0.24), 0 0 30px rgba(255, 255, 255, 0.1);
}
.stat-card:hover::after { opacity: 1; }
.stat-value { font-size: 2.1rem; font-weight: 300; color: var(--accent); }
@media (min-width: 640px) { .stat-value { font-size: 2.72rem; } }
.stat-unit { margin-left: 0.125rem; font-size: 1.5rem; }
@media (min-width: 640px) { .stat-unit { font-size: 1.875rem; } }
.stat-name { margin-top: 1rem; color: var(--slate-100); font-size: 0.95rem; font-weight: 700; }
.stat-label { margin-top: 0.35rem; font-size: 0.75rem; line-height: 1.6; letter-spacing: 0.025em; color: rgba(255, 247, 232, 0.58); }
/* 클릭 가능한 통계 카드(홈): 링크지만 밑줄 없이, 호버 시 기존 lift 효과 유지 */
a.stat-card-link { text-decoration: none; cursor: pointer; }

/* 여덟 숲길 허브 카드 */
.forest-path-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .forest-path-grid { grid-template-columns: repeat(2, 1fr); } }
.forest-path-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.4rem 1.25rem;
  border: 1px solid rgba(138, 98, 61, 0.18);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 233, 201, 0.5));
  box-shadow: 0 12px 26px rgba(27, 42, 74, 0.06);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.forest-path-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(27, 42, 74, 0.1); border-color: rgba(138, 98, 61, 0.34); }
.fpc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.fpc-name { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.fpc-genre { flex: 0 0 auto; font-size: 0.7rem; font-weight: 700; color: #9b7619; }
.fpc-top { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.15rem; }
.fpc-top-title { font-size: 0.95rem; font-weight: 700; color: #2c3446; line-height: 1.4; }
.fpc-top-meta { font-size: 0.78rem; color: #687386; }
.fpc-runners { font-size: 0.75rem; color: #9aa3b2; }
.fpc-count { margin-top: 0.3rem; font-size: 0.72rem; font-weight: 700; color: #b08a2e; }
a.weeks { text-decoration: none; transition: background .2s, color .2s; }
.year-road-page a.weeks:hover { background: rgba(255, 211, 61, 0.34); }
/* 숲길 상세의 '해를 따라 만난 책들' 연도 카드: 좁은 폭(wrap-3xl)이라 최대 2열(홈은 3열) */
.year-road-page .year-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .year-road-page .year-grid { grid-template-columns: repeat(2, 1fr); } }
/* 연도 카드 폰트를 '이 숲길에 오래 머문 책' 랭킹 리스트와 동일 크기로(홈 카드는 그대로) */
.year-road-page .year-card .year-num { font-size: 1.125rem; }
.year-road-page .year-card .book-title { font-size: 1rem; }
.year-road-page .year-card .year-weeks { font-size: 0.78rem; }
/* 폰트가 작아진 만큼 카드 높이·여백도 줄여 빈 느낌 방지 */
.year-road-page .year-card { min-height: 0; padding: 1.25rem 1.4rem; }
.year-road-page .year-card .dot { top: 1.45rem; left: 1.4rem; }
.year-road-page .year-card .year-num { padding-left: 1.1rem; }
.year-road-page .year-card .book-title { margin-top: 0.5rem; }
.year-road-page .year-card .year-weeks { padding-top: 0.7rem; }
.year-road-page .year-card::after { bottom: 0.9rem; }

.section-years { padding: 8rem 0 5.5rem; color: var(--navy); }
.book-road-home .section-heading {
  border-left-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.book-road-home .section-note {
  color: #687386;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}
.section-source {
  margin: -0.25rem 0 2.25rem;
  color: #9aa3b1;
  font-size: 0.72rem;
  line-height: 1.6;
}
.year-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .year-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .year-grid { grid-template-columns: repeat(3, 1fr); } }
.year-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 12.5rem;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255, 211, 61, 0.16), transparent 8rem),
    linear-gradient(180deg, #ffffff, rgba(248, 233, 201, 0.6));
  border: 1px solid rgba(138, 98, 61, 0.32);
  border-radius: 1rem;
  padding: 1.55rem 1.65rem;
  box-shadow: 0 16px 34px rgba(27,42,74,0.1);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.year-card::after {
  content: "";
  position: absolute;
  left: 1.75rem; right: 1.75rem; bottom: 1.25rem;
  height: 0.18rem; border-radius: 9999px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.year-card:hover {
  transform: translateY(-5px);
  border-color: rgba(231, 185, 40, 0.45);
  box-shadow: 0 20px 42px rgba(27,42,74,0.12);
}
.year-card:hover::after { opacity: 1; }
.year-card .dot {
  position: absolute; left: 1.65rem; top: 1.75rem;
  height: 0.55rem; width: 0.55rem; border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-28deg);
  box-shadow: 0 0 16px rgba(255, 211, 61, 0.5);
}
.year-card .year-num { padding-left: 1.25rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; color: var(--navy); transition: color .2s; }
.year-card .year-num:hover { color: var(--accent); }
.year-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1rem;
  border: 1px solid rgba(231, 185, 40, 0.18);
  border-radius: 9999px;
  padding: 0.28rem 0.55rem;
  background: rgba(255, 211, 61, 0.14);
  color: #9b7619;
  font-size: 0.72rem;
  font-weight: 800;
}
.year-era {
  margin-top: 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #b07d1a;
  word-break: keep-all;
}
.year-card .book-title { margin-top: 0.6rem; font-size: 1.06rem; font-weight: 800; line-height: 1.45; color: #101a2e; transition: color .2s; word-break: keep-all; }
.year-card a.book-title:hover { color: #b58500; }
.year-card .book-author { margin-top: 0.45rem; font-size: 0.875rem; color: #8a95a5; }
.year-weeks {
  margin-top: auto;
  padding-top: 0.95rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b58500;
  letter-spacing: -0.01em;
}

.section-longstay {
  padding: 0 0 4.8rem;
  /* 상단 padding이 없어 앵커(#longstay) 점프 시 제목이 sticky nav에 가리므로
     scroll-margin-top으로 nav 아래에 오도록 보정 */
  scroll-margin-top: 7rem;
  color: var(--navy);
}
.section-longstay .section-note {
  margin-bottom: 1.8rem;
}
.longstay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 760px) {
  .longstay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(9.6rem, auto);
  }
  .longstay-card-featured {
    grid-row: span 2;
  }
}
.longstay-card {
  position: relative;
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid rgba(138, 98, 61, 0.14);
  border-radius: 1rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 233, 201, 0.58));
  box-shadow: 0 14px 30px rgba(27,42,74,0.06);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.longstay-card-featured {
  border-color: rgba(231, 185, 40, 0.5);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255, 211, 61, 0.2), transparent 7rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 233, 201, 0.68));
  box-shadow: 0 22px 44px rgba(27,42,74,0.12);
}
@media (min-width: 760px) {
  .longstay-card-featured {
    min-height: 20.1rem;
    padding: 1.2rem;
  }
  .longstay-card-featured .longstay-rank {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
  .longstay-card-featured .longstay-title {
    margin-top: 1rem;
    font-size: 1.12rem;
    line-height: 1.35;
  }
  .longstay-card-featured .longstay-author {
    font-size: 0.86rem;
  }
  .longstay-card-featured .longstay-weeks {
    font-size: 0.86rem;
  }
}
.longstay-badge {
  border-radius: 9999px;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 211, 61, 0.16);
  color: #9b7619;
  font-size: 0.7rem;
  font-weight: 800;
}
.longstay-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 185, 40, 0.42);
  box-shadow: 0 20px 38px rgba(27,42,74,0.11);
}
.longstay-rank {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-grid;
  place-items: center;
  border-radius: 9999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}
.longstay-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.65rem;
}
.longstay-title {
  margin-top: 0.45rem;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: normal;
}
.longstay-author {
  color: #7b8798;
  font-size: 0.84rem;
}
.longstay-weeks {
  margin-top: auto;
  color: #9b7619;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 639px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
    padding: 1rem 1.25rem;
  }
  .nav-links {
    flex: 1 1 auto;
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.85rem;
    line-height: 1.35;
  }
  .search-form.small {
    position: relative;
    width: 2.7rem;
    margin-left: auto;
  }
  .search-form.small .search-input {
    display: none;
  }
  .search-form.small.is-open {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .search-form.small.is-open .search-input {
    display: block;
    width: 100%;
    border-radius: 9999px;
    padding: 0.85rem 3.6rem 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 16px;
  }
  .search-form.small .search-btn,
  .search-form.large .search-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 9999px;
    padding: 0;
    transform: translateY(-50%);
  }
  .search-form.small .search-label,
  .search-form.large .search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .search-form.small .search-icon,
  .search-form.large .search-icon {
    display: block;
  }
  /* nav(small) 검색: 노란 동그라미 없이 두껍고 큰 노란 라인 아이콘만 (탭 영역은 유지) */
  .search-form.small .search-btn {
    background: transparent;
    color: var(--accent);
  }
  .search-form.small .search-btn:hover { opacity: 1; }
  .search-form.small .search-icon {
    width: 1.7rem;
    height: 1.7rem;
    stroke-width: 2.4;
  }
  /* hero(large) 검색: nav 돋보기와 같은 두께 비율로, 크기만 약간 더 크게 */
  .search-form.large .search-icon {
    width: 1.55rem;
    height: 1.55rem;
  }
  .home-header {
    min-height: calc(100vh - var(--nav-h, 56px));
    min-height: calc(100svh - var(--nav-h, 56px));
    padding: 4.25rem 0 4.75rem;
  }
  .search-form.large {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .search-form.large .search-input {
    width: 100%;
    padding: 1rem 3.8rem 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--slate-50);
    font-size: 16px;
  }
  .search-form.large .search-input::placeholder {
    color: rgba(226, 232, 240, 0.58);
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    min-height: 11.5rem;
  }
  .section-years {
    padding: 5rem 0 4rem;
  }
  .section-longstay {
    padding-bottom: 5rem;
  }
  .book-road-cta {
    padding-bottom: 5rem;
  }
  .book-road-cta-card {
    min-height: 0;
    padding: 2rem 1.4rem 1.4rem;
    gap: 1.5rem;
  }
  .cta-still-life {
    min-height: 10rem;
  }
}
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.book-road-cta {
  padding: 0 0 6rem;
  background: #fff9ee;
}
.book-road-cta-card {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  min-height: 20rem;
  border: 1px solid rgba(255, 211, 61, 0.24);
  border-radius: 1.5rem;
  padding: 2.2rem;
  background:
    linear-gradient(90deg, rgba(16, 26, 46, 0.94) 0%, rgba(23, 34, 56, 0.82) 54%, rgba(23, 34, 56, 0.22) 100%),
    radial-gradient(ellipse at 84% 42%, rgba(255, 211, 61, 0.34), transparent 18rem),
    linear-gradient(135deg, var(--navy-card), var(--navy));
  box-shadow: 0 24px 60px rgba(27, 42, 74, 0.16);
}
.book-road-cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 26, 46, 0.96) 0%, rgba(16, 26, 46, 0.88) 42%, rgba(16, 26, 46, 0.24) 68%, rgba(16, 26, 46, 0.02) 100%),
    linear-gradient(0deg, rgba(16, 26, 46, 0.08), rgba(16, 26, 46, 0.08));
  pointer-events: none;
}
.book-road-cta-card > div:first-child {
  position: relative;
  z-index: 2;
}
@media (min-width: 760px) {
  .book-road-cta-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    padding: 3.4rem;
  }
}
.cta-kicker {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cta-title {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  line-height: 1.45;
  letter-spacing: -0.05em;
}
.cta-sub {
  margin: 1rem 0 1.8rem;
  color: rgba(255, 247, 232, 0.72);
  font-size: 1rem;
}
.book-road-cta-card .cta-btn {
  display: inline-flex;
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  font-weight: 800;
}
.book-road-cta-card .cta-btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}
.cta-still-life {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 13rem;
  overflow: hidden;
  border-radius: 1.1rem;
  z-index: 0;
}
.cta-still-life img {
  width: min(100%, 28rem);
  height: auto;
  display: block;
  border-radius: inherit;
  filter: saturate(0.96) contrast(0.98);
}
.archive-update-note {
  margin: 1.35rem 0 0;
  color: #8b95a5;
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: center;
}
@media (min-width: 760px) {
  .cta-still-life {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(58%, 44rem);
    min-height: 0;
    border-radius: 0 1.5rem 1.5rem 0;
  }
  .cta-still-life img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 13%, rgba(0, 0, 0, 0.82) 34%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 13%, rgba(0, 0, 0, 0.82) 34%, #000 100%);
  }
}
@media (max-width: 639px) {
  .cta-still-life {
    min-height: 0;
    border-radius: 1rem;
    z-index: 2;
  }
  .cta-still-life img {
    width: 100%;
    max-height: 13rem;
    object-fit: cover;
    object-position: center;
  }
  .book-road-cta-card::after {
    background:
      linear-gradient(180deg, rgba(16, 26, 46, 0.86) 0%, rgba(16, 26, 46, 0.42) 58%, rgba(16, 26, 46, 0.08) 100%);
  }
}

/* ---------- 연도 페이지 ---------- */
.year-road-page {
  background:
    radial-gradient(ellipse at 86% 5%, rgba(255, 211, 61, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff9ee 0%, #fffdf8 46%, #fff9ee 100%);
  color: var(--navy);
}
.year-page-header {
  position: relative;
  padding: 5rem 0 4rem;
}
.year-page-header::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 0.16rem;
  margin-top: 2.25rem;
  border-radius: 9999px;
  background: var(--gold);
}
@media (min-width: 640px) { .year-page-header { padding-top: 7rem; } }
.year-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.year-nav { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.pill {
  border-radius: 9999px; padding: 0.55rem 1rem; letter-spacing: -0.01em;
  border: 1px solid rgba(138, 98, 61, 0.18); color: var(--navy); background: rgba(255,255,255,0.55); transition: all .2s;
}
.pill:hover { border-color: rgba(231, 185, 40, 0.5); color: #9b7619; transform: translateY(-1px); }
.pill.disabled { border-color: rgba(138, 98, 61, 0.08); color: #a9b2bf; pointer-events: none; }
.year-page-title { margin-top: 3.5rem; color: var(--navy); font-weight: 800; }
.year-subtitle { max-width: 32rem; margin: 1rem 0 0; color: #687386; font-size: 1rem; line-height: 1.7; }
.era { margin-top: 0.65rem; font-size: 0.85rem; letter-spacing: 0.01em; color: #8b95a5; }

.highlight-card {
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255, 211, 61, 0.2);
  border-radius: 1.25rem;
  padding: 2.5rem;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(255, 211, 61, 0.18), transparent 14rem),
    linear-gradient(145deg, var(--navy-card), var(--navy-soft));
  box-shadow: 0 22px 58px rgba(16, 26, 46, 0.18);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
@media (min-width: 640px) { .highlight-card { padding: 3.5rem; } }
.highlight-card::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 1.6rem;
  width: 2.3rem;
  height: 0.2rem;
  border-radius: 9999px;
  background: var(--accent);
}
.highlight-card:hover { transform: translateY(-4px); border-color: rgba(255, 211, 61, 0.42); box-shadow: 0 28px 70px rgba(16, 26, 46, 0.24); }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow .dot { height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--accent); }
.eyebrow-text { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; color: var(--paper); }
.highlight-title { margin: 1.5rem 0 0; font-size: 1.875rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--slate-50); transition: color .2s; }
@media (min-width: 640px) { .highlight-title { font-size: 2.25rem; } }
.highlight-card:hover .highlight-title { color: var(--accent); }
.highlight-meta { margin-top: 1rem; font-size: 1rem; color: var(--slate-400); }
.highlight-copy { margin: 1.3rem 0 0; color: rgba(255, 247, 232, 0.7); font-size: 0.95rem; line-height: 1.7; }
.badge-accent { margin-top: 1.4rem; display: inline-flex; align-items: center; border-radius: 9999px; background: var(--accent); padding: 0.5rem 1.1rem; font-size: 0.875rem; font-weight: 800; color: var(--slate-900); }

.year-road-page .section-heading { color: var(--navy); border-left-color: var(--gold); font-weight: 800; }
.year-road-page .section-note { color: #687386; font-size: 0.9rem; }
.year-section-note { margin-bottom: 2.6rem; }
.section-pad { padding-top: 6.5rem; }
.top10 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.year-road-page .top10 { gap: 0.55rem; }
.top10 li { display: flex; align-items: baseline; gap: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1.25rem 0; }
.year-road-page .top10 li {
  align-items: center;
  border: 1px solid rgba(138, 98, 61, 0.12);
  border-radius: 0.9rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 26px rgba(27,42,74,0.04);
  transition: transform .2s, border-color .2s, background .2s;
}
.year-road-page .top10 li:hover { transform: translateY(-2px); border-color: rgba(231, 185, 40, 0.35); background: rgba(255, 253, 248, 0.92); }
.rank-num { width: 2rem; flex: 0 0 auto; font-size: 1.125rem; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--accent); }
.year-road-page .rank-num { font-weight: 800; color: #9b7619; }
.top10 .info { min-width: 0; flex: 1 1 auto; }
.top10 .info a, .top10 .info .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 500; color: var(--slate-100); transition: color .2s; }
.year-road-page .top10 .info a { white-space: normal; color: var(--navy); font-weight: 800; line-height: 1.45; word-break: keep-all; text-decoration-thickness: 0.18em; text-underline-offset: 0.22em; }
.top10 .info a:hover { color: var(--accent); }
.year-road-page .top10 .info a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(255, 211, 61, 0.62); }
.top10 .info p { margin: 0.25rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: var(--slate-500); }
.year-road-page .top10 .info p { color: #8a95a5; }
.weeks { flex: 0 0 auto; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--slate-400); }
.year-road-page .weeks { border-radius: 9999px; padding: 0.42rem 0.72rem; background: rgba(255, 211, 61, 0.16); color: #9b7619; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }

.field-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field-card { display: flex; flex-direction: column; background: rgba(255,255,255,0.03); border-radius: 0.5rem; padding: 1.75rem; }
.year-road-page .field-card { position: relative; overflow: hidden; min-height: 10.9rem; padding: 1.3rem 1.4rem; border: 1px solid rgba(138, 98, 61, 0.14); border-radius: 1rem; background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 233, 201, 0.62)); box-shadow: 0 14px 30px rgba(27,42,74,0.06); transition: transform .2s, border-color .2s, box-shadow .2s; }
.year-road-page .field-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1.35rem;
  width: 1rem;
  height: 1.45rem;
  border-radius: 0 0 0.32rem 0.32rem;
  background: rgba(255, 211, 61, 0.72);
  box-shadow: 0 8px 18px rgba(231, 185, 40, 0.18);
}
.year-road-page .field-card:hover { transform: translateY(-4px); border-color: rgba(231, 185, 40, 0.42); box-shadow: 0 20px 38px rgba(27,42,74,0.11); }
.field-name { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }
.year-road-page .field-name { align-self: flex-start; border-radius: 9999px; padding: 0.28rem 0.6rem; background: rgba(255, 211, 61, 0.14); color: #9b7619; letter-spacing: 0; text-transform: none; font-weight: 800; }
.field-card .ft { margin-top: 1rem; font-size: 1rem; font-weight: 500; line-height: 1.375; color: var(--slate-100); transition: color .2s; }
.year-road-page .field-card .ft { color: var(--navy); font-weight: 800; line-height: 1.45; word-break: keep-all; }
.field-card a.ft:hover { color: var(--accent); }
.field-card .fa { margin: 0.25rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: var(--slate-500); }
.year-road-page .field-card .fa { color: #8a95a5; }
.field-card .fw { margin-top: 0.75rem; font-size: 0.875rem; color: var(--slate-400); }
.year-road-page .field-card .ft { margin-top: 0.7rem; }
.year-road-page .field-card .fw { align-self: flex-end; margin-top: auto; padding-top: 0.7rem; color: #9b7619; font-weight: 800; font-size: 0.82rem; }
/* 빈 숲길 갈래 카드 — 비활성(회색) 톤으로 시각적 무게를 낮춤 */
.year-road-page .field-card-empty {
  background: rgba(138, 98, 61, 0.04);
  border-style: dashed;
  border-color: rgba(138, 98, 61, 0.2);
  box-shadow: none;
}
.year-road-page .field-card-empty::before { display: none; }
.year-road-page .field-card-empty:hover { transform: none; border-color: rgba(138, 98, 61, 0.2); box-shadow: none; }
.year-road-page .field-card-empty .field-name { background: rgba(138, 98, 61, 0.08); color: #aab0ba; }
.field-empty-msg { margin-top: 1rem; font-size: 0.84rem; color: #aeb4be; word-break: keep-all; }
.muted { color: var(--slate-600); font-size: 0.875rem; }
.year-field-section { padding-bottom: 4rem; }
.year-data-note { margin: 0 0 4rem; color: #8b95a5; font-size: 0.78rem; line-height: 1.7; }

/* ===== 책 상세 — 밝은 책길 톤 ===== */
.book-road-page {
  background:
    radial-gradient(ellipse at 86% 5%, rgba(255, 211, 61, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff9ee 0%, #fffdf8 46%, #fff9ee 100%);
  color: var(--navy);
}
.book-page-header { padding: 4.5rem 0 3rem; }
@media (min-width: 640px) { .book-page-header { padding-top: 6.5rem; } }
.book-road-page .book-title-lg { margin-top: 2.4rem; color: var(--navy); font-weight: 800; font-size: 2.1rem; line-height: 1.2; word-break: keep-all; }
@media (min-width: 640px) { .book-road-page .book-title-lg { font-size: 2.6rem; } }
.book-meta { margin: 0.9rem 0 0; color: #687386; font-size: 1rem; }
.book-meta a.alink:hover { color: #9b7619; }
.book-badge { margin-top: 1.1rem; display: inline-flex; align-items: center; border-radius: 9999px; background: rgba(255, 211, 61, 0.18); color: #9b7619; padding: 0.32rem 0.72rem; font-size: 0.72rem; font-weight: 800; }
.book-hero-desc { margin: 0.75rem 0 0; color: #8b95a5; font-size: 0.95rem; line-height: 1.7; }
.book-road-page .section-pad { padding-top: 4.5rem; }
.book-road-page .book-now { padding-top: 1.5rem; }
/* 작가 책길 리스트의 순위 번호 */
.book-road-page .comp-rank { flex-shrink: 0; width: 1.9rem; color: #9b7619; font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.book-road-page .section-heading { color: var(--navy); border-left-color: var(--gold); font-weight: 800; margin-bottom: 0.7rem; }
.book-road-page .section-note { color: #687386; font-size: 0.9rem; margin: 0 0 1.6rem; padding-left: 1rem; line-height: 1.6; }
.book-road-page .section-foot { margin: 1.1rem 0 0; color: #98a1b0; font-size: 0.82rem; line-height: 1.6; }
.book-road-page .muted { color: #98a1b0; }

/* 현재 책 정보 카드 (보조 정보, 위계 낮춤) */
.book-road-page .naver-card { background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(138, 98, 61, 0.16); border-radius: 1rem; padding: 1.6rem; box-shadow: 0 10px 24px rgba(27, 42, 74, 0.05); }
.book-road-page .naver-body { display: flex; flex-direction: column; gap: 1.4rem; }
@media (min-width: 640px) { .book-road-page .naver-body { flex-direction: row; } }
.book-road-page .naver-cover { width: 7.5rem; flex-shrink: 0; align-self: center; border-radius: 0.5rem; box-shadow: 0 8px 20px rgba(27, 42, 74, 0.16); }
@media (min-width: 640px) { .book-road-page .naver-cover { align-self: flex-start; } }
.book-road-page .naver-info h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--navy); line-height: 1.4; word-break: keep-all; }
.book-road-page .naver-info .na { margin: 0.5rem 0 0; color: #687386; font-size: 0.9rem; }
.book-road-page .naver-info .nd { margin: 0.3rem 0 0; color: #98a1b0; font-size: 0.85rem; }
.book-road-page .naver-info .desc { margin: 1rem 0 0; color: #4a5568; font-size: 0.9rem; line-height: 1.7; }
.book-road-page .naver-link { margin-top: 1.2rem; display: inline-flex; border-radius: 9999px; border: 1px solid rgba(138, 98, 61, 0.2); padding: 0.5rem 1rem; color: #9b7619; font-size: 0.85rem; font-weight: 700; transition: all .2s; }
.book-road-page .naver-link:hover { border-color: rgba(231, 185, 40, 0.55); background: rgba(255, 211, 61, 0.12); }

/* 책길 기록 stat 카드 (3 또는 4개) */
/* 모바일 2×2 고정, 데스크톱(≥640px) 4열 한 줄 */
.book-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
@media (min-width: 640px) { .book-stats { grid-template-columns: repeat(4, 1fr); } }
.book-road-page .book-stats .box { background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 233, 201, 0.6)); border: 1px solid rgba(138, 98, 61, 0.18); border-radius: 1rem; padding: 1.5rem 1rem; text-align: center; box-shadow: 0 12px 26px rgba(27, 42, 74, 0.06); }
.book-road-page .book-stats .big { font-size: 1.7rem; font-weight: 800; color: #9b7619; }
.book-road-page .book-stats .big .u { margin-left: 0.1rem; font-size: 1rem; font-weight: 700; }
.book-road-page .book-stats .cap { margin-top: 0.6rem; font-size: 0.78rem; color: #687386; font-weight: 600; }
/* '1위 기록 없음' 빈 카드: 배경·글자를 옅게 해 '없음' 상태임을 자연스럽게 */
.book-road-page .book-stats .box-empty { background: rgba(138, 98, 61, 0.05); border-style: dashed; box-shadow: none; }
.book-road-page .book-stats .box-empty .big { color: #b7bcca; }
.book-road-page .book-stats .box-empty .cap { color: #98a0af; }

/* 연도별 막대 */
.book-road-page .bars { display: flex; flex-direction: column; gap: 0.7rem; }
.book-road-page .bar-row { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.book-road-page .bar-year { width: 3rem; flex-shrink: 0; font-size: 0.85rem; font-weight: 700; color: #687386; transition: color .2s; }
.book-road-page .bar-track { flex: 1; height: 1.1rem; border-radius: 9999px; background: rgba(138, 98, 61, 0.08); overflow: hidden; }
.book-road-page .bar-fill { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--gold), var(--yellow)); }
.book-road-page .bar-weeks { width: 3rem; flex-shrink: 0; text-align: right; font-size: 0.82rem; font-weight: 700; color: #9b7619; }
.book-road-page .bar-row:hover .bar-year { color: #9b7619; }

/* 숲길 갈래별 */
.book-road-page .cat-list { display: flex; flex-direction: column; gap: 0.5rem; }
.book-road-page .cat-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.2rem; border-radius: 0.85rem; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(138, 98, 61, 0.12); }
.book-road-page .cat-row .cn { color: var(--navy); font-weight: 700; font-size: 0.95rem; }
.book-road-page .cat-row .cw { flex-shrink: 0; color: #9b7619; font-weight: 800; font-size: 0.82rem; white-space: nowrap; }

/* 갈래별 기록: 펼쳐지는 목록 + 바로가기 */
.book-road-page .cat-item { border-radius: 0.85rem; }
.book-road-page .cat-toggle { cursor: pointer; list-style: none; transition: border-color .2s, background-color .2s; }
.book-road-page .cat-toggle::-webkit-details-marker { display: none; }
.book-road-page .cat-toggle .cn::before { content: "▸ "; color: #b79150; font-weight: 700; }
.book-road-page details[open] > .cat-toggle .cn::before { content: "▾ "; }
.book-road-page details[open] > .cat-toggle { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.book-road-page .cat-toggle:hover { border-color: rgba(231, 185, 40, 0.5); background: rgba(255, 255, 255, 0.85); }
.book-road-page .cat-books { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.6rem 0.7rem 0.7rem; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(138, 98, 61, 0.12); border-top: none; border-radius: 0 0 0.85rem 0.85rem; }
.book-road-page .cat-book { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.7); transition: background-color .2s; }
.book-road-page .cat-book:hover { background: rgba(231, 185, 40, 0.12); }
.book-road-page .cat-book .cbt { color: var(--navy); font-weight: 600; font-size: 0.9rem; word-break: keep-all; }
.book-road-page .cat-book .cbw { flex-shrink: 0; color: #9b7619; font-weight: 700; font-size: 0.78rem; white-space: nowrap; }

/* 숲길별 강한 출판사 */
.book-road-page .field-pub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.book-road-page .field-pub { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.15rem; border-radius: 0.85rem; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(138, 98, 61, 0.14); transition: transform .2s, border-color .2s, box-shadow .2s; }
.book-road-page .field-pub:hover { transform: translateY(-2px); border-color: rgba(231, 185, 40, 0.45); box-shadow: 0 12px 26px rgba(27, 42, 74, 0.07); }
.book-road-page .field-pub .fp-field { color: #9b7619; font-weight: 800; font-size: 0.8rem; }
.book-road-page .field-pub .fp-lead { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.book-road-page .field-pub .fp-pub { color: var(--navy); font-weight: 800; font-size: 1.05rem; word-break: keep-all; }
.book-road-page .field-pub .fp-weeks { flex-shrink: 0; color: #9b7619; font-weight: 800; font-size: 0.82rem; white-space: nowrap; }
.book-road-page .field-pub .fp-runners { color: #8a95a5; font-size: 0.8rem; }
@media (max-width: 639px) { .book-road-page .field-pub-grid { grid-template-columns: 1fr; } }

/* 출판사 소개 */
.book-road-page .publisher-intro { }
.book-road-page .publisher-intro .intro-label { display: inline-block; margin-bottom: 0.5rem; padding: 0.25rem 0.7rem; border-radius: 9999px; background: rgba(231, 185, 40, 0.16); color: #9b7619; font-size: 0.75rem; font-weight: 800; }
.book-road-page .publisher-intro .intro-body { margin-top: 0.2rem; }
.book-road-page .publisher-intro .intro-body p { color: var(--navy); font-size: 1rem; line-height: 1.85; margin: 0 0 0.7rem; word-break: keep-all; }
.book-road-page .publisher-intro .intro-body p:last-child { margin-bottom: 0; }
.book-road-page .publisher-intro .intro-keywords { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.book-road-page .publisher-intro .intro-chip { padding: 0.35rem 0.8rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(138, 98, 61, 0.18); color: var(--navy); font-size: 0.82rem; font-weight: 600; }
.book-road-page .publisher-intro .intro-source { margin-top: 1rem; color: #9aa3b0; font-size: 0.78rem; }

/* 함께 책길에 오른 책들 */
.book-road-page .companions { display: flex; flex-direction: column; gap: 0.6rem; }
.book-road-page .companion { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(138, 98, 61, 0.14); box-shadow: 0 8px 20px rgba(27, 42, 74, 0.04); transition: transform .2s, border-color .2s, box-shadow .2s; }
.book-road-page .companion:hover { transform: translateY(-2px); border-color: rgba(231, 185, 40, 0.4); box-shadow: 0 14px 30px rgba(27, 42, 74, 0.09); }
.book-road-page .companion .info { min-width: 0; }
.book-road-page .companion .ct { display: block; color: var(--navy); font-weight: 800; font-size: 0.98rem; line-height: 1.4; word-break: keep-all; }
.book-road-page .companion .ca { display: block; margin-top: 0.2rem; color: #8a95a5; font-size: 0.84rem; }
.book-road-page .companion .weeks { flex-shrink: 0; border-radius: 9999px; padding: 0.4rem 0.7rem; background: rgba(255, 211, 61, 0.16); color: #9b7619; font-size: 0.76rem; font-weight: 800; white-space: nowrap; }

/* 작가의 숲 목록 · 검색 페이지(밝은 톤) */
.pill.pill-on { border-color: rgba(231, 185, 40, 0.55); color: #9b7619; background: rgba(255, 211, 61, 0.16); font-weight: 700; }
/* '지금 걷는 작가' 탭 — 앞 셋(골드 정렬)과 성격이 달라 네이비 계열로 구분(온브랜드) */
.pill.pill-recent { border-color: rgba(27, 42, 74, 0.28); color: var(--navy); background: rgba(27, 42, 74, 0.06); }
.pill.pill-recent:hover { border-color: rgba(27, 42, 74, 0.5); color: var(--navy); }
.pill.pill-recent.pill-on { border-color: var(--navy); color: #fff9ee; background: var(--navy); font-weight: 700; }
.author-sorts { margin-top: 2rem; flex-wrap: wrap; }
.book-road-page .results-count { margin: 0 0 1.6rem; color: #687386; font-size: 0.9rem; }
.book-road-page .empty, .book-road-page .loading { padding: 4rem 0; text-align: center; color: #98a1b0; font-size: 1rem; }
.book-road-page .search-block { max-width: none; margin: 2.2rem 0 0; }
.book-road-page .search-form.large .search-input {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(138, 98, 61, 0.22);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 232, 0.4);
}
.book-road-page .search-form.large .search-input::placeholder { color: #98a1b0; }
.book-road-page .search-form.large .search-input:focus { border-color: rgba(231, 185, 40, 0.6); }

/* 주의 문구 */
/* padding-bottom은 0으로 두고 아래 여백은 slim-cta의 margin-top(3rem)에 맡겨,
   디스클레이머 텍스트가 위/아래 구분선과 3rem씩 대칭이 되게 함 */
.book-road-page .disclaimer { margin: 4rem 0 0; border-top: 1px solid rgba(138, 98, 61, 0.14); padding: 3rem 0 0; color: #98a1b0; font-size: 0.8rem; line-height: 1.7; text-align: center; }

/* 밝은 페이지(연도·책 상세)용 슬림 CTA 보정 */
.year-road-page .slim-cta, .book-road-page .slim-cta { border-top-color: rgba(138, 98, 61, 0.18); }
.year-road-page .slim-cta-link, .book-road-page .slim-cta-link { color: #687386; }
.year-road-page .slim-cta-link:hover, .book-road-page .slim-cta-link:hover { color: #fff9ee; }
.year-book-road-cta { padding-top: 0; }
.year-foot-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 3rem 0 5rem; }

@media (max-width: 639px) {
  .year-topbar { align-items: flex-start; flex-direction: column; }
  .year-nav { width: 100%; flex-wrap: wrap; }
  .pill { font-size: 0.82rem; padding: 0.5rem 0.8rem; }
  .year-page-title { margin-top: 2.8rem; font-size: 2.25rem; }
  .highlight-card { padding: 2rem 1.4rem; }
  .year-road-page .top10 li { align-items: flex-start; gap: 0.85rem; flex-wrap: wrap; }
  .year-road-page .top10 .info { flex-basis: calc(100% - 3rem); }
  .year-road-page .weeks { margin-left: 2.85rem; }
  .year-foot-nav { align-items: flex-start; flex-direction: column; padding-bottom: 4rem; }
}

/* ---------- 책 상세 ---------- */
.book-badge { margin-top: 1rem; display: inline-block; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1); padding: 0.25rem 0.75rem; font-size: 0.75rem; letter-spacing: 0.025em; color: var(--slate-500); }
.book-title-lg { margin-top: 3rem; font-size: 1.875rem; font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; color: var(--slate-50); }
@media (min-width: 640px) { .book-title-lg { font-size: 3rem; } }
.naver-card { background: rgba(255,255,255,0.03); border-radius: 0.75rem; padding: 1.75rem; }
@media (min-width: 640px) { .naver-card { padding: 2.25rem; } }
.naver-card .label { margin: 0 0 1.75rem; font-size: 0.75rem; letter-spacing: 0.025em; color: var(--slate-500); }
.naver-body { display: flex; flex-direction: column; gap: 1.75rem; }
@media (min-width: 640px) { .naver-body { flex-direction: row; } }
.naver-cover { width: 8rem; flex: 0 0 auto; align-self: center; border-radius: 0.375rem; background: rgba(255,255,255,0.05); height: auto; }
@media (min-width: 640px) { .naver-cover { align-self: flex-start; } }
.naver-info { min-width: 0; flex: 1 1 auto; }
.naver-info h2 { margin: 0; font-size: 1.125rem; font-weight: 500; line-height: 1.375; color: var(--slate-100); }
.naver-info .na { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate-400); }
.naver-info .nd { margin-top: 0.25rem; font-size: 0.875rem; color: var(--slate-500); }
.naver-info .desc { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate-300); }
.naver-link { margin-top: 1.5rem; display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 1.25rem; font-size: 0.875rem; letter-spacing: 0.025em; color: var(--slate-300); transition: all .2s; }
.naver-link:hover { border-color: var(--accent); color: var(--accent); }

.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat3 .box { border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; padding: 2rem 1rem; text-align: center; }
.stat3 .big { font-size: 1.875rem; font-weight: 300; color: var(--accent); }
.stat3 .big .u { margin-left: 0.125rem; font-size: 1.25rem; }
.stat3 .cap { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.025em; color: var(--slate-500); }

.bars { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.bar-row { display: flex; align-items: center; gap: 1rem; }
.bar-year { width: 3rem; flex: 0 0 auto; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--slate-400); transition: color .2s; }
.bar-row:hover .bar-year { color: var(--accent); }
.bar-track { flex: 1 1 auto; }
.bar-fill { display: block; height: 1.25rem; border-radius: 0.125rem; background: rgba(255,214,0,0.7); transition: background-color .2s; }
.bar-row:hover .bar-fill { background: var(--accent); }
.bar-weeks { width: 2.5rem; flex: 0 0 auto; text-align: right; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--slate-400); }

.cat-list { display: flex; flex-direction: column; }
.cat-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 0; }
.cat-row .cn { font-size: 0.875rem; color: var(--slate-200); }
.cat-row .cw { font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--slate-400); }

.companions { display: flex; flex-direction: column; gap: 0.75rem; }
.companion { display: flex; align-items: baseline; gap: 1rem; background: rgba(255,255,255,0.03); border-radius: 0.5rem; padding: 1rem 1.5rem; transition: background-color .2s; }
.companion:hover { background: rgba(255,255,255,0.08); }
.companion .info { min-width: 0; flex: 1 1 auto; }
.companion .ct { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 500; color: var(--slate-100); }
.companion:hover .ct { color: var(--accent); }
.companion .ca { margin-top: 0.25rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: var(--slate-500); }

.disclaimer { border-top: 1px solid rgba(255,255,255,0.05); padding: 2.5rem 0; font-size: 0.75rem; line-height: 1.6; color: var(--slate-600); }

/* ---------- 검색 결과 ---------- */
.results { display: flex; flex-direction: column; gap: 1rem; }
.result {
  display: flex; flex-direction: column; background: rgba(255,255,255,0.03);
  border-radius: 0.5rem; padding: 1.5rem; transition: background-color .2s;
}
.result:hover { background: rgba(255,255,255,0.08); }
.result .rt { font-size: 1rem; font-weight: 700; color: var(--slate-100); }
.result:hover .rt { color: var(--accent); }
.result .rmeta { margin-top: 0.25rem; font-size: 0.875rem; color: var(--slate-500); }
.result .rstats { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; font-size: 0.875rem; color: var(--slate-400); }
.result .rstats .accent { color: var(--accent); }
.result .rstats .sep { color: var(--slate-600); }
.results-count { margin: 0 0 2rem; font-size: 0.875rem; color: var(--slate-500); }
.empty { padding: 4rem 0; text-align: center; font-size: 1rem; color: var(--slate-500); }

/* ---------- 푸터 ---------- */
.source-footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 1.5rem; text-align: center; font-size: 0.75rem; color: var(--slate-600); }
.source-footer p { margin: 0; }
.source-footer .sf-credit { margin-top: 0.5rem; }
.source-footer a { text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.source-footer a:hover { color: var(--accent); }

.cta-footer { border-top: 1px solid var(--accent); }
.cta-inner { margin: 0 auto; max-width: var(--w5xl); display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 6rem 1.5rem; text-align: center; }
.cta-inner.narrow { max-width: var(--w3xl); padding: 5rem 1.5rem; }
.cta-text { font-size: 1.25rem; font-weight: 300; letter-spacing: 0.025em; color: var(--slate-200); margin: 0; }
.cta-btn { border-radius: 9999px; border: 1px solid var(--accent); padding: 0.75rem 2rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.025em; color: var(--accent); transition: all .2s; }
.cta-btn:hover { background: var(--accent); color: var(--slate-900); }

/* ---------- 로딩/상태 ---------- */
.loading { padding: 6rem 1.5rem; text-align: center; color: var(--slate-500); font-size: 0.875rem; }
.nav-pad-top { padding-top: 5rem; }

/* ---------- 섹션 제목 아이콘 + 생동감(스크롤 등장·데이터 애니메이션) ---------- */
.section-heading .sh-ic {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.35em; height: 1.35em; margin-right: 0.5rem;
  color: var(--accent);
}
.section-heading .sh-ic svg { width: 100%; height: 100%; }
/* 아이콘 색 = 기존 세로바 색(크림 페이지는 골드) */
.book-road-page .section-heading .sh-ic,
.year-road-page .section-heading .sh-ic { color: var(--gold); }
/* 홈 hero full-bleed(100vw) 가 세로 스크롤바 폭만큼 넘쳐 가로 스크롤 생기던 것 차단 */
.book-road-home { overflow-x: clip; }

/* 막대 폭은 --w 로 지정(기본: 즉시 전체 폭) */
.bar-fill { width: var(--w, 0%); }

/* JS 활성(prefers-reduced-motion 아님 + IO 지원) 시에만 애니메이션 */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.reveal-in { opacity: 1; transform: none; }
.js-reveal .bar-fill { width: 0; transition: width 1s cubic-bezier(.22,.61,.36,1) .12s; }
.js-reveal .reveal-in .bar-fill { width: var(--w, 0%); }
