/* ════════════════════════════════════════════
   ROSPEX PUBLISHING — Shared Stylesheet
   ════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --nav-bg:    #03264e;
  --bg:        #060D18;
  --surface:   #0B1623;
  --card:      #0F1E2F;
  --border:    #1C3250;
  --gold:      #C9953A;
  --gold-lt:   #DDB865;
  --gold-dim:  #7A5820;
  --cream:     #EDE0C8;
  --text:      #E2D5BE;
  --muted:     #8DADC4;
  --badge-en:  rgba(201,149,58,0.15);
  --badge-ru:  rgba(58,130,201,0.15);
  --radius:    12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; height: 100%; padding: 3px 0; }
.nav-logo img { height: 62px; width: auto; display: block; }
.nav-center { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-center a {
  text-decoration: none; font-size: 14px; font-weight: 400;
  color: rgba(237,224,200,0.72); transition: color 0.2s;
}
.nav-center a:hover { color: var(--cream); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 100px; padding: 3px;
}
.lang-btn {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 100px;
  border: none; cursor: pointer; background: transparent;
  color: rgba(237,224,200,0.5); transition: all 0.18s;
}
.lang-btn.active { background: var(--gold); color: var(--nav-bg); }
.nav-browse {
  background: var(--gold); color: var(--nav-bg);
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background 0.2s;
}
.nav-browse:hover { background: var(--gold-lt); }

/* ─── SECTIONS ─── */
section { padding: 64px 48px; }
.section-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700; line-height: 1.2;
  color: var(--cream); margin-bottom: 12px;
}
.section-sub {
  font-size: 15px; color: var(--muted);
  max-width: 720px; line-height: 1.75;
  margin-bottom: 40px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--gold-dim); background: var(--card); }

/* ─── BOOK CARDS ─── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.book-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  display: flex; flex-direction: column; position: relative;
}
.book-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.book-card-link { text-decoration: none; }
/* When the whole card IS the link (available books), keep the flex-column layout
   so .book-body can flex and the footer pins to the bottom — aligning footers
   across cards of differing description length. */
.book-card.book-card-link { display: flex; flex-direction: column; }
.book-cover {
  width: 100%; aspect-ratio: 2/3;
  overflow: hidden; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.book-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.book-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.4px; padding: 3px 9px;
  border-radius: 100px;
}
.badge-ru  { background: var(--badge-ru); color: #6AAED6; border: 1px solid rgba(58,130,201,0.3); }
.badge-en  { background: var(--badge-en); color: var(--gold-lt); border: 1px solid rgba(201,149,58,0.3); }
.badge-vol { background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }
.badge-bundle { background: rgba(120,200,100,0.1); color: #7CC876; border: 1px solid rgba(120,200,100,0.25); }
.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 600;
  color: var(--cream); line-height: 1.3;
}
.book-author { font-size: 11px; color: var(--muted); }
.book-desc { font-size: 12px; color: var(--muted); line-height: 1.65; flex: 1; }
.book-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 11px; border-top: 1px solid var(--border); margin-top: auto;
}
.book-price {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: var(--gold);
}
.price-coming { font-size: 14px; color: var(--muted); font-weight: 500; }
.btn-buy {
  background: var(--gold); color: var(--bg);
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; text-decoration: none;
  display: inline-block; transition: background 0.2s;
}
.btn-buy:hover { background: var(--gold-lt); }
.btn-notify {
  background: transparent; color: var(--gold-lt);
  font-size: 11px; font-weight: 500;
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--gold-dim); cursor: pointer;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-notify:hover { background: var(--badge-en); }
.coming-overlay {
  position: absolute; top: 10px; right: 10px;
  background: var(--bg); border: 1px solid var(--gold-dim);
  color: var(--gold-lt); font-size: 9px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px; z-index: 2;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  margin: 0 48px;
}

/* ─── PUBLISHER CARDS ─── */
.publisher-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 36px;
}
.publisher-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.publisher-card-icon { font-size: 24px; margin-bottom: 10px; }
.publisher-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 6px;
}
.publisher-card-text { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ─── FOR AUTHORS CTA ─── */
.for-authors-cta {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 36px;
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  margin-top: 16px;
}
.for-authors-cta-icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.for-authors-cta-body { flex: 1; min-width: 280px; }
.for-authors-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--cream); margin-bottom: 6px;
}
.for-authors-cta p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.for-authors-cta-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ─── NOTIFY ─── */
.notify-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.notify-input {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--cream);
  outline: none; transition: border-color 0.2s;
}
.notify-input::placeholder { color: var(--muted); }
.notify-input:focus { border-color: var(--gold-dim); }
.notify-confirm { display: none; color: var(--gold-lt); font-size: 13px; margin-top: 10px; }

/* ─── AUTHOR ELEMENTS ─── */
.author-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.author-photo-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.author-photo-frame img { width: 100%; height: auto; display: block; }
.accolade-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.accolade {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  flex: 1; min-width: 190px;
}
.accolade-icon { font-size: 16px; margin-top: 1px; }
.accolade-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.accolade-value { font-size: 12px; font-weight: 500; color: var(--cream); margin-top: 1px; line-height: 1.4; }
.author-bio p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.author-bio strong { color: var(--cream); font-weight: 500; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.author-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  text-decoration: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 12px;
  transition: all 0.2s;
}
.author-link:hover { border-color: var(--gold-dim); color: var(--gold-lt); }
.author-mini {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; gap: 24px; align-items: flex-start; margin-top: 32px;
}
.author-mini-photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-mini-name { font-family: 'Playfair Display',serif; font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.author-mini-creds { font-size: 11px; color: var(--gold-lt); margin-bottom: 8px; }
.author-mini-bio { font-size: 12px; color: var(--muted); line-height: 1.7; }
.author-mini-link { font-size: 12px; color: var(--gold-lt); text-decoration: none; }
.author-mini-link:hover { text-decoration: underline; }

/* ─── AUTHORS PAGE ─── */
.author-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; margin-bottom: 28px;
}
.author-card-header {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 36px; margin-bottom: 24px;
}
.author-card-photo { border-radius: var(--radius); overflow: hidden; }
.author-card-photo img { width: 100%; display: block; }
.author-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--cream); margin-bottom: 6px;
}
.author-card-title { font-size: 13px; color: var(--gold-lt); margin-bottom: 16px; line-height: 1.5; }

/* placeholder author cards */
.author-card-placeholder {
  background: var(--card); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 36px; margin-bottom: 28px;
  opacity: 0.6;
}
.author-card-placeholder .author-card-photo {
  background: var(--surface);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.author-card-placeholder .placeholder-icon {
  font-size: 48px; color: var(--muted); opacity: 0.4;
}
.placeholder-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-lt);
  background: rgba(201,149,58,0.08);
  border: 1px solid var(--gold-dim);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.placeholder-text { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 480px; }

/* ─── FAMILY BAR (cleaner, no dark background) ─── */
.family-bar {
  padding: 20px 48px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.family-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(141,173,196,0.7);
}
.family-sep { color: rgba(141,173,196,0.4); font-size: 11px; padding: 0 6px; }
.family-link {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); text-decoration: none; transition: color 0.2s;
}
.family-link:hover { color: var(--gold-lt); }
.family-link.current { color: var(--cream); pointer-events: none; }

/* ─── FOOTER (reduced height, 2-column) ─── */
footer {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 48px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 48px; margin-bottom: 20px;
  max-width: 1100px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700; color: var(--gold);
}
.footer-brand-name span { color: var(--cream); }
.footer-brand p { font-size: 12px; color: rgba(141,173,196,0.8); line-height: 1.7; max-width: 320px; }
.footer-logo-img { height: 38px; width: auto; }
.footer-col-title {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 12px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { text-decoration: none; font-size: 12px; color: rgba(141,173,196,0.8); transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  padding: 14px 0;
  font-size: 11px; color: rgba(141,173,196,0.6);
  text-align: center;
}

/* ─── MODALS ─── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  max-width: 480px; width: 100%; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700; color: var(--cream); margin-bottom: 10px;
}
.modal p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--cream); }

/* Learn More modal - taller content */
.modal-wide { max-width: 580px; }
/* Russian text runs ~20% longer, so widen this modal when the page language is
   Russian — keeps the content from needing a scrollbar on a typical laptop. */
html[lang="ru"] .modal-wide { max-width: 696px; }
.modal-wide h3 {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 600; color: var(--gold-lt);
  margin: 13px 0 5px; letter-spacing: 0.5px;
}
.modal-wide h3:first-of-type { margin-top: 10px; }
.modal-wide p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 6px; }
.modal-wide .modal-note {
  background: var(--surface); border-left: 2px solid var(--gold);
  padding: 11px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 13px 0 4px; font-size: 12px; color: var(--text);
}
.modal-wide .modal-actions {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}

/* ─── PDF PREVIEW MODAL ─── */
/* Compact padding (overrides .modal's 32px) + 94vh so the page gets as much
   vertical room as possible; the script fits each page within this space. */
.preview-modal { max-width: 700px; width: 95%; max-height: 94vh; padding: 16px 22px 14px; display: flex; flex-direction: column; }
.preview-modal .modal-body { flex: 1; overflow-y: auto; }
#pdf-canvas-container { background: #111; border-radius: 6px; overflow: hidden; }
/* Anti-copy hardening: the preview renders each page to a <canvas> (no selectable
   text layer). On top of that we block selection, dragging, and pointer interaction
   so the page image can't be dragged out or right-click-saved. Real protection comes
   from the preview file itself being image-only and limited to 50 pages. */
#pdf-canvas-container canvas {
  display: block; margin: 0 auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none; -webkit-user-select: none;
}
#preview-modal, #preview-modal .modal-body {
  user-select: none; -webkit-user-select: none;
}
/* Don't let the preview leak into a printout of the page */
@media print { #preview-modal { display: none !important; } }
.preview-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; flex-wrap: wrap; gap: 8px;
}
.preview-nav { display: flex; align-items: center; gap: 8px; }
.preview-nav button {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--cream); padding: 5px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12px;
}
.preview-nav button:hover { border-color: var(--gold-dim); }
#pdf-page-info { font-size: 12px; color: var(--muted); }
.preview-note { font-size: 11px; color: var(--muted); font-style: italic; }

/* ─── CONTACT FORM ─── */
.contact-page {
  padding-top: 96px;
  min-height: calc(100vh - 240px);
}
.contact-container { max-width: 720px; margin: 0 auto; padding: 0 24px 48px; }
.contact-intro {
  font-size: 15px; color: var(--muted);
  line-height: 1.75; margin-bottom: 32px; max-width: 600px;
}
.contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 6px;
}
.form-label .required { color: var(--gold); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--cream);
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--gold-dim); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(141,173,196,0.5); }
.form-textarea { resize: vertical; min-height: 130px; font-family: inherit; line-height: 1.6; }
.form-select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-status {
  display: none; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-top: 16px;
}
.form-status.success { display: block; background: rgba(120,200,100,0.1); border: 1px solid rgba(120,200,100,0.3); color: #7CC876; }
.form-status.error { display: block; background: rgba(220,80,80,0.1); border: 1px solid rgba(220,80,80,0.3); color: #DC5050; }
.form-help { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ─── BOOK DETAIL PAGE ─── */
.book-detail-hero { padding-top: 68px; background: var(--surface); }
.book-detail-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px; align-items: start; padding: 44px 48px;
}
/* min-width:0 lets the 1fr content column shrink to the available width instead
   of expanding to its content's intrinsic size — this is what prevents a wide
   child (e.g. the reviews block) from pushing the page wider than the viewport. */
.book-detail-content { min-width: 0; }
.book-detail-cover {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); position: sticky; top: 82px;
}
.book-detail-cover img { width: 100%; display: block; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); text-decoration: none;
  margin-bottom: 18px; transition: color 0.2s;
}
.back-link:hover { color: var(--cream); }
.book-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.8vw, 33px); font-weight: 700;
  color: var(--cream); line-height: 1.2; margin-bottom: 6px;
}
.book-detail-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.book-meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.book-detail-price-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
}
.book-detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 700; color: var(--gold); margin-bottom: 4px;
}
.buy-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.detail-desc h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: var(--cream);
  margin-bottom: 10px; margin-top: 22px;
}
.detail-desc p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }
.detail-desc ul { margin: 0 0 10px 18px; }
.detail-desc li { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 5px; }
.book-specs {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-top: 22px;
}
.spec-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--muted); }
.spec-val { color: var(--cream); font-weight: 500; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  section { padding: 48px 24px; }
  .divider { margin: 0 24px; }
  .author-layout { grid-template-columns: 1fr; }
  .author-card-header { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 24px 24px 0; }
  .family-bar { padding: 16px 24px; }
  .book-detail-grid { grid-template-columns: 1fr; padding: 24px; }
  .book-detail-cover { position: static; max-width: 260px; }
  .notify-form { flex-direction: column; }
  .author-mini { flex-direction: column; }
  .for-authors-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Book subtitle (Change 1) ─── */
.book-series-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 300; font-style: italic;
  color: var(--muted); margin-bottom: 18px; letter-spacing: 0.2px;
  line-height: 1.4;
}

/* ─── Promo code note (Change 3) ─── */
.promo-code-note {
  font-size: 11px; color: var(--muted); font-style: italic;
  margin: 8px 0 4px; line-height: 1.5;
}

/* ─── Read More / Read Less (Change 4) ─── */
.expandable-desc .desc-extra { display: none; }
.read-more-btn {
  background: none; border: none;
  color: var(--gold-lt); font-size: 12px; font-weight: 500;
  cursor: pointer; padding: 4px 0 0; display: inline-block;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0.3px;
}
.read-more-btn:hover { color: var(--gold); text-decoration: underline; }

/* ─── About the Author heading (Change 5) ─── */
.about-author-section { margin-top: 32px; }
.about-author-section .detail-desc { margin-top: 0; }

/* ─── Author mini card – updated layout (Changes 6, 7) ─── */
.author-mini-bio-expanded p {
  font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 10px;
}
.author-mini-bio-expanded p:last-child { margin-bottom: 0; }
.author-mini-bio-expanded strong { color: var(--text); font-weight: 500; }

/* ════════════════════════════════════════════
   REVIEWS / ACCLAIM
   ════════════════════════════════════════════
   Reviews appear only on book detail pages (not homepage — the homepage
   is positioned as a multi-author publisher showcase, so book-specific
   reviews belong on book pages only).
*/

/* Book-page in-context reviews block — sits between Book Description and What You Will Learn */
/* This block is a <section>, so it inherits the global `section { padding:64px 48px }`.
   That 48px left padding is exactly what pushed the heading/cards right of the other
   headings, and the 64px top padding added a large gap. Reset padding to 0 so the
   block aligns flush-left with "Book Description" et al., using margin only for spacing. */
.reviews-section-book {
  padding: 0;
  margin: 28px 0 14px;
}
/* Heading matches the surrounding h3 elements ("Book Description", "Volume I covers", etc.)
   from .detail-desc h3 — same font-family, weight, size, color, spacing. */
.reviews-section-book .reviews-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  margin: 22px 0 12px;
  text-align: left;
}

/* Grid: reviews stack one below another (single column), left-aligned.
   minmax(0, 1fr) lets the column shrink to fit its container — preventing the
   horizontal overflow that a fixed 300px min-track caused inside the book
   detail content column. */
.reviews-grid {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  text-align: left;
}
/* All review counts use the same single-column stacked layout. */
.reviews-grid[data-count="1"],
.reviews-grid[data-count="2"],
.reviews-grid[data-count="3"],
.reviews-grid[data-count="4"] {
  grid-template-columns: minmax(0, 1fr);
}

/* Card */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.review-card:hover {
  border-color: var(--gold-dim);
}

/* Stars row */
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}
.review-star {
  width: 15px;
  height: 15px;
  display: block;
}

/* Pull-quote — non-italic, 2px smaller than before (was 16px → 14px) */
.review-quote {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream);
  margin: 0 0 8px;
  padding: 0;
  border: none;
  position: relative;
}
.review-quote::before {
  content: '\201C';
  font-size: 26px;
  color: var(--gold);
  line-height: 0;
  vertical-align: -0.25em;
  margin-right: 3px;
  opacity: 0.85;
}
.review-quote::after {
  content: '\201D';
  font-size: 26px;
  color: var(--gold);
  line-height: 0;
  vertical-align: -0.25em;
  margin-left: 2px;
  opacity: 0.85;
}

/* Full-text panel — 2px smaller (was 13px → 11px) */
.review-full[hidden] { display: none; }
.review-full p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 9px;
}
.review-full p:last-of-type { margin-bottom: 4px; }
.review-full em { color: var(--text); }
.review-full ul {
  margin: 4px 0 9px 18px;
  padding: 0;
}
.review-full li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 4px;
}
.review-full li strong { color: var(--cream); font-weight: 600; }

.review-translated-note {
  font-size: 10.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
  opacity: 0.7;
}

/* Action row: toggle button + source link sit side-by-side */
.review-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
}

/* Toggle button */
.review-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--gold-lt);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.review-toggle:hover { color: var(--gold); text-decoration: underline; }
.review-toggle-chevron {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 12px;
  line-height: 1;
}
.review-toggle.open .review-toggle-chevron {
  transform: rotate(180deg);
}

/* Source link — sits next to the toggle */
.review-source-link {
  color: var(--gold-lt);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.review-source-link:hover { color: var(--gold); opacity: 1; text-decoration: underline; }

/* Generic small icon used by source + personal links */
.review-link-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex-shrink: 0;
}

/* Footer meta */
.review-meta {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

/* Reviewer name — now a link to personal site */
.review-author,
a.review-author {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}
a.review-author:hover { color: var(--gold); }

.review-affiliation {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 6px;
}

/* Small "personal site" link beneath affiliation, before date */
.review-personal-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  color: var(--gold-lt);
  text-decoration: none;
  opacity: 0.85;
  margin-bottom: 6px;
  transition: opacity 0.2s, color 0.2s;
}
.review-personal-link:hover { color: var(--gold); opacity: 1; text-decoration: underline; }

.review-date {
  font-size: 9.5px;
  color: var(--gold-lt);
  letter-spacing: 0.5px;
  opacity: 0.75;
}

/* ════════════════════════════════════════════
   BOOK CARD RATING (Google Play style)
   ════════════════════════════════════════════
   Shown in the .book-footer of available book cards on the homepage.
   Layout: rating-left + price-right. */
.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.book-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.book-rating-value {
  font-family: 'Playfair Display', serif;
  color: var(--gold);         /* same color as .book-price */
  font-size: 15px;            /* 1px larger than before (was 14px) */
  font-weight: 400;           /* not bold */
  line-height: 1;
}
.book-rating-star {
  width: 14px;
  height: 14px;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1px;
}
.book-rating-count {
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
  font-family: 'DM Sans', sans-serif;
}

/* Whole-card link (available books): flex column so footer pins to the bottom */
a.book-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
a.book-card-link:hover .book-title { color: var(--gold-lt); }
