/* =====================================================================
   Recipe pages · hero, reel, recipe card, cook mode, rating, print
   ===================================================================== */
.print-only { display: none; }
.tbc { color: var(--ink-soft); font-family: var(--sans); font-size: .8em; font-weight: 500; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- Hero ---------- */
.r-hero { padding-block: 18px clamp(40px, 6vw, 80px); }
.crumbs { display: flex; gap: 8px; font-size: .875rem; margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--kitchen); text-decoration: underline; }
.crumbs span { color: var(--rim); }
.r-hero__grid { display: grid; gap: 28px; }
.r-photo { --ar: 4 / 5; --arn: .8; --cap: 78vh; position: relative; aspect-ratio: var(--ar); width: min(100%, calc(var(--cap) * var(--arn))); max-height: var(--cap); justify-self: center; overflow: hidden; border-radius: var(--radius); background: var(--marble-deep); box-shadow: 0 24px 50px -30px rgb(28 35 31 / .45); }   /* a rounded rectangle at the photo's own ratio: the whole photo, never cropped. A tall portrait is capped by narrowing the box (width <= cap x ratio), so it keeps its shape; contain on the marble mat is only the safety net for a rounding pixel */
.r-photo img { width: 100%; height: 100%; object-fit: contain; }
.r-photo--type { display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--tint); text-align: center; padding: 12%; }
.r-photo--type .script { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; }
.r-photo--type .dish-label { font-size: clamp(1rem, 2.6vw, 1.5rem); letter-spacing: .2em; }
.r-photo--type svg { width: 80px; height: 80px; color: var(--kitchen); margin-top: 10px; }
.r-hero__copy { display: grid; gap: 18px; align-content: center; justify-items: start; }
.r-hero h1 { font: 400 clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem)/1.16 var(--serif); letter-spacing: -.012em; }   /* the book's title: Libre Baskerville at 400, balanced, no script word */
.r-intro { font: 400 clamp(1.125rem, 1.05rem + .3vw, 1.1875rem)/1.6 var(--serif); color: var(--ink); max-width: 36rem; }
/* "Preparation time / Cooking time / Serves": the book's small block, one ruled row each */
.r-meta { display: grid; width: 100%; max-width: 24rem; margin: 0; border-block: 1px solid var(--rim); }
.r-meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; }
.r-meta div + div { border-top: 1px solid var(--rim); }
.r-meta dt { font: 600 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.r-meta dd { margin: 0; font: 500 1rem/1.3 var(--sans); color: var(--kitchen); text-align: right; }
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.r-actions [data-save][aria-pressed="true"] svg path { fill: currentColor; }
.share { position: relative; }
.share summary { list-style: none; }
.share summary::-webkit-details-marker { display: none; }
.share__menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 200px; display: grid; padding: 8px; border-radius: 16px; background: var(--marble); box-shadow: 0 0 0 1.5px var(--rim), 0 18px 40px -18px rgb(28 35 31 / .4); }
.share__menu a, .share__menu button { display: block; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font: 500 1rem/1.2 var(--sans); color: var(--kitchen); text-decoration: none; cursor: pointer; }
.share__menu a:hover, .share__menu button:hover { background: rgb(42 51 48 / .06); }
.share__msg { padding: 0 12px; font-size: .8125rem; color: var(--kitchen); }
.share__msg:empty { display: none; }

/* ---------- Watch ---------- */
.r-watch { padding-top: 0; }
.r-watch__grid { display: grid; gap: 28px; align-items: center; background: var(--marble-deep); border-radius: calc(var(--radius) * 1.4); padding: clamp(24px, 5vw, 56px); }
.r-watch__reel { max-width: 280px; }
/* Credits for the video (brands and PR gifts, her words): small, but beside the reel and readable */
.r-credits { margin-top: 26px; scroll-margin-top: 96px; }
.r-credits__h { font: 600 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.r-credits ul { list-style: none; display: grid; gap: 2px; margin-top: 8px; }
.r-credits li { font: 400 .875rem/1.5 var(--sans); color: var(--ink-soft); }

/* ---------- Recipe card ---------- */
.r-card-wrap { padding-top: 0; }
.r-card { background: var(--marble-deep); border: 1px solid var(--rim); border-radius: 26px; padding: clamp(20px, 4vw, 52px); }   /* a quiet marble panel: the old enamel double rim was too heavy in kitchen green */
.r-card__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--rim); }
.r-card__head h2 { margin-top: 8px; font: 400 clamp(1.5rem, 3.4vw, 2.1rem)/1.2 var(--serif); letter-spacing: -.01em; }
.r-cook-ico { width: 1.2em; height: 1.2em; }
.r-cook-ico circle { fill: var(--marble); } .r-cook-ico path { fill: var(--kitchen); }
.r-card__grid { display: grid; gap: 36px; }
.r-ing__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.r-ing h3, .r-method h3 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.005em; }
.ing-head { margin: 24px 0 0; font: 600 .75rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--kitchen); }   /* "For the gravy": small Jost caps */
.ing-head + .ing-list { margin-top: 4px; }
.r-serves { font-size: .9375rem; color: var(--ink-soft); }
.r-serves b { color: var(--kitchen); }
.scaler { display: inline-flex; margin-top: 14px; padding: 3px; border-radius: 999px; background: var(--marble); box-shadow: inset 0 0 0 1.5px var(--rim); }
.scaler[hidden] { display: none; }
.scaler button { min-width: 56px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 600 1rem/1 var(--sans); color: var(--kitchen); cursor: pointer; }
.scaler [aria-pressed="true"] { background: var(--kitchen); color: var(--marble); }
.ing-list { list-style: none; margin-top: 16px; }
.ing-list li + li { border-top: 1px dashed var(--rim); }
.ing-list label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; cursor: pointer; line-height: 1.45; }
.ing-list input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--kitchen); }
.ing-list input:checked + .ing__t { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgb(67 78 77 / .6); }
.method { list-style: none; margin-top: 18px; display: grid; gap: 26px; }
.method li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: baseline; scroll-margin-top: calc(var(--header-h) + 20px); }
.method__n { font: 400 1.5rem/1 var(--serif); color: var(--kitchen); }
.method p { font: 400 1.0625rem/1.75 var(--serif); color: var(--ink); }
/* the book's "Tip": a pale box at the foot of the method, rendered only when the recipe has a tip */
.r-tip { margin-top: 36px; padding: 18px 22px 20px; border-radius: 14px; background: var(--yellow-tint); }
.r-tip__label { margin: 0 0 8px; font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--kitchen); }
.r-tip__text { font: 400 1.0625rem/1.7 var(--serif); color: var(--ink); }
.r-tip__text + .r-tip__text { margin-top: 10px; }
.timer-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 40px; padding: 6px 16px 6px 12px; border: 0; border-radius: 999px; background: var(--yellow); font: 600 .9375rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
button.timer-chip { cursor: pointer; }
.timer-chip svg { width: 18px; height: 18px; }
.timer-chip.is-on { background: var(--kitchen); color: var(--marble); }
.r-note { margin-top: 22px; font-size: .875rem; color: var(--ink-soft); }
.r-serve { margin-top: 18px; font: italic 400 1.0625rem/1.6 var(--serif); color: var(--kitchen); }

/* ---------- Rating ---------- */
.r-feedback { padding-top: 0; }
.r-feedback__grid { display: grid; gap: 40px; }
.rate fieldset { border: 0; margin: 0; padding: 0; }
.rate legend { padding: 0; }
.stars { display: flex; gap: 4px; margin-top: 14px; }
.stars label { cursor: pointer; padding: 2px; border-radius: 8px; }
.stars svg { width: 38px; height: 38px; fill: transparent; stroke: var(--kitchen); stroke-width: 1.5; stroke-linejoin: round; transition: fill .15s; }
.stars label:has(input:checked) svg, .stars label:has(~ label input:checked) svg { fill: var(--yellow); }
.stars:hover label svg { fill: transparent; }
.stars label:hover svg, .stars label:has(~ label:hover) svg { fill: var(--yellow); }
.stars label:has(input:focus-visible) { outline: 3px solid var(--kitchen); outline-offset: 2px; }
.rate .msg { margin-top: 12px; font-size: .9375rem; color: var(--kitchen); }

/* ---------- Related, stub ---------- */
.r-related { padding-top: 0; }
@media (max-width: 719px) { .r-related .grid--3 > :nth-child(3) { display: none; } }   /* two columns on a phone: two cards, not two and an orphan */
.r-soon { padding-top: 0; }
.r-soon__box { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 5vw, 56px); border-radius: calc(var(--radius) * 1.4); background: var(--marble-deep); }
.r-soon__box > svg { width: 64px; height: 64px; color: var(--kitchen); }

/* ---------- Cook mode ---------- */
.cook { position: fixed; inset: 0; z-index: 450; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--marble); }
.cook[hidden] { display: none; }
.cook__bar { display: flex; align-items: center; gap: 14px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--rim); }
.cook__title { flex: 1; min-width: 0; font: 450 1rem/1.2 var(--display); color: var(--kitchen); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook__title .script { font-size: 1.3em; margin-right: .1em; }
.cook__wake { font-size: .8125rem; color: var(--kitchen); }
.cook__body { display: grid; grid-template-rows: auto auto; align-content: start; gap: 22px; overflow: auto; padding: clamp(18px, 4vw, 48px) var(--gutter); }
.cook__count { font: 600 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.cook__step { margin-top: 12px; }
.cook__text { font: 420 clamp(1.6rem, 4.6vw, 3rem)/1.3 var(--display); color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.cook__step .timer-chip { margin-top: 22px; font-size: 1.125rem; min-height: 52px; padding-inline: 16px 22px; }
.cook__ing { padding: 18px 20px; border-radius: 20px; background: var(--marble-deep); }
.cook__ing h3 { font-size: 1.2rem; }
.cook__ing ul { list-style: none; margin-top: 10px; display: grid; gap: 4px; }
.cook__ing li { padding: 7px 10px; border-radius: 10px; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; transition: background-color .25s, color .25s; }
.cook__ing li.is-now { background: var(--yellow); color: var(--ink); font-weight: 600; }
.cook__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rim); }
.cook__nav .btn { min-width: 120px; }
.cook__nav .btn:disabled { opacity: .4; cursor: default; }
.cook__dots { display: flex; gap: 6px; }
.cook__dots i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--kitchen); }
.cook__dots i.is-done { background: var(--oak); box-shadow: none; }
.cook__dots i.is-on { background: var(--kitchen); transform: scale(1.3); }

@media (min-width: 720px) {
  .r-watch__grid { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (min-width: 900px) {
  .r-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
  .r-card__grid { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: clamp(32px, 5vw, 72px); }   /* narrow ingredients left, method right, as in the book */
  .r-ing { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .cook__body { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); grid-template-rows: none; gap: 48px; }
  .cook__ing { align-self: start; }
}

/* ---------- Print: one clean recipe card ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  body::before, .skip, .site-header, .mobile-nav, footer, .r-hero, .r-watch, .r-feedback, .r-related, .scaler, .r-cook-btn, .cook, .search-overlay, .lightbox, .timer-chip svg { display: none !important; }
  .print-only { display: block !important; }
  .section { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .r-card { border: 0; box-shadow: none; padding: 0; background: none; }
  .r-print-mark { width: 160px; height: auto; margin-bottom: 8pt; }
  .r-card__head { padding-bottom: 8pt; margin-bottom: 10pt; }
  .r-card__grid { grid-template-columns: 1fr 1.7fr; gap: 20pt; }
  .ing-list label { padding: 3pt 0; }
  .ing-list input { width: 11pt; height: 11pt; }
  .method { gap: 8pt; }
  .method li { grid-template-columns: 18pt 1fr; gap: 6pt; break-inside: avoid; }
  .method__n { font-size: 11pt; }
  .method p { line-height: 1.5; font-size: 10.5pt; }
  .r-tip { break-inside: avoid; background: none; border: 1px solid #999; }
  .ing-head { margin-top: 10pt; }
  .timer-chip { background: none; padding: 0; min-height: 0; margin-top: 2pt; font-size: 9pt; }
  .r-print-url { margin-top: 14pt; font-size: 9pt; color: #555; }
  a { color: inherit; text-decoration: none; }
}
.r-soon__links { display: flex; flex-wrap: wrap; gap: 10px; }
