@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;600;700;900&display=swap');
/* Styles of the קראמבל page blocks (src/puck/crambel-config.tsx; /crambel renders them).
   Linked from inside each block so the editor canvas iframe gets it too. No next/font var
   (undefined in the canvas would invalidate the whole font stack).
   Part 1 = the rules this page used from books.css (.bk-*, copied and renamed .crb-* so it
   never collides with the books pages); part 2 = the page's own rules (.cr-*, ex crambel.css). */

/* ── part 1: books language (navy #15303e, cream #f7f2ee, terracotta #b76a50) ── */
.crb {
  --navy: #15303e;
  --glow: #25495c;
  --teal: #0f5568;
  --cream: #f7f2ee;
  --sand: #ede4dc;
  --terra: #b76a50;
  --gold: #c9954f;
  --gutter: clamp(20px, 5vw, 72px);
  --pad-y: clamp(72px, 7vw, 120px);
  --fs-h2: clamp(28px, 3vw, 52px);
  --fs-h3: clamp(22px, 2.08vw, 36px);
  --fs-body: clamp(17px, 1.16vw, 20px);

  box-sizing: border-box;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Noto Sans Hebrew', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: clip;
}
.crb *, .crb *::before, .crb *::after { box-sizing: border-box; }
.crb h1, .crb h2, .crb h3, .crb p, .crb figure, .crb blockquote { margin: 0; }
.crb a { color: inherit; text-decoration: none; }
.crb :focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

.crb-line {
  display: inline-block; align-self: flex-start; padding-bottom: 18px;
  background: linear-gradient(var(--terra), var(--terra)) 100% 100% / 34% 3px no-repeat;
}
.crb-h1 { font-size: clamp(36px, 4.6vw, 84px); font-weight: 700; line-height: 1.1; }
.crb-h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; }
.crb-h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; color: var(--teal); }
.crb-body { font-size: var(--fs-body); line-height: 1.65; }

.crb-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.crb-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 64px; padding: 0 30px; border-radius: 30px; border: 1.5px solid var(--terra);
  background: var(--terra); color: var(--cream) !important; font-weight: 700; font-size: var(--fs-body);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.25s, color 0.25s;
}
.crb-btn span { white-space: nowrap; }
.crb-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(8, 20, 27, 0.25); }

.crb-section { padding: var(--pad-y) var(--gutter); }

.crb-book {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 48px clamp(40px, 7vw, 140px);
  padding: var(--pad-y) var(--gutter);
}
.crb-book--sand { background: var(--sand); }
.crb-book-text { flex: 1.6 1 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 46em; }
.crb-book-cover {
  flex: 1 1 260px; display: flex; justify-content: center; align-items: center;
  padding: clamp(36px, 4vw, 64px) 20px;
  background: radial-gradient(ellipse 70% 80% at 50% 45%, var(--glow) 0%, rgba(37, 73, 92, 0.4) 45%, rgba(21, 48, 62, 0) 80%), var(--navy);
}
.crb-book-cover img {
  display: block; width: clamp(170px, 16vw, 240px); height: auto;
  transform: rotate(-3deg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.crb-note { color: var(--terra); }

.crb-panel {
  padding: var(--pad-y) var(--gutter);
  background: radial-gradient(ellipse 70% 60% at 25% 20%, var(--glow) 0%, rgba(37, 73, 92, 0.5) 40%, rgba(21, 48, 62, 0) 75%), var(--navy);
  color: var(--cream);
}
.crb-qmark { display: block; flex: 0 0 auto; }
.crb-endorse-by { font-size: var(--fs-body); font-weight: 700; color: var(--gold); }

@media (max-width: 760px) {
  .crb-book { flex-direction: column; align-items: stretch; }
  .crb-book-text { flex-basis: auto; }
  .crb-actions { width: 100%; }
  .crb-btn { width: 100%; }
  .crb-btn span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .crb-btn { transition: none; } }

/* ── part 2: the page's own rules ── */
.cr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* rich-text bodies: paragraph spacing by margin (the editor wraps the <p>s) */
.cr-rich-22 > p + p { margin-top: 22px; }
.cr-rich-18 > p + p { margin-top: 18px; }

/* ── פתיח ── */
.cr-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 48px clamp(40px, 6vw, 110px);
  padding: var(--pad-y) var(--gutter);
  background: radial-gradient(ellipse 55% 85% at 22% 45%, var(--glow) 0%, rgba(37, 73, 92, 0.5) 40%, rgba(21, 48, 62, 0) 75%), var(--navy);
  color: var(--cream);
}
.cr-hero-text { flex: 1.4 1 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cr-hero-by { font-size: clamp(18px, 1.3vw, 22px); line-height: 1.7; color: rgba(247, 242, 238, 0.88); }
.cr-hero-sub { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; color: var(--gold); max-width: 20em; }
.cr-hero-art { flex: 0 1 360px; display: flex; justify-content: center; position: relative; }
.cr-hero-art::before {
  content: ''; position: absolute; inset: -18% -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 242, 238, 0.16), rgba(15, 85, 104, 0.18) 55%, transparent 100%);
}
.cr-hero-art img {
  position: relative; display: block; width: clamp(200px, 20vw, 300px); height: auto;
  transform: rotate(-3deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); border-radius: 6px;
}

/* ── קטע מהספר + פרטים ── */
.cr-excerpt {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px clamp(40px, 6vw, 110px); align-items: center;
  padding: var(--pad-y) var(--gutter);
}
.cr-story {
  position: relative; padding: clamp(32px, 3vw, 52px); border-radius: 24px;
  background: var(--sand); box-shadow: 0 18px 40px rgba(21, 48, 62, 0.07);
}
.cr-story p { font-size: clamp(20px, 1.6vw, 28px); line-height: 1.85; }
.cr-story strong { font-weight: 400; }
.cr-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: var(--fs-body); line-height: 1.7; }
.cr-info .crb-actions { margin-top: 4px; }
.cr-textlink { color: var(--teal); font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }
.cr-textlink:hover { color: var(--terra); }

/* ── על הספר ── */
.cr-about { display: flex; flex-direction: column; gap: 36px; padding-top: 0; }
.cr-about-body { display: flex; flex-direction: column; gap: 22px; max-width: 52em; }
.cr-nikud { font-size: clamp(19px, 1.35vw, 23px); line-height: 1.9; }

/* ── דבר ד״ר אנאבלה ── */
.cr-word-by { font-size: var(--fs-h3); line-height: 1.3; }
.cr-word-art { flex: 1 1 320px; display: flex; justify-content: center; }
.cr-word-art img { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 24px; box-shadow: 22px 22px 0 var(--terra); }

/* ── המלצות ── */
.cr-endorse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 3vw, 48px); align-items: start; }
.cr-endorse-item { display: flex; flex-direction: column; gap: 20px; margin: 0; padding-top: 28px; border-top: 1px solid rgba(247, 242, 238, 0.25); }
.cr-endorse-text { margin: 0; font-size: clamp(18px, 1.25vw, 22px); font-weight: 300; line-height: 1.65; }

/* ── המפיקה + הסופרת ── */
.cr-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px clamp(40px, 6vw, 110px); align-items: start; }
.cr-voice { display: flex; flex-direction: column; gap: 18px; }
.cr-voice-h { font-weight: 700; color: var(--navy); padding-bottom: 14px; background: linear-gradient(var(--terra), var(--terra)) 100% 100% / 60px 3px no-repeat; margin-bottom: 6px; }

/* ── היוצרות ── */
.cr-bios {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px;
  padding: 0 var(--gutter) var(--pad-y);
}
.cr-bio {
  padding: clamp(26px, 2.4vw, 36px); background: #fffdfb; border-radius: 20px; border-top: 3px solid var(--terra);
  box-shadow: 0 14px 34px rgba(21, 48, 62, 0.07); font-size: var(--fs-body); line-height: 1.65;
}
.cr-bio strong { color: var(--navy); }

/* ── רכישה ── */
.cr-buy .crb-book-cover { border-radius: 24px; }
.cr-shop { padding: clamp(48px, 5vw, 80px) var(--gutter) var(--pad-y); display: flex; flex-direction: column; gap: 20px; }
.cr-products { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.cr-product {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 30px 24px; background: #fffdfb; border-radius: 20px; box-shadow: 0 14px 34px rgba(21, 48, 62, 0.07);
  transition: transform 0.3s;
}
.cr-product:hover { transform: translateY(-3px); }
.cr-product img { width: 120px; height: auto; transform: rotate(-3deg); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); border-radius: 4px; margin-bottom: 10px; }
.cr-product-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.cr-price { display: inline-flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 700; color: var(--terra); }
.cr-price del { font-size: 16px; font-weight: 400; color: var(--teal); opacity: 0.7; }
.cr-price ins { text-decoration: none; }
.cr-add {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 30px; border: 1.5px solid var(--navy); color: var(--navy) !important; font-weight: 700; font-size: 16px;
  transition: background 0.2s, color 0.2s;
}
.cr-add:hover { background: var(--navy); color: var(--cream) !important; }
.cr-ship { font-size: var(--fs-body); font-weight: 600; }
.cr-offer { font-size: var(--fs-body); line-height: 1.65; color: var(--teal); max-width: 52em; }

/* ── יכול לעניין אותך גם ── */
.cr-related { padding: var(--pad-y) var(--gutter) 0; display: flex; flex-direction: column; background: var(--sand); }
.cr-related-book { padding-inline: 0; }
.cr-related-book .crb-book-cover { border-radius: 24px; }
.cr-related-title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; white-space: pre-wrap; }
.cr-related-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }

@media (max-width: 760px) {
  .cr-word-art { order: -1; }
  .cr-word-art img { box-shadow: 12px 12px 0 var(--terra); max-width: calc(100% - 12px); }
  .cr-related-buy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cr-product { transition: none; } }
