/* V18: small, targeted shelf typography refinement based on V17.
   - Keep navigation, art, books, rule cards, positioning and data untouched.
   - Keep dynamic Chinese text as HTML; use native serif faces only (no remote font dependency).
   - On iOS Songti SC may be unavailable until downloaded; CSS cannot force installation. */

/* Prefer recognizably Song-style serif faces; avoid the synthetic over-strokes
   from V16 that partially filled in the serif detail. */
#studentLibrary[data-view="shelf"] .sl-brand.mw-scene-brand > b,
#studentLibrary[data-view="shelf"] .stage-shelf-title h2,
#studentLibrary[data-view="shelf"] .stage-book-caption b,
#studentLibrary[data-view="shelf"] .stage-tarot > span,
#studentLibrary[data-view="shelf"] .sl-nav button span {
  font-family: "Songti SC Regular", "STSongti-SC-Regular", "Songti SC", "STSong", "AR PL SungtiL GB", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", ui-serif, serif !important;
  font-weight:400 !important;
  font-synthesis:none !important;
  -webkit-text-stroke:0 !important;
}

/* Preserve the scroll/ornament geometry, move only the two brand text lines
   another 5px upward compared with V17 (-15px -> -20px). */
#studentLibrary[data-view="shelf"] .sl-brand.mw-scene-brand > b,
#studentLibrary[data-view="shelf"] .sl-brand.mw-scene-brand > small {
  transform:translateY(-20px) !important;
}

/* Shrink the Chinese plaque title exactly 2 CSS px at every viewport width,
   and move the whole bilingual plaque text group down by 8px to preserve
   internal spacing. Decorative plaque and books remain stationary. */
#studentLibrary[data-view="shelf"] .stage-shelf-title {
  transform:translateY(8px) !important;
}
#studentLibrary[data-view="shelf"] .stage-shelf-title h2 {
  font-size:clamp(18px,calc(5vw - 2px),21px) !important;
  line-height:1.12 !important;
}
