/* shelf.css — 번역 서가(translations) */
.sh-hero { max-width: 780px; margin: 0 0 40px; }
.sh-kicker { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-tertiary); margin: 0 0 14px; }
.sh-hero h1 { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; color: var(--ink); margin: 0 0 18px; letter-spacing: -.01em; }
.sh-lede { font-size: 17px; line-height: 1.8; color: var(--ink-muted); margin: 0 0 10px; word-break: keep-all; }
.sh-lede b { color: var(--ink); font-weight: 600; }
.sh-by { font-size: 13px; color: var(--ink-tertiary); margin: 0; }

.sh-tools { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 0; margin-bottom: 8px; background: color-mix(in srgb, var(--canvas) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.sh-search { flex: 1 1 320px; }
.sh-search input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 999px; padding: 11px 18px; outline: none; }
.sh-search input:focus { border-color: var(--ink-tertiary); }
.sh-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-chip { font-size: 13px; color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 12px; text-decoration: none; white-space: nowrap; }
.sh-chip b { color: var(--ink-tertiary); font-weight: 500; margin-left: 2px; }
.sh-chip:hover { color: var(--ink); border-color: var(--ink-tertiary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.sh-shelf { margin: 48px 0 0; padding: 0; scroll-margin-top: 130px; }
.sh-shelf-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--hairline); padding-bottom: 12px; margin-bottom: 22px; }
.sh-shelf-head h2 { font-family: 'Noto Serif KR', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }
.sh-shelf-head span { font-size: 13px; color: var(--ink-tertiary); }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }

/* 책 표지 */
.sh-book {
  --sp: #24527a;
  position: relative; display: flex; flex-direction: column; min-height: 300px;
  padding: 22px 20px 18px 30px; border-radius: 3px 8px 8px 3px;
  background: linear-gradient(90deg, rgba(0,0,0,.07), transparent 7px), #fbf9f4;
  color: #1d2230; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 14px 30px -14px rgba(0,0,0,.6);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s;
}
.sh-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--sp); border-radius: 3px 0 0 3px; box-shadow: inset -2px 0 0 rgba(255,255,255,.18); }
.sh-book:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 24px 40px -16px rgba(0,0,0,.7); }
.sh-book:active { transform: translateY(-1px); }
.sh-t-S { --sp: #7a2f2f; } .sh-t-R { --sp: #24527a; } .sh-t-G { --sp: #2f5d50; } .sh-t-C, .sh-t-M { --sp: #6a5326; }
.sh-type { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #8a8f99; }
.sh-code { font-family: 'Crimson Pro', Georgia, serif; font-size: 40px; line-height: 1.05; color: var(--sp); margin-top: 14px; }
.sh-rule { display: block; width: 32px; height: 1px; background: #c9c3b4; margin: 14px 0; }
.sh-ko { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 16.5px; line-height: 1.45; color: #1d2230; word-break: keep-all; }
.sh-en { font-family: 'Crimson Pro', Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.35; color: #5b616c; margin-top: 8px; }
.sh-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #8a8f99; border-top: 1px solid #e6e1d5; }
.sh-go { color: var(--sp); font-weight: 600; white-space: nowrap; }
.sh-book[hidden], .sh-shelf[hidden] { display: none; }

.sh-empty { color: var(--ink-tertiary); padding: 40px 0; }
.sh-note { margin: 56px 0 0; font-size: 13px; color: var(--ink-tertiary); line-height: 1.7; max-width: 780px; }
.sh-note a { color: var(--ink-muted); text-decoration: underline; }

@media (max-width: 1024px) { .sh-tools { top: 0; position: static; } }
@media (max-width: 560px) {
  .sh-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sh-book { min-height: 240px; padding: 16px 12px 12px 20px; }
  .sh-book::before { width: 7px; }
  .sh-code { font-size: 28px; }
  .sh-ko { font-size: 14px; }
  .sh-en { font-size: 13px; }
  .sh-foot { flex-direction: column; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .sh-book { transition: none; } }
