/* ════════════════════════════════════════════════════════════════════════
   RASA — The Proof Book (daily.html only; rides styles.css tokens)

   The artifact: a cook's proof book lying open under ONE reading lamp
   (top-left). Pages are paper — dated margin, an ink seal, the dish photo
   pasted in as the specimen, the reaction set in display serif, the one
   printed fact as a numeral. The index at the back is dense small type with
   a thumbnail of the dish that proves each unproved page.

   Lighting: the lamp is the only light. Paper is lit from the top-left
   (inset highlight) and shadows fall to the bottom-right (a short, soft
   shadow). No per-element glows. Border OR shadow, never both.
   Motion: paper settles (small drop, expo-out, staggered); a seal stamps
   once. No bounce. Reduced motion = no motion.
   ════════════════════════════════════════════════════════════════════════ */

.pb-body { min-height: 100vh; }

/* display-setting classes must pair with [hidden] (logged gotcha) */
.pb-reading[hidden], .pb-empty[hidden], .pb-export[hidden] { display: none !important; }

/* ── The lamp — one light, fixed, from above-left ─────────────────────── */
.pb-lamp {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(70% 60% at 18% 0%, rgba(245, 166, 35, 0.11), transparent 70%),
        radial-gradient(40% 30% at 85% 100%, rgba(212, 168, 154, 0.05), transparent 70%);
}

/* ── Book ─────────────────────────────────────────────────────────────── */
.pb {
    position: relative; z-index: 1;
    max-width: 1080px; margin: 0 auto;
    padding: calc(var(--nav-h, 72px) + 3.5rem) 24px 5rem;
}

.pb-eyebrow {
    display: block;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--color-accent);
}

/* Header: the cover line + the count as the page's one big fact */
.pb-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; align-items: end; margin-bottom: 3rem; }
.pb-head__title {
    font-family: var(--font-display); font-weight: 300; line-height: 1.05;
    font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--color-text-primary);
    margin: 0.5rem 0 0.9rem;
}
.pb-head__lede { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.55; color: var(--color-blush-muted); max-width: 56ch; margin: 0; }
.pb-count { display: flex; align-items: baseline; gap: 0.5rem; justify-self: end; }
.pb-count__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.6rem, 8vw, 6rem); line-height: 0.9; color: var(--color-accent); font-variant-numeric: lining-nums; }
.pb-count__of { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); }
.pb-count__of b { display: block; font-weight: 500; color: var(--color-text-primary); font-size: 0.9rem; letter-spacing: 0.08em; }
.pb-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; align-items: center; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pb-stat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); }
.pb-stat b { color: var(--color-text-primary); font-weight: 500; margin-right: 0.35em; }
.pb-export { margin-left: auto; }
.pb-stat[hidden], .pb-stamp[hidden] { display: none !important; }
.pb-stat--next b { color: var(--color-accent); }
.pb-stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #080C14; background: var(--color-accent); padding: 0.45rem 0.9rem; border-radius: 100px; animation: pb-stamp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pb-ask { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); text-decoration: none; }
.pb-ask:hover, .pb-ask:focus-visible { color: #FFB84D; outline: none; text-decoration: underline; text-underline-offset: 4px; }

/* Buttons — the house pill family */
.pb-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
    border-radius: 100px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.pb-btn svg { flex: none; }
.pb-btn--gold { background: var(--color-accent); border: 1px solid var(--color-accent); color: #080C14; }
.pb-btn--gold:hover, .pb-btn--gold:focus-visible { background: #FFB84D; border-color: #FFB84D; transform: translateY(-2px); }
.pb-btn--ghost { background: transparent; border: 1px solid rgba(var(--color-science-rgb), 0.45); color: var(--color-accent); }
.pb-btn--ghost:hover, .pb-btn--ghost:focus-visible { background: rgba(var(--color-science-rgb), 0.12); border-color: rgba(var(--color-science-rgb), 0.75); transform: translateY(-2px); }
.pb-btn:focus-visible { outline: 2px solid rgba(var(--color-science-rgb), 0.85); outline-offset: 2px; }

/* Paper: the shared surface for the reading, the pages, the empty page */
.pb-paper {
    position: relative;
    background: rgba(255, 255, 255, 0.028);
    border-radius: 14px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.07), 4px 6px 8px rgba(0, 0, 0, 0.28);
}

/* ── The reading (a hand-written technique) ───────────────────────────── */
.pb-reading { margin-bottom: 3.5rem; }
.pb-reading__card { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding: 2rem 2.4rem 2.2rem; position: relative; background: rgba(255, 255, 255, 0.028); border-radius: 14px; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.07), 4px 6px 8px rgba(0, 0, 0, 0.28); }
.pb-reading__side { display: flex; flex-direction: column; gap: 1.1rem; }
.pb-reading__date { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); }
.pb-reading__plate { display: block; text-decoration: none; margin-top: 0.4rem; }
.pb-reading__plate .pb-plate { aspect-ratio: 4 / 5; }
.pb-reading__plate-cap { display: block; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); }
.pb-reading__plate:hover .pb-plate-cap, .pb-reading__plate:focus-visible .pb-reading__plate-cap { color: var(--color-accent); }
.pb-reading__cuisine { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-secondary); }
.pb-reading__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.08; color: var(--color-text-primary); margin: 0.4rem 0 0.6rem; }
.pb-reading__hook { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.45; color: var(--color-blush); margin: 0 0 1.4rem; }
.pb-reading__science, .pb-reading__action { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.62; color: var(--color-blush-muted); }
.pb-reading__science { margin-bottom: 1.1rem; }
.pb-reading__action strong { color: var(--color-text-primary); font-weight: 600; }
.tc-science__highlight { color: var(--color-accent); }
.pb-reading__foot { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.6rem; }
.pb-reading__proof { font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.6; letter-spacing: 0.02em; color: var(--color-text-secondary); margin: 1.2rem 0 0; }
.pb-reading__card.is-read .pb-reading__name { color: var(--color-blush-muted); }

/* Numerals: the one physical fact, printed */
.pb-numeral { display: flex; flex-direction: column; gap: 0.2rem; }
.pb-numeral__value { font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--color-text-primary); font-variant-numeric: lining-nums; }
.pb-numeral__caption { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); }
.pb-numeral--inline { flex-direction: row; align-items: baseline; gap: 0.8rem; margin: 1rem 0 0.2rem; }
.pb-numeral--inline .pb-numeral__value { font-size: 2rem; }

/* Chips (status ink) */
.pb-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 100px; }
.pb-chip--proved { color: var(--color-accent); border: 1px solid rgba(var(--color-science-rgb), 0.4); }
.pb-chip--mastered { color: #080C14; background: var(--color-accent); }
.pb-chip--read { color: var(--color-text-secondary); border: 1px solid rgba(255, 255, 255, 0.14); }

/* ── Pages ────────────────────────────────────────────────────────────── */
.pb-pages { display: flex; flex-direction: column; gap: 1.6rem; margin-bottom: 4rem; }
.pb-pages__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; }
.pb-pages__count { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); }

.pb-page {
    display: grid; grid-template-columns: 132px 180px 1fr; gap: 1.8rem; align-items: start;
    padding: 1.8rem 2.2rem 1.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.028); border-radius: 14px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.07), 4px 6px 8px rgba(0, 0, 0, 0.28);
    animation: pb-settle 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pb-page:hover { transform: translateY(-2px); }
.pb-page.is-latest { grid-template-columns: 132px 260px 1fr; padding: 2.4rem 2.6rem 2.4rem 2rem; }
.pb-page.is-latest .pb-page__name { font-size: clamp(2rem, 3.6vw, 2.8rem); }
@keyframes pb-settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pb-page__margin { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.3rem; border-right: 1px solid rgba(255, 255, 255, 0.08); min-height: 100%; }
.pb-page__date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.pb-page__family { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); line-height: 1.5; padding-right: 0.8rem; }
.pb-page__seal { margin-top: 0.6rem; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; animation: pb-stamp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 260ms); }
.pb-page__seal--proved { border: 1px solid rgba(var(--color-science-rgb), 0.55); color: var(--color-accent); }
.pb-page__seal--mastered { background: var(--color-accent); color: #080C14; }
@keyframes pb-stamp { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: scale(1); } }

.pb-page__photo { display: block; }
.pb-plate { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.pb-plate--dim { opacity: 0.45; }
.pb-plate--thumb { width: 40px; aspect-ratio: 1; border-radius: 6px; }

.pb-page__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.pb-page__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; color: var(--color-text-primary); margin: 0; }
.pb-page__provline { font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.6; letter-spacing: 0.02em; color: var(--color-text-secondary); margin: 0.6rem 0 0.9rem; }
.pb-page__provline strong { color: var(--color-text-primary); font-weight: 500; }
.pb-page__provline em { font-style: normal; color: var(--color-blush-muted); }
.pb-page__what { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.6; color: var(--color-blush-muted); margin: 0; max-width: 62ch; }

.pb-prov { margin-top: 1rem; }
.pb-prov summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); list-style: none; }
.pb-prov summary::-webkit-details-marker { display: none; }
.pb-prov summary::before { content: "+ "; color: var(--color-accent); }
.pb-prov[open] summary::before { content: "− "; }
.pb-prov summary:hover, .pb-prov summary:focus-visible { color: var(--color-accent); outline: none; }
.pb-prov ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pb-prov li { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--color-text-secondary); display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: baseline; }
.pb-prov li a { color: var(--color-text-primary); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.pb-prov li a:hover, .pb-prov li a:focus-visible { color: var(--color-accent); border-color: var(--color-accent); }
.pb-prov__step { color: var(--color-blush-muted); }
.pb-prov time { margin-left: auto; color: var(--color-accent); }

.pb-next { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pb-next__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); flex-basis: 100%; }
.pb-next__link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-serif); font-size: 1.05rem; color: var(--color-text-primary); text-decoration: none; border-bottom: 1px solid rgba(var(--color-science-rgb), 0.35); padding-bottom: 1px; transition: color 0.25s ease, border-color 0.25s ease; }
.pb-next__link:hover, .pb-next__link:focus-visible { color: var(--color-accent); border-color: var(--color-accent); outline: none; }
.pb-next__link svg { color: var(--color-accent); }

/* Empty page */
.pb-empty { padding: 2.2rem 2.4rem; background: rgba(255, 255, 255, 0.028); border-radius: 14px; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.07), 4px 6px 8px rgba(0, 0, 0, 0.28); }
.pb-empty--page { display: grid; grid-template-columns: 220px 1fr; gap: 0 2.4rem; }
.pb-empty--page .pb-empty__plate { grid-row: 1 / span 4; display: block; }
.pb-empty__title { font-variant-numeric: lining-nums; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; color: var(--color-text-primary); margin: 0.4rem 0 0.8rem; }
.pb-empty__body { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.6; color: var(--color-blush-muted); margin: 0 0 1.4rem; max-width: 58ch; }
.pb-empty__body strong { color: var(--color-text-primary); font-weight: 600; }
.pb-empty__body em { font-style: normal; color: var(--color-accent); }
.pb-empty__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ── The index at the back ────────────────────────────────────────────── */
.pb-map { margin-bottom: 4rem; }
.pb-map__head { margin-bottom: 1.8rem; }
.pb-map__title { font-variant-numeric: lining-nums; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--color-text-primary); margin: 0.4rem 0 0.6rem; }
.pb-map__lede { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.55; color: var(--color-blush-muted); margin: 0; max-width: 60ch; }
.pb-fam { padding: 1.2rem 0 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pb-fam__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.pb-fam__name { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--color-text-primary); margin: 0; }
.pb-fam__count { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.pb-map__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 2.5rem; }
.pb-map__row { display: grid; grid-template-columns: 18px 40px 1fr auto; align-items: center; gap: 0.8rem; min-height: 52px; padding: 0.3rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.pb-map__mark { color: var(--color-accent); display: inline-flex; }
.pb-map__thumb { display: inline-flex; width: 40px; height: 40px; }
.pb-map__thumb:empty::before { content: ""; width: 40px; height: 40px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.14); }
.pb-map__name { font-family: var(--font-serif); font-size: 1.05rem; color: var(--color-text-primary); text-decoration: none; }
a.pb-map__name:hover, a.pb-map__name:focus-visible { color: var(--color-accent); outline: none; }
.pb-map__row--unproved .pb-map__name { color: var(--color-blush-muted); }
.pb-map__row--unproved .pb-plate--thumb { opacity: 0.55; }
.pb-map__where { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-secondary); text-decoration: none; text-align: right; }
a.pb-map__where:hover, a.pb-map__where:focus-visible { color: var(--color-accent); outline: none; }
.pb-map__where--none { color: var(--color-text-muted); }

/* ── The journal, demoted to a band inside the book ───────────────────── */
.pb-band-head { max-width: 1080px; margin: 0 auto; padding: 0 24px 1.2rem; }
.pb-band-head .pb-eyebrow { margin-bottom: 0.4rem; }
.pb-band-head__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--color-text-primary); margin: 0; }
.nj-wrap--embed { padding-top: 0; }
#nourishment { scroll-margin-top: calc(var(--nav-h, 72px) + 40px); }

/* ── Jump chip (Book · My Week) ───────────────────────────────────────── */
.jump-chip {
    position: fixed; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom)); z-index: 40;
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    display: inline-flex; gap: 0.2rem; padding: 0.3rem;
    background: rgba(8, 12, 20, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.jump-chip.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.jump-chip__link { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); text-decoration: none; padding: 0.55rem 0.95rem; border-radius: 100px; min-height: 36px; display: inline-flex; align-items: center; }
.jump-chip__link.is-active { color: #080C14; background: var(--color-accent); }
.jump-chip__link:focus-visible { outline: 2px solid rgba(var(--color-science-rgb), 0.85); outline-offset: 2px; }

/* ── Phone: the same book, re-laid — never a list that abandons it ────── */
@media (max-width: 860px) {
    .pb { padding-left: 18px; padding-right: 18px; }
    .pb-head { grid-template-columns: 1fr; gap: 1.2rem; }
    .pb-count { justify-self: start; }
    .pb-reading__card { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.5rem 1.3rem; }
    .pb-reading__side { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 0.8rem 1.2rem; }
    .pb-reading__side .pb-eyebrow { grid-column: 1 / -1; }
    .pb-reading__plate { margin-top: 0; width: 120px; }
    .jump-chip { display: none; } /* the phone tab bar owns the bottom edge */
    .pb-page, .pb-page.is-latest { grid-template-columns: 1fr; gap: 1rem; padding: 1.3rem 1.2rem; }
    .pb-page__margin { flex-direction: row; align-items: center; gap: 0.8rem; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 0 0 0.7rem; }
    .pb-page__family { flex: 1; padding: 0; }
    .pb-page__seal { margin-top: 0; }
    .pb-plate { aspect-ratio: 16 / 9; }
    .pb-page.is-latest .pb-plate { aspect-ratio: 4 / 3; }
    .pb-empty--page { grid-template-columns: 1fr; }
    .pb-empty--page .pb-empty__plate { grid-row: auto; margin-bottom: 1rem; }
    .pb-map__list { grid-template-columns: 1fr; }
    .pb-map__row { grid-template-columns: 18px 40px 1fr; }
    .pb-map__where { grid-column: 3; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .pb-page, .pb-page__seal { animation: none; }
    .pb-page, .pb-btn, .jump-chip { transition: none; }
    .pb-page:hover, .pb-btn:hover { transform: none; }
}

/* ── "Ask the chef" door (phones only) ─────────────────────────────────────
   AI Chef has no seat in the five-tab phone bar (2026-09-05 nav pass); Today
   keeps a fixed door to it, parked above the bar at the thumb's edge. */
.pb-chef-door { display: none; }
@media (max-width: 768px) {
    .pb-chef-door {
        position: fixed;
        right: 14px;
        bottom: calc(64px + env(safe-area-inset-bottom) + 14px);
        z-index: 8900;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 16px 0 12px;
        border-radius: 999px;
        font-family: var(--font-mono);
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #0b0e14;
        background: var(--color-accent);
        text-decoration: none;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .pb-chef-door svg { width: 18px; height: 18px; flex-shrink: 0; }
    /* Once the reader scrolls, the door folds to a circle so it never sits on
       a headline; the label is only worn at the top of the page. */
    .pb-chef-door span { white-space: nowrap; max-width: 140px; overflow: hidden; transition: max-width 0.3s ease, opacity 0.2s ease; }
    .pb-chef-door.is-compact { padding: 0 13px; }
    .pb-chef-door.is-compact span { max-width: 0; opacity: 0; }
    .pb-chef-door.is-compact { gap: 0; }
    .pb-chef-door:active { transform: scale(0.97); }
    .pb-chef-door:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
}

/* The cooking journal: cover, specimen, chapter index and weekly portrait. */
.pb-journal { --pb-ink: #f2e8df; --pb-copy: #c1bfba; --pb-muted: #a6a7aa; --pb-rule: #2b2e34; background: #0a0d14; }
.pb-journal [hidden] { display: none !important; }
.pb-journal .pb { max-width: 1280px; padding: calc(var(--nav-h, 90px) + 64px) 40px 0; }
.pb-cover { margin-bottom: 80px; }
.pb-cover--first { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.pb-cover--first .pb-head { display: block; margin: 0; }
.pb-cover--first .pb-pages { margin: 0; }
.pb-journal .pb-head__title { font-size: clamp(56px, 6.5vw, 92px); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; margin: 24px 0; color: var(--pb-ink); overflow-wrap: anywhere; }
.pb-cover--first .pb-head__title { max-width: 9ch; }
.pb-journal .pb-eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: .19em; }
.pb-journal .pb-head__lede { font-family: var(--font-body, 'Syne', sans-serif); font-size: 18px; line-height: 1.8; max-width: 42ch; color: var(--pb-copy); }
.pb-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
.pb-head__actions:empty { display: none; }
.pb-head__note { flex-basis: 100%; margin: 0; color: var(--pb-muted); font-size: 13px; }
.pb-visitor .pb-count, .pb-visitor .pb-stats { display: none; }
.pb-journal .pb-btn { font-size: 11px; min-height: 48px; justify-content: center; padding: 12px 24px; letter-spacing: .1em; text-align: center; }
.pb-journal .pb-btn:hover, .pb-journal .pb-btn:focus-visible, .pb-journal .pb-page:hover { transform: none; }
.pb-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--pb-ink); font-size: 14px; text-decoration: underline; text-decoration-color: #77664a; text-underline-offset: 6px; transition: color 180ms, text-decoration-color 180ms; }
.pb-text-link:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.pb-journal :is(a,button,summary):focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
.pb-journal .pb-stats { margin-top: 28px; gap: 20px; }
.pb-journal .pb-stat { font-size: 11px; line-height: 1.7; color: var(--pb-copy); }
.pb-cover--first .pb-count { justify-content: flex-start; margin-top: 24px; }
.pb-cover--first .pb-count__num { font-size: 48px; }
.pb-specimen { position: relative; background: #11151c; border: 1px solid #38342d; border-radius: 4px 16px 16px 4px; padding: 24px; box-shadow: 7px 7px 0 -3px #0a0d14, 7px 7px 0 -2px #35332e; }
.pb-specimen__head { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pb-specimen__label { font-family: var(--font-mono); color: var(--pb-muted); font-size: 10px; white-space: nowrap; }
.pb-specimen__photo { display: block; position: relative; overflow: hidden; border-radius: 6px; }
.pb-specimen__photo img { width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; object-position: 50% 55%; display: block; }
.pb-specimen__dish { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0 12px; }
.pb-specimen__dish h2 { margin: 0; font: 400 30px/1.15 var(--font-display); color: var(--pb-ink); }
.pb-specimen__dish > span { color: var(--pb-copy); font-family: var(--font-mono); font-size: 10px; line-height: 1.7; text-align: right; }
.pb-specimen__choices { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--pb-rule); }
.pb-specimen__choices button { min-height: 44px; padding: 8px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--pb-muted); font: 400 11px/1.5 var(--font-body); cursor: pointer; transition: color 200ms,border-color 200ms; }
.pb-specimen__choices button[aria-pressed=true] { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.pb-specimen__choices button:hover { color: var(--pb-ink); }
.pb-specimen__detail { display: grid; }
.pb-specimen__entry { grid-area: 1 / 1; }
.pb-specimen__entry[aria-hidden="true"] { visibility: hidden; }
.pb-specimen__detail h3 { font: 400 28px/1.2 var(--font-display); margin: 8px 0 10px; color: var(--pb-ink); }
.pb-specimen__detail p { font: 400 14px/1.75 var(--font-body); color: var(--pb-copy); margin: 0 0 16px; }
.pb-specimen__source { display: block; font: 400 10px/1.7 var(--font-mono); color: var(--pb-muted); }
.pb-specimen__foot { border-top: 1px solid var(--pb-rule); padding-top: 16px; margin-top: 18px; font: 400 17px/1.5 var(--font-display); color: #d4b88e; }
/* Soft steam stays within the cooking photograph. No photo zoom or cursor tracking. */
.pb-vapour { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pb-vapour i { position: absolute; bottom: 4%; left: 35%; width: 20%; height: 72%; border-radius: 48%; background: radial-gradient(ellipse, #e5dccc38, transparent 68%); filter: blur(7px); opacity: 0; }
.pb-vapour i:nth-child(2) { left: 50%; height: 85%; --delay: -1.8s; }
.pb-vapour i:nth-child(3) { left: 62%; height: 60%; --delay: -3.4s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .pb-specimen__photo:hover .pb-vapour i { animation: pb-vapour 5.5s var(--delay,0s) ease-out infinite; }
}
@keyframes pb-vapour { 0% { opacity: 0; transform: translate(0,30%); } 30% { opacity: .6; } 100% { opacity: 0; transform: translate(-12%,-65%); } }
.pb-how { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding: 48px 0; margin-bottom: 64px; border-top: 1px solid var(--pb-rule); border-bottom: 1px solid var(--pb-rule); }
.pb-how h2 { font: 400 38px/1.15 var(--font-display); color: var(--pb-ink); max-width: 14ch; margin: 14px 0 0; }
.pb-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.pb-how li { display: grid; grid-template-columns: 30px 1fr; gap: 20px; }
.pb-how li > span { font: 400 11px/1.8 var(--font-mono); color: var(--color-accent); padding-top: 3px; }
.pb-how h3 { font: 500 16px/1.6 var(--font-body); color: var(--pb-ink); margin: 0; }
.pb-how p { font: 400 14px/1.7 var(--font-body); color: var(--pb-copy); margin: 4px 0 0; }
.pb-journal .pb-map { margin: 0 0 72px; scroll-margin-top: 110px; }
.pb-journal .pb-map__head { position: relative; margin-bottom: 32px; }
.pb-journal .pb-map__title { font-size: clamp(36px, 4vw, 52px); margin: 12px 0; }
.pb-map__total { display: block; font: 400 12px/1.7 var(--font-mono); color: #d4b88e; margin-bottom: 12px; }
.pb-journal .pb-map__lede { font: 400 15px/1.8 var(--font-body); color: var(--pb-copy); max-width: 72ch; }
.pb-index { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 48px; align-items: start; }
.pb-chapters { display: grid; gap: 6px; }
.pb-chapter { display: grid; grid-template-columns: 22px 1fr 20px; gap: 12px; align-items: center; text-align: left; min-height: 50px; padding: 12px 14px; border: 0; border-left: 2px solid transparent; border-radius: 0 5px 5px 0; background: transparent; font: 400 14px/1.5 var(--font-body); color: var(--pb-copy); cursor: pointer; transition: background 180ms,color 180ms; }
.pb-chapter > span:first-child, .pb-chapter small { font: 400 10px/1.5 var(--font-mono); color: var(--pb-muted); }
.pb-chapter[aria-pressed=true] { border-left-color: var(--color-accent); background: #1e1c17; color: #f3c778; }
.pb-chapter:hover { background: #15191f; color: var(--pb-ink); }
.pb-index__pages { min-width: 0; }
.pb-journal .pb-fam { padding: 24px 28px; background: #11151c; border: 1px solid #2b2e34; border-radius: 8px; }
.pb-journal .pb-fam__head { align-items: center; margin-bottom: 22px; }
.pb-journal .pb-fam__name { font-size: 32px; margin-top: 8px; }
.pb-journal .pb-fam__count { font-size: 11px; letter-spacing: .03em; text-align: right; }
.pb-journal .pb-map__list { grid-template-columns: 1fr; gap: 0; }
.pb-journal .pb-map__row { grid-template-columns: 48px minmax(0,1fr) 20px; column-gap: 16px; row-gap: 0; padding: 12px 0; min-height: 80px; }
.pb-journal .pb-map__thumb { grid-row: 1 / 3; grid-column: 1; width: 48px; height: 48px; }
.pb-journal .pb-map__thumb img { width: 48px; height: 48px; aspect-ratio: 1; opacity: 1; }
.pb-journal .pb-map__mark { grid-column: 3; grid-row: 1 / 3; }
.pb-journal .pb-map__name { grid-column: 2; font: 400 21px/1.3 var(--font-display); color: var(--pb-ink); }
.pb-journal .pb-map__where { grid-column: 2; justify-self: start; text-align: left; font: 400 12px/1.5 var(--font-body); text-transform: none; letter-spacing: 0; color: #cbb28d; min-height: 44px; }
.pb-journal .pb-map__row:has(.pb-map__where:hover) .pb-map__name { color: var(--color-accent); }
.pb-journal .pb-page { animation-delay: 0ms; }
.pb-journal .pb-page__what, .pb-journal .pb-reading__science, .pb-journal .pb-reading__action, .pb-journal .pb-empty__body { font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--pb-copy); }
.pb-journal .pb-page__family, .pb-journal .pb-chip, .pb-journal .pb-prov summary, .pb-journal .pb-prov li, .pb-journal .pb-next__label, .pb-journal .pb-ask { font-size: 11px; line-height: 1.7; }
.pb-journal .pb-prov summary, .pb-journal .pb-ask { min-height: 44px; display: flex; align-items: center; }
.pb-journal .pb-reading { margin-bottom: 64px; }
.pb-journal .pb-band-head, .pb-journal .nj-wrap--embed, .pb-ownership { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
.pb-journal .pb-band-head__title { font-size: clamp(36px,4vw,52px); margin-top: 12px; }
.pb-journal .nj-wrap--embed { padding-top: 16px; padding-bottom: 64px; }
.pb-week-preview { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding: 36px 0; border-top: 1px solid var(--pb-rule); border-bottom: 1px solid var(--pb-rule); }
.pb-week-preview h3 { font: 400 34px/1.2 var(--font-display); color: var(--pb-ink); margin: 12px 0 16px; }
.pb-week-preview p { color: var(--pb-copy); font: 400 15px/1.8 var(--font-body); }
.pb-week-preview__dishes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.pb-week-preview__dishes a { color: var(--pb-ink); text-decoration: none; }
.pb-week-preview__dishes img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; }
.pb-week-preview__dishes span { display: block; font: 400 20px/1.3 var(--font-display); margin-top: 12px; }
.pb-week-preview__dishes a:hover span { color: var(--color-accent); }
.pb-week-preview__sample > p { font-size: 12px; margin: 18px 0 0; }
.pb-ownership { margin: 0 auto; padding-top: 32px; padding-bottom: 130px; text-align: center; }
.pb-ownership h2 { font: 400 clamp(32px,3.8vw,48px)/1.2 var(--font-display); color: var(--pb-ink); margin: 16px 0; }
.pb-ownership p { font: 400 15px/1.8 var(--font-body); color: var(--pb-copy); max-width: 56ch; margin: 0 auto 18px; }
.pb-journal .nj-stage { min-height: 0; }
.pb-journal .nj-empty__body, .pb-journal .nj-lead-line, .pb-journal .nj-nut__label, .pb-journal .nj-dish__name { color: var(--pb-copy); }
.pb-journal .nj-week-pill { min-height: 44px; font-size: 12px; }
.pb-journal .jump-chip__link { min-height: 44px; font-size: 11px; }
@media (max-width: 1100px) {
 .pb-cover--first { gap: 36px; }
 .pb-journal .pb { padding-top: calc(var(--nav-h,90px) + 40px); }
 .pb-index { grid-template-columns: 230px minmax(0,1fr); gap: 28px; }
 .pb-specimen { padding: 20px; }

}
@media (max-width: 860px) {
 .pb-journal .pb { padding-left: 24px; padding-right: 24px; }
 .pb-cover--first { grid-template-columns: 1fr; gap: 36px; }
 .pb-cover--first .pb-head__title { max-width: none; font-size: clamp(52px,8vw,76px); }
 .pb-journal .pb-head__lede { max-width: 54ch; }
 .pb-specimen__photo img { aspect-ratio: 2; }

 .pb-how { gap: 36px; grid-template-columns: 1fr 1.3fr; }
 .pb-index { grid-template-columns: 1fr; gap: 24px; }
 .pb-chapters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 16px; }
 .pb-journal .pb-band-head, .pb-journal .nj-wrap--embed, .pb-ownership { padding-left: 24px; padding-right: 24px; }
 .pb-week-preview { gap: 32px; grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
 .pb-journal .pb { padding-top: calc(var(--nav-h,72px) + 28px); padding-left: 20px; padding-right: 20px; }
 .pb-journal .pb-head__title { font-size: 60px; margin: 16px 0; }
 .pb-journal .pb-head__lede { font-size: 16px; }
 .pb-head__actions { gap: 12px 20px; margin-top: 24px; }
 .pb-journal .pb-btn { padding: 12px 20px; }
 .pb-cover { margin-bottom: 48px; }
 .pb-specimen { padding: 18px; }
 .pb-specimen__head { align-items: start; }

 .pb-specimen__photo img { aspect-ratio: 1.5; }
 .pb-specimen__dish h2 { font-size: 28px; }

 .pb-specimen__detail p { font-size: 14px; }
 .pb-specimen__choices { gap: 0 14px; }
 .pb-how { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; margin-bottom: 48px; }
 .pb-how h2 { max-width: none; font-size: 34px; }
 .pb-chapters { gap: 4px 12px; }
 .pb-chapter { grid-template-columns: 18px 1fr; gap: 8px; padding: 10px 8px; font-size: 12px; min-height: 60px; }
 .pb-chapter small { display: none; }
 .pb-journal .pb-fam { padding: 20px 16px; }
 .pb-journal .pb-fam__name { font-size: 27px; }
 .pb-journal .pb-fam__count { flex: 0 0 85px; max-width: none; font-size: 10px; }
 .pb-journal .pb-map__row { column-gap: 12px; grid-template-columns: 40px minmax(0,1fr) 16px; }
 .pb-journal .pb-map__thumb, .pb-journal .pb-map__thumb img { width: 40px; height: 40px; }
 .pb-journal .pb-map__name { font-size: 20px; }
 .pb-journal .pb-map__where { min-height: 44px; }
 .pb-week-preview__dishes { gap: 12px; }
 .pb-week-preview__dishes span { font-size: 18px; }
 .pb-ownership { padding-bottom: 160px; }
}
@media (prefers-reduced-motion: reduce) {
 .pb-journal *, .pb-journal *::before, .pb-journal *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.pb-cover--reading { display: block; }
.pb-cover--reading .pb-head { margin-bottom: 40px; }
.pb-cover--reading .pb-head__title { max-width: none; }
.pb-cover--reading .pb-specimen { max-width: 700px; margin: 0 auto; }
