/* Books uses the site's Rubik/Poppins typography, purple hero, yellow accent,
   Bootstrap containers, and shared navigation/footer. Only catalog layout is local. */
.books-page {
  --ink: #212529;
  --muted: #68717b;
  --line: #e7e9ed;
  background: #fff;
  color: var(--ink);
  font-family: 'Rubik', sans-serif;
  line-height: 1.65;
}
.books-page * { box-sizing: border-box; }
.books-page a { color: inherit; }
.books-page a:focus-visible { outline: 3px solid #f6cb42 !important; outline-offset: 5px; }
.books-page img { display: block; max-width: 100%; height: auto; }
.books-page h1, .books-page h2, .books-page h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}
.books-page p { margin: 0 0 1rem; }
.books-hero-section { position: relative; background: #512da8; }
.books-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 150px; padding-bottom: 80px; align-items: center; color: #fff; }
.books-eyebrow { font-size: 11px !important; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #512da8; margin-bottom: 24px !important; }
.books-hero .books-eyebrow { color: #f6cb42; }
.books-hero h1 { font-size: clamp(40px, 4.5vw, 60px); line-height: 1.25; margin: 0 0 28px; color: #fff; }
.books-hero h1 em { font-weight: 500; font-style: normal; color: #f6cb42; }
.books-intro { font-size: 20px; line-height: 1.55; }
.books-hero-description { max-width: 440px; color: rgba(255,255,255,.8); font-size: 15px; margin: 24px 0 30px !important; }
.books-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 4px; padding: 15px 22px; color: #272a33 !important; }
.books-page .books-cta:hover, .books-page .books-buy-primary:hover { color: #272a33 !important; }
.books-format-note { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 18px !important; }
.books-hero-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 510px; }
.books-orbit { position: absolute; width: 430px; height: 430px; max-width: 100%; border-radius: 50%; background: rgba(255,255,255,.06); top: 22px; animation: books-orbit-breathe 8s ease-in-out infinite; }
@keyframes books-orbit-breathe {
  0%, 100% { transform: translateY(6px) scale(.98); opacity: .65; }
  50% { transform: translateY(-6px) scale(1.04); opacity: 1; }
}
.books-orbit:after { content: ''; position: absolute; inset: -18px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.books-hero-cover { position: relative; width: 250px; transform: rotate(-5deg); box-shadow: 15px 22px 28px rgba(20,12,36,.3); border-radius: 2px; overflow: hidden; }
.books-art-caption { position: relative; text-align: center; font-size: 17px; margin: 34px 0 0 !important; line-height: 1.5; }
.books-art-caption > span:first-child { display: block; font-size: 10px; font-weight: 500; letter-spacing: 2px; color: #f6cb42; margin-bottom: 8px; }
.books-art-caption em { font-size: 13px; font-style: normal; color: rgba(255,255,255,.8); }
.books-art-caption .books-featured-title { display: inline; font-size: inherit; font-weight: inherit; letter-spacing: normal; color: inherit; }
.books-page[lang="da"] .books-hero h1 { font-size: clamp(36px, 4vw, 52px); }
.books-page[lang="zh"] .books-hero h1 { font-size: clamp(32px, 4vw, 48px); }
.books-ribbon { background: #fafbfe; border-bottom: 1px solid var(--line); }
.books-ribbon .books-wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 19px; padding-bottom: 19px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.books-ribbon span:before { content: '✦'; margin-right: 14px; color: #512da8; }
.books-catalog { padding-top: 80px; padding-bottom: 70px; scroll-margin-top: 90px; }
.books-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.books-section-heading .books-eyebrow { margin-bottom: 14px !important; }
.books-section-heading h2 { font-size: 30px; margin: 0; line-height: 1.4; }
.books-section-heading h2:after { content: ''; display: block; background: #f6cb42; width: 50px; height: 2px; margin-top: 20px; }
.books-section-heading > p { font-size: 12px; color: var(--muted); margin: 0 0 5px; }
.books-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 28px; }
.books-card { display: flex; flex-direction: column; scroll-margin-top: 90px; }
.books-cover-stage { position: relative; background: #fafbfe; display: flex; align-items: center; justify-content: center; padding: 32px 24px; height: 340px; border-radius: 4px; }
.books-cover-stage > a { height: 100%; display: block; transition: transform .2s; }
.books-cover-stage > a:hover { transform: translateY(-5px); }
.books-cover-stage img { height: 100%; width: auto; box-shadow: 8px 10px 16px rgba(39,42,51,.16); object-fit: contain; }
.books-card-number { position: absolute; left: 15px; top: 12px; font-size: 10px; letter-spacing: 1px; color: #68717b; }
.books-card-copy { padding: 23px 0 0; display: flex; flex-direction: column; flex: 1; }
.books-category { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: #512da8; margin-bottom: 10px !important; }
.books-card h3 { font-size: 24px; line-height: 1.35; margin: 0 0 13px; }
.books-hook { font-size: 15px; line-height: 1.6; font-weight: 500; margin-bottom: 15px !important; }
.books-synopsis { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px !important; }
.books-buy-links { display: flex; gap: 9px; margin-top: auto; }
.books-buy { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid #d4d8de; border-radius: 4px; font-size: 12px; padding: 11px 12px; flex: 1; white-space: normal; }
.books-page .books-buy-primary { color: #272a33; font-size: 12px; }
.books-buy:hover { border-color: #512da8; background: #fafbfe; color: #512da8; }
.books-store-note { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin: 36px 0 0 !important; }
.books-author { background: #fafbfe; padding: 80px 0; scroll-margin-top: 70px; }
.books-author-layout { display: grid; grid-template-columns: 280px 1fr; gap: 70px; align-items: center; }
.books-author-portrait { width: 260px; max-height: 330px; object-fit: cover; border-radius: 4px; }
.books-author h2 { font-size: 36px; line-height: 1.3; margin: 0 0 20px; }
.books-author-lead { font-size: 20px; line-height: 1.6; }
.books-author-layout > div > p:not(.books-eyebrow):not(.books-author-lead) { max-width: 610px; font-size: 14px; color: var(--muted); }
.books-text-link { display: inline-block; font-size: 14px; border-bottom: 2px solid #f6cb42; margin-top: 10px; }
.books-upcoming { padding-top: 80px; padding-bottom: 50px; }
.books-upcoming-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.books-upcoming-card { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; align-items: flex-start; }
.books-upcoming-card > img { width: 100px; flex-shrink: 0; height: 160px; object-fit: contain; object-position: top; box-shadow: 4px 6px 10px rgba(39,42,51,.12); }
.books-upcoming-card h3 { font-size: 21px; line-height: 1.4; margin: 0 0 10px; }
.books-upcoming-card > div > p:not(.books-category) { font-size: 13px; color: var(--muted); }
.books-soon { display: inline-block; font-size: 11px; border: 1px solid #e2d1ee; padding: 3px 10px; border-radius: 4px; color: #512da8; background: #fafbfe; }
.books-page .books-skip { position: fixed; top: -100px; left: 20px; background: #272a33; color: white; padding: 12px; z-index: 1000; }
.books-skip:focus { top: 12px; }
.books-server-nav .navbar-nav { flex-direction: row; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 991px) {
  .books-hero { gap: 24px; padding-top: 120px; }
  .books-hero-cover { width: 220px; }
  .books-orbit { width: 310px; height: 310px; top: 45px; }
  .books-hero-art { min-height: 450px; }
  .books-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .books-section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .books-author-layout { gap: 40px; grid-template-columns: 200px 1fr; }
}
@media (max-width: 767px) {
  .books-hero { grid-template-columns: 1fr; padding-top: 115px; padding-bottom: 45px; gap: 28px; }
  .books-hero h1 { font-size: 38px; }
  .books-eyebrow { font-size: 10px !important; letter-spacing: 1.5px; }
  .books-intro { font-size: 18px; }
  .books-hero-description { font-size: 14px; }
  .books-hero-art { min-height: 420px; }
  .books-hero-cover { width: 205px; }
  .books-orbit { top: 18px; width: 280px; height: 280px; }
  .books-art-caption { margin-top: 26px !important; }
  .books-ribbon .books-wrap { justify-content: center; flex-wrap: wrap; gap: 9px 16px; padding-top: 16px; padding-bottom: 16px; font-size: 9px; letter-spacing: .4px; }
  .books-ribbon span:before { margin-right: 6px; }
  .books-catalog { padding-top: 48px; padding-bottom: 45px; }
  .books-section-heading h2 { font-size: 26px; }
  .books-grid { grid-template-columns: 1fr; gap: 38px; }
  .books-cover-stage { height: 360px; }
  .books-card h3 { font-size: 25px; }
  .books-buy { padding: 14px; }
  .books-author { padding: 45px 0; }
  .books-author-layout { grid-template-columns: 1fr; gap: 30px; }
  .books-author-portrait { width: 170px; max-height: 210px; }
  .books-author h2 { font-size: 30px; }
  .books-upcoming { padding-top: 46px; padding-bottom: 46px; }
  .books-upcoming-grid { grid-template-columns: 1fr; }
  .books-upcoming-card { gap: 20px; }
  .books-upcoming-card > img { width: 85px; height: 136px; }
  .books-upcoming-card h3 { font-size: 20px; }
  .books-desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .books-orbit { animation: none; }
  .books-page * { scroll-behavior: auto !important; transition: none !important; }
}
