/* ReadHub — Children's Books product page (Books layout + green/gold identity). Loaded after product-page.css and book-scene.css. */
/* ── Single children's book page ── */
.csb-page { background: #f0fdf4; min-height: 100vh; padding-bottom: 5rem; }

/* Breadcrumb */
.csb-bc-bar { background: linear-gradient(90deg, #14532d, #16a34a); padding: .9rem 0; }
.csb-bc { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: .45rem; font-size: .8rem; flex-wrap: wrap; }
.csb-bc a { color: rgba(255,255,255,.75); text-decoration: none; }
.csb-bc a:hover { color: #fff; }
.csb-bc .sep { color: rgba(255,255,255,.35); }
.csb-bc .cur { color: #fff; font-weight: 600; }

/* Page wrapper */
.csb-wrap { max-width: 1100px; margin: 2.5rem auto 0; padding: 0 2rem; }

/* Description card (formerly "About This Book") */
.csb-desc-card {
  background: #ffffff; border-radius: 18px;
  box-shadow: 0 2px 6px rgba(17,24,39,.04), 0 12px 36px rgba(6,95,70,.07);
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  margin-bottom: 1.75rem;
  border: 1px solid #e5e7eb;
}
.csb-desc-card > h2,
.csb-desc-card .csb-desc-text {
  max-width: 46rem; margin-left: auto; margin-right: auto;
}
.csb-desc-card > h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 700; color: #000; line-height: 1.2;
  letter-spacing: -.01em;
  margin-top: 0; margin-bottom: 1.75rem; padding-bottom: 1rem;
  position: relative;
}
.csb-desc-card > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; border-radius: 3px; background: #e8a020;
}
.csb-desc-text {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);   /* 17px mobile → 19px desktop */
  font-weight: 400; color: #000; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word; hyphens: manual;
}
.csb-desc-text p { margin: 0 0 1.4em; color: #000; }
.csb-desc-text p:last-child { margin-bottom: 0; }
.csb-desc-text > p:first-child:not(:last-child) { font-size: 1.08em; line-height: 1.75; }
.csb-desc-text a { color: #1e35d8; text-decoration: underline; text-underline-offset: 3px; }
.csb-no-desc { color: #4b5563; font-style: italic; }

/* Rich (editor-formatted) description — only applies when the description contains formatting */
.csb-desc-card .csb-desc-text.sb-rich { color: #000; }
.csb-desc-card .csb-desc-text.sb-rich p { margin: 0 0 1.3em; color: #000; font-size: 1em; }
.csb-desc-card .csb-desc-text.sb-rich > p:first-child { font-size: 1em; }
.csb-desc-card .csb-desc-text.sb-rich p:last-child { margin-bottom: 0; }
.csb-desc-card .csb-desc-text.sb-rich h1, .csb-desc-card .csb-desc-text.sb-rich h2, .csb-desc-card .csb-desc-text.sb-rich h3, .csb-desc-card .csb-desc-text.sb-rich h4, .csb-desc-card .csb-desc-text.sb-rich h5, .csb-desc-card .csb-desc-text.sb-rich h6 {
  font-family: 'Playfair Display', Georgia, serif; color: #000; font-weight: 700;
  line-height: 1.25; letter-spacing: -.01em; margin: 1.6em 0 .55em;
}
.csb-desc-card .csb-desc-text.sb-rich h1 { font-size: 1.9em; }
.csb-desc-card .csb-desc-text.sb-rich h2 { font-size: 1.55em; }
.csb-desc-card .csb-desc-text.sb-rich h3 { font-size: 1.28em; }
.csb-desc-card .csb-desc-text.sb-rich h4, .csb-desc-card .csb-desc-text.sb-rich h5, .csb-desc-card .csb-desc-text.sb-rich h6 { font-size: 1.1em; }
.csb-desc-card .csb-desc-text.sb-rich > :first-child { margin-top: 0; }
.csb-desc-card .csb-desc-text.sb-rich strong, .csb-desc-card .csb-desc-text.sb-rich b { font-weight: 700; }
.csb-desc-card .csb-desc-text.sb-rich em, .csb-desc-card .csb-desc-text.sb-rich i { font-style: italic; }
.csb-desc-card .csb-desc-text.sb-rich u { text-decoration: underline; }
.csb-desc-card .csb-desc-text.sb-rich del, .csb-desc-card .csb-desc-text.sb-rich s, .csb-desc-card .csb-desc-text.sb-rich strike { text-decoration: line-through; }
.csb-desc-card .csb-desc-text.sb-rich mark { background: #fff200; color: #000; padding: 0 .15em; border-radius: 2px; }
.csb-desc-card .csb-desc-text.sb-rich ul, .csb-desc-card .csb-desc-text.sb-rich ol { margin: 0 0 1.3em; padding-left: 1.6em; color: #000; }
.csb-desc-card .csb-desc-text.sb-rich ul { list-style: disc outside; }
.csb-desc-card .csb-desc-text.sb-rich ol { list-style: decimal outside; }
.csb-desc-card .csb-desc-text.sb-rich li { display: list-item; margin: 0 0 .5em; padding: 0; color: #000; }
.csb-desc-card .csb-desc-text.sb-rich li:last-child { margin-bottom: 0; }
.csb-desc-card .csb-desc-text.sb-rich ul:last-child, .csb-desc-card .csb-desc-text.sb-rich ol:last-child { margin-bottom: 0; }
.csb-desc-card .csb-desc-text.sb-rich blockquote { margin: 0 0 1.3em; padding: .2em 0 .2em 1.1em; border-left: 3px solid #e8a020; color: #000; }
.csb-desc-card .csb-desc-text.sb-rich hr { border: 0; border-top: 1px solid #000; margin: 1.6em 0; }
.csb-desc-card .csb-desc-text.sb-rich a { color: #1e35d8; text-decoration: underline; text-underline-offset: 3px; }



/* Related books */
.csb-related-card { background: #fff; border-radius: 20px; box-shadow: 0 4px 32px rgba(6,95,70,.08); padding: 2.25rem; border: 1px solid #dcfce7; }
.csb-related-card h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 900; color: #111827; margin-bottom: 1.5rem; }
.csb-rel-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
.csb-rel-book { background: #f0fdf4; border-radius: 12px; overflow: hidden; text-decoration: none; transition: all .22s; border: 1px solid transparent; }
.csb-rel-book:hover { transform: translateY(-4px); border-color: #16a34a; box-shadow: 0 8px 24px rgba(6,95,70,.14); }
.csb-rel-cover { width: 100%; height: auto; background: transparent; display: block; }
.csb-rel-cover-ph { width: 100%; aspect-ratio: 2/3; background: linear-gradient(135deg,#16a34a,#4ade80); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.csb-rel-body { padding: .85rem; }
.csb-rel-title { font-size: .83rem; font-weight: 800; color: #16a34a; line-height: 1.3; display: block; margin-bottom: .3rem; }
.csb-rel-author { font-size: .74rem; color: #9aa3b8; display: block; margin-bottom: .6rem; }
.csb-rel-btns { display: flex; gap: .35rem; }
.csb-rel-btn-r { flex: 1; text-align: center; background: #16a34a; color: #fff; padding: .38rem .3rem; border-radius: 6px; font-size: .7rem; font-weight: 700; text-decoration: none; transition: background .18s; }
.csb-rel-btn-r:hover { background: #14532d; }
.csb-rel-btn-v { flex: 1; text-align: center; background: #f5c518; color: #111; padding: .38rem .3rem; border-radius: 6px; font-size: .7rem; font-weight: 700; text-decoration: none; transition: all .18s; }
.csb-rel-btn-v:hover { background: #e8a020; color: #fff; }

/* Responsive */
@media(max-width:860px) {
  .csb-rel-grid { grid-template-columns: repeat(2,1fr); }
  .csb-wrap { padding: 0 1.25rem; }
  .csb-desc-card { border-radius: 14px; }
}
@media(max-width:480px) {
  .csb-rel-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  }

/* ═══ Books layout, Children's colours ═══ Everything below is scoped to .single-childrens_books.
   green #16a34a / #15803d / dark #14532d · mint #f0fdf4 / #dcfce7 · gold #f5c518 / #e8a020 · amber #d97706 */
.csb-page .csb-wrap{max-width:1240px}
@media(min-width:1500px){.csb-page .csb-wrap{max-width:1440px}}

/* titles */
.single-childrens_books .rhp-title{color:#14532d}
.single-childrens_books .rhp-sub{color:#d97706}
.single-childrens_books .rhp-author b{color:#16a34a}
.single-childrens_books .rhp-prev h2{color:#14532d}
.single-childrens_books .rhp-card{border-color:#dcfce7;box-shadow:0 4px 24px rgba(6,95,70,.09)}
.single-childrens_books .rhp-note{color:#4b5563}

/* share (green), sample (green), spec icons */
.single-childrens_books .rhp .rhp-meta-row .rhp-share,
.single-childrens_books .rhp .rhp-meta-row .rhp-share:hover,
.single-childrens_books .rhp .rhp-meta-row .rhp-share:focus-visible{background:linear-gradient(135deg,#22c55e,#15803d)}
.single-childrens_books .rhp .rhp-sample{background:linear-gradient(135deg,#15803d,#16a34a 55%,#22c55e);box-shadow:0 8px 22px rgba(22,163,74,.42)}
.single-childrens_books .rhp .rhp-sample:hover,.single-childrens_books .rhp .rhp-sample:focus-visible{box-shadow:0 12px 28px rgba(22,163,74,.55)}
.single-childrens_books .rhp-info{border-color:#dcfce7}
.single-childrens_books .rhp-info svg{color:#16a34a}
.single-childrens_books .rhp-i-pages svg{color:#e8a020}
.single-childrens_books .rhp-i-pub svg{color:#15803d}
.single-childrens_books .rhp-i-isbn svg{color:#d97706}
.single-childrens_books .rhp-badge{background:#f0fdf4;color:#16a34a;border-color:#bbf7d0}

/* carousel arrows + dots */
.single-childrens_books .rhp .rhp-stage.rh-scene .rhp-cbtn{color:#14532d}
.single-childrens_books .rhp .rhp-stage.rh-scene .rhp-dot.is-on::before{background:#16a34a}
.single-childrens_books .rhp .rhp-stage.rh-scene .rhp-dot:focus-visible,.single-childrens_books .rhp .rhp-cbtn:focus-visible{outline-color:#16a34a}

/* desktop: white presentation card on the mint page */
@media(min-width:861px){
  .single-childrens_books .rhp .rhp-stage.rh-scene{--rh-pt:1.5rem;padding-top:1.5rem;background:#fff;border:1px solid #dcfce7;border-radius:20px;box-shadow:0 4px 32px rgba(6,95,70,.10)}
}

/* back to library (kept from the previous page) */
.csb-back{margin:0 0 1.75rem}
.csb-back a{display:inline-flex;align-items:center;gap:.45rem;min-height:46px;padding:.7rem 1.4rem;border-radius:12px;background:#16a34a;color:#fff;font:700 .95rem 'Source Sans 3',system-ui,sans-serif;text-decoration:none;transition:background .2s}
.csb-back a:hover,.csb-back a:focus-visible{background:#14532d;outline:none}

/* mobile / tablet (≤860px): same stacking as Books, Children's colours */
@media(max-width:860px){
  .csb-page{overflow-x:clip}
  .csb-page .csb-wrap{margin-top:0}
  .single-childrens_books .rhp .rhp-title .rhp-t2{color:#16a34a}
  .single-childrens_books .rhp .rhp-sub{color:#d97706;border-left-color:#f5c518}
  .single-childrens_books .rhp .rhp-author b{color:#16a34a}
  .single-childrens_books .rhp .rhp-author::before{background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><circle cx='16' cy='16' r='16' fill='%2316a34a'/><circle cx='16' cy='12' r='4.8' fill='%23fff'/><path d='M7 25.500c.9-5 4.400-7.200 9-7.200s8.100 2.200 9 7.200A12 12 0 0 1 16 28a12 12 0 0 1-9-2.500Z' fill='%23fff'/></svg>") center/cover}
  .single-childrens_books .rhp .rhp-tc{padding:1.15rem 1rem 1.05rem;border:1px solid #dcfce7;border-radius:22px;background:#fff;box-shadow:0 6px 18px rgba(6,95,70,.08)}
  .single-childrens_books .rhp .rhp-sample{background:linear-gradient(135deg,#15803d,#16a34a 60%,#22c55e);box-shadow:0 6px 16px rgba(22,163,74,.4),inset 0 1px 0 rgba(255,255,255,.28)}
  .single-childrens_books .rhp .rhp-meta-row,.single-childrens_books .rhp .rhp-info,.single-childrens_books .rhp .rhp-buybox{border-color:#dcfce7}
  .csb-desc-card{border-radius:18px}
  .csb-back a{width:100%;justify-content:center}
}
@media(min-width:600px) and (max-width:860px){.csb-rel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
