/* =========================================================
   BOOK PAGE ENHANCEMENTS
   Loads after main.css and reuses its colors, spacing, and
   button/section patterns. Everything here is prefixed epb-.
   ========================================================= */

/* ---------- Buttons, links, stars ---------- */
.epb-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 18px;margin-top:8px}
.epb-button--outline{background:#fff;color:var(--navy);box-shadow:inset 0 0 0 2px rgba(9,39,91,.18)}
.epb-button--outline:hover{background:var(--navy);color:#fff}
.ep-callout .epb-button--outline{background:transparent;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.4)}
.ep-callout .epb-button--outline:hover{background:#fff;color:var(--navy)}
.ep-callout .epb-actions{justify-content:center;margin-top:0}
.epb-text-link{display:inline-flex;align-items:center;gap:8px;color:var(--navy);font-size:15px;font-weight:800;text-decoration:none}
.epb-text-link:hover{color:var(--blue)}
.epb-stars{color:var(--gold);font-size:16px;letter-spacing:2px;line-height:1}

/* ---------- Hero rating line ---------- */
.epb-hero-rating{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:20px;color:var(--muted);font-size:14px;font-weight:700;text-decoration:none}
.epb-hero-rating:hover{color:var(--blue)}
.epb-hero-rating__more{color:var(--blue)}

/* ---------- Reader reviews ---------- */
.epb-reviews{padding:76px 24px 82px;background:var(--navy);color:#fff}
.epb-reviews__inner{max-width:1100px;margin:0 auto}
.epb-reviews__head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:14px 24px;margin-bottom:30px}
.epb-reviews__head h2{margin:10px 0 0;color:#fff;font-size:clamp(30px,3.6vw,42px);line-height:1.1;letter-spacing:-1.3px}
.epb-reviews__head a{color:var(--gold);font-size:14px;font-weight:800;text-decoration:none}
.epb-reviews__head a:hover{color:#fff}
.epb-reviews__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.epb-review{display:flex;flex-direction:column;height:100%;margin:0;padding:26px 26px 24px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.06)}
.epb-review h3{margin:14px 0 10px;color:#fff;font-size:18px;line-height:1.3}
.epb-review blockquote{margin:0 0 20px;padding:0}
.epb-review blockquote p{margin:0;color:rgba(255,255,255,.84);font-size:15px;line-height:1.7}
.epb-review figcaption{margin-top:auto;color:rgba(255,255,255,.7);font-size:13px;line-height:1.4}
.epb-review figcaption strong{color:#fff}

/* ---------- Grouped takeaways ---------- */
.epb-takeaways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.epb-group{padding:28px 30px 12px;background:#fff;border:1px solid rgba(9,39,91,.08);border-radius:18px}
.epb-group__icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin-bottom:16px;border-radius:12px;background:#edf3fc;color:var(--blue)}
.epb-group h3{margin:0;color:var(--navy);font-size:22px}
.epb-group ul{margin:16px 0 0;padding:0;list-style:none}
.epb-group li{display:flex;align-items:flex-start;gap:13px;padding:14px 0;border-top:1px solid rgba(9,39,91,.09);color:var(--ink);line-height:1.5}
.epb-group li::before{content:"";flex:0 0 9px;width:9px;height:9px;margin-top:7px;border-radius:50%;background:var(--gold)}

/* ---------- Author ---------- */
.epb-author{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:center;gap:48px;max-width:900px;margin:0 auto}
.epb-author__photo img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center top;border-radius:22px;box-shadow:0 18px 42px rgba(9,39,91,.14)}
.epb-author h2{margin:0 0 14px;color:var(--navy);font-size:clamp(30px,3.6vw,42px);line-height:1.1;letter-spacing:-1.3px}
.epb-author p{max-width:560px;margin:0 0 18px;color:var(--muted);font-size:17px;line-height:1.7}

/* ---------- Group orders ---------- */
.epb-section--tight{padding:56px 24px}
.epb-group-order{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px 40px;max-width:1100px;margin:0 auto;padding:36px 40px;background:#fff;border:1px solid rgba(9,39,91,.08);border-radius:22px}
.epb-group-order h2{margin:0 0 8px;color:var(--navy);font-size:clamp(26px,3vw,34px);line-height:1.15;letter-spacing:-1px}
.epb-group-order p{max-width:600px;margin:0;color:var(--muted);font-size:16px;line-height:1.65}
.epb-group-order .epb-actions{margin-top:0}

/* ---------- Tablet ---------- */
@media(max-width:900px){
  .epb-reviews{padding:62px 24px 66px}
  .epb-takeaways{grid-template-columns:1fr}
  .epb-author{grid-template-columns:1fr;gap:26px}
  .epb-author__photo{max-width:220px}
  .epb-group-order{padding:30px 26px}
}

/* ---------- Phones: keep the page light ---------- */
@media(max-width:760px){
  .epb-reviews__list{display:flex;gap:12px;margin:0 -24px;padding:0 24px 6px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .epb-reviews__list li{flex:0 0 84%;scroll-snap-align:start}
  .epb-reviews__list li:last-child{margin-right:24px}
}
@media(max-width:600px){
  .epb-hide-mobile{display:none}
  .epb-actions .ep-button{width:100%;justify-content:center}
  .ep-callout .epb-actions{flex-direction:column;align-items:stretch}
  .epb-hero-rating__more{display:none}
  .epb-group{padding:24px 22px 8px}
  .epb-section--tight{padding:44px 20px}
  .epb-group-order .epb-actions{width:100%}
}
