/* ══ Cookbook design system (owner 18.11.2026) ═══════════════════════════════════════════════
   One red, one saffron, cream for boxes, ink for contrast. Headings in Frank Ruhl, the voice in Assistant.
   Applies to both the flipbook pages (.cb-page__inner) and the scrolling view (.cb-text). */
:root { --gold: #C98A2B; --cream: #FBF3E6; --ink-deep: #1E1A17; }
[data-theme="sepia"] { --cream: #F1E4CC; }
[data-theme="dark"] { --cream: #2A2420; --ink-deep: #0E0C0B; --gold: #E0A84A; }

/* Section headings: a short red rule above, generous air. */
.cb-text h2.wp-block-heading, .cb-page__inner h2.wp-block-heading { position: relative; padding-block-start: 14px; font-weight: 900; letter-spacing: -.01em; }
.cb-text h2.wp-block-heading::before, .cb-page__inner h2.wp-block-heading::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 36px; block-size: 4px; border-radius: 2px; background: var(--accent); }
/* Subheadings in ink, with a small red mark: red is for one accent at a time, so a heading never melts into red text below it. */
.cb-text h3.wp-block-heading, .cb-page__inner h3.wp-block-heading { color: var(--ink); font-weight: 800; }
.cb-text h3.wp-block-heading::before, .cb-page__inner h3.wp-block-heading::before { content: ""; display: inline-block; inline-size: .42em; block-size: .42em; margin-inline-end: .45em; border-radius: 2px; background: var(--accent); vertical-align: .14em; }

/* "סוד מס׳ N": a dark band, a big numeral in red. */
h2.cb-secret { display: flex; align-items: center; gap: 14px; margin: 1.2em 0 .8em; padding: 14px 16px; border-radius: 16px; background: var(--ink-deep); color: #fff; font: 800 1.08em/1.3 var(--head); }
h2.cb-secret::before { display: none; }
.cb-secret__no { flex: none; display: grid; place-items: center; inline-size: 2.4em; block-size: 2.4em; border-radius: 50%; background: var(--accent); color: #fff; font: 900 1.25em/1 var(--head); }
.cb-secret__label { display: block; font: 700 .62em/1.2 var(--ui); letter-spacing: .08em; color: var(--gold); margin-block-end: 3px; }

/* The book's punchy beats: a cream box, bigger serif lines, a red edge. */
.cb-callout { margin: 1.1em 0; padding: 14px 18px; border-radius: 14px; background: var(--cream); border-inline-start: 5px solid var(--gold); }
/* The reading font (Assistant), bolder and a touch bigger: Hebrew reads cleaner in it than in a heavy serif on a tint.
   The last line lands in deep ink with a marker stroke, not in red, so it stands apart from the red edge. */
.cb-callout p { margin: 0 0 .3em; font: 600 1.04em/1.6 var(--ui); color: var(--ink); }
.cb-callout p:last-child { margin-block-end: 0; font-weight: 800; color: var(--ink-deep); }
.cb-callout p:last-child { background: linear-gradient(transparent 62%, rgb(201 138 43 / .35) 62%); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-theme="dark"] .cb-callout p:last-child { color: #fff; }

/* A sentence that is all bold: a soft graphite wash (owner 19.11: no pink, quieter, black/grey), ink text.
   Right after another box it turns quiet: no fill, a thin saffron rule (see culinartica_book_rhythm). */
p.cb-highlight { padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, rgb(30 26 23 / .075), rgb(30 26 23 / .03)); color: var(--ink-deep); }
[data-theme="dark"] p.cb-highlight { background: rgb(255 255 255 / .06); color: #fff; }
p.cb-highlight--quiet { padding: 2px 12px; border-radius: 0; background: none; border-inline-start: 3px solid var(--gold); }
[data-theme="dark"] p.cb-highlight--quiet { background: none; }
.cb-callout--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* Pull quotes. */
blockquote.cb-quote { position: relative; margin: 1.3em 0; padding: 18px 18px 14px; border: 0; border-radius: 16px; background: var(--ink-deep); color: #fff; font-style: normal; text-align: center; }
blockquote.cb-quote::before { content: "\201D"; display: block; margin-block-end: -10px; font: 900 3.2em/1 var(--head); color: var(--accent); }
blockquote.cb-quote p { margin: 0; font: 600 1.05em/1.55 var(--head); color: #fff; }

/* Ratings with stars. */
p.cb-rating { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: .25em 0; padding: 6px 12px; border-radius: 999px; background: var(--cream); font: 600 .9em/1.4 var(--ui); }

/* Lists: red markers. */
.cb-text li::marker, .cb-page__inner li::marker { color: var(--accent); font-weight: 800; }

/* Chapter opener page in the flipbook: dark, the photo, the title, the first lines. */
.cb-page--opener { background: var(--ink-deep); color: #fff; box-shadow: none; }
.cb-page--opener .cb-page__inner { color: #f3eee9; }
.cb-page--opener .cb-page__chapter h1 { color: #fff; }
.cb-page--opener .cb-page__chapter span { color: var(--accent); }
.cb-page--opener .cb-chapter__image { box-shadow: 0 14px 34px rgb(0 0 0 / .45); }
.cb-page--opener p { color: #e9e2db; font-size: 1.05em; }
.cb-page--opener .cb-page__foot { border-color: rgb(255 255 255 / .12); color: rgb(255 255 255 / .55); }

/* ── Diagrams (HTML, editable in the editor as a Custom HTML block) ─────────────────────── */
.cb-dia { margin: 1.3em 0; padding: 14px; border-radius: 18px; background: var(--cream); font-family: var(--ui); color: var(--ink); text-align: center; }
.cb-dia__title { margin: 0 0 10px; font: 800 .95em/1.3 var(--head); }
.cb-dia__note { margin: 10px 0 0; font-size: .78em; color: var(--muted); }
.cb-dia__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cb-dia__grid > .cb-dia__cell:last-child:nth-child(odd) { grid-column: 1 / -1; } /* An odd last box spans the row, so no empty slot. */
.cb-dia__cell { padding: 12px 8px; border-radius: 12px; background: var(--bg); box-shadow: 0 2px 8px rgb(0 0 0 / .06); font-size: .82em; line-height: 1.35; }
.cb-dia__cell b { display: block; font: 800 1.08em/1.25 var(--head); margin-block-end: 2px; }
.cb-dia__cell--a { border-block-start: 4px solid var(--accent); }
.cb-dia__cell--b { border-block-start: 4px solid var(--gold); }
.cb-dia__stars { display: block; margin-block-start: 4px; color: var(--gold); letter-spacing: 2px; font-size: 1.05em; }
.cb-dia__stars--0 { color: var(--muted); font-size: .85em; letter-spacing: 0; }
.cb-dia__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-end: 8px; font: 800 .74em/1.2 var(--ui); letter-spacing: .04em; }
.cb-dia__groups span:first-child { color: var(--accent); }
.cb-dia__groups span:last-child { color: var(--gold); }
.cb-dia__formula { display: flex; justify-content: center; align-items: center; gap: 10px; font: 900 2em/1 var(--head); direction: ltr; }
.cb-dia__formula i { font-style: normal; display: grid; place-items: center; inline-size: 1.6em; block-size: 1.6em; border-radius: 12px; color: #fff; }
.cb-dia__formula i.x { background: var(--ink-deep); }
.cb-dia__formula i.y { background: var(--accent); }
.cb-dia__formula i.z { background: var(--gold); }
.cb-dia__legend { display: grid; gap: 6px; margin-block-start: 12px; font-size: .8em; text-align: start; }
.cb-dia__legend span { display: flex; gap: 8px; align-items: center; }
.cb-dia__legend b { flex: none; display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 8px; color: #fff; font: 900 .95em var(--head); }
.cb-dia__matrix { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 4px; font-size: .66em; line-height: 1.25; }
.cb-dia__matrix > span { display: grid; place-items: center; padding: 7px 3px; border-radius: 8px; background: var(--bg); }
.cb-dia__matrix > span.h { background: transparent; font-weight: 800; color: var(--muted); }
.cb-dia__matrix > span[data-x] { font: 900 1.3em/1 var(--head); color: #fff; }
.cb-dia__matrix > span[data-x="0"] { background: #b9b2aa; }
.cb-dia__matrix > span[data-x="1"] { background: #d9a35a; }
.cb-dia__matrix > span[data-x="2"] { background: #d7843b; }
.cb-dia__matrix > span[data-x="3"] { background: #d4612f; }
.cb-dia__matrix > span[data-x="4"] { background: #d23f2c; }
.cb-dia__matrix > span[data-x="5"] { background: #a5161d; }

/* ── Reader furniture: resume dialog, bookmark ribbon, first-time hint ────────────────────── */
.cb-dialog { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .45); }
.cb-dialog[hidden] { display: none; }
.cb-dialog__card { inline-size: min(380px, 100%); padding: 22px; border-radius: 20px; background: var(--bg); color: var(--ink); text-align: center; box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.cb-dialog__card h2 { margin: 0 0 6px; font: 900 1.3em/1.25 var(--head); }
.cb-dialog__card p { margin: 0 0 16px; color: var(--muted); }
.cb-dialog__actions { display: grid; gap: 8px; }
.cb-dialog__actions button { min-block-size: 48px; border: 0; border-radius: 14px; font: 700 16px var(--ui); cursor: pointer; }
.cb-dialog__actions .primary { background: var(--accent); color: #fff; }
.cb-dialog__actions .ghost { background: var(--chip); color: var(--ink); }
.cb-bookmark.is-on svg { fill: var(--accent); stroke: var(--accent); }
.cb-hint { position: absolute; inset-block-end: 18px; inset-inline: 0; z-index: 6; display: flex; justify-content: center; pointer-events: none; }
.cb-hint span { padding: 10px 16px; border-radius: 999px; background: rgb(0 0 0 / .72); color: #fff; font: 600 14px var(--ui); animation: cb-hint 2.4s ease-in-out 3; }
@keyframes cb-hint { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
.cb-marks { padding: 8px 8px 0; border-block-start: 1px solid var(--line); }
.cb-marks h3 { margin: 6px 12px; font: 800 13px var(--ui); color: var(--muted); }
.cb-marks a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 14px; }
.cb-marks a:hover { background: var(--chip); }
.cb-marks__empty { margin: 4px 12px 10px; font-size: 13px; color: var(--muted); }

/* A short bold line from the original layout: a small red label, no box. */
/* A short bold line from the original layout: a small label in ink with a red underline stroke (never red on red). */
p.cb-label { margin: 1em 0 .35em; font: 800 .95em/1.35 var(--ui); color: var(--ink); letter-spacing: .01em; }
p.cb-label::after { content: ""; display: block; inline-size: 28px; block-size: 3px; margin-block-start: 5px; border-radius: 2px; background: var(--accent); }
p.cb-label + p.cb-label { margin-block-start: .2em; }
p.cb-label + p.cb-label::after { display: none; }

/* ── Pictures, cookbook style (19.11) ───────────────────────────────────────────────────────
   Cut-out photos (transparent PNG: a bowl, a plate, a splash) float on the page with a soft shadow, no frame, like food
   laid on paper. The strip variant is a thin decorative band. Chef portraits sit under their name, framed like a print. */
figure.cb-cutout { margin: .6em auto 1em; text-align: center; }
.cb-cutout img { display: inline-block; inline-size: auto; max-inline-size: 86%; block-size: auto; max-block-size: 30vh; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .18)); }
figure.cb-cutout--strip img { max-inline-size: 100%; max-block-size: 90px; filter: none; }
.cb-page__inner .cb-cutout img { max-block-size: 26vh; }
h3 + figure.cb-portrait { inline-size: 40%; max-inline-size: 180px; margin: .4em auto 1em; transform: rotate(-1.5deg); }
h3 + figure.cb-portrait img { aspect-ratio: 1; object-fit: cover; border-radius: 6px !important; outline: 7px solid #fff; box-shadow: 0 8px 22px rgb(0 0 0 / .2); }
/* A chapter opener photo that is a cut-out: no box around it, it floats on the dark page. */
.cb-chapter__image[src*=".png"], .cb-page--opener .cb-chapter__image[src*=".png"] { aspect-ratio: auto; object-fit: contain; max-block-size: 30vh; border-radius: 0; box-shadow: none; background: none; filter: drop-shadow(0 16px 26px rgb(0 0 0 / .5)); }

/* ── More diagrams (19.11) ────────────────────────────────────────────────────────────────── */
/* Four seasons. */
.cb-season { padding: 12px 10px; border-radius: 12px; font-size: .8em; line-height: 1.4; color: #2a2420; text-align: start; }
.cb-season b { display: block; font: 900 1.15em/1.2 var(--head); margin-block-end: 3px; }
.cb-season--winter { background: #dfe9f1; }
.cb-season--spring { background: #e4f0d8; }
.cb-season--summer { background: #fbe3c4; }
.cb-season--autumn { background: #f2d6c9; }
/* The base and the upgrades ("אוטו גלידה"), do and don't, two ways side by side. */
.cb-ag, .cb-dodont__cols, .cb-vs__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: start; }
.cb-ag > div, .cb-dodont__cols > div, .cb-vs__cols > div { padding: 12px; border-radius: 12px; background: var(--bg); font-size: .82em; line-height: 1.45; }
.cb-ag ul, .cb-dodont ol, .cb-vs ol { margin: 6px 0 0; padding-inline-start: 1.1em; }
.cb-ag li, .cb-dodont li, .cb-vs li { margin-block-end: 3px; }
.cb-ag__tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 800 .82em/1.6 var(--ui); color: #fff; background: var(--ink-deep); }
.cb-ag__base { box-shadow: inset 0 0 0 2px var(--ink-deep); }
.cb-ag__plus .cb-ag__tag { background: var(--gold); }
.cb-dodont__no .cb-ag__tag { background: var(--accent); }
.cb-dodont__yes .cb-ag__tag { background: #2f7d55; }
.cb-vs__cols > div.is-win { box-shadow: inset 0 0 0 2px #2f7d55; }
.cb-vs__bad, .cb-vs__good { display: block; margin-block-start: 8px; font-weight: 800; text-align: center; text-wrap: balance; }
.cb-vs__bad { color: var(--accent); }
.cb-vs__good { color: #2f7d55; }
/* The 30 secrets index. */
.cb-index__list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 10px; text-align: start; font-size: .74em; line-height: 1.3; }
.cb-index__list li { display: flex; gap: 6px; break-inside: avoid; margin-block-end: 6px; }
.cb-index__list span { flex: none; display: grid; place-items: center; inline-size: 1.9em; block-size: 1.9em; border-radius: 50%; background: var(--ink-deep); color: #fff; font: 800 .95em/1 var(--ui); }
/* Score bars: the guest's scorecard, the weights. */
.cb-score__row { display: grid; grid-template-columns: 4.6em 1fr 3.2em; gap: 8px; align-items: center; margin-block-end: 7px; font-size: .84em; text-align: start; }
.cb-score__name { font-weight: 800; }
.cb-score__bar { block-size: 12px; border-radius: 99px; background: rgb(0 0 0 / .08); overflow: hidden; }
.cb-score__bar i { display: block; block-size: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--accent)); }
[dir="rtl"] .cb-score__bar i { background: linear-gradient(270deg, var(--gold), var(--accent)); }
.cb-score__val { font: 800 .95em var(--ui); color: var(--muted); direction: ltr; text-align: end; }
.cb-score--weights .cb-score__bar i { background: var(--ink-deep); }
.cb-score__total { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-block-start: 12px; font-weight: 700; }
.cb-score__total b { font: 900 2.6em/1 var(--head); color: var(--accent); }
.cb-score__meter { position: relative; block-size: 14px; margin: 8px 6px 18px; border-radius: 99px; background: rgb(0 0 0 / .08); }
.cb-score__meter i { display: block; block-size: 100%; border-radius: 99px; background: #2f7d55; }
.cb-score__meter em { position: absolute; inset-block-start: -5px; block-size: 24px; border-inline-start: 3px dashed var(--ink-deep); padding-inline-start: 4px; padding-block-start: 22px; font: 800 .72em/1 var(--ui); font-style: normal; color: var(--ink-deep); }
/* Checklist and chips. */
ul.cb-checks { list-style: none; padding: 0; margin: .4em 0 1em; }
ul.cb-checks li { position: relative; padding-inline-start: 1.8em; margin-block-end: .35em; font-weight: 600; }
ul.cb-checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; inset-block-start: .05em; display: grid; place-items: center; inline-size: 1.3em; block-size: 1.3em; border-radius: 50%; background: #2f7d55; color: #fff; font: 900 .8em/1 var(--ui); }
p.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
p.cb-chips span { padding: 4px 14px; border-radius: 999px; background: var(--ink-deep); color: #fff; font: 700 .9em/1.6 var(--ui); }
/* The taste ladder. */
.cb-ladder__steps { display: flex; align-items: flex-end; justify-content: center; gap: 10px; block-size: 200px; padding-block-end: 4px; border-block-end: 2px solid var(--ink-deep); }
.cb-ladder__steps > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; inline-size: 30%; block-size: var(--h); padding-block-start: 8px; border-radius: 12px 12px 0 0; background: linear-gradient(to top, var(--gold), var(--accent)); color: #fff; font-size: .74em; line-height: 1.2; text-align: center; }
.cb-ladder__steps b { font: 900 2em/1 var(--head); }
.cb-ladder__steps small { opacity: .9; }
.cb-ladder__vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-start: 12px; font-size: .8em; }
.cb-ladder__vs > div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--bg); }
.cb-ladder__vs > div.is-win { box-shadow: inset 0 0 0 2px #2f7d55; }
.cb-ladder__vs b { font: 900 1.15em/1.3 var(--head); direction: ltr; }
.cb-ladder__vs small { color: var(--muted); }
/* Steps and the chain. */
.cb-steps__list, .cb-chain__list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; text-align: start; }
.cb-steps__list li, .cb-chain__list li { counter-increment: s; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: .85em; }
.cb-steps__list li::before, .cb-chain__list li::before { content: counter(s); flex: none; display: grid; place-items: center; inline-size: 1.9em; block-size: 1.9em; border-radius: 50%; background: var(--accent); color: #fff; font: 900 1em/1 var(--ui); }
.cb-steps__list b { font-weight: 800; }
.cb-chain__list li { position: relative; font-weight: 700; }
.cb-chain__list li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(12px + .95em - 1px); inset-block-end: -9px; inline-size: 2px; block-size: 10px; background: var(--accent); }
/* Ten cuisines. */
.cb-cuisines__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: start; }
.cb-cuisines__grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg); font-size: .76em; line-height: 1.25; }
.cb-cuisines__grid i { grid-row: span 2; font-style: normal; font-size: 1.7em; }
.cb-cuisines__grid small { color: var(--muted); }
h3.cb-cuisine-h { margin-block-start: 1.4em; padding: 10px 14px; border-radius: 12px; background: var(--ink-deep); color: #fff !important; }
h3.cb-cuisine-h::before { display: none !important; }
h3.cb-no::before { content: "✕" !important; inline-size: auto !important; block-size: auto !important; background: none !important; color: var(--accent); font-weight: 900; vertical-align: 0 !important; }
h3.cb-yes::before { content: "✓" !important; inline-size: auto !important; block-size: auto !important; background: none !important; color: #2f7d55; font-weight: 900; vertical-align: 0 !important; }

/* End of a chapter: a stopping point (one question, one thing to cook) and a hook into the next chapter. */
.cb-stop { margin: 1.6em 0 .6em; padding: 18px 16px 14px; border-radius: 18px; background: var(--ink-deep); color: #f3eee9; }
.cb-stop__tag { display: inline-block; margin-block-end: 8px; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: #1e1a17; font: 800 .78em/1.6 var(--ui); }
.cb-stop__q { margin: 0 0 .5em !important; font: 700 1.12em/1.45 var(--head); color: #fff; }
.cb-stop__do { margin: 0 0 .6em !important; font-size: .92em; }
.cb-stop__do b { color: var(--gold); }
.cb-stop__next { margin: 0 !important; padding-block-start: 10px; border-block-start: 1px solid rgb(255 255 255 / .15); font: 700 .88em/1.4 var(--ui); color: rgb(255 255 255 / .75); }
.cb-stop__next::after { content: " ←"; color: var(--accent); }
[dir="ltr"] .cb-stop__next::after { content: " →"; }

/* Where the owner still owes a photo (only he sees these: preview link, editors). */
.cb-wanted { margin: 1em 0; padding: 12px 14px; border: 2px dashed var(--gold); border-radius: 14px; background: rgb(201 138 43 / .08); font: 500 .82em/1.5 var(--ui); color: var(--ink); }
.cb-wanted b { display: block; margin-block-end: 2px; color: var(--gold); }

/* ── A recipe opened inside the book ───────────────────────────────────────────────────── */
html.cb-rs-open, html.cb-rs-open body { overflow: hidden; }
.cb-rs { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.cb-rs[hidden] { display: none; }
.cb-rs__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; border-block-end: 1px solid var(--line); background: var(--bar); }
.cb-rs__back { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding-inline: 14px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 800 15px var(--ui); cursor: pointer; }
.cb-rs__site { font: 600 13px var(--ui); color: var(--muted); }
.cb-rs__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0 40px; font: 400 17px/1.65 var(--ui); }
.cb-rs__body > :not(img) { margin-inline: 18px; }
.cb-rs__loading { display: grid; place-items: center; gap: 12px; padding: 60px 0; color: var(--muted); }
.cb-rs__image { display: block; inline-size: 100%; max-block-size: 42vh; object-fit: cover; }
.cb-rs__title { margin-block: 16px 10px; font: 900 1.6em/1.2 var(--head); }
.cb-rs__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 14px; }
.cb-rs__facts div { padding: 6px 12px; border-radius: 12px; background: var(--chip); text-align: center; }
.cb-rs__facts dt { font-size: 12px; color: var(--muted); }
.cb-rs__facts dd { margin: 0; font-weight: 800; }
.cb-rs__lead { color: var(--muted); }
.cb-rs__h { margin-block: 22px 8px; font: 800 1.2em var(--head); }
.cb-rs__h::before { content: ""; display: inline-block; inline-size: .42em; block-size: .42em; margin-inline-end: .45em; border-radius: 2px; background: var(--accent); vertical-align: .14em; }
.cb-rs__ing { margin: 0; padding: 0; list-style: none; }
.cb-rs__ing li { padding: 9px 0; border-block-end: 1px solid var(--line); }
.cb-rs__ing b { color: var(--accent); }
.cb-rs__steps { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.cb-rs__steps li { counter-increment: st; position: relative; padding-inline-start: 44px; margin-block-end: 16px; }
.cb-rs__steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; inset-block-start: 2px; display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 50%; background: var(--ink-deep); color: #fff; font: 800 14px var(--ui); }
.cb-rs__steps p { margin: 0 0 6px; }
.cb-rs__locked, .cb-rs__end { padding: 14px; border-radius: 14px; background: var(--cream); }

/* ── 19.11 (2nd pass) ───────────────────────────────────────────────────────────────────── */
/* The author's signature at the end of the foreword. */
/* The author's signature: centered, like the close of a letter (it used to sit at the "end" side, i.e. left in Hebrew). */
p.cb-sign { margin: 1.6em 0 0; text-align: center; font: 700 1.25em/1.2 var(--head); color: var(--ink-deep); }
p.cb-sign::before { content: ""; display: block; inline-size: 60px; block-size: 2px; margin: 0 auto 10px; background: var(--accent); }
/* Captions under photos. */
.cb-page__inner figcaption, .cb-text figcaption { margin-block-start: 6px; font: 500 .78em/1.4 var(--ui); color: var(--muted); text-align: center; }
/* A chef: photo, name and country on one line, the text under it. One block, so it never splits from its text. */
.cb-chef { margin: 1.2em 0; padding: 14px; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgb(0 0 0 / .05); }
.cb-chef__head { display: flex; align-items: center; gap: 12px; margin-block-end: 8px; }
img.cb-chef__pic { flex: none; inline-size: 76px !important; block-size: 76px !important; aspect-ratio: 1; object-fit: cover; border-radius: 50% !important; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold) !important; margin: 0 !important; }
h3.cb-chef__name { margin: 0 !important; font: 800 1.12em/1.2 var(--head); color: var(--ink-deep); }
h3.cb-chef__name::before { display: none !important; }
p.cb-chef__meta { margin: 3px 0 0 !important; font: 600 .76em/1.3 var(--ui); color: var(--gold); letter-spacing: .01em; }
.cb-chef > p { margin: 0 0 .4em; font-size: .95em; }
.cb-chef > p:last-child { margin-block-end: 0; }
.cb-more__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; text-align: start; font-size: .82em; line-height: 1.35; }
.cb-more__list li { padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.cb-more__list b { display: block; font-weight: 800; }
/* Chef quadrants: a one-page summary, the four parts at home, worked examples, the 16-grid, tiers, the type cards. */
.cb-tldr { background: var(--ink-deep); color: #f3eee9; }
.cb-tldr .cb-dia__title { color: #fff; }
.cb-tldr .cb-steps__list li { background: rgb(255 255 255 / .07); color: #f3eee9; }
.cb-four .cb-dia__cell em { display: block; margin-block-start: 6px; padding-block-start: 6px; border-block-start: 1px dashed var(--line); font-style: normal; font-weight: 700; color: var(--ink-deep); }
.cb-ex { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin-block-end: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); text-align: start; font-size: .82em; line-height: 1.4; }
.cb-ex b { grid-column: 1; font-weight: 800; }
.cb-ex span { grid-column: 1; color: var(--muted); }
.cb-ex strong { grid-column: 2; grid-row: 1 / span 2; font: 900 1.25em/1 var(--head); color: var(--accent); white-space: nowrap; }
.cb-ex i { font-style: normal; font-weight: 800; padding: 0 5px; border-radius: 6px; color: #fff; direction: ltr; display: inline-block; }
.cb-ex i.y { background: var(--accent); }
.cb-ex i.z { background: var(--gold); }
.cb-m16__how { margin: 0 0 10px; font-size: .8em; line-height: 1.6; text-align: start; }
.cb-m16__how b { display: inline-grid; place-items: center; inline-size: 1.5em; block-size: 1.5em; margin-inline: 2px 4px; border-radius: 50%; background: var(--ink-deep); color: #fff; font-size: .9em; }
.cb-m16 .cb-dia__matrix { font-size: .72em; gap: 5px; }
.cb-m16 .cb-dia__matrix > span { min-block-size: 44px; }
.cb-m16 .cb-dia__matrix > span.h { display: flex; flex-direction: column; color: var(--ink); }
.cb-m16 .cb-dia__matrix small { display: block; font-size: .78em; font-weight: 700; opacity: .7; }
.cb-m16 .cb-dia__matrix > span[data-x] { display: flex; flex-direction: column; font-size: 1.6em; }
.cb-m16 .cb-dia__matrix > span[data-x] small { font-size: .45em; opacity: .9; }
.cb-tier { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; align-items: start; padding: 8px 0; border-block-end: 1px solid var(--line); text-align: start; }
.cb-tier:last-child { border: 0; }
.cb-tier__n { display: grid; place-items: center; block-size: 2.2em; border-radius: 10px; color: #fff; font: 900 1em/1 var(--head); }
.cb-tier__n[data-x="0"] { background: #b9b2aa; } .cb-tier__n[data-x="1"] { background: #d9a35a; } .cb-tier__n[data-x="2"] { background: #d7843b; }
.cb-tier__n[data-x="3"] { background: #d4612f; } .cb-tier__n[data-x="4"] { background: #d23f2c; } .cb-tier__n[data-x="5"] { background: #a5161d; }
.cb-tier ul { margin: 0; padding: 0; list-style: none; font-size: .8em; line-height: 1.45; }
.cb-tier li + li { margin-block-start: 3px; }
.cb-type { margin: 1em 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); border-inline-start: 5px solid var(--accent); }
.cb-type--b2, .cb-type--b1 { border-inline-start-color: var(--gold); }
.cb-type--0 { border-inline-start-color: #b9b2aa; }
.cb-type__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-block-end: 6px; }
.cb-type__head b { font: 800 1.02em/1.3 var(--head); color: var(--ink-deep); }
.cb-type__stars { flex: none; color: var(--gold); letter-spacing: 2px; font-weight: 800; }
.cb-type p { margin: 0 0 .45em; font-size: .93em; }
.cb-type p:last-child { margin: 0; }
ol.cb-reasons { margin: .4em 0 1em; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 8px; }
ol.cb-reasons li { counter-increment: r; position: relative; padding: 10px 12px 10px 12px; padding-inline-start: 44px; border-radius: 12px; background: var(--cream); }
ol.cb-reasons li::before { content: counter(r); position: absolute; inset-inline-start: 10px; inset-block-start: 10px; display: grid; place-items: center; inline-size: 24px; block-size: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 900 .85em/1 var(--ui); }
ul.cb-qs { margin: .3em 0 1em; padding: 0; list-style: none; display: grid; gap: 6px; }
ul.cb-qs li { padding: 8px 12px; padding-inline-start: 34px; position: relative; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
ul.cb-qs li::before { content: "?"; position: absolute; inset-inline-start: 10px; color: var(--accent); font: 900 1.1em/1.4 var(--head); }
p.cb-cta { text-align: center; margin: 1.2em 0; }
p.cb-cta a { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff !important; font: 800 1em/1.2 var(--ui); text-decoration: none; box-shadow: 0 8px 20px rgb(217 38 46 / .25); }
/* Cookbook touch: line-drawn pots peek from the corner of each stopping point. */
.cb-stop { position: relative; overflow: hidden; }
.cb-stop::after { content: ""; position: absolute; inset-inline-end: -14px; inset-block-start: -10px; inline-size: 120px; block-size: 80px; background: url("/wp-content/uploads/2026/11/sodot-hashefim-MAGcvti8_Ow-300x194.png") no-repeat center / contain; filter: invert(1); opacity: .16; pointer-events: none; }
.cb-stop > * { position: relative; z-index: 1; }
/* Small equation ("חומרי גלם + בישול = מנה טובה"), a diner's order as a menu card, spoken lines, a small portrait. */
.cb-eq { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.cb-eq span { padding: 8px 12px; border-radius: 12px; background: var(--bg); font: 800 .9em/1.3 var(--ui); box-shadow: 0 2px 8px rgb(0 0 0 / .06); }
.cb-eq span.is-win { background: var(--ink-deep); color: #fff; }
.cb-eq i { font: 900 1.4em/1 var(--head); font-style: normal; color: var(--accent); }
.cb-menu ul { margin: 0 auto; padding: 0; list-style: none; max-inline-size: 280px; }
.cb-menu li { padding: 8px 0; border-block-end: 1px dashed var(--line); font: 700 1em/1.3 var(--head); }
.cb-menu li:last-child { border: 0; }
.cb-menu small { display: block; font: 700 .68em/1.4 var(--ui); letter-spacing: .08em; color: var(--gold); }
.cb-dialog-lines { margin: .6em 0 1em; padding-inline-start: 14px; border-inline-start: 3px solid var(--line); }
.cb-dialog-lines p { margin: 0 0 .3em; font: 600 1em/1.5 var(--head); font-style: italic; color: var(--ink-deep); }
p.cb-sign small { display: block; margin-block-start: 4px; font: 500 .62em/1.4 var(--ui); color: var(--muted); }
figure.cb-mini { inline-size: 38%; max-inline-size: 170px; margin: .4em auto 1em; }
figure.cb-mini img { aspect-ratio: 1; object-fit: cover; border-radius: 50% !important; }
/* A diagram continued on the next page keeps its frame. */
.cb-dia.cb-cont, .cb-type.cb-cont, .cb-chef.cb-cont { margin-block-start: 0; }

/* ── 19.11 (3rd pass): diagrams for the secrets and the cuisines ─────────────────────────── */
.cb-tier li b { display: block; font-weight: 800; color: var(--ink-deep); }
.cb-tier li small { display: block; color: var(--muted); font-size: .92em; }
/* Stock + something = a sauce base. */
.cb-combo { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 4px 8px; padding: 8px 10px; margin-block-end: 6px; border-radius: 12px; background: var(--bg); text-align: start; font-size: .82em; }
.cb-combo span { font-weight: 800; }
.cb-combo i { font-style: normal; font-weight: 900; color: var(--accent); }
.cb-combo em { grid-column: 1 / -1; font-style: normal; color: var(--muted); }
/* Four stocks side by side. */
.cb-stock { margin-block-end: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); text-align: start; font-size: .8em; line-height: 1.4; }
.cb-stock__head { display: flex; align-items: center; gap: 8px; margin-block-end: 4px; }
.cb-stock__head i { font-style: normal; font-size: 1.5em; }
.cb-stock__head b { flex: 1; font: 800 1.1em/1.2 var(--head); }
.cb-stock__head span { padding: 2px 8px; border-radius: 999px; background: var(--ink-deep); color: #fff; font-weight: 800; font-size: .9em; white-space: nowrap; }
.cb-stock p { margin: 2px 0 0; }
.cb-stock small { display: inline-block; min-inline-size: 4.4em; color: var(--gold); font-weight: 800; }
/* Where pressure comes from: half and half. */
.cb-half__bar { display: grid; grid-template-columns: 1fr 1fr; margin-block-end: 10px; border-radius: 999px; overflow: hidden; font: 800 .8em/2.2 var(--ui); color: #fff; }
.cb-half__bar span:first-child { background: var(--accent); }
.cb-half__bar span:last-child { background: var(--gold); }
.cb-half ul { margin: 6px 0 0; padding-inline-start: 1.1em; }
/* Two lanes on a time line: before service, during service. */
.cb-lane { position: relative; margin-block-end: 10px; padding-inline-start: 14px; border-inline-start: 3px solid var(--gold); text-align: start; }
.cb-lane--live { border-color: var(--accent); }
.cb-lane__tag { display: inline-block; margin-block-end: 6px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #1e1a17; font: 800 .74em/1.6 var(--ui); }
.cb-lane--live .cb-lane__tag { background: var(--accent); color: #fff; }
.cb-lanes .cb-steps__list li { font-size: .8em; }
/* Balance: the axes under the two salads. */
.cb-balance__axes { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 10px 0 0; }
.cb-balance__axes span { padding: 2px 9px; border-radius: 999px; background: var(--bg); font: 700 .72em/1.7 var(--ui); }
.cb-balance__axes b { color: var(--accent); }
/* A mentor's DNA: three parts. */
.cb-dna__row { display: grid; gap: 8px; }
.cb-dna__c { padding: 10px 12px; border-radius: 12px; background: var(--bg); text-align: start; font-size: .82em; line-height: 1.45; border-inline-start: 5px solid var(--gold); }
.cb-dna__c--1 { border-color: var(--gold); }
.cb-dna__c--2 { border-color: var(--ink-deep); }
.cb-dna__c b { display: block; font: 800 1.08em/1.3 var(--head); }
/* Three chefs in a row. */
.cb-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1em 0; }
.cb-trio figure { margin: 0; text-align: center; }
.cb-trio img { inline-size: 100% !important; aspect-ratio: 1; object-fit: cover; border-radius: 50% !important; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold) !important; }
.cb-trio figcaption { margin-block-start: 6px; font: 700 .74em/1.3 var(--ui); color: var(--ink); }
/* Tasting cards: three tastes per dish. */
.cb-taste { margin-block-end: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); text-align: start; font-size: .8em; line-height: 1.45; }
.cb-taste > b { display: block; margin-block-end: 4px; font: 800 1.1em/1.3 var(--head); }
.cb-taste ol { margin: 0; padding-inline-start: 1.3em; }
.cb-taste li::marker { content: "👅 "; }
.cb-taste__note { margin: 6px 0 0 !important; padding: 6px 8px; border-radius: 8px; background: var(--cream); color: var(--muted); font-size: .92em; }
/* The scales. */
.cb-scale__beam { block-size: 6px; margin: 4px 16% 10px; border-radius: 3px; background: var(--ink-deep); position: relative; }
.cb-scale__beam::after { content: ""; position: absolute; inset-inline-start: calc(50% - 8px); inset-block-start: 6px; border: 8px solid transparent; border-block-start: 14px solid var(--ink-deep); }
.cb-scale__pans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cb-scale__pans > div { display: grid; gap: 4px; padding: 10px; border-radius: 0 0 50% 50% / 0 0 22% 22%; background: var(--bg); font-size: .8em; }
.cb-scale__pans b { font-weight: 800; color: var(--accent); }
.cb-scale__pans > div:last-child b { color: #2f7d55; }
/* A cuisine card: dishes, contribution, influence. */
.cb-cz__ic { font-size: 1.1em; }
.cb-cz { margin: .4em 0 1.2em; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cb-cz__row { margin: 0 !important; padding: 9px 12px; font-size: .9em; line-height: 1.5; }
.cb-cz__row + .cb-cz__row { border-block-start: 1px solid var(--line); }
.cb-cz__row small { display: block; font: 800 .74em/1.4 var(--ui); letter-spacing: .04em; color: var(--gold); }
.cb-cz__row--0 { background: var(--cream); font-weight: 600; }

/* ── 0.7: parts, footnotes, cross references, tools, the two tablets ─────────────────────────────── */
/* A part of a longer chapter (the 30 secrets in parts): a light opener with the same number and "part 3 of 6". */
.cb-page__part { display: block; margin-block-start: 6px; font: 700 13px/1.3 var(--ui); letter-spacing: .02em; color: var(--gold); }
.cb-page--part { background: var(--cream); }
.cb-page--part .cb-page__inner { color: var(--ink); }
.cb-page--part .cb-page__chapter h1 { color: var(--ink-deep); }
.cb-page--part p { color: var(--ink); font-size: 1em; }
.cb-page--part .cb-page__foot { border-color: var(--line); color: var(--muted); }
[data-theme="dark"] .cb-page--part .cb-page__chapter h1 { color: var(--ink); }
.cb-toc__part a { padding-block: 8px; padding-inline-start: 34px; font-size: .92em; color: var(--muted); }
.cb-toc__part .cb-toc__num { display: none; }
.cb-toc__part a::before { content: "↳"; color: var(--gold); }

/* Footnotes: "?¹" in the text, a bubble on tap, the notes at the foot of the page (flipbook) or chapter (scrolling). */
button.cb-fn { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 1.7em; block-size: 1.45em; margin-inline: 2px; padding: 0 5px; border: 0; border-radius: 999px; vertical-align: .18em; background: var(--chip); color: var(--accent); font: 800 .68em/1 var(--ui); cursor: pointer; }
button.cb-fn:hover, button.cb-fn:focus-visible { background: var(--accent); color: #fff; }
.cb-fn-bubble { position: fixed; z-index: 95; max-inline-size: min(320px, calc(100vw - 20px)); padding: 10px 14px; border-radius: 12px; background: var(--ink-deep); color: #f3eee9; font: 500 14px/1.5 var(--ui); box-shadow: 0 12px 30px rgb(0 0 0 / .3); }
.cb-fn-bubble b { margin-inline-end: 6px; color: var(--gold); }
.cb-fn-bubble::after { content: ""; position: absolute; inset-block-end: -6px; left: calc(var(--x, 50%) - 6px); border: 6px solid transparent; border-block-end: 0; border-block-start-color: var(--ink-deep); }
.cb-fn-bubble.is-below::after { inset-block: -6px auto; border-block-start: 0; border-block-end: 6px solid var(--ink-deep); }
.cb-page__inner { position: relative; }
.cb-fnotes { margin-block-start: 1em; padding-block-start: 6px; border-block-start: 1px solid var(--line); font: 500 .74em/1.45 var(--ui); color: var(--muted); }
.cb-fnotes p { margin: 0 0 3px; }
.cb-fnotes b { color: var(--accent); margin-inline-end: 3px; }
.cb-page .cb-fnotes { position: absolute; inset-inline: 22px; inset-block-end: 4px; margin: 0; background: var(--bg); }
/* A note on a chapter's dark opening page: on the dark background, not in a white strip (23.11). */
.cb-page--opener .cb-fnotes { background: var(--ink-deep); border-color: rgb(255 255 255 / .18); color: rgb(255 255 255 / .72); }
.cb-page--opener .cb-fnotes p { color: inherit; font-size: inherit; }
ol.cb-fnotes-end { margin: 2.2em 0 0; padding: 10px 0 0; border-block-start: 1px solid var(--line); list-style: none; font: 500 .82em/1.5 var(--ui); color: var(--muted); }
ol.cb-fnotes-end li::before { content: "?" attr(data-fn) " "; color: var(--accent); font-weight: 800; }
@media print { button.cb-fn { background: none; padding: 0; } }

/* Cross references: one line that points to where the subject is taken further. */
.cb-xref { margin: .9em 0; padding: 8px 12px; border-inline-start: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--cream); font: 500 .9em/1.55 var(--ui); color: var(--ink); }
[dir="rtl"] .cb-xref { border-radius: 10px 0 0 10px; }
.cb-xref a { font-weight: 800; text-decoration: none; }
.cb-xref a::after { content: " ←"; }
a.cb-rs__ref { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* A tool card in the text, and the tools' sheet. */
.cb-tool { margin: 1.2em 0; padding: 16px; border-radius: 16px; background: var(--ink-deep); color: #f3eee9; text-align: center; font-family: var(--ui); }
.cb-tool__kicker { display: block; font: 800 12px/1.4 var(--ui); letter-spacing: .06em; color: var(--gold); }
.cb-tool__title { display: block; margin: 4px 0 6px; font: 900 1.3em/1.25 var(--head); color: #fff; }
.cb-tool__text { display: block; margin: 0 0 12px; font-size: .9em; line-height: 1.5; color: #e9e2db; }
button.cb-tool__btn { min-block-size: 46px; padding-inline: 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 800 15px var(--ui); cursor: pointer; }
.cb-toolsheet__title { margin-inline-start: auto; font: 800 15px var(--ui); }
.cb-calc { max-inline-size: 560px; margin: 0 auto; padding: 18px 18px 40px; font-family: var(--ui); }
.cb-calc__lead { margin: 0 0 16px; color: var(--muted); }
.cb-calc__q { margin-block-end: 18px; }
.cb-calc__q label { display: flex; justify-content: space-between; align-items: baseline; }
.cb-calc__q output { min-inline-size: 2.2em; padding: 2px 8px; border-radius: 999px; background: var(--chip); text-align: center; font-weight: 800; color: var(--accent); }
.cb-calc__q input { inline-size: 100%; margin: 8px 0 4px; accent-color: var(--accent); block-size: 28px; }
.cb-calc__q small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cb-calc__res { margin: 8px 0 14px; padding: 16px; border-radius: 16px; background: var(--ink-deep); color: #f3eee9; text-align: center; }
.cb-calc__stars { font-size: 30px; letter-spacing: 4px; color: var(--gold); }
.cb-calc__stars i { font-style: normal; color: rgb(255 255 255 / .18); }
.cb-calc__name { display: block; margin: 4px 0; font: 900 1.5em/1.2 var(--head); color: #fff; }
.cb-calc__formula { margin: 4px 0 10px; font-weight: 700; color: #c9bfb5; }
.cb-calc__formula i { font-style: normal; display: inline-block; min-inline-size: 1.4em; border-radius: 6px; color: #fff; }
.cb-calc__formula .x { background: #4a413a; }
.cb-calc__formula .y { background: var(--accent); }
.cb-calc__formula .z { background: var(--gold); }
.cb-calc__next { margin: 0; text-align: start; line-height: 1.5; }
/* 23.11: three levels per part instead of a 1–10 slider. */
fieldset.cb-calc__q { margin: 0 0 16px; padding: 0; border: 0; }
.cb-calc__q legend { display: flex; justify-content: space-between; align-items: baseline; inline-size: 100%; padding: 0; margin-block-end: 6px; }
.cb-calc__q legend output { font-size: 13px; }
.cb-calc__q .cb-calc__lvl { display: flex; justify-content: flex-start; gap: 10px; align-items: flex-start; margin-block-end: 6px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-size: 14px; line-height: 1.45; }
.cb-calc__lvl:has(input:checked) { border-color: var(--accent); background: var(--chip); }
.cb-calc__q .cb-calc__lvl input { flex: none; inline-size: 18px; block-size: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.cb-calc__lvl b { display: block; font-weight: 800; }
.cb-calc__lvl span { color: var(--muted); }
.cb-calc__lvl span b { color: var(--ink); }
.cb-calc__half { font-weight: 900; color: var(--gold); letter-spacing: 0; }
.cb-calc__note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--chip); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cb-check__score { position: sticky; inset-block-start: 0; z-index: 1; display: grid; gap: 6px; margin-block-end: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink-deep); color: #f3eee9; }
.cb-check__score strong { font: 900 1.6em/1 var(--head); color: var(--gold); }
.cb-check__bar { display: block; block-size: 8px; border-radius: 4px; background: rgb(255 255 255 / .15); overflow: hidden; }
.cb-check__bar i { display: block; block-size: 100%; background: var(--accent); transition: inline-size .25s; }
.cb-check__list { list-style: none; margin: 0; padding: 0; }
.cb-check__list li { display: flex; align-items: center; gap: 6px; border-block-end: 1px solid var(--line); }
.cb-check__list label { flex: 1; display: flex; align-items: center; gap: 10px; min-block-size: 48px; cursor: pointer; }
.cb-check__list input { inline-size: 22px; block-size: 22px; accent-color: #2f7d55; flex: none; }
.cb-check__n { flex: none; inline-size: 26px; font-weight: 800; color: var(--muted); }
.cb-check__list input:checked ~ .cb-check__t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(47 125 85 / .6); }
.cb-check__go { padding: 10px; text-decoration: none; font-weight: 800; }

/* The ten commandments as two tablets: rounded tops, like the stone tablets. */
.cb-dodont__cols > div { border-radius: 46% 46% 12px 12px / 18% 18% 12px 12px; padding-block-start: 20px; text-align: center; border: 2px solid var(--line); }
.cb-dodont__cols ol { text-align: start; }

/* Tablet: one wide page reads better with a little more air. */
@media (min-width: 600px) and (max-width: 1099px) {
	.cb-page__inner { padding-inline: 30px; }
	.cb-page .cb-fnotes { inset-inline: 30px; }
}
/* "באהבה," right above the signature goes to the center with it. */
p:has(+ p.cb-sign) { text-align: center; }
[data-theme="dark"] p.cb-sign { color: var(--ink); }
/* While pages are measured the notes take their real room; on the finished page they sit at its foot. */
.cb-measure .cb-page .cb-fnotes { position: static; margin-block-start: 1em; }
p.cb-label:has(+ p.cb-sign)::after { display: none; }
p.cb-label:has(+ p.cb-sign) { margin-block-start: 1.6em; font-weight: 600; }
.cb-calc__res { position: sticky; inset-block-start: 0; z-index: 2; margin: 0 0 14px; padding: 10px 14px; box-shadow: 0 8px 18px rgb(0 0 0 / .18); }
.cb-calc__stars { font-size: 24px; line-height: 1.1; }
.cb-calc__name { font-size: 1.3em; }
.cb-calc__formula { margin: 2px 0 0; }
.cb-calc__nextbox { margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--chip); }
.cb-backchip { position: absolute; inset-block-end: 10px; inset-inline-start: 50%; transform: translateX(50%); z-index: 30; min-block-size: 40px; padding-inline: 16px; border: 0; border-radius: 999px; background: var(--ink-deep); color: #fff; font: 700 14px var(--ui); box-shadow: 0 8px 20px rgb(0 0 0 / .3); cursor: pointer; }
[dir="ltr"] .cb-backchip { transform: translateX(-50%); }
/* The cover: title and words as live text, the picture's photo band between them. */
.cb-cover { display: flex; flex-direction: column; block-size: 100%; container-type: inline-size; background: #0d0d0d; overflow: hidden; }
.cb-cover__top { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 7cqw 6cqw 5cqw; background: linear-gradient(#fff, #e8e7e4); color: #111; text-align: center; }
.cb-cover__top h2 { margin: 0; font: 900 15.5cqw/1 var(--head); letter-spacing: -.01em; color: #111; }
.cb-cover__top i { position: relative; display: block; inline-size: 74%; block-size: 3px; margin: 3.4cqw 0 2.8cqw; border-radius: 2px; background: #1b1b1b; }
.cb-cover__top i::before, .cb-cover__top i::after { content: ""; position: absolute; inset-block-start: -3px; inline-size: 9px; block-size: 9px; border: 2px solid #1b1b1b; border-radius: 50%; background: #fff; box-sizing: border-box; }
.cb-cover__top i::before { inset-inline-start: -6px; }
.cb-cover__top i::after { inset-inline-end: -6px; }
.cb-cover__top p { margin: 0 !important; font: 600 5.6cqw/1.2 var(--ui); color: #2b2b2b; }
.cb-cover__photos { position: relative; flex: 0 1 auto; min-block-size: 30cqw; overflow: hidden; }
.cb-page--cover .cb-cover__photos img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-block-size: none; margin: 0; border-radius: 0; object-fit: cover; }
.cb-cover__band { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; padding: 5.5cqw 7cqw 6.5cqw; background: #0d0d0d; color: #fff; text-align: center; }
.cb-cover__band strong { font: 800 7.4cqw/1.22 var(--head); color: #fff; text-wrap: balance; }
.cb-cover__band span { font: 600 4.5cqw/1.4 var(--ui); color: #E0A84A; text-wrap: balance; }
.cb-cover__open { margin-block-start: 2.4cqw; padding: 2.4cqw 6.5cqw; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 800 4.4cqw/1.2 var(--ui); cursor: pointer; box-shadow: 0 6px 18px rgb(217 38 46 / .35); }
/* Stop points as tasks: a box to tick once "this week in the kitchen" is done; in print, a square for a pen. */
.cb-stop__done { display: flex; align-items: center; gap: 10px; inline-size: 100%; margin: 0 0 .7em; padding: 9px 12px; border: 1px dashed rgb(255 255 255 / .35); border-radius: 12px; background: rgb(255 255 255 / .06); color: #fff; font: 700 .9em/1.3 var(--ui); text-align: start; cursor: pointer; }
.cb-stop__done > * { pointer-events: none; }
.cb-stop__box { flex: none; display: grid; place-items: center; inline-size: 22px; block-size: 22px; border: 2px solid var(--gold); border-radius: 6px; }
.cb-stop__yes { display: none; }
.cb-stop.is-done .cb-stop__done { border-style: solid; border-color: #1a9b4b; background: rgb(26 155 75 / .18); }
.cb-stop.is-done .cb-stop__box { border-color: #1a9b4b; background: #1a9b4b; }
.cb-stop.is-done .cb-stop__box::after { content: "✓"; color: #fff; font: 900 15px/1 var(--ui); }
.cb-stop.is-done .cb-stop__todo { display: none; }
.cb-stop.is-done .cb-stop__yes { display: inline; }
.cb-check__tasks { margin: 0 0 12px; font-weight: 700; color: var(--accent); }
@media print {
	.cb-stop__done { border: 1px solid #999; background: none; color: #000; }
	.cb-stop__yes { display: none !important; }
	.cb-stop__todo { display: inline !important; }
}

/* ── 0.7.6 (owner 20.11) ─────────────────────────────────────────────────────────────────────────
   One rule for colour: a side rule is always saffron (callouts, highlights, references); red is for numbers, tags
   and buttons; ink for the dark bands. */
.cb-fn-bubble { padding-inline-end: 34px; }
.cb-fn-bubble__x { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; inline-size: 28px; block-size: 28px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font: 700 18px/1 var(--ui); cursor: pointer; }
.cb-cover__band em { font: 600 3.5cqw/1.4 var(--ui); font-style: normal; color: rgb(255 255 255 / .78); letter-spacing: .01em; text-wrap: balance; }

/* Two-column boxes on a narrow page (a phone, each page of a desktop spread): one column under the other, each whole
   (flip.js keeps a column on one page). Side by side only where a column has room for its lines. */
.cb-dodont, .cb-vs { container-type: inline-size; }
.cb-dia.cb-dodont { padding: 10px; }
@container (max-width: 420px) {
	.cb-dodont__cols, .cb-vs__cols { grid-template-columns: 1fr; gap: 10px; }
	.cb-dodont__cols > div { border-radius: 26px 26px 12px 12px; padding: 10px 12px 8px; }
	.cb-dodont__cols > div, .cb-vs__cols > div { font-size: .86em; line-height: 1.35; }
	.cb-dodont ol { margin-block-start: 6px; }
	.cb-dodont li { margin-block-end: 2px; }
}
.cb-dodont__cols > div { background: var(--bg); }

/* The pyramid (passion, experience, the chance): built in the page, so it fits any screen and stays sharp. */
/* One continuous triangle cut into three bands; the darker right face gives it volume. */
.cb-pyramid .cb-pyramid__tiers { position: relative; display: grid; grid-template-rows: 1.3fr 1fr 1fr; list-style: none; margin: 6px auto 0; padding: 0; inline-size: min(100%, 400px, calc(var(--ph, 900px) * .5)); aspect-ratio: 1.12; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cb-pyramid .cb-pyramid__tiers::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgb(255 255 255 / .1) 50%, rgb(0 0 0 / .16) 50%); pointer-events: none; }
.cb-pyramid .cb-pyramid__tiers li { display: flex; flex-direction: column; justify-content: flex-end; margin: 0; padding: 0 16% 7%; color: #fff; text-align: center; }
.cb-pyramid .cb-pyramid__tiers li + li { box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .55); }
.cb-pyramid .cb-pyramid__tiers b { position: relative; z-index: 1; display: block; font: 900 1.12em/1.15 var(--head); }
.cb-pyramid .cb-pyramid__tiers span { position: relative; z-index: 1; display: block; margin-block-start: 2px; font: 600 .74em/1.3 var(--ui); opacity: .92; }
.cb-pyramid .cb-pyramid__tiers .is-top { padding-inline: 30%; padding-block-end: 3%; background: linear-gradient(to bottom, #e5484f, var(--accent)); }
.cb-pyramid .cb-pyramid__tiers .is-mid { padding-inline: 22%; background: linear-gradient(to bottom, #dba24c, var(--gold)); }
.cb-pyramid .cb-pyramid__tiers .is-base { padding-inline: 10%; justify-content: center; background: linear-gradient(to bottom, #3a342f, var(--ink-deep)); }
.cb-pyramid { container-type: inline-size; }
/* The words shrink with the pyramid, which follows both the box width and the page height. */
.cb-pyramid .cb-pyramid__tiers { font-size: clamp(11px, calc(min(100cqi, 400px, var(--ph, 900px) * .5) / 17), 16px); }
.cb-pyramid .cb-pyramid__tiers .is-top b { font-size: .95em; }
.cb-pyramid .cb-pyramid__tiers .is-top span { font-size: .64em; }
.cb-pyramid__sum { margin: 8px 0 0; font: 800 .92em/1.4 var(--ui); color: var(--ink); }
.cb-pyramid__sum i { font-style: normal; color: var(--accent); padding-inline: 4px; }

@media print { .cb-fn-bubble { display: none; } }
/* A gallery (two or three photos side by side) never taller than a third of the page. */
.cb-page__inner .wp-block-gallery img { max-block-size: calc(var(--ph, 600px) * .32); object-fit: cover; }
/* Recipe cards and the closing page on a short phone: a smaller photo, the description in a few lines. */
.cb-page__inner .cb-recipe__image { max-block-size: min(160px, calc(var(--ph, 600px) * .24)); }
.cb-page__inner .cb-recipe__body p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cb-page--end .cb-end p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
/* The cover's photos as tiles in a white frame, a red mark between them (as in the printed cover). On a short page
   the tiles give up height, never their frame. */
.cb-cover__photos--tiles { display: grid; grid-template-columns: 27fr 46fr 27fr; gap: 1.4cqw; flex: 0 1 60cqw; min-block-size: 34cqw; padding: 1.4cqw; background: #fff; }
.cb-cover__photos--tiles > div { position: relative; overflow: hidden; }
.cb-page--cover .cb-cover__photos--tiles img { position: static; inline-size: 100%; block-size: 100%; }
.cb-cover__photos--tiles > div:not(:last-child)::after { content: ""; position: absolute; inset-block: 30%; inset-inline-end: 0; inline-size: 1.6cqw; background: var(--accent); }
.cb-cover__band strong { text-wrap: balance; }
/* A portrait cropped to a square keeps the face in it. */
h3 + figure.cb-portrait img, figure.cb-portrait img { object-position: 50% 22%; }
/* The words and the button always show whole; the photos take what height is left (from a slim band up to 60cqw). */
.cb-cover:has(.cb-cover__photos--tiles) .cb-cover__top { flex: none; }
.cb-cover__photos--tiles { flex: 1 1 0; min-block-size: 22cqw; max-block-size: 60cqw; }
/* The red marks sit on the white frame line between the photos, not inside a photo. */
.cb-cover__photos--tiles > div { overflow: visible; }
.cb-cover__photos--tiles > div > img { display: block; }
.cb-cover__photos--tiles > div:not(:last-child)::after { inset-inline-end: -1.5cqw; z-index: 1; }

/* Check bullets ride on the first line of their text, not above it. */
ul.cb-checks li { display: flex; align-items: baseline; gap: .55em; padding-inline-start: 0; }
ul.cb-checks li::before { position: static; flex: none; transform: translateY(-.08em); }

/* The two tablets: a soft stone tone, a double rule and rounded tops. A nod to the image, kept gentle. */
.cb-dodont .cb-dia__title small { display: block; margin-block-start: 3px; font: 600 .78em/1.4 var(--ui); color: var(--muted); }
.cb-dodont__cols > div { background: linear-gradient(180deg, #fffdf9, #f6efe4); box-shadow: inset 0 0 0 1px #e3d6c3, inset 0 0 0 5px #fffdf9, inset 0 0 0 6px #eadfce; border: 0; }
[data-theme="dark"] .cb-dodont__cols > div { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* Book covers in "ספרים וקורסים": a small cover with a shadow, under the book's name. */
figure.cb-bookcover { margin: .4em auto 1em; text-align: center; }
figure.cb-bookcover img { display: inline-block; inline-size: auto; max-inline-size: 42%; max-block-size: min(200px, calc(var(--ph, 600px) * .3)); border-radius: 3px !important; box-shadow: 0 8px 20px rgb(0 0 0 / .22); }
/* Pictures are capped by the page's own height (--ph), not the window's: on a short page a photo with a caption
   still fits, and a picture alone on its page (cb-oversize) leaves room for its caption. */
.cb-page__inner img { max-block-size: min(45vh, calc(var(--ph, 100vh) * .42)); }
.cb-page__inner .cb-oversize img, .cb-page__inner img.cb-oversize { max-block-size: calc(var(--ph, 100vh) - 210px); }
/* The cover sizes itself by the page's shorter side (cqmin), so a wide page on a low desktop window keeps the same
   proportions as a tall phone page instead of oversized words and a thin strip of photos. */
.cb-cover { container-type: size; }
.cb-cover__top { padding: 6cqmin 6cqmin 4.5cqmin; }
.cb-cover__top h2 { font-size: 15.5cqmin; }
.cb-cover__top i { margin: 3.2cqmin 0 2.6cqmin; }
.cb-cover__top p { font-size: 5.6cqmin; }
.cb-cover__photos--tiles { gap: 1.4cqmin; padding: 1.4cqmin; flex-basis: 60cqmin; min-block-size: 22cqmin; max-block-size: 60cqmin; }
.cb-cover__photos--tiles > div:not(:last-child)::after { inset-inline-end: -1.5cqmin; inline-size: 1.6cqmin; }
.cb-cover__band { gap: 1.6cqmin; padding: 4.5cqmin 6cqmin 5.5cqmin; }
.cb-cover__band strong { font-size: 7cqmin; }
.cb-cover__band span { font-size: 4.5cqmin; }
.cb-cover__band em { font-size: 3.5cqmin; }
.cb-cover__open { margin-block-start: 2.4cqmin; padding: 2.4cqmin 6.5cqmin; font-size: 4.4cqmin; }
.cb-page__inner .wp-block-gallery img { max-block-size: calc(var(--ph, 600px) * .26); }
/* On a wide page the cover keeps a book's proportions, centred on a dark ground. */
.cb-page--cover .cb-page__inner { display: flex; justify-content: center; background: #0d0d0d; container-type: size; }
.cb-page--cover .cb-cover { inline-size: min(100%, 72cqh); flex: none; }

/* A chapter photo squeezed into a short, wide page is cropped from the middle: keep the upper part, where faces are. */
.cb-page__inner .cb-chapter__image { object-position: 50% 25%; }

/* The cover on a wide page (desktop, landscape tablet): the same cover (title, three photos with the chef in the
   middle, the black band), across the whole page instead of a narrow strip in black margins; sized by the height. */
@container (min-aspect-ratio: 1/1) {
	.cb-page--cover .cb-cover { inline-size: 100%; }
	.cb-page--cover .cb-cover__top { padding: 3cqh 5cqw 2.2cqh; }
	.cb-page--cover .cb-cover__top h2 { font-size: min(10.5cqh, 9cqw); }
	.cb-page--cover .cb-cover__top i { inline-size: min(60%, 70cqh); margin: 1.6cqh 0 1.2cqh; }
	.cb-page--cover .cb-cover__top p { font-size: min(3.8cqh, 3.2cqw); }
	.cb-page--cover .cb-cover__photos--tiles { flex: 1 1 0; min-block-size: 0; max-block-size: none; gap: 1.2cqh; padding: 1.2cqh; }
	.cb-page--cover .cb-cover__photos--tiles > div:not(:last-child)::after { inset-inline-end: -1.2cqh; inline-size: 1.2cqh; }
	.cb-page--cover .cb-cover__band { gap: .8cqh; padding: 2.2cqh 5cqw 2.6cqh; }
	.cb-page--cover .cb-cover__band strong { font-size: min(5cqh, 4.4cqw); }
	.cb-page--cover .cb-cover__band span { font-size: min(3.4cqh, 2.9cqw); }
	.cb-page--cover .cb-cover__band em { font-size: min(3cqh, 2.4cqw); }
	.cb-page--cover .cb-cover__open { font-size: min(3.3cqh, 2.8cqw); padding: 1.3cqh 4.5cqw; margin-block-start: .6cqh; }
}

/* Two-page view, book still closed: the cover alone sits in the middle, not at one side of an empty spread. */
.cb-book { transition: transform .45s ease; }
.cb-book.is-closed { transform: translateX(25%); }
.cb-book.is-closed.is-ltr { transform: translateX(-25%); }

/* The back cover: black like the cover's band, gold and red accents, sized by the page so it fits any screen. */
.cb-page--back { background: #0d0d0d; box-shadow: none; }
.cb-page--back .cb-page__inner { container-type: size; padding: 0; }
.cb-back { display: flex; flex-direction: column; justify-content: center; gap: 2.4cqh; box-sizing: border-box; inline-size: 100%; block-size: 100%; padding: 4.5cqh 8cqw; color: #f3eee9; text-align: center; border-block-start: 1.2cqh solid var(--accent); }
.cb-page--back .cb-back__kicker { margin: 0 !important; font: 900 min(7.4cqh, 10cqw)/1.1 var(--head); color: #fff; }
.cb-page--back .cb-back .cb-back__hook { display: block; font: 700 min(4.2cqh, 5.6cqw)/1.45 var(--ui); color: #E0A84A; text-wrap: balance; }
.cb-back__list { margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 1cqh; text-align: start; max-inline-size: 34em; }
.cb-back__list li { position: relative; padding-inline-start: 1.4em; font: 600 min(3.6cqh, 4.8cqw)/1.4 var(--ui); color: #f3eee9; }
.cb-back__list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .5em; inline-size: .55em; block-size: .55em; border-radius: 50%; background: var(--accent); }
.cb-back__author { display: flex; align-items: center; gap: 3cqw; margin-inline: auto; max-inline-size: 34em; padding-block-start: 2cqh; border-block-start: 1px solid rgb(255 255 255 / .14); text-align: start; }
.cb-back__author img { flex: none; inline-size: min(14cqh, 20cqw); block-size: min(14cqh, 20cqw); max-block-size: none; margin: 0; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid #E0A84A; }
.cb-page--back .cb-back__author b { display: block; font: 800 min(3.8cqh, 5cqw)/1.2 var(--head); color: #fff; }
.cb-page--back .cb-back__author span { display: block; margin-block-start: .3em; font: 500 min(3cqh, 4cqw)/1.45 var(--ui); color: rgb(255 255 255 / .78); }
.cb-back__site { margin: 0 !important; font: 700 min(2.8cqh, 3.8cqw)/1 var(--ui); letter-spacing: .06em; color: rgb(255 255 255 / .6); direction: ltr; }
.cb-page--back .cb-page__foot { display: none; }
.cb-book.is-back { transform: translateX(-25%); }
.cb-book.is-back.is-ltr { transform: translateX(25%); }
/* The list and the author line as tidy centered blocks: the page's own list indent pushed them off-center. */
.cb-page--back .cb-back__list { padding: 0; margin-inline: auto; inline-size: fit-content; max-inline-size: 100%; }
.cb-page--back .cb-back__author { inline-size: fit-content; max-inline-size: 100%; }

/* Every step keeps room for its number and two lines of words; the height above that still shows the intensity. */
.cb-ladder__steps > div { block-size: calc(78px + var(--h) * .6); }

/* The scale (secret 28): a drawn balance, with what you put in and what comes back under its two pans. */
.cb-scale__svg { display: block; inline-size: min(100%, 340px, calc(var(--ph, 900px) * .45)); block-size: auto; margin: 2px auto 4px; }
.cb-scale .cb-scale__pans { margin-inline: auto; max-inline-size: 360px; }
.cb-scale .cb-scale__pans > div { border-radius: 12px; text-align: center; }

/* Search in the contents panel: results show the page, the chapter and the words around the match. */
.cb-search { padding: 10px 16px; border-block-end: 1px solid var(--line); }
.cb-search__input { box-sizing: border-box; inline-size: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 500 15px/1.2 var(--ui); }
.cb-search__input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.cb-search__results { list-style: none; margin: 6px 0 0; padding: 0; max-block-size: 45vh; overflow-y: auto; }
.cb-search__results:empty { display: none; }
.cb-search__results button { display: grid; gap: 2px; inline-size: 100%; padding: 8px 6px; border: 0; border-block-end: 1px solid var(--line); background: none; color: var(--ink); text-align: start; cursor: pointer; font: inherit; }
.cb-search__results button:hover { background: var(--cream); }
.cb-search__where { font: 700 12px/1.3 var(--ui); color: var(--accent); }
.cb-search__snip { font: 400 13px/1.45 var(--ui); color: var(--muted); }
.cb-search__snip mark { background: rgb(224 168 74 / .35); color: var(--ink); border-radius: 3px; padding-inline: 2px; }
.cb-search__none { padding: 8px 6px; font-size: 13px; color: var(--muted); }

/* The photo row never grows past the frame: the tiles fill the row (minus the padding), so the white frame shows
   below the photos as on the other three sides. */
.cb-cover__photos--tiles { grid-template-rows: minmax(0, 1fr); }
.cb-cover__photos--tiles > div { min-block-size: 0; min-inline-size: 0; }
.cb-page--cover .cb-cover__photos--tiles > div > img { block-size: 100%; max-block-size: 100%; object-fit: cover; }

/* A small bold label (p.cb-label) right under a heading read as a second heading: there it is a soft subtitle, no bar.
   A label under another label is softer too, and a heading after a label gets air above it, so only one line at a
   time reads as a heading. */
.cb-page__inner :is(h2, h3, h4) + p.cb-label { margin-block-start: -.15em; font-weight: 600; color: var(--muted); }
.cb-page__inner :is(h2, h3, h4) + p.cb-label::after { display: none; }
.cb-page__inner p.cb-label + p.cb-label { font-weight: 600; color: var(--muted); }
.cb-page__inner p.cb-label + :is(h2, h3) { margin-block-start: 1.5em; }
.cb-page__inner :is(h2, h3) + :is(h3, h4) { color: var(--muted); font-size: 1em; }

/* A chef's line in the dark quote box, with who said it (and where) under it. */
blockquote.cb-quote cite { display: block; margin-block-start: 10px; font: 600 .74em/1.45 var(--ui); font-style: normal; color: #E0A84A; }
/* "המדע במטבח": a short science note on a cream card with a gold edge. */
.cb-sci { margin: 1.2em 0; padding: 14px 16px 12px; border-radius: 14px; border-inline-start: 4px solid var(--gold); background: var(--cream); }
.cb-sci__label { display: block; margin-block-end: 4px; font: 800 .64em/1.2 var(--ui); letter-spacing: .08em; color: var(--gold); }
.cb-page__inner .cb-sci strong { display: block; margin-block-end: 4px; font: 800 1em/1.3 var(--head); color: var(--ink); }
.cb-page__inner .cb-sci p { margin: 0; font-size: .92em; line-height: 1.6; }
.cb-sci small { display: block; margin-block-start: 7px; font: 600 .7em/1.4 var(--ui); color: var(--muted); }
/* The rights page (colophon) at the end of the book: small, quiet type under a thin rule. */
.cb-colophon { margin-block-start: 2em; padding-block-start: 1em; border-block-start: 1px solid var(--line); color: var(--muted); }
.cb-page__inner .cb-colophon p { margin: 0 0 .7em; font: 400 .78em/1.6 var(--ui); color: var(--muted); }
.cb-page__inner .cb-colophon strong { color: var(--ink); }

/* "מודל מקורי": a quiet credit under the title of the author's own models. */
.cb-dia__credit { margin: -4px 0 10px !important; font: 700 .62em/1.3 var(--ui); letter-spacing: .06em; color: var(--gold); text-align: center; }

/* Food and places as in a cookbook: the photo runs to the page's edges, cropped to a band, with its caption laid on a
   dark fade at its foot. People get a printed snapshot instead: a white border, a shadow, slightly turned. */
.cb-page__inner figure.cb-bleed, .cb-text figure.cb-bleed { position: relative; margin: 1.1em -22px 1.2em; overflow: hidden; border-radius: 0; }
.cb-page__inner figure.cb-bleed img, .cb-text figure.cb-bleed img { display: block; inline-size: 100%; max-inline-size: none; block-size: auto; aspect-ratio: 3 / 2; max-block-size: min(40vh, calc(var(--ph, 100vh) * .38)); margin: 0; border-radius: 0 !important; box-shadow: none !important; object-fit: cover; }
figure.cb-bleed figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; margin: 0 !important; padding: 34px 22px 10px; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .7)); color: #fff !important; font: 600 .78em/1.4 var(--ui) !important; text-align: start !important; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.cb-page__inner figure.cb-snap, .cb-text figure.cb-snap { inline-size: fit-content; max-inline-size: 86%; margin: 1.1em auto 1.3em; padding: 7px 7px 0; border-radius: 3px; background: #fff; box-shadow: 0 10px 24px rgb(0 0 0 / .16); transform: rotate(-1.2deg); }
.cb-page__inner figure.cb-snap img, .cb-text figure.cb-snap img { margin: 0; border-radius: 1px !important; box-shadow: none !important; max-block-size: min(38vh, calc(var(--ph, 100vh) * .34)); }
figure.cb-snap figcaption { margin: 0 !important; padding: 7px 4px 9px; color: #3a3632 !important; }
.cb-page__inner figure.cb-snap:nth-of-type(even) { transform: rotate(1deg); }

/* The four parts of the formula: on a short page the cards stay compact, so the grid of four fits on one page. */
.cb-four .cb-dia__cell { padding: 8px 8px; font-size: .76em; line-height: 1.3; }
.cb-four .cb-dia__cell em { margin-block-start: 4px; padding-block-start: 4px; }
.cb-four .cb-dia__groups { margin-block: 2px 4px; font-size: .74em; }
.cb-four .cb-dia__note { margin-block-start: 6px; font-size: .72em; }

/* 16 types: on a wide page (a tablet, not one page of a desktop spread) the explanation stands on the right and the
   table on the left; on a narrow page they stack, as before. The page box is a size container for this. */
.cb-page__inner .cb-m16 .cb-dia__matrix > span { min-block-size: 38px; padding: 5px 3px; }
.cb-page__inner { container-type: inline-size; }
@container (min-width: 560px) {
	.cb-m16 { display: grid; grid-template-columns: minmax(160px, 40%) 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 14px; align-items: start; text-align: start; }
	.cb-m16 > .cb-dia__title, .cb-m16 > .cb-dia__credit { grid-column: 1; text-align: start; }
	.cb-m16 > .cb-m16__how { grid-column: 1; font-size: .72em; line-height: 1.5; }
	.cb-m16 > .cb-dia__note { grid-column: 1 / -1; margin-block-start: 8px; text-align: center; font-size: .68em; }
	.cb-m16 > .cb-dia__matrix { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: .66em; }
	.cb-m16 .cb-dia__matrix > span { min-block-size: 34px; }
}

/* The 16 types by stars: the star badge on the right and the types beside it as small cards that wrap, one tier
   per row, never cut in two. */
.cb-page__inner .cb-tier { display: flex; gap: 10px; align-items: flex-start; }
.cb-page__inner .cb-tier__n { flex: none; inline-size: 3em; }
.cb-page__inner .cb-tier ul { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cb-page__inner .cb-tier li { margin: 0 !important; padding: 6px 9px; border-radius: 9px; background: var(--bg); }
.cb-page__inner .cb-tier li b { display: block; white-space: nowrap; }
/* Tighter on a page, so the note under the table (and under the four parts) stays in the same box, on the same page. */
.cb-page__inner .cb-m16 .cb-dia__matrix > span { min-block-size: 31px; padding: 3px; }
.cb-page__inner .cb-m16 .cb-dia__matrix { gap: 4px; }
.cb-page__inner .cb-m16__how { margin-block-end: 6px; font-size: .74em; line-height: 1.5; }
.cb-page__inner .cb-m16 > .cb-dia__note, .cb-page__inner .cb-four > .cb-dia__note { margin-block-start: 6px; font-size: .68em; line-height: 1.45; }
.cb-page__inner .cb-four > .cb-dia__title, .cb-page__inner .cb-m16 > .cb-dia__title { margin-block-end: 6px; }
.cb-page__inner .cb-m16, .cb-page__inner .cb-four { padding-block: 10px; }

/* Front matter (before chapter 1, no number): a light page; the copyright page sits low and small, like a printed book. */
.cb-page--front { background: var(--cream); }
.cb-page--front .cb-page__inner { color: var(--ink); }
.cb-page--front .cb-page__chapter { text-align: center; }
.cb-page--front .cb-page__chapter h1 { color: var(--ink-deep); background: none; }
.cb-page--front .cb-page__chapter h1::after { content: ""; display: block; inline-size: 48px; block-size: 2px; margin: 12px auto 0; background: var(--gold); }
[data-theme="dark"] .cb-page--front .cb-page__chapter h1 { color: var(--ink); }
.cb-page__inner .cb-colophon--front { margin: 0; padding: 0; border: 0; text-align: center; }
.cb-page__inner .cb-colophon--front .cb-colophon__title { margin-block-end: 1.4em; font: 900 1.5em/1.2 var(--head); color: var(--ink-deep); }
.cb-page__inner p.cb-fine { margin: 0 0 .6em; font: 400 .7em/1.5 var(--ui); color: var(--muted); text-align: center; }
.cb-page__inner p.cb-fine strong { color: var(--ink); }
.cb-page__inner p.cb-fine--title { margin: .2em 0 .8em; font: 900 1.35em/1.2 var(--head); color: var(--ink-deep); }

/* ── 0.7.55: ratios and rescue chapters ─────────────────────────────────────────────────────── */
/* Ratio bars: one bar per ratio, split by weight (--n); the key under it names each colour in the same order. */
.cb-ratio__row { margin-block-end: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); text-align: start; font-size: .82em; line-height: 1.4; }
.cb-ratio__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cb-ratio__head b { font: 800 1.08em/1.25 var(--head); }
.cb-ratio__head strong { flex: none; font: 900 1.05em/1 var(--head); color: var(--accent); white-space: nowrap; }
.cb-ratio__bar { display: flex; gap: 2px; margin: 7px 0 5px; border-radius: 8px; overflow: hidden; font: 800 .82em/1.9 var(--ui); color: #fff; text-align: center; }
.cb-ratio__bar span { flex: var(--n) 1 0; min-inline-size: 1.4em; background: var(--accent); }
.cb-ratio__bar span:nth-child(2) { background: var(--gold); }
.cb-ratio__bar span:nth-child(3) { background: var(--ink-deep); }
.cb-ratio__bar span:nth-child(4) { background: #8a7f76; }
[data-theme="dark"] .cb-ratio__bar span:nth-child(3) { background: #5b524b; }
.cb-ratio__key { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 2px !important; font-weight: 700; font-size: .95em; }
.cb-ratio__key i { display: inline-block; inline-size: .7em; block-size: .7em; margin-inline-end: 4px; border-radius: 2px; background: var(--accent); vertical-align: -.02em; }
.cb-ratio__key span:nth-child(2) i { background: var(--gold); }
.cb-ratio__key span:nth-child(3) i { background: var(--ink-deep); }
.cb-ratio__key span:nth-child(4) i { background: #8a7f76; }
.cb-ratio__row small { display: block; color: var(--muted); }
/* A family: the ratio on top, the dishes it makes underneath. */
.cb-fam { margin-block-end: 14px; }
.cb-fam:last-child { margin-block-end: 0; }
.cb-fam__root { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--ink-deep); color: #fff; font: 800 .86em/1.3 var(--ui); direction: rtl; }
.cb-fam__kids { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.2em, 1fr)); gap: 6px; margin-block-start: 14px; }
.cb-fam__kids::before { content: ""; position: absolute; inset-block-start: -14px; inset-inline-start: calc(50% - 1px); block-size: 12px; border-inline-start: 2px solid var(--accent); }
.cb-fam__kids > div { padding: 9px 6px; border-radius: 12px; background: var(--bg); border-block-start: 4px solid var(--gold); font-size: .78em; line-height: 1.35; }
.cb-fam__kids b { display: block; font: 800 1.12em/1.2 var(--head); margin-block-end: 2px; }
.cb-fam__kids em { display: block; margin-block-start: 4px; font-style: normal; font-weight: 800; color: var(--accent); }
/* The emergency kit: five things on the counter. */
.cb-kit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cb-kit span { display: grid; gap: 5px; justify-items: center; align-content: start; padding: 10px 3px; border-radius: 12px; background: var(--bg); font: 700 .72em/1.25 var(--ui); }
.cb-kit i { font-style: normal; font-size: 1.9em; line-height: 1; }
/* Rescue cards reuse the stock card; a dish that can't be saved gets a red tag. */
.cb-stock__head span.is-no { background: var(--accent); }
.cb-stock small { vertical-align: top; }

/* ── 0.7.71: the glove model (chapter "לפתוח עסק מזון?"): an SVG glove, five numbered fingers, GO on the palm. ── */
.cb-glove { display: block; inline-size: min(100%, 13em); max-block-size: calc(var(--ph, 100vh) * .32); margin: 2px auto 10px; }
.cb-glove .g { fill: var(--cream); stroke: var(--ink); stroke-width: 3; }
.cb-glove .cuff { fill: var(--gold); }
.cb-glove .go { fill: var(--accent); font: 900 46px/1 var(--head); letter-spacing: .04em; }
.cb-glove .n circle { fill: var(--gold); }
.cb-glove .n text { fill: #fff; font: 800 16px/1 var(--ui); }
/* 0.7.72: the fit table (8 businesses x 6 chef types): seven narrow columns, tighter cells, so it stays one page. */
.cb-fit .cb-dia__matrix { grid-template-columns: 1.3fr repeat(7, minmax(0, 1fr)); gap: 2px; font-size: .56em; }
.cb-fit .cb-dia__matrix > span { padding: 5px 2px; border-radius: 6px; }
.cb-fit .cb-dia__matrix > span.h { line-height: 1.15; text-align: center; padding: 4px 0; font-size: .82em; letter-spacing: -.02em; }
.cb-fit .cb-dia__matrix > span[data-x] { font-size: 1.25em; }
